]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Remove early sm712 init as there is no reason for it (the "watchdog"
[grub2.git] / ChangeLog
CommitLineData
9c28da2a
VS
12013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Remove early sm712 init as there is no reason for it (the "watchdog"
4 effect was due to wrong GPIO map).
5
139072b8
VS
62013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/commands/pcidump.c: Remove static variables.
9
c6a61bda
VS
102013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/commands/sleep.c: Refresh screen before sleeping.
13
51369614
VS
142013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * configure.ac: Move delimiter after the infos.
17
efa8640a
VS
182013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
21
6f80a7b2
VS
222013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
25 not filling whole 8x16 space.
26
a2371e19
VS
272013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
30
64fce2d8
VS
312013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * configure.ac: Indicate which liblzma is used if any.
34
eb272d84
PW
352013-06-21 Paul Wise <pabs3@bonedaddy.net>
362013-06-21 Craig Sanders <savannah@taz.net.au>
37
38 * util/grub-reboot.in: Document submenu usage.
39
a9e5abee
CW
402013-06-25 Colin Watson <cjwatson@ubuntu.com>
41
42 * .bzrignore: Update with a number of new test-related files.
43
e639c204
CW
442013-06-25 Colin Watson <cjwatson@ubuntu.com>
45
46 * util/grub-script-check.c: Fail on scripts containing no
47 commands, to guard against corrupted grub-mkconfig setups that
48 produce no useful output.
49 * tests/grub_script_no_commands.in: New test.
50 * Makefile.util.def (grub_script_no_commands): Add.
51 Reported by Hans Putter. Fixes Debian bug #713886.
52
a4c89b17
AB
532013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
54
55 * grub-core/disk/diskfilter.c: Forgot to remove comment
56 from previous commit.
57
5b06b53c
AB
582013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
59
60 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
61 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
62
702da5c9
AB
632013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
64
65 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
66
aa62a5b7
AB
672013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
68
69 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
70 rescan diskfilter devices until nothing new is found.
71
4aa237c8
VS
722013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
73
74 Fix casts when compiling coreboot-specific code for 64-bit EFI.
75
93d8479b
VS
762013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
77
78 Don't try to detect cbfs on *-emu.
79
837222cc
VS
802013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/term/gfxterm.c: USe right background color when scrolling.
83
99c971af
VS
842013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
85
86 Add support for processed coreboot payload chainloading.
87
e6930a45
VS
882013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
89
90 Enable coreboot information commands even when not loaded as
91 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
92
5027af38
VS
932013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
94
95 Support for cbfs. Also factor out the part which is common
96 for all archives to a separate module. This splits tar from cpio
97 as they are very different but keeps cpio, cpio_be, odc and newc
98 together since they're very similar.
99
a5b55c4b
DM
1002013-06-15 David Michael <fedora.dm0@gmail.com>
101
102 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
103 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
104
0301a8b3
VS
1052013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * tests/grub_script_eval.in: Really add the eval test.
108
3d84cb17
VS
1092013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
110
111 Move flavour-specific parts out of common cpio.c file and
112 rename remaining to cpio_common.c
113
593e430c
AB
1142013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
115
116 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
117 off new function grub_script_execute_new_scope. Change callers to use
118 either of them as appropriate.
119 * grub-core/commands/eval.c: New command eval.
120 * docs/grub.texi (Commands): Document it.
121
63c29849
AB
1222013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
123
124 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
125 to fetch values when listing.
126
cc284112
AB
1272013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
128
129 Fix make dist on non-pc.
130
1312013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
132
133 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
134 without a device name.
135
69544d1e
VS
1362013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
137
138 Remove enable_executable_check as it's not needed anymore.
139 Reported by: dougray.
140
96dbe648
VS
1412013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
144 ambigouos RAID before discovering RAIDs on top of it.
145 Reported by: bodom.
146
ccfc0bdb
VS
1472013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
148
149 Fix typo (failback vs fallback).
150
f2587088
AB
1512013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
152
153 * util/grub.d/30_os-prober.in: Add support for probing EFI
154 System Partition (as of os-prober 1.58).
155
cec5cf0c
VS
1562013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
157
158 * configure.ac: Add yet another path to unifont. For parabola.
159
e40b4596
JT
1602013-05-30 Josh Triplett <josh@joshtriplett.org>
161
162 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
163 handling to copy the killed characters to the kill buffer as
164 UCS4 stored as grub_uint32_t rather than as 8-bit characters
165 stored as char. Eliminates UCS4 truncation and corruption
166 observed when killing characters with Ctrl-u and yanking them
167 back with Ctrl-y.
168
fc4c4fdd
VS
1692013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
170
171 Detach optional parts of gfxterm and integrate in with coreboot init.
172
6570b205
VS
1732013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
174
175 Move blit and fill dispatcher to appropriate files to decrease export
176 and relocation overhead.
177
b8323067
VS
1782013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/font/font.c, include/grub/font.h: Inline simple font
181 functions.
182
3cc1878f
VS
1832013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/Makefile.am: Fix compilation problem with some
186 automake versions.
187
4b80e43c
VS
1882013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
191
57e0c20c
VS
1922013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
195 automake versions.
196
4fd42c53
VS
1972013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
200 SSDT.
201
1e908b34
RS
2022013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
203
204 * grub-core/partmap/dfly.c: New partition map.
205
1359e474
VS
2062013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
209 checking.
210 Reported by: Francesco Lavra.
211
17806392
AB
2122013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
213
214 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
215 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
216 false conditions.
217 * conf/Makefile.common: define dist_grubconf_DATA
218
cdce14fa
VS
2192013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
220
221 Progressively skip menu elements on small terminals rather
222 than crashing.
223
c8d6cc3c
VS
2242013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
227 to avoid losing last column.
228
a73b31ce
VS
2292013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
230
231 * po/exclude.pot: Add missing string "%C".
232
1202c764
VS
2332013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
236 after the test.
237
50268344
VS
2382013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * util/grub-install.in: Gettextize "Not found" message.
241
62b15edf
VS
2422013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
243
244 Fix distfiles list.
245 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
246
2472013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
248
249 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
250 present.
251 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
252
709ad61b
VS
2532013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
256
d128901a
VS
2572013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
260 attribute since structure is not necessarily aligned.
261
34b22f5c
AB
2622013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
263
264 * docs/grub.texi (Device syntax): Clarify description of network
265 drives.
266
0f7e980b
VS
2672013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
268
269 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
270 for vasprintf presence.
271
30b03dc2
VS
2722013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
273
274 * util/grub-install.in: Handle efibootmgr presence check.
275 Reported by: Leif Lindholm.
276
0dc11c08
VS
2772013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
280 new strings to translate.
281
f8024c3f
VS
2822013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
285 yet another string (pun intended) to translate.
286
b4c1da62
VS
2872013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * po/POTFILES-shell.in: Autogenerate it.
290
0ef7478b
VS
2912013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
294
8200fa15
VS
2952013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
298 misnomer.
299
091945b2
AB
3002013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
301
302 * docs/grub.texi (Network): Add description of net_default_interface,
303 net_default_ip and net_default_mac. Rewrite variables description
304 to emphasize that they are per-interface.
305
0e7b2e32
VS
3062013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
307
308 New test: cmdline and cat.
309
16f7c8f6
VS
3102013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/commands/cat.c: Show UTF-8 characters.
313
3e912fda
VS
3142013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * conf/Makefile.common: Poison float and double on non-emu.
317
ee0220bc
VS
3182013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * configure.ac: Don't disable extended registers on emu.
321
89e0240c
VS
3222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
323
324 * configure.ac: Don't use extended registers on x86_64.
325 Reported by: Peter Jones.
326
e56d9637
VS
3272013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * grub-core/term/efi/console.c: Fix compile error.
330
8098f655
VS
3312013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
332
333 Compressed HFS+ support.
334
16940e07
VS
3352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
338 pixel".
339
c5dbc13d
VS
3402013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
341
342 Menu color test.
343
011f8ae8
VS
3442013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/tests/setjmp_test.c: New test.
347
2aa072d7
VS
3482013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
349
350 New variables 'net_default_*' to determine MAC/IP of default interface.
351
43fe02cb
VS
3522013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * tests/gettext_strings_test.in: A test to check for strings not
355 marked for translation.
356
bed06142
VS
3572013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * autogen.sh: Exclude unused libgcrypt files from translation.
360
fb2666b5
VS
3612013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
362
363 Simplify few strings.
364
d22840ec
VS
3652013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
366
367 Mark few forgotten strings for translation.
368
e34092fd
VS
3692013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
372 rather than printf.
373
47cf82b4
VS
3742013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
377 rather than printf.
378 * grub-core/video/readers/tga.c: Likewise.
379
1eed0e6e
VS
3802013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * tests/priority_queue_unit_test.cc: New test.
383
c5b7697b
VS
3842013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
385
386 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
387 than printf.
388
5945c2f8
AB
3892013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
390
391 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
392 variable for one time boot menu entry.
393
fa292343
B
3942013-05-05 Bean <bean123ch@gmail.com>
395
396 * grub-core/commands/testspeed.c: New command testspeed.
397
310d4214
VS
3982013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
399
400 Factor-out human-size printing.
401
85002bf3
VS
4022013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
403
404 Agglomerate more mallocs to speed-up gfxterm.
405
22b06e96
VS
4062013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
407
408 Speed-up gfxterm by slightly agglomerating mallocs.
409
b7c036bc
VS
4102013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
411
412 More video checks.
413
92323d1f
VS
4142013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
415
416 Speed-up gfxterm by saving intermediate results in index+alpha
417 format.
418
0fb356a3
VS
4192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
422 test.
423
44dea3f9
VS
4242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
427 line of timeout as it may contain the rest of long line.
428
14af86e4
VS
4292013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/normal/main.c: Fix freed memory dereference.
432
03f7c8c3
VS
4332013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
434
435 Fix several memory leaks.
436
c686014c
VS
4372013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
438
439 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
440
0788a695
VS
4412013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
444
daf01d61
VS
4452013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
446
447 Fix test -a and -o precedence.
448 Reported by: adrian15.
449
82ae74d7
VS
4502013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
453
8cec7bd4
AB
4542013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
455
456 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
457 and add it as source to functional_test module.
458
aa73d688
VS
4592013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
462
c104b6f9
VS
4632013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
464
465 New series of tests for gfxterm and gfxmenu.
466
7391c4d5
VS
4672013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
470 the theme path relative to $prefix/themes.
471
cff50118
VS
4722013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
475 Fix order bug.
476 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
477
7c332bdc
VS
4782013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
481 descriptor.
482
a4f9a5ff
VS
4832013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
486 grub_gfxmenu_timeout_notifications.
487 (grub_gfxmenu_view_destroy): Likewise.
488
b5a2114d
VS
4892013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
492
a8905e8a
VS
4932013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
494
495 Several fixes to ieee1275 and big-endian video.
496
813c1622
VS
4972013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
498
499 Add missing exports on mips.
500
3f3e7326
VS
5012013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
504 if no unifont is found.
505 Restore original keyboard.
506
095accd1
VS
5072013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
508
509 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
510 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
511
50361660
VS
5122013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
513
514 First automated video test (running videotest and comparing results)
515
cd0f6eec
VS
5162013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
517
518 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
519 instead of 2 to have full RGB/CMY test pattern.
520
3f9634e5
VS
5212013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
522
523 Add few more tests.
524
583e5b64
VS
5252013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * include/grub/arc/arc.h: Account for missing "other" peripheral on
528 ARCS. All users updated.
529
aa7bcb99
VS
5302013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
533
95ef1a54
VS
5342013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/partmap/amiga.c: Fix size of checksummed block.
537
46546fc5
VS
5382013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
541 Reported by: qwertial.
542
3476e0ef
VT
5432013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
544
545 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
546 with syntax "XXX deg"/"XXX °".
547
96f33fed
VS
5482013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
549
550 Make PCI init in i386-qemu port more robust.
551
5522013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
553
554 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
555 cached view is reused.
556 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
557 open boot menus.
558
c53b4e67
VS
5592013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
560
561 Unify more code in grub-install_header.
562
f7457fb2
VS
5632013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
564
565 Add few new tests.
566
e2f27a8c
VS
5672013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
568
569 Enforce disabling of firmware disk drivers when native drivers kick in.
570
ef9d8cd5
VS
5712013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/commands/nativedisk.c: Customize the list of modules on
574 platform. Don't try to search for disks already using native drivers.
575
f7bf6c31
VS
5762013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
579 platforms.
580
bdc4add8
VS
5812013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
584 handling of variables containing backslash.
585
e9e46c9a
VS
5862013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
589 dereference.
590 Reported by: qwertial.
591
0e90dee8
VS
5922013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
595
e0aacf24
VS
5962013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
599 dereference.
600 Reported by: qwertial.
601
3c0003c3
VS
6022013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * docs/grub.texi: Add a comment about usefullness of nativedisk.
605
adb7d667
VS
6062013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
609
7cd0df84
VS
6102013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
611
612 New command `nativedisk'.
613
02adbb93
VS
6142013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
617 * grub-core/loader/i386/bsd.c: Likewise.
618
9fb0fd4f
VS
6192013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
620
621 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
622
bd69257a
VS
6232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
626 grub_get_unaligned16 rather than shifts.
627
178c2764
VS
6282013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
629
630 * grub-core/kern/file.c: Use const char * rather than casting to
631 non-const.
632
eadfad24
VS
6332013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
634
635 * grub-core/commands/probe.c: Add missing grub_device_close.
636
9f73ebd4
VS
6372013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
638
639 * INSTALL: Document linguas.sh.
640
965fa829
VS
6412013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
642
643 Remove POTFILES.in and regenerate it in autogen.sh.
644
d417ddc4
VS
6452013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Move --directory/--override-directorry to grub-install_header and unify.
648
f97ec546
VS
6492013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * grub-core/term/morse.c: Macroify dih and dah.
652
b2d7470c
PFS
6532013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
654
655 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
656
141e2a78
VS
6572013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
658
659 * grub-core/term/ns8250.c: Systematically probe ports by writing
660 to SR before using them.
661
1dd70ebd
PFS
6622013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
663
664 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
665 disks.
666 (check_sas): Get sas_adress info.
667
c796a107
VS
6682013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
671 ports.
672
43168646
LD
6732013-04-27 Leon Drugi <eyak>
674
675 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
676 BSS clearing.
677
e7b8fd08
VS
6782013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Core compression test.
681
17f9fd29
VS
6822013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Implement grub_machine_get_bootlocation for ARC.
685
dc2a6c8b
VS
6862013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
687
688 Improve AHCI detection and command issuing.
689
f25a2ba6
VS
6902013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
691
692 Fix pseries test.
693
a6393224
VS
6942013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
695
696 Make 'make check' work on emu.
697
db99fbe8
VS
6982013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
699
700 Replace libcurses with our own vt100 handling for the ease of testing
701 and decreasing prerequisites.
702
b24ca7cd
VS
7032013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
706
63314aa4
VS
7072013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
708
709 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
710 compile when not needed.
711
c1b00fff
VS
7122013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
713
714 * tests/pseries_test.in: New test.
715
f93e89ef
VS
7162013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
717
718 Add test to check that different boot mediums work.
719
c4b456d3
VS
7202013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
723 ofw limited ISO support.
724
5fe67f39
VS
7252013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * configure.ac: Fix loongson conditional.
728
7f63a64f
VS
7292013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
730
731 Enable mipsel-arc.
732
b04b5990
VS
7332013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
734
735 Add serial on ARC platform.
736
88d2f302
VS
7372013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
740 commit.
741
86eb23bc
VS
7422013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * tests/partmap_test.in: Add missing double semicolon.
745
eec3bb75
VS
7462013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * util/grub-mkrescue.in: Fix loongson filename.
749
e0810df3
VS
7502013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * util/grub-mkrescue.in: Move all files that don't have a location
753 set in stone under /boot/grub. Use ISO hard links rather than copies
754 to save some space.
755
65a6b30b
VS
7562013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
759 bogus SLOF values.
760
6aff0107
VS
7612013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
762
763 Make check work on mips-arc.
764
5e013e56
VS
7652013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * util/grub-mkrescue.in: Alias sashARCS as sash.
768
d1989e2e
VS
7692013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
772 it's serial.
773
1a25e72c
VS
7742013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * util/grub-install.in: Fix target fo qemu_mips.
777 Fix extension on EFI.
778
a59a9826
VS
7792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
782 in front of chosen entry to mark it even if highlighting is lost.
783
1a40f80c
VS
7842013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
787 gfxpayload=keep if cbfb is active.
788
e343549c
VS
7892013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
792
45fbd9a2
VS
7932013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Add missing video ids to coreboot and ieee1275 video.
796
ab1440bd
VS
7972013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * util/grub-mkrescue.in: Add mips-arc support.
800
cdeb8324
VS
8012013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
804
8528c879
VS
8052013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
806
807 Move mips-arc link address. Previous link address was chosen
808 in belief that RAM on SGI platforms grows down while in fact it
809 grows up from an unusual base.
810
17fca573
VS
8112013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
812
813 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
814 Fix a type which prevented CD-ROM and floppy boot.
815
d178788e
VS
8162013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
817
818 Support coreboot framebuffer.
819
820 * grub-core/video/i386/coreboot/cbfb.c: New file.
821
fe4c3e7e
VS
8222013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
825 detecting too small regions.
826
ec2dd179
VS
8272013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
828
829 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
830
872dac83
VS
8312013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
832
833 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
834 Remove dprintf.
835 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
836
90ec4b7f
VS
8372013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
840 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
841 * grub-core/loader/powerpc/ieee1275/linux.c
842 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
843
f32555dd
VS
8442013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
847 Look for /boot-rom as well as /rom/boot-rom.
848
38649799
VS
8492013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
852 handling when creating text_layer failed.
853 * grub-core/video/video.c (grub_video_create_render_target):
854 Set result to 0 on error.
855 (grub_video_delete_render_target): Do not dereference NULL.
856
aeace7f7
VS
8572013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
860 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
861 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
862 (grub_linux_load64): Mask out 2 high bits.
863
4eafa175
AB
8642013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
865
866 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
867 more place.
868
daaa64bd
VS
8692013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
870
871 Add support for pseries and other bootinfo machines to grub-mkrescue.
872
873 Tested by: Paulo Flabiano Smorigo.
874
d0d2daa6
VS
8752013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * util/grub-mkrescue.in: Add GPT for EFI boot.
878
b193e100
VS
8792013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
880
881 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
882 It improves performance in qemu.
883
a0f8f3ac
VS
8842013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * build-aux/snippet: Add missing gnulib files.
887
284df0e2
AB
8882013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
889
890 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
891
740201f3
AB
8922013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
893
894 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
895
a7e03923
PJ
8962013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
8972013-04-15 Peter Jones <pjones@redhat.com>
898
899 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
900 sectors.
901 Based on patch by Peter Jones.
902
25fc51a8
VS
9032013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
904
905 Fix DMRAID partition handling.
906
88017d47
VS
9072013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
908
909 * tests/grub_cmd_date.in: Skip on sparc64.
910
fa7d914e
VS
9112013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
914 firmware error messages.
915
cbe57a48
VS
9162013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
919 source and destination differ.
920
21aecce0
VS
9212013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
924 detection.
925
25092d29
VS
9262013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
929 match config-util.h to avoid warnings and increase compatibility.
930
79451522 9312013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 9322013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
933
934 Add option to compress files on install/image creation.
935
78b7d77b
VS
9362013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * docs/grub-dev.texi: Rearrange menu to match the section order.
939 Reported by: Bryan Hundven.
940
cc2fa5ec
VS
9412013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
944
b49fe879
VS
9452013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
946
947 Move GRUB out of system area when using xorriso 1.2.9 or later.
948
5351da81
VS
9492013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * tests/grub_cmd_date.in: Add missing exit 1.
952
c9d586ea
VS
9532013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * tests/partmap_test.in: Skip on sparc64.
956
3f729741
VS
9572013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
958
959 Support grub-shell on sparc64.
960
8ca86b3a
VS
9612013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Support mkrescue on sparc64.
964
aa1af9bb
VS
9652013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Allow IEEE1275 ports on path even if it wasn't detected automatically.
968 Needed on OpenBIOS due to incomplete device tree.
969
ac4fea79
VS
9702013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
973 would be otherwise excluded.
974
9752013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
976
977 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
978 Inline name defines used only once.
979
fe22b071
VS
9802013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
981
982 Fix memory leaks in ofnet.
983 Reported by: Francesco Lavra.
984
9d21381b
VS
9852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
986
987 * docs/man/grub-glue-efi.h2m: Add missing file.
988
07aec23c
VS
9892013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
992
67ab8353
VS
9932013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
994
995 Better support Apple Intel Macs on CD.
996
ba44ca6d
VS
9972013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
998
999 Replace stpcpy with grub_stpcpy in tools.
1000
bbdd6305
VS
10012013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 Handle Japanese special keys.
1004 Reported by: Hiroyuki YAMAMORI.
1005 Codes supplied by: Hiroyuki YAMAMORI.
1006
8573d302
VS
10072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * util/grub-mkimage.c: Document memdisk implying --prefix.
1010
d70dbab7
VS
10112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
1014 much we can do about it anyway.
1015
51a4c3e3
AN
10162013-04-12 Aleš Nesrsta <starous@volny.cz>
1017
1018 Fix handling of split transfers.
1019
92c8f58d
VS
10202013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * grub-core/net/http.c: Fix bad free.
1023
b7d17a49
VS
10242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1027 than buffer size.
1028
a3d566d4
VS
10292013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1032
a936af56
VS
10332013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * tests/util/grub-shell.in: Fix it on powerpc.
1036
51212234
VS
10372013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Turn off QEMU ACPI-way since new releases don't have shutdown port
1040 anymore.
1041
a21eec9e
VS
10422013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * docs/grub.texi: Update coreboot status info.
1045
e3734b84
VS
10462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * tests/grub_cmd_date.in: New test for datetime.
1049
f9d40055
VS
10502013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * tests/partmap_test.in: Fix missing qemudisk setting.
1053
dbc56d8f
VS
10542013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 Support i386-ieee1275 grub-mkrescue and make check on it.
1057
a79b8a15
VS
10582013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1061 feature for it.
1062
48f39bb4
VS
10632013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1066 GRUB_CMDLINE_XEN_DEFAULT.
1067 Reported by: Marc Warne (GigaTux) <gigatux>
1068
053cfcdd
VS
10692013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 Import new gnulib.
1072
93cd84df
VS
10732013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 Use ACPI shutdown intests as traditional port was removed.
1076
f4b1fa4f
AB
10772013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1078
1079 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1080 distinction.
1081
49818a59
VS
10822013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1085 Fix few warining messages and leaks while on it.
1086
9277a306
AB
10872013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1088
1089 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1090 links under grub-core/lib/libgcrypt-grub/mpi.
1091
d5e2a158
VS
10922013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Fix ia64-efi image generation on big-endian machines. Deduplicate
1095 some code while on it.
1096 Reported by: Leif Lindholm.
1097
18866643
AB
10982013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1099
1100 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1101 as extra_dist.
1102
ca53deb8
AB
11032013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1104
1105 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1106
d4c4b8e1
BH
11072013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1108
1109 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1110 texinfo-5.1.
1111
47043f95
VS
11122013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 * grub-core/normal/term.c: Few more fixes for menu entry editor
1115 rendering.
1116 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1117
a3216068
VS
11182013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * grub-core/normal/term.c: Few more fixes for menu entry editor
1121 rendering.
1122 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1123
21026747
AB
11242013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1125
1126 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1127 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1128
59624ca8
AB
11292013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1130
1131 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1132 instead of hardcoding grub.mo.
1133
1f44478c
FN
11342013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1135
1136 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1137
eeada7b1
VS
11382013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1141 grub-core/disk/geli.c.
1142
132867de
VS
11432013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * util/grub-mkfont.c: Prefer enum to #define.
1146
de73de17
VS
11472013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1150
1865baa7
VS
11512013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1154
ce7d92a9
VS
11552013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1158
52eab656
VS
11592013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1162
98b23b95
VS
11632013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * include/grub/bsdlabel.h: Use enums.
1166
0467a5dd
VS
11672013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 Move GRUB_CHAR_BIT to types.h.
1170
16cc9f03
AB
11712013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1172
1173 * docs/grub.texi: Document more user commands.
1174
3152aecb
AB
11752013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1176
1177 * docs/grub.texi: Document menuentry --id option.
1178
c506fc30
FL
11792013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1180
1181 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1182
aa428238
VS
11832013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 Unify file copying setup across different install scripts. Add
1186 options for performing partial install.
1187
efe0cdda
PJ
11882013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11892013-04-04 Peter Jones <pjones@redhat.com>
1190
1191 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1192
f75835bd
VS
11932013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 Use TSC as a possible time source on i386-ieee1275.
1196
2cd5ce6c
VS
11972013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1200 Init err.
1201
c9625630
VS
12022013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * util/grub-setup.c (setup): Handle some corner cases.
1205
be008941
VS
12062013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1209
1a78d573
VS
12102013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/commands/verify.c: Save verified file to avoid it being
1213 tampered with after verification was done.
1214
db8ff59f
VS
12152013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1218 reported width by one to compensate for curesor algorithm problem.
1219
91bf46b1
VS
12202013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 Fix screen corruption in menu entry editor and simplify the code
1223 flow while on it.
1224
a7b1d693
AB
12252013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1226
1227 * util/grub-mount.c (fuse_init): Return error if fuse_main
1228 failed.
1229
31df9ad8
FL
12302013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1231
1232 * include/grub/elf.h: Add missing ARM relocation codes and fix
1233 existing ones.
1234
07f392eb
VT
12352013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1236
1237 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1238
9efd73ec 12392013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
12402013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1243 into account when calculating radius.
1244
12452013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
1246
1247 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1248
4985ddaa
VT
12492013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1250
1251 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1252
8c3635ff
RS
12532013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1254
1255 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1256 missing closing bracket.
1257
74a35e69
RS
12582013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1259
1260 * INSTALL: Mention xorriso requirement.
1261
40f1c000
AB
12622013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1263
1264 * grub-core/commands/verify.c: Fix hash algorithms values for
1265 the first three hashes - they start with 1, not with 0.
1266
e75fdee4
VS
12672013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1270 Try terminating EFI services several times due to quirks in some
1271 implementations.
1272
33028f4c
CW
12732013-03-26 Colin Watson <cjwatson@ubuntu.com>
1274
1275 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1276 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1277 BankField extended opcodes.
1278 (get_sleep_type): Add minimal scope handling (just enough to
1279 handle setting the scope to the root path).
1280 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1281 * include/grub/acpi.h: Add enumeration values for Event, Device,
1282 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1283
33871a10
VT
12842013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1285
1286 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1287 memory leak.
1288
8990963a
VS
12892013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/disk/ahci.c: Give more time for AHCI request.
1292
daae8f9e
VS
12932013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1296 command.
1297
6a7fb94b
VS
12982013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 Replace the region at 0 from coreboot tables to available in BSD
1301 memory map.
1302
ff99babd
VS
13032013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
1306 non-BIOS platforms.
1307
30d6b1b2
VS
13082013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
1311 platforms.
1312
6ccd0b31
VS
13132013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1316 handling of multi-device filesystems.
1317
23c9cc04
VS
13182013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
1321 platforms.
1322
ce50dbd7
VS
13232013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 Add new 'proc' filesystem framework and put luks_script into it.
1326
d975e8d5
VS
13272013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
1330 and qemu.
1331
e73ba5e8
VS
13322013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
1335
92750e4c
VS
13362013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 Add ability to generate newc additions on runtime.
1339
0ec45a68
VS
13402013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
1343 description.
1344
320abd43
VS
13452013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * po/POTFILES.in: Regenerate.
1348
d7a6506e
VS
13492013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/commands/verify.c (hashes): Add several hashes
1352 from the spec.
1353
8fe05def
VS
13542013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 Slight improve in USB-related boot-time checkpoints.
1357
524e2766
VS
13582013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * grub-core/commands/boottime.c: Fix copyright header.
1361
cc19857a
VS
13622013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
1365 coreboot tables content. Support for cbmemc.
1366
ef8810e9
VS
13672013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 Fix a conflict between ports structures with 2 controllers of
1370 same kind.
1371
e9dabdfa
VS
13722013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 * include/grub/boottime.h: Add missing file.
1375
f6df57d2
VS
13762013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Initialize USB ports in parallel to speed-up boot.
1379
d745dda7
VS
13802013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 Fix USB devices not being detected when requested
1383 due to delayed attach.
1384
e5a2dd7b
VS
13852013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1386
e744219b
VS
1387 Implement boot time analysis framework.
1388
13892013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
1392 descriptor to just receive it as argument rather than endpoint
1393 address.
1394
5dd6f587
VS
13952013-03-19 Aleš Nesrsta <starous@volny.cz>
1396
1397 Better estimate the maximum USB transfer size.
1398
2f1071d5
VS
13992013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 Resend a packet if we got the wrong buffer in status.
1402
46ecfc49
VS
14032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
1406 multiplication rather than division.
1407
ea811130
VS
14082013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
1411 than divisions.
1412
d2789cf0
VS
14132013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
1416 operations to have intended shifts and not divisions.
1417
a9c94590
VS
14182013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
1421 intended shifts rather than division.
1422
84cfe81b
VS
14232013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
1426 computation for some years before epoch. Avode confusing division
1427 while on it.
1428
21344ef6
VS
14292013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * grub-core/video/i386/pc/vbe.c
1432 (grub_video_vbe_print_adapter_specific_info): Replace division by
1433 shifts.
1434
3f2b4d1a
VS
14352013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 Adjust types in gdb module to have intended unsigned shifts rather than
1438 signed divisions.
1439
3dac5878
VS
14402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
1443 maximum size is 4G - 1 on hfs
1444
5341c0fb
VS
14452013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
1448
fc3ff2a2
VS
14492013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
1452 function.
1453
81455e8e
AB
14542013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
1455
1456 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
1457 causing gcc error with gcc 4.7.1.
1458
efd4f117
NZ
14592013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1460
1461 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
1462 dereference null pointer. While the code is technically correct, gcc
1463 may eliminate a null check if pointer is already dereferenced.
1464
e11645f4
NZ
14652013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1466
1467 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
1468 OOM check.
1469 * grub-core/normal/term.c (read_terminal_list): Likewise.
1470
77468368
VS
14712013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 Lift up core size limits on some platforms. Fix potential memory
1474 corruption with big core on small memory systems. Document remaining
1475 limits.
1476
f6b58fe5
VS
14772013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
1480 gotoxy to 0,0.
1481
19ce697d
VS
14822013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 Remove all trampoline support. Add -Wtrampolines when
1485 present. Remove symbols used for trampolines to make
1486 link fail if trampolines are present.
1487
73b5d90f
VS
14882013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
1491 append out of its parent.
1492
cb758e96
VS
14932013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
1496 parent.
1497
3188131f
VS
14982013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
1501 all vars to a macro. All users updated.
1502
e42b2514
VS
15032013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/disk/ieee1275/nand.c: Fix compilation on
1506 i386-ieee1275.
1507
83e1a1a1
VS
15082013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
1511
1d5a880f
VS
15122013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
1515
6e4146c4
VS
15162013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 Move to more hookless approach in IEEE1275 devices handling.
1519
99fcda8a
VS
15202013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 * grub-core/kern/term.c (grub_term_normal_color),
1523 (grub_term_highlight_color): Add back lost defaults.
1524
73bf57e2
VS
15252013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 Make elfload not use hooks. Opt for flags and iterators instead.
1528
7f8c105f
VS
15292013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
1532 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
1533
396d4091
VS
15342013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/script/execute.c (gettext_append): Remove nested functions.
1537
15382013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
1541 hook pass-through parameter. All users updated and unnested.
1542
74a27421
VS
15432013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
1546 out of its parent.
1547
b46d4213
VS
15482013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 * grub-core/fs/hfs.c: Remove nested functions.
1551
e114c3cc
VS
15522013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
1555 the context through.
1556 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
1557
f9b7d780
VS
15582013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * util/grub-editenv.c (list_variables): Move print_var out of its
1561 parent.
1562
ca9c2608
VS
15632013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
1566 function.
1567
5d983f5f
VS
15682013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * grub-core/gentrigtables.c: Make tables const.
1571
3056d3e7
VS
15722013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 Remove nested functions from videoinfo iterators.
1575
e2303774
VS
15762013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
1579 for 64-bit platforms.
1580
f42e3a2f
VS
15812013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
1584 a FOR_CHILDREN macro.
1585
be174e5e
VS
15862013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
1589 platform from firmware path.
1590
0789b672
VS
15912013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 Enable linux16 on non-BIOS systems for i.a. memtest.
1594
1595 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
1596 correctly.
1597 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
1598
005a9c32
VS
15992013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
1602 Fix end of table condition.
1603
ff2b3cd9
VS
16042013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
1607 out of its parent.
1608
4fc40ff8
VS
16092013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/fs/jfs.c: Remove nested functions.
1612
be42d97a
VS
16132013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/fs/minix.c: Remove nested functions.
1616
99373ce4
VS
16172013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/fs/iso9660.c: Remove nested functions.
1620
5aec2afe
VS
16212013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
1624 of parent function.
1625
6c69e691
VS
16262013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * util/grub-fstest.c: Remove nested functions.
1629
43c91882
VS
16302013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/loader/machoXX.c: Remove nested functions.
1633
4eb8b756
CW
16342013-02-27 Colin Watson <cjwatson@ubuntu.com>
1635
1636 Remove nested functions from disk and file read hooks.
1637
1638 * include/grub/disk.h (grub_disk_read_hook_t): New type.
1639 (struct grub_disk): Add read_hook_data member.
1640 * include/grub/file.h (struct grub_file): Likewise.
1641 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
1642 argument.
1643
1644 Update all callers.
1645
df6da5a5
AB
16462012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
1647
1648 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
1649 Fix off by one error in enumerating extended partitions.
1650
21aecde5
AB
16512013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
1652
1653 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
1654 memory leak if device name is not found.
1655
f1a19118
AB
16562013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1657
1658 * grub-core/normal/menu_entry.c (update_screen): remove
1659 unused variable `off' which caused scroll down arrow to be always shown.
1660
958bfd20
AB
16612013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1662
1663 * grub-core/normal/menu_entry.c (insert_string): fix off by one
1664 access to unallocated memory.
1665
b7b78edb
AB
16662013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1667
1668 * Makefile.util.def: Add partmap/msdos.c to common library.
1669 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
1670 * grub-core/disk/ldm.c: Check for existence of
1671 GRUB_PC_PARTITION_TYPE_LDM.
1672
28d468d6
VS
16732013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
1676 sizes and display sector size.
1677
d55ffb02
VS
16782013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 Implement new command cmosdump.
1681
b5ea6ce0
VS
16822013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1683
1684 Support Openfirmware disks with non-512B sectors.
1685
1686 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
1687 size of the disk.
1688 * (grub_ofdisk_get_block_size): New function.
1689 * (grub_ofdisk_prepare): Use the correct block size.
1690 * (grub_ofdisk_read): Likewise.
1691 * (grub_ofdisk_write): Likewise.
1692 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
1693 New proto.
1694
cc0e476f
VS
16952013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
1698
c5dbdc33
VS
16992013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
1702 on first error.
1703
3f078c0f
VS
17042013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
1707 freeing it.
1708
66a93674
VS
17092013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 Implement USBDebug (full USB stack variant).
1712
c9f0c134
VS
17132013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
1716 unless they have unexpected values.
1717
cfe1288b
VS
17182013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
1721 grub_print_error.
1722
e42b9969
VS
17232013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
1726 zero-out of port structure.
1727
cf94fd62
VS
17282013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
1731 of extended attributes.
1732
f81ef4b5
AB
17332013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
1734
1735 * util/grub-install.in: change misleading comment about
1736 device.map creation
1737
af18fdb4
VS
17382013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
1741 when menu highlight color isn't set.
1742
08bcec50
M
17432013-01-27 C. Masloch <pushbx@38.de>
1744
1745 Improve FreeDOS direct loading support compatibility.
1746
1747 * include/grub/i386/relocator.h (grub_relocator16_state):
1748 New member ebp.
1749 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
1750 variable.
1751 (grub_relocator16_boot): Handle %ebp.
1752 * grub-core/lib/i386/relocator16.S: Likewise.
1753 * grub-core/loader/i386/pc/freedos.c:
1754 Load BPB to pass kernel which partition to load from.
1755 Check that kernel file is not too large.
1756 Set register dl to BIOS unit number as well.
1757
7782b8a6
CW
17582013-01-22 Colin Watson <cjwatson@ubuntu.com>
1759
1760 * util/grub-reboot.in (usage): Document the need for
1761 GRUB_DEFAULT=saved.
1762 * util/grub-set-default.in (usage): Likewise.
1763 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
1764
e661c180
VS
17652013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
1768 than defining WORDS_BIGENDIAN manually.
1769
1c22ca9a
VS
17702013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
1773 invariants.
1774
d44892fe
CW
17752013-01-21 Colin Watson <cjwatson@ubuntu.com>
1776
1777 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
1778 nested.
1779 (blit_comb: add_device_width): Likewise.
1780
5fdbaed1
CW
17812013-01-21 Colin Watson <cjwatson@ubuntu.com>
1782
1783 Remove nested functions from USB iterators.
1784
1785 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
1786 (grub_usb_controller_iterate_hook_t): Likewise.
1787 (grub_usb_iterate): Add hook_data argument.
1788 (grub_usb_controller_iterate): Likewise.
1789 (struct grub_usb_controller_dev.iterate): Likewise.
1790
1791 Update all implementations and callers.
1792
4250985a
VS
17932013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
1796 margin when not needed.
1797
7d8848f3
VS
17982013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1799
bc136973 1800 Make color variables global instead of it being per-terminal.
7d8848f3
VS
1801
18022013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1803
bc136973
VS
1804 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
1805 asterisk.
7d8848f3 1806
ed12a003
CW
18072013-01-21 Colin Watson <cjwatson@ubuntu.com>
1808
1809 Fix powerpc and sparc64 build failures caused by un-nesting memory
1810 map iterators.
1811
6a0db449
CW
18122013-01-21 Colin Watson <cjwatson@ubuntu.com>
1813
1814 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
1815 parameter declarations.
1816
ccd86b21
VS
18172013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
1820
822b726b
VS
18212013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 Improve spkmomdem reliability by adding a separator between bytes.
1824
115c2cc1
CW
18252013-01-21 Colin Watson <cjwatson@ubuntu.com>
1826
1827 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1828 an Acer registration utility with several sightings in the wild.
1829 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1830
fc524edf
CW
18312013-01-21 Colin Watson <cjwatson@ubuntu.com>
1832
1833 Remove nested functions from filesystem directory iterators.
1834
1835 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1836 (struct grub_fs.dir): Add hook_data argument.
1837
1838 Update all implementations and callers.
1839
53d3e4e3
CW
18402013-01-21 Colin Watson <cjwatson@ubuntu.com>
1841
1842 * docs/grub.texi (Multi-boot manual config): Fix typo for
1843 "recommended".
1844
c821711f
LL
18452013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1846
1847 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1848 until after its use in generate_image.
1849
6a0debbd
CW
18502013-01-20 Colin Watson <cjwatson@ubuntu.com>
1851
1852 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1853 initrd size to addr_min, since the initrd will be allocated after
1854 this address.
1855
f41e08db
AB
18562013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1857
1858 * conf/Makefile.common: Fix autogen rules to pass definition
1859 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1860
77529e0f
LL
18612013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1862
1863 * include/grub/elf.h: Update ARM definitions based on binutils.
1864
b879aa7b
VS
18652013-01-20 Aleš Nesrsta <starous@volny.cz>
1866
1867 Split long USB transfers into short ones.
1868
8eb8284d
AB
18692013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1870
1871 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
1872 is interrupted by ESC.
1873
08dad2dc
VS
18742013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * util/grub-script-check.c (main): Uniform the error message.
1877
6c724b85
CW
18782013-01-20 Colin Watson <cjwatson@ubuntu.com>
1879
1880 Remove nested functions from ELF iterators.
1881
25239370
CW
18822013-01-20 Colin Watson <cjwatson@ubuntu.com>
1883
1884 Remove nested functions from device iterators.
1885
1886 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1887 (grub_arc_iterate_devs): Add hook_data argument.
1888 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1889 (struct grub_ata_dev.iterate): Add hook_data argument.
1890 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1891 (grub_device_iterate): Add hook_data argument.
1892 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1893 (struct grub_disk_dev.iterate): Add hook_data argument.
1894 (grub_disk_dev_iterate): Likewise.
1895 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1896 Likewise.
1897 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1898 Likewise.
1899 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1900 type.
1901 (struct grub_partition_map.iterate): Add hook_data argument.
1902 (grub_partition_iterate): Likewise.
1903 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1904 (struct grub_scsi_dev.iterate): Add hook_data argument.
1905
1906 Update all callers.
1907
6c0314d6
CW
19082013-01-20 Colin Watson <cjwatson@ubuntu.com>
1909
1910 Fix typos for "developer" and "development".
1911
600dc5f1
VS
19122013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 Add license header to spkmodem-recv.c.
1915
17334a6b
VS
19162013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 Rewrite spkmodem to use PIT for timing. Double the speed.
1919
7d462559
VS
19202013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 Add new command pcidump.
1923
b78d6c32
VS
19242013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 New terminal outputs using serial: morse and spkmodem.
1927
34f71cb8
VS
19282013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1929
1930 Improve bidi handling in entry editor.
1931
4542e71b
VS
19322013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1935 argument to prevent name collision.
1936
09fd6d82
CW
19372013-01-15 Colin Watson <cjwatson@ubuntu.com>
1938
1939 Remove nested functions from script reading and parsing.
1940
1941 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1942 getline_data argument, passed to getline.
1943 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1944 getline_data argument, passed to grub_parser_split_cmdline.
1945 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1946 lexerstate->getline_data to lexerstate->getline.
1947 (grub_script_lexer_init): Add getline_data argument, saved in
1948 lexerstate->getline_data.
1949 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1950 argument, passed to grub_script_parse.
1951 * grub-core/script/script.c (grub_script_parse): Add getline_data
1952 argument, passed to grub_script_lexer_init.
1953 * include/grub/parser.h (grub_parser_split_cmdline): Update
1954 prototype. Update all callers to pass appropriate getline data.
1955 (struct grub_parser.parse_line): Likewise.
1956 (grub_rescue_parse_line): Likewise.
1957 * include/grub/reader.h (grub_reader_getline_t): Add void *
1958 argument.
1959 * include/grub/script_sh.h (struct grub_lexer_param): Add
1960 getline_data member.
1961 (grub_script_parse): Update prototype. Update all callers to pass
1962 appropriate getline data.
1963 (grub_script_lexer_init): Likewise.
1964 (grub_normal_parse_line): Likewise.
1965
1966 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1967 data argument.
1968 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1969 static instead of nested. Rename to ...
1970 (grub_parser_execute_getline): ... this.
1971 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1972 data argument.
1973 * grub-core/normal/main.c (read_config_file: getline): Make static
1974 instead of nested. Rename to ...
1975 (read_config_file_getline): ... this.
1976 (grub_normal_read_line): Add unused data argument.
1977 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1978 getline): Make static instead of nested. Rename to ...
1979 (grub_script_execute_sourcecode_getline): ... this.
1980 * util/grub-script-check.c (main: get_config_line): Make static
1981 instead of nested.
1982
d0d4b8a0
CW
19832013-01-15 Colin Watson <cjwatson@ubuntu.com>
1984
1985 Remove nested functions from memory map iterators.
1986
1987 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1988 argument, passed to hook.
1989 * grub-core/kern/i386/coreboot/mmap.c
1990 (grub_linuxbios_table_iterate): Likewise.
1991 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1992 instead of nested.
1993 (grub_machine_mmap_iterate): Add hook_data argument.
1994 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1995 Add hook_data argument, passed to hook.
1996 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1997 Likewise.
1998 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1999 Likewise.
2000 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
2001 Likewise.
2002 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
2003 Likewise.
2004 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
2005 Likewise.
2006 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
2007 Likewise.
2008 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
2009 (grub_machine_mmap_iterate): Likewise.
2010 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
2011 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
2012 prototype.
2013 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
2014 Remove NESTED_FUNC_ATTR from here and from all users.
2015 (grub_mmap_iterate): Update prototype.
2016 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2017 pass appropriate hook data.
2018 (grub_machine_mmap_iterate): Likewise.
2019
2020 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2021 static instead of nested.
2022 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2023 Rename to ...
2024 (lsmmap_hook): ... this.
2025 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2026 Likewise.
2027 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2028 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2029 heap_init): Likewise.
2030 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2031 Rename to ...
2032 (mmap_iterate_hook): ... this.
2033 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2034 Likewise.
2035 * grub-core/lib/ieee1275/relocator.c
2036 (grub_relocator_firmware_get_max_events: count): Likewise.
2037 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2038 to ...
2039 (grub_relocator_firmware_fill_events_iter): ... this.
2040 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2041 hook): Likewise. Rename to ...
2042 (grub_relocator_alloc_chunk_align_iter): ... this.
2043 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2044 Rename to ...
2045 (generate_e820_mmap_iter): ... this.
2046 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2047 Rename to ...
2048 (count_hook): ... this.
2049 (grub_linux_boot: hook): Likewise. Rename to ...
2050 (grub_linux_boot_mmap_find): ... this.
2051 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2052 (grub_linux_boot_mmap_fill): ... this.
2053 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2054 hook): Likewise. Rename to ...
2055 (grub_fill_multiboot_mmap_iter): ... this.
2056 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2057 hook): Likewise. Rename to ...
2058 (count_hook): ... this.
2059 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2060 hook): Likewise. Rename to ...
2061 (grub_fill_multiboot_mmap_iter): ... this.
2062 * grub-core/loader/powerpc/ieee1275/linux.c
2063 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2064 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2065 Likewise. Rename to ...
2066 (alloc_phys_choose): ... this.
2067 (determine_phys_base: get_physbase): Likewise.
2068 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2069 find_hook): Likewise.
2070 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2071 (malloc_hook: count_hook): Likewise.
2072 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2073 Likewise. Rename to ...
2074 (lower_hook): ... this.
2075 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2076 (upper_hook): ... this.
2077 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2078 (post64_hook): ... this.
2079 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2080 Likewise. Rename to ...
2081 (lower_hook): ... this.
2082 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2083 (upper_hook): ... this.
2084 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2085 (grub_mmap_iterate: fill_hook): Likewise.
2086 (fill_mask): Pass addr and mask within a single struct.
2087 (grub_cmd_badram: hook): Make static instead of nested. Rename
2088 to ...
2089 (badram_iter): ... this.
2090 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2091 (cutmem_iter): ... this.
2092
22099030
VS
20932013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2096 delimit path in strings using quotes.
2097 * util/getroot.c (grub_guess_root_devices): Likewise.
2098 (grub_make_system_path_relative_to_its_root): Likewise.
2099 * util/grub-probe.c (probe): Likewise.
2100 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2101 (xrealpath): Likewise.
2102
4a9950ec
VS
21032013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 Fix compilation with older compilers.
2106
2107 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2108 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2109 declarations.
2110 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2111 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2112 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2113 identifier with b.
2114 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2115 * include/grub/crypto.h: Add type defines.
2116 * util/import_gcrypth.sed: Remove duplicate type defines.
2117
adcc6020
VS
21182013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 New command list_trusted.
2121
2122 * grub-core/commands/verify.c (grub_cmd_list): New function.
2123
a4528937
CW
21242013-01-13 Colin Watson <cjwatson@ubuntu.com>
2125
2126 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2127 info message.
2128
ca3a7446
CW
21292013-01-13 Colin Watson <cjwatson@ubuntu.com>
2130
2131 Remove nested functions from PCI iterators.
2132
2133 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2134 passed to hook. Update all callers to pass appropriate hook data.
2135 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2136 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2137 Remove NESTED_FUNC_ATTR from here and from all users.
2138 (grub_pci_iterate): Update prototype.
2139 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2140 instead of nested. Rename to ...
2141 (grub_cs5536_find_iter): ... this.
2142 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2143 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2144 Likewise.
2145 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2146 Likewise.
2147 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2148 Likewise.
2149 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2150 Likewise.
2151 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2152 * grub-core/video/radeon_fuloong2e.c
2153 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2154 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2155 find_card): Likewise.
2156 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2157 Likewise.
2158
f8e98fee
VS
21592013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/commands/verify.c: Mark messages for translating.
2162
055b36b6
VS
21632013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2166 fatal.
2167
f7ff879b
VS
21682013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2171 fatal.
2172
21732013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
2174
2175 * autogen.sh: Do not try to delete nonexistant files.
2176 * util/import_gcrypth.sed: Add some missing header removals.
2177
01323d49
CW
21782013-01-12 Colin Watson <cjwatson@ubuntu.com>
2179
2180 Clean up dangling references to grub-setup.
2181 Fixes Ubuntu bug #1082045.
2182
2183 * docs/grub.texi (Images): Refer generally to grub-install rather
2184 than directly to grub-setup.
2185 (Installing GRUB using grub-install): Remove direct reference to
2186 grub-setup.
2187 (Device map) Likewise.
2188 (Invoking grub-install): Likewise.
2189 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2190 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2191 * util/grub-install.in (usage): Likewise.
2192
2193 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2194 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2195 grub-setup.
2196 * configure.ac: Remove grub_setup output variable.
2197
2198 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2199 to grub-bios-setup.
2200 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2201 grub-setup to grub-sparc64-setup.
2202
5e3b8dcb
VS
22032013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 Import gcrypt public-key cryptography and implement signature checking.
2206
535714bd
VS
22072013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * grub-core/fs/ntfs.c: Ue more appropriate types.
2210 * grub-core/fs/ntfscomp.c: Likewise.
2211 * include/grub/ntfs.h: Likewise.
2212
3e4f3566
VS
22132013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 Support Apple FAT binaries on non-Apple platforms.
2216
2217 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2218 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2219 Likewise.
2220 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2221 Apple FAT binaries.
2222
4dedb13f
VS
22232013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2226 sector devices.
2227
f8861eaf
CW
22282013-01-07 Colin Watson <cjwatson@ubuntu.com>
2229
2230 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2231 explicitly zeroing elements.
2232 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2233 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2234 of elements in a structure already allocated using grub_zalloc.
2235 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2236
86065b0a
CW
22372013-01-07 Colin Watson <cjwatson@ubuntu.com>
2238
2239 * docs/grub.texi (grub_cpu): New subsection.
2240 (grub_platform): Likewise.
2241
c6f1e92f
VS
22422013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2245
f797ec85
VS
22462013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2249 divisions.
2250
033d0b4b
VS
22512013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2254 * grub-core/fs/ntfscomp.c: Likewise.
2255 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2256 (grub_ntfs_comp): Likewise.
2257
21d1b9a0
VS
22582013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2261 Rename to ...
2262 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2263 of groups_per_block. All users updated.
2264
10ca8645
VS
22652013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2268 grub_error properly.
2269 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2270 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2271
a4c3ed4c
VS
22722013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2275 always in /boot/zfs.
2276 Reported by: Yuta Satoh.
2277
0b716507
YS
22782013-01-03 Yuta Satoh <nigoro>
2279
2280 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2281 ${grub_probe}
2282
00c05e22
VS
22832013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * configure.ac: Extend -Wno-trampolines to host.
2286
dadddb76
VS
22872013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2290 entry->len = 0.
2291
54ce53ca
CW
22922013-01-03 Colin Watson <cjwatson@ubuntu.com>
2293
2294 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2295 (Invoking grub-script-check): Likewise.
2296
8912efca
CW
22972013-01-03 Colin Watson <cjwatson@ubuntu.com>
2298
2299 * docs/grub.texi (Invoking grub-mount): New section.
2300 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2301
c3fc8394
CW
23022013-01-02 Colin Watson <cjwatson@ubuntu.com>
2303
2304 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
2305 test failures, so that a failing unit test correctly causes 'make
2306 check' to fail.
2307
45d26abb
CW
23082013-01-02 Colin Watson <cjwatson@ubuntu.com>
2309
2310 Fix failing printf test.
2311
2312 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
2313 '$' in the correct order when collecting type information.
2314
971dd2c6
CW
23152013-01-02 Colin Watson <cjwatson@ubuntu.com>
2316
2317 * docs/grub.texi (configfile): Explain environment variable
2318 handling.
2319 (source): New section.
2320 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
2321
5c67ea6c
CW
23222012-12-31 Colin Watson <cjwatson@ubuntu.com>
2323
2324 Remove several trivially-unnecessary uses of nested functions.
2325
2326 * grub-core/commands/i386/pc/sendkey.c
2327 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
2328 instead of nested.
2329 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
2330 Rename to ...
2331 (legacy_file_getline): ... this.
2332 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
2333 Likewise.
2334 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
2335 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
2336 to ...
2337 (probe_dummy_iter): ... this.
2338 * grub-core/kern/i386/coreboot/mmap.c
2339 (grub_linuxbios_table_iterate: check_signature): Likewise.
2340 * grub-core/kern/parser.c (grub_parser_split_cmdline:
2341 check_varstate): Likewise. Mark inline.
2342 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
2343 an additional parameter.
2344 (find_long: fnd_long): Likewise. Pass two additional parameters.
2345 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
2346 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
2347 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
2348 Likewise. Rename to ...
2349 (grub_cmos_find_port_iter): ... this.
2350 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
2351 Rename to ...
2352 (find_rtc_iter): ... this.
2353
2354 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
2355 function directly into the function body, since it is only called
2356 once.
2357
33a68ac6
CW
23582012-12-30 Colin Watson <cjwatson@ubuntu.com>
2359
2360 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
2361 __attribute__ ((unused)).
2362 * grub-core/video/bochs.c (find_card): Likewise.
2363 * grub-core/video/cirrus.c (find_card): Likewise.
2364 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
2365 * grub-core/video/sis315pro.c (find_card): Likewise.
2366 * grub-core/video/sm712.c (find_card): Likewise.
2367
608b647a
CW
23682012-12-28 Colin Watson <cjwatson@ubuntu.com>
2369
2370 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
2371 Fixes Savannah bug #37821.
2372
fd49ceb3
CW
23732012-12-28 Colin Watson <cjwatson@ubuntu.com>
2374
2375 Apply program name transformations at build-time rather than at
2376 run-time. Fixes Debian bug #696465.
2377
2378 * acinclude.m4 (grub_TRANSFORM): New macro.
2379 * configure.ac: Create output variables with transformed names for
2380 most programs.
2381 * util/bash-completion.d/grub-completion.bash.in: Use
2382 pre-transformed variables for program names.
2383 * util/grub-install.in: Likewise.
2384 * util/grub-kbdcomp.in: Likewise.
2385 * util/grub-mkconfig.in: Likewise.
2386 * util/grub-mkconfig_lib.in: Likewise.
2387 * util/grub-mknetdir.in: Likewise.
2388 * util/grub-mkrescue.in: Likewise.
2389 * util/grub-mkstandalone.in: Likewise.
2390 * util/grub-reboot.in: Likewise.
2391 * util/grub-set-default.in: Likewise.
2392 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2393 * tests/util/grub-shell-tester.in: Remove unused assignment.
2394 * tests/util/grub-shell.in: Likewise.
2395 * util/grub.d/00_header.in: Likewise.
2396
7024b3c0
CW
23972012-12-28 Colin Watson <cjwatson@ubuntu.com>
2398
2399 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
2400
2401 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
2402 HAVE_RAW_DECL_GETS.
2403 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
2404
e3501b13
VS
24052012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
2408 Reported by: Eriks Latosheks <foresterlv>.
2409
b40c88a9
VS
24102012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * docs/grub.texi (Network): Update instructions on generating netboot
2413 image.
2414
ce96d01c
VS
24152012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
2418 around device name if necessarry.
2419
0f596201
PFS
24202012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2421
2422 * util/grub-install.in: Follow the symbolic link parameter added
2423 to the file command.
2424
600d5bdb
AB
24252012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
2426
2427 * util/grub-install.in: Remove stale TODO.
2428
64ebd2f4
PFS
24292012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2430
2431 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
2432 dynamic allocation for the bootpath buffer.
2433
74b2fe3e
DTB
24342012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
2435
2436 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
2437 window too small.
2438
969b804f
VS
24392012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
2442 argument rather than font name. All users updated.
2443 (grub_gfxterm_set_window): Likewise.
2444
b9f5ebd6
VT
24452012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2446
2447 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
2448 from working.
2449
258f43b7
VS
24502012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * util/getroot.c (convert_system_partition_to_system_disk): Support
2453 nbd disks.
2454
cc1ce5f9
VS
24552012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
2458 infinite loop on corrupted FS.
2459
e77a16ca
VS
24602012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 Fix big-endian mtime.
2463
2464 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
2465 together sec and usec.
2466 (grub_ufs_dir): Use correct byteswapping for UFS time.
2467
d9c48c7b
VS
24682012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 Support big-endian UFS1.
2471
2472 * Makefile.util.def (libgrubmods): Add ufs_be.c
2473 * grub-core/Makefile.core.def (ufs1_be): New module.
2474 * grub-core/fs/ufs_be.c: New file.
2475 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
2476 the file.
2477
2f9f40ba
LL
24782012-11-28 Leif Lindholm <leif.lindholm@arm.com>
2479
2480 * include/grub/types.h: Fix functionality unaffecting typo in
2481 GRUB_TARGET_WORDSIZE conditional macro.
2482
48ff0889
PFS
24832012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2484
2485 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
2486
03711240
GS
24872012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2488
2489 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
2490 that /netbsd appears first (when it exists).
2491
a31b11bd
CJ
24922012-10-12 Christoph Junghans <ottxor@gentoo.org>
2493
2494 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
2495 Fixes Savannah bug #37558.
2496
e8a5d5d4
CW
24972012-10-12 Colin Watson <cjwatson@ubuntu.com>
2498
2499 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
2500 description of extract_entries_configfile.
2501
25022012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
2503
2504 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
2505 preferred_address.
2506 (grub_cmd_linux): Likewise.
2507 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
2508 preferred_lifetime. Update all users.
2509
288c757d
CW
25102012-09-26 Colin Watson <cjwatson@ubuntu.com>
2511
2512 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
2513 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
2514
0d35da3f
CW
25152012-09-26 Colin Watson <cjwatson@ubuntu.com>
2516
2517 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
2518 errors from grub-probe to /dev/null, not stdout.
2519
b78c3127
VS
25202012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
2523 sector 1.
2524
473959f0
CW
25252012-09-24 Colin Watson <cjwatson@ubuntu.com>
2526
2527 * util/grub-install.in: Make the error message if $source_dir
2528 doesn't exist more useful.
2529
794c8c33
CW
25302012-09-22 Colin Watson <cjwatson@ubuntu.com>
2531
2532 Fix grub-emu build on FreeBSD.
2533
2534 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
2535 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
2536 headers on Linux.
2537 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
2538 implementation is currently Linux-specific.
2539 * util/getroot.c (exec_pipe): Define only on Linux or when either
2540 libzfs or libnvpair is unavailable.
2541 (find_root_devices_from_poolname): Remove unused path variable.
2542
86d08fdb
CW
25432012-09-19 Colin Watson <cjwatson@ubuntu.com>
2544
2545 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
2546 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
2547 should fit before end == 63.
2548
735abf54
CW
25492012-09-19 Colin Watson <cjwatson@ubuntu.com>
2550
2551 * util/grub-setup.c (write_rootdev): Remove unused core_img
2552 parameter. Update all callers.
2553 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
2554 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
2555 GRUB_SETUP_BIOS.
2556
140acd3c
VS
25572012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * util/grub-mkconfig_lib.in (grub_tab): New variable.
2560 (grub_add_tab): New function.
2561 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
2562 * util/grub.d/10_illumos.in: Likewise.
2563 * util/grub.d/10_kfreebsd.in: Likewise.
2564 * util/grub.d/10_linux.in: Likewise.
2565 * util/grub.d/10_netbsd.in: Likewise.
2566 * util/grub.d/10_windows.in: Likewise.
2567 * util/grub.d/10_xnu.in: Likewise.
2568 * util/grub.d/20_linux_xen.in: Likewise.
2569 * util/grub.d/30_os-prober.in: Likewise.
2570
7ddffdad
VS
25712012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2574 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
2575 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
2576 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
2577 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
2578 ieee1275-nocursor.
2579 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2580 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
2581
4e092454
VS
25822012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
2585 le-conversion.
2586 Reported by: BURETTE, Bernard.
2587
735abf54 25882012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
2589
2590 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
2591 from comment.
2592
dfd39dbd
CW
25932012-09-14 Colin Watson <cjwatson@ubuntu.com>
2594
2595 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
2596 IEEE1275 machines. Fixes powerpc-emu compilation.
2597 * include/grub/terminfo.h: Likewise.
2598
3bfa763c
VS
25992012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
2602 a const pointer.
2603 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
2604 const pointer.
2605 (efiemu_set_variable): Make vendor_guid a const pointer.
2606
250e475b
VS
26072012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 Don't require grub-mkconfig_lib to generate manpages for programs.
2610
2611 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
2612 dependencies, don't add grub-mkconfig_lib.
2613 (program): Pass empty adddeps.
2614 (script): Pass grub-mkconfig_lib as adddeps.
2615
592fd0e4
VS
26162012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
2619 * util/getroot.c (grub_find_device): Likewise.
2620 (get_mdadm_uuid): Likewise.
2621 (grub_util_is_imsm): Likewise.
2622 (grub_util_pull_device): Likewise.
2623 * util/grub-probe.c (probe): Likewise.
2624
801a3027
BG
26252012-09-10 Benoit Gschwind <gschwind>
2626
2627 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
2628 (devs): Add devpath_8.
2629
c5052c81
PJ
26302012-09-08 Peter Jones <pjones@redhat.com>
2631
2632 * grub-core/Makefile.core.def (efifwsetup): New module.
2633 * grub-core/commands/efi/efifwsetup.c: New file.
2634 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
2635 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
2636 New define.
2637 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
2638
8e832f71
JS
26392012-09-05 Jiri Slaby <jslaby@suse.cz>
2640
2641 * configure.ac: Add SuSe path.
2642
f0f55752
CW
26432012-09-05 Colin Watson <cjwatson@ubuntu.com>
2644
2645 * NEWS: Fix typo.
2646
ecadc4c2
CW
26472012-09-05 Colin Watson <cjwatson@ubuntu.com>
2648
2649 * util/import_gcry.py: Sort cipher_files, to make build system
2650 generation more deterministic.
2651
64498f25
VS
26522012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
2655 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
2656 (grub_set_datetime): Likewise.
2657
9cc836a2
VS
26582012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
2661 warnings.
2662
bcfcea01
VS
26632012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
2666
a4099485
VS
26672012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
2670
265c162a
CW
26712012-09-04 Colin Watson <cjwatson@ubuntu.com>
2672
2673 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
2674 required for checkouts from bzr, but it may be useful for users or
2675 distributors wishing to update translations against a tarball
2676 distribution, and it can be helpful for the tarball to be a superset
2677 of what's in bzr.
2678
3d171e95
CW
26792012-09-04 Colin Watson <cjwatson@ubuntu.com>
2680
2681 * Makefile.am (EXTRA_DIST): Add
2682 grub-core/tests/boot/linux.init-mips.S,
2683 grub-core/tests/boot/linux.init-ppc.S, and
2684 grub-core/tests/boot/linux-ppc.cfg.
2685
f2c2503e
CW
26862012-09-04 Colin Watson <cjwatson@ubuntu.com>
2687
2688 * grub-core/mmap/mips/loongson: Remove empty directory.
2689
26902012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
2691
2692 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
2693 gone.
2694
ab2163d5
CW
26952012-09-04 Colin Watson <cjwatson@ubuntu.com>
2696
2697 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
2698 grub-sparc64-setup.
2699
ce938140
GS
27002012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2701
2702 * configure.ac: Strengthen the test for working -nostdinc -isystem.
2703
529f58a5
GS
27042012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2705
2706 * po/POTFILES.in: Regenerated.
2707
16cf79e9
GS
27082012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2709
2710 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
2711 (NetBSD): New subsection.
2712
39b27f1e 27132012-07-22 Ales Nesrsta <starous@volny.cz>
2714
2715 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
2716 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
2717
a885261b
VS
27182012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
2721 * util/grub.d/10_hurd.in: Add missing quoting.
2722 * util/grub.d/10_illumos.in: Likewise.
2723 * util/grub.d/10_kfreebsd.in: Likewise.
2724 * util/grub.d/10_linux.in: Likewise.
2725 * util/grub.d/20_linux_xen.in: Likewise.
2726
7bd29c01
VS
27272012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 New command `lsefi'.
2730
2731 * grub-core/Makefile.core.def (lsefi): New module.
2732 * grub-core/commands/efi/lsefi.c: New file.
2733 * include/grub/efi/api.h: Add more GUIDs.
2734
ac625d8f
VS
27352012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
2738 (grub_bsd_elf32_hook): Likewise.
2739 (grub_bsd_elf64_size_hook): Likewise.
2740 (grub_bsd_elf64_hook): Likewise.
2741 (grub_bsd_load_elf): Likewise.
2742
e73bb801
VS
27432012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
2746 if hash function is unavailable.
2747 (dec_stream_header): Likewise.
2748
e81db8b5
VS
27492012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
2752 filter state.
2753
d187a1c3
VS
27542012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 Fix coreboot compilation.
2757
2758 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
2759 (grub_vga_text_init_real): ... this.
2760 (grub_vga_text_fini): Rename to ...
2761 (grub_vga_text_fini_real): ... this.
2762
91a05f64
VS
27632012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
2766
6af96df7
VS
27672012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/lib/legacy_parse.c: Support clear and testload.
2770
4d569e12
VS
27712012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
2774
073b57bb
VS
27752012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * grub-core/fs/ext2.c: Experimental support for 64-bit.
2778
a706f4cc
VS
27792012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 * grub-core/net/tftp.c (ack): Fix endianness problem.
2782 (tftp_receive): Likewise.
2783 Reported by: Michael Davidsaver.
2784
e7850aa9
VS
27852012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * gentpl.py: Make mans depend on grub-mkconfig_lib.
2788
27892012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
2792 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
2793 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
2794
35692881
VS
27952012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
2798 efi_mmap_size.
2799 Reported by: Stuart Hayes.
2800
c35fc5bd
VS
28012012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
2804
2805 * grub-core/Makefile.core.def (mda_text): New module.
2806 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
2807 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
2808 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
2809 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
2810 here.
2811 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
2812 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
2813 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
2814 here.
2815 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
2816 to ..
2817 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
2818 ... here
2819 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
2820 here.
2821 * grub-core/term/i386/vga_common.c: Removed.
2822 * include/grub/i386/vga_common.h: Likewise.
2823 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
2824 (grub_vga_cr_bw_read): Likewise.
2825 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2826 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2827 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2828 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2829 grub_vga_cr_read/grub_vga_cr_write.
2830 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2831
5f91f701
VS
28322012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * configure.ac: Bump version to 2.00.
2835 * grub-core/normal/main.c (features): Add feature_200_final.
2836
0c4f85f6
VS
28372012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
28382012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2839
2840 * NEWS: Fix unclarity and language mistakes.
2841
f923ad22
VS
28422012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2845 additional size to 3 pages.
2846 Reported by: Stuart Hayes.
2847
d22029ba
VS
28482012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * NEWS: Add 2.00 entry.
2851
58eee08f
VS
28522012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2855 put explicit "/" for empty path.
2856 (wildcard_expand): Improve dprintf.
2857
c59bdff7
VS
28582012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2861 it's equal to currnode. This can happen with "" symlink.
2862
5e6a440a
YB
28632012-06-27 Yves Blusseau <blusseau@zetam.org>
2864
2865 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
2866 echo shell command by printf command.
2867
73a68bcb
VS
28682012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
2871 the value returned by firmware is the maximal position, not diumension.
2872 (grub_terminfo_output_state): Use a more sane fallback.
2873
392a603b
VS
28742012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
2877
42d0867f
VS
28782012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2881 frequency to 150 MHz.
2882
489509f4
VS
28832012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 Apple fixes.
2886
2887 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2888 __APPLE_
2889 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2890 definition.
2891 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2892
9f3fc883
VS
28932012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 Handle slash in HFS label.
2896
2897 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2898 (grub_hfs_dir): Tanslate slash.
2899 (grub_hfs_label): Don't translate slash.
2900
54853fd7
VS
29012012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2904 network protocol listing since it introduces problematic dependency on
2905 net module.
2906
4dc02ddf
VS
29072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2910
c50c867d
VS
29112012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 Init video early on yeeloong to avoid being rebooted by watchdog.
2914
2915 * grub-core/Makefile.am (gensm712): New target.
2916 (sm712_start.S): Likewise.
2917 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2918 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2919 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2920 description.
2921 * include/grub/vga.h: Move registry definitions to...
2922 * include/grub/vgaregs.h: ... here.
2923
5f92c8a1
VS
29242012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2927 signedness.
2928
e9e6f111
VS
29292012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2932 platforms with firmware disk drivers in the core.
2933
754ad9eb
VS
29342012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2937 informative verbose message.
2938 (read_lv): Handle 64-bit segment size.
2939
315654c2
VS
29402012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2943
fb022c79
VS
29442012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2945
2946 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2947 character but still remove trainling spaces.
2948 (grub_fat_label): Ignore archive flag.
2949
8645f72c
VS
29502012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2953 cast between linux_kernel_header and linux_kernel_params.
2954
36498496
VS
29552012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2958 type for size.
2959 (grub_raid6_recover_func_t): Likewise.
2960 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2961 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2962
0b5ea6b8
VS
29632012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2966
650cfcfe
GS
29672012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2968
2969 Fix overflow.
2970
2971 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2972 [__NetBSD__]: Add explicit cast before bitshift.
2973
8a4d6a44
VS
29742012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * configure.ac: Bump to 2.00~rc1.
2977
2fb97ed3
VS
29782012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2981 half of $a0.
2982
1fa097dc
VS
29832012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
29842012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2985
2986 * docs/grub.texi: Fix search syntax.
2987 (Multi-boot manual config): Put msdos rather than GPT example.
2988 Grammar corrections.
2989
c890ba78
VS
29902012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2993
0f92dca7
VS
29942012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2997
3988c4a0
VS
29982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
3001 message on double free. Put the value of magic in case of mismatch.
3002
9e86d4c5
VS
30032012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 Speed-up video on yeeloong.
3006
3007 * grub-core/video/sm712.c (framebuffer): Remove render_target and
3008 add cached_ptr.
3009 (grub_video_sm712_video_fini): Unmap cached_ptr.
3010 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
3011 (grub_video_sm712_set_active_render_target): Removed.
3012 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3013 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
3014 sync caches.
3015
ed24c312
VS
30162012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 Avoid flushing the same line multiple times on loongson.
3019
3020 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3021 Step in 32 bytes and not 1 byte.
3022 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3023 Likewise.
3024
d1718e7d
VS
30252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3028 subvolumes.
3029
982f1909
VS
30302012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 Implement flow control for http.
3033
3034 * grub-core/net/http.c (parse_line): Handle response 206.
3035 (http_receive): Stall if too many packets are in the queue.
3036 (http_establish): Fix range header.
3037 (http_seek): Fix double free.
3038 (http_close): Likewise.
3039 (http_packets_pulled): New function.
3040 (grub_http_protocol): Set http_seek
3041 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3042 (ack_real): Set window depending on i_stall.
3043 (grub_net_send_tcp_packet): Likewise.
3044 (grub_net_tcp_stall): New function.
3045 (grub_net_tcp_unstall): Likewise.
3046 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3047 (grub_net_tcp_unstall): Likewise.
3048
bd407d6e
VS
30492012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3052
c7564b8e
VS
30532012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3056
a3706162
VS
30572012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * tests/util/grub-shell.in: Fix a typo.
3060
b27069e0
VS
30612012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Implement flow control for tftp.
3064
3065 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3066 packets but stop only if stop condition is satisfied.
3067 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3068 `stall' instead of `eof' as stop condition.
3069 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3070 (http_err): Likewise.
3071 * grub-core/net/tftp.c (ack): Replace the first argument with data
3072 instead of socket.
3073 (tftp_receive): Stall if too many packets are in wait queue.
3074 (tftp_packets_pulled): New function.
3075 (grub_tftp_protocol): Set packets_pulled.
3076 * include/grub/net.h (grub_net_packets): New field count.
3077 (grub_net_put_packet): Increment count.
3078 (grub_net_remove_packet): Likewise.
3079 (grub_net_app_protocol): New field `packets_pulled'.
3080 (grub_net): New field `stall'.
3081
6b9cfac6
VS
30822012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3085 sync part to handle them.
3086
f35abd81
VS
30872012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3090 * grub-core/net/drivers/ieee1275/ofnet.c
3091 (grub_ieee1275_net_config_real): Likewise.
3092
0e7ec820
VS
30932012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3096 the direct route for server/gateway.
3097
9d611a31
VS
30982012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3101 IP address to server name since we may not hame the DNS.
3102
418f45ab
VS
31032012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3106 freeing random buffer on failure.
3107 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3108
44a0efc1
VS
31092012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3112
531e2241
VS
31132012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3116 reserved bytes.
3117 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3118 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3119 Handle malloc error correctly.
3120
cde393c9
VS
31212012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3124 blocks.
3125
538478d0
VS
31262012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3129 increment.
3130
9b55efe0
VS
31312012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3134 none is explicitly specified.
3135
9eb832c3
VS
31362012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3139 while reallocating.
3140
d6b7c7c9
VS
31412012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 Respect netmask from bootp/dhcp.
3144
3145 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3146 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3147 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3148 into ...
3149 (grub_net_add_ipv4_local): ... this.
3150 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3151 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3152 (grub_net_add_ipv4_local): New proto.
3153
67caf9eb
VS
31542012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3157 determining EFI memory map size.
3158
43657558
VS
31592012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3162
eb6d0dd3
VS
31632012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3166 when looking for partition separator.
3167
31230544
VS
31682012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3171 Escape commas.
3172
918a2517
VS
31732012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 Restructure FAT driver to avoid hook in label reading as it hits a
3176 GCC bug.
3177
3178 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3179 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3180 (grub_fat_iterate_dir): Split into ...
3181 (grub_fat_iterate_init): ... this, ...
3182 (grub_fat_iterate_fini): ... this, ...
3183 (grub_fat_iterate_dir_next): ... and this. All users updated.
3184
9f1d654e
VS
31852012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3188 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3189 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3190 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3191 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3192 New fields last_key and last_key_time.
3193 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3194 extended key-esc into extended key-extended key.
3195
52f0f643
VS
31962012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Avoid unnecessary memcpy of whole video buffer.
3199
3200 * grub-core/video/fb/video_fb.c (dirty): New struct.
3201 (framebuffer): Add members current_dirty and previous_dirty.
3202 (dirty): New function.
3203 (grub_video_fb_fill_rect): Update dirty.
3204 (common_blitter): Likewise.
3205 (grub_video_fb_scroll): Likewise.
3206 (doublebuf_blit_update_screen): Copy only dirty part.
3207 (doublebuf_pageflipping_update_screen): Likewise.
3208 (grub_video_fb_doublebuf_blit_init): Init dirty.
3209 (doublebuf_pageflipping_init): Likewise.
3210 (grub_video_fb_setup): Likewise.
3211
e169a180
VS
32122012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3215 poll rate.
3216
48556879
VS
32172012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 Fix wildcard regexp dot and other special characters handling.
3220 Reported by: Robert Mabee.
3221
3222 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3223 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3224 (split_path): Trigger expansion on '?'.
3225 (unescape): New function.
3226 (wildcard_expand): Unescape parts copied without globbing.
3227 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3228 (grub_script_arglist_to_argv): Don't unescape expansions.
3229
0494408e
VS
32302012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * include/grub/net.h (grub_net_card): New member txbufsize.
3233 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3234 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3235 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3236 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3237 txbufsize.
3238 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3239 compatible property to check for macs. Set
3240 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3241 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3242 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3243 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3244 (send_card_buffer): Use txbuf.
3245 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3246 nested function out of the parent while on it.
3247
cc35fe8f
VS
32482012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3251 presence check.
3252 (grub_ieee1275_net_config_real): Fix config pointer.
3253
970a0a09
VS
32542012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3257 filename parsing to non-block devices.
3258
3e19bf87
VS
32592012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3262
c62d1a0c
VS
32632012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3266 All users updated.
3267
ef76bec3
VS
32682012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3271 UUID search command even if hints probing failed.
3272
32732012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
3274
3275 * po/POTFILES.in: Regenerated.
3276
70aaf305
VS
32772012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 Speed-up video on fuloong.
3280
3281 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3282 New function.
3283 (grub_pci_device_unmap_range): Handle non-cached address.
3284 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3285 add direct_ptr.
3286 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3287 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3288 (grub_video_sis315pro_set_active_render_target): Removed.
3289 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3290 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3291 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3292 sync caches.
3293 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3294 New proto.
3295
10400f0b
VS
32962012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * docs/grub.texi (Multi-boot manual config): New section.
3299
ba67e2c6
VS
33002012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 Avoid slow read-back from VRAM.
3303
3304 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3305 Move from here ...
3306 * grub-core/video/fb/video_fb.c
3307 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
3308 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
3309 (front_target): Remove front_target. Add pages.
3310 (grub_video_fb_init): Skip setting front_pages.
3311 (grub_video_fb_fini): Likewise.
3312 (doublebuf_blit_update_screen): Use pages.
3313 (grub_video_fb_doublebuf_blit_init): Likewise.
3314 (doublebuf_pageflipping_init): Allocate offscreen buffer.
3315 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
3316 (grub_video_fb_setup): Prefer doublebuffing.
3317
377c98cb
VS
33182012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
3321 gzio.
3322
eac49cff
VS
33232012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 Add loongson tests.
3326
3327 * tests/util/grub-shell.in: Handle loongson.
3328 * tests/partmap_test.in: Add loongson to the list of platform using ATA
3329 drivers.
3330 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
3331 Reboot instead of shutdown if REBOOT is defined.
3332
0321415e
VS
33332012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
3336 sized ports since unlike on real hardware qemu supports only 32-bit
3337 regs.
3338
3f2bdd8f
VS
33392012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * Makefile.util.def (grub-mkrescue): Enable on loongson.
3342 * util/grub-mkrescue.in: Handle loongson.
3343
29a049c9
VS
33442012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
3347 Set is_part appropriately.
3348 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
3349 names. Canonicalize partition without full disk.
3350
4abde346
VS
33512012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 Revert usb-quiesce since it's wrong.
3354
3355 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
3356 (grub_ofdisk_init): Don't do quiesce.
3357
61f1d93b
VS
33582012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
3361 PowerMac workaround to Xserves as well.
3362 Information supplied by: Benjamin Herrenschmidt.
3363
a09eb541
VS
33642012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 Don't assume that beginning address is also the entry point on ppc.
3367
3368 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
3369 (grub_linux_boot): Use linux_entry.
3370 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
3371 (grub_linux_load64): Likewise.
3372
505b3c9b
VS
33732012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
3376
cbe0b4ef
VS
33772012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
3380 needlessly lose the console.
3381
3006e981
VS
33822012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
3385 space.
3386
4e5a96b0
VS
33872012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3388
7da036bb
VS
3389 Remove non-functional EFI grub_get_rtc. Put a better fatal message
3390 than current grub_get_rtc() not implemented when booted with
3391 coreboot without TSC.
3392
3393 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
3394 Add machine/time.h to kernel headers on loongson.
3395 * grub-core/Makefile.core.def (kernel): Remove
3396 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
3397 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
3398 (grub_get_rtc): Likewise.
3399 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
3400 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
3401 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
3402 * grub-core/kern/i386/tsc.c (grub_tsc_init)
3403 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
3404 rather than installing known non-working time source.
3405 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
3406 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
3407 * include/grub/time.h: Don't include machine/time.h.
3408 * include/grub/efi/time.h: Removed.
3409 * include/grub/i386/efi/time.h: Likewise.
3410 * include/grub/i386/ieee1275/time.h: Likewise.
3411 * include/grub/powerpc/ieee1275/time.h: Likewise.
3412 * include/grub/sparc64/ieee1275/time.h: Likewise.
3413 * include/grub/x86_64/efi/time.h: Likewise.
3414
34152012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
3418
3419 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
3420 value.
3421 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
3422 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
3423 with dotless variants when any combining above is present.
3424
5561c22d
VS
34252012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
3428 text and not binary.
3429
96f7e60e
VS
34302012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 Stop polling as soon as we have the packet we were waiting for.
3433
3434 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
3435 All users updated.
3436 * grub-core/net/arp.c (have_pending): New var.
3437 (pending_req): Likewise.
3438 (grub_net_arp_send_request): Fill pending_req and use have_pending as
3439 stop indicator.
3440 (grub_net_arp_receive): Set have_pending.
3441 * grub-core/net/dns.c (recv_data): New field stop.
3442 (recv_hook): Set stop.
3443 (grub_net_dns_lookup): Init stop and use as stop condition.
3444 * grub-core/net/http.c (http_establish): Use headers_recv as stop
3445 condition.
3446 * grub-core/net/net.c (grub_net_poll_cards): New argument
3447 stop_condition. Stop when it goes true.
3448 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
3449 indicator.
3450 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
3451
3e747239
VS
34522012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 Keep TX and RX buffers on EFI rather than always allocate new ones.
3455
3456 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
3457 card. All users updated.
3458 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
3459 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
3460 (get_card_packet): Likewise.
3461 (grub_efinet_findcards): Init new fields.
3462
f695e99a
VS
34632012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
3466 compilation error on sparc64.
3467
9e5e66d1
VS
34682012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 Use ITC on IA64 rather than broken routine based on daytime.
3471
3472 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
3473 ia64.
3474 (grub_get_rtc) [__ia64__]: Likewise.
3475 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
3476 (get_itc): New function.
3477 (grub_rtc_get_time_ms): Likewise.
3478 (grub_machine_init): Calibrate ITC.
3479 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
3480 Keep only on non-ia64. Don't export since it's broken and used only
3481 if TSC is unavailable.
3482
a1767404
VS
34832012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
3486 even if it's used.
3487 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
3488 Skip if parent is unused.
3489
34b2bced
VS
34902012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
3493
5e619f40
VS
34942012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Fix wildcard escaping.
3497
3498 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
3499 * grub-core/script/execute.c (wildcard_escape): .. to here.
3500 Don't escape dot.
3501 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
3502 * grub-core/script/execute.c (wildcard_unescape): .. to here.
3503 Don't escape dot.
3504 * grub-core/script/execute.c (gettext_append): Always escape.
3505 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
3506 * grub-core/script/yylex.l: Don't cut away the escaping.
3507 * tests/grub_script_echo1.in: Add tests with wildcard.
3508
c8ca5855
VS
35092012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
3512 (ftdi_hw_configure): Likewise.
3513 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
3514 define.
3515 (real_config): Handle 1.5 stop bits.
3516 (pl2303_hw_configure): Likewise.
3517
7183452c
VS
35182012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * Makefile.am: Add ppc linux bootcheck.
3521 * grub-core/tests/boot/linux-ppc.cfg: New file.
3522 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
3523
f57c84cd
VS
35242012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * tests/grub_script_expansion.in: Skip network protocols.
3527
ecfc6207
VS
35282012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
3531
8d03d284
VS
35322012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
3535 --rom-directory.
3536 Add -graft-points.
3537
61c42af0
VS
35382012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 ESCC serial driver for conducting sautomated tests in qemu.
3541 Not tested on real hardware.
3542
3543 * include/grub/serial.h (grub_serial_port): New field escc_desc.
3544 * grub-core/term/ieee1275/escc.c: New file.
3545 * grub-core/Makefile.core.def (escc): New module.
3546
08fd1291
VS
35472012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
3550 invalid on error.
3551 (serial_hw_fetch): Don't read invalid handle.
3552 (serial_hw_put): Don't write into invalid handle.
3553
08dafeea
VS
35542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 Add a 1.5 stop bits value.
3557
3558 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
3559 * include/grub/serial.h (grub_serial_stop_bits_t): Add
3560 GRUB_SERIAL_STOP_BITS_1_5.
3561
9068fdcf
VS
35622012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
3565 value rather than let it uninited.
3566
f4d5820f
VS
35672012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * grub-core/commands/wildcard.c (+check_file): New function.
3570 (wildcard_expand): Don't expand to non-existing files, expand with
3571 suffix and not attempt to expand if not needed.
3572
3d2de9a7
VS
35732012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
3576 out of partitions containing other partitions.
3577
c5c81ff9
VS
35782012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
3581 on some qemu versions with GRUB.
3582
3583 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
3584 define.
3585 (grub_openbsd_bootarg_pcibios): New struct.
3586 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
3587 Add PCIINFO.
3588
08a14e0b
VS
35892012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3590
3591 * tests/util/grub-shell.in: Trim firmware output on EFI.
3592
cede3ca3
VS
35932012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
3596 and coreboot since it's already in kernel.
3597
558d3a60
VS
35982012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
3601 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3602 to here. New return value start. All users updated.
3603 Recursively scan linear mappings.
3604 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
3605 proto.
3606 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3607 Use grub_util_get_dm_node_linear_info.
3608 * util/getroot.c (convert_system_partition_to_system_disk): Use
3609 grub_util_info rather than grub_dprintf.
3610 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
3611
60fde14d
VS
36122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
3615
3616 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
3617 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
3618
24bd8838
VS
36192012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * include/grub/types.h (grub_set_unaligned64): New function.
3622 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
3623 (setup): Likewise.
3624
7bc06a49
VS
36252012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
3628 (grub_ofdisk_fini): Quiesce USB devices.
3629
49cea015
VS
36302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
3633 caches.
3634
8dcbe03b
VS
36352012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
3638
5b258735
VS
36392012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3640
3641 * grub-core/disk/pata.c (grub_pata_pio_read)
3642 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
3643 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
3644
37ba07eb
VS
36452012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 Extend automated tests to qemu-mips.
3648
3649 * Makefile.am: reorganise tests and enable qemu-mips.
3650 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
3651 * grub-core/tests/boot/linux.init-mips.S: New file.
3652 * tests/partmap_test.in: Handle ata0 disks.
3653 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
3654 non-pc i386.
3655
070038f8
VS
36562012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
3659 ia64.
3660 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
3661 quotes while on it.
3662
004be2cd
VS
36632012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
3666 (grub_halt): Likewise.
3667 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
3668
b1622487
VS
36692012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/term/serial.c (grub_serial_register)
3672 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
3673 the behaviour in line with x86 platforms.
3674
b7b4ab33
VS
36752012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
3678 (grub_ata_strncpy): Likewise.
3679 (grub_ata_identify): Add missing byteswaps.
3680
5e3535ae
VS
36812012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
3684 byte-swap.
3685 (screen_read_char): Likewise.
3686 (grub_vga_text_cls): Likewise.
3687
c21b17e6
VS
36882012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
3691 filenames.
3692 (make_file_path): Likewise.
3693
bf293dec
VS
36942012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
3697 machines.
3698 Tested by: Paulo Flabiano Smorigo.
3699 Crucial information about API supplied by: Coleen <Last name unknown>.
3700 Reviewed by: Coleen <Last name unknown>.
3701
81f6ef0e
VS
37022012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * util/grub-mkimage.c: Disable -Wcast-align.
3705
7284143a
VS
37062012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
3709 as they are fatal.
3710
b99f3e00
VS
37112012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
3714
944f752d
VS
37152012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * util/grub-probe.c (escape_of_path): Fix double free.
3718
6cce6f38
VS
37192012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * grub-core/commands/videoinfo.c (hook): Show pitch.
3722
1e1eb50e
VS
37232012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * util/grub.d/20_linux_xen.in: Skip xen-syms.
3726
1c715b5a
VS
37272012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
3730 (probe): Add ieee1275 to OFW devices.
3731
007ae52d
VS
37322012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
3735
4557a36d
VS
37362012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 Handle IBM OFW path.
3739
3740 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
3741 available.
3742 (of_path_of_scsi): Handle vdevice.
3743
efbeefe9
VS
37442012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
3747 Allocate in multiples of 16 to avoid adding a few bytes free region the
3748 windows bugs upon.
3749
15a940bb
VS
37502012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
3753 Allocate in multiples of 16 to avoid adding a few bytes free region the
3754 windows bugs upon.
3755 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
3756
6e5efd60
VS
37572012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
3760 resolutions.
3761 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
3762 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
3763
0d3d137e
IS
37642012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
3765
3766 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
3767
45dbe300
VS
37682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
3771 resulted in \\ at the end of the line.
3772
6d8db947
VS
37732012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
3776 (grub_parser_cmdline_state): Likewise.
3777 (grub_parser_split_cmdline): Likewise.
3778
de89d338
VS
37792012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
3782 /dev/root and /dev/dm-*.
3783
00d41dee
VS
37842012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
3787 fix partially stale display.
3788
f95d1f11
VS
37892012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3790
3791 * grub-core/normal/menu_entry.c (backward_char): Use right line for
3792 substraction.
3793
6297e197
VS
37942012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3795
3796 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
3797 Fix MBR remapping workaround.
3798 (grub_util_biosdisk_read) [__linux__]: Likewise.
3799
8a7ecad3
VS
38002012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * util/grub-install.in: Check for ieee1275 and not ieee1276.
3803
2b34f944
VS
38042012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * configure.ac: Bump to beta6.
3807
684aef11
CW
38082012-05-31 Christer Weinigel <christer@weinigel.se>
3809
3810 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
3811
05b0bb91
VS
38122012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
3815 (grub_cmd_linux): Likewise.
3816
bda36bfa
CW
38172012-05-31 Christer Weinigel <christer@weinigel.se>
3818
3819 Fix EHCI low-speed.
3820
3821 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
3822 (GRUB_EHCI_MULT_TWO): Likewise.
3823 (GRUB_EHCI_MULT_THREE): Likewise.
3824 (GRUB_EHCI_CMASK_MASK): New enum value.
3825 (GRUB_EHCI_SMASK_MASK): Likewise.
3826 (GRUB_EHCI_CMASK_OFF): Likewise.
3827 (GRUB_EHCI_SMASK_OFF): Likewise.
3828 (grub_ehci_pci_iter): Enable periodic schedule.
3829 (grub_ehci_parse_notrun): Likewise.
3830 (grub_ehci_restore_hw): Likewise.
3831 (grub_ehci_setup_qh): Set flags for low speed transfers.
3832 (grub_ehci_find_qh): Use periodic list for low speed.
3833 (grub_ehci_setup_transfer): Check periodic queue as well.
3834 (grub_ehci_check_transfer): Likewise.
3835 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3836
e12bcb1c
PFS
38372012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3838
3839 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3840 parameter is used.
3841
bcc75fb3
PJ
38422012-05-31 Peter Jones <pjones@redhat.com>
3843
3844 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3845 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3846 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3847
f19cb95e
VS
38482012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3851 uninited variable. Allocate at least setup_sects.
3852
a4e5ca80
VS
38532012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 Fix handling of EFI with big memory maps.
3856
3857 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3858 (real_mode_mem): Likewise.
3859 (real_mode_target): Likewise.
3860 (real_mode_pages): Likewise.
3861 (prot_mode_pages): Likewise.
3862 (linux_params): New var.
3863 (linux_cmdline): Likewise.
3864 (free_pages): Don't set real mode variables.
3865 (allocate_pages): Don't allocate real mode memory.
3866 (grub_e820_add_region): Remove the limit.
3867 (grub_linux_boot): Allocate and copy real mode memory.
3868 (grub_linux_unload): Free linux_cmdline.
3869 (grub_cmd_linux): Use temporary storage for parameters.
3870 (grub_cmd_initrd): Likewise.
3871 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
3872 (linux_kernel_params): Make it 1K big.
3873
ddb73558
VS
38742012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * Makefile.util.def: Remove -Wno-format.
3877 * grub-core/Makefile.core.def: Likewise.
3878
1c4afb60
VS
38792012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * tests/cmp_unit_test.c: Add missing failure message.
3882 * tests/example_unit_test.c: Likewise.
3883 * tests/printf_unit_test.c: Likewise.
3884
941e3a6d
VS
38852012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3888 relaxation of protective MBR requirements.
3889
b105df76
VS
38902012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * configure.ac: Add condition for COND_HOST_XNU.
3893 * Makefile.util.def (10_xnu): New script.
3894 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3895
84e1569e
VS
38962012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3899 objconv bug.
3900
130c0f77
VS
39012012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3904 Binary on other platforms stays identical.
3905
6fd0b143
VS
39062012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3909 Apple.
3910
0af1751d
VS
39112012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3914
176d5f7d
VS
39152012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3918 rather than defining size_t ourselves to avoid conflict.
3919
7de5e20a
VS
39202012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3923 initialisation to avoid __bzero reference.
3924
f7143efe
VS
39252012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3928 version.
3929 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3930 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3931 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3932 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3933 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3934
e6ad0555
VS
39352012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3938 * grub-core/kern/misc.c: Likewise.
3939 * grub-core/loader/i386/xnu.c: Likewise.
3940 * include/grub/i386/tsc.h: Likewise.
3941 * include/grub/symbol.h: Likewise.
3942
4a5a3c4a
VS
39432012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3946 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3947 on older compiler.
3948
037f6d90
VS
39492012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3952 Implement Apple flavour.
3953 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3954
f7194551
VS
39552012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3958 (memmove) [__APPLE__]: Likewise.
3959 (memcpy) [__APPLE__]: Likewise.
3960 (memset) [__APPLE__]: Likewise.
3961 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3962 (memmove) [__APPLE__]: Likewise.
3963 (memcpy) [__APPLE__]: Likewise.
3964 (memset) [__APPLE__]: Likewise.
3965
85a730ca
VS
39662012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3969 dependency discard.
3970
40e80b94
VS
39712012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/normal/main.c (read_config_file): Provide config_file and
3974 config_directory.
3975 * util/grub.d/41_custom.in: Use config_directoy when available.
3976
9da59c32
VS
39772012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3980 (grub_bfs_dir): Likewise.
3981
2787ae53
PJ
39822012-05-27 Peter Jones <pjones@redhat.com>
3983
3984 The old code gives arguments to a printf function which can't work
3985 correctly, and the compiler complains.
3986
3987 * grub-core/tests/example_functional_test.c (example_test): Add
3988 missing text.
3989 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3990 * include/grub/test.h (grub_test_assert_helper): New declaration.
3991 (grub_test_assert): Use grub_test_assert_helper.
3992
526ef13d
VS
39932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3996 (exfctest): ... this to avoid overlong filenames.
3997 All users updated.
3998
20dd511c
VS
39992012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 Handle "." and ".." on squashfs.
4002
4003 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
4004 Make inode numbers into stack.
4005 (grub_squash_read_symlink): Use stack.
4006 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
4007 (make_root_node): Fill stack.
4008 (grub_squash_open): Use stack.
4009
1d80c62a
VS
40102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
4013 freeing.
4014
d336f652
VS
40152012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4018 stderr on test calls.
4019
8b43f587
VS
40202012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4023
80a3dc3f
VS
40242012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4025
4026 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4027
47e297d4
VS
40282012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4031 "..".
4032
df042ccb
VS
40332012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4036 (grub_hfsplus_iterate_dir): Add "." and "..".
4037
fc977f48
VS
40382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4041 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4042
f3250e5f
VS
40432012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4046 (find_path): Handle "." and "..".
4047
fd8ed4c5
VS
40482012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4051 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4052 (grub_affs_iterate_dir): Handle hardlinks.
4053
4ce776d2
MG
40542012-05-26 Matthew Garrett <mjg@redhat.com>
4055
4056 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4057 (grub_efi_console_fini): Likewise.
4058 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4059 (grub_video_gop_fill_mode_info): Rename to ...
4060 (grub_video_gop_fill_real_mode_info): ... this.
4061 (grub_video_gop_fill_mode_info): New function.
4062 (grub_video_gop_setup): Setup double framebuffer.
4063 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4064 Free offscreen.
4065 (grub_video_gop_swap_buffers): Copy framebuffer.
4066 (grub_video_gop_fini): Free offscreen buffer.
4067 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4068 New enum.
4069 (grub_efi_gop_blt_pixel): New struct.
4070
683031ba
VS
40712012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * gentpl.py: Remove error disabling for objconv.
4074
c2deb798
VS
40752012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * configure.ac: Remove -Wunitialized as it's not available on older
4078 compilers.
4079
40802012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
4081
4082 Fix extent overflow comparator.
4083
4084 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4085 (grub_hfsplus_read_block): Set type.
4086 (grub_hfsplus_cmp_extkey): Compare type.
4087
d6b1fd36
VS
40882012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4091
0a9aa0f6
VS
40922012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4095 than 0.
4096
8360e159
VS
40972012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4100 (dejavu_bold_14.pf2): New target.
4101
501b9e4b
VS
41022012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * configure.ac: Fix djvu font detection.
4105
7026b0e2
VS
41062012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4109 ext* instead of ext2.
4110
c2a51ade
VS
41112012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4114 name with \0.
4115
8f803a5d
JU
41162012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4117
4118 * docs/grub-dev.texi: Remove dot from .png.
4119
13c6353f
VS
41202012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4123 protective entry in any slot.
4124 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4125 if protective entry is found in any slot.
4126
4127 Protective entry in non-first slot make no sense but is a widespread
4128 brain damage.
4129
4cf6be1b
VS
41302012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4133
937d1c44
VS
41342012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4137 with old reiserfs.
4138 (grub_reiserfs_open): Don't free root.
4139
021d90ec
VS
41402012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4143 after freeing for safety.
4144
967b2b64
VS
41452012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4148 Reported by: Jordan Uggla.
4149
34274d02
JU
41502012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4151
967b2b64
VS
4152 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4153 actual implementation. Specifically, clarify that the grub menu will
4154 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4155 passed.
34274d02 4156
dcaaae9d
BH
41572012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4158
4159 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4160 of r0.
4161
7086ad52
VS
41622012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 Remove unjustified hard dependency of normal.mod on gfxterm.
4165
4166 * include/grub/term.h (grub_term_output): New member fullscreen.
4167 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4168 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4169 (grub_gfxterm): Set .fullscreen.
4170 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4171 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4172
37ed2c9b
VS
41732012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4176 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 4177 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 4178
a4469c88
VS
41792012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4182
4e461486
VS
41832012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4186 a bad FS.
4187
aa78f5c4
VS
41882012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4191 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4192
197626b5
VS
41932012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4196 (grub_jfs_mount): Fill caseins.
4197 (grub_jfs_find_file): Respect caseins.
4198
8ad3f28c
VS
41992012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4202 through UTF-16.
4203
0c6c324e
VS
42042012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4207 New argument origpath. All users updated.
4208
c6666ba6
VS
42092012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4212 (read_attr): Ensure that we read start of possibly compressed block.
4213
e28e5fe5
VS
42142012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4217 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4218 All users updated.
4219
5fc23ab2
VS
42202012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4223 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4224 (dejavu.pf2): Replace with ...
4225 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4226 this.
4227
79dbc21c
VS
42282012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * util/grub.d/20_linux_xen.in: Add missing line.
4231
d2fcfb0c
VS
42322012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4235 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4236 (grub_utf16_to_utf8): Likewise.
4237
5560e9d6
VS
42382012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4241 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4242 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4243 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4244 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4245 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4246
42472012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
4248
4249 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4250 a bad FS.
4251
5560e9d6 42522012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
4253
4254 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4255 (grub_udf_read_symlink): Handle read_string failure.
4256
5eae3175
VS
42572012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4260 comment.
4261
c1ad82db
VS
42622012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 Fix handling of UDF symlinks.
4265
4266 * grub-core/fs/udf.c (read_string): New argument outbuf.
4267 All users updated.
4268 (grub_ufs_read_symlink): Rename to ...
4269 (grub_udf_read_symlink): ... this. All users updated.
4270 Handle symlinks with more than one component.
4271
33eca6e0
VS
42722012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4275 symlinks. Replace leading colon with a slash.
4276
57f4a70b
VS
42772012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4280 filename.
4281
38c8ee20
VS
42822012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4285 match in inner node.
4286
2e57f28f
VS
42872012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4290 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4291 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4292 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4293 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4294 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4295 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4296 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4297 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4298
fe8c2f11
VS
42992012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 Use grub-probe and not cmp to check that disk is empty.
4302
4303 * util/grub-install.in: Use grub-probe for zero-check.
4304 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
4305 (probe): Handle PRINT_ZERO_CHECK.
4306 (argp_parser): Handle -t zero_check.
4307
43082012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
4309
4310 Flush block cache on adding disk to device map.
4311
4312 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
4313 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
4314 adding.
4315 (read_device_map): Likewise.
4316 (open_device): Flush on opening.
4317
690434e8
VS
43182012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
4321 (handle_symlink): Fix off-by-one error.
4322 Canonicalize the target.
4323 (grub_cpio_dir): Canonicalize the name.
4324 Fix memory leak.
4325 Set directory.
4326 (grub_cpio_open): Canonicalize the name.
4327
742d2be6
VS
43282012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
4331 handling.
4332
3244fe96
VS
43332012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
4336 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
4337
8aeb1837
VS
43382012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
4341 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 4342 All users updated.
8aeb1837 4343
9133fd05
VS
43442012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4345
4346 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
4347 counterpart.
4348
6d521c5b
VS
43492012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 Fix UFS1 big file support.
4352
4353 * grub-core/fs/ufs.c (INODE): Removed.
4354 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
4355 64-bit.
4356 (INODE_MODE): Simplify.
4357 (grub_ufs_inode): Use uint64_t for size and not int64_t.
4358 (grub_ufs_lookup_symlink): Don't use INODE.
4359
21b82e17
VS
43602012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 Fix minixfs with non-power-of-two blocks since it's supported by minix.
4363
4364 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
4365 (grub_minix_data): Replace log_block_size with block_size.
4366 (grub_minix_read_file): Use block_size but avoid 64-bit division.
4367 (grub_minix_mount): Fill block_size.
4368
43692012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
4370
4371 * configure.ac: Bump to beta5.
4372
f417ed04
VS
43732012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 Fix wrapped HFS+ handling.
4376
4377 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
4378 blocks_start. All users updated.
4379 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
4380 wrapping offset.
4381 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
4382
607d282b
VS
43832012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 Fix long symlinks on reiserfs.
4386
4387 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
4388 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
4389 (grub_reiserfs_iterate_dir): Save size for non-directories.
4390 (grub_reiserfs_open): Don't reread stat block as we already know the
4391 size.
4392 (grub_reiserfs_read): Split into...
4393 (grub_reiserfs_read_real): ... and ...
4394 (grub_reiserfs_read): ...this.
4395
ae16024d
VS
43962012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 Fix non-indexed JFS.
4399
4400 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
4401 (grub_jfs_data): New field namecomponentlen.
4402 (grub_jfs_mount): Fill namecomponentlen.
4403 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
4404
eea1e26e
VS
44052012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
4408 * tests/grub_script_echo1.in: Add tests.
4409
df760f77
VS
44102012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * util/grub-install.in: Ignore empty devicetree directory.
4413
5efb817d
B
44142012-05-08 Bean <bean123ch@gmail.com>
4415
4416 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
4417 All users updated.
4418 (free_rsm): Free header as well.
4419 (free_old_fragments): Fix memory leak.
4420 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
4421 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
4422 (destroy_pq): Likewise.
4423 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
4424
668ea6d2
VS
44252012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
4428 resulting hash as a precaution.
4429
1739b1fe
VS
44302012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
4433 '_' in variable names.
4434 * grub-core/net/net.c (grub_net_network_level_interface_register):
4435 Likewise.
4436
6ae485aa
VS
44372012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 Fix AFFS with non-512B blocks.
4440
4441 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
4442 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
4443 (grub_affs_data): Replace blocksize with log_blocksize.
4444 (grub_affs_read_block): Fix non-512B blocks.
4445 (grub_affs_read_symlink): Likewise.
4446 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
4447 (grub_affs_read): Fix non-512B blocks.
4448 (grub_affs_label): Likewise.
4449 (grub_affs_mtime): Likewise.
4450 (grub_affs_mount): Fix block detection routine.
4451
d20fab84
VS
44522012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 Add filesystem mtime to AFFS.
4455
4456 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
4457 (aftime2ctime): New function.
4458 (grub_affs_dir): Use aftime2ctime.
4459 (grub_affs_label): Fix return value.
4460 (grub_affs_mtime): New function.
4461 (grub_affs_fs): Add mtime.
4462
e87b10f5
VS
44632012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
4466 UTF-8.
4467
7dceec9b
VS
44682012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
4471 UTF-8.
4472
2f48221f
VS
44732012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4474
4475 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
4476
dacd85cf
VS
44772012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
4480 flags.
4481 (FLAGS_CASE_SENSITIVE): New enum value.
4482 (cache_entry): New struct.
4483 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
4484 cache_size and cache.
4485 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
4486 Add log_blocksize and fshelp_flags.
4487 (grub_sfs_read_extent): Handle non-512 blocks.
4488 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
4489 (grub_sfs_read_file): Handle non-512 blocks.
4490 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
4491 fshelp_flags.
4492 (grub_sfs_read_symlink): Handle non-512 blocks.
4493 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
4494 (grub_sfs_dir): Free cache.
4495 (grub_sfs_close): Likewise.
4496
24e9a854
VS
44972012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
4500 filesystems.
4501
62ace64d
VS
45022012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
4505
83b2e89c
VS
45062012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
4509
75ccaea3
VS
45102012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
4513 (grub_sfs_read_extent): Likewise.
4514 (grub_sfs_read_block): Likewise.
4515 (grub_sfs_mount): Likewise.
4516 (grub_sfs_iterate_dir): Likewise.
4517 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
4518 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
4519
1b8463f2
VS
45202012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Fix errors on compressed NTFS with 512B clusters.
4523
4524 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
4525 types.
4526 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
4527 not 0.
4528 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
4529 Relax check for inline extents.
4530 (ntfscomp): Return correct -1 on error and not 0.
4531
4f8e368f
VS
45322012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * util/grub-install.in: Fix handling of prefix containing spaces.
4535
6f5d5ee8
VS
45362012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
4539 (grub_squash_read_data): Fix offset byte-swapping.
4540
ce41ab7a
VS
45412012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
4544 per common usage and preffered in several parts of code.
4545 (grub_memcmp): Likewise.
4546 (grub_strncmp): Likewise.
4547 * include/grub/misc.h (grub_strcasecmp): Likewise.
4548 (grub_strncasecmp): Likewise.
4549 * Makefile.util.def (cmp_test): New test.
4550 (grub_script_strcmp): Likewise.
4551 * tests/cmp_unit_test.c: New file.
4552 * tests/grub_script_strcmp.in: Likewise.
4553 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
4554
49717bf4
VS
45552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * include/grub/pci.h: Move enums into no-asm part.
4558
0a308f64
VS
45592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
4562
1796965f
ST
45632012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4564
4565 * util/getroot.c (find_hurd_root_device): Try to make error message
4566 and comments to translators clearer.
4567
4e9b2819
VS
45682012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
4571
076aeb50
VS
45722012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
4575 btrfs.
4576
19424d94
VS
45772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * docs/grub.cfg: Update.
4580
ebb73076
VS
45812012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * docs/grub.texi (PXE): Remove not present variables.
4584
9a1b669c
VS
45852012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * grub-core/net/net.c (defserver_set_env): New function.
4588 (defserver_get_env): Likewise.
4589 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
4590
d38bf7d3
VS
45912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
4594 entries.
4595
45962012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
4597
4598 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
4599 * grub-core/kern/emu/hostdisk.c: Likewise.
4600
e5e4ca48
ST
46012012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4602
4603 Handle hurd userspace partitions.
4604
4605 * util/getroot.c (find_hurd_root_device): New function.
4606 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
4607
56bb5dd5
VS
46082012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
4611 names.
4612 Reported by: Bastian Blank.
4613
9e8bc27a
VS
46142012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
4617 crossing page boundary.
4618
aa01499d
VS
46192012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 Fix B-tree search in BFS, especially in presence of non-ASCII
4622 characters.
4623
4624 * grub-core/fs/bfs.c (bfs_strcmp): New function.
4625 (find_in_b_tree): Use standard bsearch + btree algorithm.
4626
57006035
VS
46272012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
4630 and so on.
4631
9d34bb85
MG
46322012-05-03 Matthew Garrett <mjg@redhat.com>
46332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 Suspend broadcom cards in order to stop their DMA.
4636
4637 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
4638 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
4639 (pci): Don't build on x86 EFI.
4640 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
4641 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
4642 New function.
4643 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
4644 stop_broadcom if running on EFI.
4645 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
4646 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
4647 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
4648 (grub_pci_find_capability): New proto.
4649
01aab997
VS
46502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 * docs/grub.texi: Remove dot from the extension as it apparently
4653 doesn't work with some makeinfo versions.
4654
fbd8dca6
VS
46552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
4658 with GRUB expectance.
4659
dab797f4
VS
46602012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
4663
1516bfb4
VS
46642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
4667 zero after directory block since last entry may be not 0-terminated if
4668 it ends on block boundary. Use continue instead of if spanning whole
4669 loop.
4670
a3a0eace
VS
46712012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 Support 4K sectors UDF inline files.
4674
4675 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
4676 (grub_udf_extended_file_entry): Likewise.
4677 (grub_fshelp_node): Name the anonymous union. Put block at the end.
4678 All users updated.
4679 (get_fshelp_size): New function.
4680 (grub_udf_read_icb): Read whole block.
4681 (grub_udf_iterate_dir): Likewise.
4682 (grub_udf_dir): Likewise.
4683 (grub_udf_open): Likewise.
4684
c82f16c1
VS
46852012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
4688
59fd2aac
VS
46892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
4692 inline symlinks in addition to workaround.
4693
3b4afb4d
VS
46942012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
4697
f45c794a
VS
46982012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
4701
f25cecbd
VS
47022012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
4705
bb9a34e8
VS
47062012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 Fix reiserfs big seek times.
4709
4710 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
4711 exact. All users updated.
4712 (grub_reiserfs_read): Use nearest btree search for seeking.
4713 Fix return value on error.
4714
dc478aea
VS
47152012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
4718 entries.
4719 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
4720 * docs/grub.texi: Update menuentry description.
4721
8db10f47
VS
47222012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
4725 crash when embedding onto filesystem.
4726
bcb288ed
VS
47272012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
4730 name.
4731
a626fdd7
VS
47322012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
4735
b2f68477
VS
47362012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
4739 commit.
4740
ba15b2af
B
47412012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
47422012-05-01 Bean <bean123ch@gmail.com>
4743
4744 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
4745
a188012e
VS
47462012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
4749 Special behaviour for len = 0 to read whole file isn't used anywhere and
4750 can cause buffer ovewrflows in several places.
4751
f0a53ed2
VS
47522012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
4755
5ed554f0
VS
47562012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 Handle RAIDZ on non-512B sectors.
4759
4760 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
4761 max_children_ashift.
4762 (fill_vdev_info_real): Fill max_children_ashift.
4763 (read_device): Use max_children_ashift.
4764
ddc58357
VS
47652012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
4768
e3282399
VS
47692012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
4772 disk names.
4773 * docs/grub.texi: Update device.map parts.
4774
ee618bd4
VS
47752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Don't scan into non-diskfilter devices having diskfilter names.
4778
4779 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
4780 (scan_disk): New argument accept_diskfilter. Fix recursion depth
4781 handling.
4782 (scan_disk_hook): New function.
4783
bdf88864
B
47842012-04-29 Bean <bean123ch@gmail.com>
4785
4786 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
4787 allocation.
4788
32745f51
MK
47892012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
4790
4791 * configure.ac: Detect starfield theme font path
4792 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
4793
bc95c8c0
VS
47942012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
4797 geometry on serial consoles.
4798
147fbcab
VS
47992012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
4802 because of network consoles.
4803
0f42c889
VS
48042012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
4807 handling.
4808
4a3594c9
VS
48092012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
4812 falls on Q syndrom.
4813
5cb53879
VS
48142012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
4817 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
4818
b282dfe5
VS
48192012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
4822 Allocate at lest 8192 for temporary buffer as required for lzo.
4823
daa59f47
VS
48242012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4827 to cluster_bits, since it's already added in.
4828 (grub_fat_read_data): Likewise.
4829
986748ce
VS
48302012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4833 as long as cluster size is multiple of 512 bytes.
4834
a20f6ad0
VS
48352012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * util/grub-mkrescue.in: Fix locale directory.
4838
385f9abb
VS
48392012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * grub-core/kern/emu/hostdisk.c (map): Make static.
4842
1c557d30
B
48432012-04-23 Bean <bean123ch@gmail.com>
4844
4845 * util/grub-fstest.c (fstest): Add missing break.
4846
524b5d3a
ST
48472012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4848
4849 Fix hurd build.
4850
4851 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4852 not define nr variable.
fe4824e9 4853 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4854 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4855 grub_find_device): Do not define.
524b5d3a 4856
9a06490c
VS
48572012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 Fix kfreebsd compile and behaviour.
4860
4861 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4862 format-security.
4863 * util/getroot.c: Fix wait.h include.
4864 (grub_guess_root_devices): Error if grub_find_device fails.
4865 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
4866 (grub_util_get_dev_abstraction): Likewise.
4867 (grub_util_pull_device): Likewise.
4868 (grub_util_get_grub_dev): Likewise.
4869 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
4870
48143d96
VS
48712012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 Fix and unify wholedisk detection.
4874
4875 * util/getroot.c (convert_system_partition_to_system_disk): New argument
4876 is_part. All users updated.
4877 (device_is_wholedisk): Removed.
4878 (grub_util_biosdisk_get_grub_dev): Use is_part.
4879
ebbd24f3
VS
48802012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4883 mode.
4884
56f7aa1e
VS
48852012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * configure.ac: Bump to beta4.
4888
9c815e01
VS
48892012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4892 --fs-uuid --set UUID syntax.
4893
59e2651a
VS
48942012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4895
4896 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4897 disunification.
4898
54e03cfc
VS
48992012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4902
81092a75
MK
49032012-04-18 Mads Kiilerich <mads@kiilerich.com>
4904
4905 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4906
f8315e14
MG
49072012-04-18 Mike Gilbert <floppym@gentoo.org>
4908
4909 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4910
1501ac21
B
49112012-04-18 Bean <bean123ch@gmail.com>
4912
4913 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4914 place.
4915
cb7f944e
VS
49162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4919 users updated.
4920 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4921 corresponding to GRUB partitions.
4922 (grub_util_biosdisk_write): Likewise.
4923
b72d44a1
VS
49242012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 Scan mdraid before LVM.
4927
4928 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4929 (grub_diskfilter_register_front): ... this.
4930 (grub_diskfilter_register_back): New function.
4931 All users of grub_diskfilter_register updated.
4932
33d918b8
VS
49332012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * util/grub-install.in: Fix an automatic target detection bug.
4936
c6ca973d
VS
49372012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * util/grub-install.in: New option --efi-directory.
4940
b41be562
VS
49412012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4944 boot services if we have no other choice.
4945
49462012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4949 document it.
4950 * tests/util/grub-shell.in: Update to --directory.
4951
e0595a73
VS
49522012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4955
4ed80652
VS
49562012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4959 (grub_minix_read_file): Likewise.
4960 (grub_minix_read_inode): Likewise.
4961 (grub_minix_find_file): Likewise.
4962 (grub_minix_dir): Likewise.
4963
56008077
VS
49642012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * util/grub-setup.c (setup): Fix partition handling and blocklist
4967 check.
4968
ee520775
VS
49692012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4972 redundant buggy overlap check.
4973
16fc9293
VS
49742012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4977 and grub-mknetdir.
4978
9bab65c4
VS
49792012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4982 kh.loadflags on pre-2.00 kernels.
4983
3c491b47
VS
49842012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 Terminate UNDI and PXE before launching the payload to avoid problems
4987 with DMA.
4988
4989 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4990 (grub_loader_flags): ... this. All users updated.
4991 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4992 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4993 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4994 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4995 function.
4996 (grub_pxe_restore): Likewise.
4997 (fini_hnd): New var.
4998 (GRUB_MOD_INIT): Register shutdown hook.
4999 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
5000 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
5001 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
5002 (grub_loader_set): Rename second argument to flags.
5003
851ffada
VS
50042012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
5007 written bytes.
5008 (grub_get_num_of_utf8_bytes): New function.
5009 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
5010 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
5011 executing it.
5012 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
5013 (grub_ucs4_to_utf8): Change return type.
5014
491c57a8
VS
50152012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5018 warning.
851ffada
VS
5019 * grub-core/fs/bfs.c (hop_level): Likewise.
5020 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 5021
756773df
VS
50222012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * grub-core/lib/adler32.c: Recode due to license unclearness.
5025
fd556a96
VS
50262012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5029 (test_header): Likewise.
5030
9f9d3f69
VS
50312012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 Fix --help formatting.
5034
5035 * util/grub-mkconfig_lib.in (print_option_help): New function.
5036 (grub_fmt): Likewise.
5037 * util/grub-install.in: Use print_option_help and grub_fmt.
5038 * util/grub-kbdcomp.in: Likewise.
5039 * util/grub-mkconfig.in: Likewise.
5040 * util/grub-mknetdir.in: Likewise.
5041 * util/grub-mkrescue.in: Likewise.
5042 * util/grub-mkstandalone.in: Likewise.
5043 * util/grub-reboot.in: Likewise.
5044 * util/grub-set-default.in: Likewise.
5045 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5046
561ec77e
VS
50472012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * linguas.sh: Remove autogenerated *.po.
5050
7ec2b021
VS
50512012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * po/README: Move language fetcing to ...
5054 * linguas.sh: ... here.
5055 * po/README: Point to linguas.sh.
5056
a88f3270
VS
50572012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * po/README: Exclude ko.po due to disclaimer problems.
5060
d61357ce
VS
50612012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5064 len = 0.
5065 (grub_gettext_translate_real): Handle 0th string.
5066 (grub_gettext_translate): Ensure that "" isn't translated.
5067
505e41dc
VS
50682012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5071 TRANSLATORS comment.
5072 (grub_diskfilter_print_partmap): Propagate changing of error into
5073 warning.
5074
e44092db
VS
50752012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5078 to uint64_t to prevent overflow.
5079 (grub_diskfilter_lv): Increase start_extent and extent_count
5080 to uint64_t to prevent overflow.
5081
9b83956a
VS
50822012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5083
5084 * configure.ac: Increase version.
5085
da0d5b3f
VS
50862012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5089
5090 * po/Rules-translit: New file.
5091 * po/arabic.sed: Likewise.
5092 * po/cyrillic.sed: Likewise.
5093 * po/greek.sed: Likewise.
5094 * po/hebrew.sed: Likewise.
5095 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5096 * po/Makefile.in.in: Add extra_dist4.
5097
ac66b453
VS
50982012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5101
5102 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5103 modify names. Introduce MODE_BIGENDIAN.
5104 * grub-core/fs/minix_be.c: New file.
5105 * grub-core/fs/minix2_be.c: Likewise
5106 * grub-core/fs/minix3_be.c: Likewise.
5107 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5108 minix3_be.
5109 * grub-core/Makefile.core.def (minix_be): New module.
5110 (minix2_be): Likewise.
5111 (minix3_be): Likewise.
5112
51132012-04-01 Felix <email@hamburg.de>
5114
5115 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5116 (devs): Add MBP 2011.
5117
0a2d5a82
VS
51182012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5121
d1625889
VS
51222012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/normal/cmdline.c (print_completion): New field
5125 prompt_len.
5126 (grub_cmdline_get): Handle width properly.
5127
6d36a236
VS
51282012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5131
9576977e
VS
51322012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 5135 after 29th of February.
9576977e 5136
d73ff15d
VS
51372012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 Fix exfat endianness handling.
5140
5141 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5142 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5143 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5144 Byte-swap utf16 when necessary.
5145 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5146
bbb39a45
AB
51472012-03-31 Anton Blanchard <anton@samba.org>
51482012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 Fix btrfs endianness handling.
5151
5152 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5153 (lower_bound): Make root uint64_t. Use root in le.
5154 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5155 (find_path): Fix template key init.
5156 (grub_btrfs_dir): Fix mtime byteswap.
5157 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5158
354e0af7
VS
51592012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5162 recursion_depth. Break infinite resursions. All users updated.
5163
4e75f21c
VS
51642012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5167 after free.
5168 Reported by: Peter Jones.
5169
25581802
AB
51702012-03-31 Anton Blanchard <anton@samba.org>
5171
5172 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5173 8 bit values.
5174
08fbf92e
VS
51752012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * util/grub-install.in: Fix nvram call for PreP.
5178
5d1182a6
VS
51792012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5182 the error when some elements are missing into a warning.
5183
3f8cdd90
VS
51842012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5187
51006716
CW
51882012-03-28 Colin Watson <cjwatson@ubuntu.com>
5189
5190 * docs/grub.texi (Invoking grub-probe): New section.
5191 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5192
e1bd676b
VS
51932012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 Fix tab and wide character handling in editor and menu.
5196
5197 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5198 agglomerate control characters with combining marks.
5199 (bidi_line_wrap): Allow break on tab.
5200 (grub_unicode_get_comb_start): New function.
5201 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5202 and tab correctly.
5203 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5204 with a space.
5205 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5206 fixed_tab_size. All users updated.
5207 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5208 (grub_term_getcharwidth): Handle \t.
5209 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5210 and copy.
5211
22e6a774
VS
52122012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 Handle big-endian mdraid.
5215
5216 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5217 * grub-core/Makefile.core.def (mdraid09_be): New module.
5218 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5219 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5220 * grub-core/disk/mdraid_linux_be.c: New file.
5221
3c0eae66
VS
52222012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5225
b6cf74c9
VS
52262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5229 missing quotes which caused confusion among translators.
5230
83c93b9c
VS
52312012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 * util/grub-mkconfig_lib.in: Fix typo.
5234
ac6fd218
VS
52352012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5238 spaces.
5239 * tests/grub_script_leading_whitespace.in: New file.
5240 * Makefile.util.def (grub_script_leading_whitespace): New test.
5241
ba287dd8
VS
52422012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5245 to work.
5246
d2d58d0a
VS
52472012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5250 starts with control character.
5251
0382d9bb
VS
52522012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5255 overflow.
5256 (grub_gdb_outbuf): Likewise.
5257
d83ff9f9
VS
52582012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5261 zero terminator. Fixes a crash.
5262
2282da4a
VS
52632012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5266 beyond 4 GiB.
5267 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5268 images independently of preffered adderss field.
5269
0ae4f0bd
VS
52702012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5273 * grub-core/commands/regexp.c: Likewise.
5274 * grub-core/loader/i386/linux.c: Likewise.
5275 * grub-core/partmap/msdos.c: Likewise.
5276 * grub-core/script/execute.c: Likewise.
5277 * grub-core/term/gfxterm.c: Likewise.
5278
546fbe9b
VS
52792012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 Add variable parsing in $"..." and fix several mismatches with bash.
5282
5283 * Makefile.util.def (grub_script_gettext): New test.
5284 * grub-core/script/execute.c (parse_string): New function.
5285 (gettext_append): Likewise.
5286 (grub_script_arglist_to_argv): Use gettext_append.
5287 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5288 * tests/grub_script_gettext.in: New file.
5289
9fdb2d7b
VS
52902012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 Fix handling of leading spaces in scripts.
5293
5294 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5295 spaces.
5296 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5297 other than skipping \r. All users updated.
5298 * tests/grub_script_echo1.in: Add space-related tests.
5299 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5300
1a1ac4f6
VS
53012012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
5304
b63d89b6
VS
53052012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * configure.ac: Bump up the version to beta2.
5308
17f38c0f
VS
53092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 Fix gettext reload bugs (e.g. inability to disable gettext
5312 once enabled).
5313
5314 * grub-core/gettext/gettext.c: Encapsulate all static variables in
5315 main_context and secondary_context. All functions updated.
5316 (grub_gettext_translate): Rename to ...
5317 (grub_gettext_translate_real): ... this. Return NULL on failed
5318 translate.
5319 (grub_gettext_translate): Handle secondary context.
5320 (grub_gettext_delete_list): Close file and zero-out the context.
5321 (grub_mofile_open): Don't call grub_gettext_delete_list.
5322 Don't close file.
5323 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
5324 if locale="" to avoid pointless error message.
5325 (grub_gettext_env_write_lang): Update lang even if load fails.
5326 Handle secondary context.
5327 (grub_gettext_reread_prefix): New function.
5328 (read_main): Likewise.
5329 (read_secondary): Likewise.
5330 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
5331 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
5332 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
5333 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
5334
8e56f870
VS
53352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * configure.ac: Decrease warning level to avoid spurious warnings and
5338 to be able to compile with GCC 4.2.
5339 * Makefile.util.def: Remove -Wno-error=logical-op.
5340
82f6d455
WB
53412012-03-10 William Bittner <william.bittner@gmail.com>
5342
5343 * util/import_unicode.py: Add missing brackets around string for
5344 python 3 support.
5345
1ecd61a4
VS
53462012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 Fix efi chainloader on network root.
5349
5350 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
5351 network devices.
5352 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
5353 New function.
5354
14361ee8
VS
53552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
5358 unused show_text member.
5359 * docs/grub.texi: Document "text" property.
5360
922aabf3
VS
53612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
5364 in dprintf.
5365
ec316771
VS
53662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 Fix IMSM handling on Fedora.
5369
5370 * util/getroot.c (grub_util_is_imsm): New function.
5371 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
5372
0f021838
VS
53732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * Makefile.am: Strip gold section.
5376 * conf/Makefile.common: Likewise.
5377 * gentpl.py: Likewise.
5378 * grub-core/Makefile.core.def: Likewise.
5379 * grub-core/genmod.sh.in: Likewise.
5380
1039c8eb
VS
53812012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
5384 * util/grub.d/20_linux_xen.in: Likewise.
5385 Based on Debian patch.
5386
6dd412cd
VS
53872012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 * util/grub.d/10_linux.in: Fix syntax error resulting in
5390 Richard Laager's patch.
5391 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
5392
3fd8bae5
VS
53932012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
5396 dependencies.
5397
7eea1671
RL
53982012-03-10 Richard Laager <rlaager@wiktel.com>
5399
5400 * util/grub.d/10_linux.in: Fix ZFS root passing.
5401
e8e0566b
VS
54022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5405 * grub-core/commands/xnu_uuid.c: Likewise.
5406 * grub-core/loader/efi/appleloader.c: Likewise.
5407 * grub-core/script/execute.c: Likewise.
5408 * grub-core/script/main.c: Likewise.
5409 * util/grub-mkfont.c: Likewise.
5410
1acc5b1f
VS
54112012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 * util/grub-mkfont.c (options): Use more appropriate "select" that
5414 "set" for face index.
5415
35d70620
VS
54162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 * util/grub-editenv.c (options): Gettextize command summaries.
5419
c9eb96b5
VS
54202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
5423 "out of memory" error messagge.
5424
1f493136
VS
54252012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
5428 of diskfilter for diskfilter on diskfilter support.
5429
6d790129
VS
54302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
5433
005f46c9
VS
54342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * util/grub-install.in: Check for themes/starfield/theme.txt and not
5437 themes/starfield.
5438
c8f778a0
VS
54392012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
5442
de1e64eb
VS
54432012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
5446
c6d54211
VS
54472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
5450 of error message.
5451
dd390777
VS
54522012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
5455
5fd1c522
VS
54562012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
5459 message.
c6d54211 5460 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 5461
fae01f6c
VS
54622012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
5465 Gettextize.
5466 * util/grub-mount.c (options): Likewise.
5467
292fdaff
VS
54682012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
5471 gettextize.
5472 * grub-core/commands/search_wrap.c (options): Likewise.
5473
ecdbae77
VS
54742012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
5477
52bfedfa
VS
54782012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
5481 size calculation.
5482 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
5483 none is known.
5484
55b20e58
VS
54852012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
5488 "temporary" since it's used in identifier and is limited in space.
5489
fda9d101
VS
54902012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * po/POTFILES.in: Regenerate. Include *.h since they contain
5493 translatable strings as well.
5494
6a0295e2
VS
54952012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5498 byte-swap on big-endian.
5499 Reported by: Lennart Sorensen
5500
807fb77c
VS
55012012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
5504 (allocate_pages): Improve dprintf.
5505 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
5506 code32_start. Fill code32_start and kernel_alignment in params.
5507 (grub_cmd_initrd): Use prot_init_space.
5508
61ac50ba
VS
55092012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
5512
abdd26dd
VS
55132012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * util/grub-install.in: Add missing dot at the end of sentence.
5516
6e69da9c
VS
55172012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5520 * grub-core/commands/videotest.c: Likewise.
5521 * grub-core/loader/i386/linux.c: Likewise.
5522
4a929343
VS
55232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
5526 sentence.
5527 Reported by: Milo Casagrande.
5528
bb51c6c6
VS
55292012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
5532 * grub-core/commands/gptsync.c: Likewise.
5533 * grub-core/commands/hashsum.c: Likewise.
5534 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5535 * grub-core/commands/legacycfg.c: Likewise.
5536 * grub-core/io/gzio.c: Likewise.
5537 * grub-core/net/net.c: Likewise.
5538 * grub-core/term/gfxterm.c: Likewise.
5539 * grub-core/term/terminfo.c: Likewise.
5540 * grub-core/tests/test_blockarg.c: Likewise.
5541 * grub-core/video/video.c: Likewise.
5542 * util/grub-install.in: Likewise.
5543 * util/grub-mkfont.c: Likewise.
5544
b2b149cb
VS
55452012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
5548
c7c080ad
VS
55492012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5550
5551 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 5552 Reported by: David Prévot.
c7c080ad 5553
f2e243c0
VS
55542012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
5557 description.
5558
09963c76
VS
55592012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * util/grub-script-check.c (main): Fix a syntax error message which was
5562 unclear.
5563
a50514a8
VS
55642012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5565
5566 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
5567
4650daec
VS
55682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
5571 messages.
5572
55732012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
5574
5575 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
5576 without argument.
5577 * util/grub-mount.c (options): Likewise.
5578
bbc5a342
VS
55792012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
5582
ef292a87
VS
55832012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/net/http.c: Add TRANSLATORS comments.
5586 * grub-core/normal/cmdline.c: Likewise.
5587 * grub-core/normal/misc.c: Likewise.
5588 * grub-core/partmap/msdos.c: Likewise.
5589 * grub-core/parttool/msdospart.c: Likewise.
5590 * grub-core/script/execute.c: Likewise.
5591 * grub-core/script/main.c: Likewise.
5592 * grub-core/term/terminfo.c: Likewise.
5593 * grub-core/video/bitmap.c: Likewise.
5594 * util/grub-install.in: Likewise.
5595 * util/grub-mkimage.c: Likewise.
5596 * util/grub-mklayout.c: Likewise.
5597 * util/grub-setup.c: Likewise.
5598
0fc19bd0
VS
55992012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
5602 with similar messages in grub-fstest.
5603
d95862ef
VS
56042012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * util/grub-install.in: Unify "option requires an argument" message
5607 with similar messages in other files.
5608 * util/grub-mkconfig.in: Likewise.
5609
b7308f90
VS
56102012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * util/grub-set-default.in: Replace printf with gettext_printf (the
5613 string in in question is already translated from grub-reboot)
5614
559dc587
VS
56152012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * configure.ac: Bump up the version to beta1.
5618
1a11761f
VS
56192012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
5622 case when min_align = 0.
5623
24539abd
VS
56242012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
5627 and fix a case when line_start overflows.
5628
32bd735b
VS
56292012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * util/grub-reboot.in (usage): Mention id posibility.
5632 * util/grub-set-default.in (usage): Likewise.
5633
1a2fd1e6
VS
56342012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
5637 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
5638 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
5639 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
5640 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
5641 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5642 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5643
90eeab76
VS
56442012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * grub-core/commands/menuentry.c (options): Remove
5647 GRUB_ARG_OPTION_REPEATABLE.
5648 Reported by: Andreas Vogel
5649
5ad1be82
AV
56502012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
5651
5652 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
5653
cb055286
HE
56542012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
5655
5656 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
5657 error.
5658
93b1cd79
VS
56592012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 Use sort -V by the idea of Georgi Georgiev.
5662
5663 * util/grub-mkconfig_lib.in (version_sort): New function.
5664 (version_test_numeric): Use version_sort.
5665
0cdc126c
VS
56662012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 Use submenus in grub-mkconfig.
5669
5670 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
5671 * util/grub-mkconfig_lib.in (grub_quote): New function.
5672 (gettext_printf): Use gettext and not gettext_quoted to fix several
5673 messages.
5674 * util/grub.d/10_hurd.in: Use submenus.
5675 * util/grub.d/10_kfreebsd.in: Likewise.
5676 * util/grub.d/10_linux.in: Likewise.
5677 * util/grub.d/10_netbsd.in: Likewise.
5678 * util/grub.d/20_linux_xen.in: Likewise.
5679 * util/grub.d/30_os-prober.in: Likewise.
5680 * util/grub.d/10_illumos.in: Add missing quoting.
5681 * util/grub.d/10_windows.in: Likewise.
5682
d9bef9bc
VS
56832012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 Fix menu title instability bug.
5686
5687 * grub-core/commands/menuentry.c (options): New option --id.
5688 (grub_normal_add_menu_entry): New argument id. All users updated.
5689 (grub_cmd_menuentry): Handle --id.
5690 (grub_menu_init): Accept unknown arguments.
5691 * grub-core/normal/main.c (features): Add feature_menuentry_id and
5692 feature_menuentry_options.
5693 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
5694 saved_entry.
5695 (get_entry_number): Match with id as well.
5696 * include/grub/menu.h (grub_menu_entry): New member id.
5697 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
5698 * util/grub.d/00_header.in: Define menuentry_id_option.
5699 * util/grub.d/10_hurd.in: Define id.
5700 * util/grub.d/10_illumos.in: Likewise.
5701 * util/grub.d/10_kfreebsd.in: Likewise.
5702 * util/grub.d/10_linux.in: Likewise.
5703 * util/grub.d/10_netbsd.in: Likewise.
5704 * util/grub.d/10_windows.in: Likewise.
5705 * util/grub.d/20_linux_xen.in: Likewise.
5706 * util/grub.d/30_os-prober.in: Likewise.
5707
57082012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
5709
5710 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
5711 "scope" with "body".
5712
7c8d0ce7
VS
57132012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
5716 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
5717 prot_size and prot_file_size.
5718
49de079b
VS
57192012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
5722 All users updated. If easily=1 require raid-5/-6 to be full.
5723 (is_node_readable): Likewise.
5724 (scan_devices): Scan incomplete but readable LVs at the end.
5725 (grub_diskfilter_memberlist): Pull missing devices.
5726 (insert_array): Skip scanning until device is complete or scan is
5727 done otherwise.
5728 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
5729 check.
5730 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
5731 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
5732
aff05d45
MG
57332012-03-03 Matthew Garrett <mjg@redhat.com>
57342012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 Avoid EFI boot services when loading Linux.
5737
5738 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
5739 avoid_efi_bootservices. All users updated.
5740 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
5741 argument avoid_efi_bootservices. All users updated.
5742 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
5743 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
5744 align, min_align, relocatable, prefered_address. All users updated.
5745 Allocate avoiding boot services if kernel is relocatable.
5746 (grub_cmd_linux): Check if kernel is relocatable.
5747 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
5748 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
5749 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
5750 avoid_efi_boot_services.
5751 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
5752 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
5753 (linux_kernel_params): Likewise.
5754
3935dde2
MG
57552012-03-03 Matthew Garrett <mjg@redhat.com>
57562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 Use EDID on EFI.
5759
5760 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
5761 datasize_out.
5762 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
5763 modes. Set gop_handle.
5764 (grub_video_gop_get_edid): New function.
5765 (grub_gop_get_preferred_mode): Likewise.
5766 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
5767 (grub_video_efi_gop_adapter): Set .get_edid.
5768 * include/grub/efi/edid.h: New file.
5769 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
5770
32107ec0
VS
57712012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * util/grub-install.in: Load efivars unconditionally.
5774
e70a2c50
VS
57752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * po/Rules-piglatin: Change suffix from .po-update-en to
5778 .po-update-en-piglatin.
5779
8f9cace1
VS
57802012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 Add a pig farm.
5783
5784 * po/piglatin.sed: New file.
5785 * po/en@piglatin.header: Likewise.
5786 * po/Rules-piglatin: Likewise.
5787 * po/README: Add en@piglatin to autogenerated languages.
5788
8f95d002
VS
57892012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
5792 "Command for ...".
5793 * grub-core/commands/hdparm.c (options): Use "Display" rather than
5794 "Check" since we don't check anything.
5795 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
5796 is 64-bit one.
5797 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
5798 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
5799 (grub_md_sha512_real): Likewise.
5800
805a8dcc
VS
58012012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/commands/gptsync.c: Fix typographic quoting.
5804 * grub-core/commands/ieee1275/suspend.c: Likewise.
5805 * grub-core/commands/parttool.c: Likewise.
5806 * grub-core/commands/search_wrap.c: Likewise.
5807 * grub-core/commands/videoinfo.c: Likewise.
5808 * grub-core/gfxmenu/gui_label.c: Likewise.
5809 * grub-core/hello/hello.c: Likewise.
5810 * grub-core/kern/emu/main.c: Likewise.
5811 * grub-core/net/net.c: Likewise.
5812 * grub-core/normal/menu.c: Likewise.
5813 * grub-core/normal/menu_text.c: Likewise.
5814 * grub-core/normal/misc.c: Likewise.
5815 * util/grub-editenv.c: Likewise.
5816 * util/grub-install.in: Likewise.
5817 * util/grub-kbdcomp.in: Likewise.
5818 * util/grub-mkconfig.in: Likewise.
5819 * util/grub-mknetdir.in: Likewise.
5820 * util/grub-mkrescue.in: Likewise.
5821 * util/grub-mkstandalone.in: Likewise.
5822 * util/grub-reboot.in: Likewise.
5823 * util/grub-set-default.in: Likewise.
5824 * util/grub-setup.c: Likewise.
5825 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5826
40211ab8
VS
58272012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5830 * grub-core/commands/keystatus.c: Likewise.
5831 * grub-core/commands/loadenv.c: Likewise.
5832 * grub-core/commands/probe.c: Likewise.
5833 * grub-core/commands/regexp.c: Likewise.
5834 * grub-core/commands/true.c: Likewise.
5835 * grub-core/commands/videoinfo.c: Likewise.
5836 * grub-core/disk/cryptodisk.c: Likewise.
5837 * grub-core/disk/ldm.c: Likewise.
5838 * grub-core/disk/loopback.c: Likewise.
5839 * grub-core/disk/luks.c: Likewise.
5840 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5841 * grub-core/kern/disk.c: Likewise.
5842 * grub-core/kern/emu/hostdisk.c: Likewise.
5843
0c7d99c7
VS
58442012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5845
5846 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5847 * util/grub-install.in: Add missing quote in the comment.
5848
e7d2559b
VS
58492012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5850
5851 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5852 * grub-core/commands/lsmmap.c: Likewise.
5853 * grub-core/commands/minicmd.c: Likewise.
5854 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5855 * grub-core/commands/regexp.c: Likewise.
5856 * grub-core/gdb/gdb.c: Likewise.
5857 * grub-core/term/gfxterm.c: Likewise.
5858 * util/grub-mkconfig.in: Likewise.
5859 * util/grub-mkfont.c: Likewise.
5860 * util/grub-mklayout.c: Likewise.
5861 * util/grub-mknetdir.in: Likewise.
5862 * util/grub-mkrescue.in: Likewise.
5863 * util/grub.d/30_os-prober.in: Likewise.
5864
49ce9e50
VS
58652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5866
5867 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
5868 with "Direct color" and "Packed" with "Packed pixel".
5869 (grub_cmd_videoinfo): Simplify legend.
5870
e4b791fa
VS
58712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5874 absolutely unclear error message.
5875
fd1265cb
VS
58762012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * util/grub-mkstandalone.in: Remove confusing leftover print.
5879
8822a8a0
VS
58802012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5883 comments.
5884 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5885 (GRUB_MOD_INIT): Likewise.
5886 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5887 VGA mode.
5888 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5889 comments.
5890 * util/grub-install.in (usage): Likewise.
5891 Spell ID in whole letters.
5892 Add missing ending dot.
5893 Quote variables.
5894 * util/grub-reboot.in: Fix capitalisation.
5895 * util/grub-set-default.in: Likewise.
5896
937fd0cc
VS
58972012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5900 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5901 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5902 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5903 Disable -Werror for -Wdeprecated-declarations.
5904 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5905 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5906 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5907 (grub_util_get_grub_dev): Make luks handling dependent on
5908 HAVE_DEVICE_MAPPER and not __linux__.
5909 (get_win32_path): Fix format security.
5910 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5911 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5912 Don't try grub_find_zpool_from_dir.
5913 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5914 #ifdef-out paresdir.
5915
1bab1ae3
VS
59162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * util/grub-pe2elf.c (usage): Add missing noreturn.
5919 (write_section_data): Rename name to shname to avoid shadowing.
5920 (write_symbol_table): Rename name to symname to avoid shadowing.
5921 Fix write_reloc_section call.
5922
ef023e42
VS
59232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5926 to ensure that it's after the last byte of .text.
5927
48afcb75
VS
59282012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * util/ieee1275/ofpath.c (my_isdigit): New function.
5931 (trailing_digits): Use my_isdigit.
5932 (strip_trailing_digits): Likewise.
5933
88d51eff
VS
59342012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5935
5936 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5937 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5938
17edc2ba
VS
59392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * grub-core/kern/i386/pc/startup.S: Define __start.
5942
ad5518d7
VS
59432012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5946 strip already transforms he format.
5947
9e95e1bf
VS
59482012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5951
9cc3ee5c
VS
59522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 * util/grub-install.in: Add missing gettext init.
5955 * util/grub-kbdcomp.in: Likewise.
5956 * util/grub-mkconfig.in: Likewise.
5957 * util/grub-mknetdir.in: Likewise.
5958 * util/grub-mkrescue.in: Likewise.
5959 * util/grub-mkstandalone.in: Likewise.
5960 * util/grub-reboot.in: Likewise.
5961 * util/grub-set-default.in: Likewise.
5962 * util/grub.d/00_header.in: Likewise.
5963 * util/grub.d/10_hurd.in: Likewise.
5964 * util/grub.d/10_windows.in: Likewise.
5965 * util/grub.d/30_os-prober.in: Likewise.
5966 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5967
49e08a06
VS
59682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * po/Rules-swiss: Fix header comment.
5971
3809cb41
AV
59722012-02-29 Andreas Vogel <anvoit>
5973
5974 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5975 resulted in leak of arguments.
5976
fa6ec573
VS
59772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5980 reed_solomon_size const definition instead of computing it since
5981 Apple assembler doesn't support the later.
5982
22899b9c
VS
59832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * gentpl.py (kernel): Rewrite Apple part.
5986
a132afc3
VS
59872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5990
9d742bd4
VS
59912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5994 ELF section gap.
5995 (load_image): Likewise.
5996
f04a9a21
VS
59972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * configure.ac: Fix a typo in previous commit.
6000
46cf439c
VS
60012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 Don't add -Wl,-N on Apple platform.
6004
6005 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
6006 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
6007
c4c48c54
VS
60082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/Makefile.core.def (lzma_decompress): Use
6011 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
6012
31a12124
VS
60132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * grub-core/genmod.sh.in: Rewrite the Apple part.
6016
4f3aa1af
VS
60172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6018
6019 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6020 comparison.
6021
7bd8b0c7
VS
60222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * acinclude.m4 (grub_CHECK_PIC): New test.
6025 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6026
97304d7c
VS
60272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6030 to avoid the warning.
6031
fb883812
VS
60322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6035 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6036 after. All users updated.
6037
a121c964
VS
60382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 Use the common size routine in hostfs so we can read disks as well.
6041
6042 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6043 (grub_util_get_fd_size): ... this. Return size in bytes.
6044 All users updated.
6045 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6046 grub_util_get_fd_size.
6047
c66d6410
VS
60482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6051 Add blocksize retrieval.
6052
dfc8aeb0
VS
60532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * configure.ac: Restore CFLAGS after efiemu check.
6056
403e25a5
VS
60572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6060 Apple bug.
6061
382775d1
VS
60622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6065
6fd4e6e4
VS
60662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6069 (grub_cmd_halt): Likewise.
6070
bea359d6
VS
60712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6074 for local arithmetics.
6075 Break %sp init into 2 instructions.
6076 Add 0 byte at the end.
6077
32eb6ee1
VS
60782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6081 before loops.
6082
e8377389
VS
60832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6086 for context.
6087
8cb17de7
VS
60882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/disk/ldm.c (make_vg): Init part.name.
6091 (grub_ldm_detect): Silence spurious warning.
6092 (grub_util_is_ldm): Likewise.
6093
595717e6
VS
60942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6097 sane value to avoid a spurious warning.
6098
c4b7e588
VS
60992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6102 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6103
59824957
VS
61042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6105
6106 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6107 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6108
70115b99
VS
61092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6112 hardcoding the relevant info.
6113
56733740
VS
61142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6117 missing const qualifiers.
6118 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6119
43481481
VS
61202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * util/getroot.c [__APPLE__]: Add missing includes.
6123 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6124
3cb38f01
VS
61252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6128
d9dbf11e
VS
61292012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6132 avoid conflicts.
6133
0c42a45d
VS
61342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6137
46c34eb0
VS
61382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6141 and grub_file_close call.
6142
99ce1597
VS
61432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 Add LZSS Mach-O support (needed for new xnu kernelcache).
6146
6147 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6148 * grub-core/loader/lzss.c: New file.
6149 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6150 on Mach-O open failure.
6151 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6152 Don't free cmdsXX in uncompressedXX is set.
6153 (grub_macho_file): Init new fields.
6154 New argument is_64bit. All users updated.
6155 Handle compressed. Error out if no suitable architecture is found.
6156 Don't close file.
6157 (grub_macho_open): New argument is_64bit. All users updated.
6158 * grub-core/loader/macho32.c: Add defines for new fields.
6159 * grub-core/loader/macho64.c: Likewise.
6160 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6161 (grub_macho_parse): Handle compressed.
6162 Defer actual processing if compressed.
6163 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6164 "filename". All users updated.
6165 (grub_macho_size): New argument "filename". All users updated.
6166 (grub_macho_get_entry_point): Likewise.
6167 (grub_macho_load): Handle compressed.
6168 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6169 (GRUB_MACHO_LZSS_OFFSET): New define.
6170 (grub_decompress_lzss): New proto.
6171 * include/grub/machoload.h (grub_macho_file): New fields to handle
6172 compressed.
6173 (grub_macho_contains_macho64): Remove proto.
6174 (grub_macho_contains_macho32): Likewise.
6175 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6176
ebd17d6f
VS
61772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6180
2702b4e4
VS
61812012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 Fix make dist.
6184
6185 * Makefile.am (starfield_theme_files): New var.
6186 (starfield_DATA): Use starfield_theme_files.
6187 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6188 Add bootcheck-related files.
6189 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6190 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6191 and font_char_metrics.txt.
6192 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6193 (setjmp): Add lib/ia64/longjmp.S.
6194 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6195 * po/POTFILES.in: Regenerate.
6196 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6197 DISTFILES.common.extra1.
6198 * util/devicemap.c: Removed.
6199 * grub-core/lib/i386/relocator_backward.S: Likewise.
6200 * util/import_gcry.py: Remove unused files. Add extra_dist for
6201 ChangeLog.
6202
cf1adfdf
VS
62032012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6206 grub_gettext_delete_list before changing grub_gettext_max to avoid
6207 running out of array bounds.
6208
62092012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
6210
6211 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6212 grub_vga_text_init/grub_vga_text_fini.
6213
cf1adfdf 62142012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
6215
6216 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6217
541d92e9
VS
62182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * configure.ac: Bump to 2.00~beta0.
6221
7931dddf
VS
62222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6225 missing initialisation.
6226
f1b16fa3
VS
62272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6228
6229 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6230
83ddae23
VS
62312012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 Support v2 xnu boot arguments.
6234
6235 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6236 New argument fsbfreq_out.
6237 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6238 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6239 be used.
6240 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6241 darwin_version.
6242 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6243 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6244 (grub_xnu_boot_params): Rename to ...
6245 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6246 (grub_xnu_boot_params_v2): New struct.
6247
dc693fe6
VS
62482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6251 zeroing of CRC field before computing CRC.
6252
5a6e39c2
VS
62532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6256 Change order of allocations to decrease fragmentation.
6257
6c21f5d7
VS
62582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6261
cfe456dc
CW
62622012-02-27 Colin Watson <cjwatson@ubuntu.com>
6263
6264 Use write-combining MTRR to speed up video with buggy BIOSes.
6265
6266 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6267 (cpuid): New define.
6268 (rdmsr): Likewise.
6269 (wrmsr): Likewise.
6270 (mtrr_base): Likewise.
6271 (mtrr_mask): Likewise.
6272 (grub_vbe_enable_mtrr_entry): New function.
6273 (grub_vbe_enable_mtrr): Likewise.
6274 (grub_vbe_disable_mtrr): Likewise.
6275 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6276 control off to BIOS.
6277 (grub_video_vbe_init): Fill mtrr.
6278 (grub_video_vbe_fini): Disable mtrr.
6279 (grub_video_vbe_get_info_and_fini): Likewise.
6280 (grub_video_vbe_setup): Enable mtrr.
6281
e3c78337
CW
62822012-02-27 Colin Watson <cjwatson@ubuntu.com>
6283
6284 * include/grub/partition.h (grub_partition_map): Change prototype of
6285 embed to take a maximum value for nsectors.
6286 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6287 * include/grub/fs.h (grub_fs): Likewise.
6288 * grub-core/partmap/msdos.c (embed_signatures): New array.
6289 (pc_partition_map_embed): Check for and avoid sectors matching any
6290 of the signatures in embed_signatures, up to max_nsectors.
6291 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6292 returned sector map to max_nsectors.
6293 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6294 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6295 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6296 * util/grub-setup.c (setup): Allow for the embedding area being
6297 split into multiple blocklists. Tell dest_partmap->embed the
6298 maximum number of sectors we care about.
6299
63002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
6303 Specify blocklist_install and reserver_first_sector for all fs.
6304 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
6305 blocklists.
6306
984b973f
VS
63072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 * util/grub-install.in: Clarify strings.
6310 Fix source dir check.
6311
f122e0d6
RL
63122012-02-27 Richard Laager <rlaager@wiktel.com>
6313
6314 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
6315 "zfs" and "fuse.zfs" as synonyms.
6316
071114bb
VS
63172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * configure.ac: Put platform and target_cpu substitutions back since
6320 they are used for directories.
6321
817e6abc
RL
63222012-02-27 Richard Laager <rlaager@wiktel.com>
63232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * util/grub.d/10_linux.in: Add ZFS-related arguments.
6326 * util/grub.d/20_linux_xen.in: Likewise.
6327
897b7419
RL
63282012-02-27 Richard Laager <rlaager@wiktel.com>
6329
6330 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6331 with full paths.
6332
a414bd15
RL
63332012-02-27 Richard Laager <rlaager@wiktel.com>
6334
6335 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
6336 unescape.
6337
30ac48c4
VS
63382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 Don't use insecure popen in getroot.
6341
6342 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
6343 (exec_pipe): ... here.
6344 (find_root_devices_from_poolname): Use exec_pipe.
6345
53f13848
VS
63462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 Remove platform and target_cpu replacement.
6349
6350 * configure.ac: Remove platform and target_cpu substitutions.
6351 * tests/util/grub-shell.in: Use modinfo.
6352 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
6353 explicitly.
6354
90cb2803
VS
63552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 Autodetect platform in grub-install but allow override.
6358
6359 * util/grub-install.in: Autodetect platform. Support --target and
6360 --directory. Read platform from modinfo.sh.
6361
b9136427
VS
63622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 Support btrfs multi-volume probe.
6365
6366 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
6367 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
6368 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
6369 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
6370 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
6371 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
6372 grub_find_root_devices_from_btrfs if on btrfs.
6373
c36e5cd1
VS
63742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 Remove any awareness of *.c util files about target.
6377
6378 * Makefile.util.def (grub-setup): Split to ...
6379 (grub-bios-setup): ... and this.
6380 (grub-sparc64-setup): ... and this.
6381 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
6382 * docs/man/grub-setup.h2m: Split into ...
6383 * docs/man/grub-sparc64-setup.h2m: ... this.
6384 * docs/man/grub-bios-setup.h2m: ... and this.
6385 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
6386 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
6387 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
6388 (grub_target_addr_t): Remove.
6389 (grub_target_size_t): Remove.
6390 (grub_target_ssize_t): Remove.
6391 * util/grub-install.in: Use new grub-*-setup.
6392 * util/grub-mkimagexx.c (Elf_Word): New define.
6393 (Elf_Half): Likewise.
6394 (Elf_Section): Likewise.
6395 (ELF_ST_TYPE): Likewise.
6396 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
6397 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
6398
584b2f8a
VS
63992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 Replace grub_target_addr with more appropriate types.
6402
6403 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
6404 grub_target_addr with grub_addr.
6405 * grub-core/commands/iorw.c (grub_cmd_read): Replace
6406 grub_target_addr with grub_port.
6407 (grub_cmd_write): Likewise.
6408 * grub-core/commands/memrw.c (grub_cmd_read): Replace
6409 grub_target_addr with grub_addr.
6410 (grub_cmd_write): Likewise.
6411 * grub-core/video/efi_uga.c (find_line_len): Likewise.
6412
5a0dc6fb
VS
64132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
6416 const qualifier for vendor_guid.
6417
786aff6e
VS
64182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
6421 const qualifier.
6422 (efiemu_memequal): Likewise.
6423 (find_variable): Likewise.
6424
49017b17
VS
64252012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 Fix missing console prototype on qemu-mips.
6428
6429 * include/grub/mips/qemu_mips/console.h: New file.
6430
c5988629
MG
64312012-02-27 Matthew Garrett <mjg@redhat.com>
64322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
6435 * include/grub/efi/efi.h: Likewise.
6436 * include/grub/efi/api.h: Add guid for EFI-specified variables.
6437 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
6438 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
6439 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
6440 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
6441 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
6442
e33f8d69
MG
64432012-02-27 Matthew Garrett <mjg@redhat.com>
6444
6445 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
6446
fb312cd9
VS
64472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
6450 error.
6451
7134247c
VS
64522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * configure.ac: Remove inappropriate use of program_transform_name
6455 on grubdir and bootdir but allow explicit specification of those
6456 variables.
6457
6a313124
VS
64582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6459
6460 * util/grub-mknetdir.in (grub_prefix): Removed.
6461 (subdir): Use @bootdirname@ and @grubdirname@.
6462
2311c5ca
VS
64632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
6466
7d5d60f7
VS
64672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * po/POTFILES.in: Regenerated.
6470
8151bc82
VS
64712012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6472
6473 Remove improper use of program_transform_name on pkglibrootdir.
6474
6475 * configure.ac (pkglibrootdir): Removed.
6476 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
6477 * util/grub-mkimage.c: Likewise.
6478
b4a6a533
VS
64792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
6482 warning.
6483
668f304f
VS
64842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * util/grub-install.in: Use file identifier if no UUID is available
6487 or user explicitly prompted for it.
6488
665f2341
NP
64892012-02-27 Navdeep Parhar <nparhar@gmail.com>
6490
6491 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
6492 (freebsd_get_zfs): New function.
6493 (grub_freebsd_boot): Pass zfs UUID.
6494 (grub_cmd_freebsd): Set zfs UUID.
6495
8151bc82 64962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
6497
6498 * conf/Makefile.common (platformdir): Base on pkglibdir and not
6499 pkglibrootdir.
6500
e4c498a1
MG
65012012-02-27 Mike Gilbert <floppym@gentoo.org>
6502
6503 Add configure flag to control libzfs integration.
6504
6505 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
6506
1e9a9a3f
VS
65072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
6510 device.
6511 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
6512 small devices.
6513
036985b8
VS
65142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 Remove grub_{modname}_init and grub_{modname}_fini. They should never
6517 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
6518 be used on non-modules.
6519
6520 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
6521 Rename to grub_boot_init.
6522 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
6523 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
6524 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
6525 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
6526 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
6527 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
6528 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
6529 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
6530 includes.
6531 (grub_machine_init): Remove empty inits.
6532 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
6533 includes.
6534 (grub_machine_init): Remove empty inits.
6535 * grub-core/term/arc/console.c: Remove explicit proto.
6536 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
6537 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
6538 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6539 grub_at_keyboard_fini.
6540 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
6541 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
6542 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6543 grub_gfxterm_fini.
6544 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
6545 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
6546 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6547 grub_vgatext_fini.
6548 * grub-core/term/ieee1275/console.c: Remove explicit proto.
6549 * grub-core/term/serial.c (GRUB_MOD_INIT)
6550 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
6551 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6552 grub_serial_fini.
6553 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
6554 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
6555 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6556 grub_terminfo_fini.
6557 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
6558 (GRUB_MOD_FINI): Likewise.
6559 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
6560 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
6561 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6562 grub_video_radeon_fuloong2e_fini.
6563 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
6564 [LOONGSON]: Rename to grub_video_sis315pro_init.
6565 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6566 grub_video_sis315pro_fini.
6567 * grub-core/video/sm712.c (GRUB_MOD_INIT)
6568 [LOONGSON]: Rename to grub_video_sm712_init.
6569 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6570 grub_video_sm712_fini.
6571 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
6572 (grub_at_keyboard_fini): Likewise.
6573 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
6574 Don't declare grub_{modname}_init.
6575 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
6576 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
6577 New proto.
6578 (grub_keylayouts_fini) [!EMU]: Likewise.
6579 * include/grub/serial.h (grub_serial_init) [!EMU]:
6580 New proto.
6581 (grub_serial_fini) [!EMU]: Likewise.
6582 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
6583 New proto.
6584 (grub_terminfo_fini) [!EMU]: Likewise.
6585 * include/grub/video.h (grub_font_init) [!EMU]:
6586 New proto.
6587 (grub_font_fini) [!EMU]: Likewise.
6588 (grub_gfxterm_init) [!EMU]: Likewise.
6589 (grub_gfxterm_fini) [!EMU]: Likewise.
6590 (grub_video_sm712_init) [!EMU]: Likewise.
6591 (grub_video_sm712_fini) [!EMU]: Likewise.
6592 (grub_video_sis315pro_init) [!EMU]: Likewise.
6593 (grub_video_sis315pro_fini) [!EMU]: Likewise.
6594 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
6595 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
6596
d5534665
VS
65972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Make nand a prefix for nand devices.
6600
6601 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
6602
10133b5f
VS
66032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
6606 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
6607
8e307a62
VS
66082012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * include/grub/env.h (grub_env_find): Remove prototype.
6611 * grub-core/kern/env.c (grub_env_find): Make static.
6612 (grub_env_set): Remove useless set.
6613
a4c65f34
VS
66142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * grub-core/kern/i386/realmode.S: Remove useless align.
6617
d87893d5
VS
66182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * include/grub/dl.h (grub_dl_load_file): Don't export.
6621
50159add
VS
66222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
6625 grub_dprintf.
6626
b2582b84
VS
66272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
6630 grub_errors.
6631 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
6632 not reloading whole superblock but only the part which is really needed.
6633 Remove useless grub_errors.
6634 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
6635 grub_errors.
6636
e2a83395
VS
66372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 Don't export grub_get_rtc.
6640
6641 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
6642 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
6643
e7d2a906
VS
66442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
6647
6cf1363b
VS
66482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 6651 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 6652
eece3349
VS
66532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 Remove prio_list.
6656
6657 * include/grub/list.h (grub_prio_list): Removed.
6658 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
6659 GRUB_COMMAND_PRIO_MASK.
6660 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
6661 GRUB_COMMAND_FLAG_ACTIVE.
6662 (grub_prio_list_insert): Removed.
6663 (grub_prio_list_remove): Likewise.
6664 (GRUB_AS_PRIO_LIST): Likewise.
6665 (GRUB_AS_PRIO_LIST_P): Likewise.
6666 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
6667 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
6668 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
6669 * grub-core/kern/command.c (grub_register_command_prio): Inline
6670 the prio_list code.
6671 (grub_unregister_command): Likewise.
6672
94f064b4
VS
66732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 Fix interrupt mixup from previous commit.
6676
6677 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
6678 (grub_realidt): New var.
6679 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
6680 Load idt.
6681 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
6682 New declaration.
6683 (grub_relocator16_boot): Set grub_relocator16_idt.
6684 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
6685 (LOCAL(realidt)): ... this.
6686 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
6687 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
6688 (grub_realidt): New variable.
6689
27317084
VS
66902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
6693 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
6694 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
6695 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
6696 Gettextize.
6697 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
6698 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
6699 * po/POTFILES.in: Regenerate.
6700
47b40053
VS
67012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
6704 errors.
6705
2b343101
VS
67062012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
6709 \0.
6710 (add_length): Likewise.
6711
ff27c3dd
LK
67122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67132012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
6714
6715 GDB serial and backtrace support.
6716
6717 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
6718 (prot_to_real): Likewise.
6719 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
6720 * grub-core/Makefile.core.def (backtrace): New module.
6721 (gdb): Likewise.
6722 * grub-core/gdb/cstub.c: New file.
6723 * grub-core/gdb/gdb.c: Likewise.
6724 * grub-core/gdb/i386/idt.c: Likewise.
6725 * grub-core/gdb/i386/machdep.S: Likewise.
6726 * grub-core/gdb/i386/signal.c: Likewise.
6727 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 6728 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
6729 * include/grub/backtrace.h: Likewise.
6730 * include/grub/gdb.h: Likewise.
6731 * include/grub/i386/gdb.h: Likewise.
6732
67332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
6734
6735 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
6736 New function.
6737 (add_length): Likewise.
6738 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
6739 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
6740 proto.
6741 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
6742 __argp_get_display_len.
6743
ff27c3dd 67442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
6745
6746 $"..." support in scripts.
6747
6748 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
6749 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
6750 * grub-core/script/yylex.l: Likewise.
6751 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
6752 value.
6753
ff27c3dd 67542012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
6755
6756 * gentpl.py: Remove obsolete pkglib_DATA handling.
6757
ff27c3dd 67582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
6759
6760 Don't transform PACKAGE_TARNAME following a discussion on autoconf
6761 mailing list.
6762
6763 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
6764 * util/grub-kbdcomp.in: Likewise.
6765 * util/grub-mkconfig.in: Likewise.
6766 * util/grub-mkconfig_lib.in: Likewise.
6767 * util/grub-mknetdir.in: Likewise.
6768 * util/grub-mkrescue.in: Likewise.
6769 * util/grub-mkstandalone.in: Likewise.
6770 * util/grub-reboot.in: Likewise.
6771 * util/grub-set-default.in: Likewise.
6772 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6773
ff27c3dd 67742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
6775
6776 Remove GRUB_PREFIX.
6777
6778 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
6779 * util/grub.d/00_header.in: Compute prefix in the only place it's still
6780 used for backward compatibility.
6781
ff27c3dd 67822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
6783
6784 Add new all_video module.
6785
6786 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
6787 * grub-core/Makefile.core.def (all_video): New module.
6788 * grub-core/genmoddep.awk: Generate dependency of all_video from
6789 video.lst.
6790 * grub-core/lib/fake_module.c: New file.
6791 * grub-core/normal/main.c (features): Add feature_all_video_module.
6792 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
6793 don't do explicit search again.
47454da5 6794 insmod all_video in load_video if available.
22c7ce85 6795
ff27c3dd 67962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
6797
6798 Another round of string clarification and adding TRANSLATORS comments.
6799
ff27c3dd 68002012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
6801
6802 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
6803
ff27c3dd 68042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
6805
6806 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
6807 to grub_ssize_t.
6808 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
6809 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
6810
ff27c3dd 68112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
6812
6813 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
6814 trailing newline implicitly. All users updated.
6815
ff27c3dd 68162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
6817
6818 Implement serial on IEEE1275 and EFI.
6819
6820 * docs/grub.texi (Platform-specific limitations): Fix the columen video
6821 on emu. Mention arc and emu as the only platforms without serial
6822 support.
6823 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
6824 ieee1275 platforms.
6825 * grub-core/term/efi/serial.c: New file.
6826 * grub-core/term/ieee1275/serial.c: Likewise.
6827 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6828 specification if no ns8250 driver is available.
6829 (grub_cmd_serial): Likewise.
6830 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6831 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6832 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6833 (grub_efi_parity_type_t): New type.
6834 (grub_efi_stop_bits_t): Likewise.
6835 (grub_efi_serial_io_interface): New struct.
6836 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6837 available for all interfaces.
6838 Add EFI and IEEE1275 fields.
6839 (grub_ofserial_init): New proto.
6840 (grub_efiserial_init): Likeiwse.
6841 * util/grub.d/00_header.in: Don't check for the presence of serial
6842 module.
6843
ff27c3dd 68442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6845
6846 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6847 name as if it was an alias.
6848
114076ef
VS
68492012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * grub-core/commands/lsacpi.c (options): Fix typo.
6852
6a656b0e
VS
68532012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 Convert grub-emu to argp.
6856
6857 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6858 emu.
6859 * util/argp_common.c: Rename to ...
6860 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6861 Add missing includes.
6862 * grub-core/kern/emu/main.c: Convert to argp.
6863 * po/POTFILES.in: Regenerate.
6864 * util/grub-install.in (usage): Make first letter lowcase in messages
6865 for uniformity.
6866 * util/grub-setup.c (options): Likewise.
6867
1e3f8ae8
VS
68682012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
6871 Put back accidently commented-out code.
6872
ed167a80
VS
68732012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
6876 loop check using Brent algorithm.
6877 (grub_hfsplus_btree_search): Likewise.
6878
6753c0ec
VS
68792012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6880
6881 * util/grub-install.in: Fix usage of wrong device for PreP install.
6882
4e27343f
VS
68832012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 * conf/Makefile.common (CFLAGS_GNULIB): Add
6886 -Wno-unsafe-loop-optimizations.
6887 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6888 on tools.
6889 * grub-core/commands/legacycfg.c: Add pragma to skip
6890 -Wunsafe-loop-optimizations.
6891 (check_password_md5_real): Fix loop counter type.
6892 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6893 reading.
6894 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6895 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6896 loop condition.
6897 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6898 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6899 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6900 condition.
6901 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6902 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6903 avoid possible infinite loops.
6904 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6905 and -Wunsafe-loop-optimizations.
6906 * grub-core/script/yylex.l: Likewise.
6907 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6908 (print_glyphs): Avoid infinite loops.
6909 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6910
697f18b0
GS
69112012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6912
6913 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6914 to avoid infinite loop.
6915 (disp_acpi_rsdt_table): Likewise.
6916
274416e8
VS
69172012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * grub-core/font/font.c (grub_font_load): Add support for default
6920 path for fonts ($prefix/fonts).
6921 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6922 for checking if string is a path.
6923 * grub-core/normal/main.c (features): Add feature_default_font_path.
6924 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6925 * util/grub.d/00_header.in: Use default directory if possible.
6926 * util/grub-install.in: Install unicode.pf2.
6927
b3e08622
VS
69282012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6931 * po/Rules-swiss: New file.
6932 * po/swiss.sed: Likewise.
6933
fe42ce09
VS
69342012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 * grub-core/fs/btrfs.c (find_device): Fix typos.
6937 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6938 * util/grub-mkrelpath.c (argp_parser): Likewise.
6939 Reported by: Yuri Chornoivan.
6940
72f1d065
DO
69412012-02-23 Dalet Omega <daletomega@gmail.com>
6942
6943 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6944 for usual informative messages.
6945
c5884973
DO
69462012-02-23 Dalet Omega <daletomega@gmail.com>
6947
6948 Starfield theme.
6949
6950 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6951 * conf/Makefile.common: Define starfielddir.
6952 * configure.ac: Configure starfield.
6953 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6954 * themes/starfield/README: Likewise.
6955 * themes/starfield/blob_w.png: Likewise.
6956 * themes/starfield/boot_menu_c.png: Likewise.
6957 * themes/starfield/boot_menu_e.png: Likewise.
6958 * themes/starfield/boot_menu_n.png: Likewise.
6959 * themes/starfield/boot_menu_ne.png: Likewise.
6960 * themes/starfield/boot_menu_nw.png: Likewise.
6961 * themes/starfield/boot_menu_s.png: Likewise.
6962 * themes/starfield/boot_menu_se.png: Likewise.
6963 * themes/starfield/boot_menu_sw.png: Likewise.
6964 * themes/starfield/boot_menu_w.png: Likewise.
6965 * themes/starfield/slider_c.png: Likewise.
6966 * themes/starfield/slider_n.png: Likewise.
6967 * themes/starfield/slider_s.png: Likewise.
6968 * themes/starfield/src/blob_nw.xcf: Likewise.
6969 * themes/starfield/src/bootmenu/: Likewise.
6970 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6971 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6972 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6973 * themes/starfield/src/slider_c.xcf: Likewise.
6974 * themes/starfield/src/slider_n.xcf: Likewise.
6975 * themes/starfield/src/slider_s.xcf: Likewise.
6976 * themes/starfield/src/terminalbox/: Likewise.
6977 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6978 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6979 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6980 * themes/starfield/starfield.png: Likewise.
6981 * themes/starfield/terminal_box_c.png: Likewise.
6982 * themes/starfield/terminal_box_e.png: Likewise.
6983 * themes/starfield/terminal_box_n.png: Likewise.
6984 * themes/starfield/terminal_box_ne.png: Likewise.
6985 * themes/starfield/terminal_box_nw.png: Likewise.
6986 * themes/starfield/terminal_box_s.png: Likewise.
6987 * themes/starfield/terminal_box_se.png: Likewise.
6988 * themes/starfield/terminal_box_sw.png: Likewise.
6989 * themes/starfield/terminal_box_w.png: Likewise.
6990 * themes/starfield/theme.txt: Likewise.
6991
17d73325
VS
69922012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 * util/grub.d/00_header.in: Add missing export theme.
6995
dbebaf92
VS
69962012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6997
6998 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6999 already included.
7000 Reported by: Eren D.
7001
3d68bffb
VS
70022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7003
7004 * conf/Makefile.common (grubdatadir): Removed.
7005 (Makefile.am): Move eveything grubdata to pkgdata.
7006
4b59234d
VS
70072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 * grub-core/commands/acpihalt.c (get_sleep_type):
7010 Remove unused variable.
7011
463dcadc
VS
70122012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
7015 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
7016 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7017 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7018 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7019 i18n with gettext no-op.
7020 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7021 GRUB_ACPI_OPCODE_STRING_CONST.
7022 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7023 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7024
e5b90c82
VS
70252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7026
7027 * po/POTFILES.in: Regenerate.
7028
2a704ca9
VS
70292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7032 -Wno-error=missing-noreturn.
7033
84f9d341
VS
70342012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7037 condition to avoid possibly infinite loops.
7038 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7039 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7040
d46683f9
VS
70412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7044 condition to avoid possibly infinite loops.
7045
c44866b2
VS
70462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7049 on show_error.
7050
96790539
VS
70512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7054
1ba7e295
VS
70552012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7058
21ffe8f1
VS
70592012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 * util/bin2h.c (usage): Add missing attribute noreturn.
7062
0ccb6b3c
VS
70632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7066 if the size isn't divisible by 512.
7067
b00d7fb6
VS
70682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 Make list_push and list_remove functions rather than inline functions
7071 to decrease size and avoid aliasing violations.
7072
7073 * include/grub/list.h (grub_list_push): Move to ...
7074 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7075 * include/grub/list.h (grub_list_remove): Move to ...
7076 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7077
9d369087
VS
70782012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7081 and -Wunused-result.
7082
af0250d9
VS
70832012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7084
7085 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7086 Reported by: Seth Goldberg
7087
aad32b14
VS
70882012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7091
ac96441c
ST
70922012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7093
7094 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7095 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7096 command line.
7097 * docs/grub.texi (Simple configuration): Document
7098 GRUB_CMDLINE_GNUMACH.
7099
71002012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
7101
7102 * conf/Makefile.common (platform_SCRIPTS): New variable.
7103 (platform_PROGRAMS): Likewise.
7104 * gentpl.py: Mark *,module and *.image for install.
7105 * grub-core/gdb_grub.in: Add a notice of expected environment.
7106 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7107 (gmodule.pl): Likewise.
7108
ac96441c 71092012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
7110
7111 Replace grub_checkkey with grub_getkey_noblock.
7112
7113 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7114 (grub_getkey_noblock): ... this. All users updated.
7115
ac96441c 71162012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
7117
7118 * grub-core/kern/emu/console.c: Move to ...
7119 * grub-core/term/emu/console.c: ...here.
7120 (grub_ncurses_getkey): Fix return value if no key is detected.
7121
e51b5666
VS
71222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7125 (grub_unit_test_fini): Likewise.
7126 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7127
71282012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * include/grub/test.h (GRUB_UNIT_TEST)
7131
d9a62292
VS
71322012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7135 Better error handling.
7136 (grub_script_return): Likewise.
7137 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7138
77c9182f
VS
71392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7142 rimplicit redifinition.
7143
edb13cf9
VS
71442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7147 GRUB.
7148
a9e9dc7c
VS
71492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7152 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7153 prompt here.
7154
b4ba8e02
VS
71552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7158 as GRUB_ERR_BUG. Don't malloc if no device is available.
7159
dded5540
VS
71602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7161
7162 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7163 Mark calling with invalid term as GRUB_ERR_BUG.
7164
0cf69874
VS
71652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7168 packets rather than raising an error.
7169
59bfe502
VS
71702012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7173 in if.
7174
db5fc596
VS
71752012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7178 diagnostic to dprintf.
7179 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7180
e4b7f404
VS
71812012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7184 device name.
7185
e7b02f9e
VS
71862012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7189 (grub_ntfs_iterate_dir): Likewise.
7190
0331e102
VS
71912012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 Efiemu stylistic fixes and gettext.
7194
7195 * grub-core/efiemu/i386/loadcore32.c
7196 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7197 * grub-core/efiemu/i386/loadcore64.c
7198 (grub_arch_efiemu_relocate_symbols64): Likewise.
7199 * grub-core/efiemu/i386/pc/cfgtables.c
7200 (grub_machine_efiemu_init_tables): Likewise.
7201 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7202 (grub_efiemu_loadcore_initXX): Add a filename argument.
7203 All users updated.
7204 Improved error message.
7205 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7206 Add a filename argument.
7207 All users updated.
7208 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7209 Reclassify double relocation as GRUB_ERR_BUG.
7210
306fc074
VS
72112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7214 handling.
7215
794d8ef2
VS
72162012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7219 on partition.
7220
72212012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
7222
7223 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7224
794d8ef2 72252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
7226
7227 Improve string. Gettextize.
7228
78dde88e
VS
72292012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7232 utils.
7233 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7234
4786a90f
VS
72352012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7238 [GRUB_UTIL]: New function.
7239 (insert_array) [GRUB_UTIL]: Store partmaps.
7240 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7241 partmaps.
7242 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7243 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7244 (probe_abstraction): Print diskfilter and not raid.
7245 Reported by: Lennart Sorensen
7246
0b6225bd
VS
72472012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7250 * util/grub-mkimagexx.c (MASK3): New define.
7251 (add_value_to_slot_20b): Use MASK3.
7252 (add_value_to_slot_21): Likewise.
7253 (relocate_addresses): Fix format specification.
7254 (load_image): Explicitly init symtab_section.
7255
b055f8f6
VS
72562012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7259 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7260
b77c2fb7
VS
72612012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7262
7263 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7264 on powerpc.
7265 Reported by: Lennart Sorensen
7266
e3ec28ab
VS
72672012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 * gentpl.py: Add missing license header.
7270 * docs/grub.texi: Update copyright year.
7271
c8d9ead6
GS
72722012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7273
7274 Source grub-mkconfig_lib from the build directory at build time.
7275 Suggested by: Vladimir Serbinenko.
7276
7277 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7278 * util/grub-install.in: Define pkgdatadir if not already set, and source
7279 grub-mkconfig_lib from there.
7280 * util/grub-kbdcomp.in: Likewise.
7281 * util/grub-mkconfig.in: Likewise.
7282 * util/grub-mknetdir.in: Likewise.
7283 * util/grub-mkrescue.in: Likewise.
7284 * util/grub-mkstandalone.in: Likewise.
7285 * util/grub-reboot.in: Likewise.
7286 * util/grub-set-default.in: Likewise.
7287 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7288
ebcecdf1
VS
72892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 Increase warning level.
7292
7293 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7294 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7295 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7296 (TARGET_CFLAGS): Likewise.
7297 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7298 * grub-core/Makefile.core.def (decompressor_xz): Add
7299 -Wno-unreachable-code.
7300 (normal): Add -Wno-redundant-decls.
7301 (xzio): Add -Wno-unreachable-code.
7302 (lzopio): Add -Wno-redundant-decls -Wno-error.
7303 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
7304 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
7305 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
7306 * grub-core/kern/dl.c: Add exception to -Wcast-align.
7307 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
7308 * grub-core/kern/i386/coreboot/init.c: Add exception to
7309 -Wsuggest-attribute=noreturn.
7310 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
7311 * grub-core/kern/ia64/dl_helper.c: Likewise.
7312 * grub-core/kern/mips/dl.c: Likewise.
7313 * grub-core/kern/sparc64/dl.c: Likewise.
7314 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
7315 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
7316 (memcmp): Likewise.
7317 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
7318 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
7319 * grub-core/loader/mips/linux.c: Likewise.
7320 * grub-core/loader/multiboot_elfxx.c: Likewise.
7321 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
7322 * grub-core/video/sm712.c: Add exception to -Wcast-align.
7323 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
7324 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
7325 fixme.
7326 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7327 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
7328 Fix prototype.
7329
37bb97fe
VS
73302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
7333 address.
7334
29a3550b
VS
73352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7338 Avoid improper use of strings.
7339 (grub_cmd_legacy_initrdnounzip): Likewise.
7340
dfdffd0d
VS
73412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * include/grub/emu/misc.h (grub_util_warn): Add missing format
7344 attribute.
7345 (grub_util_info): Likewise.
7346 (grub_util_error): Likewise.
7347
102fae4a
VS
73482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
7351 * util/grub-fstest.c (fstest): Likewise.
7352
7e94d044
VS
73532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
7356 (grub_md_sha512_real): Likewise.
7357 (grub_util_get_geli_uuid): Likewise.
7358 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
7359 (grub_util_biosdisk_open): Fix format specification.
7360 Respect format security.
7361 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
7362 (xrealloc): Likewise.
7363 (xasprintf): Likewise.
7364
5ebd9769
VS
73652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * util/import_gcry.py: Include grub/crypto.h in init.c.
7368
495fc8c1
VS
73692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
7372 (generate_image): Make prefix a const char *.
7373 Fix format specifications. Respect format security.
7374 Avoid void * arithmetics.
7375 Avoid shadowing.
7376 (argp_parser): Remove unused variable. Respect format security.
7377 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
7378 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
7379 (count_funcs): Remove unused variable.
7380 (relocate_addresses): Fix format specification.
7381 Disable x86-64 with elf32. Remove unused variables.
7382 (add_fixup_entry): Avoid shadowing.
7383 (make_reloc_section): Fix format specification.
7384 Use assert.
7385 (locate_sections): Fix format specifications.
7386 (load_image): Avoid shadowing.
7387
043c2ea3
VS
73882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
7391 Fix format specifications. Respect format security.
7392 Don't translate already translated grub_errmsg.
7393 (argp_parser): Remove unused variable
7394
3ec65a81
VS
73952012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
7398
a4d9fe4a
VS
73992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
7402 (main): Likewise. Use xmalloc. Respect format security.
7403
15b81d49
VS
74042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
7407 a const char *.
7408 (argp_parser): Remove unused variable.
7409
31731fc0
VS
74102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
7413 (add_pixel): Make static.
7414 (add_font): Likewise.
7415 (write_string_section): Make name and str a const char *.
7416 (write_be16_section): Make name a const char *.
7417 (print_glyphs): Make static.
7418 (write_font_ascii_bitmap): Likewise.
7419 (write_font_width_spec): Likewise.
7420 (write_font_pf2): Likewise.
7421 (argp_parser): Remove unused variable.
7422 Respect format security.
7423 (main): Avoid shadowing. Respect format security.
7424
0809527b
VS
74252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * util/grub-editenv.c (argp_parser): Make static.
7428 (create_envblk_file): Use xmalloc.
7429 (open_envblk_file): Likewise.
7430 Resepect format security.
7431 (set_variables): Respect format security.
7432
45b0c8b7
VS
74332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 * util/getroot.c (grub_find_device): Respect format security.
7436 (get_mdadm_uuid): Remove unused variable.
7437 (grub_util_pull_device): Dont call gettext on already translated
7438 grub_errmsg.
7439 (find_system_device): Remove unused variable.
7440 (grub_util_get_grub_dev): Likewise.
7441 (grub_make_system_path_relative_to_its_root): Respect format security.
7442
1b024b4e
VS
74432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * util/grub-fstest.c (execute_command): Make first argument
7446 a const char *.
7447 (read_file): Avoid shadowing.
7448 Reuse underlying error message if device open fails.
7449 (cmd_cmp): Respect format security.
7450 (root): Make const char *.
7451 (fstest): Remove args argument and use global copy.
7452 Respect format security.
7453 (argp_parser): Make static.
7454 (main): Make default_root const char *.
7455
5d1d4e28
VS
74562012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * util/grub-mount.c (root): Make const char *.
7459 (execute_command): Make first argument a const char *.
7460 (fuse_init): Respect format security.
7461 (argp_parser): Make static. Remove unused variable.
7462 (main): Make default_root a const char *.
7463 Respect format security.
7464
36eb7379
VS
74652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * util/grub-probe.c (probe): Don't call gettext on already translated
7468 grub_errmsg.
7469 Remove unused variables.
7470 (argp_parser): Remove unused variable.
7471
76fb2ea9
VS
74722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * util/grub-script-check.c (argp_parser): Remove unused variable.
7475 (main): Rename read to curread to avoid shadowing.
7476
56c98584
VS
74772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * util/misc.c (grub_util_write_image_at): Fix format specification.
7480 (grub_util_write_image): Likewise.
7481 (grub_script_execute_argument_to_string): Removed (unused).
7482 (grub_script_execute_menuentry): Likewise.
7483 (grub_putchar): Likewise.
7484
164ebb48
VS
74852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
7488 (FUNCTION) [GRUB_UTIL]: Likewise.
7489 (VARIABLE) [GRUB_UTIL]: Likewise.
7490
44318d61
VS
74912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
7494 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
7495
31a26002
VS
74962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
7499 buffer.
7500
75012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
7504 (LzmaEnc_SaveState): Removed (unused).
7505 (LzmaEnc_RestoreState): Likewise.
7506 (LzmaEnc_InitPriceTables): Made static.
7507 (LzmaEnc_Construct): Likewise.
7508 (LzmaEnc_FreeLits): Likewise.
7509 (LzmaEnc_Destruct): Likewise.
7510 (LzmaEnc_Init): Likewise.
7511 (LzmaEnc_InitPrices): Likewise.
7512 (LzmaEnc_Finish): Likewise.
7513 (LzmaEnc_PrepareForLzma2): Removed (unused).
7514 (LzmaEnc_MemPrepare): Likewise.
7515 (LzmaEnc_GetNumAvailableBytes): Likewise.
7516 (LzmaEnc_GetCurBuf): Likewise.
7517 (LzmaEnc_CodeOneMemBlock): Likewise.
7518
6fa67967
VS
75192012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
7522 (grub_util_ldm_embed): Likewise.
7523
9a7428e6
VS
75242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * util/grub-editenv.c (print_var): Rename name to varname to
7527 avoid shadowing.
7528 (main): Rename index to curindex to avoid shadowing.
31a26002 7529 Make filename a const char *.
9a7428e6 7530
4f96abd1
VS
75312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7534 to arg_getline to avoid shadowing.
7535
44d10dad
VS
75362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
7539 disk_ to avoid shadowing.
7540
340ba63e
VS
75412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
7544 curindex to avoid shadowing.
7545 Make static.
7546 (MatchFinder_GetNumAvailableBytes): Make static.
7547
22965bce
VS
75482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
7551 avoid shadowing.
7552
7b5784d4
VS
75532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
7556 argument from encrypt to do_encrypt to avoid shadowing.
7557
6f48ca01
VS
75582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
7561 incorrect nesting of #if's.
7562
a4ea2dff
VS
75632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
7566 checks which are always false on some platforms.
7567 (grub_cmd_lsacpi): Likewise.
7568 * grub-core/kern/misc.c (grub_strtoul): Likewise.
7569 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
7570 Likewise.
7571
def9fc1b
VS
75722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
7575 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
7576
a67b2a04
VS
75772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7578
7579 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
7580 re_dfa_t to avoid breaking alignment invariants.
7581 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
7582 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
7583
44c6828d
VS
75842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
7587 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
7588
bebe0dd0
VS
75892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
7592 Fix declaration.
7593
a9cdb3cf
VS
75942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
7597 conserve alignment invariants.
7598 (grub_ehci_ehcc_read16): Likewise.
7599 (grub_ehci_oper_read32): Likewise.
7600 (grub_ehci_oper_write32): Likewise.
7601 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7602 Conserve alignment invariants.
7603
ccc3b1b8
VS
76042012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
7607 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
7608 declarations.
7609
987fbd95
VS
76102012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
7613 Remove unused variable.
7614
0df363f3
VS
76152012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7616
7617 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
7618 Remove set in if.
7619
b2c0c4a6
VS
76202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * include/grub/net.h: Remove double declarations.
7623
690c531f
VS
76242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 Remove "payload" command in ia64 Linux loader since I couldn't
7627 find any evidence of it being used for anything.
7628 Replace "relocate" command with an environment variable
7629
7630 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
7631 fields.
7632 (ia64_boot_payload): Removed.
7633 (last_payload): Likewise.
7634 (RELOCATE_OFF): Likewise.
7635 (RELOCATE_ON): Likewise.
7636 (RELOCATE_FORCE): Likewise.
7637 (relocate): Likewise.
7638 (free_pages): Don't free payloads.
7639 (grub_load_elf64): Use common error messages.
7640 Use "linux_relocate" variable.
7641 Increase the space after boot_params.
7642 (grub_cmd_payload): Removed.
7643 (grub_cmd_relocate): Likewise.
7644 (grub_cmd_fpswa): Improve messages.
7645 (cmd_payload): Removed.
7646 (cmd_relocate): Likewise.
7647 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
7648 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
7649
01783768
VS
76502012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 Convert UHCI to DMA framework.
7653
7654 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
7655 (grub_uhci_pci_iter): Fill new members
7656 (grub_alloc_td): Use P2V and V2P functions.
7657 (grub_free_queue): Likewise.
7658 (grub_alloc_qh): Likewise.
7659 (grub_uhci_setup_transfer): Likewise.
7660 (grub_uhci_check_transfer): Likewise.
7661
43206939
VS
76622012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7663
7664 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
7665 Remove assignment in if while on it.
7666
571e140e
VS
76672012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7668
7669 * util/grub-mkstandalone.in: Fix modules directory.
7670
a9d96eeb
VS
76712012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
7674 on i386-pc target.
7675 (argp_parser): Accept "auto" as compression specification.
7676
e4e37e8d
VS
76772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7678
7679 Fix `help' with unloaded modules.
7680
7681 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
7682 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
7683 (grub_dyncmd_dispatcher): Small stylistic fix.
7684 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
7685 explicit help is requested.
7686
e1ea3ade
VS
76872012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7688
7689 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
7690 Explicitly init restart while on it.
7691
27556881
VS
76922012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
7695 uninited variable.
7696
d65f6b36
VS
76972012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 * util/grub-mknetdir.in: Use . rather than source for POSIX
7700 compatibility.
7701
0a1e473c
VS
77022012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
7705
ce6647c8
VS
77062012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
7709 variable.
7710
66747894
VS
77112012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
7714 without quotes.
7715
71645f6e
VS
77162012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
7719
0e1c1f61
VS
77202012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
7723 iteration of partitions.
7724
9c4b5c13
VS
77252012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 Improve gettext support. Stylistic fixes and error handling fixes while
7728 on it.
7729
215c90cb
VS
77302012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
7733 part. Instead setup the correct stack in RM.
7734 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
7735 for stack.
7736 * include/grub/i386/relocator_private.h: New file.
7737
b5c1f9bf
VS
77382012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
7741 argument.
7742 * util/grub-fstest.c (options): Add missing DEVICE part.
7743
b525fd83
VS
77442012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 Clarify and unify messages.
7747
7748 * grub-core/commands/hashsum.c (options): Unify messages.
7749 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
7750 literal-only message as translatable.
7751 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
7752 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
7753 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
7754 commands.
7755 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
7756 key, not the key used to unlock. Clarify what it's used for.
7757 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
7758 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
7759 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
7760 * util/grub-editenv.c (options): Unify "verbose" message.
7761 * util/grub-fstest.c (read_file): Unify error message.
7762 (fstest): Add quotes around commands.
7763 (options): Unify "verbose" message.
7764 * util/grub-install.in: Add quotes around variable name.
7765 * util/grub-kbdcomp.in: Unify error message.
7766 * util/grub-mkfont.c (main): Likewise.
7767 * util/grub-mkrescue.in: Likewise.
7768 * util/grub-mklayout.c (options): Unify "verbose" message.
7769 * util/grub-mkstandalone.in: Unify help and verbose messages.
7770 * util/grub-mount.c (options): Unify "verbose" message.
7771 * util/grub-probe.c (options): Likewise.
7772 * util/grub-script-check.c (options): Likewise.
7773 * util/grub-setup.c (setup): Unify no-terminator message.
7774 (options): Use DEVICE and not DEV.
7775 Unify "verbose" message.
7776 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
7777
0ae70393
VS
77782012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 Improve and unify messages.
7781
7782 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
7783 name. All users updated.
7784 Print filename in error.
7785 (read_device_map): Print filename in error.
7786 * util/getroot.c (grub_guess_root_devices): Print filename in error.
7787 (grub_util_get_os_disk): Likewise.
7788 (grub_util_biosdisk_get_grub_dev): Likewise.
7789 (grub_util_check_block_device): Likewise.
7790 (grub_util_check_char_device): Likewise.
7791 (grub_make_system_path_relative_to_its_root): Likewise.
7792 * util/grub-editenv.c (create_envblk_file): Likewise.
7793 (open_envblk_file): Likewise.
7794 (write_envblk): Likewise.
7795 * util/grub-fstest.c (cmd_cp): Likewise.
7796 (cmd_cat): Likewise.
7797 (cmd_cmp): Likewise.
7798 * util/grub-menulst2cfg.c (main): Likewise.
7799 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
7800 (write_font_width_spec): Likewise.
7801 (write_font_pf2): Likewise.
7802 * util/grub-mkimage.c (generate_image): New argument outname.
7803 All users updated.
7804 Remove unreacheable message.
7805 (options): Unify messages.
7806 (help_filter): Likewise.
7807 * util/grub-mklayout.c (usage): Removed (unused).
7808 (main): Print filename in error.
7809 * util/grub-mkrescue.in: Fix wrong quoting.
7810 * util/grub-setup.c (setup): Print filename in error.
7811 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
7812 (check_sas): Likewise.
7813 * util/misc.c (grub_util_get_fp_size): Removed.
7814 (grub_util_get_image_size): Print filename in error.
7815 (grub_util_read_at): Removed.
7816 (grub_util_read_image): Print filename in error.
7817 (grub_util_load_image): Likewise.
7818 (grub_util_write_image_at): New argument filename. All users updated.
7819 Print filename in error.
7820 (grub_util_write_image): New argument filename. All users updated.
7821 Print filename in error.
7822 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
7823 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
7824
0a96117d
VS
78252012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * grub-core/Makefile.core.def (pxechain): New module.
7828 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7829 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7830 function.
7831 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7832 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7833
aca002f7
VS
78342012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7837 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7838 * include/grub/err.h (grub_error_saved): New struct.
7839 (grub_errmsg): Make array size explicit.
7840 * include/grub/misc.h (grub_error_save): New function.
7841 (grub_error_load): Likewise.
7842 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7843 (grub_error_push): Update `errno' member name.
7844 (grub_error_pop): Likewise
7845 * grub-core/net/tftp.c (tftp_data): New member save_err.
7846 (tftp_receive): Save error.
7847 (tftp_open): Restore error.
7848
a51dab13
VS
78492012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7852 to real mode down to execute A20-related code in protected mode as
7853 intended.
7854
eb6e6649
GS
78552012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7856
7857 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7858 NULL when the argument `level' has an unexpected value.
7859
92cd0f6e
VS
78602012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7861
7862 Move platform-dependent files from $prefix to $prefix/$platform.
7863
7864 * config.h.in (GRUB_TARGET_CPU): New definition.
7865 (GRUB_PLATFORM): Likewise.
7866 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
7867 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
7868 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7869 * grub-core/kern/dl.c (grub_dl_load): Likewise.
7870 * grub-core/normal/autofs.c (read_fs_list): Likewise.
7871 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
7872 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
7873 * grub-core/normal/term.c (read_terminal_list): Likewise.
7874 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
7875 $prefix/locale.
7876 (grub_gettext_init_ext): Likewise.
7877 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7878 grub_platform.
7879 * util/grub-install.in: Update directories.
7880 * util/grub-mknetdir.in: Likewise.
7881 * util/grub-mkrescue.in: Likewise.
7882
db606889
VS
78832012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7886 grub_error framework. All users updated.
7887
c39992a4
VS
78882012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7891 lists (by always binsearching), improve caching (cache strings
7892 used for binsearch, not only results), improve
7893 maintainability (by using more structured binary search) and correct
7894 error handling.
7895
1e5ec32f
VS
78962012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 * grub-core/script/execute.c (grub_script_return): Fix warning.
7899
ac576cde
VS
79002012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7901
7902 * grub-core/script/execute.c (grub_script_return): Fix potential
7903 NULL-dereference.
7904 Reported by: Jim Meyering.
7905
498453f6
VS
79062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 * po/POTFILES.in: Regenerate.
7909 * util/grub-install.in: Gettextize the strings missed in first pass.
7910
8be63f2e
VS
79112012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 * Makefile.util.def (grub-mkdevicemap): Removed.
7914 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7915 * include/grub/util/deviceiter.h: Removed.
7916 * util/deviceiter.c: Likewise.
7917 * util/getroot.c (grub_util_get_os_disk): New function.
7918 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7919 replacement for EFI.
7920 * util/grub-mkdevicemap.c: Removed.
7921 * util/grub-probe.c (probe): Handle PRINT_DISK.
7922 (argp_parser): Handle -t disk.
7923
8e1e4e39
VS
79242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * util/grub-mkfont.c: Migrate to argp.
7927 * util/grub-mklayout.c: Likewise.
7928 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7929 * util/grub-mkrelpath.c: Likewise.
7930 * util/grub-probe.c: Likewise.
7931 * util/grub-script-check.c: Likewise.
7932
4459819a
VS
79332012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 * util/grub-reboot.in: Add missing datarootdir.
7936 Add missing newline.
7937 * util/grub-set-default.in: Add missing datarootdir.
7938 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7939 * util/grub-mkrescue.in: Likewise.
7940
f65741c7
VS
79412012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7944
c1a33466
VS
79452012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7946
7947 * util/grub-kbdcomp.in: Add decent help and gettextize.
7948 * docs/man/grub-kbdcomp.h2m: New file.
7949
c76899a0
VS
79502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7951
7952 Migrate grub-mkimage.c to argp.
7953
7954 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7955 (grub-setup): Likewise.
7956 * util/grub-setup.c (print_version): Move to ...
7957 * util/argp_common.c (print_version): ... here.
7958 * util/grub-setup.c (argp_program_version_hook): Move to ...
7959 * util/argp_common.c (argp_program_version_hook): ... here.
7960 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7961 safety.
7962 * util/grub-mkimage.c (main): Migrate to argp.
7963
57db0757
VS
79642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * util/grub-mkrescue.in: Use same message as
7967 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7968 for better translations.
7969
18534ad9
VS
79702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7971
7972 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7973 options with generic grub-mkrescue.in with the goal of future
7974 merge.
7975
c84ba308
VS
79762012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * grub-core/kern/mm.c: Add missing include of i18n.h
7979 * grub-core/lib/relocator.c: Likewise.
7980
347998c2
VS
79812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7984 error.
7985 (allocate_pages): Check return value.
7986 Replace fatal with error.
7987 (grub_linux_boot): Replace printf with dprintf.
7988 Check find_mmap_size return value.
7989 Replace fatal with error.
7990 Don't call grub_machine_fini.
7991 (grub_load_elf64): Replace printf with dprintf.
7992 (grub_cmd_linux): Likewise.
7993 (grub_cmd_initrd): Likewise.
7994 (grub_cmd_payload): Likewise.
7995
c779226e
VS
79962012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7997
7998 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7999 message.
8000 * grub-core/video/radeon_fuloong2e.c
8001 (grub_video_radeon_fuloong2e_setup): Likewise.
8002 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
8003 * grub-core/video/video.c (grub_video_set_mode): Don't override
8004 standard out of memory message.
8005
dc87d45a
GS
80062012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8007
8008 NetBSD disk wedge support.
8009
8010 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
8011 [__NetBSD__]: Handle NetBSD disk wedges.
8012 * util/getroot.c (convert_system_partition_to_system_disk)
8013 [__NetBSD__]: Likewise.
8014
055f856f
MW
80152012-02-03 Mark Wooding <mdw@distorted.org.uk>
8016
8017 * util/grub-mkconfig.in: Use umask rather than chmod to create
8018 grub.cfg.new to avoid insecure grub.cfg.
8019
4a9f8346
VS
80202012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * grub-core/commands/ls.c: Gettextize.
8023 * grub-core/commands/setpci.c: Likewise.
8024 * grub-core/commands/videotest.c: Likewise.
8025 * grub-core/disk/geli.c: Likewise.
8026 * grub-core/kern/mm.c: Likewise.
8027 * grub-core/lib/relocator.c: Likewise.
8028 * grub-core/loader/efi/appleloader.c: Likewise.
8029 * grub-core/loader/i386/xnu.c: Likewise.
8030 * grub-core/loader/ia64/efi/linux.c: Likewise.
8031 * grub-core/loader/xnu.c: Likewise.
8032 * grub-core/net/dns.c: Likewise.
8033 * grub-core/net/net.c: Likewise.
8034 * grub-core/script/lexer.c: Likewise.
8035 * grub-core/script/parser.y: Likewise.
8036 * grub-core/script/yylex.l: Likewise.
8037 * util/getroot.c: Likewise.
8038 * util/grub-setup.c: Likewise.
8039
a646a366
VS
80402012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8043 number.
8044
54e2be26
VS
80452012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8048
f7c71e68
VS
80492012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8052 macro.
8053 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8054 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8055
a32d5c71
VS
80562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8059 * util/grub-install.in: Gettextize.
8060 * util/grub-mkconfig.in: Likewise.
8061 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8062 if not available.
8063 (grub_warn): Gettextize.
8064 * util/grub-mknetdir.in: Gettextize.
8065 * util/grub-mkrescue.in: Likewise.
8066 * util/grub-mkstandalone.in: Likewise.
8067 * util/grub-reboot.in: Likewise.
8068 * util/grub-set-default.in: Likewise.
8069 * util/grub.d/00_header.in: Likewise.
8070 * util/grub.d/10_hurd.in: Likewise.
8071 * util/grub.d/10_kfreebsd.in: Likewise.
8072 * util/grub.d/10_linux.in: Likewise.
8073 * util/grub.d/10_netbsd.in: Likewise.
8074 * util/grub.d/10_windows.in: Likewise.
8075 * util/grub.d/20_linux_xen.in: Likewise.
8076 * util/grub.d/30_os-prober.in: Likewise.
8077 * po/POTFILES-shell.in: Regenerate.
8078
69edd81a
RL
80792012-02-03 Richard Laager <rlaager@wiktel.com>
8080
8081 * util/grub-mkimage.c (main): Fix format-security warning.
8082 * util/grub-mkrelpath.c (main): Likewise.
8083 * util/grub-probe.c (main): Likewise.
8084
65f08dbf
RL
80852012-02-03 Richard Laager <rlaager@wiktel.com>
8086
8087 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8088 failure.
8089 Put back lost PRINT_DRIVE.
8090
e9084abe
RL
80912012-02-03 Richard Laager <rlaager@wiktel.com>
8092
8093 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8094 (grub_guess_root_devices): Replace strlen with sizeof.
8095 Avoid crash.
8096 (find_root_devices_from_poolname): Remove unused variable.
8097 Handle raidzN.
8098
cf5f7ee7
VS
80992012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8100
8101 Support install on multi-device filesystems.
8102
8103 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8104 (grub_guess_root_devices): ...this. Return char **. All users updated.
8105 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8106 Removed.
8107 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8108 (find_root_devices_from_poolname): ... here.
8109 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8110 Support zfs-fuse.
8111 (grub_guess_root_device): Rename to ...
8112 (grub_guess_root_devices): ... this. Return char **. All users updated.
8113 * util/grub-install.in: Handle multi-device filesystems.
8114 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8115 argument. All users updated.
8116 Handle multi-device filesystems.
8117 Use 'delim' as separator.
8118 Remove device check to allow filesystems on file.
8119 (main): Support -0 argument. Handle multi-device.
8120 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8121 Fix a cross-device check while on it.
8122 (arguments): Remove root_dev.
8123 (argp_parser): Remove -r.
8124 (main): Remove root_dev.
8125
2f53a9ed
VS
81262012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8129
17e1d934
VS
81302012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8133 symbol.
8134 Reported by: NODA, Kai <nodakai>.
8135
d3e3fab5
VS
81362012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8137
8138 Fix ehci on amd64.
8139
8140 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8141 pointers.
8142 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8143 (grub_ehci_setup_qh): Likewise.
8144 (grub_ehci_find_qh): Likewise.
8145 (grub_ehci_transaction): Likewise.
8146 (grub_ehci_setup_transfer): Likewise.
8147 (grub_ehci_check_transfer): Likewise.
8148 (grub_ehci_portstatus): Likewise.
8149 (grub_ehci_detect_dev): Likewise.
8150 (grub_ehci_transfer_controller_data): New field td_last_phys.
8151 (grub_ehci_setup_transfer): Fill td_last_phys.
8152 (grub_ehci_check_transfer): Use td_last_phys.
8153
3008675b
SG
81542012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8155
8156 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8157 if no submenu is present.
8158
fc9b5652
AN
81592012-02-01 Aleš Nesrsta <starous@volny.cz>
8160
8161 CBI support.
8162
8163 * include/grub/usb.h (grub_usbms_protocol_t): New values
8164 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8165 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8166 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8167 (grub_usbms_dev): Add subclass, protocol and intrpt.
8168 Remove in_maxsz and out_maxsz.
8169 (grub_usbms_reset): Rename to ...
8170 (grub_usbms_bo_reset): .. this.
8171 (grub_usbms_cbi_cmd): New function.
8172 (grub_usbms_cbi_reset): Likewise.
8173 (grub_usbms_reset): Likewise.
8174 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8175 (grub_usbms_transfer): Rename to ...
8176 (grub_usbms_transfer_bo): ... this.
8177 (grub_usbms_transfer_cbi): Likewise.
8178 (grub_usbms_transfer): Likewise.
8179
a2b81d53
AN
81802012-02-01 Aleš Nesrsta <starous@volny.cz>
81812012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8184 the support for the CS5536 modification thereos and few bugfixes.
8185
8186 * grub-core/Makefile.core.def (ehci): New module.
8187 * grub-core/bus/usb/ehci.c: New file.
8188 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8189 port and hubaddr. All users updated.
8190 Save port and hubaddr into dev structure.
8191 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8192 define.
8193 * include/grub/pci.h (grub_dma_phys2virt): New function.
8194 (grub_dma_virt2phys): Likewise.
8195 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8196
b1d51f02
VS
81972012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8200 check as some mkfs implementations omit it.
8201
fc694106
VS
82022012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8205
6c0920e3
VS
82062012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8209 Add new member volname2.
8210 (grub_jfs_label): Use volname2 if available.
8211
d1a46f9a
VS
82122012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8215 over last_mounted as seen in image generated by mkfs.nilfs2.
8216 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8217
dec8ed14
VS
82182012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8221 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8222 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8223
7397c69b
VS
82242012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8227 over the sector.
8228
b3fe42ad
VS
82292012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8232 subvolume name (by removing a bogus and useless check).
8233
10476bb0
VS
82342012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8237 sizeof while on it.
8238
9c08ad87
VS
82392012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8242 (grub_scsi_read_capacity10): ... this.
8243 (grub_scsi_read_capacity16): New function.
8244 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8245 0xffffffff.
8246 Fix off-by-one error.
8247 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8248 64-bit unsigned.
8249 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8250 (grub_scsi_read_capacity10): ... this.
8251 (grub_scsi_read_capacity_data): Rename to ...
8252 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8253 (grub_scsi_read_capacity16): New struct.
8254 (grub_scsi_read_capacity16_data): Likewise.
8255 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8256 grub_scsi_cmd_read_capacity10.
8257 New command grub_scsi_cmd_read_capacity16.
8258
bc8d0f45
VS
82592012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 SCSI >2TiB support.
8262
8263 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8264 (grub_scsi_write16): Likewise.
8265 (grub_scsi_read): Use read16 when necessary.
8266 (grub_scsi_write): Likewise.
8267 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8268 (grub_scsi_write16): Likewise.
8269 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8270
cc774926
VS
82712012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 SCSI write support (for usbms mainly).
8274
8275 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8276 a const pointer.
8277 (grub_scsi_write): Implement.
8278 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8279
67639fd7
VS
82802012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8283 variable.
8284
9079d3ed
VS
82852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8288
c6a6f204
VS
82892012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8290
8291 * po/POTFILES.in: Regenerate.
8292
ecbf8cd1
VS
82932012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8294
8295 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8296 with grub_printf to avoid unnecessary fatal failure.
8297
0b3b3b38
VS
82982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8301 (INT_MAX): Likewise.
8302 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
8303 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
8304 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
8305 (strcpy): Likewise.
8306 (strstr): Likewise.
8307 (strchr): Likewise.
8308 (strncpy): Likewise.
8309 (strcat): Likewise.
8310 (strncat): Likewise.
8311 (strcoll): Likewise.
8312 * include/grub/types.h (GRUB_SHRT_MAX): New define.
8313 (GRUB_INT_MAX): Likewise.
8314
db7337a3
VS
83152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
8318 unexpected error.
8319 (optimize_utf8): Likewise.
8320 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
8321
f37c87e1
VS
83222012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * grub-core/boot/i386/pc/lnxboot.S: Use
8325 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
8326 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
8327 location.
8328 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
8329 definition.
8330 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
8331
63fe43f3
VS
83322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8333
8334 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
8335 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
8336 now to avoid double free.
8337 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
8338 hostdisk.
8339 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
8340 * util/grub-probe.c (escape_of_path): Always return a new copy.
8341 (print_full_name): Escape path.
8342 (probe): Don't call grub_util_devname_to_ofpath on NULL.
8343 Fix hints on abstractions.
8344
ebe2c961
VS
83452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
8348 Don't add "root" line if no compatibility hont is available.
8349 Suggested by: Seth Goldberg.
8350
2b5336a2
VS
83512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
8354 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
8355 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
8356 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
8357
74310bd8
VS
83582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
8361
c30582ba
VS
83622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 * util/grub-pe2elf.c (ehdr): Make static.
8365 (shdr): Likewise.
8366 (num_sections): Likewise.
8367 (offset): Likewise.
8368
5f47782c
VS
83692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 Eliminate ofpath limits and possible overflows.
8372
8373 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
8374 (OF_PATH_MAX): Removed.
8375 (MAX_DISK_CAT): New const.
8376 (find_obppath): Use allocated rather than preallocated buffer.
8377 Return result. Argument of_path removed. All users updated.
8378 Add missing fdstat.
8379 (xrealpath): New function.
8380 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
8381 Allocate rather than use preallocated buffer. All users updated.
8382 (__of_path_common): Use allocated rather than preallocatecd buffer.
8383 Return result. Argument of_path removed. All users updated.
8384 (vendor_is_ATA): Read only needed part form the file.
8385 (check_sas): Allocate depending on contents rather than fixed.
8386 (main) [STANDALONE]: Handle NULL result.
8387
f990cbf9
VS
83882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * grub-core/normal/completion.c (iterate_dev): Close the disk.
8391
9c6e84b8
VS
83922012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 Cryptodisk write support.
8395
8396 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
8397 (grub_cryptodisk_decrypt): Moved logic to ...
8398 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
8399 (grub_cryptodisk_write): Implement.
8400 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
8401 (grub_util_fd_write): ... this. Make global.
8402 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
8403
87cf9744
VS
84042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 * include/grub/list.h (grub_list_remove): Don't crash if element is
8407 removed twice.
8408
ca8c0baf
VS
84092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 Rename ofconsole to console.
8412
8413 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
8414 as sysnonym to console.
8415 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
8416 * grub-core/term/ieee1275/console.c: ... this. All users updated.
8417 Rename grub_ofconsole_ to grub_console_. All users updated
8418 (grub_console_term_output): Rename "ofconsole" to "console".
8419 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
8420 as "console".
8421
64c8b8f6
VS
84222012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
8425 handling.
8426 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
8427 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
8428 GRUB_DISK_DEVICE_FILE_ID.
8429
f6c434d5
VS
84302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
8433 and improve performance.
8434
5858b42d
VS
84352012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
8438 missing ieee1275/ prefix on whole disk.
8439
4ed3c26b
VS
84402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
8443 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
8444
df71143e
VS
84452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
8448
076e7c0f
VS
84492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 Merge common RAID and LVM logic to an abstract diskfilter.
8452 Add LDM support using the same framework.
8453
8454 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
8455 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
8456 (libgrubmods): Remove grub-core/disk/raid.c and
8457 grub-core/partmap/gpt.c.
8458 * grub-core/Makefile.core.def (ldm): New module.
8459 (raid): Renamed to diskfilter. All users updated.
8460 * grub-core/disk/raid.c: Moved to ...
8461 * grub-core/disk/diskfilter.c: ... here.
8462 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
8463 (lv_num): New var.
8464 (find_array): Renamed to ...
8465 (find_lv): ... this. Support multi-LV. Skip nameless LVs
8466 (grub_is_array_readable): Renamed to ...
8467 (grub_is_lv_readable): ... this. Support multinode hierarchy.
8468 (insert_array): New argument id.
8469 (is_node_readable): New function.
8470 (scan_device): Rename to ...
8471 (scan_disk): .. this. Restrict to one disk.
8472 (scan_devices): New function.
8473 (grub_diskfilter_iterate): Support multi-LV.
8474 Skip invisible and nameless LVs.
8475 (grub_diskfilter_memberlist): Support multi-LV.
8476 (grub_diskfilter_read_node): New function.
8477 (grub_raid_read): Most of logic moved to ...
8478 (read_segment): ... here
8479 (read_lv): New function.
8480 (grub_diskfilter_get_vg_by_uuid): New function.
8481 (grub_diskfilter_make_raid): Likewise.
8482 * grub-core/disk/ldm.c: New file.
8483 * grub-core/disk/lvm.c (vg_list): Removed.
8484 (lv_count): Likewise.
8485 (scan_depth): Likewise.
8486 (is_lv_readable): Likewise.
8487 (grub_lvm_getvalue): Advance pointer past the number.
8488 (find_lv): Removed.
8489 (do_lvm_scan): Refactored into ...
8490 (grub_lvm_detect): ... this. Support raid.
8491 (grub_lvm_iterate): Removed.
8492 (grub_lvm_memberlist): Likewise.
8493 (grub_lvm_open): Likewise.
8494 (grub_lvm_close): Likewise.
8495 (read_lv): Likewise.
8496 (read_node): Likewise.
8497 (is_node_readable): Likewise.
8498 (is_lv_readable): Likewise.
8499 (grub_lvm_read): Likewise.
8500 (grub_lvm_write): Likewise.
8501 (grub_lvm_dev): Use diskfilter
8502 (GRUB_MOD_INIT): Likewise.
8503 (GRUB_MOD_FINI): Likewise.
8504 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
8505 new interface.
8506 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
8507 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8508 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
8509 grub_diskfilter_read_node.
8510 Fix a bug with xor.
8511 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
8512 grub_diskfilter_read_node.
8513 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
8514 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
8515 (grub_disk_dev_iterate): Move from here...
8516 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
8517 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8518 Make global.
8519 (grub_hostdisk_find_partition_start): Likewise.
8520 (grub_hostdisk_os_dev_to_grub_drive): New function.
8521 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
8522 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
8523 * util/getroot.c (make_device_name): ... here.
8524 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8525 Move to ...
8526 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
8527 * grub-core/kern/emu/hostdisk.c
8528 (convert_system_partition_to_system_disk): Move to ...
8529 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
8530 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
8531 * util/getroot.c (device_is_wholedisk): ... here.
8532 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
8533 * util/getroot.c (find_system_device): ... here.
8534 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
8535 Move to ...
8536 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
8537 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8538 Move to ...
8539 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
8540 Handle LDM.
8541 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
8542 Move to ...
8543 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
8544 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
8545 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
8546 DISKFILTER.
8547 * include/grub/raid.h: Renamed to ...
8548 * include/grub/diskfilter.h: ... this.
8549 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
8550 (GRUB_RAID_LAYOUT_*): Make into array.
8551 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
8552 (grub_diskfilter_vg): New struct.
8553 (grub_diskfilter_pv_id): Likewise.
8554 (grub_raid_member): Removed.
8555 (grub_raid_array): Likewise.
8556 (grub_diskfilter_pv): New struct.
8557 (grub_diskfilter_lv): Likewise.
8558 (grub_diskfilter_segment): Likewise.
8559 (grub_diskfilter_node): Likewise.
8560 (grub_diskfilter_get_vg_by_uuid): New proto.
8561 (grub_raid_register): Inline.
8562 (grub_diskfilter_unregister): Likewise.
8563 (grub_diskfilter_make_raid): New proto.
8564 (grub_diskfilter_vg_register): Likewise.
8565 (grub_diskfilter_read_node): Likewise.
8566 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
8567 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
8568 (grub_util_is_ldm): Likewise.
8569 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
8570 (grub_hostdisk_find_partition_start): Likewise.
8571 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
8572 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
8573 New definition.
8574 (grub_gpt_partition_map_iterate): New proto.
8575 * include/grub/lvm.h (grub_lvm_vg): Removed.
8576 (grub_lvm_pv): Likewise.
8577 (grub_lvm_lv): Likewise.
8578 (grub_lvm_segment): Likewise.
8579 (grub_lvm_node): Likewise.
8580 * util/getroot.c [...]
8581 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
8582 (probe_abstraction): Likewise.
8583 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
8584 (main): Remove dead logic.
8585
8a7f9b9c
VS
85862012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Simplify root device discover and don't fail when trying to open
8589 incorrect devices.
8590
8591 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
8592 function.
8593 (get_diskname_from_path): Likewise.
8594 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
8595 of iterating.
8596
30545b85
VS
85972012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
8600
28ea58cf
VS
86012012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
8604 pastthe end.
8605
692dabca
VS
86062012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * util/grub-install.in: Add missing \.
8609 Reported by: gentoofan
8610
f6e4ea70
VS
86112012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
8614 (direct_read): Use correct compressed size.
8615 (grub_squash_read_data): Likewise.
8616
86172012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
8618
8619 * docs/grub.texi (Platform limitations): New section.
8620 (Platform-specific operations): Likewise.
8621 * docs/grub-dev.texi (Porting): Likewise.
8622
76261110
VS
86232012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 IEEE1275 disk write support.
8626
8627 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
8628 const void *.
8629 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
8630 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
8631 and seek loginc to ...
8632 (grub_ofdisk_prepare): ... here.
8633 (grub_ofdisk_write): Implement.
8634
fc36d603
VS
86352012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 ARC disk write support.
8638
8639 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
8640 (reopen): New argument writable. All users updated.
8641 Handle required access mode.
8642 (grub_arcdisk_write): Implement.
8643 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
8644 (grub_arc_firmware_vector): Make buffer to write a const buffer.
8645
e06c2e7a
VS
86462012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
8649 (read_sblock): Don't attempt to read superblocks outside the disk size.
8650
ff447958
VS
86512012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
8654 first superblock to find the second one when possible.
8655
9e88df39
VS
86562012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 * util/grub-install.in: Fix an ARC bug.
8659 Print a warning if no platform-specific setup is available.
8660
bb26e4ff
VS
86612012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 Use static allocation rather than scratch pointer in reed_solomon.
8664 It decreases its size significantly and avoids a variable in .text.
8665
8666 * grub-core/lib/reed_solomon.c (scratch): Removed.
8667 (chosenstat): New const or static array.
8668 (sigma): Likewise.
8669 (errpot): Likewise.
8670 (errpos): Likewise.
8671 (sy): Likewise.
8672 (mstat): Likewise.
8673 (errvals): Likewise.
8674 (eqstat): Likewise.
8675 (pol_evaluate): Replace x with log_x argument. All users updated.
8676 (syndroms): Removed.
8677 (gauss_solve): Use statically allocated arrays.
8678 (rs_recover): Likewise.
8679 Calculate syndroms directly.
8680 (decode_block): Use statically allocated arrays.
8681 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
8682 (main) [TEST]: Allow -DTEST -DSTANDALONE.
8683
2e13ede5
VS
86842012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 Eliminate fixed limit on reed solomon decoder length.
8687
8688 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
8689 rather than hardcoding the address.
8690 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
8691 no_reed_solomon_length.
8692 Move gate_a20 to no-reed-solomon part.
8693 Don't force a particular size of no reed-solomon part.
8694 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8695 Removed.
8696 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
8697 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
8698
f8a9ab12
VS
86992012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/commands/wildcard.c (match_files): Handle filenames
8702 without explicit device.
8703 (wildcard_expand): Don't add explicit device if not already present.
8704 * tests/grub_script_echo1.in: Add a new expansion test.
8705
87edb894
VS
87062012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 Replace single-linked with double-linked lists. It results in more
8709 compact and more efficient code.
8710
8711 * grub-core/kern/list.c (grub_list_push): Moved from here ...
8712 * include/grub/list.h (grub_list_push): ... to here. Set prev.
8713 (grub_list_remove): Moved from here ...
8714 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
8715 (grub_prio_list_insert): Set prev.
8716 * include/grub/list.h (grub_list): Add prev. All users updated.
8717
48b391e9
VS
87182012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 Handle newer autotools. Add some missing quotes while on it.
8721
8722 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
8723 (pkglib_DATA): Move grub-mkconfig_lib from here ...
8724 (pkgdata_DATA): ... here.
8725 * Makefile.util.def (update-grub_lib): Removed.
8726 * conf/Makefile.common (pkglib_DATA): Removed.
8727 (pkglib_SCRIPTS): Likewise.
8728 (pkgdata_DATA): New variable.
8729 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
8730 needed.
8731 Add missing quotes.
8732 Remove unused variable while on it.
8733 * tests/util/grub-shell.in: Likewise.
8734 * util/grub-install.in: Likewise.
8735 * util/grub-mkconfig.in: Likewise.
8736 * util/grub-mknetdir.in: Likewise.
8737 * util/grub-mkrescue.in: Likewise.
8738 * util/grub-mkstandalone.in: Likewise.
8739 * util/grub.d/00_header.in: Likewise.
8740 * util/grub.d/10_hurd.in: Likewise.
8741 * util/grub.d/10_illumos.in: Likewise.
8742 * util/grub.d/10_kfreebsd.in: Likewise.
8743 * util/grub.d/10_linux.in: Likewise.
8744 * util/grub.d/10_netbsd.in: Likewise.
8745 * util/grub.d/10_windows.in: Likewise.
8746 * util/grub.d/20_linux_xen.in: Likewise.
8747 * util/grub.d/30_os-prober.in: Likewise.
8748 * util/update-grub_lib.in: Removed.
8749
87502012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
8751
8752 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
8753 a workaround for intel problem.
8754
66832792
PRP
87552012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
87562012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
87572012-01-23 pfsmorigo
8758
8759 * util/grub-install.in: Support dd'in into PreP partition.
8760 * util/grub-probe.c (probe): Support discovering partition type.
8761 (main): Support -t msdos_parttype.
8762
7816a17e
VS
87632012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
8766 infinite recursion using counter.
8767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
8768 init to skip it if the magic check fails.
8769 (dec_stream_header): Init s->crc32.
8770
8f9d3a8c
ZB
87712012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
87722012-01-22 Zachary Bedell <pendorbound@gmail.com>
87732012-01-22 Richard Laager <rlaager@wiktel.com>
8774
8775 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
8776 All users updated.
8777 (find_bestub): Determine correct size.
8778 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
8779 (scan_disk): Align the size down.
8780 Call check pool before find_bestub to have ashift.
8781
b055dd32
VS
87822012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
8785 dprintf in no-malloc zone.
8786
d779e9bd
ML
87872012-01-22 Mario Limonciello <mario_limonciello@dell.com>
8788
8789 * configure.ac: Add back in test for limits.h.
8790
b508af69
VS
87912012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 Support 4K-sector NTFS.
8794
8795 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
8796 (grub_ntfs_data): Remove blocksize.
8797 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
8798 Remove data argument. All users updated.
8799
dad9c8b5
VS
88002012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
8803 being in .text to avoid dprel references.
8804 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
8805 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
8806 (grub_arch_highmemsize): Likewise.
8807 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
8808 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
8809 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
8810
d43a777e
VS
88112012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
8814
8815 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
8816 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
8817
34e4208f
VS
88182012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
8821 GRUB_UTIL.
8822 (grub_set_datetime_cmos): Likewise.
8823
3ec0fc1c
VS
88242012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 Make XZ compression parameters dependent on target and not host CPU.
8827
8828 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8829 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8830
22489834
VS
88312012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8834 set but not used variable.
8835
8502fbca
VS
88362012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8839 created when no uuid support is compiled into mkfs.reiser.
8840
76df2068
VS
88412012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8844 (utf8_to_macroman): Do the opposite.
8845 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8846
64e3f8f6
VS
88472012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * configure.ac: Refise build qemu_mips w/o unifont.
8850
9c271078
VS
88512012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8852
8853 Eliminate grub_min/grub_max prone to overflow usage.
8854
8855 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8856 (poll_nonroot_hub): Likewise.
8857 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8858 (grub_affs_label): Likewise.
8859 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8860 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8861 (grub_hfs_label): Likewise.
8862 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
8863 * grub-core/fs/zfs/zfs.c (MIN): Remove.
8864 (zap_leaf_array_equal): Use grub_size. Remove MIN.
8865 (zap_leaf_array_get): Likewise.
8866 (dnode_get_path): Likewise.
8867 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
8868 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
8869 * grub-core/script/execute.c (grub_script_break): Likewise.
8870 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
8871 grub_max.
8872 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
8873 * include/grub/misc.h (grub_min): Removed.
8874 (grub_max): Likewise.
8875
80662dbc
VS
88762012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8877
8878 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8879 direct.inode = 0.
8880
e6da1467
VS
88812012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8884
b1ac4cb1
VS
88852012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8888
b4bf7c3b
VS
88892012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8892 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8893
8ee1101a
VS
88942012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8897 rather than a hack for grub_strncasemap.
8898
88992012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 Support multiple initrds
8902 Note: part of this was accidently committed in r3739.
8903
8904 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8905 initrd.
8906 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8907 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8908 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8909 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8910 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8911
4d1e2bc9
VS
89122012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8915 disks with unknown size.
8916 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8917
75b49ebe
VS
89182012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 Remove defines pertaining to arbitrary limits not affecting GRUB
8921 anymore.
8922
8923 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8924 (EXT2_MAX_SYMLINKCNT): Likewise.
8925 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8926 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8927 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8928 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8929 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8930 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8931 (DN_MAX_OBJECT_SHIFT): Likewise.
8932 (DN_MAX_OFFSET_SHIFT): Likewise.
8933 (DN_MAX_OBJECT): Likewise.
8934 (DNODES_PER_LEVEL_SHIFT): Likewise.
8935 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8936 (SPA_MAXBLOCKSIZE): Likewise.
8937 (SPA_BLOCKSIZES): Likewise.
8938 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8939 (MZAP_MAX_BLKSZ): Likewise.
8940
74a1dce7
VS
89412012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8944 handle NULL appropriately.
8945 Remove MIN.
8946
30c7d3ce
VS
89472012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8948
8949 Fix efiemu.
8950
8951 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8952 cpu/types.h.
8953 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8954 * configure.ac: Fix efiemu check.
8955
3c76ea0c
VS
89562012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8959 grub_probe.
8960 Reported by: adamwill
8961
7e532280
SG
89622012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8963
8964 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8965
30492374
VS
89662012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 Fix handling of wide characters in gfxterm.
8969
8970 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8971 (clear_char): Likewise.
8972 (paint_char): Skip code == NULL chars.
8973 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8974
e70cb72f
VS
89752012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 * grub-core/normal/charset.c: Move comment to right place.
8978
5c827cf9
VS
89792012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8982 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8983 (grub_affs_mount): Revert the correct version checking.
8984
53603892
VS
89852012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 * docs/grub.texi (Unicode): Mention several other unsupported features.
8988
ff094b9b
VS
89892011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8992 case statements as compile-time one.
8993 (direct_read): Prevent spurious warnings.
8994 (grub_squash_read_data): Likewise.
8995
c029da8a
VS
89962011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8997
8998 Various squash4 fixes and LZO and XZ support.
8999
9000 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
9001 Add xzembed source files.
9002 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
9003 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
9004 (grub_squash_inode): New subtype long_dir.
9005 (SQUASH_TYPE_LONG_DIR): New inode type.
9006 (COMPRESSION): New enum.
9007 (XZBUFSIZ): New const.
9008 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
9009 (read_chunk): Use data->decompress.
9010 (zlib_decompress): New function.
9011 (lzo_decompress): Likewise.
9012 (xz_decompress): Likewise.
9013 (squash_mount): Set new data fields.
9014 (grub_squash_iterate_dir): Handle long dir.
9015 (squash_unmount): Free xzdec and xzbuf.
9016 (grub_squash_open): Check ino type.
9017 (direct_read): Stylistic fixes. Use data->decompress.
9018 (grub_squash_read_data): Likewise.
9019 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9020 (get_byte): Likewise.
9021 (grub_zlib_disk_read): Removed.
9022 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9023 (GRUB_POSIX_BOOL_DEFINED): New define.
9024 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9025 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9026 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9027 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9028
7a45a539
VS
90292011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 Don't override more informative errors.
9032
9033 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9034 * grub-core/font/font.c (open_section): Likewise.
9035 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9036 filename. Don't override errors.
9037 (grub_cmd_openbsd_ramdisk): Don't override errors.
9038 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9039 (grub_cmd_initrd): Likewise.
9040 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9041 (grub_cmd_initrd): Likewise.
9042 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9043 (grub_cmd_linux): Likewise.
9044 (grub_cmd_initrd): Likewise.
9045 (grub_cmd_payload): Likewise.
9046 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9047 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9048 (grub_cmd_module): Likewise.
9049 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9050 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9051 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9052 (grub_cmd_xnu_mkext): Likewise.
9053 (grub_cmd_xnu_ramdisk): Likewise.
9054 (grub_xnu_check_os_bundle_required): Likewise.
9055 (grub_xnu_load_kext_from_dir): Likewise.
9056 (grub_cmd_xnu_kextdir): Likewise.
9057 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9058
b2d004db
VS
90592011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9062 as 1024 in block size field. Found on one of my test images.
9063 Small optimisation while on it.
9064
ec000eac
VS
90652011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9066
9067 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9068 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9069 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9070 performance fixes while on it.
9071 (grub_sfs_close): Fix memory leak while on it.
9072 (grub_sfs_label): Convert Latin1 to UTF-8.
9073
f50e1165
VS
90742011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9077 space to avoid overflows.
9078 (grub_hfs_label): Convert from macroman to UTF-8.
9079
2ae254de
VS
90802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9083
0108f491
VS
90842011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9085
9086 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9087
f45f5f89
VS
90882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * unicode: Import Unicode 6.0 data.
9091
4d8c4765
VS
90922011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9093
63fa8ef9
VS
9094 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9095 outside of range.
9096
90972011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
9100
9101 * include/grub/charset.h (grub_getend): New function.
9102 * grub-core/script/function.c (grub_script_function_find): Use
9103 grub_getend.
9104 * grub-core/normal/completion.c (add_completion): Likewise.
9105
f3cb4a4e
VS
91062011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9109 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9110 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9111 (GRUB_UNICODE_TAG_END): Likewise.
9112 (GRUB_UNICODE_LAST_VALID): Likewise.
9113
5da8dbc5
VS
91142011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9117 len and make it smaller. All users updated.
9118 * util/import_unicode.py: Put length and not end character.
9119 Check length.
9120
8569f13d
VS
91212011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 Make better Unicode-compliant and unify some UTF-8 code pathes.
9124
9125 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9126 valid character.
9127 (grub_is_valid_utf8): Use grub_utf8_process.
9128 Check resulting code range.
9129 (grub_utf8_to_ucs4): Use grub_utf8_process.
9130 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9131 valid character.
9132
cc4fddf5
VS
91332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9136
bbc47747
VS
91372011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * docs/grub.texi (Filesystems): Mention AFS.
9140
f63d6bf4
VS
91412011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * docs/grub.texi (Filesystems): Clarify restrictions.
9144 (Regexp): Mention non-Unicode regexp behaviour.
9145 (Other): Mention non-Unicode matching behaviour.
9146
74bbf0db
VS
91472011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9148
f63d6bf4 9149 Make HFS implementation use MacRoman.
74bbf0db
VS
9150
9151 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9152 (macroman): New const array.
9153 (macroman_to_utf8): New function.
9154 (utf8_to_macroman): Likewise.
9155 (grub_hfs_find_dir): Use utf8_to_macroman.
9156 (grub_hfs_dir): Use macroman_to_utf8.
9157 Set case_insensitive.
9158
4ea0316e
VS
91592011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9162
d3c13cbd
VS
91632011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9164
9165 Integrate hints into autogeneration scripts.
9166
9167 * docs/grub.texi (Filesystems): Add a hostdisk example.
9168 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9169 (grub-probe): Add ofpath.
9170 * gentpl.py: Remove group nosparc64.
9171 * grub-core/commands/search.c (cache_entry): New struct.
9172 (cache): New var.
9173 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9174 * grub-core/commands/search_wrap.c (options): Add platform-specific
9175 hint options.
9176 (grub_cmd_search): Handle platform-specific hints.
9177 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9178 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9179 (grub_util_biosdisk_data): Likewise.
9180 (grub_util_biosdisk_open): Set device_map.
9181 (read_device_map): Handle "" as indication of no map.
9182 Set device_map.
9183 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9184 (grub_util_biosdisk_get_compatibility_hint): New function.
9185 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9186 * include/grub/emu/hostdisk.h
9187 (grub_util_biosdisk_get_compatibility_hint): New proto.
9188 * util/grub-install.in: Don't call grub-mkdevicemap.
9189 Add platform-specific hint to load.cfg.
9190 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9191 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9192 hints. Set root preliminary to compatibility hint, not to OS name.
9193 * util/grub-probe.c (PRINT_*): Add hints.
9194 (print): Make static.
9195 (escape_of_path): New function.
9196 (guess_bios_drive): Likewise.
9197 (guess_efi_drive): Likewise.
9198 (guess_baremetal_drive): Likewise.
9199 (print_full_name): Likewise.
9200 (probe): Handle hints.
9201 (main): Likewise.
9202 * util/ieee1275/devicemap.c: Removed.
9203 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9204 updated.
9205 (grub_util_devname_to_ofpath): Return NULL on failure.
9206
9207 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9208 resource leak.
9209 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9210
9211 * po/POTFILES.in: Regenerated.
9212
9213 Allow purely long options
9214
9215 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9216 (SHORT_ARG_USAGE): Likewise.
9217 (grub_arg_show_help): Compare opt with help_options.
9218 (parse_option): Receive opt as argument. If makes big simplificatons.
9219 All users updated
9220
00ce2df3
VS
92212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9222
9223 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9224 Restructure to avoid warning.
9225
e77e325f
VS
92262011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9227
9228 * util/grub-install.in: Account for possible escaped comma in device
9229 name.
9230
165099ea
VS
92312011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9232
9233 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9234 channel.
9235
ce4a999d
VS
92362011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9239 allocation and zero-setting.
9240 (grub_ieee1275_get_devname): Check that alias is complete.
9241
379586ad
VS
92422011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9245 unaligned segments.
9246
9197b0ad
VS
92472011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9250 prefix.
9251 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9253 Add ieee1275 prefix.
9254
edddb7f9
VS
92552011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 * docs/grub.texi (Filesystems): Update.
9258
a1a8b1b9
VS
92592011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 Support odc, newc and bigendian cpio formats.
9262
9263 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9264 * grub-core/Makefile.core.def (newc): New module.
9265 (odc): Likewise.
9266 (cpio_be): Likewise.
9267 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9268 (MAGIC): Likewise.
9269 (MAGIC2): Likewise.
9270 (head) [MODE_ODC]: Adapt for the format.
9271 (head) [MODE_NEWC]: Likewise.
9272 (head) [!MODE_*]: Write fields of interest as arrays.
9273 (MAGIC_USTAR): Removed.
9274 (read_number) [MODE_NEWC]: Change to hex.
9275 (read_number) [!MODE_*]: Parse binary arrays.
9276 (grub_cpio_find_file): Factor out the code for better structure and
9277 always use read_number.
9278 (grub_cpio_mount): Use MAGIC and MAGIC2.
9279 (grub_cpio_dir): Exit on first hook non-0 return.
9280 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9281 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9282 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9283 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9284 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9285 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9286 * grub-core/fs/newc.c: New file.
9287 * grub-core/fs/odc.c: Likewise.
9288 * grub-core/fs/cpio_be.c: Likewise.
9289
58eba9ee
VS
92902011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 Fix handling of tar numbers occupying the whole field.
9293
9294 * grub-core/fs/cpio.c (read_number): New function.
9295 (grub_cpio_find_file): Use read_number instead of strtoull.
9296
a54a0e12
VS
92972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9298
9299 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9300 occupying the whole field size.
9301
a6120aca
LA
93022011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
9303
9304 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
9305
a93964ce
VS
93062011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
9309
3ea1ca46
SG
93102011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
9311
9312 * grub-core/Makefile.core.def (lzma_decompress): Add missing
9313 TARGET_IMG_LDFLAGS.
9314
b87f7ef2
VS
93152011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 * util/getroot.c (ESCAPED_PATH_MAX): New define.
9318 (mountinfo_entry): Increase the field size to take escaping into
9319 account.
9320 (find_root_device_from_libzfs): Add one byte to size of strings for
9321 security.
9322
62092395
VS
93232011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
9326 an assert.
9327 * util/grub-setup.c (setup): Likewise.
9328
1f0b1a77
VS
93292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
9332 _LzmaDecodeA.
9333
8eba9997
VS
93342011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * docs/grub.texi (Internationalisation): New section.
9337
dd0c91e9
VS
93382011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9339
9340 * docs/grub.texi (Loopback booting): New section.
9341
93422011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
9343
9344 * util/grub-mkstandalone.in: Fix minor typo errors.
9345
198e150a
VS
93462011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
9349
9350 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
9351 net/icmp.c and net/icmp6.c.
9352 (http): New module.
9353 (priority_queue): Likewise.
9354 * grub-core/io/bufio.c: Rewritten.
9355 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
9356 TYPE_WITH_CONFIGFILE_OPTION.
9357 (legacy_commands): Add bootp and dhcp.
9358 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
9359 (grub_legacy_parse): Likewise.
9360 * grub-core/lib/priority_queue.c: New file.
9361 * grub-core/net/arp.c: Add missing license header.
9362 (arp_find_entry): Removed.
9363 (arp_find_entry): Likewise.
9364 (grub_net_arp_resolve): Rename to ...
9365 (grub_net_arp_send_request): ...this.
9366 (grub_net_arp_receive): New card argument.
9367 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
9368 Set router and DNS server.
9369 (grub_net_configure_by_dhcp_ack): Handle routing information.
9370 (grub_cmd_bootp): Set checksum.
9371 (grub_bootp_init): Remove net_dhcp.
9372 * grub-core/net/dns.c: New file.
9373 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
9374 completion.
9375 (get_card_packet): Handle allocation.
9376 (grub_efinet_findcards): Set mtu.
9377 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
9378 (get_card_packet): Handle allocation.
9379 (emucard): Set mtu.
9380 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
9381 (GRUB_MOD_INIT): Set mtu.
9382 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
9383 mtu.
9384 (get_card_packet): Handle allocation.
9385 (grub_ofnet_findcards): Set mtu.
9386 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
9387 assert.
9388 (grub_net_recv_ethernet_packet): Handle IPv6.
9389 * grub-core/net/http.c: New file.
9390 * grub-core/net/icmp.c: Likewise.
9391 * grub-core/net/icmp6.c: Likewise.
9392 * grub-core/net/ip.c (ip6addr): New type.
9393 (ip6hdr): Likewise.
9394 (reassemble): Likewise.
9395 (cmp): New function.
9396 (reassembles): New variable.
9397 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
9398 (id): New variable.
9399 (send_fragmented): New function.
9400 (grub_net_send_ip_packet): Rename to ...
9401 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
9402 Handle non-UDP.
9403 (grub_net_recv_ip_packets): Rename to ...
9404 (handle_dgram): ... this. Check checksum. Handle non-UDP.
9405 (free_rsm): New function.
9406 (free_old_fragments): Likewise.
9407 (grub_net_recv_ip4_packets): New function.
9408 (grub_net_send_ip6_packet): Likewise.
9409 (grub_net_send_ip_packet): Likewise.
9410 (grub_net_recv_ip6_packets): Likewise.
9411 (grub_net_recv_ip_packets): Likewise.
9412 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
9413 (LINK_LAYER_CACHE_SIZE): New const.
9414 (link_layer_find_entry): New function.
9415 (grub_net_link_layer_add_address): Likewise.
9416 (grub_net_link_layer_resolve_check): Likewise.
9417 (grub_net_link_layer_resolve): Likewise.
9418 (grub_net_ipv6_get_slaac): Likewise.
9419 (grub_net_ipv6_get_link_local): Likewise.
9420 (grub_cmd_ipv6_autoconf): Likewise.
9421 (parse_ip): Handle one number representation.
9422 (parse_ip6): New functoion.
9423 (match_net): Handle IPv6.
9424 (grub_net_resolve_address): Handle IPv6 and DNS.
9425 (grub_net_resolve_net_address): Handle IPv6.
9426 (route_cmp): New function.
9427 (grub_net_route_address): Find best route.
9428 (grub_net_addr_to_str): Handle IPv6.
9429 (grub_net_addr_cmp): New function.
9430 (grub_net_add_addr): Register local route.
9431 (print_net_address): Handle net address.
9432 (grub_net_poll_cards): Retransmit TCP.
9433 (grub_net_poll_cards_idle_real): Likewise.
9434 (have_ahead): New function.
9435 (grub_net_seek_real): Use underlying seek.
9436 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
9437 * grub-core/net/tcp.c: New file.
9438 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
9439 (cmp): New function.
9440 (ack): Likewise.
9441 (tftp_receive): Handle unordered input.
9442 (destroy_pq): New function.
9443 (tftp_close): Close pq.
9444 * grub-core/net/udp.c: Put missing license header.
9445 (grub_net_udp_socket): New function.
9446 (udp_socket_register): Likewise.
9447 (grub_net_udp_close): Likewise.
9448 (grub_net_recv_udp_packet): Check checksum.
9449 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
9450 * include/grub/misc.h (grub_memchr): New function.
9451 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
9452 (grub_net_card_driver): Return buf in recv.
9453 (grub_net_slaac_mac_list): New struct.
9454 (grub_network_level_protocol_id): Add ipv6.
9455 (grub_net_network_level_addr): Likewise.
9456 (grub_net_network_level_net_addr): Likewise.
9457 (grub_net_app_protocol): Add seek.
9458 (grub_net_socket): Removed.
9459 (grub_net_sockets): Likewise.
9460 (grub_net_socket_register): Likewise.
9461 (grub_net_socket_unregister): Likewise.
9462 (FOR_NET_SOCKETS): Likewise.
9463 (grub_net_add_addr): Add const.
9464 (GRUB_NET_BOOTP_*): New enum.
9465 (grub_net_addr_cmp): New proto.
9466 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
9467 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
9468 (grub_net_hwaddr_to_str): NEw proto.
9469 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
9470 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
9471 (grub_dns_init): New proto.
9472 (grub_dns_fini): Likewise.
9473 (grub_net_tcp_retransmit): Likewise.
9474 (grub_net_link_layer_add_address): Likewise.
9475 (grub_net_link_layer_resolve_check): Likewise.
9476 (grub_net_link_layer_resolve): Likewise.
9477 (grub_net_dns_lookup): Likewise.
9478 (grub_net_add_dns_server): Likewise.
9479 (grub_net_remove_dns_server): Likewise.
9480 (GRUB_NET_TRIES): New const.
9481 (GRUB_NET_INTERVAL): Likewise.
9482 * include/grub/net/arp.h: Mostly rewritten.
9483 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
9484 * include/grub/net/ip.h: Mostly rewritten.
9485 * include/grub/net/netbuff.h: Indent.
9486 * include/grub/net/tcp.h: New file.
9487 * include/grub/net/udp.h: Mostly rewritten.
9488 * include/grub/priority_queue.h: New file.
9489 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
9490 (grub_swap_bytes64_compile_time): Likewise.
9491 (grub_cpu_to_be16_compile_time): Likewise.
9492 (grub_cpu_to_be32_compile_time): Likewise.
9493 (grub_cpu_to_be64_compile_time): Likewise.
9494 (grub_be_to_cpu64_compile_time): Likewise.
9495
215c1800
VS
94962011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
9499 UINT_TO_PTR with cast.
9500
c17e546c
VS
95012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
9504 don't use them.
9505
ff6b18b6
VS
95062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9507
9508 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
9509 already there.
9510
70ffcc93
VS
95112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
9514 confusing ipxe.
9515
e5f4d260
VS
95162011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
9519 Add missing const attribute.
9520 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
9521 Likewise.
9522 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
9523 Likewise.
9524
8e54b4b7
VS
95252011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
9528 misaligned access.
9529 (serpent_setkey): Likewise.
9530 (serpent_encrypt_internal): Likewise.
9531 (serpent_decrypt_internal): Likewise.
9532 (serpent_encrypt): Don't put an alignment-increasing cast.
9533 (serpent_decrypt): Likewise.
9534 (serpent_test): Likewise.
9535
813c0a2b
VS
95362011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
9539
f2b60fbd
VS
95402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
9543
9544 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
9545 grub_addr_t casts.
9546 (PTR_TO_UINT64): Likewise.
9547 (PTR_TO_UINT32): Likewise.
9548
5ef5c511
VS
95492011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9550
9551 * util/grub-mkimage.c (generate_image): Decrease the higher limit
9552 because of stack.
9553 * util/grub-setup.c (setup): Don't add redundancy past the higher load
9554 limit.
9555
c476e6df
VS
95562011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
9559 text_width > available width a bit more gracefully.
9560
384ad7cc
VS
95612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
9564 current address calculation.
9565
96f8caf8
VS
95662011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
9569 stack.
9570 (encode_block): Likewise.
9571
276b7a8b
VS
95722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
9575 certainety.
9576
e3fd394a
VS
95772011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
9580 non-RS part to avoid RS messing with GDT.
9581 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9582 Increase to suit in realmode routines.
9583
95842011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * grub-core/kern/i386/realmode.S: Increase alignment.
9587 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
9588
ee9c2e7a
VS
95892011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
9592 be deterministic.
9593 (syndroms): Compute 0 syndrom.
9594 (rs_recover): Use 0 syndrom.
9595
7a7f7cc9
VS
95962011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
9599
a14b16d1
VS
96002011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
9603 brackets.
9604
9f59e9fc
VS
96052011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9606
ca1b552c
VS
9607 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
9608 account.
9609 (get_top_pad): Likewise.
9610 (get_right_pad): Likewise.
9611 (get_bottom_pad): Likewise.
9612
96132011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 9616
e739d698
VS
96172011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
9620 attribute as the structure isn't guaranteed to be properly aligned.
9621 (grub_efi_pci_device_path): Likewise.
9622 (grub_efi_pccard_device_path): Likewise.
9623 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
9624 specify the size of `memory_type'.
9625 (grub_efi_vendor_device_path): Likewise.
9626 (grub_efi_controller_device_path): Likewise.
9627 (grub_efi_acpi_device_path): Likewise.
9628 (grub_efi_expanded_acpi_device_path): Likewise.
9629 (grub_efi_atapi_device_path): Likewise.
9630 (grub_efi_scsi_device_path): Likewise.
9631 (grub_efi_fibre_channel_device_path): Likewise.
9632 (grub_efi_1394_device_path): Likewise.
9633 (grub_efi_usb_device_path): Likewise.
9634 (grub_efi_usb_class_device_path): Likewise.
9635 (grub_efi_i2o_device_path): Likewise.
9636 (grub_efi_mac_address_device_path): Likewise.
9637 (grub_efi_ipv4_device_path): Likewise.
9638 (grub_efi_ipv6_device_path): Likewise.
9639 (grub_efi_infiniband_device_path): Likewise.
9640 (grub_efi_uart_device_path): Likewise.
9641 (grub_efi_vendor_messaging_device_path): Likewise.
9642 (grub_efi_hard_drive_device_path): Likewise.
9643 (grub_efi_cdrom_device_path): Likewise.
9644 (grub_efi_vendor_media_device_path): Likewise.
9645 (grub_efi_file_path_device_path): Likewise.
9646 (grub_efi_protocol_device_path): Likewise.
9647 (grub_efi_piwg_device_path): Likewise.
9648 (grub_efi_bios_device_path): Likewise.
9649
cb8f88ea
VS
96502011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9651
9652 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
9653 (grub_ucs4_to_utf8_alloc): Likewise.
9654 (grub_ucs4_to_utf8): Likewise.
9655 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
9656 (grub_ucs4_to_utf8_alloc): Likewise.
9657
309e5352
VS
96582011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 AFFS never uses unicode.
9661
9662 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
9663 (grub_latin1_to_utf8): New inline function.
9664 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
9665
e7987e1b
VS
96662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
9669 overflow.
9670
efc2616e
VS
96712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
9674 (grub_squash_dirent_header): Likewise.
9675 (read_chunk): Don't double swap.
9676 (grub_squash_iterate_dir): Fix swap sizes.
9677
3c349f5a
VS
96782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
9681
b453412d
VS
96822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
9685 (grub_hfs_iterate_dir): Likewise.
9686
12e9d4d1
VS
96872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9688
9689 Fix video on platforms where unaligned access is forbidden.
9690 Make several optimisations while on it.
9691
9692 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
9693 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9694 (grub_video_fbblit_replace_32bit_1bit): Likewise.
9695 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9696 Disable.
9697 (grub_video_fbblit_replace_16bit_1bit):
9698 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9699 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9700 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
9701 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
9702 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9703 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9704 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
9705 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
9706 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
9707 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
9708 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
9709 (grub_video_fbblit_replace_index_RGB888): Likewise.
9710 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
9711 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
9712 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
9713 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
9714 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
9715 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9716 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9717 Disable.
9718 (grub_video_fbblit_blend_XXX565_1bit):
9719 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9720 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
9721 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
9722 void *.
9723 * grub-core/video/fb/video_fb.c (common_blitter)
9724 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
9725 (grub_video_fb_create_render_target_from_pointer)
9726 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9727 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
9728 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
9729 definition.
9730 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
9731
ace96609
VS
97322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
9735 HH22 and HM10 relocations.
9736
fd261d73
VS
97372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
9740
e59b7857
VS
97412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
9744 allocation succeeded.
9745
9b4baaa4
VS
97462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
9749 argument a u8 pointer. All users updated.
9750 Handle unaligned buffers.
9751
dc713193
VS
97522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
9755 add_part to workaround compiler bug.
9756
30dd48c2
VS
97572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
9760
0c6087a8
VS
97612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
9764 Reserve alignment invariants.
9765 (grub_multiboot_load): Likewise.
9766 (retrieve_video_parameters): Likewise.
9767 (grub_multiboot_make_mbi): Likewise.
9768
c2e77777
VS
97692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
9772 incorrect pointer.
9773
b70b6d11
VS
97742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
9777 (grub_pata_pio_write): Likewise.
9778
02a2bf83
VS
97792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 Add noreturn attributes and remove unreachable code.
9782
9783 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
9784 code.
9785 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
9786 code. Mark as noreturn.
9787 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
9788 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
9789 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
9790 unreachable code.
9791 * grub-core/kern/main.c (grub_main): Mark as noreturn.
9792 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
9793 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
9794 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
9795 * include/grub/kernel.h (grub_main): Mark as noreturn.
9796 * include/grub/reader.h (grub_rescue_run): Likewise.
9797
2019d09e
VS
97982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
9801 redundant declaration.
9802
d1c501ee
VS
98032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * include/grub/net.h (grub_net_network_level_interfaces): Remove
9806 redundant declaration.
9807 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
9808
61664420
VS
98092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
9812 to ensure alignment.
9813 (grub_hdparm_print_identify): Make argument uint16 * to ensure
9814 alignment. Ensure tmp alignment.
9815 (grub_cmd_hdparm): Ensure buf alignment.
9816 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
9817 to ensure alignment.
9818 (grub_ata_dumpinfo): Ensure text alignment.
9819 (grub_atapi_identify): Preserve alignment invariant.
9820 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
9821
0d51ee20
VS
98222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
9825 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9826 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9827 * include/grub/misc.h (grub_reboot)
9828 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9829 (grub_halt) [__mips__]: Likewise.
9830
753ef8c1
VS
98312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9834 Remove redundant declaration.
9835 (grub_mmap_get_post64): Likewise.
9836 (grub_mmap_get_upper): Likewise.
9837 (grub_mmap_get_lower): Likewise.
9838
85c85365
VS
98392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9842 uint32_t * to ensure alignment.
9843 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9844
a23f2cc4
VS
98452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9846
93018f64
VS
9847 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9848 uint16_t * to ensure alignment.
9849 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9850 alignment.
9851
98522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9855 to ensure alignment.
9856 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9857
58acccd6
VS
98582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9861 Handle unaligned pointers.
9862 (u32at): Likewise.
9863 (u64at): Likewise.
9864 (fixup): Use byte access instead of v16at.
9865 (find_attr): Fix imporper usage of v32at.
9866 (read_data): Likewise.
9867 (list_file): Handle byte-swapping and unaligned strings.
9868 (grub_ntfs_label): Likewise.
9869
9b05cad7
VS
98702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9871
9872 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
9873 as it's not necessarily aligned.
9874
b3950b84
VS
98752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9878 redundant declaration.
9879 (grub_serial_init): Likewise.
9880 (grub_terminfo_init): Likewise.
9881
fcd232b7
VS
98822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9885 function.
9886 (ZAP_HASH_IDX): Likewise.
9887 (ZAP_LEAF_HASH_SHIFT): Likewise.
9888 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9889 (LEAF_HASH): Likewise.
9890 (ZAP_LEAF_NUMCHUNKS): Likewise.
9891 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9892 alignment invariants. Return pointer. All users updated.
9893 (ZAP_LEAF_ENTRY): Make into inline function.
9894 (NBBY): Removed.
9895 (xor): LIkewise.
9896 (xor_out): Use grub_crypto_xor.
9897 (dnode_get_path): Use grub_get_unaligned.
9898 (nvlist_find_value): Likewise.
9899 (grub_zfs_nvlist_lookup_uint64): Likewise.
9900 (grub_zfs_nvlist_lookup_string): Likewise.
9901 (get_nvlist_size): Likewise.
9902 (grub_zfs_open): Likewise.
9903 (fill_fs_info): Likewise.
9904 (grub_zfs_dir): Likewise.
9905 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9906 alignment invariants.
9907 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9908 necessarily aligned.
9909
f138623a
VS
99102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9913
564840dc
VS
99142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9917 arithmetic to conserve alignment invariants.
9918
9b40df20
VS
99192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9922 redundant declaration.
9923 (grub_efiemu_mm_obtain_request): Likewise.
9924 (grub_efiemu_prepare): Likewise.
9925
d1c930f9
VS
99262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9929 to match types.
9930
4c5f3056
VS
99312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9934 case of aunaligned recptr.
9935 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9936 alignment.
9937 (grub_hfsplus_btree_search): Handle unaligned index.
9938
728cba91
VS
99392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9942 to get freetag and skip.
9943
eb561f31
VS
99442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9947 array.
9948 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9949 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9950
20993fbb
VS
99512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9954 name for checksum and fix allocation algorithm.
9955
1f313b94
VS
99562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * include/grub/types.h (grub_properly_aligned_t): New type.
9959 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9960 (grub_get_unaligned16): Add explicit casts.
9961 (grub_get_unaligned32): Likewise.
9962 (grub_get_unaligned64): Likewise.
9963 (grub_set_unaligned16): New function.
9964 (grub_set_unaligned32): Likewise.
9965
47ae27ec
VS
99662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9969
78c2cd1c
VS
99702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9973 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9974 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9975
53072f9b
VS
99762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9979 conditionals.
9980
055dc239
VS
99812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9984 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9985
496bd074
VS
99862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 Unify and improve RAID and crypto xor.
9989
9990 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9991 changed to grub_crypto_xor
9992 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9993 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9994 Use bigger types when possible.
9995
ef6e4335
VS
99962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 * grub-core/disk/raid.c (scan_devices): Fix condition.
9999
5d048bf2
VS
100002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
10003 Make name a const ptr.
10004
ee533335
VS
100052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
10008 first argument a const pointer.
10009 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10010 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
10011 proto.
10012 (grub_children_iterate): Likewise.
10013 (grub_machine_mmap_iterate): Remove redundant declaration.
10014
cc8f3668
VS
100152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10018 (grub_cmd_acpi) [!x86]: Disable EBDA.
10019
c5fc563a
VS
100202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 Enable UTF8 in gnulib regexp.
10023
10024 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10025 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10026 (isupper): Use grub_isupper.
10027 (isascii): New inline function.
10028 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10029 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10030 * grub-core/normal/charset.c (grub_utf8_process): New function.
10031 (grub_utf8_to_utf16): Use grub_utf8_process.
10032 (grub_encode_utf8_character): New function.
10033 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10034 * include/grub/charset.h (grub_utf8_process): New declaration.
10035 (grub_encode_utf8_character): Likewise.
10036 * include/grub/misc.h (grub_islower): New inline function.
10037 (grub_isupper): Likewise.
10038 (grub_strchrsub): Moved down to fix the definitions.
10039
0af2346f
VS
100402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10041
10042 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10043 specification.
10044
74dbd244
VS
100452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * include/grub/loader.h (grub_loader_register_preboot_hook):
10048 Use struct preboot * and not void * for handle. All users updated.
10049 (grub_loader_unregister_preboot_hook): Likewise.
10050
1bc8f60d
VS
100512011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10054 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10055 UTF-16-BE. All users updated.
10056 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10057 (grub_hfsplus_iterate_dir): Likewise.
10058 (grub_hfsplus_label): Likewise.
10059
48d6e456
VS
100602011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10063
bf3a3857
VS
100642011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 Add missing const qualifiers.
10067
10068 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10069 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10070 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10071 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10072 (grub_lvm_check_flag): Likewise.
10073 * grub-core/efiemu/i386/coredetect.c
10074 (grub_efiemu_get_default_core_name): Likewise
10075 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10076 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10077 * grub-core/fs/ntfs.c (fixup): Likewise.
10078 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10079 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10080 (fzap_lookup): Likewise.
10081 (zap_lookup): Likewise.
10082 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10083 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10084 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10085 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10086 (grub_freebsd_add_meta_module): Likewise.
10087 (grub_cmd_freebsd_module): Likewise.
10088 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10089 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10090 (grub_xnu_writetree_get_size): Likewise.
10091 (grub_xnu_writetree_toheap_real): Likewise.
10092 (grub_xnu_find_key): Likewise.
10093 (grub_xnu_create_key): Likewise.
10094 (grub_xnu_create_value): Likewise.
10095 (grub_xnu_register_memory): Likewise.
10096 (grub_xnu_check_os_bundle_required): Likewise.
10097 (grub_xnu_scan_dir_for_kexts): Likewise.
10098 (grub_xnu_load_kext_from_dir): Likewise.
10099 * grub-core/normal/color.c (color_list): Likewise.
10100 * grub-core/normal/completion.c (current_word): Likewise.
10101 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10102 * grub-core/term/serial.c (grub_serial_find): Likewise.
10103 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10104 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10105 Likewise.
10106 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10107 (grub_freebsd_add_meta_module): Likewise.
10108 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10109 * include/grub/net.h (grub_net_card_driver): Likewise.
10110 (grub_net_card): Likewise.
10111 (grub_net_app_protocol): Likewise.
10112 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10113 * include/grub/serial.h (grub_serial_find): Likewise.
10114 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10115 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10116 (grub_xnu_create_value): Likewise.
10117 (grub_xnu_find_key): Likewise.
10118 (grub_xnu_scan_dir_for_kexts): Likewise.
10119 (grub_xnu_load_kext_from_dir): Likewise.
10120
10121 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10122 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10123 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10124 Moved from here ...
10125 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10126
112b4837
CW
101272011-11-28 Colin Watson <cjwatson@ubuntu.com>
10128
10129 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10130
49e891ac
VS
101312011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10134 (read_device): Fix size calculation.
10135
fd258e5c
RM
101362011-11-25 Robert Millan <rmh@gnu.org>
10137
10138 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10139 (find_root_device_from_libzfs): Add zpool output parser to be used
10140 as fallback when libzfs isn't available.
10141
78845dc2
SG
101422011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10143
10144 * po/Makefile.in.in: Add missing escape-continuation.
10145
adac5211
VS
101462011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10147
10148 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10149
10b64f1c
VS
101502011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10153
bb416954
VS
101542011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10157
bdfe9eeb
VS
101582011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10161
581ffa8a
VS
101622011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10163
10164 * grub-core/lib/adler32.c: Add missing license specification.
10165 * grub-core/lib/crc64.c: Likewise.
10166 * grub-core/loader/i386/pc/plan9.c: Likewise.
10167 * grub-core/partmap/plan.c: Likewise.
10168
2536cf64
LK
101692011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10170
10171 Add facility to debug GRUB with gdb under qemu.
10172
10173 * grub-core/gdb_grub.in: New file.
10174 * grub-core/gmodule.pl.in: Likewise.
10175 * grub-core/Makefile.core.def (gmodule.pl): New script.
10176 (gdb_grub): Likewise.
10177
bc108a4a
VS
101782011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * util/grub-mount.c (argp_parser): Accept relative pathes.
10181 * util/grub-fstest.c (argp_parser): Likewise.
10182
111c1778
VS
101832011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 Plan9 support.
10186
10187 * Makefile.util.def (libgrubmods): Add
10188 grub-core/partmap/plan.c.
10189 * docs/grub.texi: Notice Plan9 support.
10190 * grub-core/Makefile.core.def (plan9): New module.
10191 (part_plan): Likewise.
10192 * grub-core/loader/i386/pc/plan9.c: New file.
10193 * grub-core/partmap/plan.c: Likewise.
10194 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10195 define.
10196 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10197 * include/grub/mm.h (grub_extend_alloc): New inline function.
10198
c30be3b6
VS
101992011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 Make Reed-Solomon faster by using power of generator representation of
10202 GF(256)*.
10203
10204 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10205 (gf_double_t): Likewise.
10206 (gf_invert): Removed.
10207 (gf_powx): New array.
10208 (gf_powx_inv): Likewise.
10209 (scratch): Move higher.
10210 (gf_reduce): Removed.
10211 (gf_mul): Use powx.
10212 (gf_invert): Likewise.
10213 (init_inverts): Replaced with ...
10214 (init_powx): ...this. All users updated.
10215 (pol_evaluate): Replace multiplications with additions.
10216 (rs_encode): Likewise.
10217 (gauss_eliminate): Call gf_invert.
10218 (grub_reed_solomon_add_redundancy): Call init_powx.
10219 (grub_reed_solomon_recover): Call init_powx unconditionally.
10220
fa5aeffc
VS
102212011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10224
a346b81c
VS
102252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10228 disk->partiton for safety.
10229
d89ee414
VS
102302011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10233 Fix a memory leak.
10234 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10235
91ee7b6d
VS
102362011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10239
91e5a33d
VS
102402011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10243
9edd7be2
VS
102442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 Fix spaces handling in proc/self/mountinfo.
10247
10248 * util/getroot.c (unescape): New function.
10249 (grub_find_root_device_from_mountinfo): Use unescape.
10250
ba102053
VS
102512011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 Support ZFS embedding.
10254
10255 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10256 (grub_zfs_fs): Register grub_zfs_embed.
10257
aa94b870
VS
102582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 Fix MIPS compilation.
10261
10262 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10263 * include/grub/offsets.h: Rename decompressor fields from
10264 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10265 * util/grub-mkimage.c (image_targets): Use new names.
10266
5fbdac14
VS
102672011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 Defer multiboot device parsing until we're in compressed part.
10270
10271 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10272 bsd_part. setdevice has fallen into disuse.
10273 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10274 (bsd_part): Likewise.
10275 (boot_dev): New variable.
10276 (multiboot_trampoline): Don't parse multiboot device.
10277 Pass multiboot device in %edx.
10278 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10279 grub_boot_device.
10280 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10281 Likewise.
10282 * grub-core/kern/i386/pc/startup.S: Save edx.
10283 (grub_boot_drive): Removed.
10284 (grub_install_dos_part): Likewise.
10285 (grub_install_bsd_part): Likewise.
10286 (grub_boot_device): New variable.
10287 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10288 (grub_install_bsd_part): Likewise.
10289 (grub_boot_drive): Likewise.
10290 (grub_boot_device): New variable.
10291 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10292 Removed.
10293 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10294 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10295 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10296 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10297 * util/grub-install.in: Remove redundant condition.
10298
691cbb58
VS
102992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 Fix bug introduced by previous commit.
10302
10303 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
10304
60240b8b
VS
103052011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10306
10307 Use decompressors framework on i386-pc. It increases core size
10308 by 46 bytes but improves compatibility and maintainability.
10309
10310 * grub-core/Makefile.core.def (lzma_decompress): New image.
10311 (kernel): Add i386_pc_ldflags.
10312 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
10313 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
10314 to real_to_prot, prot_to_real and device info.
10315 * include/grub/offsets.h: Renamed decompressor offsets.
10316 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
10317 (image_target_desc): Remove raw_size and rename decompressor fields.
10318 (compress_kernel): Handle lzma.
10319 (generate_image): Handle decompressors on i386-pc.
10320
e9d3421c
VS
103212011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * configure.ac: Add -fno-asynchronous-unwind-tables.
10324
2b23074a
VS
103252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 Move assembly code to C by using intwrap. It increases core size
10328 by 88 bytes but improves compatibility and maintainability.
10329
10330 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
10331 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
10332 ... here. Translated to C.
10333 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
10334 * grub-core/term/i386/pc/console.c (grub_console_getkey):
10335 ... here. Translated to C.
10336 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
10337 * grub-core/term/i386/pc/console.c (grub_console_getxy):
10338 ... here. Translated to C.
10339 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
10340 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
10341 ... here. Translated to C.
10342 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
10343 * grub-core/term/i386/pc/console.c (grub_console_cls):
10344 ... here. Translated to C.
10345 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
10346 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
10347 ... here. Translated to C.
10348 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
10349 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
10350 Translated to C.
10351 * grub-core/term/i386/pc/console.c (int10_9): New function.
10352 (grub_console_putchar): Likewise.
10353 * include/grub/i386/pc/console.h: Removed the not anymore shared
10354 functions.
10355
678f4b67
VS
103562011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 Move grub_chainloader_real_boot out of the kernel.
10359
10360 * grub-core/Makefile.am: Remove machine/loader.h.
10361 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10362 Removed.
10363 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
10364 variable.
10365 (grub_relocator16_keep_a20_enabled): Likewise.
10366 (grub_relocator16_boot): Fill new variables.
10367 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
10368 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
10369 relocator.
10370 (grub_chainloader_unload): Likewise.
10371 (grub_chainloader_cmd): Likewise.
10372 * include/grub/i386/pc/loader.h: Removed.
10373 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
10374 and esi. All initialisers updated.
10375
4626edf6
VS
103762011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
103772011-11-12 Colin Watson <cjwatson@ubuntu.com>
10378
10379 * Makefile.util.def (grub-mount): New util.
10380 * .bzrignore: Add grub-mount.
10381 * configure.ac: Check for fuse and enable grub-mount if available.
10382 * docs/man/grub-mount.h2m: New file.
10383 * util/grub-mount.c: Likewise.
10384
10f0117b
VS
103852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/commands/efi/fixvideo.c: Gettextize.
10388 * grub-core/commands/hashsum.c: Likewise.
10389 * grub-core/commands/i386/cmostest.c: Likewise.
10390 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10391 * grub-core/commands/i386/pc/lsapm.c: Likewise.
10392 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10393 * grub-core/commands/lsmmap.c: Likewise.
10394 * grub-core/commands/menuentry.c: Likewise.
10395 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10396 * grub-core/commands/setpci.c: Likewise.
10397 * grub-core/loader/i386/bsd.c: Likewise.
10398 * grub-core/loader/i386/linux.c: Likewise.
10399 * util/getroot.c: Likewise.
10400 * util/grub-editenv.c: Likewise.
10401 * util/grub-fstest.c: Likewise.
10402 * util/grub-mkfont.c: Likewise.
10403 * util/grub-mkimage.c: Likewise.
10404 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10405 * util/grub-pe2elf.c: Likewise.
10406 * util/grub-probe.c: Likewise.
10407 * util/grub-setup.c: Likewise.
10408 * util/ieee1275/ofpath.c: Likewise.
10409 * util/misc.c: Likewise.
10410 * util/raid.c: Likewise.
10411
566f779b
RM
104122011-11-11 Robert Millan <rmh@gnu.org>
10413
10414 * util/getroot.c (grub_util_get_geom_abstraction): Remove
10415 __attribute__((unused)) from `os_dev', which *is* being used.
10416
b50787de
VS
104172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10418
10419 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
10420 forgotten define.
10421 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
10422 GRUB_IA64_DL_GOT_ALIGN.
10423 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
10424 GRUB_IA64_DL_TRAMP_ALIGN.
10425
119d11c8
VS
104262011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 Replace grub_fatal with normal errors in i386 linux loader.
10429
10430 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
10431 (allocate_pages): Check find_efi_mmap_size return value.
10432 (grub_e820_add_region): Return error.
10433 (grub_linux_boot): Check mmap return value.
10434
6e0632e2
VS
104352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/commands/acpihalt.c: Gettextized.
10438 * grub-core/commands/cacheinfo.c: Likewise.
10439 * grub-core/commands/cmp.c: Likewise.
10440 * grub-core/commands/efi/loadbios.c: Likewise.
10441 * grub-core/commands/gptsync.c: Likewise.
10442 * grub-core/commands/ieee1275/suspend.c: Likewise.
10443 * grub-core/commands/legacycfg.c: Likewise.
10444 * grub-core/commands/memrw.c: Likewise.
10445 * grub-core/commands/minicmd.c: Likewise.
10446 * grub-core/commands/parttool.c: Likewise.
10447 * grub-core/commands/time.c: Likewise.
10448 * grub-core/commands/videoinfo.c: Likewise.
10449 * grub-core/disk/geli.c: Likewise.
10450 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
10451 * grub-core/disk/luks.c: Likewise.
10452 * grub-core/disk/lvm.c: Likewise.
10453 * grub-core/font/font_cmd.c: Likewise.
10454 * grub-core/fs/zfs/zfscrypt.c: Likewise.
10455 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10456 * grub-core/gfxmenu/view.c: Likewise.
10457 * grub-core/kern/emu/hostdisk.c: Likewise.
10458 * grub-core/kern/emu/main.c: Likewise.
10459 * grub-core/kern/emu/misc.c: Likewise.
10460 * grub-core/kern/emu/mm.c: Likewise.
10461 * grub-core/kern/mips/arc/init.c: Likewise.
10462 * grub-core/kern/mips/loongson/init.c: Likewise.
10463 * grub-core/kern/partition.c: Likewise.
10464 * grub-core/lib/i386/halt.c: Likewise.
10465 * grub-core/lib/mips/arc/reboot.c: Likewise.
10466 * grub-core/lib/mips/loongson/reboot.c: Likewise.
10467 * grub-core/loader/i386/pc/chainloader.c: Likewise.
10468 * grub-core/loader/i386/xnu.c: Likewise.
10469 * grub-core/loader/multiboot.c: Likewise.
10470 * grub-core/net/bootp.c: Likewise.
10471 * grub-core/net/net.c: Likewise.
10472 * grub-core/normal/term.c: Likewise.
10473 * grub-core/partmap/bsdlabel.c: Likewise.
10474 * grub-core/parttool/msdospart.c: Likewise.
10475 * grub-core/term/gfxterm.c: Likewise.
10476 * grub-core/term/terminfo.c: Likewise.
10477 * grub-core/video/i386/pc/vbe.c: Likewise.
10478 * util/grub-menulst2cfg.c: Likewise.
10479 * util/grub-mkdevicemap.c: Likewise.
10480 * util/grub-mklayout.c: Likewise.
10481 * util/grub-mkrelpath.c: Likewise.
10482 * util/grub-script-check.c: Likewise.
10483 * util/ieee1275/grub-ofpathname.c: Likewise.
10484 * util/resolve.c: Likewise.
10485
073aa7a9
VS
104862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10487
10488 Support %1$d syntax.
10489
10490 * tests/printf_unit_test.c: New file.
10491 * Makefile.util.def (printf_test): New test.
10492 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
10493
c76b5417
VS
104942011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
10497 fix.
10498
df067ad1
VS
104992011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
10502 dprintf.
10503 * grub-core/font/font.c (grub_font_load): Likewise.
10504
5b289bc5
VS
105052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 * util/grub-macho2img.c: Add comment concerning gettext.
10508 * grub-core/lib/legacy_parse.c: Likewise.
10509
c1860f87
VS
105102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
10513 (grub_xvasprintf): Likewise.
10514
d35d0d37
VS
105152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 Add const keyword to grub_env_get and gettextize week days.
10518
10519 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
10520 (grub_read_hook_datetime): Return const char *.
10521 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
10522 updated.
10523 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10524 Mark for gettext.
10525 (grub_get_weekday_name): Return const char *. Call gettext.
10526 * grub-core/script/argv.c (grub_script_argv_append): Receive const
10527 char * and len as the argument. All users updated.
10528 (grub_script_argv_split_append): Receive const char *.
10529 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
10530 * include/grub/env.h (grub_env_get): Likewise.
10531 (grub_env_read_hook_t): Return const char *.
10532 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
10533 (grub_script_argv_split_append): Likewise.
10534
9aed8a71
VS
105352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10536
10537 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
10538
067fdf00
VS
105392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10540
10541 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
10542 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
10543
a8bd9d39
VS
105442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
10547 Fix prototype.
10548
f7ce5baf
VS
105492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 Fix mips compilation.
10552
10553 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
10554 normal decoder.
10555 (hashes): Use in embed decoder as well (for sizes).
10556 (dec_stream_header): Fix embed decompressor logic.
10557 (dec_stream_footer): Likewise.
10558
9bb182f3
VS
105592011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
10562 an error and not a fatal on unrecognised relocation types.
10563
63a9e6f6
VS
105642011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10567 Issue error rather than printf on unknown arguments.
10568
4c458569
VS
105692011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
10572 Make buf a const.
10573
e2d22baf
VS
105742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
10577 Fix module name.
10578
53dc8590
VS
105792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
10582 leftover debug printf.
10583
6c189294
VS
105842011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
10587
f7688369
VS
105882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
10591 A stylistic fix.
10592
11a775a3
VS
105932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
10596
33f784e8
SL
105972011-11-10 Shea Levy <slevy@tieronedesign.com>
10598
10599 Allow all modules to perform serial IO
10600
10601 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
10602 * include/grub/serial.h (grub_serial_port_configure): New inline
10603 function.
10604 (grub_serial_port_fetch): Likewise.
10605 (grub_serial_port_put): Likewise.
10606 (grub_serial_port_fini): Likewise.
10607 (grub_serial_find): New proto.
10608
f6276525
VS
106092011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 Put symlink at the end of the node and fix a potential
10612 memory corruption.
10613
10614 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
10615 Make symlink into an array.
10616 (set_rockridge): Set have_symlink and alloc_dirents.
10617 (grub_iso9660_read_symlink): Use new layout.
10618 (grub_iso9660_iterate_dir): Fix memory corruption.
10619 Use new layout.
10620 (grub_iso9660_dir): Set have_symlink.
10621 (grub_iso9660_open): Likewise.
10622
c3591189
VS
106232011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Remove local keyword.
10626
10627 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
10628 (version_test_gt): Likewise.
10629 (version_find_latest): Likewise.
10630 (gettext_printf): Likewise.
10631 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
10632
cb544caa
VS
106332011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
10636
45bd824d
VS
106372011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 Fix ZFS memory and resource leaks.
10640
10641 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
10642 All users updated.
10643 Free type on exit.
10644 (fill_vdev_info): New parameter inserted. All users updated.
10645 (check_pool_label): Likewise.
10646 (scan_disk): Likewise.
10647 (scan_devices): Close non-inserted disks.
10648 (fzap_iterate): Free l.
10649 (unmount_device): Free children descripto memory.
10650
ad9a2f44
VS
106512011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
10654 argument (access out of bounds).
10655
6b68db81
VS
106562011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10657
10658 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
10659 >= 6 drives.
10660
28840fda
VS
106612011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
10664 Fix declaration.
10665
8a5a3a5b
VS
106662011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 Fix several memory leaks.
10669
10670 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
10671 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
10672 (grub_cpio_dir): Likewise.
10673 * grub-core/fs/fat.c (grub_fat_label): Likewise.
10674 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
10675 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
10676 (grub_romfs_label): Likewise.
10677 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
10678 (squash_unmount): New function.
10679 (grub_squash_dir): Fix memory leak.
10680 (grub_squash_open): Likewise.
10681 (grub_squash_read): Likewise.
10682 (grub_squash_mtime): Likewise.
10683 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
10684 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
10685 * util/grub-fstest.c (fstest): Likewise.
10686
57b01250
VS
106872011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10688
10689 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
10690 avoid accessing beyond the array.
10691
19e81ba7
VS
106922011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
10695
52b656c0
VS
106962011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 Several AFFS fixes.
10699
10700 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
10701 (GRUB_AFFS_FLAG_FFS): Removed.
10702 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
10703 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
10704 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
10705 (grub_fshelp_node): Make block 32-bit.
10706 Add block_cache and last_block_cache.
10707 (grub_affs_read_block): Fill and use block cache.
10708 (grub_affs_read_file): Removed.
10709 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
10710 boot block.
10711 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
10712 safety.
10713 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
10714 space.
10715 (grub_affs_close): Free block cache.
10716 (grub_affs_read): Use grub_fshelp_read_file directly.
10717
438a746a
VS
107182011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
10721 with no error set.
10722
49a45021
VS
107232011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
10726 used variable.
10727 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10728 Likewise.
10729
3ae17eb8
VS
107302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
10733
10734 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
10735 byteswap when needed.
10736
27610c38
VS
107372011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 Fix FreeBSD compilation.
10740
10741 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
10742 to avoid circular dependency.
10743 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
10744 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
10745 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
10746
4a19b601
VS
107472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 Fix ZFS crypto error types.
10750
10751 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
10752 (grub_gcm_decrypt): Likewise.
10753 (grub_zfs_load_key_real): Fix error code type. Handle possible error
10754 from PBKDF2.
10755
958ee221
VS
107562011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 Illumos support.
10759
10760 * Makefile.util.def (10_illumos): New script.
10761 * configure.ac: Set COND_HOST_ILLUMOS.
10762 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
10763 Support Illumos calls.
10764 (find_partition_start) [__sun__]: Likewise.
10765 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
10766 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
10767 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
10768 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
10769 device.
10770 * util/grub-probe.c (probe) [__sun__]: Do character check.
10771 * util/grub.d/10_illumos.in: New file.
10772
cac14fb6
VS
107732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 Support escaped commas in hostdisk.
10776
10777 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
10778 (find_grub_drive): Use unescape_cmp.
10779 (make_device_name): Escape commas.
10780
78e08dc3
VS
107812011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
10784
9f421dd1
VS
107852011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
10788 variable.
10789
ed64e9e2
VS
107902011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 Support trampoline jumps on powerpc.
10793
10794 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
10795 __ia64__ path.
10796 (grub_dl_load_segments): Set mod->sz.
10797 (grub_dl_flush_cache): Flush whole space occupied by module, not just
10798 segments.
10799 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
10800 (jump): Likewise.
10801 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
10802 function.
10803 (trampoline): New struct.
10804 (trampoline_template): New const.
10805 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
10806 * include/grub/dl.h (grub_dl): Add sz element.
10807 [__powerpc__]: Follow __ia64__.
10808 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
10809 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
10810 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
10811 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
10812
3084ede4
VS
108132011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 ZFS crypto support.
10816
10817 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
10818 * grub-core/Makefile.core.def (zfscrypt): New module.
10819 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
10820 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
10821 it. All users updated.
10822 (grub_zfs_decrypt): New var.
10823 (grub_zfs_load_key): Likewise.
10824 (zio_checksum_functions): Add SHA256+MAC.
10825 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10826 (zio_read): Handle encrypted blocks.
10827 (zap_verify): Remove incorrect check.
10828 (fzap_iterate): Handle non-standard fzap.
10829 (zap_iterate): Likewise.
10830 (zap_iterate_u64): New function.
10831 (dnode_get_fullpath): Load keys.
10832 * grub-core/fs/zfs/zfscrypt.c: New file.
10833 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10834 (grub_crypto_ecb_encrypt): Make input const.
10835 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10836 (grub_crypto_ecb_encrypt): Make input const.
10837 (GRUB_CIPHER_AES): New macro.
10838 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10839 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10840 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10841 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10842 prefix. All users updated.
10843 (grub_zfs_add_key): New proto.
10844 (grub_zfs_decrypt): Likewise.
10845 (grub_zfs_load_key): Likewise.
10846 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10847 * util/grub-fstest.c (options): Add -K option.
10848 (argp_parser): Likewise.
10849
b632b404
VS
108502011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 Support zle compression on ZFS.
10853
10854 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10855 (decomp_table): Add zle.
10856 * include/grub/zfs/zio.h (zio_compress): Add zle.
10857
c7ba4f69
VS
108582011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 Support BtrFS embedding.
10861
10862 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
10863 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
10864 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
10865 * util/grub-setup.c (setup): Use fs embedding if available.
10866 Add additional sanity check.
10867
455377d9
VS
108682011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10869
10870 * util/grub-install.in: Fix condition for config_opt.
10871
c2fd16ca
VS
108722011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 Support third redundancy strip on raidz3.
10875
10876 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
10877 Return error on singularity. All users updated.
10878 (read_device): Don't stop on 3rd failure on raidz3.
10879
8622923b
VS
108802011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Support case-insensitive ZFS subvolumes.
10883
10884 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10885 All users updated.
10886 (zap_hash): Likewise.
10887 (name_cmp): New function.
10888 (zap_leaf_array_equal): New parameter case_insensitive.
10889 All users updated.
10890 (zap_leaf_lookup): Likewise.
10891 (fzap_lookup): Likewise.
10892 (zap_lookup): Likewise.
10893 (dnode_get_path): New parameter case_insensitive. Retrieve case
10894 sensitiviness of a volume. All users updated.
10895 (dnode_get_fullpath): New parameter case_insensitive.
10896 All users updated.
10897 (grub_zfs_dir): Set info.case_insensitiveness.
10898
95f2e860
VS
108992011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10900
10901 Support second redundancy strip on raidz(2,3).
10902
10903 * grub-core/fs/zfs/zfs.c (powx): New array.
10904 (powx_inv): Likewise.
10905 (poly): New const.
10906 (xor_out): New function.
10907 (gf_mul): Likewise.
10908 (recovery): Likewise.
10909 (read_device): Use second redundancy strip.
10910
11ee4389
VS
109112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 Use a power of generator representation of GF(256) multiplication group
10914 to save space time and complexity.
10915
10916 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10917 (raid6_table2): Likewise.
10918 (powx): New array.
10919 (powx_inv): Likewise.
10920 (poly): New const.
10921 (grub_raid_block_mul): Replace with ...
10922 (grub_raid_block_mulx): ...this.
10923 (grub_raid6_init_table): Rewritten.
10924 (grub_raid6_recover): Use power of generator representation.
10925
09e2763f
VS
109262011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10929 for the right device.
10930
8bec9a28
VS
109312011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10934 expected by grub-mkimage and it's more clear since there is no implicit
10935 padding.
10936
dbd3a32e
VS
109372011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10940 disk.
10941 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10942
182c872a
PMH
109432011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10944
10945 * util/grub-mkrescue.in: Fix handling xorriso option.
10946
1e51cabd
VS
109472011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10948
10949 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10950 NULL.
10951
9cc3581d 109522011-11-03 crocket <crockabiscuit@gmail.com>
10953
10954 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10955
158dc1ea
VS
109562011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 XZ CRC64 and SHA256 support.
10959
10960 * Makefile.util.def (libgrubmods): Add crc64.c.
10961 * grub-core/Makefile.core.def (crc64): New module.
10962 * grub-core/lib/crc64.c: New file.
10963 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10964 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10965 Fix the type.
10966 (MAX_HASH_SIZE): New define.
10967 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10968 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10969 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10970 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10971 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10972 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10973 Handle non-crc32 hashes.
10974 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10975 (dec_stream_header): Handle non-crc32 hashes.
10976 (dec_stream_footer): Likewise.
10977 (dec_block_header): Likewise.
10978 (dec_main): Likewise.
10979 (xz_dec_init): Likewise.
10980 (xz_dec_reset): Likewise.
10981 (xz_dec_end): Likewise.
10982 * util/import_gcry.py: Add CRC64 line.
10983
9d9b3d2f
VS
109842011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10987 as well.
10988
7d0ac931
VS
109892011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 Make reiserfs label retrieval similar to other *_label functions.
10992
10993 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10994 (REISERFS_MAX_LABEL_LENGTH): Removed.
10995 (REISERFS_LABEL_OFFSET): Likewise.
10996 (grub_reiserfs_label): Rewritten.
10997
109982011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
11001 field.
11002
cf5ba824
VS
110032011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
11006
17744004
VS
110072011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11008
11009 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
11010 drive failure on both raidz and raidz2.
11011
aca5aefc
VS
110122011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11013
11014 Fix RAIDZ(2) for >= 5 devices.
11015
11016 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11017 asize argument. All users updated.
11018
ce8ca56e
VS
110192011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 Fix RAIDZ(2).
11022
11023 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11024 (fill_vdev_info_real): Set ashift.
11025 (read_device): Rewrite RAIDZ part based on reverse engineering.
11026
7c01e783
VS
110272011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11028
11029 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11030 don't report potentially unavialiable fields in debug output.
11031 (find_path): Fix double-free and memory leak.
11032
ce109e84
VS
110332011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11034
11035 Read label on UFS1.
11036
11037 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11038 (grub_ufs_fs): Always set .label.
11039
87661123
VS
110402011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 Use shifts in UFS.
11043
11044 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11045 (grub_ufs_data): New field log2_blksz.
11046 (grub_ufs_read_file): Use shifts.
11047 (grub_ufs_mount): Check block size and logarithm it.
11048
46bc1dc2
VS
110492011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11052 long symlinks.
11053
19ee2987
VS
110542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 Handle symlinks and long names on tar and cpio.
11057
11058 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11059 (ATTR_FILE): Likewise.
11060 (ATTR_DIR): Likewise.
11061 (ATTR_LNK): Likewise.
11062 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11063 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11064 L and K entries.
11065 (grub_cpio_mount): Zero-fill data.
11066 (handle_symlink): New function.
46bc1dc2
VS
11067 (grub_cpio_dir): Handle symlinks.
11068 (grub_cpio_open): Likewise.
11069 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 11070
c83a08d8
VS
110712011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 Fix iso9660 filename limitations and fix memory leaks.
11074
11075 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11076 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11077
45cdd3ea
VS
110782011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 Fix JFS file name length limitations.
11081
11082 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11083 (grub_jfs_diropen): Fix maximum filename length.
11084 (grub_jfs_getent): Fix filename length.
11085 (grub_jfs_lookup_symlink): Fix size checks.
11086
94ef05c2
VS
110872011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11090 string.
11091
785ab8c7
VS
110922011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11093
eb0b6b45
VS
11094 Leverage BFS implementation to read AFS.
11095
11096 * Makefile.util.def (libgrubmods): Add afs.c.
11097 * grub-core/Makefile.core.def (afs): New module
11098 * grub-core/fs/afs.c: New file.
11099 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11100
111012011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 11104
c4a1628f
VS
111052011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11106
11107 * grub-core/fs/bfs.c: Run indent.
11108
5825b379
VS
111092011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 BFS implementation based on the specification.
11112
11113 * grub-core/fs/bfs.c: New file.
11114 * Makefile.util.def (libgrubmods): Add bfs.c.
11115 * grub-core/Makefile.core.def (bfs): New module.
11116
42b2a706
VS
111172011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * util/grub-fstest.c (cmd_cp): Clarify error message.
11120 (cmd_cmp): Likewise.
11121
61b99bfc
YB
111222011-10-30 Yves Blusseau <blusseau@zetam.org>
11123
11124 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11125 and befs_be.
11126
faba3d16
VS
111272011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 Remove afs and befs because of copyright problem.
11130
11131 * grub-core/fs/afs.c: Removed.
11132 * grub-core/fs/afs_be.c: Removed.
11133 * grub-core/fs/befs.c: Removed.
11134 * grub-core/fs/befs_be.c: Removed.
11135 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11136 * grub-core/Makefile.core.def (afs): Removed.
11137 (afs_be): Likewise.
11138 (befs): Likewise.
11139 (befs_be): Likewise.
11140
c39224b0
VS
111412011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 Prefer rockridge over Joliet.
11144
11145 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11146 to ...
11147 (set_rockridge): ... here.
11148 (grub_iso9660_mount): Check rockridge on the primary label when
11149 discovering. Ignore Joliet if Rockridge is present.
11150
e551115a
VS
111512011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 Use shifts in nilfs2.
11154
11155 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11156 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11157 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11158 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11159 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11160 (grub_nilfs2_entries_per_block): Replaced with ...
11161 (grub_nilfs2_log_entries_per_block_log): ... this.
11162 (grub_nilfs2_blocks_per_group): Replaced with ...
11163 (grub_nilfs2_blocks_per_group_log): ... this.
11164 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11165 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11166 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11167 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11168 (grub_nilfs2_palloc_entry_offset): Replaced ...
11169 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11170 (grub_nilfs2_dat_translate): Use shifts.
11171 (grub_nilfs2_read_inode): Likewise.
11172 (GRUB_MOD_INIT): Ensure that logs are correct.
11173
564dd58c
VS
111742011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 Use shifts in minix filesystem.
11177
11178 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11179 (GRUB_MINIX_ZONE2SECT): Likewise.
11180 (grub_minix_data): Replace block_size with log_block_size.
11181 (grub_minix_read_file): Use shifts.
11182 (grub_minix_mount): Check block size and take a logarithm.
11183
ed9ba06d
VS
111842011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 Use shifts in squash4.
11187
11188 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11189 (squash_mount): Check block size and take logarithm.
11190 (direct_read): Use shifts.
11191
ad03fe76
VS
111922011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 Correct befs block counting logic.
11195
11196 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11197 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11198 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11199 (grub_afs_read_inode): Use block_shift.
11200 (RANGE_SHIFT): New definition.
11201 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11202 unexpected conditions, use shifts and appropriate types.
11203 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11204
6563f63d
VS
112052011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 * grub-core/disk/raid.c (scan_devices): Check partition.
11208 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11209
5b1ae25f
VS
112102011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 Support BFS (befs) UUID.
11213
11214 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11215 (grub_afs_small_data_element_header): New struct.
11216 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11217 (grub_afs_read_attribute) [MODE_BFS]: New function.
11218 (grub_afs_iterate_dir): Allocate for complete inode.
11219 (grub_afs_mount): Likewise.
11220 (grub_afs_uuid) [MODE_BFS]: New function.
11221 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11222
f8d82408
VS
112232011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11224
11225 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11226 (zfs_unmount): Fix memory leak.
11227
5773fb64
VS
112282011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11229
11230 Support NTFS reparse points.
11231
11232 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11233 (symlink_descriptor): New struct.
11234 (grub_ntfs_read_symlink): New function.
11235 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11236 (grub_ntfs_open): Likewise.
11237
91c3fdde
VS
112382011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11241
3be82e10
VS
112422011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 fstest xnu_uuid subcommand.
11245
11246 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11247 grub-core/commands/xnu_uuid.c.
11248 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11249 (fstest): Handle xnu_uuid.
11250 (options): Document xnu_uuid.
11251 (argp_parser): Parse xnu_uuid.
11252
8e32442e
VS
112532011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11254
11255 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11256 -l argument. Add newline at the end if printing.
11257 (GRUB_MOD_INIT): Document -l.
11258
52a05075
VS
112592011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11260
11261 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11262
1869edb5
VS
112632011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 ZFS multi-device and version 33 support.
11266
11267 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11268 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11269 (grub_zfs_data): Add multidev-ice-related fields.
11270 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11271 (dva_get_offset): Make dva const.
11272 (zfs_fetch_nvlist): New function.
11273 (fill_vdev_info_real): Likewise.
11274 (fill_vdev_info): Likewise.
11275 (check_pool_label): Likewise.
11276 (scan_disk): Likewise.
11277 (scan_devices): Likewise.
11278 (read_device): Likewise.
11279 (read_dva): Likewise.
11280 (zio_read_gang): Use read_dva.
11281 (zio_read_data): Likewise.
11282 (zap_leaf_lookup): Add missing endian conversion.
11283 (zap_verify): Add missing endian conversion. All users updated.
11284 (fzap_lookup): Likewise.
11285 (fzap_iterate): Likewise.
11286 (dnode_get_path): Handle SA bonus.
11287 (nvlist_find_value): Make input const. All users updated.
11288 (unmount_device): New function.
11289 (zfs_unmount): Use unmount_device.
11290 (zfs_mount): Use scan_disk.
11291 (zfs_mtime): New function.
11292 (grub_zfs_open): Handle system attributes.
11293 (fill_fs_info): Likewise.
11294 (grub_zfs_dir): Likewise.
11295 (grub_zfs_fs): Add mtime.
11296 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11297 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11298 (SA_MTIME_OFFSET): Likewise.
11299 (SA_SYMLINK_OFFSET): Likewise.
11300 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11301 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11302 (fstest): Support zfsinfo.
11303 (argp_parser): Likewise.
11304
186b4028
VS
113052011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
11308 error.
11309
113102011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
11311
11312 ZFS fixes.
11313
11314 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
11315 sharing the same block. Iterate over correct number of indices.
11316 (dnode_get_path): Handle symlinks correctly.
11317
c0584900
VS
113182011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
11321
67e2bd71
VS
113222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11323
11324 Read label on HFS+.
11325
11326 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
11327 (grub_hfsplus_btree_search): Fix types.
11328 (grub_hfsplus_label): Implement.
11329
e9cc6b7b
VS
113302011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
11333
19832ddb
VS
113342011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
11337
66b40850
VS
113382011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 Fix symlink handling on iso9660.
11341
11342 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
11343 All users updated.
11344 (grub_iso9660_susp_iterate): Accept zero-size iterate.
11345 (grub_iso9660_read_symlink): Moved most of code ...
11346 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
11347
db821363
VS
113482011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11351 Use union to avoid breaking strict-aliasing rules.
11352
e1211949
VS
113532011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 Support multi-extent iso files.
11356
11357 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
11358 Add node.
11359 (grub_fshelp_node): Revamp. All users updated.
11360 (FLAG_*): New enum.
11361 (read_node): New function.
11362 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
11363 All users updated.
11364 (grub_iso9660_mount): Don't attempt to read sua when there is none.
11365 (get_node_size): New function.
11366 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
11367 entries.
11368 Fix memory leak on . and ..
11369 (grub_iso9660_read): Use read_node.
11370 (grub_iso9660_close): Free node.
11371
d4888031
VS
113722011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11373
11374 Fix tar 4G limit and handle paths containing dot.
11375
11376 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
11377 (canonicalize): New function.
11378 (grub_cpio_find_file): Use canonicalize. Store offs in
11379 grub_disk_addr_t.
11380 (grub_cpio_dir): Use grub_disk_addr_t.
11381 (grub_cpio_open): Likewise.
11382
9f12e664
VS
113832011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 Fix handling of uncompressed blocks on squashfs and break 4G limit.
11386
11387 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
11388 unused flags.
11389 (grub_squash_inode): Add long_file and block_size.
11390 (grub_squash_cache_inode): New struct.
11391 (grub_squash_dirent): Make types into enum.
11392 (SQUASH_TYPE_LONG_REGULAR): New type.
11393 (grub_squash_frag_desc): Add field size.
11394 (SQUASH_BLOCK_FLAGS): New enum.
11395 (grub_squash_data): Use grub_squash_cache_inode.
11396 (grub_fshelp_node): Make ino_chunk 64-bit.
11397 (read_chunk): Minor argument change. All users updated.
11398 (squash_mount): Use correct le_to_cpu.
11399 (grub_squash_open): Handle LONG_REGULAR.
11400 (direct_read): New function.
11401 (grub_squash_read_data): Handle blocks correctly.
11402
9f326fba
VS
114032011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11404
11405 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
11406
f4d9b64b
VS
114072011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
11410
5bbd28b8
VS
114112011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11412
11413 Fix 2G limit on ZFS.
11414
11415 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
11416 types.
11417 (uberblock_verify): Likewise.
11418 (dmu_read): Likewise.
11419 (grub_zfs_read): Likewise. Remove invalid cast.
11420
68c72069
VS
114212011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
11424 (grub_jfs_blkno): Fix incorrect shift.
11425 (grub_jfs_read_file): Use more appropriate types.
11426
6e536dc8
VS
114272011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11428
11429 Support triple indirect on minix2 and minix3.
11430
11431 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
11432 Declare triple_indir_zone.
11433 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
11434 indirect.
11435
e0864e7a
VS
114362011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11437
11438 Minix FS fixes.
11439
11440 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
11441 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
11442 Rename ctime to mtime. All users updated.
11443 (grub_minix_get_file_block): Fix types and double indirect computations.
11444
89481cab
VS
114452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
11448 if no label is found.
11449 (grub_fat_iterate_dir): Fix file size type.
11450 (grub_fat_iterate_dir): Likewise.
11451
f646e143
VS
114522011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
11455 save some space.
11456 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11457 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11458
534d769e
VS
114592011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
11462
e084ba18
VS
114632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * util/import_gcry.py: Accept space between # and include.
11466
3471ecdf
VS
114672011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
11470
124df5f6
VS
114712011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 Fine grainely disable warnings on lexer. Remove Wno-error on it.
11474
11475 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
11476 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
11477 yylex_strncpy.
11478 * grub-core/script/yylex.l: Add fine-grained #pragma.
11479
4defb8d5
VS
114802011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
11483 New inline function.
11484 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
11485 Likewise.
11486 (memset) [GRUB_UTIL]: Likewise.
11487 (memcmp) [GRUB_UTIL]: Likewise.
11488
4e94ae65
VS
114892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
11492 inline function rather than a define.
11493
18c575e5
VS
114942011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * util/grub-setup.c: Add missing include.
11497
f8bc22a8
VS
114982011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/ieee1275/grub-ofpathname.c: Add missing include.
11501
3ce69fc9
VS
115022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
11505 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
11506 Likewise.
11507
d1e293bb
VS
115082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
11511 grub_memcmp usage.
11512
7a5c54a4
VS
115132011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 * util/grub-install.in: Add datarootdir as per automake manual
11516 suggestion.
11517 * util/grub-mknetdir.in: Likewise.
11518
115192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
11520
11521 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
11522 suggestion.
11523 * util/grub.d/10_kfreebsd.in: Likewise.
11524 * util/grub.d/10_linux.in: Likewise.
11525 * util/grub.d/10_netbsd.in: Likewise.
11526 * util/grub.d/10_windows.in: Likewise.
11527 * util/grub.d/20_linux_xen.in: Likewise.
11528
766f7d08
VS
115292011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 Remove redundant grub_kernel_image_size.
11532
11533 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
11534 _edata and _start.
11535 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
11536 the small code. It moves it only by few bytes but simplifies the code.
11537 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
11538 _start.
11539 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
11540 (grub_kernel_image_size): Removed.
11541 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
11542 (grub_kernel_image_size): Removed.
11543 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
11544 compiled with Apple toolchain.
11545 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
11546 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
11547 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
11548 (grub_total_module_size): Likewise.
11549 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
11550 Removed.
11551 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
11552 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
11553 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11554 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
11555 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
11556 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
11557 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
11558 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
11559 Removed.
11560 (grub_total_module_size): Removed.
11561 * util/grub-mkimage.c (image_target_desc): Remove image_size.
11562 (image_targets): Likewise.
11563 Set .compressed_size to no field on sparc.
11564 (generate_image): Remove kernel_image_size handling.
11565
fcf1d672
SJ
115662011-10-19 Szymon Janc <szymon@janc.net.pl>
11567
11568 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
11569 NULL pointer dereference.
11570
de9c615e
VS
115712011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
11574 done with a dedicated section.
11575
11576 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
11577 Ensure the correct position of boot_path.
11578 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
11579 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
11580 other fields.
11581 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
11582 * include/grub/boot.h: Removed. All references removed.
11583 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
11584 Removed.
11585 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
11586
e55599dc
VS
115872011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11588
11589 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
11590 name.
11591
36dd20ad
VS
115922011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11593
11594 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
11595
f8f72eb8
VS
115962011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11599 Don't add the bogus brackets.
11600
a374751b
VS
116012011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 ExFAT support.
11604
11605 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
11606 * grub-core/Makefile.core.def (exfat): New module.
11607 * grub-core/fs/exfat.c: New file.
11608 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
11609 (GRUB_FAT_ATTR_*): Make into an enum.
11610 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
11611 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
11612 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
11613 (GRUB_FAT_MAXFILE): Removed.
11614 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
11615 (grub_current_fat_bpb_t): New type.
11616 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
11617 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
11618 (grub_fat_dir_node_t): New type.
11619 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
11620 (fat_log2) [MODE_EXFAT]: Removed.
11621 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
11622 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
11623 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
11624 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
11625 (grub_fat_label) [MODE_EXFAT]: New function.
11626 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
11627 reserved_first_sector to 0.
11628
544c2487
VS
116292011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11630
11631 Move grub_reboot out of the kernel.
11632
11633 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
11634 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
11635 * grub-core/lib/efi/reboot.c: ... here.
11636 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
11637 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
11638 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
11639 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
11640 * grub-core/lib/i386/reboot_trampoline.S: ... here.
11641 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
11642 * grub-core/lib/ieee1275/reboot.c: ... here.
11643 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
11644 * grub-core/lib/mips/arc/reboot.c: ... here.
11645 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
11646 * grub-core/lib/mips/loongson/reboot.c: ...here.
11647 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
11648 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
11649 * include/grub/emu/misc.h (grub_reboot): New function declaration.
11650 * include/grub/i386/reboot.h: New file.
11651 * include/grub/mips/loongson/ec.h: Fix includes.
11652 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
11653 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
11654 * grub-core/lib/i386/reboot.c: New file.
11655
a97501d2
VS
116562011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 Make grub_prefix into module to fix the arbitrary limit and save
11659 some space.
11660
11661 * grub-core/kern/emu/main.c (grub_prefix): Removed.
11662 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
11663 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
11664 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
11665 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
11666 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
11667 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
11668 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
11669 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11670 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
11671 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
11672 * include/grub/ia64/efi/kernel.h: Removed.
11673 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
11674 (grub_prefix): Removed.
11675 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
11676 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
11677 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
11678 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
11679 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
11680 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
11681 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
11682 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
11683 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
11684 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
11685 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11686 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11687 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11688 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11689 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
11690 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
11691 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
11692 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11693 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
11694 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
11695 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
11696 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
11697 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
11698 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
11699 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
11700 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
11701 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
11702 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
11703 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
11704 from module.
11705 * util/grub-mkimage.c (image_target_desc): Removed prefix and
11706 prefix_end.
11707 (image_targets): Likewise.
11708 (generate_image): Put prefix as a module.
11709
39705fad
VS
117102011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 Replace grub_module_iterate with FOR_MODULES.
11713
11714 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
11715 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
11716 (grub_efi_modules_addr): ...this.
11717 * grub-core/kern/efi/init.c (grub_modbase): New variable.
11718 (grub_efi_init): Set grub_modbase.
11719 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
11720 (grub_modbase): New variable.
11721 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
11722 (grub_modbase): New variable.
11723 (grub_machine_init): Set grub_modbase.
11724 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
11725 (grub_modbase): New variable.
11726 (grub_machine_init): Set grub_modbase.
11727 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
11728 (grub_modbase): New variable.
11729 (grub_machine_init): Set grub_modbase.
11730 * grub-core/kern/main.c (grub_module_iterate): Remove.
11731 (grub_modules_get_end): Use grub_modbase.
11732 (grub_load_modules): Use FOR_MODULES.
11733 (grub_load_config): Likewise.
11734 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
11735 (grub_modbase): New variable.
11736 (grub_machine_init): Set grub_modbase.
11737 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
11738 (grub_modbase): New variable.
11739 (grub_machine_init): Set grub_modbase.
11740 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
11741 Removed.
11742 (grub_modbase): New variable.
11743 (grub_machine_init): Set grub_modbase.
11744 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
11745 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
11746 (grub_module_iterate): Likewise.
11747 (grub_modbase): New variable declaration.
11748 (FOR_MODULES): New macro.
11749
2afb7f6c
VS
117502011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11751
11752 * configure.ac: Check for __ctzdi2 and __ctzsi2.
11753 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
11754
366e34fa
VS
117552011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11756
11757 Fix few obvious type discrepancies.
11758
11759 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11760 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
11761 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
11762 variable.
11763 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
11764 and connected types.
11765 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
11766 offset.
11767 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
11768 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
11769 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
11770 and connected types.
11771
177b960e
VS
117722011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11773
11774 Fix python 3.x incompatibilities.
11775
11776 * gentpl.py: Put brackets around print strings.
11777 * util/import_gcry.py: Open explicitly as utf-8.
11778 Use in instead of has_key.
11779
3b619ae1
VS
117802011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
11783 (GRUB_XFS_INO_AGBITS): Make into inline function.
11784 (GRUB_XFS_INO_INOINAG): Likewise.
11785 (GRUB_XFS_INO_AG): Likewise.
11786 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11787 (GRUB_XFS_EXTENT_OFFSET): Likewise.
11788 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11789 (GRUB_XFS_EXTENT_SIZE): Likewise.
11790 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
11791 (GRUB_XFS_NEXT_DIRENT): Likewise.
11792 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
11793 (grub_xfs_read_file): Fix offset type.
11794
8bcebcb8
RM
117952011-10-15 Robert Millan <rmh@gnu.org>
11796
11797 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
11798
0017e5ef
RM
117992011-10-15 Robert Millan <rmh@gnu.org>
11800
11801 Fix build problem on FreeBSD and GNU/kFreeBSD.
11802
11803 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
11804
d8919552
VS
118052011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
11808
11809 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
11810 types.
11811 (grub_hfsplus_btree_recoffset): Likewise.
11812 (grub_hfsplus_btree_recptr): Likewise.
11813 (grub_hfsplus_find_block): Likewise.
11814 (grub_hfsplus_btree_search): Likewise.
11815 (grub_hfsplus_read_block): Likewise.
11816 (grub_hfsplus_read_file): Likewise.
11817 (grub_hfsplus_mount): Likewise.
11818 (grub_hfsplus_btree_iterate_node): Likewise.
11819 (grub_hfsplus_btree_search): Likewise.
11820 (grub_hfsplus_iterate_dir): Likewise.
11821 (grub_hfsplus_read): A small code simplification.
11822
c81296b6
VS
118232011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 * grub-core/kern/emu/hostdisk.c
11826 (convert_system_partition_to_system_disk): Don't assume that children
11827 of mapper nodes are mapper nodes.
11828
0eb8ffb1
VS
118292011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11830
11831 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11832 * include/grub/misc.h (grub_isxdigit): New function.
11833 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11834 switched to grub_isxdigit.
11835 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11836 number starting with a letter.
11837
a98f4a08
RM
118382011-10-09 Robert Millan <rmh@gnu.org>
11839
11840 LVM support for FreeBSD and GNU/kFreeBSD.
11841
11842 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11843 GNU/kFreeBSD.
11844 (LVM_DEV_MAPPER_STRING): Move from here ...
11845 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11846 * util/getroot.c: Include `<grub/util/lvm.h>'.
11847 (grub_util_get_dev_abstraction): Enable
11848 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11849 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11850 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11851 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11852 support it.
11853 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11854 GNU/kFreeBSD.
11855 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11856 when LVM abstraction is required for ${GRUB_DEVICE}.
11857
050e8e90
SJ
118582011-10-06 Szymon Janc <szymon@janc.net.pl>
11859
11860 Add support for LZO compression in GRUB:
11861 - import of minilzo library,
11862 - LZO decompression for btrfs,
11863 - lzop files decompression.
11864
11865 * grub-core/io/lzopio.c: New file.
11866 * grub-core/lib/adler32.c: Likewise.
11867 * grub-core/lib/minilzo/lzoconf.h: Likewise.
11868 * grub-core/lib/minilzo/lzodefs.h: Likewise.
11869 * grub-core/lib/minilzo/minilzo.c: Likewise.
11870 * grub-core/lib/minilzo/minilzo.h: Likewise.
11871 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
11872 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
11873 grub-core/lib/minilzo/minilzo.c to common.
11874 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
11875 cflags in cppflags.
11876 * grub-core/Makefile.core.def (btrfs): Likewise.
11877 * grub-core/Makefile.core.def (lzopio): New module.
11878 (adler32): Likewise.
11879 * grub-core/fs/btrfs.c: Include minilzo.h.
11880 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11881 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11882 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11883 (grub_btrfs_lzo_decompress): New function.
11884 (grub_btrfs_extent_read): Add support for LZO compression type.
11885 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11886 (GRUB_USHRT_MAX): Likewise.
11887 (GRUB_UINT_MAX): Likewise.
11888 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11889 (UINT_MAX): Likewise.
11890 (CHAR_BIT): Likewise.
11891 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11892 grub-core/lib/posix_wrap/limits.h
11893 (UCHAR_MAX): Likewise.
11894 * include/grub/file.h (grub_file_filter_id): New compression filter
11895 GRUB_FILE_FILTER_LZOPIO.
11896 * include/grub/file.h (grub_file_filter_id): Set
11897 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11898 * include/grub/types.h (grub_get_unaligned16): New function.
11899 (grub_get_unaligned32): Likewise.
11900 (grub_get_unaligned64): Likewise.
11901 * util/import_gcry.py (cryptolist): Add adler32.
11902
0eb8ffb1
VS
119032011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11906 in perspective decreases the complexity of build system and fixes
11907 compilation right now.
11908
ce79cc99 119092011-10-01 Ales Nesrsta <starous@volny.cz>
11910
11911 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11912 (fixed problem related to using UHCI with coreboot).
11913
8667a314
BC
119142011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11915
11916 * gentpl.py: Use Autogen macros so that the output template file
11917 (Makefile.tpl) size is reduced.
11918
fc5efcc0
MK
119192011-09-29 Mads Kiilerich <mads@kiilerich.com>
11920
11921 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11922 extra_dist.
11923
d1ab689d
ML
119242011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11925
11926 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11927 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11928
c05de032
ML
119292011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11930
11931 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11932 _fullpath.
11933
cca7ccd8
ML
119342011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11935
11936 Remove extra declaration of sleep for mingw32.
11937
11938 * util/misc.c (sleep) [__MINGW32__]: Removed.
11939 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11940
e0b0dc83
GS
119412011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11942
11943 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11944 type and packname.
11945 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11946 Resurrected.
11947 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11948 (grub_netbsd_btinfo_bootwedge): New struct.
11949 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11950 New function.
11951 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11952
91a1a164
TH
119532011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11954
11955 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11956 loader.
11957
2ded951e
AB
119582011-09-28 Andreas Born <futur.andy@googlemail.com>
11959
11960 Fix incorrect identifiers in bash-completion.
11961
11962 * util/bash-completion.d/grub-completion.bash.in
11963 (_grub_mkpasswd-pbkdf2): Rename to ...
11964 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11965 (_grub_script-check): Rename to ...
11966 (_grub_script_check): ... this. All users updated.
11967
69915030
VS
119682011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11971 Return 0 if disk isn't biosdisk.
11972
20fd15f9
GS
119732011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11974
11975 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11976 on NetBSD.
11977 * Makefile.util.def (grub-fstest): Likewise.
11978
1a7d7db9
GS
119792011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11980
11981 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11982 Get sector size from disk label.
11983
2221ab6c
CW
119842011-09-05 Colin Watson <cjwatson@ubuntu.com>
11985
11986 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11987 */README* as well as README*.
11988 Reported by: Axel Beckert.
11989
ca51c4a0
VS
119902011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11993 case of less than 256 MiB of RAM.
11994
ab80f326
VS
119952011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 * grub-core/commands/wildcard.c (make_regex): Handle @.
11998
4155e697
VS
119992011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 * util/grub-install.in: Move cryptodisk logic to appropriate place.
12002
ab178c08
SJ
120032011-08-21 Szymon Janc <szymon@janc.net.pl>
12004
12005 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
12006 AC_LANG_CONFTEST macros.
12007
7dc3c686
SJ
120082011-08-20 Szymon Janc <szymon@janc.net.pl>
12009
12010 Add grub-fstest option to uncompress data for commands.
12011
12012 * util/grub-fstest.c (uncompress): New var.
12013 (options): New option -u.
12014
fe8d4a7b
SJ
120152011-08-20 Szymon Janc <szymon@janc.net.pl>
12016
12017 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12018 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12019
a5219af1
SJ
120202011-08-20 Szymon Janc <szymon@janc.net.pl>
12021
12022 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12023 file type was not recognized correctly (not gzip or corrupted).
12024
f87abff5
VS
120252011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12028 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12029
d94497ea
VS
120302011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12033 loongson.
12034 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12035 video_radeon_fuloong2e.
12036 * grub-core/video/radeon_fuloong2e.c: New file.
12037 * include/grub/video.h (grub_video_id_t): Add new ID
12038 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12039
0d1fd011
VS
120402011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12043 define.
12044 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12045 that PRID matches the detected subplatform and reset the subplatform
12046 if it doesn't.
12047
84beb0ee
VS
120482011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12049
12050 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12051
1227c133
VS
120522011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12053
12054 Fix PCI iterating on functions >= 4.
12055
12056 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12057 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12058 Removed.
12059 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12060 (grub_pci_read): Fix bitmask.
12061 (grub_pci_read_word): Likewise.
12062 (grub_pci_read_byte): Likewise.
12063 (grub_pci_write): Likewise.
12064 (grub_pci_write_word): Likewise.
12065 (grub_pci_write_byte): Likewise.
12066
9594c689
VS
120672011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12070 can still be specified in TARGET_CFLAGS)
12071
14a2562c
VS
120722011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12075
12076 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12077 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12078 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12079 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12080 (FULOONG): Rename to ...
12081 (FULOONG2F): ... this. All users updated.
12082 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12083 (machtype_fuloong2f_str): ... this.
12084 (machtype_fuloong2e_str): New string.
12085 Check for machtype_fuloong2e_str.
12086 * grub-core/loader/mips/linux.c (loongson_machtypes)
12087 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12088 * grub-core/term/serial.c (loongson_defserial)
12089 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12090 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12091 loongson_defserial.
12092 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12093 Rename to ...
12094 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12095 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12096 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12097 to IMAGE_FULOONG2F_FLASH. All users updated.
12098 (image_targets): Rename images.
12099 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12100
b526cbb6
SJ
121012011-08-19 Szymon Janc <szymon@janc.net.pl>
12102
12103 Make enable of disk cache statistics code configurable.
12104
12105 * configure.ac: --enable-cache-stats added.
12106 * config.h.in (DISK_CACHE_STATS): New define.
12107 * grub-core/Makefile.core.def (cacheinfo): New command.
12108 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12109 * grub-core/commands/cacheinfo.c: New file.
12110 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12111 moved to cacheinfo.c.
12112 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12113 debug code.
12114 * include/grub/disk.h: Likewise.
12115
fb739ccd
SJ
121162011-08-19 Szymon Janc <szymon@janc.net.pl>
12117
12118 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12119 * grub-core/Makefile.am: Likewise.
12120
2bba8cfd
VS
121212011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12124 non-zero pull.
12125
43526629
VS
121262011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12127
12128 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12129 All users updated.
12130 (grub_jfs_lookup_symlink): Use correct starting inode.
12131
5c144cc8
VS
121322011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * util/grub-setup.c (main): Add missing gcry initialisation.
12135
b1257f65
VS
121362011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12137
12138 Don't accept text modes on EFI when booting Linux.
12139
12140 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12141 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12142
828bc390
ML
121432011-08-15 Mario Limonciello <mario_limonciello@dell.com>
121442011-08-15 Colin Watson <cjwatson@ubuntu.com>
12145
12146 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12147 use of "/path/.." as in grub-install for EFI as well as handling
12148 symlinks correctly.
12149 Fixes Debian bug #637768.
12150
5f60ccac
CW
121512011-08-15 Colin Watson <cjwatson@ubuntu.com>
12152
12153 * util/grub-probe.c: Remove duplicate #include.
12154
6dc212f9
RM
121552011-08-10 Robert Millan <rmh@gnu.org>
12156
12157 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12158
12159 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12160 function.
12161 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12162 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12163
66816d85
RM
121642011-08-03 Robert Millan <rmh@gnu.org>
12165
12166 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12167 la_array as packed.
12168 Reported by: Zachary Bedell
12169
20168fca
CW
121702011-07-26 Colin Watson <cjwatson@ubuntu.com>
12171
12172 * configure.ac: The Loongson port requires grub-mkfont due to its
12173 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12174 be built.
12175
303b6246
CW
121762011-07-26 Colin Watson <cjwatson@ubuntu.com>
12177
12178 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12179 processing arguments (otherwise help2man fails when GRUB has not yet
12180 been installed).
12181
6795300e
VS
121822011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12183
41aa28ea
VS
12184 New script grub-mkstandalone.
12185
12186 * Makefile.util.def (grub-mkstandalone): New script.
12187 * docs/man/grub-mkstandalone.h2m: New file.
12188 * util/grub-mkstandalone.in: Likewise.
12189
121902011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12191
12192 Support ATA disks with 4K sectors.
6795300e
VS
12193
12194 * include/grub/ata.h (grub_ata): New member log_sector_size.
12195 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12196 (grub_ata_identify): Read sector size.
12197 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12198
92227597
VS
121992011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * util/grub-install.in: Don't use uhci outside of x86.
12202
c77069f5
VS
122032011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 * util/grub-mkrescue.in: Add missing quotes.
12206
122072011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
12208
12209 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12210 dereference.
12211
583168a2
VS
122122011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12215
6be1c01f
VS
122162011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * include/grub/video.h: add missing EXPORT_FUND on
12219 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12220
a1167439
VS
122212011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * include/grub/mips/kernel.h: Fix define conflict.
12224
bf66054f
VS
122252011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12228 all four ways.
12229
8fc4fa45
CW
122302011-07-21 Colin Watson <cjwatson@ubuntu.com>
12231
12232 Preferred resolution detection for VBE.
12233
12234 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12235 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12236 the Flat Panel extension, in line with the X.org VESA driver.
12237 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12238 New function.
12239 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12240 (grub_vbe_bios_read_edid): Likewise.
12241 (grub_vbe_get_preferred_mode): Likewise.
12242 (grub_video_vbe_setup): When the mode is "auto", try to get the
12243 preferred mode from VBE, and use the largest mode that is no larger
12244 than the preferred mode (some BIOSes expose a preferred mode that is
12245 not in their mode list!). If this fails, fall back to 640x480 as a
12246 safe conservative choice.
12247 (grub_video_vbe_get_edid): New function.
12248 (grub_video_vbe_adapter): Add get_edid.
12249 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12250 (struct grub_video_adapter): Add get_edid.
12251 (grub_video_edid_checksum): Add prototype.
12252 (grub_video_edid_preferred_mode): Likewise.
12253 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12254 structure.
12255
12256 * grub-core/commands/videoinfo.c (print_edid): New function.
12257 (grub_cmd_videoinfo): Print EDID if available.
12258
12259 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12260 is more appropriate on a wider range of platforms than 640x480.
12261 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12262 documentation.
12263
ca5572a9
VS
122642011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12265
12266 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12267
e4bcf625
VS
122682011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12269
12270 * po/POTFILES.in: Regenerate.
12271
c4edd548
VS
122722011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12275 incorrect memory usage.
12276
16a2bab0
VS
122772011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * util/grub-install.in: Source grub-mkconfig_lib.
12280
2e418de6
VS
122812011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 Remove getroot.c from core on emu platform.
12284
12285 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12286 kern/emu/raid.c.
12287 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12288 useless.
12289 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12290 * util/getroot.c (get_win32_path): ... here.
12291 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12292 * util/getroot.c (fini_libzfs): ... here.
12293 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12294 * util/getroot.c (grub_get_libzfs_handle): ... here.
12295 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12296 Moved from here...
12297 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12298 * grub-core/kern/emu/misc.c
12299 (grub_make_system_path_relative_to_its_root): Moved from here...
12300 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12301 * grub-core/kern/emu/getroot.c: Moved from here ...
12302 * util/getroot.c: ... here. All users updated.
12303 * grub-core/kern/emu/raid.c: Moved from here ...
12304 * util/raid.c: ... here. All users updated.
12305
def9832a
VS
123062011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12307
12308 * po/POTFILES.in: Regenerate.
12309
cd8fe79a
VS
123102011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 Fix compilation on GNU/Linux.
12313
12314 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
12315 Disable geli.
12316 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
12317 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
12318 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
12319
a251b719
VS
123202011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
123212011-07-07 Michael Gorven <michael@gorven.za.net>
123222011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
12323
12324 LUKS and GELI support.
12325
12326 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
12327 grub-core/disk/luks.c, grub-core/disk/geli.c,
12328 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
12329 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
12330 grub-core/lib/arg.c.
12331 (libgrubmods.a): Remove gcrypts cflags and cppflags.
12332 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
12333 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
12334 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
12335 (grub-bin2h): Add libgcry.a.
12336 (grub-mkimage): Likewise.
12337 (grub-mkrelpath): Likewise.
12338 (grub-script-check): Likewise.
12339 (grub-editenv): Likewise.
12340 (grub-mkpasswd-pbkdf2): Likewise.
12341 (grub-pe2elf): Likewise.
12342 (grub-fstest): Likewise.
12343 (grub-mkfont): Likewise.
12344 (grub-mkdevicemap): Likewise.
12345 (grub-probe): Likewise.
12346 (grub-ofpath): Likewise.
12347 (grub-mklayout): Likewise.
12348 (example_unit_test): Likewise.
12349 (grub-menulst2cfg): Likewise.
12350 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
12351 * grub-core/Makefile.core.def (cryptodisk): New module.
12352 (luks): Likewise.
12353 (geli): Likewise.
12354 * grub-core/disk/AFSplitter.c: New file.
12355 * grub-core/disk/cryptodisk.c: Likewise.
12356 * grub-core/disk/geli.c: Likewise.
12357 * grub-core/disk/luks.c: Likewise.
12358 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
12359 grub_util_is_lvm.
12360 (grub_util_get_dm_abstraction): New function.
12361 (grub_util_follow_gpart_up): Likewise.
12362 (grub_util_get_geom_abstraction): Likewise.
12363 (grub_util_get_dev_abstraction): Use new functions.
12364 (grub_util_pull_device): Pull GELI and LUKS.
12365 (grub_util_get_grub_dev): Handle LUKS and GELI.
12366 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
12367 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
12368 (follow_geom_up): Removed.
12369 (grub_util_fd_seek): New function.
12370 (open_device): Use grub_util_fd_seek.
12371 (nread): Rename to ..
12372 (grub_util_fd_read): ... this. All users updated.
12373 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
12374 (grub_crypto_cbc_decrypt): Likewise.
12375 (grub_crypto_hmac_write): Likewise.
12376 (grub_crypto_hmac_buffer): Likewise.
12377 (grub_password_get): Extend to util.
12378 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
12379 New member modname.
12380 (gcry_md_spec) [GRUB_UTIL]: Likewise.
12381 * include/grub/cryptodisk.h: New file.
12382 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
12383 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
12384 LUKS and GELI.
12385 (grub_util_follow_gpart_up): New proto.
12386 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
12387 (grub_util_fd_read): Likewise.
12388 (grub_cryptodisk_cheat_mount): Likewise.
12389 (grub_util_cryptodisk_print_uuid): Likewise.
12390 (grub_util_get_fd_sectors): Likewise.
12391 * util/grub-fstest.c (mount_crypt): New var.
12392 (fstest): Mount crypto if requested.
12393 (options): New option -C.
12394 (argp_parser): Parse -C.
12395 (main): Init and fini gcry.
12396 * util/grub-install.in: Support cryptodisk install.
12397 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
12398 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
12399 cryptodisk.
12400 (prepare_grub_to_access_device): Likewise.
12401 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
12402 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
12403 (probe_cryptodisk_uuid): New function.
12404 (probe_abstraction): Likewise.
12405 (probe): Use new functions.
12406 * util/import_gcry.py: Create Makefile.utilgcry.def.
12407 Add modname member.
12408
9bfdcbbc
VS
124092011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 Lazy device scanning.
12412
12413 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
12414 (grub-setup): Remove util/raid.c.
12415 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
12416 * grub-core/disk/lvm.c (scan_depth): New variable.
12417 (grub_lvm_iterate): Rescan if necessary.
12418 (find_lv): New function based on grub_lvm_open.
12419 (grub_lvm_open): Use find_lv. Rescan on error.
12420 (is_node_readable): New function.
12421 (is_lv_readable): Likewise.
12422 (grub_lvm_scan_device): Skip already found disks.
12423 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
12424 Stop if searched device is found and readable.
12425 * grub-core/disk/raid.c (inscnt): New variable.
12426 (scan_depth): Likewise.
12427 (scan_devices): New function based on grub_raid_register. Abort if
12428 looked for device is found.
12429 (grub_raid_iterate): Rescan if needed.
12430 (find_array): NEw function based on -grub_raid_open.
12431 (grub_raid_open): Use find_array and rescan.
12432 (insert_array): Set became_readable_at.
12433 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
12434 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
12435 New function.
12436 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
12437 (grub_util_pull_device): New function.
12438 (grub_util_get_grub_dev): Call grub_util_pull_device.
12439 * util/raid.c: Moved to ..
12440 * grub-core/kern/emu/raid.c: ... here.
12441 (grub_util_raid_getmembers): New parameter "bootable".
12442 All users updated. Support 1.x.
12443 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
12444 All users updated.
12445 * include/grub/disk.h (grub_disk_pull_t): New enum.
12446 (grub_disk_dev): Change iterate prototype.
12447 All users updated.
12448 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
12449 New proto.
12450 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
12451 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
12452 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
12453 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
12454 All users updated.
12455 * include/grub/util/raid.h: Removed.
12456
1c358e59
VS
124572011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 * po/POTFILES.in: Regenerate.
12460
abee94ed
VS
124612011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 Unify sparc init with other ieee1275.
12464
12465 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
12466 instead of kern/sparc64/ieee1275/init.c.
12467 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
12468 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
12469 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
12470 grub/machine/kernel.h.
12471 (grub_ieee1275_original_stack) [__sparc__]: New variable.
12472 (grub_claim_heap) [__sparc__]: Use sparc version.
12473 (grub_machine_init): Moved args parsing to
12474 (grub_parse_cmdline): ...this.
12475 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
12476 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
12477 New definition.
12478 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
12479
12480 Move BOOTP to separate file.
12481
12482 * grub-core/Makefile.core.def (net): Add net/bootp.c.
12483 * grub-core/net/net.c: Move all BOOTP functions to
12484 * grub-core/net/bootp.c: ... here.
12485
12486 Use frame interface on PXE.
12487
12488 * grub-core/Makefile.core.def (pxecmd): Removed.
12489 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
12490 * grub-core/commands/i386/pc/pxecmd.c: Removed.
12491 * grub-core/i386/pc/pxe.c: Moved from here ...
12492 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
12493 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
12494 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
12495
12496 EFI network support.
12497
12498 * grub-core/Makefile.core.def (efinet): New module.
12499 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
12500 here...
12501 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
12502 All users updated.
12503 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
12504 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
12505 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
12506 * grub-core/net/drivers/efi/efinet.c: New file.
12507 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
12508 (grub_efi_net_config): New extern var.
12509
12510 Various cleanups and bugfixes.
12511
12512 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
12513 error.
12514 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
12515 disk declared as partition.
12516 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
12517 leak on failure.
12518 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
12519 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
12520 (grub_debug_zalloc): Likewise.
12521 (grub_debug_realloc): Likewise.
12522 (grub_debug_memalign): Likewise.
12523 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
12524 Check that target is IPv4.
12525 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
12526 local-mac-address as fallback.
12527 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
12528 memory leak.
12529 * grub-core/net/ip.c (ipchksum): Rename to ...
12530 (grub_net_ip_chksum): ... this. All users updated.
12531 (grub_net_recv_ip_packets): Special handling for DHCP.
12532 * util/grub-mkimage.c (generate_image): Zero-out aout header.
12533
12534 Unify prefix handling
12535
12536 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
12537 (grub_machine_get_bootlocation): ... this.
12538 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
12539 (grub_machine_get_bootlocation): ... this.
12540 (grub_prefix): New variable.
12541 (prefix): Removed.
12542 (root_dev): New variable.
12543 (dir): Likewise.
12544 (main): Use new variables.
12545 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
12546 Revamped into ...
12547 (grub_machine_get_bootlocation): ... this.
12548 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
12549 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
12550 (grub_machine_get_bootlocation): ... this.
12551 (grub_machine_set_prefix): Removed.
12552 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
12553 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
12554 Revamped into ...
12555 (grub_machine_get_bootlocation): ... this.
12556 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
12557 (grub_set_prefix_and_root): ... this. All users updated.
12558 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
12559 Revamped into ...
12560 (grub_machine_get_bootlocation): ... this.
12561 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
12562 (grub_machine_get_bootlocation): New proto.
12563 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
12564
12565 Less intrusive and more reliable seek on network implementation.
12566
12567 * grub-core/kern/file.c (grub_file_net_seek): Removed.
12568 (grub_file_seek): Don't call grub_file_net_seek.
12569 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
12570 (grub_net_fs_read_real): .. this.
12571 (grub_net_seek_real): Use net->offset.
12572 (grub_net_fs_read): Seek if necessary.
12573
12574 Unify IEEE1275 netwotk config with the other platforms.
12575
12576 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
12577 New variable.
12578 (grub_machine_get_bootlocation): Support network.
12579 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12580 Support type and device parsing.
12581 (grub_ieee1275_get_device_type): New function.
12582 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
12583 into ...
12584 (grub_ieee1275_net_config_real): ... this.
12585 (grub_ofnet_probecards): Removed.
12586 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
12587 * include/grub/ieee1275/ofnet.h: Removed.
12588 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
12589 extern var.
12590 (grub_ieee1275_get_device_type): New function.
12591
12592 Unify network device closing across platforms and make more robust.
12593
12594 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
12595 grub_grubnet_fini.
12596 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
12597 already.
12598 * grub-core/net/net.c (grub_net_network_level_interface_register):
12599 Update num_ifaces.
12600 (grub_net_card_unregister): Close all interfaces.
12601 (receive_packets): Don't poll if no iterfaces are registered.
12602 Open if necessary.
12603 (grub_net_fini_hw): New function.
12604 (grub_net_restore_hw): Likewise.
12605 (fini_hnd): New variable.
12606 (GRUB_MOD_INIT): Register preboot hook.
12607 (GRUB_MOD_FINI): Run and unregister preboot hook.
12608
12609 Poll network cards when idle.
12610
12611 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
12612 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
12613 * grub-core/net/net.c (receive_packets): Save last poll time.
12614 (grub_net_poll_cards_idle_real): New function.
12615 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
12616 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
12617 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
12618
12619 Rename ofnet interfaces.
12620
12621 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
12622 (grub_ofnet_findcards): Use ofnet_%s names.
12623
12624 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
12625
12626 Cleanup socket opening.
12627
12628 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
12629 (grub_net_fs_close): Likewise.
12630 (grub_net_fs_read_real): Use eof member.
12631 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
12632 (+grub_net_udp_close): New inline function.
12633
12634 * include/grub/net/tftp.h: Moved to the top of ...
12635 * grub-core/net/tftp.c: ... here.
12636 * include/grub/net/ip.h: Moved mostly to the top of ...
12637 * grub-core/net/ip.c: ... here.
12638 * include/grub/net/ethernet.h: Moved mostly to the top of ...
12639 * grub-core/net/ethernet.c: ... here.
12640
12641 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
12642
12643 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
12644 FS name.
12645
12646 * include/grub/net/ip.h (ipv4_ini): Removed.
12647 (ipv4_fini): Likewise.
12648
12649 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
12650 (grub_net_send_ip_packets): Likewise.
12651
cf1337aa
VS
126522011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
12655 grub_read_cmos prototype.
12656
93c06ff9
VS
126572011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 VGA text support in qemu-mips
12660
12661 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
12662 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
12663 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
12664 text.
12665 * grub-core/kern/i386/qemu/init.c: Renamed to ...
12666 * grub-core/kern/vga_init.c: ... this.
12667 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
12668 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
12669 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
12670 Adjust.
12671 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
12672 GRUB_MACHINE_PCI_IO_BASE.
12673
748ccabe
VS
126742011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12675
12676 MIPS qemu flash support.
12677
12678 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
12679 magic.
12680 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
12681 (grub_machine_init): Probe memory if its size isn't known.
12682 * util/grub-mkimage.c (image_targets): Add flash targets.
12683 (generate_image): Handle flash targets.
12684
d7345994
VS
126852011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 MIPS qemu at_keyboard support.
12688
12689 * gentpl.py (videoinkernel): Add qemu-mips.
12690 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
12691 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
12692 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
12693 modules.
12694 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
12695 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
12696 * grub-core/term/serial.c (grub_serial_register)
12697 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
12698
a07a81b3
VS
126992011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 CMOS support on sparc.
12702
12703 * gentpl.py (cmos): Add powerpc and sparc.
12704 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
12705 powerpc and sparc.
12706 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
12707 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
12708 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
12709 grub_set_datetime_cmos.
12710 * grub-core/lib/ieee1275/cmos.c: New file.
12711 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
12712 (find_rtc): Set no_ieee1275_rtc on error.
12713 (grub_get_datetime): Call grub_get_datetime_cmos on error.
12714 (grub_set_datetime): Call grub_set_datetime_cmos on error.
12715 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
12716 fail. Move value to argument. All users updated
12717 (grub_cmos_write): Likewise.
12718 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
12719 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
12720 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
12721 grub_get_datetime_cmos and grub_set_datetime_cmos.
12722
77546584
GS
127232011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12724
12725 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
12726 sourcing grub-mkconfig_lib.
12727 * util/update-grub_lib.in: Likewise.
12728 * util/grub.d/00_header.in: Likewise.
12729 * util/grub.d/10_hurd.in: Likewise.
12730 * util/grub.d/10_kfreebsd.in: Likewise.
12731 * util/grub.d/10_linux.in: Likewise.
12732 * util/grub.d/10_netbsd.in: Likewise.
12733 * util/grub.d/10_windows.in: Likewise.
12734 * util/grub.d/20_linux_xen.in: Likewise.
12735 * util/grub.d/30_os-prober.in: Likewise.
12736
54894791
CW
127372011-06-28 Colin Watson <cjwatson@ubuntu.com>
12738
12739 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
12740 default_bg_color rather than black.
12741 (grub_gfxterm_fullscreen): Likewise.
12742 (grub_gfxterm_background_color_cmd): Save new background color in
12743 default_bg_color.
12744
8d5d8444
VS
127452011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
12748
5afeb5bd
VS
127492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
12752 mismerge.
12753
ba7df45e
VS
127542011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 Chainloading on coreboot support.
12757
12758 * grub-core/Makefile.core.def (chain): Add coreboot.
12759 * grub-core/loader/i386/coreboot/chainloader.c: New file.
12760
d0b526b2
VS
127612011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
12764 if it happens.
12765
5ff1d945
VS
127662011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 Implement time command.
12769
12770 * grub-core/Makefile.core.def (time): New module.
12771 * grub-core/commands/time.c: New file.
12772 * grub-core/script/parser.y: Remove "time" keyword.
12773 * grub-core/script/yylex.l: Likewise.
12774
5ebaad7e
VS
127752011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12776
12777 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
12778
bdea3798
VS
127792011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
12782 when handling leftovers.
12783
b28c5655
VS
127842011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
12787 so that help2man doesn't fail.
12788
b6f945dc
VS
127892011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
12792 type in pointers on sparc64.
12793 (get_card_packet): Likewise.
12794
f9b75e8a
CW
127952011-06-27 Colin Watson <cjwatson@ubuntu.com>
12796
12797 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
12798 with `*'.
12799 (grub_cmd_videoinfo): Fetch current video mode.
12800
1e3d9b86
VS
128012011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
12804 because of underlying system restrictions.
12805
efff4b1c
VS
128062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
12809 necessary.
12810
9fc9ce37
VS
128112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 Coreboot video support.
12814
12815 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
12816 (vbe): Likewise.
12817 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
12818 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
12819 here ...
12820 * grub-core/kern/i386/int.S: ... here.
12821 * grub-core/video/i386/pc/vbe.c: Updated includes.
12822 * grub-core/video/i386/pc/vga.c: Likewise.
12823 * include/grub/i386/coreboot/memory.h
12824 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
12825 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12826 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12827 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12828 Disable interrupts.
12829 * include/grub/i386/pc/vga.h: Removed. All users updated.
12830
41bec7fe
VS
128312011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12832
12833 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12834 definitions for dprintf.
12835 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12836
ca80309d
VS
128372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12838
12839 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12840 prototype.
12841 (get_card_packet): Likewise.
12842
9e322ce8
YB
128432011-06-26 Yves Blusseau <blusseau@zetam.org>
12844
12845 Display the path of the file when file is not found
12846
12847 * grub-core/fs/fat.c: Display the filename when file is not found.
12848 * grub-core/fs/fshelp.c: Likewise.
12849 * grub-core/fs/hfs.c: Likewise.
12850 * grub-core/fs/jfs.c: Likewise.
12851 * grub-core/fs/minix.c: Likewise.
12852 * grub-core/fs/ufs.c: Likewise.
12853 * grub-core/fs/btrfs.c: Likewise.
12854 * grub-core/commands/i386/pc/play.c: Likewise.
12855
cbf597af
SJ
128562011-06-26 Szymon Janc <szymon@janc.net.pl>
12857
12858 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12859 pointer checks before calling grub_free().
12860 * grub-core/commands/wildcard.c (match_devices): Likewise.
12861 * grub-core/commands/wildcard.c (match_files): Likewise.
12862 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
12863 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
12864 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
12865 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
12866 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
12867 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
12868 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
12869 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12870 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
12871
6295b32f
P
128722011-06-25 Patrick <p55@mailinator.com>
12873
12874 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
12875
77c0840b
VS
128762011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12879 (grub_pxe_send): Likewise.
12880 (GRUB_MOD_INIT): Fix types.
12881
40ea05de
SJ
128822011-06-24 Szymon Janc <szymon@janc.net.pl>
12883
12884 * grub-core/io/xzio.c: Fix code style issues
12885
90162423
MRA
128862011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
128872011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12888
12889 Network infrastructure.
12890 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12891
12892 * include/grub/net/arp.h: New file.
90162423
MRA
12893 * include/grub/net/device.h: Likewise.
12894 * include/grub/net/ethernet.h: Likewise.
12895 * include/grub/net/ip.h: Likewise.
12896 * include/grub/net/netbuff.h: Likewise.
12897 * include/grub/net/tftp.h: Likewise.
12898 * include/grub/net/udp.h: Likewise.
12899 * include/grub/ieee1275/ofnet.h: Likewise.
12900 * include/grub/emu/export.h: Likewise.
12901 * include/grub/net.h: Likewise.
12902 * grub-core/net/arp.c: Likewise.
12903 * grub-core/net/ethernet.c: Likewise.
12904 * grub-core/net/ip.c: Likewise.
12905 * grub-core/net/udp.c: Likewise.
12906 * grub-core/net/tftp.c: Likewise.
12907 * grub-core/net/netbuff.c: Likewise.
12908 * grub-core/net/net.c: Likewise.
12909 * grub-core/net/drivers/emu/emunet.c: Likewise.
12910 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12911 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12912 export.h.
12913 * grub-core/Makefile.core.def (net): New module.
12914 (tftp): Likewise.
12915 (ofnet): Likewise.
12916 (emunet): Likewise.
12917 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12918 network protocols.
12919 * grub-core/kern/device.c (grub_net_open) : New variable.
12920 (grub_device_open): Handle network device.
12921 (grub_device_close): Likewise.
12922 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12923 (grub_grubnet_fini): Likewise.
12924 (grub_file_seek): Seek in network device.
12925 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12926 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12927 network root.
12928 (grub_machine_fini): Call grub_grubnet_fini.
12929 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12930 network.
12931 (grub_ieee1275_get_aliasdevname): New function.
12932 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12933 Add unofficial Solaris network info.
12934 (grub_multiboot_make_mbi): Likewise.
12935 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12936 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12937 * include/grub/device.h (grub_fs): Removed.
12938 * include/grub/err.h (grub_err_t): Add network-related values.
12939 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12940 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12941 (grub_ieee1275_get_aliasdevname): New proto.
12942 * include/grub/net.h: Rewritten.
423a1849 12943
031f22a0
VS
129442011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12947 names.
12948
4388ca72
VS
129492011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12950
12951 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12952 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12953 it truncates the output.
12954 Reported by: Ximin Luo.
12955
98e2f506
VS
129562011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12959
2a5e94d8
VS
129602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12963 partmap before abstraction.
12964
535c1910
AK
129652011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12966
12967 * util/grub-mkconfig_lib.in: Add missing quotes.
12968
bc09e1a2
VS
129692011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12972 old method if mountinfo would return /dev/root and /dev/root doesn't
12973 exist.
12974
290766fb
VS
129752011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 ZFS zlib support
12978
12979 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12980 (decomp_table): Add zlib entries.
12981 (zio_read): USe 8 bits for compression function rather than 3.
12982 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12983
129842011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/disk/ahci.c: Add missing license statements.
12987 * grub-core/fs/romfs.c: Likewise.
12988 * grub-core/lib/ia64/setjmp.S: Likewise.
12989 * grub-core/loader/i386/pc/freedos.c: Likewise.
12990 * grub-core/loader/ia64/efi/linux.c: Likewise.
12991 * grub-core/video/colors.c: Likewise.
12992 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12993
5ab3f48a
VS
129942011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12995
12996 AHCI support.
12997
12998 * grub-core/Makefile.core.def (ata_pthru): Removed.
12999 (ahci): New module.
13000 (pata): Likewise.
13001 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
13002 on unload.
13003 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
13004 readwrite.
13005 (grub_hdparm_do_check_powermode_cmd): Likewise.
13006 (grub_hdparm_do_smart_cmd): Likewise.
13007 (grub_hdparm_set_val_cmd): Likewise.
13008 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
13009 * grub-core/disk/ahci.c: New file.
13010 * grub-core/disk/ata.c: Factor out the low-level part into ...
13011 * grub-core/disk/pata.c: ... here.
13012 * grub-core/disk/ata_pthru.c: Contents moved to ...
13013 * grub-core/disk/pata.c: ... here.
13014 * grub-core/disk/scsi.c (grub_scsi_names): New array.
13015 (grub_scsi_iterate): Use grub_scsi_names.
13016 (grub_scsi_open): Likewise.
13017 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13018 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13019 (grub_ata_regs_t): New struct.
13020 (grub_disk_ata_pass_through_parms): Likewise.
13021 (grub_ata_device): Renamed to ...
13022 (grub_ata): ... this.
13023 (grub_ata_dev): New struct.
13024 Removed all low-level inline functions.
13025 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13026 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13027 iterate hooks and open. All users updated.
13028 * util/grub-install.in: Handle AHCI disk module.
13029
c31dc5f5
SJ
130302011-06-23 Szymon Janc <szymon@janc.net.pl>
13031
13032 Add support for DRI and RSTn markers in JPEG files.
13033
13034 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13035 (JPEG_MARKER_RST0): Likewise.
13036 (JPEG_MARKER_RST1): Likewise.
13037 (JPEG_MARKER_RST2): Likewise.
13038 (JPEG_MARKER_RST3): Likewise.
13039 (JPEG_MARKER_RST4): Likewise.
13040 (JPEG_MARKER_RST5): Likewise.
13041 (JPEG_MARKER_RST6): Likewise.
13042 (JPEG_MARKER_RST7): Likewise.
13043 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13044 (grub_jpeg_decode_dri): New function.
13045 (grub_jpeg_decode_sos): Move image data related part into
13046 grub_jpeg_decode_data function.
13047 (grub_jpeg_decode_data): New function.
13048 (grub_jpeg_reset): New function.
13049 (grub_jpeg_decode_jpeg): Handle new markers.
13050
fe12fd5b
VS
130512011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * util/ieee1275/ofpath.c (check_sas): Close fd.
13054 (main): Free of_path.
13055 Reported by: David Volgyes <dvolgyes>.
13056
03147f46
VS
130572011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13060 Reported by: David Volgyes <dvolgyes>.
13061
cad3237f
VS
130622011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13065 file after stat.
13066 Reported by: David Volgyes <dvolgyes>.
13067
13548d26
VS
130682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13071
13072 Reported by: David Volgyes <dvolgyes>.
13073
e061a1b5
VS
130742011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13077 Prevent memory leak.
13078
1abe47dc
VS
130792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13080
13081 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13082 (main): Close file.
e061a1b5 13083 Reported by: David Volgyes <dvolgyes>.
1abe47dc 13084
fbc62666
VS
130852011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13088 to continue if allocation is failed.
13089
13090 Reported by: David Volgyes <dvolgyes>.
13091
e98c83e9
DV
130922011-06-23 David Volgyes <dvolgyes>
13093
13094 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13095 dereference.
13096
a199a8cd
VS
130972011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 Fix spurious warning.
13100
13101 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13102 (acorn_partition_map_find): Use .bin member.
13103
e2d1dba0
VS
131042011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13107 /dev/root as a valid device.
13108
8a5d6919
JM
131092011-06-23 Jim Meyering <meyering@redhat.com>
13110
e2d1dba0
VS
13111 Avoid NULL deref in grub_device_open.
13112
8a5d6919
JM
13113 * grub-core/kern/device.c (grub_device_open): Don't dereference
13114 a NULL pointer upon failed grub_env_get.
13115
f7db6f4a
VS
131162011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 Support non-512B sectors and agglomerate reads.
13119
13120 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13121 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13122 (disk_io_guid): Removed.
13123 (make_devices): Locate solely by BlockIO.
13124 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13125 (grub_efidisk_read): Use read_blocks.
13126 (grub_efidisk_write): Use write_blocks.
13127 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13128 log_sector_size.
13129 (get_safe_sectors): Handle non-512B sectors.
13130 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13131 sectors.
13132 (grub_biosdisk_write): Handle non-512B sectors.
13133 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13134 (grub_scsi_read): Remove special non-512B block handling (now handled
13135 one level up).
13136 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13137 and do sanity checks.
13138 (grub_disk_adjust_range): Handle non-512B sectors.
13139 (transform_sector): New function.
13140 (grub_disk_read_small): Likewise.
13141 (grub_disk_read): Rewritten.
13142 (grub_disk_write): Handle non-512B sectors.
13143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13144 log_sector_size.
13145 (open_device): Use log_sector_size.
13146 (grub_util_biosdisk_read): Likewise.
13147 (grub_util_biosdisk_write): Likewise.
13148 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13149 non-512B sectors.
13150 (pc_partition_map_embed): Likewise.
13151 * include/grub/disk.h (grub_disk): New field log_sector_size.
13152 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13153 (GRUB_DISK_CACHE_BITS): Increased to 6.
13154 * util/grub-fstest.c (fstest): New command testload.
13155 (argp_parser): Likewise.
13156
881ac815
RM
131572011-06-16 Robert Millan <rmh@gnu.org>
13158
13159 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13160 `ata' driver on kernel of FreeBSD 9.
13161
13162 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13163 (get_ataraid_disk_name): New functions.
13164 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13165 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13166 get_ataraid_disk_name() and get_ada_disk_name().
13167
1e9aef7d
CW
131682011-06-13 Colin Watson <cjwatson@ubuntu.com>
13169
13170 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13171 input format.
13172
351c7c8a
CW
131732011-05-29 Colin Watson <cjwatson@ubuntu.com>
13174
13175 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13176 `ftp.gnu.org' for `alpha.gnu.org'.
13177
6b4e6430
CW
131782011-05-27 Colin Watson <cjwatson@ubuntu.com>
13179
13180 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13181 partitions under /dev/disk/by-id/.
13182
c64db050
CW
131832011-05-27 Colin Watson <cjwatson@ubuntu.com>
13184
13185 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13186 after ten consecutive open failures. Scanning all the way up to
13187 10000 is excessive and can cause serious performance problems in
13188 some configurations.
13189 Fixes Ubuntu bug #787461.
13190
245f4aba
VS
131912011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13192
13193 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13194 opening new one.
13195
f767c929
VS
131962011-05-21 Colin Watson <cjwatson@ubuntu.com>
131972011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 Don't stat devices unless we have to.
13200
13201 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13202 dir == /dev/mapper.
13203 (grub_guess_root_device): Use already known os_dev if possible.
13204 * grub-core/kern/emu/hostdisk.c
13205 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13206 if device is known to be a dm one.
13207
f35fa3a6
CW
132082011-05-20 Colin Watson <cjwatson@ubuntu.com>
13209
13210 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13211 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13212 Reported by: Pawel Tecza.
13213
9a79fcf2
VS
132142011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13217 (lsefisystab): Likewise.
13218 (lssal): Likewise.
13219 (lsefimmap): Likewise.
13220 (hdparm): Enable on qemu-mips.
13221 (setjmp): Add ia64 nodist.
13222 (serial): Simplify tags.
13223
63e3eea9
CW
132242011-05-18 Colin Watson <cjwatson@ubuntu.com>
13225
13226 * Makefile.util.def (grub-ofpathname): Install manual page.
13227
09728256
CW
132282011-05-18 Colin Watson <cjwatson@ubuntu.com>
13229
13230 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13231
8b63a142
CW
132322011-05-18 Colin Watson <cjwatson@ubuntu.com>
13233
13234 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13235
e775d8ed
VS
132362011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13239 into dprintf.
13240
bf947d36
VS
132412011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 Use full 64-bit division.
13244
13245 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13246 (grub_divmod64): ... this.
13247 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13248 version.
13249
b84f26c5
CW
132502011-05-18 Colin Watson <cjwatson@ubuntu.com>
13251
13252 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13253 `source'.
13254
5626056f
CW
132552011-05-18 Colin Watson <cjwatson@ubuntu.com>
13256
13257 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13258 to avoid accidents when debugging with 'sh -x'.
13259 * grub-core/gensyminfo.sh.in: Likewise.
13260 * tests/example_scripted_test.in: Likewise.
13261 * tests/grub_cmd_regexp.in: Likewise.
13262 * tests/grub_script_blanklines.in: Likewise.
13263 * tests/grub_script_dollar.in: Likewise.
13264 * tests/grub_script_expansion.in: Likewise.
13265 * tests/grub_script_final_semicolon.in: Likewise.
13266 * tests/partmap_test.in: Likewise.
13267 * tests/util/grub-shell-tester.in: Likewise.
13268 * tests/util/grub-shell.in: Likewise.
13269
e2965f4a
CW
132702011-05-18 Colin Watson <cjwatson@ubuntu.com>
13271
13272 Move gfxmenu color handling to video, so that gfxterm can use it
13273 too.
13274
13275 * grub-core/gfxmenu/named_colors.c: Move to ...
13276 * grub-core/video/colors.c: ... here. Rename
13277 grub_gui_get_named_color to grub_video_get_named_color.
13278 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13279 * grub-core/video/colors.c (my_isxdigit): ... here.
13280 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13281 Move to ...
13282 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13283 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13284 to ...
13285 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13286
13287 * include/grub/gui.h (grub_gui_color_t): Move to ...
13288 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13289 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13290 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13291 * include/grub/gui.h (grub_gui_map_color): Move to ...
13292 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13293 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13294 to ...
13295 * include/grub/video.h (grub_video_get_named_color): ... here.
13296 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13297 * include/grub/video.h (grub_video_parse_color): ... here.
13298
13299 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13300 video/colors.c.
13301 (gfxmenu): Remove gfxmenu/named_colors.c.
13302 (video) [videomodules]: Add video/colors.c.
13303
13304 Add a background_color command.
13305
13306 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
13307 function.
13308 (GRUB_MOD_INIT): Register background_color command.
13309 (GRUB_MOD_FINI): Unregister background_color command.
13310 (redraw_screen_rect): Allow blend/replace of text layer to be
13311 controlled independently from whether there is a background bitmap.
13312 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
13313 changing bitmap.
13314
1e4b4390
VS
133152011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13316
26618ff0
VS
13317 Patch BPB in ntldr and chainloader --bpb.
13318
1e4b4390
VS
13319 * grub-core/fs/fat.c: Include grub/fat.h.
13320 (grub_fat_bpb): Moved to ...
13321 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
13322 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
13323 grub/ntfs.h.
13324 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
13325 Moved from here...
13326 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
13327 here.
13328 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
13329 New function.
13330 (grub_chainloader_cmd): Patch BPB if --bpb is given.
13331 (GRUB_MOD_INIT): Show --bpb.
13332 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
13333 * grub-core/normal/main.c (features): New variable.
13334 (GRUB_MOD_INIT): Set feature_* variables.
13335 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
13336 proto.
13337 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
13338
cf02731e
VS
133392011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
13342 for cleanness.
13343
e3a1073f
VS
133442011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 FreeDOS direct loading support.
13347
13348 * docs/grub.texi (Supported OS): Add FreeDOS.
13349 * grub-core/Makefile.core.def (freedos): New module.
13350 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
13351 variable.
13352 (grub_relocator16_boot): Handle %ebx.
13353 * grub-core/lib/i386/relocator16.S: Likewise.
13354 * grub-core/loader/i386/pc/freedos.c: New file.
13355
05caa461
VS
133562011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13357
13358 Long Linux command line support.
13359
13360 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13361 (maximal_cmdline_size): New variable.
13362 (allocate_pages): Use maximal_cmdline_size.
13363 (grub_cmd_linux): Set and use maximal_cmdline_size.
13364 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13365 (allocate_pages): Use maximal_cmdline_size.
13366 (grub_cmd_linux): Set and use maximal_cmdline_size.
13367 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
13368 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
13369 and cmdline_size.
13370
a2491e23
VS
133712011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
133722011-05-18 Colin Watson <cjwatson@ubuntu.com>
13373
13374 Improve devmapper support
13375
13376 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
13377 (grub_util_is_lvm): New function.
13378 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
13379 than lvm if not dmraid.
13380 Handle mapped md nodes.
13381 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
13382 (grub_util_device_is_mapped): ... this. Make always available. All users
13383 updated.
13384 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
13385 (convert_system_partition_to_system_disk): Handle lvm, mpath and
13386 dmraid nodes.
13387 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
13388
6ad6223e
VS
133892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
13392
13393 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
13394 * grub-core/modinfo.sh.in: New file.
13395 * grub-core/Makefile.core.def (modinfo.sh): New script.
13396 * util/grub-mknetdir.in: Use modinfo.sh.
13397 * util/grub-mkrescue.in: Likewise.
13398
543a8f6e
VS
133992011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13402 Fix potential usage of Elf32 instead of Elf64 when compiling on
13403 32-bit architecture. Add endianness macros while on it.
13404
4959e111
VS
134052011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 Use mipsel- rather than mips- in directories involving mipsel ports to
13408 allow both endiannesses coexist.
13409
13410 * configure.ac: proparate target_cpu=mipsel rather than resetting to
13411 mips. All conditions adjusted.
13412 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
13413 variable.
13414 * util/grub-install.in: Adjust conditions to take renaming into account.
13415 * util/grub-mkimage.c (image_targets): Likewise. New target
13416 mips-qemu_mips-elf for bigendian mips.
13417
35341bbc
VS
134182011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 Avoid unnecessary copying on MIPS.
13421
13422 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
13423 early if src == dest.
13424 * util/grub-mkimage.c (generate_image): Arange for src == dest if
13425 compression is none.
13426
b772baed
VS
134272011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 Reduce memory footprint on SGI by putting modules before the kernel
13430 as opposed to after.
13431
13432 * grub-core/Makefile.core.def (kernel): Increase linking address.
13433 (none_decompress): Likewise.
13434 (xz_decompress): Likewise.
13435 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
13436 address.
13437 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
13438 layout change.
13439 (grub_arch_modules_addr): New function.
13440 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
13441 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
13442 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
13443 here.
13444 * grub-core/kern/mips/startup.S (total_size): Rename to ...
13445 (grub_total_modules_size): ... this. Make global.
13446 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
13447 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
13448 New definition.
13449 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
13450 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
13451 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
13452 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
13453 * util/grub-mkimage.c (image_target_desc): New flag
13454 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
13455 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
13456 (generate_image): Handle images with modules before kernel.
13457
566a1917
VS
134582011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 Prevent potential loss of memory map by overwrite on qemu-mips.
13461
13462 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13463 Save ram size in $s4.
13464 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
13465 All users changed to grub_arch_memsize.
13466 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
13467 Loongson.
13468 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
13469 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
13470 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
13471 external variable.
13472
5d420cd9
CW
134732011-05-17 Colin Watson <cjwatson@ubuntu.com>
13474
13475 * .bzrignore: Remove grub-dumpbios.
13476
d064b830
CW
134772011-05-17 Colin Watson <cjwatson@ubuntu.com>
13478
13479 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
13480 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
13481 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
13482 existing options which append).
13483 * docs/grub.texi (Simple configuration): Document new options.
13484 Reported by: Ian Jackson. Fixes Debian bug #617538.
13485
3ca2b466
CW
134862011-05-17 Colin Watson <cjwatson@ubuntu.com>
13487
13488 * util/grub-fstest.c (cmd_cat): New function.
13489 (fstest): Handle CMD_CAT.
13490 (options): Add cat.
13491 (argp_parser): Handle cat.
13492
24c9143a
CW
134932011-05-17 Colin Watson <cjwatson@ubuntu.com>
13494
13495 * Makefile.util.def (grub-bin2h): Don't install.
13496 * docs/man/grub-bin2h.h2m: Remove.
13497
90f7ac19
VS
134982011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
13501 place.
13502
8d4a5178
VS
135032011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 Reenable qemu-mips port.
13506
13507 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
13508 Fix small arc bug while on it.
13509 * gentpl.py: Handle qemu_mips.
13510 * grub-core/Makefile.am: Likewise.
13511 * grub-core/Makefile.core.def: Likewise.
13512 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
13513 inappropriate includes.
13514 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
13515 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
13516 * grub-core/kern/main.c (grub_modules_get_end)
13517 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
13518 * grub-core/kern/mips/qemu-mips: Moved to ..
13519 * grub-core/kern/mips/qemu_mips: ... this.
13520 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
13521 (grub_machine_init): Call terminfo_init and serial_init.
13522 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
13523 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13524 New variable.
13525 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
13526 parameter passing.
13527 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
13528 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
13529 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
13530 * include/grub/mips/qemu_mips/cmos.h: New file.
13531 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
13532 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
13533 Removed.
13534 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
13535 Use correct mips-style address.
13536 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
13537 (GRUB_TICKS_PER_SECOND): Removed.
13538 (grub_get_rtc): Likewise.
13539 (grub_cpu_idle): Likewise.
13540 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
13541 New definition.
13542 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
13543 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
13544 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
13545 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
13546 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13547 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13548 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
13549 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
13550
400b9371
VS
135512011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 SGI ARCS port.
13554
13555 * Makefile.util.def (libgrubmods.a): Add dvh.c.
13556 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
13557 platforms.
13558 * configure.ac: New target mips-arc.
13559 * gentpl.py: Likewise.
13560 * grub-core/Makefile.am: Likewise.
13561 * grub-core/Makefile.core.def: Likewise.
13562 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
13563 (none_decompress): Likewise.
13564 (lsdev): New module.
13565 (datetime): Use lib/arc/datetime.c on ARC.
13566 (part_dvh): New module.
13567 * grub-core/commands/arc/lsdev.c: New file.
13568 * grub-core/disk/arc/arcdisk.c: Likewise.
13569 * grub-core/kern/mips/arc/init.c: Likewise.
13570 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
13571 aligned addresses.
13572 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
13573 support.
13574 (grub_arch_dl_relocate_symbols): Likewise.
13575 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
13576 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
13577 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
13578 platforms.
13579 * grub-core/lib/arc/datetime.c: New file.
13580 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
13581 pci.h on non-loongson.
13582 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
13583 (grub_linux_boot): Set unused registers to 0.
13584 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
13585 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
13586 * grub-core/mmap/mips/uppermem.c: ...here.
13587 * grub-core/partmap/dvh.c: New file.
13588 * grub-core/term/arc/console.c: Likewise.
13589 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
13590 (grub_terminfo_set_current): Add terminal "arc".
13591 (grub_terminfo_readkey): Support ARC sequences.
13592 * include/grub/arc/arc.h: New file.
13593 * include/grub/arc/console.h: Likewise.
13594 * include/grub/disk.h (grub_disk_dev_id): Add
13595 GRUB_DISK_DEVICE_ARCDISK_ID.
13596 * include/grub/mips/arc/kernel.h: New file.
13597 * include/grub/mips/arc/memory.h: Likewise.
13598 * include/grub/mips/arc/time.h: Likewise.
13599 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
13600 * include/grub/mips/kernel.h (grub_halt): ... here.
13601 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
13602 here...
13603 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
13604 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
13605 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
13606 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
13607 proto.
13608 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
13609 from here ...
13610 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
13611 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
13612 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
13613 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
13614 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
13615 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
13616 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
13617 (grub_phys_addr_t): Moved from here ...
13618 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
13619 (grub_vtop): Moved from here ...
13620 * include/grub/mips/memory.h (grub_vtop): ... here.
13621 (grub_map_memory): Moved from here ...
13622 * include/grub/mips/memory.h (grub_map_memory): ... here.
13623 (grub_unmap_memory): Moved from here ...
13624 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
13625 (grub_machine_mmap_iterate): Moved from here ...
13626 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
13627 (grub_mmap_get_lower): Moved from here ...
13628 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
13629 (grub_mmap_get_upper): Moved from here ...
13630 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
13631 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13632 here ...
13633 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13634 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
13635 here ...
13636 * include/grub/mips/time.h (grub_get_rtc): ... here.
13637 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13638 here ...
13639 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13640 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
13641 here ...
13642 * include/grub/mips/time.h (grub_cpu_idle): ... here.
13643 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
13644 definition.
13645 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
13646 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
13647 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
13648 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
13649 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13650 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13651 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
13652 (GRUB_MACHINE_LINK_ADDR): Likewise.
13653 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
13654 to 6.
13655 * util/grub-install.in: Run dvhtool on ARC.
13656 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 13657 (generate_image): Handle ECOFF output for mips-arc.
400b9371 13658
c8ecc840
VS
136592011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
13662 blocks.
13663
153a4b55
VS
136642011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
13667 after enabling port.
13668
ff44d107
VS
136692011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 Skip incorrect USB devices.
13672
13673 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
13674 configcnt == 0.
13675 * include/grub/usb.h (grub_usb_err_t): New enum value
13676 GRUB_USB_ERR_BADDEVICE.
13677
638dbe4f
VS
136782011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13679
13680 Fuloong video init support.
13681
13682 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
13683 well.
13684 (grub_vga_read_arx): New function.
13685 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
13686 definition.
13687 (framebuffer): New members io, mmioptr and mmiobase.
13688 (read_sis_cmd): New function.
13689 (write_sis_cmd): Likewise.
13690 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
13691 rather than 640x400.
13692 * grub-core/video/sis315_init.c: New file.
13693
c3fc520c
VS
136942011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13695
13696 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
13697 non-loongson.
13698 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
13699 to grub_dl_register_symbol.
13700
67b1e5c9
VS
137012011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13702
13703 Fix compilation errors.
13704
13705 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
13706 potentially unused.
13707 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
13708 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
13709 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
13710 to loongson machines.
13711
b756f75f
VS
137122011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 Several FS mtime support.
13715
13716 * grub-core/fs/affs.c (grub_affs_time): New struct.
13717 (grub_affs_file): New field mtime.
13718 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
13719 type. Removed 'size'. New field 'di'. All users updated.
13720 (grub_affs_mount): Simplify checsum checking.
13721 (grub_affs_iterate_dir): New helper grub_affs_create_node.
13722 (grub_affs_dir): Handle mtime.
13723 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
13724 (grub_cpio_dir): Likewise.
13725 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
13726 (grub_hfs_filerec): New field mtime.
13727 (grub_hfs_dir): Handle mtime.
13728 (grub_hfs_mtime): New function.
13729 (grub_hfs_fs): Register grub_hfs_mtime.
13730 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
13731 (grub_iso9660_dir): New field mtime.
13732 (grub_fshelp_node): New field dirent.
13733 (iso9660_to_unixtime): New function.
13734 (iso9660_to_unixtime2): Likewise.
13735 (grub_iso9660_read_symlink): Use node->dirent.
13736 (grub_iso9660_iterate_dir): Likewise.
13737 (grub_iso9660_dir): Set mtime.
13738 (grub_iso9660_mtime): New function.
13739 (grub_iso9660_fs): Register grub_iso9660_mtime.
13740 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
13741 (grub_jfs_inode): New fields atime, ctime and mtime.
13742 (grub_jfs_dir): Set mtime.
13743 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13744 * grub-core/fs/ntfs.c (list_file): Set mtime.
13745 (grub_ntfs_dir): Likewise.
13746 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
13747 (grub_reiserfs_iterate_dir): Set mtime.
13748 (grub_reiserfs_dir): Likewise.
13749 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
13750 (grub_fshelp_node): Likewise.
13751 (grub_sfs_iterate_dir): Set mtime.
13752 (grub_sfs_dir): Likewise.
13753 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
13754 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
13755 (grub_xfs_inode): New fields atime, mtime, ctime.
13756 (grub_xfs_dir): Set mtime.
13757 * include/grub/datetime.h (grub_datetime2unixtime): New function.
13758 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
13759 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
13760
13761 Support UDF symlinks.
13762
13763 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
13764 (grub_ufs_read_symlink): New function. All users updated.
13765
13766 Check amiga partmap checksum.
13767
13768 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
13769 (grub_amiga_partition): Likewise.
13770 (amiga_partition_map_checksum): New function.
13771 (amiga_partition_map_iterate): Check checksum.
13772
5470225d
VS
137732011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13774
13775 ROMFS support.
13776
13777 * Makefile.util.def (libgrubmods.a): Add romfs.
13778 * grub-core/Makefile.core.def (romfs): New module.
13779 * grub-core/fs/romfs.c: New file.
13780
d4680a35
VS
137812011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13782
13783 Squashfs v4 support.
13784
13785 * Makefile.util.def (libgrubmods.a): Add squash4.
13786 * grub-core/Makefile.core.def (squash4): New module.
13787 * grub-core/fs/squash4.c: New file.
13788 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
13789 disk_input_start, disk_input.
13790 (get_byte): Handle disk_input.
13791 (grub_zlib_disk_read): New function.
13792 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
13793
bcb18e74
FZ
137942011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
137952011-05-15 Feiran Zheng <famcool@gmail.com>
13796
13797 * Makefile.util.def (libgrubmods.a): Add minix3.
13798 * grub-core/Makefile.core.def (minix3): New module.
13799 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
13800 (GRUB_MINIX_BSIZE): Removed.
13801 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
13802 (grub_minix_ino_t): New type.
13803 (grub_minix_le_to_cpu_ino): New macro.
13804 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
13805 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
13806 (grub_minix_data): New field block_size.
13807 (grub_minix_read_file): Handle 64-bit correctly.
13808 * grub-core/fs/minix3.c: New file.
13809
32297d5f
TG
138102011-05-15 Tristan Gingold <gingold@free.fr>
138112011-05-15 Robert Millan <rmh.grub@aybabtu.com>
138122011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 IA64 support.
13815
13816 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
13817 * configure.ac: Add ia64-efi target.
13818 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
13819 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
13820 * gentpl.py: Add ia64_efi platform.
13821 Rename x86_efi to efi and Add ia64-efi. All users updated.
13822 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
13823 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
13824 Remove kern/generic/rtc_get_time_ms.c on EFI.
13825 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13826 kern/ia64/dl_helper.c on ia64-efi.
13827 Add kern/emu/cache.c on emu.
13828 (linux): Use on loader/ia64/efi/linux.c on ia64.
13829 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13830 whether symbol is a function.
13831 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13832 (grub_symbol): New field 'isfunc'.
13833 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13834 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13835 (grub_dl_load_segments): Place all sections into the same region.
13836 [__ia64__]: Create trampolines and got.
13837 [GRUB_MACHINE_EMU]: Call mprotect.
13838 (grub_dl_resolve_symbols): Resolve symbol type as well.
13839 [__ia64__]: Create function descriptors.
13840 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13841 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13842 (grub_get_rtc): New function.
13843 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13844 * grub-core/kern/emu/cache.S: Renamed to ...
13845 * grub-core/kern/emu/cache_s.S: ... this.
13846 [__ia64__]: Add a nop.
13847 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13848 [__ia64__]: New function.
13849 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13850 * grub-core/kern/ia64/dl.c: New file.
13851 * grub-core/kern/ia64/dl_helper.c: Likewise.
13852 * grub-core/kern/ia64/efi/init.c: New file.
13853 * grub-core/kern/ia64/efi/startup.S: Likewise.
13854 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13855 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13856 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13857 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13858 * grub-core/loader/ia64/efi/linux.c: New file.
13859 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13860 (GRUB_MOD_DEP): Likewise.
13861 (grub_dl) [__ia64__]: New fields got and tramp.
13862 (grub_dl): New field 'base'.
13863 (grub_dl_register_symbol): New argument isfunc. All users updated.
13864 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
13865 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
13866 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
13867 (grub_ia64_dl_get_tramp_got_size): New proto.
13868 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
13869 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
13870 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
13871 * include/grub/efi/api.h: Skip call wrappers on ia64.
13872 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
13873 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
13874 * include/grub/elf.h (ELF_ST_INFO): New definition.
13875 * include/grub/ia64/efi/kernel.h: New file.
13876 * include/grub/ia64/efi/memory.h: Likewise.
13877 * include/grub/ia64/efi/time.h: Likewise.
13878 * include/grub/ia64/kernel.h: Likewise.
13879 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13880 * include/grub/ia64/time.h: New file.
13881 * include/grub/ia64/types.h: Likewise.
13882 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13883 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13884 New protos.
13885 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13886 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13887 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13888 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13889 All users updated.
13890 (EFI64_HEADER_SIZE): New definition. All users updated.
13891 (image_targets): Add ia64-efi.
13892 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13893 jumpers_addr. All users updated.
13894 Create function descriptors.
13895 (count_funcs): New function.
13896 (unaligned_uint32): New struct.
13897 (MASK20): New definition.
13898 (MASK19): Likewise.
13899 (MASKF21): Likewise.
13900 (add_value_to_slot_20b): New function.
13901 (add_value_to_slot_21_real): Likewise.
13902 (add_value_to_slot_21): Likewise.
13903 (ia64_kernel_trampoline): New struct.
13904 (nopm): New variable.
13905 (jump): Likewise.
13906 (make_trampoline): New function.
13907 (relocate_addresses): Handle ia64.
13908 (make_reloc_section): Likewise.
13909 (load_image): Likewise.
13910
983b414d
VS
139112011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13912
13913 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13914 warning. Move variables before code while on it.
13915
5d063cdc
VS
139162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13917
13918 Fuloong support.
13919
13920 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13921 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13922 * grub-core/boot/mips/loongson/fuloong.S: New file.
13923 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13924 Explicitly init CS5536.
13925 [FULOONG]: Don't use serial until CS5536 is available.
13926 Set GPIO based on dumps.
13927 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13928 [FULOONG]: Handle GPIO and memory controller differences.
13929 Parse machine type in $a2.
13930 * grub-core/boot/mips/startup_raw.S: Determine and save the
13931 architecture.
13932 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13933 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13934 init on architecture type.
13935 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13936 SIS315E. Don't init at_keyboard on fuloong.
13937 (grub_halt): Support Fuloong.
13938 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13939 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13940 (loongson_machtypes): New array.
13941 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13942 type.
13943 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13944 config. All users updated. Handle CS5536 serial.
13945 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13946 default port on machine type. Register serial as inactive.
13947 * grub-core/video/sis315pro.c: New file.
13948 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13949 definition.
13950 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13951 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13952 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13953 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13954 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13955 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13956 to ...
13957 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13958 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13959 definition.
13960 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13961 (grub_arch_machine): New extern var.
13962 * include/grub/mips/loongson/serial.h
13963 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13964 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13965 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13966 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13967 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13968 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13969 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13970 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13971 * include/grub/term.h (grub_term_register_input_inactive): New inline
13972 function.
13973 (grub_term_register_output_inactive): Likewise.
13974 * include/grub/video.h (grub_video_driver_id): New value
13975 GRUB_VIDEO_DRIVER_SIS315PRO.
13976 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13977 New field "names". All users updated.
13978 New field value IMAGE_FULOONG_FLASH.
13979 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13980
6ada82d1
JU
139812011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13982
13983 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13984 and add some clarification.
13985
90c571a4
VS
139862011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13989 platforms if kernel is compressed.
13990
de04eecf
VS
139912011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13994 unused modules since currently referrence counter isn't reliable and
13995 there isn't much memory to recover there anyway.
13996
57688121
VS
139972011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
14000 rather than resetting it to allow modules to reference themselves
14001 in init.
14002
3d2c7e35
VS
140032011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
14006 counter on dependencies since grub_dl_unref already handles this.
14007
b25db218
VS
140082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
14011 on error if not already done.
14012
25a45338
VS
140132011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 Fix few potential memory misusage.
14016
14017 * grub-core/font/font.c (load_font_index): Don't free char_index to
14018 avoid double free.
b25db218
VS
14019 (grub_font_load): Zero-fill font at alloc for safety.
14020 Close file on error.
14021 (free_font): Free bmp_idx.
25a45338 14022
0cac83df
VS
140232011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * docs/grub.texi (Installation): Fix several outdated claims.
14026
2217a143
VS
140272011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14028
14029 Handle module_license on windows.
14030
14031 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14032 sections shifted.
14033 (insert_string): Make argument const char * instead of char *.
14034 (write_section_data): Handle long section names.
14035 Handle module_license.
14036
d4de6b01
VS
140372011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14040 handle class-free menuentries.
14041 (grub_normal_add_menu_entry): Add a check to be sure.
14042
4c2a3b43
VS
140432011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14046 PgUp and PgDown.
14047
85c6210f
VS
140482011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * configure.ac: Bump version to 1.99.
14051
36084912
VS
140522011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 Give ATA device a bit more time on first try in order to allow disks
14055 to spin up.
14056
14057 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14058 if dev->present is 1. Reset dev->present on failure.
14059 (grub_ata_device_initialize): Set dev->present to 1.
14060 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14061 (grub_ata_device): New member 'present'.
14062
bda0e219
VS
140632011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14064
14065 * util/grub-mkimage.c (generate_image): Update hash.
14066
19e1c41b
VS
140672011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14068
14069 Flush caches on DMA memory.
14070
14071 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14072 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14073 (grub_dma_free): Likewise.
14074 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14075
91bbcc0c
VS
140762011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14079 to avoid asm treating ld and sd as macros.
14080
60ddfad3
VS
140812011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14084 decompressor.
14085
a298aa04
VS
140862011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14087
14088 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14089 grub_decompress_core since later would fail if grub_decompress_core
14090 is too far.
14091
9b44feca
VS
140922011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14095 R_MIPS_JALR since it's used by newer compiler.
14096
56dbe7b4
VS
140972011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14100
52856af2
VS
141012011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14102
14103 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14104 file_path to 0 for surety.
14105 (grub_chainloader_boot): Set exit_data to NULL.
14106 Unset the loader once done.
14107 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14108
9c9bfc6d
VS
141092011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14110
14111 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14112 unknown key into a dprintf.
14113
dd94a3df
VS
141142011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14115
14116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14117 on first non-existant partition.
14118
fa68d99c
VS
141192011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14122 openning fails.
14123 Reported by: Mark Korenberg.
14124
157effb7
VS
141252011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14128 overflow.
14129
ea75312f
VS
141302011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14133 before closing to ensure that it will be readable by grub-setup.
14134
072b5d31
VS
141352011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14138 (devpath_1): Use MAKE_PIWG_PATH.
14139 (devpath_2): Likewise.
14140 (devpath_3): Likewise.
14141 (devpath_4): Likewise.
14142 (devpath_5): Likewise.
14143 (devpath_6): Likewise.
14144
14145 The appleldr.mod was checked that to be binary identical to previous
14146 version.
14147
7fae0051
Z
141482011-05-05 Zach <mikezackles>
14149
14150 Support 2010 Macbooks.
14151
14152 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14153 (devs): Add devpath_6.
14154
7c515bee
VS
141552011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14156
14157 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14158 /dev/random. /dev/urandom is good enough for our purposes (salting).
14159
ed660bd8
VS
141602011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14163
ee5614b7
VS
141642011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14165
14166 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14167 hexadecimal.
14168
664889a6
VS
141692011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14172 and not 0 on failure.
14173
bd405bbc
CW
141742011-05-03 Colin Watson <cjwatson@ubuntu.com>
14175
14176 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14177 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14178 disk; otherwise grub_fs_probe will not fall back to the next
14179 filesystem.
14180 (grub_pxefs_open): Likewise, for consistency.
14181 Reported and tested by: Ezekiel Grave.
14182
4ebff753
CW
141832011-05-03 Colin Watson <cjwatson@ubuntu.com>
14184
14185 * tests/partmap_test.in: Don't hardcode path to parted.
14186 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14187
8f942553
CW
141882011-05-01 Colin Watson <cjwatson@ubuntu.com>
14189
14190 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14191 of `ls' to find out which devices are available.
14192
3c62402d
VS
141932011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14194
14195 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14196 than source address for efi mmap buffer.
14197
723f63f2
VS
141982011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14201 wrong action on non-detecting the magic.
14202
68797f92
VS
142032011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14204
14205 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14206 already supplied by another part of the module (fixes compilation on
14207 FreeBSD).
14208
6be8715d
VS
142092011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14210
14211 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14212 match the one used by mdadm.
14213
e91dba5b
CW
142142011-04-21 Colin Watson <cjwatson@ubuntu.com>
14215
14216 * po/README: Add instructions for creating po/LINGUAS.
14217
c85140b3
CW
142182011-04-21 Colin Watson <cjwatson@ubuntu.com>
14219
14220 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14221 #551428.
14222
14223 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14224 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14225 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14226 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14227 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14228 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14229 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14230 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14231 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14232 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14233 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14234 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14235 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14236 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14237 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14238 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14239 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14240 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14241 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14242 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14243 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14244 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14245
92051871
CW
142462011-04-21 Colin Watson <cjwatson@ubuntu.com>
14247
14248 * grub-core/kern/emu/getroot.c
14249 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14250 test that was incorrectly reintroduced in r3214.
14251 Reported by: Ian Dall. Fixes Savannah bug #33133.
14252
b13f79a4
CW
142532011-04-21 Colin Watson <cjwatson@ubuntu.com>
14254
14255 Fix stack pointer handling in 16-bit relocator.
14256
14257 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14258 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14259 Fixes Ubuntu bug #683904.
14260
9b710a88
VS
142612011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * configure.ac: Bump version to 1.99~rc2.
14264
d97e7b59
VS
142652011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14266
14267 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14268 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14269 * grub-core/lib/x86_64/setjmp.S: Likewise.
14270 * grub-core/lib/mips/setjmp.S: Likewise.
14271 * grub-core/lib/powerpc/setjmp.S: Likewise.
14272 * grub-core/lib/sparc64/setjmp.S: Likewise.
14273
0624551c
VS
142742011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14275
14276 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14277 * grub-core/lib/efi/datetime.c: Likewise.
14278
e8f28d4c
VS
142792011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14282 New function.
14283 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14284 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14285 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14286
bba79a15
VS
142872011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14290 bitmap.
14291 (grub_gfxterm_term_init): Likewise.
14292
abc474ef
VS
142932011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14294
14295 Take into account the decorations the computing menu entry width.
14296
14297 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14298 (grub_gfxmenu_create_box): Register get_border_width.
14299 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14300 if available.
14301 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14302 get_border_width.
14303
e74b3947
EP
143042011-04-18 Endres Puschner <code@e7p.de>
14305
14306 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
14307 Don't skip first class.
14308
34faa595
VS
143092011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
14312 chunks.
14313 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
14314
93a777e3
VS
143152011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14316
14317 Complete 64-bit division support.
14318
14319 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
14320 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
14321 * include/grub/misc.h (grub_divmod64): Rename to ...
14322 (grub_divmod64_full): ... this.
14323 (grub_divmod64): New inline function.
14324
a5102d94
VS
143252011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * util/grub-mkimage.c (generate_image): Add forgotten comma.
14328
f3fb7b36
VS
143292011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
14332 performing the necessary test.
14333
9ac718b0
VS
143342011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
14337 (kfreebsd.elf): Likewise.
14338 (pc-chainloader.elf): Likewise.
14339 (ntldr.elf): Likewise.
14340
50d2cc5a
VS
143412011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 Identify RAID by its UUID rather than (guessed) name.
14344
14345 * grub-core/disk/raid.c (ascii2hex): New function.
14346 (grub_raid_open): Accept mduuid/%s specification.
14347 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
14348 (get_mdadm_uuid): ... this.
14349 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
14350
e03f7bea
VS
143512011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
14354 to negative size.
14355
e74c3112
CW
143562011-04-13 Colin Watson <cjwatson@ubuntu.com>
14357
14358 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
14359 btrfs subvolume.
14360 * util/grub.d/20_linux_xen.in: Likewise.
14361
78fa584f
CW
143622011-04-13 Colin Watson <cjwatson@ubuntu.com>
14363
14364 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
14365 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
14366
14367 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14368 Build a list of relevant visible mounts using the mnt_id and
14369 parent_mnt_id fields, and then scan that list at the end.
14370
9d5f8162
CW
143712011-04-12 Colin Watson <cjwatson@ubuntu.com>
14372
14373 * docs/grub.texi (normal): New section.
14374 (normal_exit): New section.
14375 (Embedded configuration): Add reference to normal.
14376 (GRUB only offers a rescue shell): Likewise.
14377 * docs/grub-dev.texi (Error Handling): Fix typo.
14378
09a9d66f
CW
143792011-04-12 Colin Watson <cjwatson@ubuntu.com>
14380
14381 * NEWS: Drop obsolete entry about probe-only btrfs support.
14382
0c676933
CW
143832011-04-12 Colin Watson <cjwatson@ubuntu.com>
14384
14385 * util/import_gcry.py: Fix typo.
14386
ec9f5e0d
VS
143872011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14388
14389 * NEWS: Add btrfs support.
14390
fe6b2cba
VS
143912011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
143922011-04-11 Colin Watson <cjwatson@ubuntu.com>
14393
14394 BtrFS support. Written by me (Vladimir) with important bugfixes and
14395 even more important testing by Colin.
14396
14397 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
14398 * grub-core/Makefile.core.def (btrfs): Add crc.c.
14399 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
14400 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
14401 mem_input_off and mem_input. All users updated to accept in-RAM input.
14402 (gzio_seek): New function.
14403 (test_zlib_header): Likewise.
14404 (grub_gzio_read): Likewise.
14405 (grub_zlib_decompress): Likewise.
14406 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
14407 Accept partial and non-virtual mounts.
14408 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
14409 avoid receiving /dev/dm-X as device.
14410 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
14411 Handle bind and partial mounts.
14412 * grub-core/lib/crc.c: New file.
14413 * include/grub/deflate.h: Likewise.
14414 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
14415 proto.
14416 * include/grub/lib/crc.h: New file.
14417
e745cf0c
VS
144182011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 Implement automatic module license checking according to new GNU
14421 guidelines.
14422
14423 * grub-core/kern/dl.c (grub_dl_check_license): New function.
14424 (grub_dl_load_core): Use grub_dl_check_license.
14425 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
14426 (GRUB_MOD_LICENSE): Likewise.
14427 (GRUB_MOD_DUAL_LICENSE): Likewise.
14428 All modules updated.
14429
2a9bc016
CW
144302011-04-11 Colin Watson <cjwatson@ubuntu.com>
14431
14432 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
14433 reserved_first_sector to 1. btrfs reserves plenty of space for boot
14434 loaders.
14435 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
14436
8a3bc88e
VS
144372011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
14440
af869a4a
VS
144412011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14442
14443 * util/grub-fstest.c (read_file): Report GRUB error if file opening
14444 failed.
14445
9ee8d94f
VS
144462011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14447
14448 * grub-core/kern/file.c (grub_file_open): Don't take into account the
14449 parenthesis in the middle of the filename.
14450
b01abe3e
VS
144512011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14452
14453 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
14454 rather than trying to put initrd way too high.
14455 Reported by: Ryan Lortie <desrt@desrt.ca>
14456
335bda1e
VS
144572011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14458
14459 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
14460 improperly removed string.
14461
5ca1a64d
VS
144622011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
14465 is_disk.
14466 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
14467 (open_device) Likewise.
14468 (grub_util_biosdisk_close): Likewise.
d8ce9995 14469 Reported by: Mark Korenberg.
5ca1a64d 14470
cbac5b1e
AK
144712011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
14472
14473 * util/grub-mkconfig_lib.in: Add missing quotes.
14474
088cdb65
CW
144752011-04-10 Colin Watson <cjwatson@ubuntu.com>
14476
14477 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
14478 is NULL.
14479
8b8a81fa
VS
144802011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 Dynamically count the number of lines for the lower banner.
14483
14484 * grub-core/normal/menu_entry.c (per_term_screen): New member
14485 num_entries.
14486 (print_down): Use num_entries.
14487 (update_screen): Likewise.
14488 (grub_menu_entry_run): Set num_entries.
14489 * grub-core/normal/menu_text.c (menu_viewer_data): New member
14490 num_entries.
14491 (grub_print_message_indented): Move real part to ...
14492 (grub_print_message_indented_real): ... here. Additional argument
14493 dry_run.
14494 (draw_border): Additional argument num_entries.
14495 (print_message): Additional argument dry_run.
14496 (print_entries): Receive menu viewer data.
14497 (grub_menu_init_page): New argment num_entries.
14498 (menu_text_set_chosen_entry): Use num_entries.
14499 (grub_menu_try_text): Likewise.
14500 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
14501 All users updated.
14502 (grub_ucs4_count_lines): New function.
14503 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
14504 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
14505 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
14506 (grub_term_border_height): Likewise.
14507 (grub_term_num_entries): Likewise.
14508
277f955b
VS
145092011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14510
14511 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
14512 Remove now unused string.
14513
536ce85a
CW
145142011-04-09 Colin Watson <cjwatson@ubuntu.com>
14515
14516 * docs/grub-dev.texi (Finding your way around): Update for 1.99
14517 build system.
14518 (Getting started): GRUB is developed in Bazaar now, not Subversion.
14519
14520 (Comment): Fix typo.
14521 (Getting started): General copy-editing.
14522 (Typical Development Experience): Likewise.
14523 (Error Handling): Likewise.
14524 (Video API): Likewise.
14525
2cf09e32
CW
145262011-04-09 Colin Watson <cjwatson@ubuntu.com>
14527
14528 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
14529 throughout.
14530
1ec652f4
VS
145312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14532
14533 * util/grub-mkimage.c (main): Handle special naming of yeeloong
14534 directory.
14535
2c583728
CW
145362011-04-08 Colin Watson <cjwatson@ubuntu.com>
14537
14538 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
14539 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
14540 "development".
14541
d7a565e9
VS
145422011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
14545 grub_strcpy since the lines aren't necessarily 0-terminated.
14546
7c2e4909
VS
145472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
14550 root on legacy.
14551
34c09785
VS
145522011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/commands/probe.c (options): Argument to set isn't optional.
14555 (GRUB_MOD_INIT): DEVICE isn't optional.
14556
6a6f8058
VS
145572011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
14560 word on new line if it's too long anyway. Fixes a hang.
14561
2e335e90
VS
145622011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
14565 const.
14566 * util/grub-setup.c (main): Reuse md device name if available.
14567 * util/raid.c (grub_util_raid_getmembers): Receive device name and
14568 not GRUB name as argument.
14569 Based on patch by: Florian Wagner <fwagner>.
14570
10a7a867
VS
145712011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14572
14573 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14574 Place mbi on low memory for better compatibility.
14575
7a3d6cd9
VS
145762011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14577
14578 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
14579
18dd6b47
VS
145802011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
145812011-04-08 Colin Watson <cjwatson@ubuntu.com>
14582
14583 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 14584 * conf/Makefile.common: Likewise.
18dd6b47 14585
3c0e3f14
VS
145862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14587
f7148863
VS
14588 * grub-core/normal/menu.c: Add missing include.
14589
145902011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14591
14592 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 14593
6d1fa41f
MZ
145942011-04-08 Martin Zuther <mzuther@mzuther.de>
14595
14596 * util/grub-mkconfig.in: Ignore emacsen backup.
14597
478182a8
VS
145982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14599
14600 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
14601 on open.
14602 (grub_util_biosdisk_close): Likewise.
14603
72a89a54
VS
146042011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14605
14606 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
14607 const attribute and use grub_isdigit.
14608
b5ebecfa
A
146092011-04-06 Andrey <dev_null@ukr.net>
14610
14611 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
14612 gcc warning.
14613
7755f66e
VS
146142011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
14617 useful grub_dprintf's.
14618
461121ff
VS
146192011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
14622
2a961775
VS
146232011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
14626
adf594cc
VS
146272011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14628
14629 Output errors if theme loading failed.
14630
14631 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
14632 grub_gfxterm_fullscreen on error paths to ...
14633 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
14634 theme loading error.
14635
665900a3
VS
146362011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14637
14638 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
14639 space for older compilers.
14640 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14641
a562b479
VS
146422011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
14645 and report them as not RAID members since they are useless for GRUB.
14646 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14647
850e9373
VS
146482011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14649
14650 Increase LVM implementation robustness in order not to crash on
14651 configurations like pvmove. Previously code assumed that in some places
14652 only lvs or only pvs are used whereas it seems that they are used
14653 interchangeably.
14654
14655 * grub-core/disk/lvm.c (read_node): New function.
14656 (read_lv): Use read_node.
14657 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
14658 Match volumes only at the end when all lvs are found. Take both
14659 pvs (first) and lvs (second) into account.
14660 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
14661 mirror_* into node_*. All users updated.
14662 (grub_lvm_stripe): Merge this ...
14663 (grub_lvm_mirror): ... and this ...
14664 (grub_lvm_node): ... into this. All users updated.
14665
6f332153
VS
146662011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
14669 of function to allow further scanning for LVMs.
14670
829ea451
VS
146712011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14672
14673 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
14674 on failed seek as it breaks open fd reusage.
14675
09ceb9a5
VS
146762011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * util/grub-install.in: Add a recommendation to use --recheck before
14679 reporting bugs.
14680
67e11623
VS
146812011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
14684 are obtained.
14685
caee5efd
VS
146862011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 GRUB developper manual based on existing Internals section and
14689 contributions by the various authors with active copyright assignment.
14690
14691 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
14692 * docs/font_char_metrics.png: New file.
14693 * docs/font_char_metrics.txt: Likewise.
14694 * docs/grub-dev.texi: Likewise.
14695 * docs/grub.texi (Internals): Move from here ...
14696 * docs/grub-dev.texi: ... here.
14697
2cccc747
CW
146982011-04-01 Colin Watson <cjwatson@ubuntu.com>
14699
14700 Store the loopback device as data on loopback grub_disk structures,
14701 rather than the file it points to. This fixes use of freed memory
14702 if an existing loopback device is replaced.
14703
14704 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
14705 disk->data, not dev->file.
14706 (grub_loopback_read): Adjust file assignment to match.
14707 Fixes Ubuntu bug #742967.
14708
186ae367
CW
147092011-04-01 Colin Watson <cjwatson@ubuntu.com>
14710
14711 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
14712 when replacing an existing device.
14713
cfed2ad0
VS
147142011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
14715
14716 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
14717 memory corruptions.
14718
14719 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
14720 unsigned.
14721 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
14722 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
14723 (grub_jfs_read_inode): Likewise.
14724 (grub_jfs_opendir): Likewise. Remove now useless casts.
14725 (grub_jfs_getent): Likewise.
14726 Make ino a grub_uint32_t rather than int.
14727 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
14728 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
14729 division and module with bit operations.
14730 (grub_jfs_find_file): Make ino a grub_uint32_t.
14731 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
14732
05d2ed32
CW
147332011-04-01 Colin Watson <cjwatson@ubuntu.com>
14734
14735 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
14736 warning. (This was in fact always initialised before use, but GCC
14737 wasn't smart enough to prove that.)
14738 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
14739
91dc6073
VS
147402011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
14743 stack alignment.
14744 (efi_wrap_1): Likewise.
14745 (efi_wrap_2): Likewise.
14746 (efi_wrap_3): Likewise.
14747 (efi_wrap_4): Likewise.
14748 (efi_wrap_5): Likewise.
14749 (efi_wrap_6): Likewise.
14750 (efi_wrap_10): Likewise.
14751 Based on information by: Red Hat/Peter Jones.
14752
a8afc1d1
CW
147532011-03-31 Colin Watson <cjwatson@ubuntu.com>
14754
14755 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
14756 set-but-not-used variable.
14757
a826cc7d
CW
147582011-03-31 Colin Watson <cjwatson@ubuntu.com>
14759
14760 * docs/grub.texi (Simple configuration): Be more explicit about
14761 GRUB_DEFAULT, and add an example.
14762 Reported by: Leslie Rhorer.
14763
875b67ba
CW
147642011-03-30 Colin Watson <cjwatson@ubuntu.com>
14765
14766 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
14767 shell".
14768
fd7cd914
AS
147692011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14770
14771 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
14772 * util/grub.d/20_linux_xen.in: Likewise.
14773
090b1b6a
VS
147742011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 * util/grub.d/10_linux.in: Try alternative config filenames where
14777 we parse config file.
14778 * util/grub.d/20_linux_xen.in: Likewise.
14779
baad885c
AS
147802011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14781
14782 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
14783 * util/grub.d/20_linux_xen.in: Likewise.
14784
241e41f5
VS
147852011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * grub-core/disk/raid.c (insert_array): Add few potentially
14788 useful grub_util_info.
14789 (grub_raid_register): Likewise.
14790
56445fb2
VS
147912011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
14794 Preserve partition number in mdadm code path.
14795
c871b1c6
VS
147962011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14797
14798 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
14799 few potentially useful grub_util_info.
14800
5e631b4f
CW
148012011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14802
14803 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
14804
2d5d0333
CW
148052011-03-30 Colin Watson <cjwatson@ubuntu.com>
14806
14807 * docs/grub.texi (default): Use @example rather than nested
14808 itemized lists to avoid breaking gendocs.
14809
3d7ed04e
CW
148102011-03-30 Colin Watson <cjwatson@ubuntu.com>
14811
14812 * docs/grub.texi (Future): Update.
14813
abf04200 148142011-03-30 Colin Watson <cjwatson@ubuntu.com>
14815
14816 * docs/grub.texi (Environment): New chapter.
14817 (Changes from GRUB Legacy): Link to "Environment block" section for
14818 details of limitations.
14819 (Simple configuration): Likewise. Link to documentation of gfxmode
14820 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
14821 respectively.
14822 (Shell-like scripting): Note that normal variables are stored in the
14823 environment.
14824 (gettext): Link to documentation of lang and locale_dir.
14825 (list_env): New section.
14826 (load_env): New section.
14827 (save_env): New section.
14828
14829 (Reporting bugs): Fix typo.
14830
e1ad0edd
VS
148312011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14834 the example.
14835
5d803174
VS
148362011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 * grub-core/term/at_keyboard.c (set_scancodes)
14839 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14840
2a2da1d0
CW
148412011-03-30 Colin Watson <cjwatson@ubuntu.com>
14842
14843 * docs/grub.texi (Menu-specific commands): Remove some semantics
14844 that were true in GRUB Legacy but not in GRUB 2.
14845 (submenu): New section.
14846 (false): New section.
14847 (read): New section.
14848 (true): New section.
14849
a7527639
CW
148502011-03-30 Colin Watson <cjwatson@ubuntu.com>
14851
14852 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14853
148542011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14855
14856 * docs/grub.texi (Simple configuration): Explain some of the
14857 current limitations of grub-mkconfig.
8a748df2 14858 Reported by: Leslie Rhorer.
e30af029 14859
fc858482
VS
148602011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 Old macs search for boot.efi rather than for bootia32.efi.
14863
14864 * util/grub-install.in: Copy bootia32.efi to boot.efi.
14865 * util/grub-mkrescue.in: Likewise.
14866 Suggested by: Peter Jones.
14867
e1eb511d
VS
148682011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14869
14870 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
14871
70e75364
VS
148722011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14873
14874 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
14875 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
14876 (grub_lvm_mirror): New struct.
14877 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14878 (grub_lvm_iterate): Iterate only visible volumes.
14879 (grub_lvm_read): Factor out to ..
14880 (read_lv): ... this. Support mirrors.
14881 (grub_lvm_read): New wrapper function.
14882 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14883 stripped or mirrored.
14884
fc18f6a3
VS
148852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14888
5c650f4c
CW
148892011-03-29 Colin Watson <cjwatson@ubuntu.com>
14890
14891 * docs/grub.texi (loopback): New section.
14892
61d7156b
CW
148932011-03-29 Colin Watson <cjwatson@ubuntu.com>
14894
14895 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14896 removed -p option.
14897
994b8264
CW
148982011-03-29 Colin Watson <cjwatson@ubuntu.com>
14899
14900 * docs/grub.texi (BIOS installation): New section, partly based on
14901 previous text in other sections.
14902 (Installing GRUB using grub-install): Replace BIOS discussion with a
14903 cross-reference.
14904 (Images): Likewise.
14905
9e4d19e0
VS
149062011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14909 [HAVE_DIOCGDINFO]: Add safety checks.
14910
a307c0b2
VS
149112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14914 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14915
b4db4f39
CW
149162011-03-29 Colin Watson <cjwatson@ubuntu.com>
14917
14918 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14919 real_sb->size is zero (e.g. RAID-0), get the disk size from
14920 real_sb->data_size instead.
14921 Fixes Ubuntu bug #743136.
14922
35e5f84c
VS
149232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14926 printf clauses for printing size and start.
14927
d2e29d81
VS
149282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14931 Reported and tested by: Timothy Nikkel.
14932
ed5587af
VS
149332011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14936 (dirty_region_add_real): ... this.
14937 (dirty_region_add): Don't discard margin refresh when performing
14938 scheduled repaint.
14939
a1dc717c
VS
149402011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * grub-core/lib/relocator.c (allocate_regstart)
14943 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14944 terminals are capabple of malloc-free operation.
14945 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14946 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14947
9f3677d3
VS
149482011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14949
14950 * util/grub-setup.c: Copy the partition table zone if floppy support
14951 is disabled, even if no partition table is found.
14952
14953 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14954 during POST if an invalid partition table is contained in the PBR
14955 of the active partition when GRUB is installed to a partition.
14956
24148725
CW
149572011-03-28 Colin Watson <cjwatson@debian.org>
14958
14959 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14960 comment.
14961
f329eda7
CW
149622011-03-28 Colin Watson <cjwatson@debian.org>
14963
14964 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14965 to be specific about what kind of RAID device we're scanning for.
14966
c482ad98
SG
149672011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14968
14969 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14970 return freed string.
14971
5ee04984
VS
149722011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14973
14974 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14975
f4727da9
VS
149762011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 Use libgeom on FreeBSD to detect partitions.
14979
14980 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14981 (grub-mkrelpath): Likewise.
14982 (grub-script-check): Likewise.
14983 (grub-editenv): Likewise.
14984 (grub-mkpasswd-pbkdf2): Likewise.
14985 (grub-fstest): Likewise.
14986 (grub-mkfont): Likewise.
14987 (grub-mkdevicemap): Likewise.
14988 (grub-probe): Likewise.
14989 (grub-setup): Likewise.
14990 (grub-ofpathname): Likewise.
14991 (grub-mklayout): Likewise.
14992 (example_unit_test): Likewise.
14993 (grub-menulst2cfg): Likewise.
14994 * grub-core/Makefile.core.def (grub-emu): Likewise.
14995 (grub-emu-lite): Likewise.
14996 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14997 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14998 define HAVE_DIOCGDINFO.
14999 (follow_geom_up) [FreeBSD]: New function.
15000 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
15001 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
15002 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
15003 unconditionally of HAVE_DIOCGDINFO.
15004
82fe6c75
VS
150052011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 Fix FreeBSD compilation problem.
15008
15009 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
15010 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
15011
4c6c9431
CW
150122011-03-24 Colin Watson <cjwatson@ubuntu.com>
15013
15014 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
15015 Switch back to page zero before loading a kernel, since some kernel
15016 drivers expect that.
15017 Thanks to: Felix Kuehling.
15018
c7064d94
VS
150192011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15022 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15023 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15024
3f71cded
VS
150252011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15028 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15029
ef6de21a
VS
150302011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15031
15032 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15033 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15034 malloc is disabled.
15035
8bc66a2c
VS
150362011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15039 for modules headers when counting the needed allocation size.
15040
5657722c
VS
150412011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15044 if no ASCII character is found to prevent crash.
15045
41a85f55
AK
150462011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15047
15048 * grub-core/video/bitmap.c (match_extension): Ignore case.
15049
59e1e5f1
VS
150502011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15053
bd4d051a
VS
150542011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15055
15056 * grub-core/script/parser.y: Declare "time" as valid argument.
15057
bae7fcc1
PJ
150582011-03-23 Peter Jones <pjones@redhat.com>
15059
15060 Fix incorrect assert failure reporting.
15061
15062 * grub-core/tests/example_functional_test.c (example_test): Add
15063 a failure comment.
15064 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15065 (failure_start): ...this. Check that malloc succeeded.
15066 Don't call xvasprintf. Return failure struct.
15067 (failure_append_vtext): New function.
15068 (failure_append_text): Likewise.
15069 (add_failure): Likewise.
15070 (grub_test_assert_helper): Likewise.
15071 * include/grub/test.h (grub_test_assert_helper): New declaration.
15072 (grub_test_assert): Macro rewritten.
15073
537dc9be
VS
150742011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15077
fa3e01bf
VS
150782011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15081
b1d28404
VS
150822011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15083
15084 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15085 into GRUB-style one.
15086
2e3e2e09
VS
150872011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15088
15089 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15090 error and not grub_errno.
15091 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15092
ed57e557
VS
150932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15094
15095 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15096 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15097
d1611f01
VS
150982011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15099
15100 * grub-core/efiemu/i386/pc/cfgtables.c
15101 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15102 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15103 (grub_xnu_unlock): Likewise.
15104 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15105
7d4e39d6
VS
151062011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15109 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15110 * grub-core/commands/hashsum.c (aliases): Likewise.
15111 * grub-core/commands/setpci.c (pci_registers): Likewise.
15112 * grub-core/disk/usbms.c (attach_hook): Likewise.
15113 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15114 (zio_checksum_table): Likewise.
15115 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15116 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15117 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15118 * grub-core/lib/relocator.c (leftovers): Likewise.
15119 (extra_blocks): Likewise.
15120 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15121 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15122 (modules_last): Likewise.
15123 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15124 (devices): Likewise.
15125 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15126 (modules_last): Likewise.
15127 * grub-core/normal/auth.c (users): Likewise.
15128 * grub-core/normal/context.c (initial_menu): Likewise.
15129 (current_menu): Likewise.
15130 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15131 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15132 (grub_serial_terminfo_input_template): Likewise.
15133 (grub_serial_terminfo_output_template): Likewise.
15134 (grub_serial_terminfo_input): Likewise.
15135 (grub_serial_terminfo_output): Likewise.
15136 (registered): Likewise.
15137 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15138
40fc4659
VS
151392011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15140
15141 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15142 grub_video_mode_type_t.
15143 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15144 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15145 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15146
2da48d28
VS
151472011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * util/grub-install.in: Correct the x86-64 name as x86_64.
15150
9b43bf39
CW
151512011-03-11 Colin Watson <cjwatson@ubuntu.com>
15152
15153 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15154 initial chunk read from the kernel always includes GRUB's multiboot
15155 header, which is now outside the first sector.
15156
be1a7ce0
CW
151572011-03-09 Colin Watson <cjwatson@ubuntu.com>
15158
15159 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15160 cached mmap_size, so that this works correctly when called multiple
15161 times.
15162 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15163
83a3c48d
CW
151642011-03-09 Colin Watson <cjwatson@ubuntu.com>
15165
15166 * docs/grub.texi (Simple configuration): Tidy up formatting.
15167
57d75699
SJ
151682011-03-07 Szymon Janc <szymon@janc.net.pl>
15169
15170 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15171 Set-but-not-used variable removed.
15172
028501a0
VS
151732011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 Workaround yet another IEEE1275 bug.
15176
15177 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15178 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15179 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15180 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15181 is set.
15182 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15183 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15184
d998657d
VS
151852011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15186
15187 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15188 error.
15189
fee7cdd4
CW
151902011-02-11 Colin Watson <cjwatson@ubuntu.com>
15191
15192 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15193 empty, since in that case we can only generate either nothing or a
15194 syntactically invalid configuration file.
15195 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15196
97286eb5
CW
151972011-02-09 Colin Watson <cjwatson@ubuntu.com>
15198
15199 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15200 (Making a GRUB bootable CD-ROM): Likewise.
15201 (Invoking grub-mkrescue): New section.
15202 Reported by: Yann Dirson. Fixes Debian bug #612585.
15203
22b28eb3
CW
152042011-02-09 Colin Watson <cjwatson@ubuntu.com>
15205
15206 * util/grub-install.in: Remove unnecessary brackets from tr
15207 arguments.
15208 * util/grub.d/10_hurd.in: Likewise.
15209 * util/grub.d/10_kfreebsd.in: Likewise.
15210 * util/grub.d/10_linux.in: Likewise.
15211 * util/grub.d/20_linux_xen.in: Likewise.
15212 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15213
7e735e43
CW
152142011-02-08 Colin Watson <cjwatson@ubuntu.com>
15215
15216 * include/grub/file.h (not_easly_seekable): Rename to ...
15217 (not_easily_seekable): ... this. Update all users.
15218
800f1881
CW
152192011-01-28 Colin Watson <cjwatson@ubuntu.com>
15220
15221 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15222 grub-mkrescue.
15223
3281d3d6
VS
152242011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * util/grub-mkimage.c (generate_image): Refuse to create the images
15227 bigger than the actual flash (512K) in Loongson machines. 512K is also
15228 the biggest chip supported by them.
15229
3533413c
VS
152302011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15233
73ae4f4f
VS
152342011-01-22 Anthony DeRobertis <anthony@derobert.net>
15235
15236 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15237 super_offset field.
15238
37f4f608
VS
152392011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 * util/grub-install.in: Ignore install device on platforms
15242 where it doesn't make sense. Always use UUIDs except on pc, efi and
15243 sparc64.
15244 Reported by: Daniel Kahn Gillmor.
15245
03a4ccb5
VS
152462011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15249
ffc8f4d8
VS
152502011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15251
15252 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15253 (iterate_real): Don't rely on partition being non-NULL.
15254
80f23be7
VS
152552011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15256
15257 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15258 supported platforms. Put a compile time assert for this rather than
15259 generate a warning with 32-bit shift.
15260
5d4f4dd5
VS
152612011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15264 logical expression more readable.
15265
e489601a
VS
152662011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15267
15268 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15269 even if some elements have a name.
15270 Reported by: Alexander GQ Gerasiov.
15271
96e0a6ea
CW
152722011-01-22 Colin Watson <cjwatson@ubuntu.com>
15273
15274 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15275 path unreadable if `grub-probe -t abstraction' fails, for example if
15276 memberlist fails on an LVM volume group.
15277 Reported by: Darius Jahandarie.
15278
81431e2b
CW
152792011-01-22 Colin Watson <cjwatson@ubuntu.com>
15280
15281 * docs/grub.texi (Simple configuration): Document
15282 GRUB_PRELOAD_MODULES.
15283
5e79d66a
CW
152842011-01-17 Colin Watson <cjwatson@ubuntu.com>
15285
15286 * .bzrignore: Remove nonexistent grub-pbkdf2.
15287
646ada34
VS
152882011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * configure.ac: Bump version to 1.99~rc1.
15291
04360337
VS
152922011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15295 for safety.
15296
46c9db88
VS
152972011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15300 module.
15301
153022011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
15303
15304 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
15305
4fbf1852
VS
153062011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
15309 diskdevid.
15310
f1632d4d
VS
153112011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Fix compilation on cygwin.
15314
15315 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
15316 -R .drectve on cygwin.
15317 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
15318 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
15319 (COND_CYGWIN): New condition.
15320 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
15321 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
15322 not @TARGET_OBJ2ELF@.
15323 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
15324 type to determine whether aux is to be used.
15325
0b5e127b
VS
153262011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
15329 realpath'ed device string.
15330 Handle floppy (somewhat).
15331 Issue error in unknown case rather than garbage.
15332 Reported by: Axel Beckert.
15333
173b71e9
VS
153342011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 * util/grub.d/00_header.in (load_video): Handle the case when no video
15337 drivers available.
15338 Thanks to: Axel Beckert.
15339
f8f479db
VS
153402011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
15343 variable. Fixes problem on big endian platforms.
15344
8fc0a245
VS
153452011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
15348 It doesn't work well there.
15349
b8494fbe
VS
153502011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
15353 warning.
15354 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
15355 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
15356 counter.
15357
b44a558c
VS
153582011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15359
15360 Use alias->path rather than buggy "canon".
15361
15362 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
15363 (ofdisk_hash_add): New argument curcan. All users updated.
15364
51fa856c
CW
153652011-01-11 Colin Watson <cjwatson@ubuntu.com>
15366
15367 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
15368
9da068a5
VS
153692011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15370
15371 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
15372 loadmask before doing any calculations. Use correct type for offset.
15373 (grub_linux_load64): Likewise.
15374
86205c94
CW
153752011-01-11 Colin Watson <cjwatson@ubuntu.com>
15376
15377 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
15378 with NULL.
15379 (console_grub_equivalences_unshift): Likewise.
15380 Reported by: Daniel Dehennin.
15381
4531a206
VS
153822011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
15385 (set_env_limn_ro): Likewise.
15386 (GRUB_MOD_INIT): Likewise.
15387 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
15388 ARRAY_SIZE while on it.
15389 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
15390 * grub-core/normal/context.c (grub_env_export): Move from here ...
15391 * grub-core/kern/env.c (grub_env_export): ... here.
15392 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
15393 prefix.
15394 * grub-core/kern/main.c (grub_main): Export root and prefix.
15395 * include/grub/env.h (grub_env_export): Export.
15396 Reported by: Seth Goldberg.
15397
45146057
VS
153982011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15401 Take into account space used by ELF sections and multiboot palette.
15402 Reported by: Grégoire Sutre.
15403
f093110b
VS
154042011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 * BUGS: New file.
15407
3395fe52
VS
154082011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 Pass more appropriate video id to Linux.
15411
15412 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
15413 grub_video_get_driver_id and variable gfxpayloadforcelfb to
15414 fill have_vga.
15415 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
15416 shift params->lfb_size.
15417 * include/grub/i386/linux.h: Make an enume out of have_vga values.
15418
c2fa6cbb
VS
154192011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15420
15421 * util/grub-menulst2cfg.c: Add missing include of misc.h.
15422
b3ff6ff0
VS
154232011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
15426 separator and pass bootpath/devid even if only one of them is available.
15427 Reported by: Seth Goldberg.
15428
ae67942e
VS
154292011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15430
15431 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
15432 implementations bug on them.
15433
15434 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
15435 memory.
15436 (filter_memory_map): Likewise.
15437
d570097a
VS
154382011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15439
15440 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
15441 Reported by: nebuchadnezzar.
15442
a508e776
VS
154432011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
15446 Reported by: nebuchadnezzar.
15447
dcb883b1
VS
154482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15449
15450 Submenu default support.
15451
15452 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
15453 auto_boot. All users updated.
15454 Declared static.
15455 Handle chosen and default with submenus.
15456 (grub_menu_execute_with_fallback): Declared static.
15457 Don't notify failure if autobooted. Upper level does it.
15458 (menuentry_eq): New function.
15459 (get_entry_number): Use menuentry_eq.
15460 (show_menu): New parameter "autobooted". All users updated.
15461 (grub_show_menu): Likewise.
15462 * include/grub/normal.h (grub_show_menu): Likewise.
15463 * include/grub/menu.h (grub_menu_execute_entry): Removed.
15464 (grub_menu_execute_with_fallback): Likewise.
15465
6fef99b4
VS
154662011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * util/grub-mklayout.c (usage): Update help text.
15469
47a77af5
VS
154702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
15473
ce6bb3ee
VS
154742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15475
15476 * util/grub-menulst2cfg.c (main): Trim the line.
15477
db87be2a
VS
154782011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
15481 (grub_machine_init): Don't check amount of low memory as reportedly
15482 INT 12h can be broken and if low memory is too low we wouldn't have
15483 gotten into grub_machine_init anyway.
15484
c49849cc
VS
154852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
15488 (grub_machine_mmap_iterate): Take low memory into account
15489
b1969b30
VS
154902011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15491
15492 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
15493 badfs.
15494 Reported by: TiCPU.
15495
cf0eaf13
VS
154962011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
15499 members errors.
15500
1f060f39
GS
155012011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15502
15503 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
15504 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
15505
a21e5672
GS
155062011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15507
15508 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
15509 openbsd and netbsd types being in part_bsd module.
15510
c88172fa
VS
155112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
15514 (_FILE_OFFSET_BITS): Likewise.
15515 Reported by: Seth Goldberg.
15516
53798c4b
GS
155172011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15518
15519 * configure.ac: Check for libdevmapper header.
15520
e7121b69
VS
155212011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
15524 avoid aliasing.
15525 (fzap_lookup): Likewise.
15526 (dnode_get): Likewise.
15527 (make_mdn): Likewise.
15528 (zfs_mount): Likewise.
15529 (fzap_iterate): Use temporary pointer to avoid aliasing.
15530 (grub_zfs_read): Likewise.
15531 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
15532 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
15533 pointers to avoid aliasing.
15534 (grub_cmd_xnu_kernel64): Likewise.
15535 (grub_xnu_load_driver): Likewise.
15536
fc836af9
VS
155372011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15538
15539 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
15540 aliasing warning.
15541 (grub_cmd_terminal_output): Likewise.
15542 Reported and tested by: Grégoire Sutre.
15543
f9f37648
VS
155442011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
15547 warning.
15548 Reported and tested by: Grégoire Sutre.
15549
ec1dfd63
VS
155502011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15551
15552 * configure.ac: Do CPU substitution even if it's specified explicitly.
15553 Reported and tested by: Alain Greppin.
15554
9462775a
VS
155552011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
15558 Reported and tested by: Alain Greppin.
15559
0fd48e35
VS
155602011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 Satisfy some bison versions need for inttypes.h.
15563
15564 * grub-core/lib/posix_wrap/inttypes.h: New file.
15565 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
15566 (int16_t): Likewise.
15567 (int32_t): Likewise.
15568 (int64_t): Likewise.
15569 Reported and tested by: Alain Greppin.
15570
43f1bc83
VS
155712011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
15574 Silence spurious warning.
15575 Reported and tested by: Alain Greppin.
15576
64d1f041
SJ
155772011-01-07 Szymon Janc <szymon@janc.net.pl>
15578
15579 * docs/grub.texi (Support automatic decompression): Update with xz
15580 decompression support.
15581
25953e10
SJ
155822011-01-07 Szymon Janc <szymon@janc.net.pl>
15583
15584 Improve loaders' kernel command line handling.
15585
15586 * grub-core/lib/cmdline.c: New file.
15587 * include/grub/lib/cmdline.h: Likewise.
15588 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
15589 grub_create_loader_cmdline to create kernel command line.
15590 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15591 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
15592 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
15593 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
15594 (linux): Add lib/cmdline.c on common.
15595
e72d259f
VS
155962011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15597
15598 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
15599 inopos might be unaligned.
15600
c0cf26da
VS
156012011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
15604 endian transformations.
15605 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15606 Based on report by: Doug Nazar.
15607
0ca09e6c
DN
156082011-01-07 Doug Nazar <nazard.michi@gmail.com>
15609
15610 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
15611 array->members[i].start_sector.
15612 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
15613
014b6806
VS
156142011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
15617 Reported and tested by: Grégoire Sutre.
15618
415502c2
CW
156192011-01-06 Colin Watson <cjwatson@ubuntu.com>
15620
15621 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
15622 avoid causing test failures by clearing the screen.
15623
71b6a2b7
CW
156242011-01-06 Colin Watson <cjwatson@ubuntu.com>
15625
15626 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15627 Fix prefix check to handle the case where dir ends with a slash
15628 (most significantly, "/" itself).
15629 Reported by: Michael Vogt.
15630
b3f8d28a
VS
156312011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15632
15633 Run terminfo_cls on initing terminfo output to clear the screen and
15634 move the cursor to (0,0).
15635
15636 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
15637 Call grub_terminfo_output_init.
15638 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
15639 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
15640 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
15641
4c3e4f37
VS
156422011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
15645 only when needed.
15646
488f71f1
VS
156472011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
15650 CTRL.
15651
18a38098
VS
156522011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15653
15654 The E820 type 5 is BADRAM, not EXEC_CODE.
15655
15656 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15657 (GRUB_E820_BADRAM): New define.
15658 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
15659 into reserved. Propagate BADRAM.
15660 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15661 (GRUB_E820_BADRAM): New define.
15662
9eae2084
VS
156632011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
15666 Ignore the memory post-4G.
15667 (grub_relocator_firmware_alloc_region): Additional debug statement.
15668
ebc71d28
VS
156692011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
15672 names.
15673 Reported by: David Pravec.
15674
446fa400
VS
156752011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15676
15677 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
15678 BIOSes.
15679
a0159f37
VS
156802011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15681
15682 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
15683 Prevent overflow.
15684 (grub_reed_solomon_recover): Likewise.
15685
e5146ca1
VS
156862011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
15689
156902011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
15691
15692 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
15693 variable.
15694
5b1bdf12
CW
156952011-01-04 Colin Watson <cjwatson@ubuntu.com>
15696
15697 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
15698 descriptions of extract_legacy_entries_source and
15699 extract_legacy_entries_configfile.
15700 Reported by: Seung Soo, Ha.
15701
99d925aa
CW
157022011-01-03 Colin Watson <cjwatson@ubuntu.com>
15703
15704 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
15705 on devices that do not implement function 0.
15706
4af0504b
DV
157072011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
15708
15709 * grub-core/fs/hfsplus.c: Make parent unsigned.
15710 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
15711 overflows.
15712 (grub_hfsplus_cmp_extkey): Likewise
15713
469ee10a
VS
157142011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * util/grub-install.in: Correctly use bootloader_id and not
15717 GRUB_DISTRIBUTOR on efibootmgr line.
15718
323a8e9c
VS
157192011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
15722
1b394975
IC
157232010-12-31 Ian Campbell <ijc@hellion.org.uk>
15724
15725 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
15726 Xen and reorder menu item wording to make it clearer that this entry
15727 will launch Xen. Print separate messages when loading Xen and
15728 Linux.
15729
275bff5f
VS
157302010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
15733 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
15734 loop in case of incorrect amiga partmap.
15735
307806cb
VS
157362010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
15739 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
15740 Reported by:EHeM.
15741
b12b923e
VS
157422010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15743
15744 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
15745 spurious warning.
15746 Reported by: crocket
15747
14b48a19
VS
157482010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
15751 Preload EFIemu.
15752 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
15753
693db2df
VS
157542010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
15757 is loaded
15758 (grub_cmd_xnu_kextdir): Likewise.
15759 (grub_cmd_xnu_splash): Likewise.
15760
c7638645
VS
157612010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 Avoid using Reed-Solomon with 0 redundancy.
15764
15765 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
15766 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
15767 or 0 redundancy.
15768 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
15769 (grub_reed_solomon_recover): Likewise.
15770
25dd4780
VS
157712010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15772
15773 Don't use disk subsystem in freebsd_boot.
15774
15775 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
15776 (freebsd_biosdev): Likewise.
15777 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
15778 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
15779
0b2db943
VS
157802010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 Handling of files of unknown size is currently limited. They can't be
15783 used e.g. for initrd or modules. Moreover gzip handling of not
15784 easily seekable files is buggy. Disable unknown file size for now. May
15785 be inefficient but works.
15786
15787 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
15788 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
15789
5c408d0f
MP
157902010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
15791
15792 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
15793 floppy probe.
15794
190a011a
JD
157952010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
15796
15797 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
15798
022d01b8
SL
157992010-12-25 Shea Levy <shlevy>
15800
15801 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
15802
c4855fdc
VS
158032010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15804
15805 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
15806 Windows Server 2008.
15807 Reported by: Devin Giddings.
15808
0354b867
VS
158092010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15810
15811 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
15812 writing an error message because of async power management.
15813 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
15814 (grub_reboot): Likewise.
15815
ab66c69f
JU
158162010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
15817
15818 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
15819 keep unit tests from failing when they shouldn't.
15820
1426ef35
CW
158212010-12-21 Colin Watson <cjwatson@ubuntu.com>
15822
15823 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
15824 previous patch increased the size of the RS code by 20 bytes (at
15825 least with gcc-4.4), so increase this by 20 bytes to match.
15826 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15827
20641b6b
CW
158282010-12-21 Colin Watson <cjwatson@ubuntu.com>
15829
15830 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15831 scratch area. Make sure to initialise chosen in standalone mode as
15832 well as non-standalone.
15833 Reported by: Robert Hooker and Andy Whitcroft.
15834 Tested by: Andy Whitcroft.
15835
d060ad60
CW
158362010-12-21 Colin Watson <cjwatson@ubuntu.com>
15837
15838 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15839 constructing a new unescaped string and passing it to grub_xputs in
15840 one go, rather than passing characters to grub_printf one at a time.
15841
b889cfad
CW
158422010-12-21 Colin Watson <cjwatson@ubuntu.com>
15843
15844 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15845 initialising utf16.
15846
4e01b6c8
CW
158472010-12-21 Colin Watson <cjwatson@ubuntu.com>
15848
15849 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15850 comment. Add an extra layer of quotation, requiring the output of
15851 this function to be used in a printf format string.
15852 (gettext_printf): New function.
15853 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15854 Extract translatable strings from here-documents and use a temporary
15855 variable instead, so that xgettext can find them.
15856 * util/grub.d/10_kfreebsd.in: Likewise.
15857 * util/grub.d/10_linux.in: Likewise.
15858 * util/grub.d/20_linux_xen.in: Likewise.
15859
15860 * po/grub.d.sed: New file.
15861 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15862 arguments. Set c-format flags on all strings extracted from
15863 util/grub.d/ (xgettext refuses to include these itself for strings
15864 it extracted from a shell file, but these really are c-format).
15865
5318fe98
VS
158662010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
15869 Avoid next pointing to nowhere.
15870
6c85b743
VS
158712010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
15874 rather than assuming than rootblock is exactly in the middle.
15875 (grub_affs_label): Likewise.
15876
a2a08a35
VS
158772010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15880 reserved_first_sector to 0.
15881 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15882 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15883 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15884
7059d1ec
VS
158852010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 Fix handling of UTF-16 UDF labels.
15888
15889 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15890 (read_string): .. here.
15891 (grub_udf_label): Use read_string.
15892
30aff4cb
BC
158932010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15894
15895 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15896 editor under argument scope.
15897 Reported by: Jordan Uggla
15898
5cf86f4b
VS
158992010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15900
15901 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15902
32570200
CW
159032010-12-18 Colin Watson <cjwatson@ubuntu.com>
15904
15905 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15906 line, and other keys scroll an entire page (previous handling was
15907 for \r and \n to scroll a page and other keys to scroll two lines).
15908
e1dffcf2
VS
159092010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15910
15911 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15912 Set ptrdest to correct get_physical_target_address rather than
15913 incorrect get_virtual_current_address.
15914
b04298cf 159152010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15916
15917 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15918 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15919
5367ecd3
CW
159202010-12-10 Colin Watson <cjwatson@ubuntu.com>
15921
15922 * .bzrignore: Ignore grub-core/rs_decoder.S.
15923
1fb430f8
CW
159242010-12-10 Colin Watson <cjwatson@ubuntu.com>
15925
15926 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15927 .mo/.mo.gz opening sequence to ...
15928 (grub_mofile_open_lang): ... here.
15929 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15930 * util/grub.d/00_header.in (grub_lang): Include country part of
15931 locale.
15932 Reported by: Mario Limonciello.
15933
a94a6671
RM
159342010-12-09 Robert Millan <rmh@gnu.org>
15935
15936 * NEWS: Document addition of ZFS support.
15937
24b7938b
CW
159382010-12-04 Colin Watson <cjwatson@ubuntu.com>
15939
15940 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15941 rather than `/ 2', as the latter requires -Wa,--divide which would
15942 require bumping our minimum binutils version.
15943
bddc3ef6
BC
159442010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15945
15946 * util/grub-script-check.c (main): Print script line number on
15947 error.
15948
bf78d5b2
RM
159492010-12-01 Robert Millan <rmh@gnu.org>
15950
15951 * grub-core/fs/zfs/zfs.c: New file.
15952 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15953 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15954 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15955 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15956
15957 * include/grub/zfs/dmu.h: Likewise.
15958 * include/grub/zfs/dmu_objset.h: Likewise.
15959 * include/grub/zfs/dnode.h: Likewise.
15960 * include/grub/zfs/dsl_dataset.h: Likewise.
15961 * include/grub/zfs/dsl_dir.h: Likewise.
15962 * include/grub/zfs/sa_impl.h: Likewise.
15963 * include/grub/zfs/spa.h: Likewise.
15964 * include/grub/zfs/uberblock_impl.h: Likewise.
15965 * include/grub/zfs/vdev_impl.h: Likewise.
15966 * include/grub/zfs/zap_impl.h: Likewise.
15967 * include/grub/zfs/zap_leaf.h: Likewise.
15968 * include/grub/zfs/zfs.h: Likewise.
15969 * include/grub/zfs/zfs_acl.h: Likewise.
15970 * include/grub/zfs/zfs_znode.h: Likewise.
15971 * include/grub/zfs/zil.h: Likewise.
15972 * include/grub/zfs/zio.h: Likewise.
15973 * include/grub/zfs/zio_checksum.h: Likewise.
15974
15975 * Makefile.util.def: Build ZFS into libgrubmods.
15976 * grub-core/Makefile.core.def: Build zfs.mod.
15977
3f0f3831
SJ
159782010-11-30 Szymon Janc <szymon@janc.net.pl>
15979
15980 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15981 variable.
15982 * grub-core/commands/wildcard.c (match_files): Likewise.
15983
3a4253b2
RM
159842010-11-30 Robert Millan <rmh@gnu.org>
15985
15986 * grub-core/loader/i386/bsd.c
15987 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15988 whether kernel is loaded using grub_loader_is_loaded(), rather
15989 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15990 certain error conditions.
15991
8c317b27
RM
159922010-11-30 Robert Millan <rmh@gnu.org>
15993
c5c9cd3e
RM
15994 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15995 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15996
49d3ab46
VS
159972010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 Avoid using tricks for initialising endian variables.
16000
16001 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
16002 Make const.
16003 (GRUB_MOD_INIT): Don't byte-swap.
16004 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16005 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
16006 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
16007 (grub_swap_bytes32_compile_time): Likewise.
16008 (grub_cpu_to_le32_compile_time): Likewise.
16009 (grub_cpu_to_le16_compile_time): Likewise.
16010
f420a804
VS
160112010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * util/grub-setup.c (setup): Stop recommending --force. People who
16014 understand the dangers of blocklists are able to find this option
16015 anyway and the ones who don't shouldn't use it anyway.
16016
4e7db17b
RM
160172010-11-26 Robert Millan <rmh@gnu.org>
16018
16019 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16020 Update all users.
16021
9be57a0d
CW
160222010-11-26 Colin Watson <cjwatson@ubuntu.com>
16023
16024 Fix LVM-on-RAID probing.
16025
16026 * util/grub-probe.c (probe): Remember which disk was detected as
16027 RAID (perhaps an LVM physical volume). Use that disk's raidname
16028 rather than that of the top-level disk.
16029
2c7859b3 160302010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 16031
d7647bb6
BC
16032 Fix cmdline argument quotes for setparams command of menuentry
16033 definitions.
7e623b0d
BC
16034
16035 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16036 quotes for arguments.
f866fe80 16037 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 16038 grub_strchrsub function instead.
f866fe80 16039
7955bea0 16040 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 16041
74f72a64
CW
160422010-11-24 Colin Watson <cjwatson@ubuntu.com>
16043
16044 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16045 effort by skipping "." and ".." entries up-front.
16046 Suggested by: Michael Lazarev.
16047
5a407278
CW
160482010-11-24 Colin Watson <cjwatson@ubuntu.com>
16049
16050 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16051 ldflags to ldadd, to fix link line ordering.
16052 (none_decompress): Likewise.
16053
3030d8ec
CW
160542010-11-24 Colin Watson <cjwatson@ubuntu.com>
16055
16056 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16057 platforms.
16058 (grub-emu-lite): Remove kern/emu/cache.S.
16059
b7fbac12
CW
160602010-11-23 Colin Watson <cjwatson@ubuntu.com>
16061
16062 * util/deviceiter.c (compare_devices): If the by-id link for a
16063 device couldn't be resolved, fall back to sorting by the by-id link
16064 rather than segfaulting.
16065 Reported and tested by: Daniel Mierswa.
16066
5225f328
CW
160672010-11-23 Colin Watson <cjwatson@ubuntu.com>
16068
16069 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16070 ldflags, to fix link line ordering.
16071
038b3ce8
CW
160722010-11-23 Colin Watson <cjwatson@ubuntu.com>
16073
16074 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16075 linkers are picky about this.
16076
bf16e98e
CW
160772010-11-23 Colin Watson <cjwatson@ubuntu.com>
16078
16079 * grub-core/Makefile.am (command.lst): Adjust sed expression
16080 ordering so that extended and priority commands aren't treated as
16081 ordinary commands.
16082
7242bab6
CW
160832010-11-23 Colin Watson <cjwatson@ubuntu.com>
16084
16085 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16086 Remove byte-swapping function calls, which are not valid in
16087 structure initialisers.
16088 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16089 non-const.
16090 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16091 grub_gpt_partition_type_bios_boot.
16092
14e8b279
CW
160932010-11-22 Colin Watson <cjwatson@ubuntu.com>
16094
16095 Fix test program build on GNU/kFreeBSD.
16096
16097 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16098 $(LIBNVPAIR)' library dependencies.
16099
e6f63338 161002010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
16101
16102 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16103
cf8ffc38
CW
161042010-11-22 Colin Watson <cjwatson@ubuntu.com>
16105
16106 * util/grub-install.in: Remove excessive quoting that broke
16107 installations to RAID devices.
16108
7f8b0fd7
VS
161092010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16112 bootloader version instead of 0.
16113
dfd240b1
VS
161142010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16115
16116 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16117 warning.
16118
7b61e609
VS
161192010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16122 retrieve the metadat sector if size isn't known.
16123 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16124
9dfe92d0
RM
161252010-11-18 Robert Millan <rmh@gnu.org>
16126
16127 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16128 with grub_memcmp().
16129
41cc919e
VS
161302010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16131
16132 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16133 arrow.
16134 Reported by: Jordan Uggla.
16135
1afcc914
VS
161362010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 Make better UTF compliant.
16139
16140 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16141 sequences as incorrect.
16142 (grub_is_valid_utf8): Likewise.
16143 (grub_utf8_to_ucs4): Likewise.
16144 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16145 (grub_ucs4_to_utf8_alloc): Likewise.
16146 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16147
f1808884
VS
161482010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 Make legacy_source behave like source.
16151
16152 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16153 grub_show_menu.
16154 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16155
24ec575b
CW
161562010-11-16 Colin Watson <cjwatson@debian.org>
16157
16158 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16159 (-Wunused implies -Wunused-parameter, but not vice versa).
16160
72b7c7aa
CW
161612010-11-16 Colin Watson <cjwatson@ubuntu.com>
16162
16163 * configure.ac: Make error messages less confusing by testing for
16164 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16165 accepted, but produces a diagnostic if something else is wrong).
16166
e98937aa
VS
161672010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16170 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16171 (now unused).
16172 (grub_keyboard_controller_init)
16173 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16174 read the initial state since controller isn't inited yet.
16175
f6bbabc3
VS
161762010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16177
16178 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16179 allocate_regbeg may need to create new chunk header.
16180
22e7dbb2
VS
161812010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16182
16183 Fix quoting in legacy parser.
16184
16185 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16186 single quotes.
16187 (grub_legacy_parse): Likewise.
16188 Reported by: Jordan Uggla.
16189 Tested by: Jordan Uggla.
16190
03f80960
VS
161912010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 Don't add -lgcc on i386 and x86_64.
16194
16195 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16196 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16197 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16198
779dc15b
VS
161992010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 * configure.ac: Add -Wno-trampolines when supported.
16202
d20a3b37
MV
162032010-11-14 Modestas Vainius <modax@debian.org>
16204
16205 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16206 fakeraid.
16207
e5360933
GC
162082010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16209
16210 Add generic logical block size support for UDF.
16211
16212 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16213 (GRUB_UDF_BLKSZ): Removed.
16214 (struct grub_udf_data): New field "lbshift" to hold the logical block
16215 size of the file system in log2 format. All users updated.
16216 (sblocklist): Change type to unsigned.
16217 (grub_udf_mount): Change type of "sblklist" to unsigned.
16218 Move AVDP search before VRS recognition, because the latter requires
16219 knowledge of the logical block size, which is detected during the
16220 former.
16221 Detect and validate logical block size during AVDP search, adding
16222 support for block sizes 512, 1024 and 4096.
16223 Make VRS recognition independent of block size.
16224
cb0229c5
GC
162252010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16226
16227 Properly handle deleted files on UDF.
16228
16229 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16230 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16231 set.
16232
406858a8
GC
162332010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16234
16235 Support reading files larger than 2 GiB.
16236
16237 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16238 "offset" to grub_off_t.
16239 (grub_udf_read_file): Likewise for parameter "pos".
16240
130da6a7
VS
162412010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16244 unavailable.
16245 (Simple configuration): Refer to Changes from GRUB Legacy about
16246 save_env availability.
16247
65e93f6b
VS
162482010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16249
16250 * util/grub-install.in: Ignore empty partition table detection
16251 instead of trying to include part_ module.
16252
1fd08bf1
VS
162532010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16256 LVM on RAID support.
16257
de1a024f
VS
162582010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 Properly define WORDS_BIGENDIAN in wrapped environments.
16261
16262 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16263 definition.
16264 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16265
16266 Reported by: Manoel Rebelo Abranches.
16267 Tested by: Manoel Rebelo Abranches.
16268
bc5dd0b9
VS
162692010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16270
16271 * util/grub-mkconfig.in: Fix quoting.
16272
58c184be
VS
162732010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Support big ext2 files.
16276
16277 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16278 (grub_ext2_read_block): Support triple indirect blocks.
16279 (grub_ext2_read_file): Use 64-bit types and read size_high.
16280 (grub_ext2_open): Read size_high.
16281 Reported by: Ximin Luo.
16282 Tested by: Manoel Rebelo Abranches.
16283
5f0c02b3
VS
162842010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16285
16286 * util/grub-install.in: Handle filenames containing spaces.
16287 Reported by: Jordan Uggla.
16288 Tested by: Jordan Uggla.
16289
4417aae6
VS
162902010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16291
16292 * util/grub-mkconfig.in (grub_script_check): New variable.
16293 Use grub_script_check instead of grub-script-check.
16294 Reported by: Barry Jackson.
16295
7625a68e
VS
162962010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16297
16298 * docs/grub.texi (menu): Correct the order.
16299 Reported by: D. Hugh Redelmeier.
16300
10001ac5
VS
163012010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
16304 jump.
16305
9c4cf53b
MRA
163062010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16307
10001ac5
VS
16308 * include/grub/elfload.h (grub_elf32_size): New parameter.
16309 All users updated.
9c4cf53b
MRA
16310 Return maximum segments alignment.
16311 (grub_elf64_size): Likewise.
16312 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
16313 Return maximum segments alignment.
16314 (grub_elf64_size): Likewise.
16315 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
16316 (grub_linux_claimmap_iterate): New function. Uses the
16317 "available" property in the "memory" node for memory allocation
16318 for kernel in the PowerPC loader.
9c4cf53b
MRA
16319 (grub_linux_load32): Correctly find linux entry point offset.
16320 (grub_linux_load64): Likewise.
16321
d2bf06bf
RM
163222010-11-07 Robert Millan <rmh@gnu.org>
16323
16324 On mips-yeeloong, build with -march=loongson2f when this flag is
16325 available (GCC >= 4.4).
16326 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
16327 `-march=mips3'.
16328 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
16329 or otherwise add -march=mips3.
16330
898c99a2
BC
163312010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
16332
87220a68
BC
16333 Suppress shell expansion on echo '*' and echo "*" like cases.
16334 Reported by: Jordan Uggla.
898c99a2
BC
16335
16336 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
16337 string arguments before shell expansion.
16338 * tests/grub_cmd_echo.in: New testcases.
16339
4f9b406a
RM
163402010-11-07 Robert Millan <rmh@gnu.org>
16341
16342 * conf/mips-qemu-mips.rmk: Remove stale file from previous
16343 transition.
16344
80c6d25e
VS
163452010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
16346
16347 * grub-core/kern/emu/hostdisk.c
16348 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
16349
4a1a0153
VS
163502010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16351
16352 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
16353 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
16354 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
16355
34706ddc
VS
163562010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16357
16358 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
16359
6972dea9
VS
163602010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16361
16362 * util/grub-install.in: Replace useless recomendation to pass
16363 --modules with a recomendation to report a bug.
16364
9c693bd6
VS
163652010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 Properly register serial terminfo.
16368 Reported by: Jordan Uggla
16369
16370 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
16371 const.
16372 (grub_serial_terminfo_output_template): Likewise.
16373 (grub_cmd_serial): Register "serial" with terminfo.
16374 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
16375 grub_serial_terminfo_output.
16376
6c9e4c0c
RM
163772010-11-05 Robert Millan <rmh@gnu.org>
16378
16379 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
16380 needed).
16381
b9b3839f
RM
163822010-11-05 Robert Millan <rmh@gnu.org>
16383
16384 On Yeeloong, pass machine type information to Linux.
16385
16386 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
16387 (LOONGSON_MACHTYPE): New macro, set to
16388 "machtype=lemote-yeeloong-2f-8.9inches".
16389 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
16390 additional argument to Linux.
16391
1a3aaff4
RM
163922010-11-04 Robert Millan <rmh@gnu.org>
16393
16394 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
16395 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
16396 (its SATA disks are detected as slaveless IDE master drives on
16397 kFreeBSD).
16398 Reported by Carsten Aulbert.
16399
a75f4f62
CW
164002010-11-02 Colin Watson <cjwatson@ubuntu.com>
16401
16402 * util/bin2h.c (main): Fix spelling error in generated output.
16403
33b4b0c6
GS
164042010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
16405
16406 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
16407
2b36fbf4
VS
164082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
16411 vga= option is supplied.
16412
74aaf558
VS
164132010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
16416 * util/grub.d/10_kfreebsd.in: Likewise.
16417 * util/grub.d/10_linux.in: Likewise.
16418 * util/grub.d/20_linux_xen.in: Likewise.
16419
6428dec3
VS
164202010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16421
16422 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
16423 argument as an argument to no-argument option.
16424
f8729d98
VS
164252010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16426
16427 * util/grub.d/10_linux.in: Add missing load_video with explicit
16428 GRUB_GFXPAYLOAD_LINUX.
16429
89d68fa6
VS
164302010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16431
16432 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
16433
3a1197cd
VS
164342010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
16437 elements with invlid index.
16438 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16439 * grub-core/disk/raid.c (insert_array): Automatically reallocate
16440 members.
16441 * include/grub/raid.h (grub_raid_member): New struct.
16442 (grub_raid_array): Transform devices and start_sector into usage of
16443 grub_raid_member. All users updated
16444 (allocated_devs): New member.
16445
71574288
VS
164462010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16447
16448 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
16449 is modified
16450
8d40ec65
BC
164512010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
16452
16453 NetBSD build fix for getline function conflict from gnulib.
16454
16455 * Makefile.util.def (libgrubkern.a): New library for grub kernel
16456 components that depend on gnulib headers.
16457 (libgrubmods.a): Renamed from earlier libgrub.a.
16458 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
16459
95b9257e
VS
164602010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
16463 install rather than creating a broken install.
16464
26c53dc6
VS
164652010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * util/grub-setup.c (argp): Remove misleading example of installing to
16468 a partition.
16469
4171b3c5
VS
164702010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * util/grub-setup.c (setup): Clarify the error message.
16473
18568d18
VS
164742010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16475
16476 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
16477
4f6a2e21
VS
164782010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 * grub-core/kern/emu/misc.c
16481 (grub_make_system_path_relative_to_its_root)
16482 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
16483
164842010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
16485
16486 * grub-core/kern/emu/misc.c
16487 (grub_make_system_path_relative_to_its_root): Revert r2882.
16488
e138c458
VS
164892010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
16492 useless field head. All users updated.
16493 (free_subchunk): Correct handling of IN_REGION subchunk.
16494
0cbcdf0e
CW
164952010-10-22 Colin Watson <cjwatson@ubuntu.com>
16496
16497 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
16498 (Supported kernels): Likewise.
16499
b65ea155
GS
165002010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16501
16502 Make mktemp invocations portable.
16503
16504 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
16505 exit if mktemp fails.
16506 * tests/grub_script_blockarg.in: Likewise.
16507 * tests/partmap_test.in: Likewise.
16508 * tests/util/grub-shell-tester.in: Likewise.
16509 * tests/util/grub-shell.in: Likewise.
16510 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16511 * Makefile.am: Likewise, and chain shell commands with `&&'
16512 instead of ';'.
16513 * util/grub-mkrescue.in: Use the same explicit template as above, and
16514 exit if mktemp fails.
16515
05f43cdd
BC
165162010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
16517
16518 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
16519 Linux kernel, reported by Dennis Schridde.
16520
800e6a9b
SJ
165212010-10-17 Szymon Janc <szymon@janc.net.pl>
16522
16523 * grub-core/normal/auth.c (grub_auth_check_authentication):
16524 Set-but-not-used variable removed.
16525
d82df574
VS
165262010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 * docs/grub.texi (GNU/Linux): Document APM unavailability with
16529 32-bit linux protocol.
16530
7bced458
VS
165312010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16532
16533 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
16534 cursor shape for sanity.
16535
5b027690
VS
165362010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 * docs/grub.texi (Installation): Document buggy BIOS install.
16539
ba5f65cf
VS
165402010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16541
16542 * docs/grub.texi (Installation): Indent.
16543
fdf2ec9c
VS
165442010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 * util/grub-setup.c (setup): New parameter allow_floppy.
16547 (arguments): New member allow_floppy.
16548 (argp_parser): Handle --allow-floppy.
16549 (main): Pass allow_floppy.
16550 * util/grub-install.in: New option --allow-floppy passed though to
16551 grub-setup.
16552
861dfd4c
VS
165532010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 * util/grub-install.in: Handle partitionless disks.
16556
f77a8c24
VS
165572010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16558
16559 * util/grub-setup.c (setup): Don't clean blocklists before readability
16560 verfification.
16561
27d9ee32
VS
165622010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 * docs/grub.texi (Installation): Document embedding zone. Remove
16565 obsolete grub-install example.
16566
6bdda8f8
SJ
165672010-10-16 Szymon Janc <szymon@janc.net.pl>
16568
16569 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
16570 Set-but-not-used variable ifdef'ed.
16571 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
16572 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
16573 variable removed.
16574 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
16575 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
16576 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16577 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
16578 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
16579 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16580 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
16581 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
16582 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
16583 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
16584 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
16585 Likewise.
16586
e19b016b
VS
165872010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16588
16589 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
16590 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
16591 enum value.
16592
6c8d3002
VS
165932010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
16596 synonym to _S5_. Needed for some DSDTs.
16597
c32b51c9
VS
165982010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16599
16600 Userspace ACPI parser debugging.
16601
16602 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
16603 headers and add relevant defines. Don't include standard headers.
16604 (main) [GRUB_DSDT_TEST]: New function.
16605 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
16606 Don't declare functions.
16607
fbfbeb39
VS
166082010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16609
16610 Remove dead grub_efi_mm_fini.
16611
16612 * grub-core/kern/efi/mm.c (allocated_page): Removed.
16613 (ALLOCATED_PAGES_SIZE): Likewise.
16614 (MAX_ALLOCATED_PAGES): Likewise.
16615 (allocated_pages): Likewise.
16616 (grub_efi_allocate_pages): Don't record allocated pages.
16617 (grub_efi_free_pages): Likewise.
16618 (grub_efi_mm_init): Likewise.
16619 (grub_efi_mm_fini): Removed.
16620
65f7ed7c
VS
166212010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
16624 (grub_efi_mm_init): Take into account the memory map size increase.
16625
24977b44
VS
166262010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
16629 (serial_hw_put): Wait based on real time rather than port reads. Don't
16630 roken ports.
16631 * include/grub/serial.h (grub_serial_port): New field broken.
16632
1eb01cd2
RM
166332010-10-16 Robert Millan <rmh@gnu.org>
16634
16635 * grub-core/kern/emu/misc.c
16636 (grub_make_system_path_relative_to_its_root): Fix premature return
16637 when processing non-root ZFS filesystems.
5f8b440b 16638 Reported by Sergio Talens-Oliag.
1eb01cd2 16639
2d5fed60
RM
166402010-10-15 Robert Millan <rmh@gnu.org>
16641
16642 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
16643 guarantee compressed ones are processed first.
16644
d0f4c1ea
VS
166452010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16646
16647 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
16648 grub_efiemu_autocore.
16649
d87c681f
VS
166502010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
16653 rather than 0x1b.
16654 (grub_console_getkey): Use correct jae opcode rather than ja.
16655
219b3564
RM
166562010-10-12 Robert Millan <rmh@gnu.org>
16657
16658 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
16659 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
16660 variable. All references updated.
16661
16662 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
16663
20c6bb7e
VS
166642010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 Correctly distinguish mdraid flavours.
16667
16668 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
16669 (insert_array): New argument raid.
16670 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
16671 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
16672 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
16673
74baff84
VS
166742010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
16675
16676 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
16677 handling of special keys.
16678
3ef068df 166792010-10-02 Aleš Nesrsta <starous@volny.cz>
16680
c7980ad9
VS
16681 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
16682 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 16683
a9455194 166842010-10-02 Aleš Nesrsta <starous@volny.cz>
16685
c7980ad9
VS
16686 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
16687 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
16688 users updated.
a9455194 16689 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 16690 Use right endpoint when querying descriptor.
a9455194 16691
441cfe65
VS
166922010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 Clear out 0x80 color bit on EFI.
16695 Tested by: decoder
16696 Reported by: decoder and meta tech.
16697
16698 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
16699 (grub_console_setcolorstate): Clear out 0x80 bit.
16700 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
16701 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
16702 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
16703
bf26bcc4
VS
167042010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
16707 Set to "auto".
16708
6e3c515d
VS
167092010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16710
16711 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
16712 mo_file after freeing.
16713
e6d983ba
VS
167142010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16715
16716 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
16717
74ccb5b5
VS
167182010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16719
16720 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
16721 flags.
16722
17821956
VS
167232010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16724
16725 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
16726 usage.
16727
ee74fa48
VS
167282010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16729
16730 Put terminfo into core on ieee1275 and yeeloong (needed for console).
16731
16732 * gentpl.py: New groups terminfoinkernel and terminfomodule.
16733 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
16734 and terminfo.h when needed.
16735 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
16736 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
16737 (terminfo): Enable only on terminfokernel.
16738 (extcmd): Likewise.
16739 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
16740 * include/grub/lib/arg.h: Likewise.
16741 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
16742 incorrect usage of ->.
16743
aa438e68
VS
167442010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16745
16746 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
16747 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
16748
57994012
VS
167492010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 Fix coreboot compilation.
16752
16753 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16754 Take VBE info into account even if only text is supported.
16755 (fill_vbe_info): Take into account the case when only VGA text
16756 is supported.
16757 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
16758 on coreboot, multiboot and qemu.
16759
2a406611
VS
167602010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16761
16762 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
16763 debug messages.
16764 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
16765
d33613fc
VS
167662010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
16769 parameters.
16770
44a1b432
VS
167712010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
16774 if they were BSD-style.
16775
edde54e6
VS
167762010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16777
16778 * grub-core/boot/i386/pc/lnxboot.S: Replace
16779 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
16780 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
16781
b65830fa
VS
167822010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16783
16784 Write embedding zone using Reed-Solomon.
16785
16786 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
16787 * grub-core/Makefile.am (rs_decoder.S): New target.
16788 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
16789 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
16790 (multiboot): Move to RS part.
16791 (post_reed_solomon): New label.
16792 (grub_boot_drive): Move to non-RS part since it's modified in memory
16793 on boot.
16794 Include rs_decoder.S.
16795 * grub-core/lib/reed_solomon.c: New file.
16796 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
16797 New definition.
16798 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
16799 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
16800 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
16801 * include/grub/partition.h (grub_partition_map): Change prototype of
16802 embed to allow returning additional sectors.
16803 * include/grub/reed_solomon.h: New file.
16804 * util/grub-setup.c (setup): Handle Reed-Solomon.
16805
0b4b227f
CW
168062010-09-28 Colin Watson <cjwatson@ubuntu.com>
16807
16808 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16809 i386 and x86-64 definedness tests.
16810
f772623b
YB
168112010-09-27 Yves Blusseau <blusseau@zetam.org>
16812
16813 Fix generation of kernel_syms.lst
16814
16815 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
16816 ASM_PREFIX
16817
8e57a6ca
RM
168182010-09-26 Robert Millan <rmh@gnu.org>
16819
16820 Support degraded ZFS arrays in "grub-probe -t device" resolution.
16821
16822 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
16823 the pool is an array of devices, iterate through it and return the
16824 first device that passes a stat() test (instead of blindly returning
16825 the first one).
16826
f9130836
RM
168272010-09-26 Robert Millan <rmh@gnu.org>
16828
16829 Build fixes for GNU/kFreeBSD.
16830
16831 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16832 to programs that require ZFS conversion.
16833 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16834 kernels that don't have FLOPPY_MAJOR.
16835
96510faf
BC
168362010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16837
16838 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16839
449333eb
BC
168402010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16841
16842 Fix grub-emu build.
16843
16844 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16845 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16846 mdraid09 and mdraid1x.
16847
e1fd1939
CW
168482010-09-24 Colin Watson <cjwatson@ubuntu.com>
16849
16850 Re-enable grub-extras.
16851
16852 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16853 avoid confusing Automake. Run autogen only twice, once for the top
16854 level and once for grub-core. Add Makefile.util.def and
16855 Makefile.core.def from extra modules to the appropriate autogen
16856 invocations. If Makefile.common exists in an extra module, include
16857 it in both Makefile.util.am and grub-core/Makefile.core.am;
16858 similarly, include any Makefile.util.common file in Makefile.util.am
16859 and any Makefile.core.common file in grub-core/Makefile.core.am.
16860 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16861 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16862 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
16863 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
16864
16865 * gentpl.py (gvar_add): Turn GVARS into a set.
16866 (global_variable_initializers): Sort global variables on output.
16867 (vars_init): New function.
16868 (first_time): Likewise.
16869 (library): Ensure that non-global variable initialisations are
16870 emitted before the first time we emit code for a library block.
16871 Append to variables rather than setting them. Only emit
16872 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
16873 each conditional path.
16874 (program): installdir() emits an Autogen macro, so must be passed to
16875 var_add rather than gvar_add.
16876 (data): Likewise.
16877 (script): Likewise.
16878 (rules): New function, centralising handling for different target
16879 types. Set up Guile association lists for first_time and vars_init,
16880 and send most output to a diversion so that variable initialisations
16881 can be emitted first.
16882 (module_rules): Use new rules function.
16883 (kernel_rules): Likewise.
16884 (image_rules): Likewise.
16885 (library_rules): Likewise.
16886 (program_rules): Likewise.
16887 (script_rules): Likewise.
16888 (data_rules): Likewise.
16889
16890 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16891
16892 * .bzrignore: Add contrib and grub-core/contrib. Remove
16893 grub-core/Makefile.gcry.am.
16894
1d12cf29
YB
168952010-09-24 Yves Blusseau <blusseau@zetam.org>
16896
16897 * grub-core/lib/LzFind.c: Add missing include.
16898 * grub-core/lib/LzmaEnc.c: Likewise.
16899 * grub-core/script/lexer.c: Likewise.
16900 * grub-core/script/yylex.l: Likewise.
16901 * util/grub-macho2img.c: Likewise.
16902 * util/grub-menulst2cfg.c: Likewise.
16903 * util/grub-mklayout.c: Likewise.
16904 * util/grub-mkpasswd-pbkdf2.c
16905 * util/grub-mkrelpath.c: Likewise.
16906 * util/resolve.c: Likewise.
16907
dd363028
BC
169082010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16909
16910 * Makefile.util.def (example_unit_test): Add
16911 grub-core/gnulib/libgnu.a.
16912
f5a109e2
GS
169132010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16914
16915 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16916
6d0fa83c
VS
169172010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16918
16919 Support xz compression on yeeloong.
16920
16921 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16922 * configure.ac: Check for LZMA.
16923 * grub-core/Makefile.core.def (xz_decompress): New target.
16924 (none_decompress): Likewise.
16925 * grub-core/boot/decompressor/minilib.c: New file.
16926 * grub-core/boot/decompressor/none.c: Likewise.
16927 * grub-core/boot/decompressor/xz.c: Likewise.
16928 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16929 * grub-core/kern/mips/cache_flush.S: Likewise.
16930 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16931 * grub-core/kern/mips/startup.S: Move first stage to ...
16932 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16933 nomacro.
16934 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16935 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16936 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16937 Allocate statically.
16938 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16939 Allocate statically or use scratch. Don't check CRC32.
16940 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16941 Allocate statically. Don't check CRC32.
16942 * include/grub/decompressor.h: New file.
16943 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16944 Removed.
16945 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16946 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16947 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16948 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16949 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16950 * util/grub-mkimage.c (grub_compression_t): New type.
16951 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16952 (image_target_desc): New field default_compression.
16953 (image_targets): Adjust yeeloong targets.
16954 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16955 (compress_kernel): New parameter comp.
16956 (generate_image): Likewise. Handle new compression case.
16957 (options): New option --compression
16958 (help): Likewise.
16959 (main): Handle new option.
16960
1b655af6
GS
169612010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16962
16963 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16964
8f03f0b5
CW
169652010-09-22 Colin Watson <cjwatson@ubuntu.com>
16966
16967 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16968 typo in __i386__ conditional.
16969
7835dfd3
VS
169702010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16973 include.
16974
e255597e
VS
169752010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16976
6d0fa83c 16977 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16978
16979 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16980 new tags as supported.
16981 (acpiv2_size): New function.
16982 (grub_multiboot_get_mbi_size): Take new tags into account.
16983 (grub_multiboot_make_mbi): Add new tags.
16984 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16985
6cc14051 169862010-09-21 Aleš Nesrsta <starous@volny.cz>
16987
16988 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16989 Added missing configuration of USB device.
16990
df7769d8
CW
169912010-09-21 Colin Watson <cjwatson@ubuntu.com>
16992
16993 * grub-core/normal/menu_entry.c (run): Make sure we always return
16994 a value.
16995
b031012d
CW
169962010-09-21 Colin Watson <cjwatson@ubuntu.com>
16997
16998 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16999 NumberOfPages is UINT64 according to the UEFI specification, not
17000 UINTN. Fix printf format.
17001
174de8f3
CW
170022010-09-21 Colin Watson <cjwatson@ubuntu.com>
17003
17004 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
17005 `err' to grub_usb_err_t.
17006 Reported and tested by: KESHAV P.R.
17007
d7dbe923
CW
170082010-09-21 Colin Watson <cjwatson@ubuntu.com>
17009
17010 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
17011 tpart non-const, so that we can assign to it. (Since this is a
17012 typedef, the constness refers to the pointer rather than what it
17013 points to.)
17014
8d5e2af3
CW
170152010-09-21 Colin Watson <cjwatson@ubuntu.com>
17016
17017 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17018 $(top_srcdir)/grub-core/gnulib as well as
17019 $(top_builddir)/grub-core/gnulib.
17020 Reported by: KESHAV P.R.
17021
5c527783
CW
170222010-09-21 Colin Watson <cjwatson@ubuntu.com>
17023
17024 * util/grub-install.in: Fix the bootloader ID option to be
17025 consistently --bootloader-id, not --bootloader_id.
17026 Reported by: KESHAV P.R.
17027
d309a16e
CW
170282010-09-21 Colin Watson <cjwatson@ubuntu.com>
17029
17030 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17031 check hash checksum." consistently translatable.
17032
b830cd16
YB
170332010-09-21 Yves Blusseau <blusseau@zetam.org>
17034
17035 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17036 $(top_builddir).
17037
c4fe27a8
CW
170382010-09-21 Colin Watson <cjwatson@ubuntu.com>
17039
17040 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17041 (GRUB_MOD_INIT): Register sha1sum command.
17042 (GRUB_MOD_FINI): Unregister sha1sum command.
17043
a4c1d277
YB
170442010-09-21 Yves Blusseau <blusseau@zetam.org>
17045
17046 Keep boot and grub directory names in sync with utils scripts
17047
17048 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17049 * config.h.in: Add previous macros.
17050 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17051 * util/grub-install.in: Use $bootdir and $grubdir variables.
17052
4eff79d2
CW
170532010-09-21 Colin Watson <cjwatson@ubuntu.com>
17054
17055 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17056 convert partition names to disk names if the new `convert' parameter
17057 is set.
17058 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17059 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17060 disk in its own right. This can happen with Xen disk images.
17061
934d7e44
YB
170622010-09-21 Yves Blusseau <blusseau@zetam.org>
17063
17064 * util/grub-editenv.c: Update strings to avoid warnings when generating
17065 grub.pot file.
17066 * util/grub-setup.c: Likewise.
934d7e44 17067
df3367cc
VS
170682010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 * configure.ac: Change version to 1.99~beta0.
17071
77a94e98
VS
170722010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17075 Add BADRAM.
17076 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17077 Likewise.
17078 * include/multiboot.h: Resynced with specification.
17079 * include/multiboot2.h: Likewise.
17080
269004c1
CW
170812010-09-21 Colin Watson <cjwatson@ubuntu.com>
17082
17083 Fix po directory handling.
17084
17085 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17086 * grub-core/gnulib/Makefile.am: Import gettext module.
17087 * m4/gnulib-cache.m4: Likewise.
17088 * m4/gnulib-comp.m4: Likewise.
17089 * m4/gettext.m4: New file, from gnulib.
17090 * m4/glibc2.m4: Likewise.
17091 * m4/iconv.m4: Likewise.
17092 * m4/intdiv0.m4: Likewise.
17093 * m4/intl.m4: Likewise.
17094 * m4/intldir.m4: Likewise.
17095 * m4/intlmacosx.m4: Likewise.
17096 * m4/intmax.m4: Likewise.
17097 * m4/inttypes-pri.m4: Likewise.
17098 * m4/lcmessage.m4: Likewise.
17099 * m4/lib-ld.m4: Likewise.
17100 * m4/lib-link.m4: Likewise.
17101 * m4/lib-prefix.m4: Likewise.
17102 * m4/lock.m4: Likewise.
17103 * m4/nls.m4: Likewise.
17104 * m4/po.m4: Likewise.
17105 * m4/printf-posix.m4: Likewise.
17106 * m4/progtest.m4: Likewise.
17107 * m4/threadlib.m4: Likewise.
17108 * m4/uintmax_t.m4: Likewise.
17109 * m4/visibility.m4: Likewise.
17110 * po/Makefile.am: Remove.
17111 * po/Makefile.in.in: New file, from gettext.
17112 ($(DOMAIN).pot-update): Support POTFILES-shell.
17113 * po/Makevars: New file.
17114 * po/POTFILES-shell: Rename to ...
17115 * po/POTFILES-shell.in: ... this. Update.
17116 * po/POTFILES: Rename to ...
17117 * po/POTFILES.in: ... this. Update.
17118 * po/Rules-quot: New file, from gettext.
17119 * po/boldquot.sed: Likewise.
17120 * po/en@boldquot.header: Likewise.
17121 * po/en@quot.header: Likewise.
17122 * po/insert-header.sin: Likewise.
17123 * po/quot.sed: Likewise.
17124 * po/remove-potcdate.sin: Likewise.
17125
3e0fa5d0
VS
171262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17127
17128 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17129
ade9bd66
VS
171302010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17131
17132 * util/grub.d/20_linux_xen.in: Use submenus.
17133
fc55cc4c
VS
171342010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17135
17136 Support submenus.
17137
17138 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17139 parameter submenu. All users updated.
17140 * grub-core/normal/main.c (free_menu): Rename to ...
17141 (grub_normal_free_menu): ... this. Made global.
17142 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17143 if requested.
17144 * grub-core/normal/menu_entry.c (screen): New field submenu.
17145 (make_screen): Set submenu.
17146 (run): Open new context if requested.
17147 * include/grub/menu.h (grub_menu_entry): New field submenu.
17148 * include/grub/normal.h (grub_normal_free_menu): New proto.
17149
600cedf7
VS
171502010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 Menu entries extractor.
17153
17154 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17155 variants.
17156 (GRUB_MOD_INIT): Register new variants.
17157 (GRUB_MOD_FINI): Unregister new variants.
17158 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17159 into grub_cmd_legacy_source.
17160 (grub_cmd_legacy_source): Implement extractor variants.
17161 (GRUB_MOD_INIT): Register new variants.
17162 (GRUB_MOD_FINI): Unregister new variants.
17163 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17164 as an extractor.
17165 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17166 search as an extractor.
17167 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17168 test as an extractor.
17169 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17170 as an extractor.
17171 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17172 (grub_env_new_context): New function.
17173 (grub_env_context_open): Likewise.
17174 (grub_env_extractor_open): Likewise.
17175 (grub_env_extractor_close): Likewise.
17176 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17177 grub_extractor_level.
17178 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17179 * include/grub/env.h (grub_env_extractor_open): New proto.
17180 (grub_env_extractor_close): Likewise.
17181 * include/grub/normal.h (grub_extractor_level): New external variable.
17182
7bda3a87
VS
171832010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 Make cutmem accept a region specification.
17186 Suggested by: Samuel Thibault
17187
17188 * grub-core/mmap/mmap.c (parsemem): New function.
17189 (grub_cmd_cutmem): Handle new arguments.
17190
2ea57f88
VS
171912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17192
17193 New command cutmem.
17194
17195 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17196 (GRUB_MOD_INIT): Register new command.
17197 (GRUB_MOD_FINI): Unregister new command.
17198
74342e31
VS
171992010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 Support some annoying BSD and Minix subpartitions.
17202
17203 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17204 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17205 Properly handle concatenation.
17206 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17207 * grub-core/normal/completion.c (iterate_partition): Likewise.
17208 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17209 contain partition. All users updated.
17210 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17211 struct.
17212 (grub_openbsdlabel_partition_map): Likewise.
17213 (bsdlabel_partition_map_iterate): Rename to ..
17214 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17215 (bsdlabel_partition_map_iterate): New function.
17216 (netopenbsdlabel_partition_map_iterate): Likewise.
17217 (netbsdlabel_partition_map_iterate): Likewise.
17218 (openbsdlabel_partition_map_iterate): Likewise.
17219 (GRUB_MOD_INIT): Register new partmaps.
17220 (GRUB_MOD_FINI): Unregister new partmaps.
17221 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17222 (grub_partition_msdos_iterate): ... this. All users updated.
17223 Don't support embedding other than in a minix partition.
17224 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17225 proto.
17226 * include/grub/partition.h (grub_partition): New field msdostype.
17227 * util/grub-install.in: Handle openbsd and netbsd types being in
17228 part_bsd module.
17229
1e8d555b
VS
172302010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17231
17232 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17233
17234 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17235 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17236 (mdraid09): ... this.
17237 (mdraid1x): New module.
17238 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17239 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17240
899d8af4
VS
172412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17244 vsprintf.
17245
40901acd
CW
172462010-09-20 Colin Watson <cjwatson@ubuntu.com>
17247
17248 * grub-core/commands/efi/lsefimmap.c: Correct header.
17249 * NEWS: Update.
17250
dfe3b247
CW
172512010-09-20 Colin Watson <cjwatson@ubuntu.com>
17252
17253 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17254 as printf format strings; the translations might contain '%' which
17255 could cause a crash.
17256 (main): Likewise.
17257 * util/grub-fstest.c (argp_parser): Likewise.
17258 * util/grub-setup.c (argp_parser): Likewise.
17259 (main): Likewise.
17260
3286a4b4
VS
172612010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17262
17263 Use argp in grub-fstest.
17264
17265 * util/grub-fstest.c: Don't include getopt.h.
17266 Include argp.h.
17267 (root): New variable.
17268 (args_count): Likewise.
17269 (nparm): Likewise.
17270 (num_disks): Likewise.
17271 (images): Likewise.
17272 (cmd): Likewise.
17273 (debug_str): Likewise.
17274 (args): Likewise.
17275 (options): Transformed to argp.
17276 (usage): Removed.
17277 (main): Split argument parsing into ...
17278 (argp_parser): ... this. Changed to argp format.
17279 (argp): New variable.
17280 (main): Use argp_parse.
17281
3dccbe4b
TG
172822010-09-20 Tristan Gingold <gingold@free.fr>
172832010-09-20 Robert Millan <rmh.grub@aybabtu.com>
172842010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * grub-core/commands/efi/lsefimmap.c: New file.
17287 * grub-core/Makefile.core.def (lsefimmap): New module.
17288 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17289
38c259a7
VS
172902010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 Pause the execution (10s max) if any errors are displayed so the user
17293 has a chance to see them.
17294
17295 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17296 (grub_print_error): Increment grub_err_printed_errors.
17297 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17298 execution if any errors were displayed.
17299 (show_menu): Remove old code for pause.
17300 * grub-core/normal/menu_entry.c (run): Likewise.
17301 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17302 users updated.
17303 (grub_normal_get_char_counter): Likewise.
17304 * include/grub/err.h (grub_err_printed_errors): New external variable.
17305 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
17306
f218b09c
VS
173072010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17308
17309 Support multiboot VBE info.
17310
17311 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17312 Take VBE info into account.
17313 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
17314 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17315 Call fill_vbe_info when appropriate.
17316 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
17317 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
17318 as supported.
17319 (grub_multiboot_get_mbi_size): Take new tags into account.
17320 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
17321 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17322 Call fill_vbe_tag when appropriate.
17323 (grub_multiboot_make_mbi): Properly align tags.
17324 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
17325 function.
17326 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
17327 proto.
17328 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
17329
a9cc5438
VS
173302010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 Suport manual terminal geometry specification.
17333
17334 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
17335 Save state in grub_ofconsole_terminfo_output.
17336 (grub_ofconsole_term): Use grub_terminfo_getwh.
17337 (grub_ofconsole_getwh): Removed.
17338 * grub-core/term/serial.c (grub_serial_getwh): Removed.
17339 (grub_serial_term): Use grub_terminfo_getwh.
17340 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
17341 (options): New struct.
17342 (OPTION_*): New enum.
17343 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
17344 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
17345 width and height.
17346 (grub_terminfo_getwh): New proto.
17347 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
17348
1a8fed20
VS
173492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 Handle legacy "terminal" command.
17352
17353 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
17354 and FLAG_TERMINAL.
17355 (legacy_commands): Add terminal and title.
17356 (grub_legacy_parse): Handle terminal. Simplify title handling.
17357
41e9c57d
VS
173582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
17361 parameters overflow.
17362
61c874c5
CW
173632010-09-20 Colin Watson <cjwatson@ubuntu.com>
17364
17365 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
17366 widthspec.h.
17367
17368 * docs/grub.texi (Shell-like scripting): Document `!'.
17369 (Network): Simplify using new i386-pc-pxe format. Mention
17370 grub-mknetdir.
17371
17372 * NEWS: Update.
17373
943682b4
CW
173742010-09-20 Colin Watson <cjwatson@ubuntu.com>
17375
17376 * Makefile.am (SUBDIRS): Restore "."; it's important to force
17377 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
17378 when needed.
17379
6d3d698d
CW
173802010-09-20 Colin Watson <cjwatson@ubuntu.com>
17381
17382 * grub-core/commands/efi/lsefisystab.c: Correct header.
17383 * grub-core/commands/efi/lssal.c: Likewise.
17384 * grub-core/commands/testload.c: Likewise.
17385
c982589f
CW
173862010-09-20 Colin Watson <cjwatson@ubuntu.com>
17387
17388 * util/grub-mkrescue.in: Add explicit root argument to --set to
17389 prevent the UUID being interpreted as an argument to --set (matches
17390 previous change to prepare_grub_to_access_device).
17391
a63c31b6
CW
173922010-09-20 Colin Watson <cjwatson@ubuntu.com>
17393
17394 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
17395 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
17396 the verbosity of later #ifs.
17397 (find_partition_start): Define this function on FreeBSD too.
17398 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
17399 function.
17400 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
17401 on FreeBSD.
17402
6439b8ee
YB
174032010-09-20 Yves Blusseau <blusseau@zetam.org>
17404
17405 * util/grub-editenv.c: Use argp instead of getopt.
17406
c5930ec8
YB
174072010-09-20 Yves Blusseau <blusseau@zetam.org>
17408
17409 * util/grub-setup.c: Use argp instead of getopt.
17410
15c69261
YB
174112010-09-20 Yves Blusseau <blusseau@zetam.org>
17412
17413 Use gnulib-tool to create gnulib source files.
17414
17415 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
17416 grub-core/gnulib directories
17417 * .bzignore: Add **/.deps and autogenerated gnulib files
17418 * configure.ac: Assign auxiliary directory to build-aux, add invocation
17419 of gnulib macros, add grub-core/gnulib/Makefile
17420 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
17421 include m4 directory to aclocal.
17422 * Makefile.util.def: Remove direct compilation of gnulib source files
17423 and use the new grub-core/gnulib/libgnu.a.
17424 * build-aux/config.rpath: move config.rpath from top directory to
17425 build-aux
17426 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
17427 in gnulib headers
17428 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
17429 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
17430 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
17431 header.
17432 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
17433 string.
17434
e511c9f5
YB
174352010-09-20 Yves Blusseau <blusseau@zetam.org>
17436
17437 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
17438 grub-core/genmod.sh and grub-core/gensyminfo.sh
17439
c2dede05
BC
174402010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
17441
17442 Add a test for echo command options.
17443
17444 * tests/grub_cmd_echo.in: New test.
17445 * Makefile.util.def: Rules for new test.
17446
c55f5018
SJ
174472010-09-20 Szymon Janc <szymon@janc.net.pl>
17448
17449 Remove crc.mod and move crc command to hashsum.mod.
17450 Remove lib/crc.c - users updated to use gcrypt implementation.
17451
17452 * grub-core/commands/crc.c: Removed.
17453 * grub-core/Makefile.core.def (crc): Module removed.
17454 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
17455 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
17456 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
17457 * grub-core/lib/crc.c: Removed.
17458 * include/grub/lib/crc.h: Removed.
17459 * Makefile.util.def (crc): Remove lib/crc.c
17460 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
17461 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
17462 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
17463 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
17464 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
17465 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
17466
e0337366
VS
174672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17468
17469 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
17470
742f9232
VS
174712010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 Split config.h for util and core.
17474
17475 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
17476 (ADDR32): Likewise.
17477 (DATA32): Likewise.
17478 (BSS_START_SYMBOL): Likewise.
17479 (END_SYMBOL): Likewise.
17480 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
17481 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
17482 * config.h.in: New file.
17483 * configure.ac: Use config-util.h as config define file.
17484 Rename MACHINE into GRUB_MACHINE. All users updated.
17485 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
17486 updated.
17487 (NESTED_FUNC_ATTR): Likewise.
17488 Substitue new variables.
17489 (COND_HAVE_ASM_USCORE): New conditional.
17490 * grub-core/Makefile.am (ASM_PREFIX): New variable.
17491 (kernel_syms.lst): Use ASM_PREFIX.
17492 * grub-core/kern/emu/console.c: Include config-util.h.
17493 * grub-core/kern/emu/misc.c: Likewise.
17494 * grub-core/kern/emu/mm.c: Likewise.
17495 * include/grub/emu/misc.h: Likewise.
17496 * include/grub/libgcc.h: Likewise.
17497
39feb0e8
VS
174982010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17499
17500 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
17501 constants usage.
17502 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
17503 Fix GRUB_TERM_KEY_* constants usage.
17504 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
17505
9af6dac3
VS
175062010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17507
17508 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
17509 print pointer.
17510 * grub-core/bus/usb/uhci.c: Remove empty define.
17511 (grub_uhci_check_transfer): Add missing cast.
17512 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
17513 print pointer.
17514 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
17515 PRIuGRUB_SIZE.
17516 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
17517
d6d94820
VS
175182010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 * grub-core/Makefile.core.def (legacycfg): Add
17521 lib/i386/pc/vesa_modes_table.c on emu.
17522
3572f2b6
BC
175232010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17524
17525 Reduce number of temporary files generated by build system.
17526
17527 * grub-core/gencmdlist.sh: Removed.
17528 * grub-core/genfslist.sh: Removed.
17529 * grub-core/genhandlerlist.sh: Removed.
17530 * grub-core/genmodsrc.sh: Removed.
17531 * grub-core/genpartmaplist.sh: Removed.
17532 * grub-core/genparttoollist.sh: Removed.
17533 * grub-core/gentermiinallist.sh: Removed.
17534 * grub-core/genvideolist.sh: Removed.
17535
17536 * grub-core/genmod.sh.in: New file.
17537 * grub-core/gensyminfo.sh.in: New file.
17538
17539 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
17540 * conf/Makefile.extra-dist: Update with new files.
17541 * gentpl.py: Remove rules related to unnecessary temporary files.
17542 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
17543 and und-* files.
17544 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
17545 genmod.sh scripts.
17546 * grub-core/bus/usb/uhci.c: Remove empty #define.
17547 * grub-core/genmoddep.awk: Updated with new syminfo format.
17548 * util/bash-completion.d/Makefile.am: Add config.log to
17549 CLEANFILES.
17550
c836b030
YB
175512010-09-19 Yves Blusseau <blusseau@zetam.org>
17552
17553 * Makefile.util.def: Add forgotten $(LIBINTL) library.
17554
2f4e8053
BC
175552010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17556
17557 * util/grub-mkconfig.in: Check the config script for syntax errors
17558 before saving.
17559
75831c34
CW
175602010-09-19 Colin Watson <cjwatson@ubuntu.com>
175612010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17562
17563 * Makefile.util.def (grub-install): Use util/grub-install.in on all
17564 platforms.
17565 * util/grub-install.in: Add EFI and IEEE1275 support.
17566 * util/i386/efi/grub-install.in: Removed.
17567 * util/ieee1275/grub-install.in: Likewise.
17568
eaf41b25
VS
175692010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17570
17571 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
17572 (grub_cmd_cmosclean): Likewise.
17573 (GRUB_MOD_INIT): Register command cmosclean.
17574 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
17575 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
17576
1a9130dd
CPE
175772010-09-18 Carles Pina i Estany <carles@pina.cat>
175782010-09-18 Aleš Nesrsta <starous@volny.cz>
175792010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17580
17581 Add keyboard layouts support.
17582
17583 * Makefile.util.def (grub-mklayout): New file.
17584 (grub-kbdcomp): New script.
17585 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
17586 Add keyboard_layouts.h.
17587 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
17588 commands/boot.c on yeeloong.
17589 (keylayouts): New module.
17590 * grub-core/bus/usb/ohci.c
17591 * grub-core/bus/usb/uhci.c
17592 * grub-core/bus/usb/usbhub.c (rescan): New variable.
17593 (grub_usb_add_hub): Poll interrupt pipe for device handling.
17594 (attach_root_port): Likewise.
17595 (poll_nonroot_hub): Likewise.
17596 (grub_usb_poll_devices): Likewise.
17597 (detach_device): Close transfer.
17598 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
17599 function.
17600 (grub_usb_bulk_setup_readwrite): Likewise.
17601 (grub_usb_bulk_finish_readwrite): Likewise.
17602 * grub-core/commands/keylayouts.c: New file.
17603 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
17604 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
17605 aliases.
17606 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
17607 support scancode 2.
17608 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
17609 * include/grub/keyboard_layouts.h: New file.
17610 * util/grub-mklayout.c: New file.
17611 * util/grub-kbdcomp.in: Likewise.
17612
a1d84a5e
VS
176132010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17614
17615 Unify memory types.
17616
17617 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
17618 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
17619 types.
17620 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
17621 (grub_upper_mem): Likewise.
17622 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
17623 * include/grub/memory.h (grub_memory_type_t): New enum.
17624 All users updated.
17625
9696382e
VS
176262010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17627
17628 * grub-core/Makefile.core.def (lsapm): New module.
17629 * grub-core/commands/i386/pc/lsapm.c: New file.
17630 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
17631 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
17632 Likewise.
17633 * include/grub/i386/pc/apm.h: New file.
17634 * include/multiboot.h (multiboot_apm_info): New struct.
17635
176362010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 GRUB-legacy configuration file support.
17639
17640 * Makefile.util.def (grub-menulst2cfg): New util.
17641 * docs/man/grub-menulst2cfg.h2m: New file.
17642 * grub-core/Makefile.core.def (legacycfg): New module.
17643 * grub-core/commands/legacycfg.c: New file.
17644 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
17645 (grub_normal_add_menu_entry): ... this.
17646 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
17647 (grub_normal_set_password): ...this.
17648 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
17649 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
17650 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
17651 * grub-core/lib/legacy_parse.c: New file.
17652 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
17653 * include/grub/i386/pc/vesa_modes_table.h: New file.
17654 * include/grub/legacy_parse.h: Likewise.
17655 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
17656 * util/grub-menulst2cfg.c: New file.
17657
bf8d1338
CW
176582010-09-17 Colin Watson <cjwatson@ubuntu.com>
17659
17660 * grub-core/kern/emu/hostdisk.c
17661 (convert_system_partition_to_system_disk): Initialise node.
17662
9c0bad2e
CW
176632010-09-17 Colin Watson <cjwatson@ubuntu.com>
17664
17665 * grub-core/kern/emu/hostdisk.c
17666 (convert_system_partition_to_system_disk): Fix devmapper memory pool
17667 leak.
17668 Reported and based on patch by: Modestas Vainius.
17669
a939d135
CW
176702010-09-17 Colin Watson <cjwatson@ubuntu.com>
17671
17672 Fix DM-RAID probing with recent versions of device-mapper udev
17673 rules.
17674
17675 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
17676 canonicalise device paths under /dev/mapper/.
17677 (convert_system_partition_to_system_disk): Compare the
17678 uncanonicalised path to /dev/mapper/ rather than the canonicalised
17679 path, since device nodes under /dev/mapper/ are often symlinks.
17680
0f7ee3c9
YB
176812010-09-17 Yves Blusseau <blusseau@zetam.org>
17682
17683 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
17684
10854d0d
YB
176852010-09-16 Yves Blusseau <blusseau@zetam.org>
17686
17687 * configure.ac: Avoid some annoying error messages if freetype-config
17688 program is not found.
17689
108538d8
CW
176902010-09-16 Colin Watson <cjwatson@ubuntu.com>
17691
17692 Support RAID on virtio devices, and others.
17693
17694 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
17695 Rename to ...
17696 [__MINGW32__] (grub_find_device): ... this.
17697 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
17698 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
17699 reasonable default if dir is NULL.
17700 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
17701 ...
17702 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
17703 (grub_guess_root_device): Update callers.
17704 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
17705
17706 * util/raid.c (grub_util_getdiskname): Remove.
17707 (grub_util_raid_getmembers): Use grub_find_device rather than
17708 grub_util_getdiskname.
17709
e5bfc130
CW
177102010-09-16 Colin Watson <cjwatson@ubuntu.com>
17711
17712 * docs/grub.texi (serial): Remove obsolete comment about GRUB
17713 needing to be compiled with serial support.
17714 (ls): Indicate that multiple files are accepted.
17715 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
17716 indicate that multiple files are accepted.
17717
be458ae2
CW
177182010-09-16 Colin Watson <cjwatson@ubuntu.com>
17719
17720 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
17721 libgrub_a_init.c, and util/bash-completion.d/grub.
17722
cb731b5e
VS
177232010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17724
17725 * util/grub-setup.c (setup): Fix incorrect container semantics.
17726
35139e8a
VS
177272010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17728
17729 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
17730 misusage.
17731 Reported by: J. Nick Terry
17732
e50fca4a
VS
177332010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17734
17735 Move embedding routines to partmap sources files.
17736
17737 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
17738 [GRUB_UTIL]: New variable.
17739 (gpt_partition_map_iterate): Set part.parent.
17740 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
17741 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
17742 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
17743 New function.
17744 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
17745 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
17746 (grub_partition_map) [GRUB_UTIL]: New field embed.
17747 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
17748 (setup): Use ->embed.
17749
f00478b7
VS
177502010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
17753 function.
17754 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
17755 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
17756
2b94e3ff
YB
177572010-09-15 Yves Blusseau <blusseau@zetam.org>
17758
17759 Add function to get completions from usage.
17760
17761 * util/bash-completion.d/grub-completion.bash.in: Add function to get
17762 completions from usage. Use LC_ALL=C to get options properly.
17763
2e04a006
VS
177642010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17765
17766 * grub-core/gnulib/basename-lgpl.c: Imported.
17767 * grub-core/gnulib/basename.c: Likewise.
17768 * grub-core/gnulib/dirname-lgpl.c: Likewise.
17769 * grub-core/gnulib/dirname.c: Likewise.
17770 * grub-core/gnulib/dirname.h: Likewise.
17771 * grub-core/gnulib/stripslash.c: Likewise.
17772
5dcdf93a
VS
177732010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17774
17775 * grub-core/gnulib/error.c: Resynced.
17776 * grub-core/gnulib/getopt.c: Likewise.
17777 * grub-core/gnulib/getopt_int.h: Likewise.
17778 * grub-core/gnulib/regex.h: Likewise.
17779 * grub-core/gnulib/regex_internal.c: Likewise.
17780 * grub-core/gnulib/regex_internal.h: Likewise.
17781
014f47b7
SJ
177822010-09-15 Szymon Janc <szymon@janc.net.pl>
17783
17784 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
17785 CRC calculations and validity checks.
17786 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
17787 calculations.
17788
dd521a4a
SJ
177892010-09-15 Szymon Janc <szymon@janc.net.pl>
17790
17791 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
17792
79c4eeb9
VS
177932010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17794
17795 Fix incorrect echo options handling.
17796 Reported by: Yves Blusseau.
17797
17798 * include/grub/command.h (grub_command_flags_t): New flags
17799 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
17800 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
17801 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
17802
ed80f7d5
VS
178032010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
17806 users updated.
17807 (GRUB_COMMAND_FLAG_MENU): Likewise.
17808 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17809 (GRUB_COMMAND_FLAG_TITLE): Removed.
17810 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17811 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
17812 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
17813 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
17814 (grub_command_flags_t): New enum. All users updated.
17815
5fe7620a
SG
178162010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
17817
17818 Fix solaris compilation.
17819
17820 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
17821 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
17822 (grub-emu-list): Likewise.
17823
545b752f
VS
178242010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17825
17826 Remove deprecated root command.
17827
17828 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17829 updated.
17830
6c1a338c
VS
178312010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 * util/i386/pc/grub-setup.c: Merge this ...
17834 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17835 * util/grub-setup.c: ... into this.
17836 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17837 New struct.
17838
178392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17840
17841 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17842 possible.
17843
d2ea4551
VS
178442010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17847 allocate p.
17848
3c3b5040
VS
178492010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17850
17851 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17852 explicit root argument to set to prevent UUID to be interpreted as
17853 argument to set.
17854
b71c3fae
VS
178552010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17856
17857 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17858
275433e6
VS
178592010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 Don't export grub_gate_a20.
17862
17863 * grub-core/kern/i386/pc/init.c: Remove leftovers.
17864 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
17865 to ...
17866 (grub_gate_a20): ... this. All users updated.
17867 * include/grub/i386/pc/init.h: Removed. All users updated.
17868
a5dbb1f1
VS
178692010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17870
17871 Create euro.pf2 which supports most European languages.
17872
17873 * Makefile.am (grubdata_DATA): Add euro.pf2.
17874 (euro.pf2): New target.
17875 (CLEANFILES): Add euro.pf2.
17876
62a747cb
VS
178772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17878
17879 * configure.ac: Disable emu-usb by default to prevent inadvertent
17880 device takeover.
17881
608e43b1
VS
178822010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 Disable usbserial on grub-emu since our libusb code isn't good enough
17885 yet.
17886
17887 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17888 (usbserial_pl2303): Likewise.
17889 (usbserial_ftdi): Likewise.
17890
94564f81
VS
178912010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17892
17893 * include/grub/disk.h (grub_disk): Remove has_partitions.
17894 All users updated.
17895 * disk/loopback.c (grub_loopback): Remove has_partitions.
17896 All users updated.
17897 (options): Remove partitions. All users updated.
17898 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17899 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17900 actual partition table is found.
17901
3352800b
VS
179022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17903
17904 Remove readability checks (too many false negatives).
17905
17906 * util/grub-install.in: Remove readability checks.
17907 * util/grub-mkconfig.in: Likewise.
17908 * util/grub.d/10_hurd.in: Likewise.
17909 * util/grub.d/10_kfreebsd.in: Likewise.
17910 * util/grub.d/10_linux.in: Likewise.
17911 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17912 way.
17913
2419f17a
VS
179142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17915
17916 Enable acpi shutdown on all ACPI platforms.
17917
17918 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17919 on coreboo, multiboot and EFI.
17920 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17921 (grub_acpi_halt): Likewise.
17922 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17923 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17924 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17925 * grub-core/lib/i386/halt.c (grub_halt)
17926 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17927
0575c7c3
VS
179282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17929
17930 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17931 context.
17932
54ac3cd1
VS
179332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17934
17935 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17936 * grub-core/video/efi_uga.c: Likewise.
17937
b2a30ac5
VS
179382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17939
17940 Filter devaliases and never open same device twice.
17941
17942 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17943 (last_ihandle): Likewise.
17944 (ofdisk_hash_ent): New member shortest.
17945 (ofdisk_hash_add): Add canonical path too.
17946 (scan): New function.
17947 (grub_ofdisk_iterate): Iterate over hashed entries.
17948 (compute_dev_path): Don't add :0.
17949 (grub_ofdisk_open): Don't really open the disk.
17950 (grub_ofdisk_close): Avoid closing unrelated disk.
17951 (grub_ofdisk_read): Implement reopen logic.
17952 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17953 New function.
17954 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17955 New proto.
17956
fb53b340
VS
179572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17958
17959 Fix sparc64.
17960
17961 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17962 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17963 right address. Add sparc64_ieee1275_ldflags.
17964 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17965 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17966 to grub_host_to_target_addr
17967 (load_image): Likewise.
17968
f452b040
VS
179692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 * grub-core/normal/completion.c (complete_file): Handle device
17972 containing slash.
17973 Fix based on patch by Doug Nazar.
17974
9b5b2541
VS
179752010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 grub-mknetdir script.
17978
17979 * Makefile.util.def (grub-mknetdir): New module.
17980 * tests/util/grub-shell.in: Support boot=net
17981 * util/grub-mknetdir.in: New file.
17982
9d2be652
VS
179832010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17984
17985 videoinfo on non-vbe.
17986
17987 * grub-core/Makefile.core.def (vbeinfo): Removed.
17988 (vbetest): Removed.
17989 (videoinfo): New module.
17990 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17991 * grub-core/commands/i386/pc/vbetest.c: Removed.
17992 * grub-core/commands/videoinfo.c: New file.
17993 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17994 specification.
17995 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17996 as vbetest.
17997 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17998 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17999 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
18000 mode_number. New parameter mode. All users updated.
18001 (grub_video_gop_iterate): New function.
18002 (grub_video_efi_gop): New member iterate.
18003 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
18004 (grub_vbe_set_video_mode): Remove setting useless fields.
18005 (vbe2videoinfo): New function.
18006 (grub_video_vbe_iterate): Likewise.
18007 (grub_video_vbe_setup): Use vbe2videoinfo.
18008 (grub_video_vbe_print_adapter_specific_info): New function.
18009 (grub_video_vbe_adapter): New fields iterate and
18010 print_adapter_specific_info.
18011 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
18012 All users updated.
18013 (grub_video_mode_info): New field mode_number.
18014 (grub_video_adapter): New fields iterate and
18015 print_adapter_specific_info.
18016
179503f5
TG
180172010-09-13 Tristan Gingold <gingold@free.fr>
180182010-09-13 Robert Millan <rmh.grub@aybabtu.com>
180192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18020
18021 * grub-core/commands/efi/lsefisystab.c: New file.
18022 * grub-core/commands/efi/lssal.c: Likewise.
18023 * grub-core/Makefile.core.def (lsacpi): New module.
18024 (lsefisystab): Likewise.
18025 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18026 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18027 (grub_efi_sal_system_table): New struct.
18028 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18029 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18030 (grub_efi_sal_system_table_platform_features): Likewise.
18031 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18032 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18033 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18034 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18035
cf9827de
VS
180362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18037
18038 Support explicit user claim that a device is BIOS-visible.
18039
18040 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18041 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18042 * grub-core/kern/emu/hostdisk.c
18043 (convert_system_partition_to_system_disk): Support mdX.
18044 (find_system_device): New parameter add. All users updated.
18045 (grub_util_biosdisk_is_present): New function.
18046 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18047 proto.
18048
53f0eb1f
VS
180492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18050
18051 Search hints support.
18052
18053 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18054 All users updated.
18055
b23ffd70
YB
180562010-09-13 Yves Blusseau <blusseau@zetam.org>
18057
18058 Bash completion script for util commands
18059
18060 * Makefile.am: Add util/bash-completion.d directory
18061 * configure.ac: Likewise.
18062 * util/bash-completion.d/Makefile.am: New file.
18063 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18064
d547dc28
VS
180652010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18066
18067 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18068 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18069 Reported by: Yves Blusseau.
18070
2fc8ccb9
VS
180712010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18072
18073 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18074 partition size and offset.
18075
d8a84076
VS
180762010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18079
84fb3b3d
VS
180802010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18081
18082 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18083
768ec2e2
VS
180842010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18085
18086 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18087 (grub_xvasprintf): Likewise.
18088
4870900f
VS
180892010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18090
18091 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18092
faca6bec
VS
180932010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18094
18095 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18096 args ending with NULL.
18097
180982010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
18099
18100 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18101 pointer.
18102
3c70f225
SJ
181032010-09-11 Szymon Janc <szymon@janc.net.pl>
18104
18105 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18106
4df7996d
VS
181072010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 Shutdown using ACPI.
18110
18111 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18112 * grub-core/commands/acpihalt.c: New file.
18113 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18114 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18115 (grub_acpi_halt): New proto.
18116 (GRUB_ACPI_SLP_EN): New const.
18117 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18118 (GRUB_ACPI_OPCODE_*): New enum.
18119 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18120
126b4c32
TG
181212010-09-11 Tristan Gingold <gingold@free.fr>
181222010-09-11 Robert Millan <rmh.grub@aybabtu.com>
181232010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18124
18125 * commands/lsacpi.c: New file.
18126 * grub-core/Makefile.core.def (lsacpi): New module.
18127 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18128 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18129 (grub_acpi_madt_entry_header): New struct.
18130 (grub_acpi_madt): Likewise.
18131 (grub_acpi_madt_entry_interrupt_override): Likewise.
18132 (grub_acpi_madt_entry_sapic): Likewise.
18133 (grub_acpi_madt_entry_lsapic): Likewise.
18134 (grub_acpi_madt_entry_platform_int_source): Likewise.
18135 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18136 (PRIuGRUB_UINT32_T): Likewise.
18137 (PRIxGRUB_UINT64_T): Likewise.
18138
1aa4fe88
VS
181392010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18140
18141 Implement loading palette on ieee1275_fb.
18142
18143 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18144 (have_setcolors): Likewise.
18145 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18146 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18147 (grub_video_ieee1275_set_palette): Implement.
18148
25761e13
VS
181492010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
181502010-09-11 Colin Watson <cjwatson@ubuntu.com>
18151
18152 * util/grub-install.in (grub_partition): New variable.
18153 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18154 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18155 Fixes a bug reported by Yves Blusseau.
18156
050abaea
VS
181572010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 Fix emu on mipsel.
18160
18161 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18162 =grub_cpu_flush_cache on all mips and not only yeeloong.
18163 * configure.ac (COND_mips): New conditional.
18164 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18165 platforms.
18166 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18167 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18168 [GRUB_LINKER_HAVE_INIT]: New function.
18169 (grub_emu_post_init): Likewise.
18170 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18171 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18172 * include/grub/cache.h (_mips): Include mips/cache.h.
18173 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18174 LVM and RAID prototypes.
18175 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18176 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18177 function.
18178
5ed7d816
CW
181792010-09-10 Colin Watson <cjwatson@ubuntu.com>
18180
18181 * util/grub-install.in: Don't try to verify core.img until after
18182 running grub-mkimage to create it.
18183
90367e04
RM
181842010-09-10 Robert Millan <rmh@gnu.org>
18185
18186 * util/grub.d/10_hurd.in: Add misc readability checks.
18187 * util/grub.d/10_kfreebsd.in: Likewise.
18188 * util/grub.d/10_linux.in: Likewise.
18189
c452fa66
CW
181902010-09-10 Colin Watson <cjwatson@ubuntu.com>
18191
18192 * util/grub-install.in: ${imgext} won't be defined here until the
18193 install branch is merged. For the meantime, only verify core.img on
18194 i386-pc and sparc64-ieee1275 platforms.
18195
c38fe9f4
RM
181962010-09-10 Robert Millan <rmh@gnu.org>
18197
18198 Solaris support in grub_find_zpool_from_dir(). Thanks
18199 Seth Goldberg for referring to getextmntent() facility.
18200
18201 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18202 `sys/mkdev.h'.
18203 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18204 `<sys/mnttab.h>'.
18205 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18206 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18207 method for finding zpool name.
18208
905f7773
CW
182092010-09-10 Colin Watson <cjwatson@ubuntu.com>
18210
18211 grub-fstest needs the host and hostfs modules while other utilities
18212 actively require those modules to be absent, so grub-fstest needs
18213 its own initialisation and finalisation code.
18214
18215 * Makefile.am (grub_fstest.pp): New target.
18216 (grub_fstest_init.lst): Likewise.
18217 (grub_fstest_init.c): Likewise.
18218 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18219
fb90b546
RM
182202010-09-10 Robert Millan <rmh@gnu.org>
18221
18222 * configure.ac: Check for `struct statfs.f_fstypename' and
18223 `struct statfs.f_mntfromname'.
18224
18225 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18226 kFreeBSD-specific code.
18227
66d4bea5
RM
182282010-09-10 Robert Millan <rmh@gnu.org>
18229
18230 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18231 on ZFS. Now non-main filesystems are supported as / too.
18232
b6a690ee
CW
182332010-09-09 Colin Watson <cjwatson@ubuntu.com>
18234
18235 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18236 and grub-core/disk/host.c to ...
18237 (grub-fstest): ... here. Having the host disk implementation
18238 present confuses grub-probe and other utility programs.
18239
18240 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18241 when writing to a file, not when writing to stdout.
18242
8901b00c 182432010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18244
18245 * tests/partmap_test.in: New test for partitions.
18246 * Makefile.util.def: Rules for new test.
18247
7bf45fdd
RM
182482010-09-09 Robert Millan <rmh@gnu.org>
18249
18250 * util/grub-probe.c (probe): Fix a pair of unhandled error
18251 conditions.
18252
4dfbc574
RM
182532010-09-09 Robert Millan <rmh@gnu.org>
18254
18255 Basic Btrfs support (detection and UUID).
18256
18257 * grub-core/fs/btrfs.c: New file.
18258 * Makefile.util.def (library): Register btrfs.c.
18259 * grub-core/Makefile.core.def: Likewise.
18260
6b8e78ae
RM
182612010-09-08 Robert Millan <rmh@gnu.org>
18262
18263 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18264 with (optional) parameters to specify device and relative path.
18265 * util/grub-install.in: Use is_path_readable_by_grub() to
18266 verify readability of a few critical files.
18267 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18268 verify readability of grub.cfg.new.
18269
27f21a8b
VS
182702010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18271
18272 Split minix.mod into minix.mod and minix2.mod.
18273
18274 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18275 * grub-core/Makefile.core.def (minix2): New module.
18276 * grub-core/fs/minix.c: Use definitions instead of runtime version
18277 checking.
18278 * grub-core/fs/minix2.c: New file.
18279
c0e53ea5
YB
182802010-09-08 Yves Blusseau <blusseau@zetam.org>
18281
18282 Add new --boot-directory option to replace --root-directory
18283
18284 * util/grub-install.in: Add new --boot-directory option
18285 * util/grub-reboot.in: Likewise.
18286 * util/grub-set-default.in: Likewise.
18287
b9fe6ea2
YB
182882010-09-08 Yves Blusseau <blusseau@zetam.org>
18289
18290 * util/grub-mkconfig.in: Use new variable.
18291
d87aedff
YB
182922010-09-08 Yves Blusseau <blusseau@zetam.org>
18293
18294 * configure.ac: Define some useful variables.
18295
e55e8495
VS
182962010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18299 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18300 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18301 Use terminfo and don't use cursor-on/cursor-off unless it's known
18302 to work.
18303 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
18304 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
18305
6fa6d675
CW
183062010-09-08 Colin Watson <cjwatson@ubuntu.com>
18307
18308 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
18309 starts with "(,", fill the drive containing the loaded image in
18310 between those two characters, but expect that a full partition
18311 specification including partition map names will follow.
18312
92f2aef0
RM
183132010-09-08 Robert Millan <rmh@gnu.org>
18314
18315 * configure.ac: Remove `--enable-grub-fstest' option.
18316 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
18317
18318 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
18319 `grub-fstest' instead of `grub-probe' for readability verification.
18320 * util/grub-probe.c (probe): Remove readability verification kludge.
18321
99fd620d
RM
183222010-09-08 Robert Millan <rmh@gnu.org>
18323
18324 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
18325 initializing `GRUB_FS'.
18326
058e30ac 183272010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
18328
18329 Not command (!) support to GRUB script.
18330
18331 * tests/grub_script_not.in: New test.
18332 * Makefile.util.def: Rules for new test.
18333
18334 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18335 ! command as a special case.
18336 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
18337
b61d05ed 183382010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18339
058e30ac 18340 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
18341 grub_free.
b61d05ed 18342
4d69c786 183432010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18344
18345 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
18346
aa3119c4 183472010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18348
18349 * docs/grub.texi (Shell-like scripting): Documentation for break,
18350 continue, shift and return commands.
18351
db0f7e3d
VS
183522010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
18353
18354 Rename CD-ROM to cd on BIOS.
18355
18356 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
18357 "cd".
18358 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
18359
88b87c93
VS
183602010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
18363 * util/grub-probe.c (main): Likewise.
18364 * util/i386/pc/grub-setup.c (main): Likewise.
18365 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
18366 Reported and debugged by: alexxy
18367
294f324d
VS
183682010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18369
18370 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
18371 diagnostic info.
18372
d7ee3441
JS
183732010-09-05 Jo Shields <directhex@apebox.org>
18374
18375 * util/grub.d/30_os-prober.in: Add missing classes.
18376
d7e06c1f
VS
183772010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18378
18379 * docs/grub.texi (Theme file format): Document new position format.
18380
fc157e53
VS
183812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18382
18383 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
18384 a table. Use @code instead of @verbatim.
18385
506e9a1c
CB
183862010-09-05 Colin D Bennett <colin@gibibit.com>
18387
18388 Gfxmenu documentation.
18389
18390 * docs/grub.texi (Theme file format): New chapter.
18391
f0aff67c
SJ
183922010-09-05 Szymon Janc <szymon@janc.net.pl>
18393
18394 * grub-core/Makefile.core.def (xzio): New module.
18395 * grub-core/io/xzio.c: New file.
18396 * grub-core/lib/xzembed/xz.h: New file (from xembed).
18397 * grub-core/lib/xzembed/xz_config.h: Likewise.
18398 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
18399 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
18400 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
18401 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
18402 * grub-core/lib/xzembed/xz_private.h: Likewise.
18403 * grub-core/lib/xzembed/xz_stream.h: Likewise.
18404 * include/grub/file.h (grub_file_filter_id): New compression filter
18405 GRUB_FILE_FILTER_XZIO.
18406
82a85062
VS
184072010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18408
18409 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
18410 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
18411 size.
18412
3579415d
VS
184132010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18414
18415 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
18416 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
18417
5124ae6d
VS
184182010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18419
18420 Uncompressed checksum support.
18421
18422 * grub-core/commands/hashsum.c (options): Add option --uncompress.
18423 (check_list): New parameter uncompress.
18424 (grub_cmd_hashsum): Handle --uncompress.
18425
9aadb3d1
VS
184262010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18427
18428 Reintroduce testload.
18429
18430 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
18431 from here ...
18432 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
18433 (GRUB_MOD_INIT): New function.
18434 (GRUB_MOD_FINI): Likewise.
18435 * grub-core/Makefile.core.def (testload): New module.
18436
a17792c3
SJ
184372010-09-05 Szymon Janc <szymon@janc.net.pl>
18438
18439 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
18440 (uint8_t): New type.
18441 (uint16_t): Likewise.
18442 (uint32_t): Likewise.
18443 (uint64_t): Likewise.
18444
b81e40a3
SJ
184452010-09-05 Szymon Janc <szymon@janc.net.pl>
18446
18447 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
18448
fc2ef117
VS
184492010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18450
18451 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
18452 Made static.
18453 (grub_gzfile_open): Removed. All users updated.
18454 (GRUB_MOD_INIT): New function.
18455 (GRUB_MOD_FINI): Likewise.
18456 * grub-core/kern/file.c (grub_file_filters_all): New variable.
18457 (grub_file_filters_enabled): Likewise.
18458 (grub_file_open): Handle filters.
18459 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
18460 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
18461 * include/grub/file.h (grub_file_filter_id_t): New type.
18462 (grub_file_filter_t): Likewise.
18463 (grub_file_filters_all): New extern variable.
18464 (grub_file_filters_enabled): Likewise.
18465 (grub_file_filter_register): New inline function.
18466 (grub_file_filter_unregister): Likewise.
18467 (grub_file_filter_disable): Likewise.
18468 (grub_file_filter_disable_compression): Likewise.
18469 * include/grub/gzio.h: Removed.
18470
35ee15e0
BC
184712010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18472
18473 Filename expansion support for wildcards in GRUB script.
18474
18475 * tests/grub_script_expansion.in: New test.
18476 * Makefile.util.def: Rule for new test.
18477
18478 * grub-core/commands/wildcard.c: New file, implements filename
18479 expansion support for GRUB script.
18480 * grub-core/Makefile.core.def: Rule update for regexp.mod.
18481 * grub-core/script/argv.c: Cosmetic changes.
18482 * grub-core/script/execute.c (grub_script_arglist_to_argv):
18483 Refactored to perform wildcard expansion on arguments.
18484 * include/grub/script_sh.h (grub_script_wildcard_translator): New
18485 struct.
18486
18487 * tests/util/grub-shell.in: Fix quoting for read input.
18488
5f0c4aca
BC
184892010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18490
18491 Support for updating environment variables with matched substrings
18492 of regexp.
18493
18494 * tests/grub_cmd_regexp.in: New test.
18495 * Makefile.util.def: Rule for new test.
18496
18497 * grub-core/commands/regexp.c: New option -s to update environment
18498 variables with regexp matches.
18499
3759a35f
SJ
185002010-09-04 Szymon Janc <szymon@janc.net.pl>
18501
18502 * include/grub/file.h (grub_file): New member not_easly_seekable.
18503 (grub_file_seekable): New inline function.
18504 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
18505 easily seekable.
18506 (grub_gzio_open): Set not_easly_seekable.
18507 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
18508 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
18509
ed8c6dec
BC
185102010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18511
18512 Support for options to appear multiple times on cmdline.
18513
18514 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
18515 * grub-core/commands/extcmd.c: Support for repeatable option.
18516 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
18517 repeatable option support.
18518
18519 Refactor menuentry into a regular command.
18520
18521 * grub-core/commands/menuentry.c: New file, menuentry command
18522 implementation.
18523 * grub-core/Makefile.core.def: Rule update for normal.mod.
18524 * grub-core/normal/main.c: Moved menuentry creation to
18525 grub-core/commands/menuentry.c.
18526 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
18527 (grub_menu_execute_entry_real): Removed.
18528 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
18529 function.
18530 (grub_script_execute_menuentry): Removed.
18531 * grub-core/script/parser.y (menuentry): Removed.
18532 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
18533 * grub-core/script/yylex.l (menuentry): Removed.
18534 * include/grub/menu.h (grub_menu_init): New prototype.
18535 (grub_menu_fini): New prototype.
18536 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
18537 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
18538 (grub_script_execute_sourcecode): New prototype.
18539
dacd0cf0
BC
185402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18541
18542 "return" command for GRUB script functions.
18543
18544 * tests/grub_script_return.in: New test.
18545 * Makefile.util.def: Rules for new test.
18546
18547 * grub-core/script/execute.c (grub_script_return): New function.
18548 * grub-core/script/main.c: Register/unregister return commaond.
18549 * include/grub/script_sh.h (grub_script_return): New prototype.
18550
52e72f9d
BC
185512010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18552
18553 "setparams" command to update positional parameters.
18554
18555 * tests/grub_script_setparams.in: New test.
18556 * Makefile.util.def: Rules for new test.
18557
18558 * grub-core/script/argv.c (grub_script_argv_make): New function.
18559 * grub-core/script/execute.c (replace_scope): New function.
18560 (grub_script_setparams): New function.
18561 * grub-core/script/lexer.c: Remove unused variables.
18562 * grub-core/script/main.c: Register/unregister setparams command.
18563 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
18564 (grub_script_setparams): New prototype.
18565
25b60c91
BC
185662010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18567
18568 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
18569 grub_free order.
18570
37e7bf68
BC
185712010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18572
18573 Support for passing block of commands as an argument to extcmds.
18574
18575 * Makefile.util.def: Rules for new test.
18576 * tests/grub_script_blockarg.in: New test.
18577 * grub-core/tests/test_blockarg.c: New file, block argument
18578 command used in the test.
18579
18580 * include/grub/extcmd.h (grub_extcmd_context): New struct.
18581 (grub_register_extcmd_prio): New function prototype.
18582 (grub_extcmd_dispatcher): New function prototype.
18583 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
18584 type.
18585 * include/grub/script_sh.h (struct grub_script): New members
18586 `children', `next_siblings' and `refcnt' for block arguments and
18587 reference counting.
18588 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
18589 (grub_script_arg): New member `script' for block argument.
18590 (grub_script_argv): New member `script' for block argument.
18591 (grub_parser_param): New member `scripts' for block argument.
18592 (grub_script_mem_free): New extern function prototype.
18593 (grub_script_ref): New function prototype.
18594 (grub_script_unref): New function prototype.
18595
18596 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
18597 extcmd form to support block arguments.
18598 * grub-core/script/argv.c: Block arguments support.
18599 * grub-core/script/execute.c: Likewise.
18600 * grub-core/script/lexer.c: Likewise.
18601 * grub-core/script/main.c: Likewise.
18602 * grub-core/script/script.c: Likewise.
18603 * grub-core/script/parser.y: Likewise. New `block' and `block0'
18604 non-terminals.
18605
18606 * grub-core/commands/acpi.c: Update extcmd implementations with
18607 grub_extcmd_context_t.
18608 * grub-core/commands/cat.c: Likewise.
18609 * grub-core/commands/echo.c: Likewise.
18610 * grub-core/commands/extcmd.c: Likewise.
18611 * grub-core/commands/hashsum.c: Likewise.
18612 * grub-core/commands/hdparm.c: Likewise.
18613 * grub-core/commands/help.c: Likewise.
18614 * grub-core/commands/hexdump.c: Likewise.
18615 * grub-core/commands/i386/cpuid.c: Likewise.
18616 * grub-core/commands/i386/pc/drivemap.c: Likewise.
18617 * grub-core/commands/i386/pc/halt.c: Likewise.
18618 * grub-core/commands/i386/pc/sendkey.c: Likewise.
18619 * grub-core/commands/iorw.c: Likewise.
18620 * grub-core/commands/keystatus.c: Likewise.
18621 * grub-core/commands/loadenv.c: Likewise.
18622 * grub-core/commands/ls.c: Likewise.
18623 * grub-core/commands/lspci.c: Likewise.
18624 * grub-core/commands/memrw.c: Likewise.
18625 * grub-core/commands/probe.c: Likewise.
18626 * grub-core/commands/search_wrap.c: Likewise.
18627 * grub-core/commands/setpci.c: Likewise.
18628 * grub-core/commands/sleep.c: Likewise.
18629 * grub-core/disk/loopback.c: Likewise.
18630 * grub-core/hello/hello.c: Likewise.
18631 * grub-core/loader/i386/bsd.c: Likewise.
18632 * grub-core/loader/xnu.c: Likewise.
18633 * grub-core/term/gfxterm.c: Likewise.
18634 * grub-core/term/serial.c: Likewise.
18635 * grub-core/tests/lib/functional_test.c: Likewise.
18636
888d1500
BC
186372010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18638
18639 Multi-line quoted strings support.
18640
18641 * grub-core/script/lexer.c (append_newline): Removed.
18642 (grub_script_lexer_yywrap): Refactored.
18643 (grub_script_lexer_init): Refactored.
18644 * grub-core/script/yylex.l (yywrap): New function.
18645 (grub_lexer_resplit): New function.
18646 (grub_lexer_unput): New function.
18647 * include/grub/script_sh.h (grub_lexer_param): New members, unput
18648 and resplit.
18649 * tests/grub_script_echo1.in: Added few more testcases.
18650
dda060dd
VS
186512010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18652
18653 * grub-core/kern/misc.c: Don't add abort alias in utils.
18654 Reported by: echoline.
18655
6556eba9
BC
186562010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
18657
18658 Add missing files into "make dist" tarball for other platforms.
18659
18660 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
18661 * conf/Makefile.common (dist_noinst_DATA): New variable.
18662 * conf/Makefile.extra-dist: Added missing make dist files.
18663 * grub-core/Makefile.core.def: Likewise.
18664
c8e7bf5f
VS
186652010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 Compress grub_prefix.
18668
18669 * grub-core/boot/i386/pc/lnxboot.S: Use
18670 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
18671 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
18672 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
18673 GRUB_MACHINE_PREFIX_END. All users updated.
18674 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
18675 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
18676 + 0x40.
18677 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
18678 * util/grub-mkimage.c (image_target_desc): Change data_end to
18679 prefix_end. All users updated.
18680
a7c00cdb
VS
186812010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18682
18683 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
18684 value.
18685 (grub_openbsd_boot): Likewise.
18686 (grub_netbsd_boot): Likewise.
18687 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
18688 (grub_xnu_boot): Likewise.
18689
9f915872
VS
186902010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 * configure.ac: Clean LIBS variable after tests.
18693
efa1bee7
CW
186942010-09-02 Colin Watson <cjwatson@ubuntu.com>
18695
18696 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
18697
61d720e5
VS
186982010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18699
18700 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
18701 echo if libdevmapper will be used.
18702
ef8e0ec8
IT
187032010-09-02 Ian Turner <Ian.Turner@deshaw.com>
18704
18705 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
18706 constant for the same file.
18707
03e261d8
VS
187082010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18709
18710 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
18711
c2a4eba6
CW
187122010-09-02 Colin Watson <cjwatson@ubuntu.com>
18713
18714 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
18715 grub-core/*.pp.
18716
9056cbf3
CW
187172010-09-02 Colin Watson <cjwatson@ubuntu.com>
18718
18719 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
18720 required by the boot protocol.
18721
18722 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
18723 ebp and edi members.
18724 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
18725 state.ebp and state.edi.
18726 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
18727 %ebp and %edi according to grub_relocator32_ebp and
18728 grub_relocator32_edi respectively.
18729 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
18730 and state.edi.
18731
529cc99a
VS
187322010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 Add i386-pc-pxe image target.
18735
18736 * util/grub-mkimage.c (image_target_desc): New enum value
18737 IMAGE_I386_PC_PXE.
18738 (image_targets): New target i386-pc-pxe.
18739 (generate_image): Handle i386-pc-pxe image.
18740
9a093920
VS
187412010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18742
18743 Fix grub_pxe_scan.
18744
18745 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
18746 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
18747 All users updated.
18748 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
18749 (grub_pxe_pxenv): Correct type.
18750
f9cefc4e
CW
187512010-09-01 Colin Watson <cjwatson@ubuntu.com>
18752
18753 * NEWS: Document most of the important changes since 1.98.
18754
4066f57f
CW
187552010-09-01 Colin Watson <cjwatson@ubuntu.com>
18756
18757 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
18758 generated manual page) a little.
18759
da2891f9
CW
187602010-09-01 Colin Watson <cjwatson@ubuntu.com>
18761
18762 * docs/grub.texi: Add myself as an author.
18763
ad717fae
VS
187642010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * Makefile.util.def (libgrub.a): Add missing sunpc.
18767 Reported by: Seth Goldberg.
18768
eefe8abd
VS
187692010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18770
18771 Interrupt wrapping and code simplifications.
18772
9494ef9a
VS
18773 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
18774 x86_noieee1275 which are functionaly equivalent in this case.
18775 (grub-install): Make source on each platform explicit. Enable on
18776 all noemu.
18777 * gentpl.py (x86_efi_pc): Removed group.
18778 (x86_noefi): Likewise.
18779 (i386_noefi): Likewise.
18780 (x86_noieee1275): Likewise.
18781 (i386_noieee1275): Likewise.
18782 (i386_noefi_noieee1275): Likewise.
18783 (i386_pc_qemu_coreboot): Likewise.
18784 (i386_coreboot_multiboot): Likewise.
18785 (i386_pc_coreboot_multiboot_qemu): Likewise.
18786 (x86_noefi_mips): Likewise.
18787 (noieee1275): Likewise.
18788 (ieee1275_mips): Likewise.
18789 (noemu_noieee1275): Likewise.
18790 (cmos): New group.
18791 (usb): Likewise.
18792 (videoinkernel): Likewise.
18793 (videomodules): Likewise.
eefe8abd 18794 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
18795 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
18796 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
18797 include/grub/loader.h, include/grub/msdos_partition.h,
18798 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
18799 include/grub/machine/console.h, include/grub/machine/vga.h,
18800 include/grub/machine/vbe.h, include/grub/machine/init.h,
18801 include/grub/machine/kernel.h, include/grub/cpu/time.h,
18802 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 18803 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
18804 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
18805 * grub-core/Makefile.core.def (kernel): Explicit the source for
18806 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
18807 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
18808 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
18809 Use videoinkernel tag.
18810 (usb): Enable on all usb.
18811 (usbserial_common): Likewise.
18812 (usbserial_pl2303): Likewise.
18813 (usbserial_ftdi): Likewise.
18814 (uhci): Enable on all x86.
18815 (ohci): Enable on all pci.
18816 (cmostest): Enable on all CMOS.
18817 (acpi): Include commands/acpi.c on all platforms.
18818 (halt): Add relevant lib/*/halt.c.
18819 (hdparm): Enable on all pci.
18820 (lspci): Likewise.
18821 (usbtest): Enable on all usb.
18822 (ata): Enable on all pci.
18823 (ata_pthru): Likewise.
18824 (usbms): Enable on all usb.
18825 (usb_keyboard): Likewise.
18826 (font): Use tag videomodules.
18827 (bufio): Likewise.
18828 (datetime): Use tag cmos. Enable on all noemu.
18829 (mmap): Use tags common and x86.
18830 (gfxterm): Use tag videomodules.
18831 (bitmap): Likewise.
18832 (bitmap_scale): Likewise.
18833 (video_fb): Likewise.
18834 (video): Likewise.
18835 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18836 adjust padding accordingly. All users updated.
18837 (grub_ohci_transaction): Fix bad format specification.
18838 (GRUB_MOD_INIT): Add asserts for struct size.
18839 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18840 (grub_alloc_td): Likewise.
18841 (grub_free_queue): Likewise.
18842 (grub_uhci_transfer): Likewise.
18843 (grub_uhci_transaction): Fix bad format specification.
18844 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18845 (grub_usb_bulk_readwrite): Likewise.
18846 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18847 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18848 Made static.
18849 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18850 Made static.
18851 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18852 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18853 Transformed into C.
18854 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18855 Moved from here ...
18856 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18857 ... here. Transformed into C. Made static.
18858 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18859 Moved from here ...
18860 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18861 ... here. Transformed into C. Made static.
18862 * grub-core/kern/i386/pc/startup.S
18863 (grub_biosdisk_check_int13_extensions): Moved from here ...
18864 * grub-core/disk/i386/pc/biosdisk.c
18865 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
18866 Made static.
18867 * grub-core/kern/i386/pc/startup.S
18868 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
18869 * grub-core/disk/i386/pc/biosdisk.c
18870 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
18871 Transformed into C. Made static.
18872 * grub-core/kern/i386/pc/startup.S
18873 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
18874 * grub-core/disk/i386/pc/biosdisk.c
18875 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
18876 Transformed into C. Made static.
18877 * grub-core/kern/i386/pc/startup.S
18878 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18879 * grub-core/disk/i386/pc/biosdisk.c
18880 (grub_biosdisk_get_diskinfo_standard): ... here.
18881 Transformed into C. Made static.
18882 * grub-core/kern/i386/pc/startup.S
18883 (grub_biosdisk_get_num_floppies): Moved from here ...
18884 * grub-core/disk/i386/pc/biosdisk.c
18885 (grub_biosdisk_get_num_floppies): ... here.
18886 Transformed into C. Made static.
18887 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18888 New function.
18889 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18890 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18891 Transformed into C. Made static.
18892 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18893 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18894 Transformed into C. Made static.
18895 * grub-core/kern/i386/ieee1275/init.c: Removed.
18896 * grub-core/kern/i386/misc.S: Likewise.
18897 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18898 Splitted from here ...
18899 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18900 Transformed into C. Made static. All users updated.
18901 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18902 Transformed into C. Made static. All users updated.
18903 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18904 Moved from here...
18905 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18906 Transformed into C. Made static. All users updated.
18907 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18908 Moved from here...
18909 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18910 Transformed into C. Made static. All users updated.
18911 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18912 Removed (replaced by C version).
18913 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18914 Moved from here...
18915 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18916 Transformed into C. Made static.
18917 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18918 Moved from here...
18919 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18920 ... here. Transformed into C.
18921 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18922 Moved from here...
18923 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18924 ... here. Transformed into C.
18925 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18926 Moved from here...
18927 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18928 ... here. Transformed into C. Made static.
18929 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18930 Moved from here...
18931 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18932 ... here. Transformed into C.
21ed554b
VS
18933 * grub-core/kern/i386/pc/startup.S
18934 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18935 * grub-core/video/i386/pc/vbe.c
18936 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18937 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18938 Moved from here...
18939 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18940 ... here. Transformed into C.
18941 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18942 Moved from here...
18943 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18944 ... here. Transformed into C.
18945 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18946 Moved from here...
18947 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18948 ... here. Transformed into C.
18949 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18950 Moved from here...
18951 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18952 ... here. Transformed into C.
18953 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18954 Moved from here...
18955 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18956 ... here. Transformed into C. Made static.
18957 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18958 Moved from here...
18959 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18960 ... here. Transformed into C. Made static.
18961 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18962 Moved from here...
18963 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18964 ... here. Transformed into C. Made static.
18965 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18966 pxe_rm_entry as third argument.
18967 (grub_bios_interrupt): New function.
18968 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18969 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18970 of calling grub_stop.
18971 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18972 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18973 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18974 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18975 * grub-core/lib/i386/halt.c: Moved from here ...
18976 * grub-core/lib/i386/halt.c: ... here.
18977 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18978 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18979 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18980 grub_stop_floppy.
18981 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18982 * include/grub/i386/coreboot/init.h: Removed.
18983 * include/grub/i386/multiboot/init.h: Likewise.
18984 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18985 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18986 * include/grub/i386/pc/int.h: New file.
18987 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18988 (grub_pxe_scan): Removed.
18989 (grub_pxe_call): Update prototype.
18990 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18991 prototypes.
18992 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18993 * include/grub/i386/qemu/init.h: Removed.
18994 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18995 noreturn.
18996 (grub_halt): Likewise.
18997 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18998 (grub_reboot): Likewise.
18999 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
19000 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
19001 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
19002
215dd471
RM
190032010-08-30 Robert Millan <rmh@gnu.org>
19004
19005 * NEWS: Document addition of ZFS support in `grub-install' and
19006 `grub-mkconfig'.
19007
ebd65b82
BC
190082010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
19009
19010 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
19011 dprintf output.
19012
11721d19
VS
190132010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19014
19015 Remove leftover embedding of font objects.
19016
19017 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19018 * util/grub-install.in (font): Removed.
19019 * util/grub-mkimage.c (generate_image): Remove font support. All users
19020 updated.
19021
37837d4e
VS
190222010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19023
19024 Remove leftover embedding of font objects.
19025
19026 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19027 * util/grub-install.in (font): Removed.
19028 * util/grub-mkimage.c (generate_image): Remove font support. All users
19029 updated.
19030
b4c1aae0
VS
190312010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 19034 Reported by: Ian Turner
b4c1aae0 19035
8920a08d
VS
190362010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19037
19038 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19039 timeout to avoid indefinite boot stalling.
19040
f21db033
VS
190412010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19044 (grub_env_write_color_highlight): Likewise.
19045
9a9de209
VS
190462010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19047
19048 * grub-core/normal/term.c (print_more): Return to normal and not
19049 to standard state after printing "---MORE---".
19050
3dca01d7
VS
190512010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19054 Mask out the bit 0x80 since it has other meaning that specifiing color.
19055
0b986c40
VS
190562010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 New relocator. Allows for more kernel support and more straightforward
19059 loader writing.
19060
19061 * Makefile.am (BOOTTARGET): New variable.
19062 (QEMU32): Likewise.
19063 (linux.init.x86_64): New target.
19064 (linux.init.i386): Likewise.
19065 (multiboot.elf): Likewise.
19066 (kfreebsd.elf): Likewise.
19067 (kfreebsd.aout): Likewise.
19068 (pc-chainloader.elf): Likewise.
19069 (pc-chainloader.bin): Likewise.
19070 (ntldr.elf): Likewise.
19071 (ntldr.bin): Likewise.
19072 (multiboot2.elf): Likewise.
19073 (kfreebsd.init.x86_64): Likewise.
19074 (kfreebsd.init.i386): Likewise.
19075 (knetbsd.init.i386): Likewise.
19076 (kopenbsd.init.i386): Likewise.
19077 (knetbsd.init.x86_64): Likewise.
19078 (kopenbsd.init.x86_64): Likewise.
19079 (linux-initramfs.i386): Likewise.
19080 (linux-initramfs.x86_64): Likewise.
19081 (kfreebsd-mfsroot.i386.img): Likewise.
19082 (knetbsd.image.i386): Likewise.
19083 (kopenbsd.image.i386): Likewise.
19084 (kopenbsd.image.x86_64): Likewise.
19085 (knetbsd.miniroot-image.i386.img): Likewise.
19086 (kfreebsd-mfsroot.x86_64.img): Likewise.
19087 (knetbsd.image.x86_64): Likewise.
19088 (knetbsd.miniroot-image.x86_64.img): Likewise.
19089 (kfreebsd-mfsroot.i386.gz): Likewise.
19090 (bootcheck-kfreebsd-i386): Likewise.
19091 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19092 (bootcheck-kfreebsd-x86_64): Likewise.
19093 (knetbsd.miniroot-image.i386.gz): Likewise.
19094 (bootcheck-knetbsd-i386): Likewise.
19095 (bootcheck-kopenbsd-i386): Likewise.
19096 (bootcheck-kopenbsd-x86_64): Likewise.
19097 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19098 (bootcheck-knetbsd-x86_64): Likewise.
19099 (bootcheck-linux-i386): Likewise.
19100 (bootcheck-linux-x86_64): Likewise.
19101 (bootcheck-linux16-i386): Likewise.
19102 (bootcheck-linux16-x86_64): Likewise.
19103 (bootcheck-multiboot): Likewise.
19104 (bootcheck-multiboot2): Likewise.
19105 (bootcheck-kfreebsd-aout): Likewise.
19106 (bootcheck-pc-chainloader): Likewise.
19107 (bootcheck-ntldr): Likewise.
19108 (CLEANFILES): Add new targets.
19109 (BOOTCHECKS): New variable.
19110 (.PHONY): Add bootchecks.
19111 (SUCCESSFUL_BOOT_STRING): New variable.
19112 (BOOTCHECK_TIMEOUT): Likewise.
19113 (bootcheck): New target
19114 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19115 * configure.ac: Correct efiemu excuse.
19116 * docs/grub.texi (Supported kernels): New chapter.
19117 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19118 include/grub/mm_private.h. Simplify inclusion of
19119 include/grub/boot.h, include/grub/loader.h
19120 and include/grub/msdos_partition.h
19121 (KERNEL_HEADER_FILES) [i386_coreboot]:
19122 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19123 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19124 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19125 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19126 include/grub/machine/loader.h.
19127 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19128 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19129 extra_dist.
19130 (pci.mod): Enable on i386-multiboot.
19131 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19132 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19133 i386-qemu.
19134 (relocator.mod): Rewritten.
19135 (aout.mod): Enable on all x86.
19136 (bsd.mod): Likewise.
19137 (ntldr.mod): New module.
19138 (linux.mod): Use loader/i386/linux.c on all x86.
19139 (xnu.mod): Enable on all x86.
19140 (vga_text.mod): disable on EFI and QEMU.
19141 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19142 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19143 * grub-core/efiemu/loadcore.c: Likewise.
19144 * grub-core/efiemu/main.c: Likewise.
19145 (grub_efiemu_exit_boot_services): Removed.
19146 (grub_efiemu_finish_boot_services): Likewise.
19147 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19148 function.
19149 * grub-core/efiemu/i386/nocfgtables.c: New file.
19150 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19151 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19152 (grub_efi_finish_boot_services): Moved from here ...
19153 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19154 Fille finish memory map and related data.
19155 (finish_mmap_buf): New variable.
19156 (grub_efi_uintn_t finish_mmap_size): Likewise.
19157 (grub_efi_uintn_t finish_key): Likewise.
19158 (grub_efi_uintn_t finish_desc_size): Likewise.
19159 (grub_efi_uint32_t finish_desc_version): Likewise.
19160 (grub_efi_is_finished): Likewise.
19161 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19162 finished.
19163 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19164 (grub_elf64_phdr_iterate): Likewise.
19165 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19166 (grub_os_area_size): Likewise.
19167 (grub_machine_init): Don't reserve os area.
19168 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19169 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19170 * grub-core/kern/i386/loader.S: Removed.
19171 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19172 (grub_os_area_size): Likewise.
19173 (grub_machine_init): Don't reserve os area.
19174 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19175 Don't call grub_dl_unload_all.
19176 Don't include loader.S.
19177 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19178 Declare the memory after _end as available.
19179 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 19180 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 19181 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
19182 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19183 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19184 * include/grub/mm_private.h (grub_mm_header): ... here.
19185 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19186 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
19187 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19188 (grub_mm_region): ..here. Removed addr. Added pre_size.
19189 All users updated.
19190 * grub-core/kern/mm.c (base): Renamed to ...
19191 (grub_mm_base): ... this. Made global.
19192 (grub_real_malloc): Alloc from end of region.
19193 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19194 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19195 * grub-core/kern/powerpc/cache_flush.S: ... here.
19196 * grub-core/lib/efi/relocator.c: New file.
19197 * grub-core/lib/i386/relocator.c: Rewritten.
19198 * grub-core/lib/i386/relocator16.S: New file.
19199 * grub-core/lib/i386/relocator32.S: Likewise.
19200 * grub-core/lib/i386/relocator64.S: Likewise.
19201 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19202 * grub-core/lib/i386/relocator_common.S: New file.
19203 * grub-core/lib/ieee1275/relocator.c: Likewise.
19204 * grub-core/lib/mips/relocator.c: Rewritten.
19205 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19206 stylistic adjustments.
19207 * grub-core/lib/powerpc/relocator.c: New file.
19208 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19209 * grub-core/lib/relocator.c: Rewritten.
19210 * grub-core/lib/x86_64/relocator_asm.S: New file.
19211 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19212 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19213 (bsd_tag): New struct.
19214 (tags): New variable.
19215 (tags_last): Likewise.
19216 (netbsd_module): New struct.
19217 (netbsd_mods): New variable.
19218 (netbsd_mods_last): Likewise.
19219 (openbsd_opts): New parameter "serial".
19220 (OPENBSD_SERIAL_ARG): New definition.
19221 (netbsd_opts): New parameter "serial".
19222 (NETBSD_SERIAL_ARG): New definition.
19223 (grub_freebsd_add_meta): Reorganised into ...
19224 (grub_bsd_add_meta): ...this. All users updated.
19225 (grub_freebsd_add_mmap): Reorganised into ...
19226 (generate_e820_mmap): ...this...
19227 (grub_bsd_add_mmap): ...and this. All users updated.
19228 (grub_freebsd_list_modules): Use tags.
19229 (grub_netbsd_add_meta_module): New function.
19230 (grub_netbsd_list_modules): Likewise.
19231 (grub_freebsd_boot): Use relocator and finish EFI.
19232 (grub_openbsd_boot): Likewise.
19233 (grub_netbsd_setup_video): New function.
19234 (grub_netbsd_add_modules): Likewise.
19235 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19236 and finish EFI.
19237 (grub_bsd_unload): Unload tags.
19238 (grub_bsd_load_aout): Use relocator.
19239 (grub_bsd_elf32_size_hook): New function.
19240 (grub_bsd_elf32_hook): Use relocator.
19241 (grub_bsd_elf64_size_hook): New function.
19242 (grub_bsd_elf64_hook): Use relocator.
19243 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19244 (grub_bsd_load): Zero-out openbsd_ramdisk.
19245 (grub_bsd_load): Use relocator.
19246 (grub_cmd_openbsd): Support serial.
19247 (grub_cmd_netbsd): Support modules.
19248 (grub_cmd_freebsd_module): Use relocator.
19249 (grub_netbsd_module_load): New function.
19250 (grub_cmd_netbsd_module): Likewise.
19251 (grub_cmd_openbsd_ramdisk): Likewise.
19252 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19253 kopenbsd_ramdisk.
19254 (GRUB_MOD_FINI): Unregister new commands.
19255 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19256 (grub_freebsd_load_elfmodule_obj): Use relocator.
19257 (grub_freebsd_load_elfmodule): Likewise.
19258 (grub_freebsd_load_elf_meta): Likewise.
19259 (grub_netbsd_load_elf_meta): New function.
19260 (grub_openbsd_find_ramdisk): Likewise.
19261 * grub-core/loader/i386/bsd_helper.S: Removed.
19262 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19263 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19264 * grub-core/loader/i386/efi/linux.c: Likewise.
19265 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19266 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19267 (DEFAULT_VIDEO_MODE): Likewise.
19268 (real_mode_target): New variable.
19269 (prot_mode_target): Likewise.
19270 (initrd_mem_target): Likewise.
19271 (relocator): Likewise.
19272 (efi_mmap_buf): Likewise.
19273 (efi_mmap_size): Likewise.
19274 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19275 (free_pages): Use relocator.
19276 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19277 (grub_linux_setup_video): Return error.
19278 (grub_linux_trampoline_start): Removed.
19279 (grub_linux_trampoline_end): Likewise.
19280 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19281 andd video parameters depending on firmware.
19282 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19283 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19284 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19285 (grub_cmd_initrd): Use relocator.
19286 * grub-core/loader/i386/linux_trampoline.S: Removed.
19287 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19288 (elf_sec_entsize): Likewise.
19289 (elf_sec_shstrndx): Likewise.
19290 (elf_sections): Likewise.
19291 (grub_multiboot_load): Use relocator.
19292 (grub_multiboot_get_mbi_size): Account for sections.
19293 (grub_multiboot_make_mbi): Use relocator and support sections.
19294 (grub_multiboot_add_elfsyms): New function.
19295 (grub_multiboot_free_mbi): Free sections.
19296 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19297 (grub_linux_real_target): Likewise.
19298 (grub_linux_real_chunk): Likewise.
19299 (grub_linux16_prot_size): Likewise.
19300 (grub_linux16_boot): Use relocator.
19301 (grub_linux_unload): Unload relocator.
19302 (grub_cmd_linux): Use relocator.
19303 (grub_cmd_initrd): Likewise.
19304 * grub-core/loader/i386/pc/ntldr.c: New file.
19305 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
19306 Don't try to guess CPU frequency.
19307 (grub_xnu_set_video): Stretch bitmap.
19308 (grub_xnu_boot): Use relocator.
19309 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
19310 (grub_linux_unload): Free relocator.
19311 (grub_linux_load32): Use relocator.
19312 (grub_linux_load64): Likewise.
19313 (grub_cmd_initrd): Likewise.
19314 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
19315 (grub_multiboot_unload): Unload relocator.
19316 (grub_cmd_multiboot): Use relocator.
19317 (grub_cmd_module): Likewise.
19318 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
19319 Use relocator and support sections.
19320 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
19321 (elf_sec_entsize): Likewise.
19322 (elf_sec_shstrndx): Likewise.
19323 (elf_sections): Likewise.
19324 (grub_multiboot_load): Use relocator.
19325 (grub_multiboot_get_mbi_size): Account for sections.
19326 (grub_multiboot_make_mbi): Use relocator and support sections.
19327 (grub_multiboot_add_elfsyms): New function.
19328 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
19329 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
19330 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
19331 Prototype changed. All users updated.
19332 (grub_xnu_align_heap): Simplified.
19333 (grub_xnu_writetree_toheap): Likewise.
19334 (grub_xnu_unload): Unload relocator.
19335 (grub_cmd_xnu_kernel): Use relocator.
19336 (grub_cmd_xnu_kernel64): Likewise.
19337 (grub_xnu_register_memory): Simplified.
19338 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
19339 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
19340 EFI is finished.
19341 (grub_console_checkkey): Likewise.
19342 (grub_console_getkey): Likewise.
19343 (grub_console_getwh): Likewise.
19344 (grub_console_getxy): Likewise.
19345 (grub_console_gotoxy): Likewise.
19346 (grub_console_cls): Likewise.
19347 (grub_console_setcolorstate): Likewise.
19348 (grub_console_setcursor): Likewise.
19349 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
19350 * grub-core/tests/boot/kbsd.init-i386.S: New file.
19351 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
19352 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
19353 * grub-core/tests/boot/kernel-8086.S: Likewise.
19354 * grub-core/tests/boot/kernel-i386.S: Likewise.
19355 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
19356 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
19357 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
19358 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
19359 * grub-core/tests/boot/knetbsd.cfg: Likewise.
19360 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
19361 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
19362 * grub-core/tests/boot/linux.cfg: Likewise.
19363 * grub-core/tests/boot/linux.init-i386.S: Likewise.
19364 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
19365 * grub-core/tests/boot/linux16.cfg: Likewise.
19366 * grub-core/tests/boot/multiboot.cfg: Likewise.
19367 * grub-core/tests/boot/multiboot2.cfg: Likewise.
19368 * grub-core/tests/boot/ntldr.cfg: Likewise.
19369 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
19370 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
19371 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
19372 New definition.
19373 * include/grub/dl.h (grub_dl_unload_all): Removed.
19374 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
19375 (grub_efi_finish_boot_services): Change prototype.
19376 (grub_efi_is_finished): New variable.
19377 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
19378 Changed prototype.
19379 (grub_efiemu_finish_boot_services): Removed.
19380 (grub_machine_efiemu_init_tables): New prototype.
19381 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
19382 (grub_elf64_phdr_iterate): Likewise.
19383 * include/grub/i386/bsd.h: Include relocator.h.
19384 (freebsd_tag_header): New struct.
19385 (grub_openbsd_bios_mmap): Removed.
19386 (grub_unix_real_boot): Removed.
19387 (grub_freebsd_load_elfmodule32): Changed prototype.
19388 (grub_freebsd_load_elfmodule_obj64): Likewise.
19389 (grub_freebsd_load_elf_meta32): Likewise.
19390 (grub_freebsd_load_elf_meta64): Likewise.
19391 (grub_freebsd_add_meta): Removed.
19392 (grub_netbsd_load_elf_meta32): New prototype.
19393 (grub_netbsd_load_elf_meta64): Likewise.
19394 (grub_bsd_add_meta): Likewise.
19395 (grub_openbsd_ramdisk_descriptor): New struct.
19396 (grub_openbsd_find_ramdisk32): New prototype.
19397 (grub_openbsd_find_ramdisk64): Likewise.
19398 * include/grub/i386/coreboot/loader.h: Removed.
19399 * include/grub/i386/efi/loader.h: Likewise.
19400 * include/grub/i386/ieee1275/loader.h: Likewise.
19401 * include/grub/i386/linux.h (linux_kernel_header): Change void *
19402 to grub_uint32_t.
19403 * include/grub/i386/loader.h: Removed.
19404 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
19405 value.
19406 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
19407 (grub_phys_addr_t): New type.
19408 (grub_vtop): New inline function.
19409 (grub_map_memory): Likewise.
19410 (grub_unmap_memory): Likewise.
19411 * include/grub/i386/multiboot/loader.h: Removed.
19412 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
19413 (NETBSD_BTINFO_CONSOLE): New definition.
19414 (NETBSD_BTINFO_SYMTAB): Likewise.
19415 (NETBSD_BTINFO_MODULES): Likewise.
19416 (NETBSD_BTINFO_FRAMEBUF): Likewise.
19417 (grub_netbsd_bootinfo): New struct.
19418 (grub_netbsd_btinfo_common): Use explicit bitsize.
19419 (grub_netbsd_btinfo_mmap_entry): Removed.
19420 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
19421 (grub_netbsd_btinfo_bootdisk): New struct.
19422 (grub_netbsd_btinfo_symtab): Likewise.
19423 (grub_netbsd_btinfo_serial): Likewise.
19424 (grub_netbsd_btinfo_modules): Likewise.
19425 (grub_netbsd_btinfo_framebuf): Likewise.
19426 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
19427 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
19428 Likewise.
19429 (grub_openbsd_bootargs): Use explicit bitsize.
19430 (grub_openbsd_bootarg_console): New struct.
19431 (GRUB_OPENBSD_COM_MAJOR): New definition.
19432 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
19433 * include/grub/i386/pc/efiemu.h: Removed.
19434 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
19435 * include/grub/i386/qemu/loader.h: Removed.
19436 * include/grub/i386/relocator.h: Rewritten.
19437 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
19438 * include/grub/mips/memory.h: New file.
19439 * include/grub/mips/multiboot.h: Rewritten.
19440 * include/grub/mips/relocator.h: Rewritten.
19441 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
19442 (grub_vtop): New function.
19443 (grub_map_memory): Likewise.
19444 (grub_unmap_memory): Likewise.
19445 * include/grub/misc.h (ALIGN_DOWN): New definition.
19446 * include/grub/mm.h (grub_mm_check_real): New proto.
19447 (GRUB_MM_CHECK): New definition.
19448 * include/grub/mm_private.h: New file.
19449 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
19450 (grub_multiboot_get_mbi_size): Removed.
19451 (grub_multiboot_make_mbi): Change prottype.
19452 (grub_multiboot_set_accepts_video): New proto.
19453 (grub_multiboot_add_elfsyms): Likewise.
19454 (grub_multiboot_payload_eip): New variable.
19455 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
19456 New prototype.
19457 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
19458 New definition.
19459 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
19460 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
19461 * include/grub/powerpc/ieee1275/loader.h: Removed.
19462 * include/grub/powerpc/memory.h: New file.
19463 * include/grub/powerpc/relocator.h: Likewise.
19464 * include/grub/relocator.h: Likewise.
19465 * include/grub/relocator_private.h: Likewise.
19466 * include/grub/sparc64/ieee1275/loader.h: Removed.
19467 * include/grub/x86_64/memory.h: New file.
19468 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
19469 (grub_xnu_heap_malloc): Likewise.
19470 (grub_xnu_heap_real_start): Removed.
19471 (grub_xnu_heap_start): Likewise.
19472 (grub_xnu_relocator): New variable.
19473 (grub_xnu_heap_target_start): Likewise.
19474 * tests/util/grub-shell.in: Support non-pc.
19475 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 19476
5303b85d
VS
194772010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19478
19479 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
19480 on malloc error.
19481 (grub_bidi_logical_to_visual): Check that malloc succeded.
19482 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
19483 puts.
19484 (grub_xputs_normal): Likewise.
19485
d768d159
VS
194862010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19487
19488 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
19489 extra_dist.
19490
194912010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * grub-core/efiemu/runtime/efiemu.sh: Removed.
19494
5bf84df4
VS
194952010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19496
19497 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
19498
3626810e
VS
194992010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19500
19501 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
19502 dprintf.
19503
a7363f53
BC
195042010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
19505
19506 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
19507
902f75f6
VS
195082010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19509
19510 * grub-core/normal/term.c (print_more): Fix a memory leak.
19511 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
19512 (grub_xputs_normal): Likewise.
19513
3c707967
VS
195142010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19515
19516 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
19517 the begining of the string
19518
2053cc07
VS
195192010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19520
19521 * grub-core/script/script.c (grub_script_parse): Free parsed on
19522 failure.
19523
46422ebf
VS
195242010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19525
19526 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
19527 on failure.
19528
9e0fa3f6
VS
195292010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19530
19531 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
19532 return.
19533
3393cf16
VS
195342010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
19537 (scroll_up): Fix a memory leak.
19538
b17540cb
VS
195392010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
19542 errors.
19543
67140446
VS
195442010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
19545
19546 Handle USB pendrives exposed as floppies.
19547
19548 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
19549 floppy.
19550 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19551 Check for partitions on all devices.
19552
e35e46fc
VS
195532010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19554
19555 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
19556 (readkey): Likewise.
19557
d24c6190
BC
195582010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
19559
19560 Multiple variable names support to "export" command.
19561
19562 * normal/context.c (grub_cmd_export): "export" command supports
19563 multiple variable names.
19564
04ddcc6a
ST
195652010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
19566
19567 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
19568 --target=drive output to Mach device name.
19569
0c8b61d8
BC
195702010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19571
19572 New Automake based build system for GRUB.
19573
19574 * ABOUT-NLS: New file.
19575 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
19576 in Makefile.util.def file.
19577 * Makefile.util.def: New file. Autogen build definitions file for
19578 GRUB host utils.
19579 * conf/Makefile.common: New file. Common variables for GRUB host
19580 utils and target modules.
19581 * conf/Makefile.extra-dist: New file. Extra files for make dist.
19582 * docs/Makefile.am: New file. Automake file for docs.
19583 * gentpl.py: New file. Python script to generate Autogen
19584 template.
19585 * grub-core/Makefile.am: New file. GRUB target modules' rules
19586 that doesn't fit in Makefile.core.def file.
19587 * grub-core/Makefile.core.def: New file. Autogen build
19588 definitions file for GRUB target modules.
19589 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
19590 specific setjmp.S file.
19591 * po/Makefile.am: New file.
19592
19593 * .bzrignore: New ignores.
19594 * INSTALL: New requirements, without Ruby.
19595 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
19596 * autogen.sh: Updated to invoke autogen as necessary.
19597 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
19598 and defines for Automake conditionals.
19599 * geninit.sh: Refactoring.
19600
19601 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
19602 necessary.
19603 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
19604 New prototype.
19605
19606 * include/grub/test.h: Fix functional test modules' naming.
19607 * grub-core/tests/example_functional_test.c: Fix test module name.
19608
19609 * util/misc.c: Hosted versions' of grub functions for libgrub.a
19610 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
19611 * util/grub-editenv.c: Likewise.
19612 * util/grub-fstest.c: Likewise.
19613 * util/grub-mkdevicemap.c: Likewise.
19614 * util/grub-mkfont.c: Likewise.
19615 * util/grub-mkimage.c: Likewise.
19616 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19617 * util/grub-probe.c: Likewise.
19618 * util/grub-script-check.c: Likewise.
19619 * util/i386/pc/grub-setup.c: Likewise.
19620 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19621
19622 * tests/util/grub-shell.in: Fix override directory path.
19623 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
19624 * util/import_gcry.py: Create Makefile.gcry.def file instead.
19625
19626 * util/lvm.c: Update #includes.
19627 * util/raid.c: Likewise.
19628 * util/resolve.c: Likewise.
19629 * grub-core/bus/emu/pci.c: Likewise.
19630 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
19631 * grub-core/lib/posix_wrap/string.h: Likewise.
19632 * grub-core/kern/emu/main.c: Likewise.
19633
19634 * grub-core/gensymlist.sh: New file. Script for generating kernel
19635 symbols file.
19636 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
19637
19638 * grub-core/gentrigtables.c: Fix unused variable warnings.
19639
19640 * Makefile.in: Removed.
19641 * conf/any-emu.rmk: Removed.
19642 * conf/common.rmk: Removed.
19643 * conf/i386-coreboot.rmk: Removed.
19644 * conf/i386-efi.rmk: Removed.
19645 * conf/i386-ieee1275.rmk: Removed.
19646 * conf/i386-multiboot.rmk: Removed.
19647 * conf/i386-pc.rmk: Removed.
19648 * conf/i386-qemu.rmk: Removed.
19649 * conf/i386.rmk: Removed.
19650 * conf/mips-yeeloong.rmk: Removed.
19651 * conf/mips.rmk: Removed.
19652 * conf/powerpc-ieee1275.rmk: Removed.
19653 * conf/sparc64-ieee1275.rmk: Removed.
19654 * conf/tests.rmk: Removed.
19655 * conf/x86-efi.rmk: Removed.
19656 * conf/x86_64-efi.rmk: Removed.
19657 * gendistlist.sh: Removed.
19658 * geninitheader.sh: Removed.
19659 * genkernsyms.sh.in: Removed.
19660 * genmk.rb: Removed.
19661 * gensymlist.sh.in: Removed.
19662 * mkinstalldirs: Removed.
19663 * boot: Moved ...
19664 * grub-core/boot: ... to here.
19665 * bus: Moved ...
19666 * grub-core/bus: ... to here.
19667 * commands: Moved ...
19668 * grub-core/commands: ... to here.
19669 * disk: Moved ...
19670 * grub-core/disk: ... to here.
19671 * efiemu: Moved ...
19672 * grub-core/efiemu: ... to here.
19673 * font: Moved ...
19674 * grub-core/font: ... to here.
19675 * fs: Moved ...
19676 * grub-core/fs: ... to here.
19677 * gencmdlist.sh: Moved ...
19678 * grub-core/gencmdlist.sh: ... to here.
19679 * genemuinit.sh: Moved ...
19680 * grub-core/genemuinit.sh: ... to here.
19681 * genemuinitheader.sh: Moved ...
19682 * grub-core/genemuinitheader.sh: ... to here.
19683 * genfslist.sh: Moved ...
19684 * grub-core/genfslist.sh: ... to here.
19685 * genhandlerlist.sh: Moved ...
19686 * grub-core/genhandlerlist.sh: ... to here.
19687 * genmoddep.awk: Moved ...
19688 * grub-core/genmoddep.awk: ... to here.
19689 * genmodsrc.sh: Moved ...
19690 * grub-core/genmodsrc.sh: ... to here.
19691 * genpartmaplist.sh: Moved ...
19692 * grub-core/genpartmaplist.sh: ... to here.
19693 * genparttoollist.sh: Moved ...
19694 * grub-core/genparttoollist.sh: ... to here.
19695 * genterminallist.sh: Moved ...
19696 * grub-core/genterminallist.sh: ... to here.
19697 * gentrigtables.c: Moved ...
19698 * grub-core/gentrigtables.c: ... to here.
19699 * genvideolist.sh: Moved ...
19700 * grub-core/genvideolist.sh: ... to here.
19701 * gettext: Moved ...
19702 * grub-core/gettext: ... to here.
19703 * gfxmenu: Moved ...
19704 * grub-core/gfxmenu: ... to here.
19705 * gnulib: Moved ...
19706 * grub-core/gnulib: ... to here.
19707 * hello: Moved ...
19708 * grub-core/hello: ... to here.
19709 * hook: Moved ...
19710 * grub-core/hook: ... to here.
19711 * io: Moved ...
19712 * grub-core/io: ... to here.
19713 * kern: Moved ...
19714 * grub-core/kern: ... to here.
19715 * lib: Moved ...
19716 * grub-core/lib: ... to here.
19717 * loader: Moved ...
19718 * grub-core/loader: ... to here.
19719 * mmap: Moved ...
19720 * grub-core/mmap: ... to here.
19721 * normal: Moved ...
19722 * grub-core/normal: ... to here.
19723 * partmap: Moved ...
19724 * grub-core/partmap: ... to here.
19725 * parttool: Moved ...
19726 * grub-core/parttool: ... to here.
19727 * script: Moved ...
19728 * grub-core/script: ... to here.
19729 * term: Moved ...
19730 * grub-core/term: ... to here
19731 * tests/example_functional_test.c: Moved ...
19732 * grub-core/tests/example_functional_test.c: ... to here.
19733 * tests/lib/functional_test.c: Moved ...
19734 * grub-core/tests/lib/functional_test.c: ... to here.
19735 * tests/lib/test.c: Moved ...
19736 * grub-core/tests/lib/test.c: ... to here.
19737 * video: Moved ...
19738 * grub-core/video: ... to here.
19739
645586e6
BC
197402010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19741
19742 Replace --enable-grub-emu-modules with grub-emu-lite.
19743
19744 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
19745 cache.S.
19746
19747 * include/grub/emu/misc.h (grub_emu_init): New prototype.
19748 * kern/emu/full.c: New file. For grub-emu specific initialization.
19749 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
19750 * kern/emu/main.c: Call initialization function grub_emu_init.
19751
19752 * Makefile.in: Include grub-emu-lite in install.
19753 * commands/parttool.c: Use grub_no_autoload to differentiate
19754 between grub-emu and grub-emu-lite.
19755 * include/grub/misc.h: New variable grub_no_autoload.
19756
19757 * conf/any-emu.rmk: New rules for grub-emu-lite.
19758 * configure.ac: Remove --enable-grub-emu-modules.
19759 * genmk.rb: Cleanup unnecessary rules.
19760 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
19761
19762 * normal/main.c: Don't load list files on grub-emu-lite.
19763 * util/misc.c (grub_arch_sync_caches): Removed.
19764
f86a4030
CW
197652010-08-23 Colin Watson <cjwatson@ubuntu.com>
19766
19767 * kern/mips/startup.S (grub_prefix): Update comment to refer to
19768 grub-mkimage rather than grub-mkelfimage.
19769 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
19770
06776944
VS
197712010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19772
19773 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
19774 a key after CapsLock or NumLock. It's just a qemu bug.
19775
df262419
VS
197762010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19777
19778 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
19779 needed by libusb wrapper.
19780
b40ea81b
ST
197812010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19782
19783 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
19784
dee50575
VS
197852010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
19788 --nounzip is passed.
19789
fb1d7b79
VS
197902010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
19791
19792 USB hotunplugging and USB serial support.
19793
19794 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
19795 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
19796 (grub_uhci_transfer): Respect timeout and set *actual.
19797 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
19798 non-standard length.
19799 (grub_usb_device_attach): Autoload modules.
19800 (GRUB_MOD_INIT): Set grub_term_poll_usb.
19801 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
19802 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
19803 users updated.
19804 (grub_usb_add_hub): Fill nports and children.
19805 (attach_root_port): Receive hub instead of controller.
19806 All users updated. Fill hub->devices.
19807 (grub_usb_root_hub): Allocate hub->devices.
19808 (detach_device): New function.
19809 (poll_nonroot_hub): Fill children and detach devices.
19810 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
19811 actual arguments. All users updated.
19812 (grub_usb_bulk_read_extended): New function.
19813 * bus/usb/serial/common.c: New file.
19814 * bus/usb/serial/ftdi.c: Likewise.
19815 * bus/usb/serial/pl2303.c: Likewise.
19816 * commands/terminal.c (handle_command): Support wildcard.
19817 * commands/usbtest.c: Output "Unknown" instead of empty string.
19818 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
19819 (usbserial_common_mod_SOURCES): New variable.
19820 (usbserial_common_mod_CFLAGS): Likewise.
19821 (usbserial_common_mod_LDFLAGS): Likewise.
19822 (pkglib_MODULES): Add usbserial_pl2303.mod.
19823 (usbserial_pl2303_mod_SOURCES): New variable.
19824 (usbserial_pl2303_mod_CFLAGS): Likewise.
19825 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19826 (pkglib_MODULES): Add usbserial_ftdi.mod.
19827 (usbserial_ftdi_mod_SOURCES): New variable.
19828 (usbserial_ftdi_mod_CFLAGS): Likewise.
19829 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19830 (pkglib_MODULES): Add serial.mod.
19831 (serial_mod_SOURCES): New variable.
19832 (serial_mod_CFLAGS): Likewise.
19833 (serial_mod_LDFLAGS): Likewise.
19834 * conf/i386-pc.rmk: Likewise.
19835 * conf/mips-yeeloong.rmk: Likewise.
19836 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19837 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19838 * disk/usbms.c (first_available_slot): New variable.
19839 (grub_usbms_attach): Don't reuse free slots due to potential cache
19840 problems.
19841 * include/grub/serial.h: Moved to ..
19842 * include/grub/ns8250.h: ...this.
19843 * include/grub/serial.h: New file.
19844 * include/grub/term.h (grub_term_poll_usb): New variable.
19845 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19846 readkey. All users updated.
19847 (grub_terminfo_output_state): Pass term to put.
19848 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19849 (grub_usb_controller_dev): Add timeout and actual arguments to
19850 transfer. All users updated.
19851 (grub_usb_interface): New field detach_data.
19852 (grub_usb_device): New fields children and nports.
19853 (grub_usb_ep_type_t): New type.
19854 (grub_usb_get_ep_type): New function.
19855 (grub_usb_bulk_read_extended): Likewise.
19856 * include/grub/usbdesc.h (grub_usb_desc): New type.
19857 * include/grub/usbserial.h: New file.
19858 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19859 * kern/term.c (grub_term_poll_usb): New variable.
19860 (grub_getkey): Call grub_term_poll_usb if set.
19861 (grub_checkkey): Likewise.
19862 (grub_getkeystatus): Likewise.
19863 * term/serial.c: Moved controller-specific parts to ...
19864 * term/ns8250.c: ... here.
19865 * term/serial.c: Mostly rewritten.
19866 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
19867 according to spec.
19868
21a313de
RM
198692010-08-20 Robert Millan <rmh@gnu.org>
19870
19871 Make kFreeBSD code more generic to support ext2fs as root, ufs as
19872 a separate module and maybe other interesting combinations.
19873
19874 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
19875 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
19876 (kfreebsd_entry): Add generic filesystem module load routine.
19877 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19878
63c734a6
CW
198792010-08-20 Colin Watson <cjwatson@ubuntu.com>
19880
19881 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19882 "numcenter" (I misunderstood the purpose of this entry).
19883 * docs/grub.texi (sendkey): Likewise.
19884
c4d16542
CW
198852010-08-20 Colin Watson <cjwatson@ubuntu.com>
19886
19887 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19888 status flag options; simply omitting the option is equivalent and
19889 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19890 (keysym_table): Rename "num5numlock" to "numlock".
19891 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19892 can uniformly say that only the last of multiple `sendkey'
19893 invocations has any effect.
19894 * docs/grub.texi (sendkey): New section.
19895
93541d66
CW
198962010-08-19 Colin Watson <cjwatson@ubuntu.com>
19897
19898 * commands/i386/pc/sendkey.c (options): Fix three typos.
19899
b4ece5e1
VS
199002010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19901
19902 Implement sendkey support.
19903
19904 * commands/i386/pc/sendkey.c: New file.
19905 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19906 (sendkey_mod_SOURCES): New variable.
19907 (sendkey_mod_CFLAGS): Likewise.
19908 (sendkey_mod_LDFLAGS): Likewise.
19909
51f1f5af
CW
199102010-08-18 Colin Watson <cjwatson@ubuntu.com>
19911
19912 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19913 fix warnings from Autoconf.
19914
9da94e05
CW
199152010-08-18 Colin Watson <cjwatson@ubuntu.com>
19916
19917 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19918 to avoid false positives with some assemblers that output things
19919 like "someprefix_func" as part of their output.
19920
729a0f2e
RM
199212010-08-15 Robert Millan <rmh@gnu.org>
19922
19923 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19924 errors.
19925 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19926 grub_get_libzfs_handle() errors.
19927
f3710e08
RM
199282010-08-14 Robert Millan <rmh@gnu.org>
19929
19930 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19931 filesystem is not ZFS.
19932
7a3c13de
BC
199332010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19934
19935 Fix for misspelled color names defaulting to black/black (bug
19936 reported by Doug Nazar)
19937
19938 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19939 status to prototype.
19940 * normal/color.c (grub_parse_color_name_pair): Return failure
19941 status.
19942 (grub_env_write_color_normal): Ignore bad color names.
19943 (grub_env_write_color_highlight): Likewise.
19944 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19945
ab8ba50d
BC
199462010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19947
19948 "shift" command support to GRUB script.
19949
19950 * include/grub/script_sh.h (grub_script_shift): New prototype.
19951 * script/execute.c (grub_script_shift): New function.
19952 * script/main.c (grub_script_init): Register shift command.
19953 (grub_script_fini): Unregister shift command.
19954 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19955
19956 * tests/grub_script_shift.in: New testcase.
19957 * conf/tests.rmk: Rules for new testcase.
19958
4d61999e
BC
199592010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19960
19961 "continue" command support to GRUB script.
19962
19963 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19964 (grub_script_break): Continue support.
19965 * script/main.c (grub_script_init): Register continue command.
19966 (grub_script_fini): Unregister continue command.
19967
19968 * tests/grub_script_continue.in: New testcase.
19969 * conf/tests.rmk: Rules for new testcase.
19970
4df51e00
BC
199712010-08-12 BVK Chaitanya <bvk@dbook>
19972
19973 "break" command support to GRUB script.
19974
19975 * conf/common.rmk: Rule updates to grub-script-check.
19976 * include/grub/misc.h (grub_min): New function.
19977 * include/grub/script_sh.h (grub_script_init): New prototype.
19978 (grub_script_fini): New prototype.
19979 (grub_script_break): New prototype.
19980 * script/main.c (grub_script_init): New function.
19981 (grub_script_fini): New function.
19982 * script/execute.c (grub_script_break): New function.
19983 * normal/main.c: Calls to grub_script_{init,fini}.
19984 * util/grub-script-check.c (grub_script_break): New function.
19985
19986 * tests/grub_script_break.in: New testcase.
19987 * conf/tests.rmk: Rules for new test case.
19988
f12c8420
BC
199892010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19990
19991 Function parameters support to GRUB script.
19992
19993 * script/yylex.l (VARIABLE): Regular expression update.
19994 * script/function.c (grub_script_function_call): Moved ...
19995 * script/execute.c (grub_script_function_call): ... to here.
19996 (grub_script_execute_arglist_to_argv): Removed.
19997 (grub_script_arglist_to_argv): New function.
19998 * script/argv.c: New file.
19999 (grub_script_argv_free): New function.
20000 (grub_script_argv_next): Likewise.
20001 (grub_script_argv_append): Likewise.
20002 (grub_script_argv_split_append): Likewise.
20003 * include/grub/script_sh.h (grub_script_argv): New struct.
20004 (grub_script_argv_free): New function.
20005 (grub_script_argv_next): Likewise.
20006 (grub_script_argv_append): Likewise.
20007 (grub_script_argv_split_append): Likewise.
20008
20009 * conf/common.rmk (normal.mod): New source script/argv.c.
20010
20011 * tests/grub_script_echo1.in: More tests.
20012 * tests/grub_script_vars1.in: Likewise.
20013 * tests/grub_script_functions.in: New test case.
20014 * conf/tests.rmk: Rules for new testcase.
20015
8022b748
BC
200162010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20017
20018 Remove grub_script_cmdblock struct.
20019
20020 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20021 * script/parser.y: Likewise.
20022 * script/execute.c: Rename cmdblock suffix to cmdlist.
20023 * script/script.c: Likewise.
20024 * util/grub-script-check.c: Likewise.
20025
79a6ba61
YB
200262010-08-11 Yves Blusseau <blusseau@zetam.org>
20027
20028 * .bzrignore: add grub-macho2img
20029
d04b9414
VS
200302010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20031
20032 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20033
f947ab49
VS
200342010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 Remove the dump of sm712 initialisation sequence.
20037
20038 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20039 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20040 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20041 (GRUB_VGA_CR_*): Added many registers.
20042 (GRUB_VGA_SR_*): Likewise.
20043 (GRUB_VGA_GR_*): Likewise.
20044 (grub_vga_write_arx): New function.
20045 (grub_video_hw_config): New struct.
20046 (grub_vga_set_geometry): New function.
20047 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20048 GRUB_PCI_CLASS_SUBCLASS_VGA.
20049 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20050 * video/sm712.c (grub_sm712_write_reg): New function
20051 (grub_sm712_read_reg): Likewise.
20052 (grub_sm712_sr_write): Likewise.
20053 (grub_sm712_gr_write): Likewise.
20054 (grub_sm712_cr_write): Likewise.
20055 (grub_sm712_write_arx): Likewise.
20056 (grub_sm712_cr_shadow_write): Likewise.
20057 (grub_sm712_write_dda_lookup): Likewise.
20058 (grub_video_sm712_setup): Initialise the video rather then
20059 blindly replay the dump.
20060 (main) [TEST]: Add a routine to be able to compile as standalone for
20061 tests.
20062 * video/sm712_init.c (sm712_init): Removed.
20063 (sm712_sr_seq1): New array.
20064 (sm712_sr_seq2): Likewise.
20065
f0206638
VS
200662010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * include/grub/vga.h: Add missing grub/pci.h include.
20069
2764da3b
YB
200702010-08-10 Yves Blusseau <blusseau@zetam.org>
20071
20072 * util/grub-macho2img.c (main): fix typo
20073
cf0c775e
VS
200742010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20075
20076 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20077 (grub_vga_gr_read): Likewise.
20078 (grub_vga_cr_write): Likewise.
20079 (grub_vga_cr_read): Likewise.
20080 (grub_vga_sr_write): Likewise.
20081 (grub_vga_sr_read): Likewise.
20082 (grub_vga_palette_read): Likewise.
20083 (grub_vga_palette_write): Likewise.
20084 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20085 (grub_sm712_sr_read): New function.
20086 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20087 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20088
07f360e9
RM
200892010-08-09 Robert Millan <rmh@gnu.org>
20090
20091 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20092 out unused variables on non-ZFS build.
20093
346c2072
RM
200942010-08-08 Robert Millan <rmh@gnu.org>
20095
20096 Fix path generation for sub-filesystems in ZFS.
20097
20098 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20099 missing slash.
20100
71175420
RM
201012010-08-08 Robert Millan <rmh@gnu.org>
20102
20103 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20104
0d8286f3
RM
201052010-08-08 Robert Millan <rmh@gnu.org>
20106
20107 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20108 exist, issue a proper error message (rely on `ls' for translated
20109 strings).
20110
55dd2924
RM
201112010-08-08 Robert Millan <rmh@gnu.org>
20112
20113 Fix grub-probe invocation.
20114
20115 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20116
d3dd9e80
RM
201172010-08-04 Robert Millan <rmh@gnu.org>
20118
20119 * configure.ac: Remove checks for getfsstat() and getmntany().
20120 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20121 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20122 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20123 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20124 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20125 function.
20126 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20127 via find_mount_point_from_dir() and getfsstat() / getmntany().
20128
0de22aa9
RM
201292010-08-04 Robert Millan <rmh@gnu.org>
20130
20131 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20132 (grub_find_zpool_from_mount_point): Merge into ...
20133 (grub_find_zpool_from_dir): ... this.
20134 * kern/emu/misc.c: Likewise.
20135
20136 * kern/emu/misc.c
20137 (grub_make_system_path_relative_to_its_root): Replace
20138 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20139 with grub_find_zpool_from_dir().
20140 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20141
62858144
RM
201422010-08-04 Robert Millan <rmh@gnu.org>
20143
20144 Support OpenSolaris in ZFS device resolution.
20145
20146 * configure.ac: Check for getmntany().
20147 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20148 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20149 support.
20150
9dd6fd50
RM
201512010-08-03 Robert Millan <rmh@gnu.org>
20152
20153 Fix grub-emu build.
20154
20155 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20156 * include/grub/emu/misc.h: ... here.
20157
20158 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20159 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20160
20161 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20162 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20163 (grub_get_libzfs_handle): Move to ...
20164 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20165 (grub_get_libzfs_handle): ... here.
20166
c9f7ff97
BC
201672010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20168
20169 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20170 as command name case.
20171
a870a783
CW
201722010-08-02 Colin Watson <cjwatson@ubuntu.com>
20173
20174 * disk/raid.c (insert_array): Select unique numbers for named arrays
20175 as well, for use as keys in the disk cache.
20176
c7db243b
RM
201772010-08-01 Robert Millan <rmh@gnu.org>
20178
20179 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20180 kFreeBSD device name, except on ZFS where the filesystem label is
20181 used.
20182 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20183 `/boot/zfs/zpool.cache'.
20184 Set mountfrom kernel variable using ${kfreebsd_device}.
20185
f7abdefb
RM
201862010-08-01 Robert Millan <rmh@gnu.org>
20187
20188 Make it even harder to use uninitialized `libzfs_handle' (and
20189 make the interface a bit simpler).
20190
20191 * include/grub/util/misc.h (grub_util_init_libzfs)
20192 (libzfs_handle): Remove.
20193 (grub_get_libzfs_handle): New prototype.
20194
20195 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20196 attribute.
20197 (grub_util_init_libzfs): Remove.
20198 (grub_get_libzfs_handle): New function.
20199
20200 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20201 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20202 accessing `libzfs_handle' directly.
20203
c882acc0
RM
202042010-08-01 Robert Millan <rmh@gnu.org>
20205
20206 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20207 (grub_find_zpool_from_mount_point): New function prototypes.
20208
20209 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20210 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20211
20212 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20213 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20214 `static' attribute.
20215
20216 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20217 finding zpool from mount point into ...
20218 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20219
20220 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20221 requested path is part of a ZFS pool, use
20222 grub_find_zpool_from_mount_point() to detect its filesystem name,
20223 and generate a path with `/fsname@path' syntax.
20224
8bfe31d8
CW
202252010-08-01 Colin Watson <cjwatson@ubuntu.com>
20226
20227 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20228 (void) rather than () so that this is a proper prototype.
20229
553df63d
VS
202302010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20233
8687cf07
VS
202342010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20235
20236 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20237 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20238
ea9be8ea
CW
202392010-08-01 Colin Watson <cjwatson@ubuntu.com>
20240
20241 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20242
6eea041a
CW
202432010-08-01 Colin Watson <cjwatson@ubuntu.com>
20244
20245 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20246
2cfb45df
CW
202472010-08-01 Colin Watson <cjwatson@ubuntu.com>
20248
20249 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20250 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20251 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20252 disable gfxpayload.
20253 (Shell-like scripting): Add real content.
20254 (Serial terminal): Suggest `terminal_input serial; terminal_output
20255 serial' rather than putting the two commands on separate lines,
20256 since console input will be inoperative after the first command.
20257 (menuentry): Document --class, --users, and --hotkey options.
20258 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20259 Vladimir Serbinenko).
20260
7decd202
VS
202612010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
202622010-08-01 Colin Watson <cjwatson@ubuntu.com>
20263
20264 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20265
c882acc0
RM
202662010-08-01 Robert Millan <rmh@gnu.org>
20267
20268 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20269 (grub_find_zpool_from_mount_point): New function prototypes.
20270
20271 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20272 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20273
20274 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20275 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20276 `static' attribute.
20277
20278 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20279 finding zpool from mount point into ...
20280 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20281
20282 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20283 requested path is part of a ZFS pool, use
20284 grub_find_zpool_from_mount_point() to detect its filesystem name,
20285 and generate a path with `/fsname@path' syntax.
20286
deb0caa3
RM
202872010-08-01 Robert Millan <rmh@gnu.org>
20288
20289 Prevent accidental use of uninitialized libzfs_handle.
20290
20291 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20292 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20293 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20294
ce04ef47
CW
202952010-08-01 Colin Watson <cjwatson@ubuntu.com>
20296
20297 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20298 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20299
ebf53056
RM
203002010-08-01 Robert Millan <rmh@gnu.org>
20301
20302 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 20303
3710bb6b
RM
203042010-07-31 Robert Millan <rmh@gnu.org>
20305
20306 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
20307
8072efeb
RM
203082010-07-31 Robert Millan <rmh@gnu.org>
20309
20310 * kern/emu/misc.c: Add missing license header.
20311
3169f4c7
RM
203122010-07-31 Robert Millan <rmh@gnu.org>
20313
20314 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
20315
20316 * include/grub/util/libnvpair.h: Include `<config.h>'.
20317 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
20318 declaring libnvpair prototypes ourselves.
20319 * include/grub/util/libzfs.h: Include `<config.h>'.
20320 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
20321 declaring libzfs prototypes ourselves.
20322
20323 (libzfs_handle): Moved to ...
20324 * include/grub/util/misc.h (libzfs_handle): ... here.
20325 Include `<grub/util/libzfs.h>'.
20326
c9a00aee
RM
203272010-07-30 Robert Millan <rmh@gnu.org>
20328
20329 * include/grub/emu/misc.h: Add missing license header.
20330
a184f9c8
RM
203312010-07-30 Robert Millan <rmh@gnu.org>
20332
20333 Enable `grub-probe -t device' resolution on ZFS.
20334
20335 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
20336 * include/grub/util/libnvpair.h: New file.
20337 * include/grub/util/libzfs.h: New file.
20338
20339 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
20340 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
20341 `<grub/util/libnvpair.h>'.
20342 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
20343
20344 (find_mount_point_from_dir): New static function.
20345 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
20346 function.
20347 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
20348 find_root_device_from_libzfs() before ressorting to find_root_device().
20349
20350 * include/grub/util/misc.h (grub_util_init_libzfs): New function
20351 prototype.
20352 * util/misc.c: Include `<grub/util/libzfs.h>'.
20353 (grub_util_init_libzfs): New function.
20354 [HAVE_LIBZFS] (libzfs_handle): New global variable.
20355 [HAVE_LIBZFS] (fini_libzfs): New static function.
20356 (grub_util_init_libzfs): New function.
20357 * util/grub-probe.c (main): Call grub_util_init_libzfs().
20358
f7790cdd
RM
203592010-07-30 Robert Millan <rmh@gnu.org>
20360
20361 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
20362 (xmalloc, xrealloc, xstrdup, xasprintf): Add
20363 `warn_unused_result' attribute.
20364 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
20365 (grub_xasprintf, grub_xvasprintf): Likewise.
20366 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
20367
0806b63c
RM
203682010-07-29 Robert Millan <rmh@gnu.org>
20369
20370 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
20371 (probe): Handle `PRINT_FS_LABEL'.
20372 (main): Handle `-t fs_label'.
20373
9f841f5c
RM
203742010-07-29 Robert Millan <rmh@gnu.org>
20375
20376 * configure.ac: Remove grub-mkisofs checks.
20377
46371121
VS
203782010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20379
20380 * util/ieee1275/grub-install.in: Don't use empty grub_device.
20381 Reported by: Lennart Sorensen.
20382
203832010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20384
20385 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
20386 prior to terminal_input/terminal_output separation. It's been over 1.5
20387 years and those versions weren't widely deployed.
20388
a9600892
CW
203892010-07-22 Colin Watson <cjwatson@ubuntu.com>
20390
20391 * disk/raid.c (insert_array): Don't count named arrays when looking
20392 for unused array numbers.
697e053c 20393 Reported and tested by: Michael Guntsche.
a9600892 20394
c03507df
CW
203952010-07-20 Colin Watson <cjwatson@ubuntu.com>
20396
20397 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
20398 implementation of this so that grub-emu links again, with a note
20399 that this should support hotplugging in the future.
20400
b26f1c11
CW
204012010-07-20 Colin Watson <cjwatson@ubuntu.com>
20402
20403 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20404
efc9d7f1
CW
204052010-07-20 Colin Watson <cjwatson@ubuntu.com>
20406
20407 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
20408 handle on failure.
20409 (grub_loopback_close): Remove empty function.
20410 (grub_loopback_dev): Remove close method.
20411
dd8ff5c9
CW
204122010-07-20 Colin Watson <cjwatson@ubuntu.com>
20413
20414 Disable EFI cursor when the EFI console becomes inactive.
20415
20416 * term/efi/console.c (grub_efi_console_init): New function.
20417 (grub_efi_console_fini): New function.
20418 (grub_console_term_output): Register init and fini methods.
20419
5e3bec67
VS
204202010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20421
20422 * tests/util/grub-shell-tester.in: Remove bashism and declare as
20423 sh script.
20424
afaec079
VS
204252010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20426
20427 * disk/loopback.c (grub_loopback): Replace filename with file.
20428 (delete_loopback): Handle new semantics.
20429 (grub_cmd_loopback): Likewise.
20430 (grub_loopback_iterate): Likewise.
20431 (grub_loopback_close): Likewise.
20432
a6a11f3c
VS
204332010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
20436 with -p "".
20437 Reported by: Tito Keitel.
20438
64a638b0
VS
204392010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20440
20441 * docs/grub.texi (Naming convention): Document new naming convention.
20442
ab8ba957
VS
204432010-07-20 Vadim Solomin <vadic052@gmail.com>
204442010-07-20 Colin Watson <cjwatson@ubuntu.com>
20445
20446 Generate device.map in something closer to the old ordering.
20447
20448 * util/deviceiter.c (struct device): New declaration.
20449 (compare_file_names): Rename to ...
20450 (compare_devices): ... this. Sort by kernel name in preference to
20451 the stable by-id name, but keep the latter as a fallback comparison.
20452 Update header comment.
20453 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
20454 of `struct device' rather than of plain file names.
20455
a29d6a4b
TF
204562010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
20457
20458 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
20459 on i386.
20460
39d824e8
VS
204612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20462
20463 * commands/acpi.c (setup_common_tables): Use sizeof instead of
20464 hardcoding size.
20465 (setv1table): Likewise.
20466
f058276b
FZ
204672010-07-20 Colin Watson <cjwatson@ubuntu.com>
20468
20469 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
20470 removing the homehost if present.
20471 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
20472 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
20473 removing the homehost if present.
20474 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
20475 if possible.
20476 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
20477
20478 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
20479 parameter. Set its pointer target to 0.
20480 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
20481 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
20482 `data_offset' value from the superblock for 1.x metadata.
20483 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
20484 data on the device.
20485 (insert_array): Record the start sector of data on the device.
20486 (grub_raid_register): Pass start_sector parameters to
20487 grub_raid_list->detect and insert_array.
20488 * include/grub/raid.h (struct grub_raid_array): Add start_sector
20489 member.
20490 (struct grub_raid): Add start_sector parameter to `detect'.
20491
20492 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
20493 __attribute__ ((packed)), leaving a comment.
20494 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
20495 (grub_mdraid_detect_09): ... here and ...
20496 (grub_mdraid_detect_1x): ... here.
20497
204982010-07-20 Peter Henn <peter.henn@web.de>
20499
20500 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
20501 chunk size and disk size, which are already given as sector counts
20502 as distinct from the 0.90 units. Fetch the correct device number
20503 from the role table instead of using the table index.
20504
205052010-07-20 Felix Zielcke <fzielcke@z-51.de>
20506
20507 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
20508 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
20509 (WriteMostly1): New macro.
20510 Set array->name to NULL for metadata format 0.90. Add support for
20511 metadata 1.x. Fix some comments.
20512 * disk/raid.c (): Add support for name based RAID arrays. Fix a
20513 few comments.
20514 * util/getroot.c (grub_util_get_grub_dev): Add support for
20515 /dev/md/name style devices.
20516
4b761da9
CW
205172010-07-20 Colin Watson <cjwatson@ubuntu.com>
20518
20519 * .bzrignore: Ignore 20_linux_xen.
20520
5771289a
CW
205212010-07-17 Colin Watson <cjwatson@ubuntu.com>
20522
20523 * util/import_unicode.py: Remove unnecessary imports.
20524
5dab68df
AN
205252010-07-17 Aleš Nesrsta <starous@volny.cz>
20526
20527 Hotplugging and USB hub support.
20528
20529 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
20530 (grub_ohci): Likewise.
20531 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
20532 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
20533 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
20534 (GRUB_OHCI_CTRL_EDS): Likewise.
20535 (GRUB_OHCI_BULK_EDS): Likewise.
20536 (GRUB_OHCI_TDS): Likewise.
20537 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
20538 (grub_ohci_ed_phys2virt): New function.
20539 (grub_ohci_virt_to_phys): Likewise.
20540 (grub_ohci_td_phys2virt): Likewise.
20541 (grub_ohci_td_virt2phys): Likewise.
20542 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
20543 attachment.
20544 (grub_ohci_find_ed): New function.
20545 (grub_ohci_alloc_td): Likewise.
20546 (grub_ohci_free_td): Likewise.
20547 (grub_ohci_free_tds): Likewise.
20548 (grub_ohci_transfer): Use previously allocated memory.
20549 (grub_ohci_portstatus): Reset status changed bit.
20550 (grub_ohci_detect_dev): Supply status changed.
20551 (grub_ohci_fini_hw): Free memory.
20552 (grub_ohci_restore_hw): Reallocate memory.
20553 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
20554 Reset status change.
20555 (grub_uhci_detect_dev): Supply status_change.
20556 * bus/usb/usb.c (attach_hooks): New var.
20557 (grub_usb_device_attach): New function.
20558 (grub_usb_register_attach_hook_class): Likewise.
20559 (grub_usb_unregister_attach_hook_class): Likewise.
20560 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
20561 (grub_usb_add_hub): Reset connection changed bit.
20562 (attach_root_port): New function.
20563 (grub_usb_root_hub): Likewise.
20564 (poll_nonroot_hub): Likewise.
20565 (grub_usb_poll_devices): Likewise.
20566 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
20567 * disk/usbms.c (grub_usbms_open): Use device hooks.
20568 (grub_usbms_iterate) :Poll devices.
20569 (grub_usbms_finddevs): Split into ...
20570 (grub_usbms_attach): ... this ...
20571 (grub_usbms_attach): ... and this.
20572 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
20573 in detect_dev.
20574 (grub_usb_interface): New fields attached and detach_hook.
20575 (grub_usb_attach_hook_class): New type.
20576 (grub_usb_attach_desc): New struct.
20577 (grub_usb_register_attach_hook_class): New function.
20578 (grub_usb_unregister_attach_hook_class): Likewise.
20579 (grub_usb_poll_devices): Likewise.
20580 (grub_usb_device_attach): Likewise.
20581 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
20582 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
20583
3222efaf
VS
205842010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20585
20586 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
20587 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
20588 delta determination style. Works with most NetBSD partitions too.
20589
139b714a
VS
205902010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
20593 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
20594
986aad56
VS
205952010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20596
20597 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
20598
99be513c
AB
205992010-07-14 Anton Blanchard <anton@samba.org>
20600
20601 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
20602 ET_DYN files.
20603
18075f62
GS
206042010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20605
20606 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
20607
8d9a5b15
GS
206082010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20609
20610 * kern/partition.c (grub_partition_check_containment): New function to
20611 check that a partition is physically contained in a parent. Since
20612 offsets are relative (and non-negative), this reduces to checking that
20613 the partition ends before its parent.
20614 (grub_partition_map_probe): Discard out-of-range sub-partitions.
20615 (grub_partition_iterate): Likewise.
20616 * include/grub/partition.h (grub_partition_map): Slightly more detailed
20617 comments.
20618 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
20619 partitions that start before their parent, and add debug printfs.
20620
19563c25
CW
206212010-07-13 Colin Watson <cjwatson@ubuntu.com>
20622
20623 * Makefile.in (.SUFFIX): Spell correctly, as ...
20624 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
20625 bare module name without `.mod', e.g. `test') tried to invoke a
20626 Modula-2 compiler.
20627
1a1f1e67
CW
206282010-07-13 Colin Watson <cjwatson@ubuntu.com>
20629
20630 * README: Point to the Info manual.
20631
811b0dca
JS
206322010-07-13 Jiro SEKIBA <jir@unicus.jp>
20633
20634 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
20635 2nd superblock position from partition size.
20636
e4f4eafc
CW
206372010-07-10 Colin Watson <cjwatson@ubuntu.com>
20638
20639 * Makefile.in (MAINTAINER_CLEANFILES): Remove
20640 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
20641 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
20642 outputs.
20643
4274c30f
VS
206442010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20645
20646 Restructure SCSI .id handling.
20647 Reported and tested by: Aleš Nesrsta.
20648
20649 * disk/ata.c (grub_atapi_close): Removed. All users updated.
20650 (grub_atapi_dev): Changed .name to "ata". New field .id.
20651 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
20652 (grub_usbms_dev): New field .id.
20653 * disk/scsi.c (grub_scsi_iterate): Generate name.
20654 (grub_scsi_open): Parse name.
20655 * include/grub/scsi.h (grub_make_scsi_id): New function.
20656 (grub_scsi_dev): Change iterate and open to number instead of naming
20657 busses. All users updated.
20658 (grub_scsi): Remove name. Add .bus.
20659
5bc24388
VS
206602010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20661
20662 * commands/help.c (grub_cmd_help): Fix a typo.
20663
249975ba
VS
206642010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20665
20666 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
20667 Reported and tested by: Colin Watson.
20668
3eaac1a1
VS
206692010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20670
20671 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
20672 in this context.
20673
becce1b1
VS
206742010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
20675
20676 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
20677
f7bf0918
CW
206782010-07-07 Colin Watson <cjwatson@ubuntu.com>
20679
20680 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
20681 indentation.
20682
0b0f9620
CW
206832010-07-06 Colin Watson <cjwatson@ubuntu.com>
20684
20685 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
20686 and disk/raid6_recover.c.
20687 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20688 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
20689
1e545469
CW
206902010-07-06 Colin Watson <cjwatson@ubuntu.com>
20691
20692 * term/gfxterm.c (repaint_schedulded): Rename to ...
20693 (repaint_scheduled): ... this. Update all callers.
20694 (repaint_was_schedulded): Rename to ...
20695 (repaint_was_scheduled): ... this. Update all callers.
20696
5357687a
CW
206972010-07-06 Colin Watson <cjwatson@ubuntu.com>
20698
20699 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
20700 which we expect to be handled by upper layers.
20701
29d7e783
BC
207022010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
20703
20704 * bus/usb/usbhub.c: #include time.h header.
20705
37582066
CW
207062010-07-06 Colin Watson <cjwatson@ubuntu.com>
20707
20708 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
20709 entry_name also for entries without stat blocks (e.g. ".."); fixes
20710 corruption of the first entry in a directory.
20711
c8c06953
CW
207122010-07-06 Colin Watson <cjwatson@ubuntu.com>
20713
20714 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
20715 after setting gfxterm as the active terminal. GRUB_BACKGROUND
20716 doesn't work otherwise.
20717
e75056f1
CW
207182010-07-05 Colin Watson <cjwatson@ubuntu.com>
20719
20720 * docs/grub.texi (Features): Update list of supported file systems.
20721 (GNU/Linux): Update for GRUB 2.
20722 (Serial terminal): Remove mention of --disable-serial, which was a
20723 GRUB Legacy configure option. Update instructions to use
20724 `terminal_input' and `terminal_output' rather than `terminal'.
20725 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
20726 configuration' and `Installing GRUB using grub-install'.
20727 (Menu entry editor): Update for GRUB 2.
20728 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
20729 Document new -a, -u, and -v options.
20730 (initrd): New section.
20731 (initrd16): New section.
20732 (linux): New section.
20733 (linux16): New section.
20734 (search): The `var' argument to `--set' is optional.
20735 (GRUB only offers a rescue shell): Go into a little more detail on
20736 drive ordering.
20737
5cf69151
CW
207382010-07-05 Colin Watson <cjwatson@ubuntu.com>
20739
20740 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
20741
e3f90044
CW
207422010-07-05 Colin Watson <cjwatson@ubuntu.com>
20743
20744 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
20745 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
20746
38d8f4f3
CW
207472010-07-05 Colin Watson <cjwatson@ubuntu.com>
20748
20749 * util/i386/pc/grub-setup.c (setup): Rename prefix to
20750 install_prefix, in line with install_dos_part and install_bsd_part.
20751 Add new prefix variable, which is copied to install_prefix after
20752 comparing core.img in memory with the one read from disk in the
20753 no-embedding case, and use that rather than overwriting
20754 install_prefix immediately when installing to a partition.
20755 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
20756 Bicakci.
20757
57ebd41e
GS
207582010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20759
20760 * configure.ac: Avoid == in test command, it's not portable.
20761 * util/grub.d/30_os-prober.in: Likewise.
20762
cb7f64b2
CW
207632010-07-04 Colin Watson <cjwatson@ubuntu.com>
20764
20765 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
20766
6b654bb0
GS
207672010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20768
20769 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
20770 multiple (top-level) partmaps.
20771
72a2026d
VS
207722010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20773
20774 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 20775 Reported by: Tino Keitel.
72a2026d 20776
df3eb88f
VS
207772010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20778
20779 Bidi and diacritics support.
20780
20781 * Makefile.in (widthspec.bin): New target.
20782 (widthspec.h): Likewise.
20783 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
20784 * autogen.sh: Generate unidata.c.
20785 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
20786 * commands/ls.c (grub_ls_list_devices): Likewise.
20787 (grub_ls_list_files): Likewise.
20788 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
20789 (grub_mini_cmd_lsmod): Likewise.
20790 * commands/read.c: Likewise.
20791 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
20792 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
20793 * lib/arg.c (grub_arg_show_help): Likewise.
20794 * lib/crypto.c (grub_password_get): Likewise.
20795 * normal/auth.c (grub_username_get): Likewise.
20796 * normal/misc.c (grub_normal_print_device_info): Likewise.
20797 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
20798 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
20799 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
20800 (normal/charset.c_DEPENDENCIES): New variable.
20801 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
20802 (pkglib_MODULES): Remove charset.mod.
20803 (charset_mod_SOURCES): Removed.
20804 (charset_mod_CFLAGS): Likewise.
20805 (charset_mod_LDFLAGS): Likewise.
20806 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
20807 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
20808 and term/tparm.c.
20809 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20810 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20811 (kernel_img_HEADERS): Add terminfo.h.
20812 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
20813 Fill ->font. Reverse ascii bitmaps.
20814 (grub_font_get_xheight): New function.
20815 * font/font.c (grub_font_get_string_width): Moved from here ...
20816 * gfxmenu/font.c (grub_font_get_string_width): ... here.
20817 * font/font.c (grub_font_draw_string): Moved from here ...
20818 * gfxmenu/font.c (grub_font_draw_string): ... here.
20819 * font/font.c (grub_font_dup_glyph): New function.
20820 (grub_font_blit_glyph): Likewise.
20821 (grub_font_blit_glyph_mirror): Likewise.
20822 (blit_comb): Likewise.
20823 (grub_font_construct_dry_run): Likewise.
20824 (grub_font_get_constructed_device_width): Likewise.
20825 (grub_font_construct_glyph): Likewise.
20826 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20827 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20828 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20829 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20830 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20831 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20832 (grub_font_get_xheight): New proto.
20833 (grub_font_get_constructed_device_width): Likewise.
20834 (grub_font_construct_glyph): Likewise.
20835 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20836 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20837 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20838 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20839 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20840 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20841 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20842 (grub_console_getcharwidth): Likewise.
20843 * include/grub/misc.h (grub_xputs): New proto.
20844 (grub_puts): Inlined.
20845 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20846 (grub_normal_get_line_counter): Removed.
20847 (grub_install_newline_hook): Likewise.
20848 (grub_normal_get_char_counter): New proto.
20849 (grub_normal_reset_more): Likewise.
20850 (grub_xputs_normal): Likewise.
20851 * include/grub/powerpc/ieee1275/console.h: Removed.
20852 * include/grub/sparc64/ieee1275/console.h: Likewise.
20853 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20854 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20855 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20856 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20857 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20858 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20859 (grub_term_input): Pass reference to self. All users updated.
20860 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20861 Pass reference to self. New fields normal_color, highlight_color and
20862 data. All users updated.
20863 (grub_putchar): Removed.
20864 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
20865 (grub_unicode_estimate_width): New function.
20866 (grub_term_getcharwidth): Add defaults.
20867 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
20868 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
20869 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
20870 (grub_cls): Remove EXPORT_FUNC.
20871 (grub_setcolorstate): Inline.
20872 (grub_newline_hook): Removed.
20873 * include/grub/terminfo.h: Rewritten. All users updated.
20874 * include/grub/unicode.h: New file.
20875 * include/grub/video.h (grub_video_signed_rect): New type.
20876 * kern/emu/console.c (grub_console_highlight_color): Removed.
20877 (grub_console_normal_color): Likewise.
20878 (grub_console_standard_color): Made static.
20879 (grub_ncurses_putchar): Remove mapping.
20880 (grub_ncurses_getcharwidth): Removed.
20881 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20882 (grub_ncurses_setcolor): Removed.
20883 (grub_ncurses_getcolor): Likewise.
20884 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20885 (grub_console_putchar): ... this.
20886 (grub_console_putchar): Handle argument difference.
20887 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20888 console_init_early and console_init_lately.
20889 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20890 * kern/misc.c (grub_puts): Removed.
20891 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20892 (grub_vsnprintf_real): Remove str = NULL support.
20893 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20894 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20895 * kern/term.c (grub_putcode): Renamed to ...
20896 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20897 (grub_putchar): Removed.
20898 (grub_xputs_dumb): New function.
20899 (grub_xputs): New variable.
20900 * lib/charset.c: Move from here ...
20901 * normal/charset.c: ... to here.
20902 (grub_ucs4_to_utf8): New function.
20903 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20904 (join_types): New variable.
20905 (unpack_join): New function.
20906 (bidi_types): New variable.
20907 (unpack_bidi): New function.
20908 (get_bidi_type): Likewise.
20909 (get_join_type): Likewise.
20910 (is_mirrored): Likewise.
20911 (grub_unicode_get_comb_type): Likewise.
20912 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20913 (is_type_after): Likewise.
20914 (grub_unicode_aglomerate_comb): Likewise.
20915 (bidi_line_wrap): Likewise.
20916 (grub_bidi_line_logical_to_visual): Likewise.
20917 (grub_bidi_logical_to_visual): Likewise.
20918 (grub_unicode_mirror_code): Likewise.
20919 (grub_unicode_shape_code): Likewise.
20920 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20921 Don't use grub_putchar.
20922 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20923 (grub_normal_reader_init): Likewise.
20924 (grub_xputs_saved): New variable.
20925 (GRUB_MOD_INIT): Set grub_xputs.
20926 (GRUB_MOD_FINI): Restore grub_xputs.
20927 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20928 (menu_init): Avoid printing gfxmenu error.
20929 (show_menu): Use grub_normal_get_char_counter.
20930 * normal/menu_entry.c (update_screen): Fix out-of-array.
20931 (complete): Avoid NULL dereferencing.
20932 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20933 * normal/menu_text.c (print_spaces): Removed.
20934 (grub_print_ucs4): Likewise.
20935 (grub_print_message_indented): Use grub_print_ucs4.
20936 (print_message): Use grub_putcode.
20937 (print_entry): Hanlde diacritics.
20938 * normal/term.c (term_state): New type.
20939 (grub_more_lines): Removed.
20940 (term_states): New variable.
20941 (grub_normal_line_counter): Renamed to ..
20942 (grub_normal_char_counter): ...this. All users updated.
20943 (grub_normal_get_line_counter): Renamed to ...
20944 (grub_normal_get_char_counter): ... this.
20945 (grub_normal_reset_more): New function.
20946 (process_newline): Removed.
20947 (print_more): New function.
20948 (grub_install_newline_hook): Removed.
20949 (map_code): New function.
20950 (grub_puts_terminal): Use grub_print_ucs4.
20951 (putglyph): New function.
20952 (putcode_real): Likewise.
20953 (grub_putcode): Use putcode_real.
20954 (get_maxwidth): New function.
20955 (get_startwidth): Likewise.
20956 (print_ucs4_terminal): Likewise.
20957 (find_term_state): Likewise.
20958 (put_glyphs_terminal): Likewise.
20959 (print_backlog): Likewise.
20960 (print_ucs4_real): Likewise.
20961 (grub_print_ucs4): Likewise.
20962 (grub_xputs_normal): Likewise.
20963 * term/efi/console.c (grub_console_putchar): Output diacritics.
20964 (grub_console_getcharwidth): Removed.
20965 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20966 * term/gfxterm.c (clear_char): Free chars.
20967 (scroll_up): Avoid leaking memory.
20968 (grub_gfxterm_putchar): Support diacritics.
20969 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20970 * term/i386/pc/console.c (grub_console_term_output): Declare as
20971 GRUB_TERM_CODE_TYPE_VGA.
20972 * term/i386/pc/vga.c (grub_vga_term): Declare as
20973 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20974 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20975 GRUB_TERM_CODE_TYPE_VGA.
20976 * term/i386/vga_common.c (map_char): Removed.
20977 (grub_console_putchar): Likewise.
20978 (grub_console_getcharwidth): Likewise.
20979 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20980 (colors): Reordered to match terminfo.
20981 (grub_ofconsole_normal_color): Removed.
20982 (grub_ofconsole_writeesc): Likewise.
20983 (grub_ofconsole_highlight_color): Likewise.
20984 (grub_ofconsole_getcharwidth): Likewise.
20985 (grub_ofconsole_setcolorstate): Likewise.
20986 (grub_ofconsole_setcolor): Likewise.
20987 (grub_ofconsole_getcolor): Likewise.
20988 (grub_ofconsole_readkey): Renamed to ...
20989 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20990 key.
20991 (grub_ofconsole_checkkey): Removed.
20992 (grub_ofconsole_getkey): Likewise.
20993 (grub_ofconsole_getxy): Likewise.
20994 (grub_ofconsole_gotoxy): Likewise.
20995 (grub_ofconsole_cls): Likewise.
20996 (grub_ofconsole_refresh): Likewise.
20997 (grub_ofconsole_terminfo_input): New struct.
20998 (grub_ofconsole_terminfo_output): Likewise.
20999 (grub_ofconsole_term_input): Use terminfo.
21000 (grub_ofconsole_term_output): Likewise.
21001 (grub_console_init): Split into ...
21002 (grub_console_init_early): ...this and ...
21003 (grub_console_init_lately): ...this. Use terminfo.
21004 (grub_ofconsole_putchar): Renamed to ...
21005 (put): ... this. Remove mapping.
21006 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21007 * term/serial.c: Simplify using terminfo.
21008 (xpos): Removed.
21009 (ypos): Likewise.
21010 (keep_track): Likewise.
21011 (registered): Likewise.
21012 (input_buf): Likewise.
21013 (npending): Likewise.
21014 (serial_translate_key_sequence): Likewise.
21015 (fill_input_buf): Likewise.
21016 (grub_serial_checkkey): Likewise.
21017 (grub_serial_getkey): Likewise.
21018 (grub_serial_getxy): Likewise.
21019 (grub_serial_gotoxy): Likewise.
21020 (grub_serial_putchar): Likewise.
21021 (grub_serial_cls): Likewise.
21022 (grub_serial_setcolorstate): Likewise.
21023 (grub_serial_setcursor): Likewise.
21024 (serial_hw_init): Use serial_hw_fetch.
21025 (grub_serial_terminfo_input): New variable.
21026 (grub_serial_terminfo_output): Likewise.
21027 (grub_serial_term_input): Use terminfo.
21028 (grub_serial_term_output): Likewise.
21029 * term/terminfo.c (putstr): Use put.
21030 (grub_terminfo_all_free): New function
21031 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21032 (grub_terminfo_output_register): New function.
21033 (grub_terminfo_output_unregister): Likewise.
21034 (grub_terminfo_getxy): Likewise.
21035 (grub_terminfo_readkey): Likewise.
21036 (grub_terminfo_checkkey): Likewise.
21037 (grub_terminfo_getkey): Likewise.
21038 (grub_terminfo_input_init): Likewise.
21039 (print_terminfo): Likewise.
21040 (grub_cmd_terminfo): Handle encoding.
21041 (grub_terminfo_gotoxy): Track position.
21042 (grub_terminfo_cls): Likewise.
21043 (grub_terminfo_putchar): Likewise.
21044 (grub_terminfo_setcolorstate): Handle colors
21045 (grub_terminfo_cursor_on): This ...
21046 (grub_terminfo_cursor_off): ... and this merged into ...
21047 (grub_terminfo_setcursor): ... this.
21048 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21049 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21050 * unicode/BidiMirroring.txt: Likewise.
21051 * unicode/UnicodeData.txt: Likewise.
21052 * unicode/COPYING: Likewise.
21053 * util/grub-editenv.c (grub_putchar): Removed.
21054 (grub_xputs_real): New function.
21055 (grub_xputs): New variable.
21056 * util/grub-fstest.c (grub_putchar): Removed.
21057 (grub_xputs_real): New function.
21058 (grub_xputs): New variable.
21059 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21060 (grub_xputs_real): New function.
21061 (grub_xputs): New variable.
21062 * util/grub-probe.c (grub_putchar): Removed.
21063 (grub_xputs_real): New function.
21064 (grub_xputs): New variable.
21065 * util/grub-script-check.c (grub_putchar): Removed.
21066 (grub_xputs_real): New function.
21067 (grub_xputs): New variable.
21068 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21069 (grub_xputs_real): New function.
21070 (grub_xputs): New variable.
21071 * util/import_unicode.py: New file.
21072 * util/grub-mkfont.c (ft_errmsgs): New array.
21073 (grub_glyph_info): Make bitmap a pointer.
21074 (file_formats): New type WIDTH_SPEC.
21075 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21076 (options): Add width-spec.
21077 (help): Likewise.
21078 (add_char): Renamed to ...
21079 (add_glyph): ... this.
21080 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21081 (glyph_replace): New type.
21082 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21083 (add_char): New function.
21084 (add_subst): Likewise.
21085 (process_cursive): Likewise.
21086 (add_font): Handle GSUB.
21087 (write_font_width_spec): New function.
21088 (main): Sort glyphs.
21089 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21090 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21091 * kern/term.c (grub_cls): Moved from here...
21092 * normal/term.c (grub_cls): ... here.
21093
50f0bcda
CW
210942010-07-02 Colin Watson <cjwatson@ubuntu.com>
21095
21096 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21097 suitable for using within the format argument of printf when
21098 converting grub_size_t.
21099 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21100 "x" to convert grub_size_t arguments.
21101
40372103
VS
211022010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21105 too long captions.
21106 (list_get_minimal_size): Take selection box into account.
21107
942a10c7
VS
211082010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21109
21110 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21111 NULL font.
21112
2bdb2892
CW
211132010-07-02 Colin Watson <cjwatson@ubuntu.com>
21114
21115 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21116 devices when iterating over /dev/disk/by-id; they will be handled
21117 later if appropriate, which they aren't always (e.g. LVM).
21118
e03ed6c1
CW
211192010-07-02 Colin Watson <cjwatson@ubuntu.com>
21120
21121 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21122 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21123 fails.
21124 (grub_halt): Likewise.
21125 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21126 reset-all fails.
21127 (grub_halt): Don't return, even if all of shut-down, power-off, and
21128 poweroff fail.
21129
47695765
CW
211302010-07-02 Colin Watson <cjwatson@ubuntu.com>
21131
21132 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21133 arguments, not three.
21134
507736c8
CW
211352010-07-02 Colin Watson <cjwatson@ubuntu.com>
21136
21137 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21138 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21139 LVM-on-RAID is handled correctly.
21140
e3c8cd37
CW
211412010-07-02 Colin Watson <cjwatson@ubuntu.com>
21142
21143 * docs/grub.texi (Changes from GRUB Legacy): New section.
21144 (Future): Fix typo.
21145
8d4a2fec
CW
211462010-07-02 Colin Watson <cjwatson@ubuntu.com>
21147
21148 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21149 grub.d/README accidentally ends up executable for one reason or
21150 another. Ignore it.
21151
1c4827be
VS
211522010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21155 (gpt_partition_map_iterate): Support non-512B sectors.
21156
d9a0c941
VS
211572010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21158
21159 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21160 Tested by: Seth Goldberg.
21161
48f27e87
VS
211622010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21165 Properly align mbi.
21166 Reported by: Seth Goldberg.
21167
b0c4f956
VS
211682010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21169
21170 * util/grub-mkrescue.in: Avoid module duplication.
21171
105a2e8c
SF
211722010-07-01 Sean Finney <seanius@seanius.net>
21173
21174 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21175
5944958c
SF
211762010-07-01 Sean Finney <seanius@seanius.net>
21177
21178 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21179
211802010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21181
21182 * disk/lvm.c (grub_lvm_checkvalue): New function.
21183 (grub_lvm_check_flag): Likewise.
21184
b79889ba
RM
211852010-07-01 Robert Millan <rmh@gnu.org>
21186
21187 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21188 Support 'p' as partition separator on kernel of FreeBSD (used
21189 with GPT labels).
21190 (grub_util_biosdisk_get_grub_dev): Likewise.
21191
ec1d04f1
VS
211922010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21193
21194 Yeeloong firmware port.
21195
21196 * boot/mips/yeeloong/fwstart.S: New file.
21197 * bus/cs5536.c (gpiodump): New const.
21198 (set_io_space): New function.
21199 (set_iod): Likewise.
21200 (set_p2d): Likewise.
21201 (grub_cs5536_init_geode): Likewise.
21202 * commands/mips/yeeloong/lsspd.c: New file.
21203 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21204 (serial_mod_SOURCES): New variable.
21205 (serial_mod_CFLAGS): Likewise.
21206 (serial_mod_LDFLAGS): Likewise.
21207 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21208 term/terminfo.c and term/tparm.c.
21209 (pkglib_IMAGES): Add fwstart.img.
21210 (fwstart_img_SOURCES): New variable.
21211 (fwstart_img_CFLAGS): Likewise.
21212 (fwstart_img_ASFLAGS): Likewise.
21213 (fwstart_img_LDFLAGS): Likewise.
21214 (fwstart_img_FORMAT): Likewise.
21215 (pkglib_MODULES): Add lsspd.mod.
21216 (lsspd_mod_SOURCES): New variable.
21217 (lsspd_mod_CFLAGS): Likewise.
21218 (lsspd_mod_LDFLAGS): Likewise.
21219 (pkglib_MODULES): Add halt.mod.
21220 (halt_mod_SOURCES): New variable.
21221 (halt_mod_CFLAGS): Likewise.
21222 (halt_mod_LDFLAGS): Likewise.
21223 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21224 (serial_mod_SOURCES): Removed.
21225 (serial_mod_CFLAGS): Likewise.
21226 (serial_mod_LDFLAGS): Likewise.
21227 * disk/ata.c (check_device): New function.
21228 (grub_ata_device_initialize): Use check_device.
21229 (grub_ata_iterate): Recheck devices.
21230 (grub_ata_open): Likewise.
21231 (grub_atapi_iterate): Likewise.
21232 (grub_atapi_open): Likewise.
21233 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21234 (GRUB_ATA_CH1_PORT1): Likewise.
21235 (GRUB_ATA_CH0_PORT2): Likewise.
21236 (GRUB_ATA_CH1_PORT2): Likewise.
21237 * include/grub/mips/loongson.h: New file.
21238 * include/grub/mips/yeeloong/ec.h: Likewise.
21239 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21240 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21241 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21242 * include/grub/misc.h (grub_halt): Declare as noreturn.
21243 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21244 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21245 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21246 (UART_ENABLE_DTRRTS): Likewise.
21247 (UART_ENABLE_MODEM): Removed.
21248 (UART_ENABLE_OUT2): New const.
21249 * include/grub/term.h (grub_term_register_input_active): New function.
21250 (grub_term_register_output_active): Likewise.
21251 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21252 argument.
21253 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21254 (init_pci): New function.
21255 (grub_machine_init): Execute platform init when firmware. Init serial.
21256 (grub_halt): Implement.
21257 (grub_exit): Likewise.
21258 (grub_reboot): Likewise.
21259 * term/serial.c (serial_hw_init): Update macros.
21260 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21261 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21262 (image_targets): New target mipsel-yeeloong-flash.
21263 (generate_image): Support IMAGE_YEELOONG_FLASH.
21264 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21265 (grub_video_sm712_setup): Init card.
21266 (grub_video_sm712_set_palette): Removed.
21267 * video/sm712_init.c: New file.
21268
ff4a70d2
CW
212692010-06-30 Colin Watson <cjwatson@ubuntu.com>
21270
21271 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21272 PATH when running help2man and then run it on the unadorned
21273 executable names, rather than passing $(builddir)/* paths to
21274 help2man. This avoids the build directory ending up in generated
21275 manual pages.
21276
1246efeb
CW
212772010-06-29 Colin Watson <cjwatson@ubuntu.com>
21278
21279 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21280 to avoid accidents when debugging with 'sh -x'.
21281 * util/grub-mkrescue.in: Likewise.
21282 * util/grub.d/00_header.in: Likewise.
21283 * util/grub.d/10_hurd.in: Likewise.
21284 * util/grub.d/10_kfreebsd.in: Likewise.
21285 * util/grub.d/10_linux.in: Likewise.
21286 * util/grub.d/10_netbsd.in: Likewise.
21287 * util/grub.d/10_windows.in: Likewise.
21288 * util/grub.d/20_linux_xen.in: Likewise.
21289 * util/grub.d/30_os-prober.in: Likewise.
21290 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21291
1ba9b889
CW
212922010-06-29 Colin Watson <cjwatson@ubuntu.com>
21293
21294 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21295 last character in the buffer.
21296 Reported by: Vladimir Serbinenko.
21297
dccaf99d
RM
212982010-06-29 Robert Millan <rmh@gnu.org>
21299
21300 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21301 (Command-line and menu entry commands): Document `badram' command.
21302
d500ed12
RM
213032010-06-28 Robert Millan <rmh@gnu.org>
21304
21305 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
21306 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
21307 command using ${GRUB_BADRAM} as parameter.
21308
20bc84a6
CW
213092010-06-28 Colin Watson <cjwatson@ubuntu.com>
21310
21311 * docs/grub.texi (Device map): New section.
21312 (Themes): New section (stub).
21313 * Makefile.in (docs/grub.info): The info documentation now builds
21314 without errors. Make sure it stays that way.
21315
4045dee1
VS
213162010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 Use normal parser for menu entries.
21319 Reported by: Thomas Frauendorfer
21320
21321 * include/grub/parser.h (grub_parser_execute): Don't export.
21322 * normal/menu.c (grub_menu_execute_entry_real): New function.
21323 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
21324
bca58c7b
CW
213252010-06-28 Colin Watson <cjwatson@ubuntu.com>
21326
21327 * docs/grub.texi (Embedded configuration): New section (replacing
21328 old "Preset Menu" stub).
21329 (Images): New section.
21330 (configfile): Note that any menu entries defined in `file' are shown
21331 immediately.
21332
dec53e63
JT
213332010-06-28 Josh Triplett <josh@joshtriplett.org>
21334
21335 * mmap/i386/pc/mmap_helper.S: Set CF on return.
21336
c06e40f7
CW
213372010-06-28 Colin Watson <cjwatson@ubuntu.com>
21338
21339 * util/grub-install.in: Add --debug-image= option.
21340
cb88052b
CW
213412010-06-28 Colin Watson <cjwatson@ubuntu.com>
21342
21343 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
21344 possible on Linux.
21345
21346 * util/deviceiter.c (check_device): Rename to ...
21347 (check_device_readable_unique): ... this. Update all callers.
21348 Maintain and check a list of which devices (by canonicalized name)
21349 have already been seen.
21350 (clear_seen_devices): New function.
21351 (compare_file_names) [__linux__]: New function.
21352 (grub_util_iterate_devices): Clear the list of seen devices on exit
21353 and (just in case) on entry.
21354 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
21355 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
21356 seen-devices list, superseded by general code in check_device.
21357
bbe34652
CW
213582010-06-28 Colin Watson <cjwatson@ubuntu.com>
21359
21360 * commands/cat.c (options): New variable.
21361 (grub_cmd_cat): Parse options. If the --dos option is given, print
21362 DOS-style "\r\n" line endings as simple newlines (Debian bug
21363 #586358).
21364 (GRUB_MOD_INIT): Use extcmd.
21365 (GRUB_MOD_FINI): Likewise.
21366 * docs/grub.texi (cat): Document --dos.
21367
412e09f3
VS
213682010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21369
21370 XEN with Linux grub-mkconfig support.
21371
21372 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
21373 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
21374 GRUB_CMDLINE_XEN_DEFAULT.
21375 * util/grub.d/20_linux_xen.in: New file.
21376
53f3ef38 213772010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
21378
21379 Initialise VGA video on qemu ourselves.
21380
21381 * boot/i386/qemu/boot.S: Don't call 0xc000.
21382 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
21383 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
21384 (kernel_img_HEADERS): Add pci.h.
21385 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
21386 * configure.ac: Force unifont on qemu and yeeloong.
21387 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21388 (grub_vga_palette_write): Use correct register.
21389 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
21390 Call grub_qemu_init_cirrus.
21391 * kern/i386/qemu/init.c: New file.
21392 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
21393
21394 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
21395
c75be4fb
PR
213962010-06-26 Pavel Roskin <proski@gnu.org>
21397
21398 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
21399 13.
21400
d8034603
CW
214012010-06-26 Colin Watson <cjwatson@ubuntu.com>
21402
21403 * docs/grub.texi (Simple configuration): Explain that
21404 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
21405 set to `true' to disable their respective recovery entries, not
21406 merely set.
21407
3fa06487
CW
214082010-06-26 Colin Watson <cjwatson@ubuntu.com>
21409
21410 Make the `source' command slightly faster.
21411
21412 * normal/main.c (grub_normal_execute): Don't re-read list files when
21413 nested.
21414
e9b29642
CW
214152010-06-23 Colin Watson <cjwatson@ubuntu.com>
21416
21417 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
21418 field position and mask size to red fields from mode_info, not
21419 green.
21420 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
21421 Remove redundant tag->common.framebuffer_type assignment.
21422 Reported by: Seth Goldberg.
21423
e726542f
CW
214242010-06-23 Colin Watson <cjwatson@ubuntu.com>
21425
21426 Sync up other versions of the Linux loader with Robert Millan's
21427 change of 2010-01-09, "Make loader output a bit more user-friendly".
21428
21429 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
21430 grub_dprintf().
21431 (grub_cmd_linux): Likewise.
21432 (grub_cmd_initrd): Likewise.
21433 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
21434 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21435
d6e98a17
CW
214362010-06-21 Colin Watson <cjwatson@ubuntu.com>
21437
21438 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
21439 larger than MEMORY_MAP_SIZE.
21440
14d3f08e
BC
214412010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
21442
21443 Fix parallel build.
21444
21445 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
21446 dependency.
21447 * script/parser.y: #include grub_script.tab.h header.
21448
4f9613a3
VS
214492010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21450
21451 Support >3GiB and <16MiB RAM in i386-qemu.
21452
21453 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
21454 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
21455 (grub_lower_mem): Removed.
21456 (grub_upper_mem): Likewise.
21457 (mem_size): Made static.
21458 (above_4g): New variable.
21459 (grub_machine_mmap_init): Detect small mem_size and above_4g.
21460 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
21461 support.
21462
05e51879
VS
214632010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21464
21465 Cirrus 5446 and Bochs video cards support.
21466
21467 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
21468 video_bochs.mod
21469 (video_cirrus_mod_SOURCES): New variable.
21470 (video_cirrus_mod_CFLAGS): Likewise.
21471 (video_cirrus_mod_LDFLAGS): Likewise.
21472 (video_bochs_mod_SOURCES): Likewise.
21473 (video_bochs_mod_CFLAGS): Likewise.
21474 (video_bochs_mod_LDFLAGS): Likewise.
21475 * include/grub/vga.h: New file.
21476 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
21477 (grub_video_fb_set_page_t): New type.
21478 (grub_video_fb_setup): New prototype.
21479 (grub_video_fb_swap_buffers): Likewise.
21480 (grub_video_fb_get_info_and_fini): Likewise.
21481 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
21482 (CRTC_DATA_PORT): Likewise.
21483 (CRTC_CURSOR): Likewise.
21484 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21485 (CRTC_CURSOR_ADDR_LOW): Likewise.
21486 (CRTC_CURSOR_DISABLE): Likewise.
21487 (update_cursor): Use grub_vga_cr_write.
21488 (grub_vga_text_setcursor): Likewise.
21489 * video/bochs.c: New file.
21490 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
21491 (palette): Likewise.
21492 (palette_size): Likewise.
21493 (framebuffer): New variable.
21494 (grub_video_fb_init): Use 'framebuffer'.
21495 (grub_video_fb_fini): Likewise.
21496 (grub_video_fb_get_info): Likewise.
21497 (grub_video_fb_get_palette): Likewise.
21498 (grub_video_fb_set_palette): Likewise.
21499 (grub_video_fb_set_viewport): Likewise.
21500 (grub_video_fb_get_viewport): Likewise.
21501 (grub_video_fb_map_color): Likewise.
21502 (grub_video_fb_map_rgb): Likewise.
21503 (grub_video_fb_map_rgba): Likewise.
21504 (grub_video_fb_unmap_color): Likewise.
21505 (grub_video_fb_unmap_color_int): Likewise.
21506 (grub_video_fb_fill_rect): Likewise.
21507 (grub_video_fb_blit_bitmap): Likewise.
21508 (grub_video_fb_blit_render_target): Likewise.
21509 (grub_video_fb_scroll): Likewise.
21510 (grub_video_fb_create_render_target): Likewise.
21511 (grub_video_fb_doublebuf_blit_init): Likewise.
21512 (grub_video_fb_set_active_render_target): Handle doublebuffering.
21513 (doublebuf_pageflipping_update_screen): New function.
21514 (doublebuf_pageflipping_init): Likewise.
21515 (grub_video_fb_setup): Likewise.
21516 (grub_video_fb_swap_buffers): Likewise.
21517 (grub_video_fb_get_info_and_fini): Likewise.
21518 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
21519 All users updated.
21520 (doublebuf_pageflipping_commit): Restructured into ...
21521 (doublebuf_pageflipping_set_page): ... this.
21522 (doublebuf_pageflipping_update_screen): Removed.
21523 (doublebuf_pageflipping_init): Likewise.
21524 (double_buffering_init): Likewise.
21525 (grub_video_vbe_setup): Use grub_video_fb_setup.
21526 (grub_video_vbe_swap_buffers): Removed.
21527 (grub_video_vbe_set_active_render_target): Likewise.
21528 (grub_video_vbe_get_active_render_target): Likewise.
21529 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
21530 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
21531 grub_video_fb_set_active_render_target and
21532 grub_video_fb_get_active_render_target.
21533 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
21534 (SEQUENCER_DATA_PORT): Likewise.
21535 (MAP_MASK_REGISTER): Likewise.
21536 (CRTC_ADDR_PORT): Likewise.
21537 (CRTC_DATA_PORT): Likewise.
21538 (START_ADDR_HIGH_REGISTER): Likewise.
21539 (START_ADDR_LOW_REGISTER): Likewise.
21540 (GRAPHICS_ADDR_PORT): Likewise.
21541 (GRAPHICS_DATA_PORT): Likewise.
21542 (READ_MAP_REGISTER): Likewise.
21543 (INPUT_STATUS1_REGISTER): Likewise.
21544 (INPUT_STATUS1_VERTR_BIT): Likewise.
21545 (get_map_mask): Use grub_vga_sr_read.
21546 (set_map_mask): Use grub_vga_sr_write.
21547 (set_read_map): Use grub_vga_gr_write.
21548 (set_start_address): Use grub_vga_cr_write.
21549 * video/sm712.c (framebuffer): Remove leftover fields.
21550
4321c64a
CW
215512010-06-20 Colin Watson <cjwatson@ubuntu.com>
21552
21553 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
21554 setting GRUB_VIDEO_BACKEND. Make it available as a user override
21555 instead. Replace the gfxterm backend check with a check that
21556 ${GRUB_PREFIX}/video.lst is non-empty.
21557 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
21558 again.
21559 (load_video): New generated function. Call it before loading
21560 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
21561 * util/grub.d/10_linux.in (linux_entry): Call load_video.
21562 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
21563 * docs/grub.texi (Simple configuration): Document
21564 GRUB_VIDEO_BACKEND.
21565
215662010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 Use video functions in linux and xnu loaders.
21569
21570 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
21571 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
21572 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
21573 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
21574 loader/i386/pc/linux.c.
21575 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
21576 (find_line_len): Removed.
21577 (find_framebuf): Likewise.
21578 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
21579 * loader/i386/efi/xnu.c: Removed.
21580 * loader/i386/pc/xnu.c: Moved from here...
21581 * loader/i386/xnu.c: ...here.
21582
21583 Enable priorities in video drivers.
21584
21585 * include/grub/video.h (grub_video_adapter_prio_t): New type.
21586 (grub_video_adapter): New field prio.
21587 (grub_video_register): Respect prio when inserting.
21588 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
21589 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
21590 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
21591 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
21592 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
21593 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
21594 * video/sm712.c (grub_video_sm712_adapter): Likewise.
21595
21596 Fix SDL driver ID.
21597
21598 * include/grub/video.h (grub_video_driver_id_t): New value
21599 GRUB_VIDEO_DRIVER_SDL.
21600 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
21601
7d24e434
CW
216022010-06-17 Colin Watson <cjwatson@ubuntu.com>
21603
21604 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
21605 argument to printf.
21606 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21607
c88a83f6
CW
216082010-06-17 Colin Watson <cjwatson@ubuntu.com>
21609
21610 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
21611 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21612
094dfb69
CW
216132010-06-17 Colin Watson <cjwatson@ubuntu.com>
21614
21615 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
21616 directly, and recommend grub-install instead.
21617 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21618
2164da6b
CW
216192010-06-17 Colin Watson <cjwatson@ubuntu.com>
21620
21621 Fix i386-pc prefix handling with nested partitions (Debian bug
21622 #585068). Note that the case where the core image is booted using
21623 multiboot and relocated from its original location still requires
21624 more work.
21625
21626 * kern/i386/pc/init.c (make_install_device): If the prefix starts
21627 with "(,", fill the boot drive in between those two characters, but
21628 expect that a full partition specification including partition map
21629 names will follow.
21630 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
21631 specified, write a prefix without the drive name but including a
21632 full partition specification.
21633
044e2e60
CW
216342010-06-16 Colin Watson <cjwatson@ubuntu.com>
21635
21636 * util/grub-mkconfig.in: Ignore non-option arguments, for
21637 compatibility with older versions (before 2010-06-12) which did the
21638 same. In particular, this makes it easier to ship an update-grub
21639 wrapper which is compatible with that used with GRUB Legacy (Debian
21640 bug #586056).
21641
5591324f
GS
216422010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21643
21644 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
21645 for manual page generation.
21646
662e24d5
GS
216472010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21648
21649 * po/POTFILES: Remove leftover commands/handler.c.
21650
8d70754e
CW
216512010-06-14 Colin Watson <cjwatson@ubuntu.com>
21652
21653 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
21654 left this script non-functional.
21655
41160e2e
CW
216562010-06-14 Colin Watson <cjwatson@ubuntu.com>
21657
21658 * docs/man/grub-emu.h2m: New file.
21659
b5309cc1
CW
216602010-06-13 Colin Watson <cjwatson@ubuntu.com>
21661
21662 * docs/grub.texi (Commands): Document reduced command set in rescue
21663 mode.
21664 (cpuid): New section.
21665
fcb2d090
GS
216662010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
21667
21668 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
21669 new partition naming style.
21670 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
21671
96e5c556
BC
216722010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
21673
21674 Add "-o grub.iso" like cmdline options support.
21675
21676 * util/grub-install.in: Improve cmdline option parsing.
21677 * util/grub-mkconfig.in: Likewise.
21678 * util/grub-mkrescue.in: Likewise.
21679 * util/grub-reboot.in: Likewise.
21680 * util/grub-set-default.in: Likewise.
21681 * util/i386/efi/grub-install.in: Likewise.
21682 * util/ieee1275/grub-install.in: Likewise.
21683 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21684
c16be99b
CW
216852010-06-12 Colin Watson <cjwatson@ubuntu.com>
21686
21687 * .bzrignore: Ignore 41_custom.
21688
ce08a9fb
TS
216892010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21690
21691 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
21692
7beac90c
CW
216932010-06-12 Colin Watson <cjwatson@ubuntu.com>
21694
21695 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
21696 prototype declarations.
21697
21698 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
21699 generating fs, partmap, and video lists.
21700 * include/grub/fs.h (grub_fs_register): Omit prototype if
21701 GRUB_LST_GENERATOR is defined.
21702 * include/grub/partition.h (grub_partition_map_register): Likewise.
21703 * include/grub/video.h (grub_video_register): Likewise.
21704
1c8f0f8d
JM
217052010-06-12 Javier Martín <lordhabbit@gmail.com>
21706
21707 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
21708
a6085973
TS
217092010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21710
21711 * util/grub-mkrescue.in: Support --xorriso argument.
21712
25c56d29
VS
217132010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
21716 Suggested by: Thomas Schmitt.
21717
e03e4b24
VS
217182010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21719
21720 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
21721 Suggested by: Thomas Schmitt.
21722
57711df6
VS
217232010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21724
21725 custom.cfg support.
21726
21727 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
21728 * util/grub.d/41_custom.in: New file.
21729
ee62c427
CW
217302010-06-12 Colin Watson <cjwatson@ubuntu.com>
21731
21732 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21733 been merged back into normal.
21734
283af07a
CW
217352010-06-11 Colin Watson <cjwatson@ubuntu.com>
21736
21737 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
21738 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
21739
56a0d956
CW
217402010-06-11 Colin Watson <cjwatson@ubuntu.com>
21741
21742 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
21743 when generating manual pages.
21744 * docs/man/grub-bin2h.h2m: New file.
21745 * docs/man/grub-editenv.h2m: New file.
21746 * docs/man/grub-fstest.h2m: New file.
21747 * docs/man/grub-install.h2m: New file.
21748 * docs/man/grub-macho2img.h2m: New file.
21749 * docs/man/grub-mkconfig.h2m: New file.
21750 * docs/man/grub-mkdevicemap.h2m: New file.
21751 * docs/man/grub-mkfont.h2m: New file.
21752 * docs/man/grub-mkimage.h2m: New file.
21753 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
21754 * docs/man/grub-mkrelpath.h2m: New file.
21755 * docs/man/grub-mkrescue.h2m: New file.
21756 * docs/man/grub-ofpathname.h2m: New file.
21757 * docs/man/grub-pe2elf.h2m: New file.
21758 * docs/man/grub-probe.h2m: New file.
21759 * docs/man/grub-reboot.h2m: New file.
21760 * docs/man/grub-script-check.h2m: New file.
21761 * docs/man/grub-set-default.h2m: New file.
21762 * docs/man/grub-setup.h2m: New file.
21763
3a37e322
VS
217642010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
21765
21766 Use FOR_* macros instead of *_iterate whenever possible.
21767
21768 * commands/handler.c: Removed.
21769 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
21770 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
21771 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21772 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
21773 (grub_probe_SOURCES): Remove kern/parser.c.
21774 (util/grub-script-check.c_DEPENDENCIES): Removed.
21775 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
21776 and grub_script_check_init.c.
21777 (grub_script_check_init.lst): Removed.
21778 (grub_script_check_init.h): Likewise.
21779 (grub_script_check_init.c): Likewise.
21780 (pkglib_MODULES): Remove handler.mod and sh.mod.
21781 (handler_mod_SOURCES): Removed.
21782 (handler_mod_CFLAGS): Likewise.
21783 (handler_mod_LDFLAGS): Likewise.
21784 (normal_mod_SOURCES): Remove normal/handler.c.
21785 Add script/main.c, script/script.c, script/execute.c,
21786 script/function.c, script/lexer.c, grub_script.tab.c
21787 and grub_script.yy.c.
21788 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21789 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21790 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
21791 (grub_setup_SOURCES): Remove kern/parser.c.
21792 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21793 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
21794 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21795 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21796 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21797 (grub_setup_SOURCES): Remove kern/parser.c.
21798 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21799 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
21800 * include/grub/command.h (grub_command_iterate): Removed.
21801 (FOR_COMMANDS): New macro.
21802 * include/grub/dl.h (grub_dl): New member next.
21803 (grub_dl_iterate): Removed.
21804 (grub_dl_head): New variable declaration.
21805 (FOR_DL_MODULES): New macro.
21806 * include/grub/fs.h: Include list.h.
21807 (grub_fs): Make next first element.
21808 (grub_fs_list): New variable declaration.
21809 (grub_fs_register): Make inline.
21810 (grub_fs_unregister): Likewise.
21811 (grub_fs_iterate): Removed.
21812 (FOR_FILESYSTEMS): New macro.
21813 * include/grub/handler.h: Removed.
21814 * include/grub/list.h (grub_list_hook_t): Removed.
21815 (grub_list_test_t): Likewise.
21816 (grub_list_pop): Likewise.
21817 (grub_list_iterate): Likewise.
21818 (grub_list_insert): Likewise.
21819 (FOR_LIST_ELEMENTS): New macro.
21820 * include/grub/parser.h (grub_parser_class): Removed.
21821 (grub_parser_register): Likewise.
21822 (grub_parser_unregister): Likewise.
21823 (grub_parser_get_current): Likewise.
21824 (grub_parser_set_current): Likewise.
21825 (grub_register_rescue_parser): Likewise.
21826 (grub_rescue_parse_line): New function.
21827 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21828 * include/grub/script_sh.h (grub_script_function_list): New variable
21829 declaration.
21830 (FOR_SCRIPT_FUNCTIONS): New macro.
21831 (grub_script_function_iterate): Removed.
21832 (grub_normal_parse_line): New prototype.
21833 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21834 (FOR_DISABLED_TERM_INPUTS): Likewise.
21835 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21836 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21837 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21838 element.
21839 (grub_video_register): Inline.
21840 (grub_video_unregister): Likewise.
21841 (grub_video_adapter_list): New variable declaration.
21842 (grub_video_iterate): Removed.
21843 (FOR_VIDEO_ADAPTERS): New macro.
21844 * kern/dl.c (grub_dl_list): Removed. All users updated.
21845 (grub_dl_iterate): Removed.
21846 * kern/fs.c (grub_fs_list): Make global.
21847 (grub_fs_register): Removed.
21848 (grub_fs_unregister): Likewise.
21849 (grub_fs_iterate): Likewise.
21850 * kern/handler.c: Removed.
21851 * kern/list.c (grub_list_pop): Removed.
21852 (grub_list_iterate): Likewise.
21853 (grub_list_insert): Likewise.
21854 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21855 (grub_prio_list_insert): Don't use grub_list_insert.
21856 * kern/main.c (grub_register_rescue_parser): Don't call
21857 grub_register_rescue_parser.
21858 * kern/parser.c (grub_parser_class): Removed.
21859 (grub_parser_execute): Use grub_rescue_parse_line.
21860 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21861 (grub_rescue_parser): Removed.
21862 (grub_register_rescue_parser): Likewise.
21863 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
21864 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
21865 (grub_auth_check_authentication): Likewise.
21866 * normal/completion.c (iterate_command): Removed.
21867 (grub_normal_do_completion): Use FOR_COMMANDS.
21868 * normal/handler.c: Removed.
21869 * normal/main.c (read_config_file): Remove parser changing.
21870 (grub_normal_execute): Don't call read_handler_list.
21871 (grub_normal_read_line_real): Statically allocate prompt.
21872 (grub_cmdline_run): Use grub_normal_parse_line.
21873 (GRUB_MOD_FINI): Don't call free_handler_list.
21874 * normal/menu_entry.c (run): Likewise.
21875 * script/function.c (grub_script_function_list): Make global.
21876 (grub_script_function_iterate): Removed.
21877 * script/main.c (grub_normal_parse_line): Make global.
21878 (grub_sh_parser): Removed.
21879 (GRUB_MOD_INIT): Likewise.
21880 (GRUB_MOD_FINI): Likewise.
21881 * tests/lib/functional_test.c (grub_functional_test): Use
21882 FOR_LIST_ELEMENTS.
21883 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21884 (grub_test_run): Use FOR_LIST_ELEMENTS.
21885 * tests/lib/unit_test.c (main): Likewise.
21886 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21887 grub_list_pop.
21888 * util/grub-fstest.c (grub_term_input_class): Removed.
21889 (grub_term_output_class): Likewise.
21890 * util/grub-probe.c: Likewise.
21891 * util/i386/pc/grub-setup.c: Likewise.
21892 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21893 * util/grub-script-check.c (main): Don't call grub_init_all and
21894 grub_fini_all.
21895 * video/video.c (grub_video_adapter_list): Make global.
21896 (grub_video_register): Removed.
21897 (grub_video_unregister): Likewise.
21898 (grub_video_iterate): Likewise.
21899
6289c3a7
VS
219002010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21901
21902 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21903 reported by Henrique Ferreiro.
21904
91460247
RM
219052010-06-09 Robert Millan <rmh@gnu.org>
21906
21907 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21908 ones, when both are available.
21909
0ea7c4f9
GS
219102010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21911
21912 Make --version uniform and avoid hard-coded program name.
21913
21914 * util/grub-mkimage.c (main): Use `program_name' instead of
21915 hard-coded string.
21916 * util/i386/pc/grub-setup.c (main): Likewise.
21917 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21918 * util/grub-install.in: Save the basename of $0 in $self, and use the
21919 latter in informational messages. Use the same format for --version
21920 as the binary programs.
21921 * util/grub-mkconfig.in: Likewise.
21922 * util/grub-mkrescue.in: Likewise.
21923 * util/grub-reboot.in: Likewise.
21924 * util/grub-set-default.in: Likewise.
21925 * util/i386/efi/grub-install.in: Likewise.
21926 * util/ieee1275/grub-install.in: Likewise.
21927 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21928
e8a6f3b6
GS
219292010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21930
21931 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21932 embedding area. Use <= instead of == when checking for non-emptiness.
21933
f4d095d7
GS
219342010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21935
21936 * configure.ac: Add `.' to the directories searched for unifont.
21937
50e532ca
CW
219382010-06-08 Colin Watson <cjwatson@ubuntu.com>
21939
21940 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21941 grub_script.yy.h.
21942
d39f3dec
CW
219432010-06-08 Colin Watson <cjwatson@ubuntu.com>
21944
21945 * docs/grub.texi (History): Expand to cover GRUB 2.
21946 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21947 commands, not `terminal'.
21948 (serial): Likewise.
21949 (terminal_input): New section.
21950 (terminal_output): New section.
21951 (uppermem): New section (stub).
21952 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21953
6ef0ddb4
CW
219542010-06-08 Colin Watson <cjwatson@ubuntu.com>
21955
21956 * docs/grub.texi (Security): Menu entries are unrestricted by
21957 default, not restricted to superusers as I had previously thought.
21958 Reword to account for this.
21959
e0f4c438
CW
219602010-06-07 Colin Watson <cjwatson@ubuntu.com>
21961
21962 * kern/emu/misc.c (device_mapper_null_log): New function.
21963 (grub_device_mapper_supported): New function.
21964 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21965 prototype.
21966 * kern/emu/hostdisk.c (find_partition_start): Check whether
21967 device-mapper is supported before trying to use it.
21968 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21969
da908200
CW
219702010-06-07 Colin Watson <cjwatson@ubuntu.com>
21971
21972 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21973 (File name syntax): Likewise.
21974 (help): --all is no longer supported in GRUB 2. Be more precise
21975 about pattern matching.
21976
fb55c3ac
CW
219772010-06-07 Colin Watson <cjwatson@ubuntu.com>
21978
21979 * normal/completion.c (grub_normal_do_completion): When completing
21980 arguments to "set" and the current word contains an equals sign,
21981 skip to after the equals sign before starting completion.
21982
258c2573
CW
219832010-06-07 Colin Watson <cjwatson@ubuntu.com>
21984
21985 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21986
ee75515e
CW
219872010-06-07 Colin Watson <cjwatson@ubuntu.com>
21988
21989 * docs/grub.texi (Network): New section.
21990 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21991 `(nd)' as in GRUB Legacy.
21992 (pxe_unload): New section.
21993
a6a700aa
CW
219942010-06-07 Colin Watson <cjwatson@ubuntu.com>
21995
21996 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21997 in the rescue shell, so recommend using `set' instead. Thanks,
21998 Jordan Uggla.
21999
4003dd38
CW
220002010-06-07 Colin Watson <cjwatson@ubuntu.com>
22001
22002 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
22003 (password): New section.
22004 (password_pbkdf2): New section.
22005 (search): New section.
22006 (Security): New section.
22007 (Troubleshooting): New section, currently very incomplete.
22008 (Invoking grub-mkpasswd-pbkdf2): New section.
22009 (Internals): New section, currently very incomplete.
22010
e1cbcc40
CW
220112010-06-07 Colin Watson <cjwatson@ubuntu.com>
22012
22013 * util/grub.d/00_header.in: Add some more quoting (of
22014 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
22015 work again.
22016 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22017
db8fa1ad
CW
220182010-06-07 Colin Watson <cjwatson@ubuntu.com>
22019
22020 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22021 to `count', fixing variable shadowing that broke the -c option.
22022
220232010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
22024
22025 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22026 in case they contain spaces.
22027
f28a9212
CW
220282010-06-04 Colin Watson <cjwatson@ubuntu.com>
22029
22030 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22031 "part_" to partmap module names, in line with grub-install.
22032 Reported by: Jindřich Makovička (Debian bug #584426).
22033
9cdfe32f
CW
220342010-06-04 Colin Watson <cjwatson@ubuntu.com>
22035
22036 * util/grub-mkimage.c: Make target-related error messages slightly
22037 more helpful; -O talks about "format". Explicitly point to the use
22038 of -O if no target is specified.
22039 Reported by: Didier Raboud (Debian bug #584415).
22040
795b593a
CW
220412010-06-03 Colin Watson <cjwatson@ubuntu.com>
22042
22043 * INSTALL: Document several build requirements for optional features
22044 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22045
9d9b5833
GS
220462010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22047
22048 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22049 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22050 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22051
0819fec8
CW
220522010-06-02 Colin Watson <cjwatson@ubuntu.com>
22053
22054 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22055 Thanks to Jordan Uggla for spotting this.
22056
49396b4f
VS
220572010-06-02 Aleš Nesrsta <starous@volny.cz>
22058
22059 Finally make USB usable.
22060
22061 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22062 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22063 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22064 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22065 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22066 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22067 (GRUB_OHCI_FSMPS): Likewise.
22068 (GRUB_OHCI_PERIODIC_START): Likewise.
22069 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22070 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22071 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22072 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22073 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22074 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22075 (grub_ohci_transaction): Likewise.
22076 (grub_ohci_transfer): Improve condition detection algorithms.
22077 Handle toggle property. Program the transactions correctly.
22078 Improve error handling. Various important fixups.
22079 (grub_ohci_portstatus): Put register writes in right order.
22080 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22081 (grub_uhci_transfer): Don't show "failed" message on success.
22082 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22083 array.
22084 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22085 determine its size.
22086 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22087 before initialization is completed. Use IN direction for empty
22088 transfers. Use last_trans and compute toggle.
22089 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22090 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22091 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22092 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22093 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22094 (grub_usb_device): Increase toggle to 256.
22095 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22096 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22097 GRUB_USBMS_SUBCLASS_SFF8070.
22098 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22099 (grub_scsi_inquiry): New member page and alloc_length.
22100 (grub_scsi_request_sense): New structure.
22101 (grub_scsi_request_sense_data): Likewise.
22102 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22103 control.
22104 * disk/scsi.c (grub_scsi_request_sense): New function.
22105 (grub_scsi_test_unit_ready): Likewise.
22106 (grub_scsi_inquiry): Fill new fields.
22107 (grub_scsi_read_capacity): Likewise.
22108 (grub_scsi_read10): Add request sense at the end.
22109 (grub_scsi_read12): Likewise.
22110 (grub_scsi_write10): Likewise.
22111 (grub_scsi_write12): Likewise.
22112 (grub_scsi_open): Add Test Unit Ready.
22113 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22114 Support additional subclasses. Con't clear halt yet. Activate the
22115 proper config. Calculate LUNs correctly.
22116 (grub_usbms_transfer): Various important fixups.
22117
221182010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22119
22120 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22121 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22122 (grub_ohci_fini_hw): New function.
22123 (grub_ohci_restore_hw): Likewise.
22124 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22125 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22126 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22127
221282010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22129
22130 Dedicated DMA allocations.
22131
22132 * bus/pci.c (grub_memalign_dma32): New function
22133 (grub_dma_free): Likewise.
22134 (grub_dma_get_virt): Likewise.
22135 (grub_dma_get_phys): Likewise.
22136 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22137 (grub_ohci_pci_iter): Use dma32_alloc.
22138 (grub_ohci_transfer): Likewise.
22139 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22140 (grub_usb_bulk_readwrite): Likewise.
22141 * include/grub/pci.h: Add declarations.
22142
221432010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22144
22145 CS5536 support.
22146
22147 * bus/cs5536.c: New file.
22148 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22149 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22150 (cs5536_mod_SOURCES): New variable.
22151 (cs5536_mod_CFLAGS): Likewise.
22152 (cs5536_mod_LDFLAGS): Likewise.
22153 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22154 machine/pci.h.
22155 (kernel_img_SOURCES): Add bus/cs5536.c.
22156 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22157 usb_keyboard.mod.
22158 (usb_mod_SOURCES): New variable.
22159 (usb_mod_CFLAGS): New variable.
22160 (usb_mod_LDFLAGS): New variable.
22161 (usbtest_mod_SOURCES): New variable.
22162 (usbtest_mod_CFLAGS): New variable.
22163 (usbtest_mod_LDFLAGS): New variable.
22164 (ohci_mod_SOURCES): New variable.
22165 (ohci_mod_CFLAGS): New variable.
22166 (ohci_mod_LDFLAGS): New variable.
22167 (usbms_mod_SOURCES): New variable.
22168 (usbms_mod_CFLAGS): New variable.
22169 (usbms_mod_LDFLAGS): New variable.
22170 (usb_keyboard_mod_SOURCES): New variable.
22171 (usb_keyboard_mod_CFLAGS): New variable.
22172 (usb_keyboard_mod_LDFLAGS): New variable.
22173 * include/grub/smbus.h: New file.
22174 * include/grub/cs5536.h: New file.
22175
0b35b2a9
CW
221762010-06-02 Colin Watson <cjwatson@ubuntu.com>
22177
22178 * util/grub.d/00_header.in: Add safety check to make sure that
22179 ${locale_dir} exists before trying to probe it.
22180
ca0afd5b
CW
221812010-06-02 Colin Watson <cjwatson@ubuntu.com>
22182
22183 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22184 per the GNU Coding Standards; this is now too obscure to be worth
22185 documenting.
22186 (QNX): Likewise.
22187 (chainloader): Remove cross-reference to `SCO UnixWare'.
22188
1c41aa78
CW
221892010-06-02 Colin Watson <cjwatson@ubuntu.com>
22190
22191 * docs/grub.texi (Chain-loading): New section.
22192 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22193 adjusted for GRUB 2.
22194 (SCO UnixWare): Likewise.
22195 (QNX): Likewise.
22196 (chainloader): Add reference to `Block list syntax'.
22197 (drivemap): New section.
22198 (parttool): New section.
22199
bb8ea0f5
CW
222002010-06-02 Colin Watson <cjwatson@ubuntu.com>
22201
22202 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22203 the grub shell'.
22204 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22205 (Installing GRUB using grub-install): Remove reference to the grub
22206 shell; mention `grub-mkimage' and `grub-setup' instead.
22207 (Invoking grub-install): Likewise.
22208 (Interface): Add reference to `Menu entry editor'.
22209 (serial): Remove `--device' option.
22210
288dd6ed
CW
222112010-06-02 Colin Watson <cjwatson@ubuntu.com>
22212
22213 * docs/grub.texi (Configuration): New section, documenting
22214 configuration file generation using grub-mkconfig. I've left a slot
22215 for documenting the full shell scripting format but have not yet
22216 started on writing that up.
22217 (Invoking grub-mkconfig): New section.
22218
34c9f0e9
CW
222192010-06-02 Colin Watson <cjwatson@ubuntu.com>
22220
22221 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22222 (GNU GRUB manual): Likewise.
22223 (General commands): Update description of `terminfo' for GRUB 2.
22224
9121567e
CW
222252010-06-02 Colin Watson <cjwatson@ubuntu.com>
22226
22227 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22228 (GRUB_MOD_INIT): Fix capitalisation.
22229 * docs/grub.texi (Command-line and menu entry commands): Document
22230 gettext and gptsync commands.
22231
ab631611
CW
222322010-06-02 Colin Watson <cjwatson@ubuntu.com>
22233
22234 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22235 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22236
bde4a9ac
CW
222372010-06-01 Colin Watson <cjwatson@ubuntu.com>
22238
22239 Add btrfs probing support, currently only in the single-device case.
22240
22241 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22242 function.
22243 (grub_guess_root_device): Call find_root_device_from_mountinfo
22244 before looking in /dev.
22245
b1d17e10
VS
222462010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22247
22248 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22249 GRUB_DISK_SIZE_UNKNOWN.
22250 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22251
dfbfe004
JS
222522010-05-31 Jiro SEKIBA <jir@unicus.jp>
22253
22254 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22255 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22256 corrupted or not synced properly.
22257
c2ffc8e9
VS
222582010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22259
22260 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22261 Reported by: Seth Goldberg.
22262
56293166
VS
222632010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22266 addition of dest.
22267 Reported by: Seth Goldberg.
22268
7620e7de
VS
222692010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22270
22271 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22272 Reported by: Seth Goldberg.
22273
c837af3f
VS
222742010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22277 64-bit address as signed on MIPS.
22278
c7c75cf4
CW
222792010-05-28 Colin Watson <cjwatson@ubuntu.com>
22280
22281 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22282 to the empty string.
22283
fa4b8490
BC
222842010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22285
22286 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22287
22288 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22289 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22290 * kern/misc.c (__enable_execute_stack): Disable on
22291 GRUB_MACHINE_EMU.
22292
a33075b9
CW
222932010-05-28 Colin Watson <cjwatson@ubuntu.com>
22294
22295 Make grub-probe work with symbolic links under /dev/mapper as well
22296 as with real block devices. The Linux world seems to be (at best)
22297 in transition here, and GRUB shouldn't get caught in the middle.
22298
22299 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22300 /dev/mapper.
22301
d8708134
CW
223022010-05-27 Colin Watson <cjwatson@ubuntu.com>
22303
22304 * util/grub-script-check.c (main): Ensure defined behaviour on empty
22305 input files (in which case exit zero).
22306
db2102a0
CW
223072010-05-27 Colin Watson <cjwatson@ubuntu.com>
22308
22309 * kern/emu/misc.c (canonicalize_file_name): realpath can still
22310 return NULL for various reasons even if it has a maximum-length
22311 buffer: for example, there might be a symlink loop, or the path
22312 might exceed PATH_MAX. If this happens, return NULL.
22313
5fdba519
RM
223142010-05-27 Robert Millan <rmh@gnu.org>
22315
22316 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
22317 partmap module to handle cross-partmap setups.
22318 Reported by Orestes Mas. Gràcies!
22319
d1d368e4
CW
223202010-05-27 Colin Watson <cjwatson@ubuntu.com>
22321
22322 * util/grub-mkrescue.in: Initialise override_dir rather than
22323 assuming that it's unset or empty in the environment.
22324
95ac3c73
GS
223252010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
22326
22327 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
22328 variable index into p_index to suppress a warning with -Wshadow.
22329
7d8c0213
BC
223302010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
22331
22332 * INSTALL: Added flex >= 2.5.35 requirement.
22333
db4d5813
VS
223342010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22335
22336 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
22337
f24f4300
VS
223382010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22339
22340 cmostest support.
22341
22342 * commands/i386/cmostest.c: New file.
22343 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
22344 (cmostest_mod_SOURCES): New variable.
22345 (cmostest_mod_CFLAGS): Likewise.
22346 (cmostest_mod_LDFLAGS): Likewise.
22347 * conf/i386-pc.rmk: Likewise.
22348 * docs/grub.texi (Vendor power-on keys): New section.
22349 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
22350 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
22351 and GRUB_BUTTON_CMOS_ADDRESS.
22352 * util/grub.d/00_header.in: Handle powering-on by separate button.
22353
ad603f61
VS
223542010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22355
22356 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
22357 Removed drawing_scrollbar argument. All users updated
22358 Fixes #29792.
22359 Reported by Jo Shields
22360
3ecb080a
VS
223612010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
22364 buffer since gfxterm handles double repaint.
22365
5f2316c1
VS
223662010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
22369 * term/gfxterm.c (real_scroll): Likewise.
22370
9a25f885
VS
223712010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22372
22373 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
22374 before calling BIOS.
22375
39fbb79a
VS
223762010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * include/grub/i18n.h: Always enable grub_gettext.
22379
228cfa97
VS
223802010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
22383 partition naming style.
22384
21717c8f
CW
223852010-05-21 Colin Watson <cjwatson@ubuntu.com>
22386
22387 * util/grub-mkconfig.in: Fix handling of -o so that it works when
22388 not the first option.
22389
c0f48e65
CW
223902010-05-20 Colin Watson <cjwatson@ubuntu.com>
22391
22392 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
22393
96779aec
CW
223942010-05-20 Colin Watson <cjwatson@ubuntu.com>
22395
22396 * util/misc.c: Move inclusion of <limits.h> to ...
22397 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
22398
fa9d256e
GS
223992010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
22400
22401 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
22402 Fix merge error in NetBSD code.
22403 (find_partition_start) [__NetBSD__]: Likewise.
22404
123b7a85
BC
224052010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
22406
22407 Fix grub-mkrescue usage unit testing.
22408
22409 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
22410
74276c0d
CF
224112010-05-18 Christian Franke <franke@computer.org>
22412
22413 * util/grub.d/10_windows.in: Use path names instead of
22414 drive letters to prevent warning from Cygwin 1.7.
22415 Add drivemap command to menuentry if needed.
22416
c4f7b523
ST
224172010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
22418
22419 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
22420 gnumach and gnumach.gz.
22421
95b97950
VS
224222010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 * include/grub/i18n.h (gettext): Inline instead of using #define.
22425 (grub_gettext): Likewise.
22426 (_): Likewise.
22427
01b8d2d7
VS
224282010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22429
22430 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
22431 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
22432 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
22433 (main): Add a slash after pkglibdirroot.
22434
654e1d1e
VS
224352010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 * util/grub-install.in: Add missing "in" keyword.
22438
26966aeb
VS
224392010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22440
22441 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
22442 Reported by: Seth Goldberg.
22443
75006747
VS
224442010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
22447
74cbf5bd
CW
224482010-05-18 Colin Watson <cjwatson@ubuntu.com>
22449
22450 * configure.ac: Check for Linux device-mapper support.
22451
22452 * util/hostdisk.c (device_is_mapped): New function.
22453 (find_partition_start): New function, partly broken out from
22454 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
22455 device-mapper support added.
22456 (linux_find_partition): Use find_partition_start.
22457 (convert_system_partition_to_system_disk): Add `st' argument.
22458 Support Linux /dev/mapper/* devices if device-mapper support is
22459 available; only DM-RAID devices are understood at present.
22460 (find_system_device): Add `st' argument. Pass it to
22461 convert_system_partition_to_system_disk.
22462 (grub_util_biosdisk_get_grub_dev): Pass stat result to
22463 find_system_device and convert_system_partition_to_system_disk. Use
22464 find_partition_start.
22465
22466 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
22467 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
22468 * util/deviceiter.c [__linux__]: Define MINOR.
22469 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
22470 * util/mkdevicemap.c (grub_putchar): New function.
22471 (grub_getkey): New function.
22472 (grub_refresh): New function.
22473 (main): Set debug=all if -v -v is used.
22474
355b51e9
CW
224752010-05-18 Colin Watson <cjwatson@ubuntu.com>
22476
22477 Fix build with non-GNU libcs.
22478
22479 * util/misc.c (canonicalize_file_name): Move to ...
22480 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
22481 grub_make_system_path_relative_to_its_root.
22482
7fb5c25f
CW
224832010-05-18 Colin Watson <cjwatson@ubuntu.com>
22484
22485 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
22486 we handle finding grub-mkimage. Default to finding grub-mkimage in
22487 ${bindir} with program_transform_name applied, and provide a
22488 --grub-mkimage option to override this.
22489
1d3293d6
VS
224902010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22491
22492 Remove grub-mkisofs.
22493
22494 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
22495 (grub_mkisofs_SOURCES): Removed.
22496 (grub_mkisofs_CFLAGS): Removed.
22497 * util/mkisofs/defaults.h: Removed.
22498 * util/mkisofs/eltorito.c: Likewise.
22499 * util/mkisofs/exclude.h: Likewise.
22500 * util/mkisofs/hash.c: Likewise.
22501 * util/mkisofs/include/: Likewise.
22502 * util/mkisofs/include/fctldefs.h: Likewise.
22503 * util/mkisofs/include/mconfig.h: Likewise.
22504 * util/mkisofs/include/prototyp.h: Likewise.
22505 * util/mkisofs/include/statdefs.h: Likewise.
22506 * util/mkisofs/iso9660.h: Likewise.
22507 * util/mkisofs/joliet.c: Likewise.
22508 * util/mkisofs/match.c: Likewise.
22509 * util/mkisofs/match.h: Likewise.
22510 * util/mkisofs/mkisofs.c: Likewise.
22511 * util/mkisofs/mkisofs.h: Likewise.
22512 * util/mkisofs/msdos_partition.h: Likewise.
22513 * util/mkisofs/multi.c: Likewise.
22514 * util/mkisofs/name.c: Likewise.
22515 * util/mkisofs/rock.c: Likewise.
22516 * util/mkisofs/tree.c: Likewise.
22517 * util/mkisofs/write.c: Likewise.
22518
5dde9afe
VS
225192010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22520
22521 Unify grub-mkimage accross platforms.
22522
22523 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
22524 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
22525 (grub_mkelfimage_SOURCES): Removed.
22526 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
22527 (util/grub-mkimage.c_DEPENDENCIES): .. this.
22528 (bin_UTILITIES): Add grub-mkimage.
22529 (grub_mkimage_SOURCES): New variable.
22530 (kernel_img_HEADERS): Remove machine/kernel.h.
22531 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
22532 (pkglib_PROGRAMS): Add kernel.img.
22533 (kernel_img_HEADERS): Add machine/kernel.h.
22534 (kernel_img_FORMAT): Removed.
22535 (bin_UTILITIES): Remove grub-mkimage.
22536 (grub_mkimage_SOURCES): Removed.
22537 (grub_mkimage_CFLAGS): Likewise.
22538 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22539 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
22540 (pkglib_PROGRAMS): Add kernel.img.
22541 (bin_UTILITIES): Remove grub-mkimage.
22542 (grub_mkimage_SOURCES): Removed.
22543 (grub_mkimage_CFLAGS): Likewise.
22544 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22545 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
22546 (pkglib_PROGRAMS): Add kernel.img.
22547 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
22548 (pkglib_PROGRAMS): Add kernel.img.
22549 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
22550 (grub_mkimage_SOURCES): Removed.
22551 (grub_mkimage_CFLAGS): Likewise.
22552 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22553 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
22554 (pkglib_PROGRAMS): Add kernel.img.
22555 (bin_UTILITIES): Remove grub-mkimage.
22556 (grub_mkimage_SOURCES): Removed.
22557 (grub_mkimage_CFLAGS): Likewise.
22558 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22559 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
22560 (grub_mkimage_SOURCES): Removed.
22561 (grub_mkimage_CFLAGS): Likewise.
22562 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22563 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
22564 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
22565 (grub_pe32_optional_header): ... this.
22566 (grub_pe64_optional_header): ... and this. All users updated.
22567 (GRUB_PE32_PE32_MAGIC): Split into ..
22568 (GRUB_PE32_PE32_MAGIC): .. this.
22569 (GRUB_PE32_PE64_MAGIC): .. and this.
22570 (GRUB_PE32_SIGNATURE_SIZE): New definition.
22571 * include/grub/elf.h (PT_GNU_STACK): New definition.
22572 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
22573 * include/grub/i386/efi/kernel.h: Likewise.
22574 * include/grub/i386/kernel.h: Likewise.
22575 * include/grub/i386/pc/kernel.h: Likewise.
22576 * include/grub/i386/qemu/boot.h: Likewise.
22577 * include/grub/mips/kernel.h: Likewise.
22578 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22579 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22580 * include/grub/powerpc/kernel.h: Likewise.
22581 * include/grub/sparc64/ieee1275/boot.h: Likewise.
22582 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22583 * include/grub/sparc64/kernel.h: Likewise.
22584 * include/grub/x86_64/efi/kernel.h: Likewise.
22585 * include/grub/x86_64/kernel.h: Likewise.
22586 * include/grub/offsets.h: New file.
22587 * include/grub/kernel.h (grub_module_info): Split into ...
22588 (grub_module_info32): ... this.
22589 (grub_module_info64): ... and this.
22590 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
22591 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
22592 (grub_boot_blocklist): Moved from here ...
22593 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
22594 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
22595 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
22596 * include/grub/types.h (grub_target_to_host16): Removed.
22597 (grub_target_to_host32): Likewise.
22598 (grub_target_to_host64): Likewise.
22599 (grub_host_to_target16): Likewise.
22600 (grub_host_to_target32): Likewise.
22601 (grub_host_to_target64): Likewise.
22602 (grub_host_to_target_addr): Likewise.
22603
22604 Support grub-mkrescue for efi, coreboot and qemu.
22605
22606 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
22607 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
22608 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
22609 * util/grub-mkrawimage.c: Moved from here ...
22610 * util/grub-mkimage.c: ... here. All users updated.
22611 (ALIGN_ADDR): Use image_target.
22612 (TARGET_NO_FIELD): New const.
22613 (image_target_desc): New type.
22614 (image_targets): New array.
22615 (grub_target_to_host64): Use image_target.
22616 (grub_target_to_host32): Likewise.
22617 (grub_target_to_host16): Likewise.
22618 (grub_host_to_target64): Likewise.
22619 (grub_host_to_target32): Likewise.
22620 (grub_host_to_target16): Likewise.
22621 (grub_host_to_target_addr): Likewise.
22622 (generate_image): Handle multiimage.
22623 (main): Require -O parameter. All users updated.
22624 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
22625 util/efi/grub-mkimage.c
22626 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
22627 New option --rom-directory.
22628 Use xorriso.
22629 * util/i386/efi/grub-mkimage.c: Removed.
22630 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
22631 (grub_target_to_host32): Likewise.
22632 (grub_target_to_host64): Likewise.
22633 (grub_host_to_target16): Likewise.
22634 (grub_host_to_target32): Likewise.
22635 (grub_host_to_target64): Likewise.
22636 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
22637 (grub_target_to_host32): Likewise.
22638 (grub_target_to_host64): Likewise.
22639 (grub_host_to_target16): Likewise.
22640 (grub_host_to_target32): Likewise.
22641 (grub_host_to_target64): Likewise.
22642
f4fc97d0
BC
226432010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
22644
22645 Source tree is reorganized for emu build.
22646
22647 * include/grub/util/console.h: Move from here...
22648 * include/grub/emu/console.h: ...to here.
22649 * include/grub/util/getroot.h: Move from here...
22650 * include/grub/emu/getroot.h: ...to here.
22651 * include/grub/util/hostdisk.h: Move from here...
22652 * include/grub/emu/hostdisk.h: ...to here.
22653 * util/console.c: Move from here...
22654 * kern/emu/console.c: ...to here.
22655 * util/getroot.c: Move from here...
22656 * kern/emu/getroot.c: ...to here.
22657 * util/grub-emu.c: Move from here...
22658 * kern/emu/main.c: ...to here.
22659 * util/hostdisk.c: Move from here...
22660 * kern/emu/hostdisk.c: ...to here.
22661 * util/hostfs.c: Move from here...
22662 * kern/emu/hostfs.c: ...to here.
22663 * util/mm.c: Move from here...
22664 * kern/emu/mm.c: ...to here.
22665 * util/pci.c: Move from here...
22666 * bus/emu/pci.c: ...to here.
22667 * util/sdl.c: Move from here...
22668 * video/emu/sdl.c: ...to here.
22669 * util/time.c: Move from here...
22670 * kern/emu/time.c: ...to here.
22671 * util/usb.c: Move from here...
22672 * bus/usb/emu/usb.c: ...to here.
22673
22674 * include/grub/emu/misc.h: New header for grub-emu functions.
22675 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
22676
22677 * conf/any-emu.rmk: Rule updates for above renames.
22678 * conf/common.rmk: Likewise.
22679 * conf/i386-pc.rmk: Likewise.
22680 * conf/i386-qemu.rmk: Likewise.
22681 * conf/mips.rmk: Likewise.
22682 * conf/sparc64-ieee1275.rmk: Likewise.
22683 * conf/x86-efi.rmk: Likewise.
22684
22685 * disk/lvm.h: #include updates for above renames.
22686 * util/grub-mkrelpath.c: Likewise.
22687 * util/grub-probe.c: Likewise.
22688 * util/i386/pc/grub-setup.c: Likewise.
22689 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22690 * kern/emu/console.c: Likewise.
22691 * kern/emu/getroot.c: Likewise.
22692 * kern/emu/hostdisk.c: Likewise.
22693 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
22694
22695 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
22696 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
22697 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
22698 * util/misc.c: Remove grub-emu functions.
22699
cced9145
VS
227002010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 Fix gfxmenu crash.
22703 Reported by: Thorsten Grützmacher.
22704
22705 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
22706 timeout hook.
22707 (circprog_set_property): Register and unregister timeout hook.
22708 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
22709 (label_destroy): Free template. and unregister hook.
22710 (label_set_state): New function.
22711 (label_set_property): Handle templates and hooks.
22712 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
22713 timeout hook.
22714 (progress_bar_set_property): Register and unregister timeout hook.
22715 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
22716 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
22717 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
22718 (update_timeout_visit): Removed.
22719 (update_timeouts): New function.
22720 (redraw_timeouts): Likewise.
22721 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
22722 (grub_gfxmenu_clear_timeout): Likewise.
22723 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
22724 (grub_gfxmenu_timeout_notify): Likewise.
22725 (grub_gfxmenu_timeout_notifications): New external variable.
22726 (grub_gfxmenu_timeout_register): New function.
22727 (grub_gfxmenu_timeout_unregister): Likewise.
22728
c6e5caab
VS
227292010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22730
22731 Transform (broken) vga terminal into (working) vga video driver.
22732
22733 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
22734 video/i386/pc/vga.c.
22735 * include/grub/video.h (grub_video_driver_id):
22736 Add GRUB_VIDEO_DRIVER_VGA.
22737 * term/i386/pc/vga.c: Renamed to ...
22738 * video/i386/pc/vga.c: ...this
22739 (DEBUG_VGA): Removed.
22740 (CHAR_WIDTH): Likewise.
22741 (CHAR_HEIGHT): Likewise.
22742 (TEXT_WIDTH): Likewise.
22743 (TEXT_HEIGHT): Likewise.
22744 (DEFAULT_FG_COLOR): Likewise.
22745 (DEFAULT_BG_COLOR): Likewise.
22746 (colored_char): Likewise.
22747 (xpos): Likewise.
22748 (ypos): Likewise.
22749 (cursor_state): Likewise.
22750 (fg_color): Likewise.
22751 (bg_color): Likewise.
22752 (text_buf): Likewise.
22753 (page): Likewise.
22754 (font): Likewise.
22755 (framebuffer): New variable.
22756 (set_read_map): Disabled.
22757 (setup): New variable.
22758 (is_target): Likewise.
22759 (grub_vga_mod_init): Likewise.
22760 (grub_vga_mod_fini): Likewise.
22761 (check_vga_mem): Likewise.
22762 (write_char): Likewise.
22763 (write_cursor): Likewise.
22764 (scroll_up): Likewise.
22765 (grub_vga_putchar): Likewise.
22766 (grub_vga_getcharwidth): Likewise.
22767 (grub_vga_getwh): Likewise.
22768 (grub_vga_getxy): Likewise.
22769 (grub_vga_gotoxy): Likewise.
22770 (grub_vga_cls): Likewise.
22771 (grub_vga_setcolorstate): Likewise.
22772 (grub_vga_setcursor): Likewise.
22773 (grub_video_vga_init): New function.
22774 (grub_video_vga_setup): Likewise.
22775 (grub_video_vga_fini): Likewise.
22776 (update_target): Likewise.
22777 (grub_video_vga_blit_bitmap): Likewise.
22778 (grub_video_vga_blit_render_target): Likewise.
22779 (grub_video_vga_set_active_render_target): Likewise.
22780 (grub_video_vga_get_active_render_target): Likewise.
22781 (grub_video_vga_swap_buffers): Likewise.
22782 (grub_video_vga_set_palette): Likewise.
22783 (grub_video_vga_get_info_and_fini): Likewise.
22784 (grub_vga_term): Removed.
22785 (grub_video_vga_adapter): New variable.
22786 (GRUB_MOD_INIT): Register a video driver instead of terminal.
22787 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
22788
2bf61a98
VS
227892010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22790
22791 * video/readers/jpeg.c: Indented.
22792
09ddcd11
VS
227932010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22794
22795 Various jpeg cleanups.
22796
22797 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
22798 (grub_jpeg_decode_quan_table): Use sizeof.
22799 (grub_jpeg_decode_du): Use ARRAY_SIZE.
22800
e5507505
PH
228012010-05-05 Peter Hurley <No e-mail available> (tiny change)
22802
22803 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
22804 tables. Ignore non-last ac bit.
22805 (grub_jpeg_decode_quan_table): Likewise.
22806
7e720a9b
VS
228072010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22808
22809 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
22810 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
22811 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22812 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
22813 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
22814 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
22815
a7fc080b
VS
228162010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
22819 error.
22820
2bf6012d
VS
228212010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22822
22823 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
22824
265d68cd
VS
228252010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22828 condition.
22829
228302010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22831
22832 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22833 part.
22834
265d68cd 228352010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22836
22837 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22838 pointers.
22839
265d68cd 228402010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22841
22842 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22843
d1b61374
CF
228442010-05-01 Christian Franke <franke@computer.org>
22845
22846 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22847 Remove broken Cygwin path conversion.
22848 * util/misc.c: [__CYGWIN__] Add include and define.
22849 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22850 for Cygwin 1.7.
22851 (make_system_path_relative_to_its_root): Simplify loop, replace early
22852 return by break.
22853 [__CYGWIN__] Add conversion to win32 path.
22854 Include "/" case in trailing slash removal.
22855
3558c6e9
VS
228562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22857
22858 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22859 Reported by: Seth Goldberg
22860
f5f3ff93
VS
228612010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22862
22863 * commands/help.c (grub_cmd_help): Fix a typo.
22864 Reported by: Seth Goldberg
22865
d8b5cd40
VS
228662010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22867
22868 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
22869 name and add N_.
22870 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
22871 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
22872 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
22873 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
22874 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
22875 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
22876 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
22877 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22878 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22879 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22880 * normal/context.c (GRUB_MOD_INIT): Likewise.
22881 * normal/main.c (GRUB_MOD_INIT): Likewise.
22882 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22883 * term/serial.c (GRUB_MOD_INIT): Likewise.
22884 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22885
88c14915
VS
228862010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22887
22888 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22889 extra == 0.
22890
165134bc
VS
228912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22892
22893 * commands/iorw.c: New file.
22894 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22895 (iorw_mod_SOURCES): New variable.
22896 (iorw_mod_CFLAGS): Likewise.
22897 (iorw_mod_LDFLAGS): Likewise.
22898
c5ac9b32
VS
228992010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22900
22901 Hotkey support
22902
22903 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22904 * normal/main.c (hotkey_aliases): New variable.
22905 (grub_normal_add_menu_entry): Parse "--hotkey".
22906 * normal/menu_text.c (run_menu): Handle hotkeys.
22907
ce60689c
VS
229082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22909
22910 * kern/i386/coreboot/init.c (grub_machine_init): Call
22911 grub_machine_mmap_init on qemu.
22912
0359d006
VS
229132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22914
22915 * boot/i386/qemu/boot.S: Add a missing .code16.
22916
7819a456
VS
229172010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22918
22919 Use LBIO on coreboot.
22920
22921 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22922 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22923 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22924 New declaration.
22925 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22926 grub_machine_mmap_init on coreboot.
22927 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22928 GRUB_LINUXBIOS_MEMBER_LINK.
22929 (grub_machine_mmap_iterate): Fix declaration.
22930 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22931
7210dca9
VS
229322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22933
22934 Split coreboot and multiboot ports.
22935
22936 * conf/i386-multiboot.rmk: New file.
22937 * configure.ac: Add multiboot port.
22938 * include/grub/i386/multiboot/boot.h: New file.
22939 * include/grub/i386/multiboot/console.h: Likewise.
22940 * include/grub/i386/multiboot/init.h: Likewise.
22941 * include/grub/i386/multiboot/kernel.h: Likewise.
22942 * include/grub/i386/multiboot/loader.h: Likewise.
22943 * include/grub/i386/multiboot/memory.h: Likewise.
22944 * include/grub/i386/multiboot/serial.h: Likewise.
22945 * include/grub/i386/multiboot/time.h: Likewise.
22946 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22947 * loader/multiboot.c: Likewise.
22948 * loader/multiboot_mbi2.c: Likewise.
22949 * util/grub-mkrescue.in: Generate multiboot rescue.
22950
6f8aaf68
VS
229512010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22952
3080f7a7
VS
22953 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22954
229552010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22956
22957 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22958
22959 * commands/terminal.c (abstract_terminal): New struct.
22960 (handle_command): New function. Based on grub_cmd_terminal_input.
22961 (grub_cmd_terminal_input): Use handle_command.
22962 (grub_cmd_terminal_output): Use handle_command.
22963
a8ebb841
BC
229642010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22965
22966 Fix comment handling.
22967
22968 * tests/grub_script_comments.in: New testcase.
22969 * conf/tests.rmk: Rules for new testcase.
22970 * script/yylex.l: Updated flex rules.
22971
bb06ba08
ST
229722010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22973
22974 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22975 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22976 if argc is 1.
bb06ba08 22977
cc9d2425
VS
229782010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22979
22980 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22981 autogen issues.
22982
460d8402
CF
229832010-04-26 Christian Franke <franke@computer.org>
22984
22985 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22986 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22987 (grub_get_prefix): Remove function.
22988 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22989 make_system_path_relative_to_its_root ().
22990 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22991
553c01f9
CF
229922010-04-24 Christian Franke <franke@computer.org>
22993
22994 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22995 (kernel_img_LDFLAGS): Remove -static-libgcc.
22996
2aec1692
CF
229972010-04-24 Christian Franke <franke@computer.org>
22998
22999 * configure.ac: Do not CHECK_BSS_START_SYMBOL
23000 and CHECK_END_SYMBOL if grub-emu is built.
23001 Unset TARGET_OBJ2ELF if grub-emu is built
23002 without module support.
23003
f67dc308
JS
230042010-04-24 Jiro SEKIBA <jir@unicus.jp>
23005
23006 Nilfs2 support.
23007
23008 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
23009 (grub_fstest_SOURCES): Likewise.
23010 (pkglib_MODULES): Add nilfs2.mod.
23011 (nilfs2_mod_SOURCES): New variable.
23012 (nilfs2_mod_CFLAGS): Likewise.
23013 (nilfs2_mod_LDFLAGS): Likewise.
23014 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23015 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23016 * fs/nilfs2.c: New file.
23017
4ba8d354
VS
230182010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23019
23020 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23021 is not supported.
23022
0d2c20c6
GS
230232010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23024
23025 Add grub-mkconfig support for NetBSD.
23026
23027 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23028 * util/grub-mkconfig.in: export new NetBSD specific variables.
23029 * po/POTFILES-shell: added 10_netbsd.in.
23030 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23031
bc4a2d83
BC
230322010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23033
23034 Fix emu build with grub-emu-pci and grub-emu-modules.
23035
23036 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23037 functions.
23038 * include/grub/libpciaccess.h: New file.
23039 * conf/any-emu.rmk: Update kernel headers for emu build.
23040
f48c87aa
VS
230412010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23042
23043 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23044
18959385
VS
230452010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23048
0037de3f
VS
230492010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23050
23051 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23052 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23053 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23054 util/ieee1275/ofpath.c.
23055 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23056 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23057 * include/grub/sparc64/ieee1275/boot.h
23058 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23059 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23060 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23061 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23062 const char *.
23063 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23064 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23065 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23066 install.
23067
38e55e90
GS
230682010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23069
23070 * util/grub-mkconfig.in: Corrected two == equality tests.
23071 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23072 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23073 expect a number appended to it.
23074 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23075 expects a number appended to it.
23076
a9e6ff28
VS
230772010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23080
0b830b8f
VS
230812010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * util/hostdisk.c (make_device_name): Change to new partition naming.
23084
0973daeb
VS
230852010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23086
23087 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23088
460d8402 230892010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
23090
23091 * Makefile.in: Add missing localedir setting.
23092
0b456309
CW
230932010-04-14 Colin Watson <cjwatson@ubuntu.com>
23094
23095 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23096 mistake in r2156. Noticed by Anthony Fok.
23097
23098 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23099 @localedir@.
23100 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23101
08f46d62
BC
231022010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23103
23104 Fix a spurious, uninitialized variable warning.
23105
23106 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23107 Initialize variable, shdr.
23108 (grub_freebsd_load_elfmodule): Likewise.
23109 (grub_freebsd_load_elf_meta): Likewise.
23110
8c4a72d4
BC
231112010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23112
23113 Fix for escaped dollar in double quoted strings.
23114
23115 * script/yylex.l: Updated flex rules.
23116 * conf/tests.rmk: Rule for new testcase.
23117 * tests/grub_script_dollar.in: New testcase.
23118
ce44826e
CPE
231192010-04-13 Carles Pina i Estany <carles@pina.cat>
231202010-04-13 Colin Watson <cjwatson@ubuntu.com>
23121
23122 Enclose all translated strings in grub.cfg in single quotes, and
23123 escape them appropriately (Ubuntu bug #552921).
23124
23125 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23126 * util/grub.d/10_hurd.in: Use it.
23127 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23128 * util/grub.d/10_linux.in (linux_entry): Likewise.
23129
4b0cd8f8
VS
231302010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23131
23132 Fix cygwin compilation.
23133
23134 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23135 * include/grub/misc.h (__register_frame_info)
23136 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23137 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23138 * kern/misc.c (__register_frame_info)
23139 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23140 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23141
01fcf061
VS
231422010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23143
23144 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23145
5d04b11e
VS
231462010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23147
23148 Unify libgcc processing.
23149
23150 * Makefile.in (kernel_img_LDFLAGS): New variable.
23151 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23152 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23153 overwriting.
23154 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23155 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23156 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23157 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23158 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23159 overwriting. Remove -lgcc and -static-libgcc
23160 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23161 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23162 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23163 (kernel_img_LDFLAGS): Append instead of overwriting.
23164 Remove -lgcc and -static-libgcc
23165 * conf/sparc64-ieee1275.rmk: Likewise.
23166 * include/grub/powerpc/libgcc.h: Move to ...
23167 * include/grub/libgcc.h: .. this.
23168 * include/grub/libgcc.h: Don't export most of the function on x86.
23169 (__bswapsi2): New export.
23170 (__bswapdi2): Likewise.
23171 * include/grub/mips/libgcc.h: Removed.
23172 * include/grub/sparc64/libgcc.h: Likewise.
23173
b7f3ac29
VS
231742010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23175
23176 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23177 disk_info_msg (conflicts with gettexting into languages with cases).
23178
2c7031b1
GS
231792010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23180
23181 Add grub-probe support for NetBSD.
23182
23183 * util/getroot.c (find_root_device): Convert block device to
23184 character device on NetBSD.
23185 * util/probe.c (probe): Require character device on NetBSD.
23186 * util/hostdisk.c: NetBSD specific headers.
23187 (configure_device_driver): new function to tune device driver
23188 parameters (currently only for NetBSD floppy driver).
23189 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23190 via disklabel ioctl).
23191 (open_device): call configure_device_driver on NetBSD.
23192 (convert_system_partition_to_system_disk): NetBSD specific code.
23193 (device_is_wholedisk): Likewise.
23194 (grub_util_biosdisk_get_grub_dev): Likewise.
23195 (make_device_name): Fixed a typo in bsd_part_str.
23196 * configure.ac: check for opendisk() and getrawpartition() on
23197 NetBSD and set LIBUTIL.
23198 * Makefile.in: add LIBUTIL to LIBS.
23199
f516290c
BC
232002010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23201
23202 Documentation fix.
23203
23204 * util/grub-script-check.c: Better help message.
23205
d8dcc0df
BC
232062010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23207
23208 Fix FreeBSD build.
23209
23210 * configure.ac: Flex version check.
23211 * conf/common.rmk: Add -Wno-error to sh.mod.
23212 * script/yylex.l: Remove all #pragma.
23213
6734334a
VS
232142010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23217 prototype.
23218 Reported by: Seth Goldberg.
23219
daea6abd
VS
232202010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23223 Rename "module" to "module2".
23224 Reported by: Seth Goldberg.
23225
f2fd9d2b
VS
232262010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23227
23228 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23229 EXPORT_FUNC.
23230 Reported by: Seth Goldberg.
23231
be124579
VS
232322010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23233
23234 * lib/posix_wrap/locale.h: Add missing file.
23235 Reported by: Seth Goldberg.
23236
ef5da797
VS
232372010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23238
23239 grub-emu module load support.
23240
23241 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23242 NO_DYNAMIC_MODULES switched to this.
23243 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23244 (CFLAGS): Likewise.
23245 * conf/any-emu.rmk: Generate symlist.
23246 (kernel_img_HEADERS): Add util/datetime.h.
23247 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23248 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23249 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23250 kern/$(target_cpu)/cache.S.
23251 * configure.ac (grub-emu-modules): New option.
23252 * genmk.rb: Handle multiple source lists.
23253 * include/grub/sdl.h: New file.
23254 * include/grub/libusb.h: Likewise.
23255 * util/grub-emu.c (main): Hanle (host) root.
23256 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23257 GRUB_ERR_UNKNOWN_DEVICE.
23258 * util/misc.c: Move mm functions to ...
23259 * util/mm.c: ... here. All users updated.
23260
47822096
VS
232612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23262
23263 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23264 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23265 missing files.
23266 (maintainer-clean): Remove libgcrypt-grub.
23267
5d7e7445
VS
232682010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23269
23270 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23271
25f4e252
EC
232722010-04-09 EFI Coder <eficoder@hotmail.com>
23273
23274 * normal/menu_text.c (print_message): Clean up the message and show
23275 the Fn information when on EFI
23276 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23277
027de555
VS
232782010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23279
23280 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23281 All users updated.
23282 * normal/crypto.c (read_crypto_list): Likewise.
23283 * normal/dyncmd.c (read_command_list): Likewise.
23284 * normal/term.c (read_terminal_list): Likewise.
23285 * normal/main.c (read_lists): Use explicit prefix.
23286 (read_lists_hook): Use read_lists.
23287 (grub_normal_execute): Likewise.
23288
47779711
VS
232892010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23290
23291 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23292 Reported by: Thomas Schmitt.
23293 Add -no-emul-boot to grub-mkisofs parameters.
23294
1118c32e
VS
232952010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23296
23297 * font/font.c: Indented.
23298
7d652447
BC
232992010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23300
23301 Elif support to GRUB script (by Deepak Vankadaru).
23302
23303 * tests/grub_script_if.in: New testcase.
23304 * conf/tests.rmk: Rule for new testcase.
23305 * script/parser.y: Grammar rules for elif.
23306
34bb22df
BC
233072010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23308
23309 While and until loops support to GRUB script.
23310
23311 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
23312 (grub_script_create_cmdwhile): New function prototype.
23313 (grub_script_execute_cmdwhile): New function prototype.
23314 * script/execute.c (grub_script_execute_cmdwhile): New function.
23315 * script/parser.y (command): New commands.
23316 (whilecmd): New grammar rule.
23317 (untilcmd): New grammar rule.
23318 * script/script.c (grub_script_create_cmdwhile): New function.
23319 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
23320 function.
23321
23322 * tests/grub_script_while1.in: New testcase.
23323 * conf/tests.rmk: Rule for new testcase.
23324
e215d8e0
VS
233252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23326
23327 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
23328 as *.jpg.
23329
d7c43ba1
MV
233302010-04-09 Mario Vazquez <mariovazq@gmail.com>
23331
23332 GRUB_BACKGROUND support.
23333
23334 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
23335 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
23336
d64795c0
VS
233372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 23340 Idea by: Mario Vazquez
d64795c0
VS
23341
23342 * util/grub.d/00_header.in: Load pf2 and image modules.
23343
f267f83a
VS
233442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23345
23346 grub-mkconfig multiple terminal support.
23347
23348 * util/grub-mkconfig.in: Handle multiple terminals correctly.
23349 * util/grub.d/00_header.in: Likewise.
23350
b7841ceb
VS
233512010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23352
23353 * Makefile.in: Specify files explicitly instead of using $< and $@ since
23354 we use cd $(srcdir).
23355
df60998c
CW
233562010-04-08 Colin Watson <cjwatson@ubuntu.com>
23357
23358 * util/grub.d/10_linux.in: Only use the first word of
23359 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
23360 spaces in GRUB_DISTRIBUTOR.
23361 * util/grub.d/10_kfreebsd.in: Likewise.
23362 * util/grub.d/10_hurd.in: Likewise.
23363
fa09c82e
BC
233642010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
23365
14e18ae3 23366 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
23367
23368 * tests/util/grub-shell.in: Remove -serial stdio option.
23369
daf892b3
BC
233702010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23371
23372 POSIX header file wrappers.
23373
23374 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
23375 equivalents.
23376 * lib/posix_wrap/ctype.h: Likewise.
23377 * lib/posix_wrap/errno.h: Likewise.
23378 * lib/posix_wrap/langinfo.h: Likewise.
23379 * lib/posix_wrap/limits.h: Likewise.
23380 * lib/posix_wrap/localcharset.h: Likewise.
23381 * lib/posix_wrap/stdint.h: Likewise.
23382 * lib/posix_wrap/stdio.h: Likewise.
23383 * lib/posix_wrap/stdlib.h: Likewise.
23384 * lib/posix_wrap/string.h: Likewise.
23385 * lib/posix_wrap/sys/types.h: Likewise.
23386 * lib/posix_wrap/unistd.h: Likewise.
23387 * lib/posix_wrap/wchar.h: Likewise.
23388 * lib/posix_wrap/wctype.h: Likewise.
23389 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
23390 (grub_script.yy.h): Likewise.
23391 * script/yylex.l: Remove POSIX emulation #defines.
23392 * Makefile.in (POSIX_CFLAGS): New variable.
23393 (GNULIB_UTIL_CFLAGS): Likewise.
23394
23395 Regexp support.
23396
23397 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
23398 (regexp_mod_SOURCES): New variable.
23399 (regexp_mod_CFLAGS): Likewise.
23400 (regexp_mod_LDFLAGS): Likewise.
23401 * commands/regexp.c: New file.
23402 * gnulib/regcomp.c: New file. Imported from gnulib.
23403 * gnulib/regex.c: Likewise.
23404 * gnulib/regex_internal.c: Likewise.
23405 * gnulib/regex_internal.h: Likewise.
23406 * gnulib/regexec.c: Likewise.
23407 * gnulib/regex.h: Likewise.
23408
974ac4f7
VS
234092010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23410
23411 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
23412 unsupported video mode types.
23413
2622c3ff
VS
234142010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23415
23416 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
23417
064cb524
VS
234182010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23419
23420 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
23421 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
23422
a8c3b552
VS
234232010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23424
23425 Remove unused grub_vga_get_font.
23426
23427 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
23428 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
23429
187bbe3d
GS
234302010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23431
23432 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
23433 * include/grub/misc.h: Likewise.
23434
b9396631
GS
234352010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23436
23437 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
23438 for which failure is fatal.
23439
50479feb
GS
234402010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23441
23442 * util/grub-install.in: Use mkdir -p to create grub directory.
23443 * util/i386/efi/grub-install.in: Likewise.
23444 * util/ieee1275/grub-install.in: Likewise.
23445
b1654fdf
GS
234462010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23447
23448 * Makefile.in (LEX): new variable.
23449
bd5a6415
GS
234502010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23451
23452 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
23453 `=' and added double quotes on operands of this equality test.
23454
3db3a82b
VS
234552010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23456
23457 * Makefile.in (uninstall): Remove a leftover debug echo.
23458 Reported by: Grégoire Sutre
23459
38023412
VS
234602010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23461
23462 MIPS multiboot2 support.
23463
23464 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
23465 (multiboot2_mod_SOURCES): New variable.
23466 (multiboot2_mod_CFLAGS): Likewise.
23467 (multiboot2_mod_LDFLAGS): Likewise.
23468 (multiboot2_mod_ASFLAGS): Likewise.
23469 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
23470 definition.
23471 (MULTIBOOT_ENTRY_REGISTER): Likewise.
23472 (MULTIBOOT_MBI_REGISTER): Likewise.
23473 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
23474 (MULTIBOOT_ELF32_MACHINE): Likewise.
23475 (MULTIBOOT_ELF64_MACHINE): Likewise.
23476 * include/grub/mips/multiboot.h: New file.
23477 * include/grub/video.h (grub_video_driver_id): New type
23478 GRUB_VIDEO_DRIVER_SM712.
23479 (grub_video_get_info_and_fini): Export.
23480 (grub_video_get_palette): Likewise.
23481 (grub_video_get_driver_id): Likewise.
23482 * include/multiboot2.h: Resynced with spec.
23483 * loader/i386/multiboot.c: Moved from here ...
23484 * loader/multiboot.c: ... here. All users updated.
23485 (grub_multiboot_boot): Use platform-specific macros.
23486 * loader/i386/multiboot_elfxx.c: Moved from here ...
23487 * loader/multiboot_elfxx.c: ... here. All users updated.
23488 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
23489 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
23490 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
23491
47674667
VS
234922010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
23493
23494 Import gnulib argp module.
23495
23496 * gnulib/argp-ba.c: New file.
23497 * gnulib/argp-eexst.c: Likewise.
23498 * gnulib/argp-fmtstream.c: Likewise.
23499 * gnulib/argp-fmtstream.h: Likewise.
23500 * gnulib/argp-fs-xinl.c: Likewise.
23501 * gnulib/argp-help.c: Likewise.
23502 * gnulib/argp-namefrob.h: Likewise.
23503 * gnulib/argp-parse.c: Likewise.
23504 * gnulib/argp-pin.c: Likewise.
23505 * gnulib/argp-pv.c: Likewise.
23506 * gnulib/argp-pvh.c: Likewise.
23507 * gnulib/argp-version-etc.c: Likewise.
23508 * gnulib/argp-version-etc.h: Likewise.
23509 * gnulib/argp-xinl.c: Likewise.
23510 * gnulib/argp.h: Likewise.
23511
495442ed
VS
235122010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23513
23514 * kern/device.c (grub_device_iterate): Clear errors after failed
23515 opening device.
23516
f9fd65df
VS
235172010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23518
23519 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
23520 returned by firmware.
23521
af09641e
VS
235222010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
23523
23524 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
23525 compilation on coreboot and qemu
23526
016883a5
VS
235272010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 * include/multiboot2.h: Resync with spec.
23530
f97e1f7d
VS
235312010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23532
23533 Multiboot2 tag support
23534
23535 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
23536 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
23537 Remove loader/multiboot_loader.c.
23538 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
23539 (grub_multiboot2_real_boot): Likewise.
23540 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
23541 (grub_get_multiboot_mmap_count): New proto.
23542 (grub_fill_multiboot_mmap): Likewise.
23543 (grub_multiboot_set_video_mode): Likewise.
23544 (grub_multiboot_set_console): Likewise.
23545 (grub_multiboot_load): Likewise.
23546 (grub_multiboot_load_elf): Likewise.
23547 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
23548 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
23549 * include/multiboot.h: Resynced with specification.
23550 * include/multiboot2.h: Resynced with specification.
23551 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
23552 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
23553 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
23554 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
23555 users updated.
23556 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
23557 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
23558 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
23559 Removed.
23560 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
23561 Moved from here...
23562 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
23563 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23564 Moved from here...
23565 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
23566 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
23567 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
23568 All users updated.
23569 * loader/i386/multiboot_mbi2.c: New file.
23570
3506b90b
VS
235712010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23572
23573 Resync with gnulib.
23574
23575 * Makefile.in (GNULIB_CFLAGS): New variable.
23576 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
23577 (grub_script_check_CFLAGS): New variable.
23578 * gnulib/alloca.h: Resync with gnulib.
23579 * gnulib/error.c: Likewise.
23580 * gnulib/error.h: Likewise.
23581 * gnulib/fnmatch.c: Likewise.
23582 * gnulib/fnmatch_loop.c: Likewise.
23583 * gnulib/getdelim.c: Likewise.
23584 * gnulib/getline.c: Likewise.
23585 * gnulib/getopt.c: Likewise.
23586 * gnulib/getopt1.c: Likewise.
23587 * gnulib/getopt_int.h: Likewise.
23588 * gnulib/gettext.h: Likewise.
23589 * gnulib/progname.c: Likewise.
23590 * gnulib/progname.h: Likewise.
23591
394a3120
GS
235922010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
23593
23594 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
23595 which is the case with --disabled-nls.
23596
23597 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
23598 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
23599 * util/misc.c: Likewise.
23600 * util/mkisofs/mkisofs.c: Likewise.
23601 * util/mkisofs/mkisofs.h: Likewise.
23602
969d1c78
VS
236032010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23604
23605 Simplify Apple CC support.
23606
23607 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
23608 Add 0 byte at the end not to have a symbol with empty target.
23609 * mmap/i386/pc/mmap_helper.S: Likewise.
23610 * genmk.rb: Ignore errors 2030 and 2050.
23611 * kern/i386/pc/startup.S: Use LOCAL when possible.
23612
8d2977bb
BC
236132010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
23614
23615 Testcase and the fix for final semicolon on cmdline.
23616
23617 * tests/grub_script_final_semicolon.in: New testcase.
23618 * conf/tests.rmk: Rules for the new testcase.
23619 * script/parser.y: Grammar fix.
23620
a7bd6915
BC
236212010-03-26 BVK Chaitanya <bvk@localhost>
23622
23623 Blank lines testcase for GRUB script.
23624
23625 * tests/grub_script_blanklines.in: New testcase.
23626 * conf/tests.rmk: Rules for the new testcase.
23627
e4ff6628
VS
236282010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23629
23630 Don't use __FILE__.
23631
23632 * genmk.rb: Add -DGRUB_FILE to all C targets.
23633 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
23634 * include/grub/list.h: Likewise.
23635 * include/grub/misc.h: Likewise.
23636 * include/grub/mm.h: Likewise.
23637 * include/grub/test.h: Likewise.
23638 * kern/mm.c: Likewise.
23639 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23640
6a5cf6b6
VS
236412010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 Sunpc partitions support.
23644
23645 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
23646 (grub_fstest_SOURCES): Likewise.
23647 (pkglib_MODULES): Add part_sunpc.mod.
23648 (part_sunpc_mod_SOURCES): New variable.
23649 (part_sunpc_mod_CFLAGS): Likewise.
23650 (part_sunpc_mod_LDFLAGS): Likewise.
23651 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
23652 * partmap/sunpc.c: New file.
23653
746d9045
BC
236542010-03-26 BVK Chaitanya <bvk@localhost>
23655
23656 For loop support to GRUB script.
23657
23658 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
23659 (grub_script_create_cmdfor): New function prototype.
23660 (grub_script_execute_cmdfor): New function prototype.
23661 * script/execute.c (grub_script_execute_cmdfor): New function.
23662 * script/parser.y (command): New for command.
23663 (forcmd): New grammar rule.
23664 * script/script.c (grub_script_create_cmdfor): New function.
23665 * util/grub-script-check.c (grub_script_execute_cmdfor): New
23666 function.
23667 * tests/grub_script_for1.in: New testcase.
23668 * conf/tests.rmk: Rules for new testcase.
23669
18486b18
VS
236702010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23671
23672 Nested partitions
23673
23674 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
23675 'partition' is NULL, grub_partition_get_start already does that.
23676 * commands/loadenv.c (check_blocklists): Likewise.
23677 (write_blocklists): Likewise.
23678 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
23679 (grub_fstest_SOURCES): Likewise.
23680 (pkglib_MODULES): Add part_bsd.mod.
23681 (part_bsd_mod_SOURCES): New variable.
23682 (part_bsd_mod_CFLAGS): Likewise.
23683 (part_bsd_mod_LDFLAGS): Likewise.
23684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
23685 (grub_emu_SOURCES): Likewise.
23686 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23687 * include/grub/bsdlabel.h: New file.
23688 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
23689 'get_name'.
23690 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
23691 (grub_partition_map_list): New variable.
23692 (grub_partition_map_register): Inline.
23693 (grub_partition_map_unregister): Likewise.
23694 (FOR_PARTITION_MAPS): New macro.
23695 (grub_partition_map_iterate): Removed.
23696 (grub_partition_get_start): Handle nested partitions.
23697 * include/grub/msdos_partition.h: Remove bsd-related entries.
23698 (grub_pc_partition): Remove.
23699 * kern/disk.c (grub_disk_close): Free partition data.
23700 (grub_disk_adjust_range): Handle nested partitions.
23701 * kern/partition.c (grub_partition_map_probe): New function.
23702 (grub_partition_probe): Parse name to number, handle subpartitions.
23703 (get_partmap): New function.
23704 (grub_partition_iterate): Handle subpartitions.
23705 (grub_partition_get_name): Likewise.
23706 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
23707 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
23708 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
23709 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
23710 Set 'number'.
23711 (acorn_partition_map_probe): Remove.
23712 (acorn_partition_map_get_name): Likewise.
23713 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
23714 Set 'number'.
23715 Set 'index' to 0 since there can be only one partition entry per sector.
23716 (amiga_partition_map_probe): Remove.
23717 (amiga_partition_map_get_name): Likewise.
23718 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
23719 Set 'number'.
23720 Set 'offset' and 'index' to real positions of partitions.
23721 (apple_partition_map_probe): Remove.
23722 (apple_partition_map_get_name): Likewise.
23723 * partmap/bsdlabel.c: New file.
23724 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
23725 Set 'number'.
23726 Allocate 'data' so it can be correctly freed.
23727 Set 'index' to offset inside sector.
23728 (gpt_partition_map_probe): Remove.
23729 (gpt_partition_map_get_name): Likewise.
23730 * partmap/msdos.c (grub_partition_parse): Remove.
23731 (pc_partition_map_iterate): Don't force raw access.
23732 Set 'number'.
23733 Make 'ext_offset' a local variable.
23734 (pc_partition_map_probe): Remove.
23735 (pc_partition_map_get_name): Remove.
23736 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
23737 Set 'number'.
23738 (sun_partition_map_probe): Remove.
23739 (sun_partition_map_get_name): Likewise.
23740 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
23741 (grub_pcpart_type): Likewise.
23742 * util/hostdisk.c (open_device): Handle new numbering scheme.
23743 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
23744 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
23745 * util/grub-probe.c (probe_partmap): Handle nested paritions.
23746 * util/grub-install.in: Insert all subpartition modules.
23747 * util/ieee1275/grub-install.in: Likewise.
23748
a3940f88
AG
237492010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
23750
23751 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
23752 grammar.
23753
21b99926 237542010-03-24 Colin Watson <cjwatson@ubuntu.com>
23755
23756 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
23757
bed1d352
CW
237582010-03-21 Colin Watson <cjwatson@ubuntu.com>
23759
23760 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
23761 match where 'make install' puts them.
23762 * util/i386/efi/grub-install.in: Likewise.
23763
c9f58427
CW
237642010-03-19 Colin Watson <cjwatson@ubuntu.com>
23765
23766 * .bzrignore: Add gentrigtables, grub-script-check,
23767 grub_script_check_init.c, grub_script_check_init.h, and
23768 trigtables.c.
23769
f84afb27
VS
237702010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
23771
23772 * kern/parser.c: Indented.
23773
ed0e3d30
VS
237742010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
23777
0ea81d98
VS
237782010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
23781 alpha_mask_size == 0 case.
23782
0cdc2a09
BC
237832010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
23784
23785 GRUB shell lexer and parser improvements.
23786
23787 * conf/any-emu.rmk: Build rule updates.
23788 * conf/common.rmk: Likewise.
23789 * conf/i386-coreboot.rmk: Likewise.
23790 * conf/i386-efi.rmk: Likewise.
23791 * conf/i386-ieee1275.rmk: Likewise.
23792 * conf/i386-pc.rmk: Likewise.
23793 * conf/powerpc-ieee1275.rmk: Likewise.
23794 * conf/x86_64-efi.rmk: Likewise.
23795
23796 * configure.ac: Configure check for flex.
23797
23798 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
23799 types.
23800 (grub_lexer_param): Struct member updates.
23801 (grub_parser_param): Likewise.
23802 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
23803 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
23804 (grub_script_lexer_init): Prototype update.
23805 (grub_script_lexer_record_start): Likewise.
23806 (grub_script_lexer_record_stop): Likewise.
23807 (grub_script_lexer_yywrap): New function prototype.
23808 (grub_script_lexer_fini): Likewise.
23809 (grub_script_execute_argument_to_string): Removed by...
23810 (grub_script_execute_argument_to_argv): ...better version.
23811
23812 * script/execute.c (ROUND_UPTO): New macro.
23813 (grub_script_execute_cmdline): Out of memory fixes.
23814 (grub_script_execute_menuentry): Likewise.
23815 (grub_script_execute_argument_to_string): Removed. Update all
23816 users by...
23817 (grub_script_execute_argument_to_argv): ...better version.
23818 * script/function.c (grub_script_function_create): Use
23819 grub_script_execute_argument_to_argv instead of
23820 grub_script_execute_argument_to_string.
23821
23822 * script/lexer.c (check_varstate): Removed.
23823 (check_textstate): Removed.
23824 (grub_script_lexer_record_start): Likewise.
23825 (grub_script_lexer_record_stop): Likewise.
23826 (recordchar): Replaced with...
23827 (grub_script_lexer_record): ...new function.
23828 (nextchar): Removed.
23829 (grub_script_lexer_init): Rewritten.
23830 (grub_script_yylex): Rewritten.
23831 (append_newline): New function.
23832 (grub_script_lexer_yywrap): New function.
23833 (grub_script_lexer_fini): New function.
23834 (grub_script_yyerror): Sets error flag.
23835
23836 * script/yylex.l: New file.
23837 (grub_lexer_yyfree): Wrapper for flex yyffre.
23838 (grub_lexer_yyalloc): Likewise.
23839 (grub_lexer_yyrealloc): Likewise.
23840 * script/parser.y: Refactored.
23841
23842 * script/script.c (grub_script_arg_add): Out of memory fixes.
23843 (grub_script_add_arglist): Likewise.
23844 (grub_script_create_cmdline): Likewise.
23845 (grub_script_create_cmdmenu): Likewise.
23846 (grub_script_add_cmd): Likewise.
23847 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23848 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23849 unnecessary code.
23850
23851 * tests/grub_script_echo1.in: New testcase.
23852 * tests/grub_script_vars1.in: New testcase.
23853 * tests/grub_script_echo_keywords.in: New testcase.
23854
1d63a066
VS
238552010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23856
23857 Remove some redundancy in build system.
23858
23859 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23860 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23861 (TARGET_LDFLAGS): Add -nostdlib.
23862 (TARGET_IMG_LDFLAGS): Likewise.
23863 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
23864 anything since mmap isn't available.
23865 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
23866 Add util/time.c.
23867 (pkglib_MODULES): Remove reboot.mod.
23868 (reboot_mod_SOURCES): Removed.
23869 (reboot_mod_CFLAGS): Likewise.
23870 (reboot_mod_LDFLAGS): Likewise.
23871 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
23872 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
23873 (DEFSYMFILES): Add kernel_syms.lst.
23874 (kernel_img_HEADERS): Add common headers.
23875 (symlist.c): New target.
23876 (kernel_syms.lst): Likewise.
23877 (pkglib_MODULES): Add memdisk.mod.
23878 (memdisk_mod_SOURCES): New variable.
23879 (memdisk_mod_CFLAGS): Likewise.
23880 (memdisk_mod_LDFLAGS): Likewise.
23881 (pkglib_MODULES): Add reboot.mod.
23882 (reboot_mod_SOURCES): New variable.
23883 (reboot_mod_CFLAGS): Likewise.
23884 (reboot_mod_LDFLAGS): Likewise.
23885 (pkglib_MODULES): Add date.mod.
23886 (date_mod_SOURCES): New variable.
23887 (date_mod_CFLAGS): Likewise.
23888 (date_mod_LDFLAGS): Likewise.
23889 (pkglib_MODULES): Add datehook.mod.
23890 (datehook_mod_SOURCES): New variable.
23891 (datehook_mod_CFLAGS): Likewise.
23892 (datehook_mod_LDFLAGS): Likewise.
23893 (pkglib_MODULES): Add lsmmap.mod.
23894 (lsmmap_mod_SOURCES): New variable.
23895 (lsmmap_mod_CFLAGS): Likewise.
23896 (lsmmap_mod_LDFLAGS): Likewise.
23897 (pkglib_MODULES): Add boot.mod.
23898 (boot_mod_SOURCES): New variable.
23899 (boot_mod_CFLAGS): Likewise.
23900 (boot_mod_LDFLAGS): Likewise.
23901 * conf/i386-coreboot.rmk: Removed redundant parts.
23902 * conf/i386-ieee1275.rmk: Likewise.
23903 * conf/i386-pc.rmk: Likewise.
23904 * conf/mips-yeeloong.rmk: Likewise.
23905 * conf/mips.rmk: Likewise.
23906 * conf/powerpc-ieee1275.rmk: Likewise.
23907 * conf/sparc64-ieee1275.rmk: Likewise.
23908 * conf/x86_64-efi.rmk: Likewise.
23909 * conf/i386-coreboot.rmk: Moved qemu parts ..
23910 * conf/i386-qemu.rmk: ... here
23911 * conf/i386-efi.rmk: Moved common parts to...
23912 * conf/x86-efi.rmk: ... here.
23913 * conf/i386.rmk: Added modules common to all x86 variants.
23914 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23915 * disk/memdisk.c: Remove grub/machine/kernel.h.
23916 * gensymlist.sh.in: Include symbol.h.
23917 * hook/datehook.c: Correct module name.
23918 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23919 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23920 * include/grub/i386/efi/serial.h: New file.
23921 * include/grub/x86_64/efi/serial.h: Likewise.
23922 * util/time.c: Likewise.
23923 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23924
463ac55f
CK
239252010-03-14 Colin King <colin.king@ubuntu.com>
239262010-03-14 Colin Watson <cjwatson@ubuntu.com>
23927
23928 Shrink the pre-partition-table part of boot.img by eight bytes.
23929
23930 * boot/i386/pc/boot.S (ERR): New macro.
23931 (chs_mode): Use ERR.
23932 (geometry_error): Likewise.
23933 (hd_probe_error): Remove. This is only used once, so we wrwite
23934 it inline instead.
23935 (read_error): Instead of printing read_error_string, just set up
23936 %si and fall through to ...
23937 (error_message): ... this new function, also used by ERR.
23938
08e46ede
CW
239392010-03-14 Colin Watson <cjwatson@ubuntu.com>
23940
23941 Speed up consecutive hostdisk operations on the same device.
23942
23943 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23944 (grub_util_biosdisk_open): Initialise disk->data.
23945 (struct linux_partition_cache): New structure.
23946 (linux_find_partition): Cache partition start positions; these are
23947 expensive to compute on every read and write.
23948 (open_device): Cache open file descriptor in disk->data, so that we
23949 don't have to reopen it and flush the buffer cache for consecutive
23950 operations on the same device.
23951 (grub_util_biosdisk_close): New function.
23952 (grub_util_biosdisk_dev): Set `close' member.
23953
23954 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23955 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23956 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23957 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23958 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23959
4a6d2d06
VS
239602010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 Compile parts of grub-emu as modules.
23963
23964 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23965 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23966 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23967 (all-local): Add $(GRUB_EMU).
23968 (install-local): Install $(GRUB_EMU).
23969 (uninstall): Uninstall $(GRUB_EMU).
23970 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23971 * kern/dl.c: Likewise.
23972 * commands/sleep.c: Not include machine/time.h.
23973 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23974 (COMMON_CFLAGS): Likewise.
23975 (sbin_UTILITIES): Remove grub-emu.
23976 (grub_emu_SOURCES): Removed.
23977 (kernel_img_RELOCATABLE): New variable.
23978 (pkglib_PROGRAMS): Add kernel.img.
23979 (kernel_img_SOURCES): New variable
23980 (kernel_img_CFLAGS): Likewise.
23981 (kernel_img_LDFLAGS): Likewise.
23982 (TARGET_NO_STRIP): Likewise.
23983 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23984 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23985 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23986 (grub-emu): New target.
23987 (GRUB_EMU): New variable.
23988 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23989 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23990 * loader/xnu.c: Likewise.
23991 * include/grub/pci.h: Likewise.
23992 * genemuinit.sh: New file.
23993 * genemuinitheader.sh: Likewise.
23994 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23995 Support TARGET_NO_DYNAMIC_MODULES.
23996 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23997 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23998 * disk/loopback.c: Likewise.
23999 * font/font_cmd.c: Likewise.
24000 * partmap/acorn.c: Likewise.
24001 * partmap/amiga.c: Likewise.
24002 * partmap/apple.c: Likewise.
24003 * partmap/gpt.c: Likewise.
24004 * partmap/msdos.c: Likewise.
24005 * partmap/sun.c: Likewise.
24006 * parttool/msdospart.c: Likewise.
24007 * term/gfxterm.c: Likewise.
24008 * video/bitmap.c: Likewise.
24009 * video/readers/jpeg.c: Likewise.
24010 * video/readers/png.c: Likewise.
24011 * video/readers/tga.c: Likewise.
24012 * video/video.c: Likewise.
24013 * util/grub-emu.c (read_command_list): Removed.
24014 (main): Don't call util_init_nls.
24015 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
24016 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24017
91fdd2ed
VS
240182010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24019
24020 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24021 date.mod, datehook.mod.
24022 (datetime_mod_SOURCES): New variable.
24023 (datetime_mod_CFLAGS): Likewise.
24024 (datetime_mod_LDFLAGS): Likewise.
24025 (date_mod_SOURCES): Likewise.
24026 (date_mod_CFLAGS): Likewise.
24027 (date_mod_LDFLAGS): Likewise.
24028 (datehook_mod_SOURCES): Likewise.
24029 (datehook_mod_CFLAGS): Likewise.
24030 (datehook_mod_LDFLAGS): Likewise.
24031 * conf/sparc64-ieee1275.rmk: Likewise.
24032 * lib/ieee1275/datetime.c: New file.
24033
873ccae6
VS
240342010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24035
24036 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24037 (ieee1275_fb_mod_SOURCES): New variable.
24038 (ieee1275_fb_mod_CFLAGS): Likewise.
24039 (ieee1275_fb_mod_LDFLAGS): Likewise.
24040 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24041 New proto.
24042 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24043 (HEAP_MAX_ADDR): Likewise.
24044 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24045 type.
24046 Correct stop condition.
24047 (grub_ieee1275_devices_iterate): New function.
24048 * video/ieee1275.c: New file.
24049
601c97c0
VS
240502010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24051
24052 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24053
24054 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24055 as scratch.
24056 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24057 SCRATCH_PAD_DISKBOOT as scratch.
24058 (bootit): Pass Openfirmware pointer in %o4.
24059 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24060 of 0x200000.
24061 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24062 with util/grub-mkrawimage.c.
24063 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24064 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24065 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24066 (grub_aout_load) [GRUB_UTIL]: Likewise.
24067 * include/grub/kernel.h (grub_modules_get_end): New proto.
24068 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24069 (SCRATCH_PAD_BOOT): New definition.
24070 (SCRATCH_PAD_DISKBOOT): Likewise.
24071 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24072 * include/grub/sparc64/ieee1275/ieee1275.h
24073 (grub_ieee1275_original_stack): New variable
24074 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24075 New definition
24076 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24077 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24078 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24079 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24080 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24081 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24082 (grub_platform_image_format_t): New type.
24083 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24084 * kern/main.c (grub_modules_get_end)
24085 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24086 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24087 (codestart): Switch stacks.
24088 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24089 variable.
24090 (grub_heap_init): Use grub_modules_get_end.
24091 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24092 stack.
24093 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24094 (main): Likewise.
24095 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24096
d68b491e
TG
240972010-03-14 Thorsten Glaser <tg@mirbsd.org>
24098
24099 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24100
4e02ed50
MK
241012010-03-08 Matt Kraai <kraai@ftbfs.org>
24102
24103 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24104 bug #559005).
24105
1f15fc1e
VS
241062010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24107
24108 * genmoddep.awk: Output all missing symbols and not only first.
24109
fce5d8ff
VS
241102010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24111
24112 * NEWS: Put the date of 1.98 release.
24113
d1e8a02f
VS
241142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24115
24116 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24117 ft2build.h.
24118
696fd607
VS
241192010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24120
24121 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24122 completition in the middle of string.
24123
33e2e6f3
VS
241242010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24125
24126 * util/grub-mkrescue.in: Use mktemp with explicit template.
24127
b1f6d291
VS
241282010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24129
24130 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24131
2ac227c7
VS
241322010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24133
24134 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24135 right pointer.
24136
8f9a632b
VS
241372010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24138
24139 Fix FreeBSD compilation.
24140
24141 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24142 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24143
60b03859
VS
241442010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24145
24146 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24147
48a5a769
VS
241482010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24149
24150 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24151
3ab4bd77
VS
241522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24153
24154 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24155
d116e0d8
RM
241562010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24157
24158 Support relative image path in theme file.
24159
24160 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24161 (image_set_property): Handle theme_dir and relative path.
24162
c7ef54aa
VS
241632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24164
24165 * configure.ac: Alias amd64 to x86_64.
24166
fcee14ed
VS
241672010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24168
24169 * NEWS: mention multiboot on EFI.
24170
d0780363
VS
241712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * kern/main.c (grub_load_modules): Handle errors from init functions of
24174 embeded modules.
24175
41168ea4
VS
241762010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24177
24178 * normal/autofs.c (autoload_fs_module): Handle errors.
24179
b54d93ac
VS
241802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24181
24182 Disable linux.mod on qemu-mips since it's not functional and leads
24183 to compilation failure.
24184
24185 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24186 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24187 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24188 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24189 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24190 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24191 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24192 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24193 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24194 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24195 Reported by: BVK Chaitanya
24196
fc8345da
JU
241972010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24198
24199 * INSTALL: Add gettext as a dependency and add qemu to a new section
24200 "Prerequisites for make-check".
24201
4760f979
CF
242022010-03-04 Christian Franke <franke@computer.org>
24203
24204 * util/grub-pe2elf.c: Add missing include "progname.h".
24205
f209b5b2
VS
242062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24207
24208 * normal/crypto.c (read_crypto_list): Fix a typo.
24209 Reported by: Seth Goldberg.
24210
b4b7be98
VS
242112010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24212
24213 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 24214 Reported by: Seth Goldberg.
b4b7be98 24215
c0ee0385
VS
242162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24217
24218 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24219 ascii.bitmaps.
24220
a8efbf64
VS
242212010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24222
24223 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 24224 Reported by: Seth Goldberg.
a8efbf64 24225
08dcd913
VS
242262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24227
24228 * util/i386/efi/grub-install.in: Copy gettext files.
24229
c4d0b332
VS
242302010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24231
24232 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24233
c6f2fe52
VS
242342010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24235
24236 Wait for user entry basing on presence of output rather than on errors.
24237
24238 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24239 (grub_install_newline_hook): Likewise.
24240 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24241 * normal/menu.c (show_menu): Check line_counter to determine presence
24242 of output.
24243 * normal/term.c (grub_normal_line_counter): New variable.
24244 (grub_normal_get_line_counter): New function.
24245 (grub_install_newline_hook): Likewise.
24246
5382b1e4
VS
242472010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24248
24249 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24250
5519963b
VS
242512010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24252
24253 * configure.ac: Update version to 1.98.
24254
72b28631
VS
242552010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24256
24257 * util/grub.d/10_linux.in (linux_entry): Don't default to
24258 gfxpayload=keep if Linux doesn't support video handover.
24259
c140a180
VS
242602010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 Don't compile video modules on yeeloong since video subsystem is part
24263 of kernel.
24264
24265 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24266 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24267 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24268 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24269 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24270 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24271 * include/grub/bitmap_scale.h: Likewise.
24272 * include/grub/bufio.h: Likewise.
24273 * include/grub/font.h: Likewise.
24274 * include/grub/gfxterm.h: Likewise.
24275 * include/grub/video.h: Likewise.
24276 * include/grub/vbe.h: Don't include video_fb.h.
24277 * video/i386/pc/vbe.c: Include video_fb.h.
24278 * commands/i386/pc/vbetest.c: Include video.h.
24279
a0ca21c2
CW
242802010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24281
24282 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24283 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24284 default entry if GRUB_SAVEDEFAULT=true. This allows using
24285 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24286 saving a new default on every boot.
24287
4a8a763c
VS
242882010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24289
24290 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24291 * normal/term.c (read_terminal_list): Likewise.
24292 * normal/main.c (grub_normal_init_page): Likewise.
24293 (grub_normal_read_line_real): Likewise.
24294
607ffde2
VS
242952010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24296
24297 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24298 memory leak.
24299 Reported by: Seth Goldberg.
24300
2b8fa975
CW
243012010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24302
24303 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
24304 duplicate declaration of `start'.
24305
618307dd
VS
243062010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24307
24308 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
24309 filename.
24310 Reported by: Georgy Buranov
24311
7dd05b96 243122010-02-20 Carles Pina i Estany <carles@pina.cat>
24313
24314 * util/grub-mkrawimage.c (usage): Change string formatting to
24315 improve gettext.
24316
d1484a42
MRA
243172010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
24318
24319 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
24320 backspace keys.
24321
42b1d186
VS
243222010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24323
24324 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
24325 Reported by: Michael Suchanek.
24326
243272010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
24328
24329 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
24330 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
24331
d9f31a41
VS
243322010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 Remove any reference to non-free fonts.
24335
24336 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
24337 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
24338 uses non-free components.
24339 * font/font.c (grub_font_get_name): Remove example name.
24340 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
24341 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
24342 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
24343 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
24344
2793c71e
GB
243452010-02-16 Georgy Buranov <gburanov@gmail.com>
24346
24347 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
24348
402e3779
VS
243492010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24350
24351 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
24352 Double divisor.
24353 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
24354 features.
24355 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
24356
0dd1e0dd
VS
243572010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24358
24359 * gensymlist.sh.in: Use TARGET_CC instead of CC.
24360
6fa7cfce
ST
243612010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24362
24363 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
24364 * docs/grub.texi (Command-line and menu entry commands): Document play
24365 command.
24366
37c8483b
ST
243672010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24368
24369 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
24370 parse arguments as inline tempo and notes. Move code for playing notes
24371 to...
24372 (play): ... new function.
24373
14da0fb7
ST
243742010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24375
24376 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
24377 grub_uint16_t instead of short.
24378 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
24379 disk from little endian to cpu endianness.
24380
04459e70
ST
243812010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24382
24383 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
24384 GRUB_TICKS_PER_SECOND instead of 120.
24385
a0876943
VS
243862010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24387
24388 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
24389 escape sequence after \e.
24390
e29f95dc
VS
243912010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24392
24393 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
24394 non-ASCII characters.
24395
d27859b2
VS
243962010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24397
24398 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
24399 set root in single quotes to prevent \, from being unescaped.
24400
bc028f2f
VS
244012010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24402
24403 Prevent unknown commands from stopping menuentry execution.
24404
24405 * script/execute.c (grub_script_execute_cmdline): Print error after
24406 unknown command.
24407
095f5f82
VS
244082010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24409
24410 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
24411 Reported by: Pavel Pisa.
24412
8c717950
VS
244132010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24414
24415 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
24416
904935c3
VS
244172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24418
24419 Merge grub_ieee1275_map_physical into grub_map and rename to
24420 grub_ieee1275_map
24421
24422 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
24423 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
24424 Remove.
24425 * kern/ieee1275/openfw.c (grub_map): Rename to ...
24426 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
24427 necessary.
24428 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
24429
5b59a4e3
VS
244302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24431
24432 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
24433 opening and not after.
24434
69e137e8
VS
244352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24436
24437 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
24438 constants.
24439
2c0fcc36
VS
244402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24441
24442 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
24443 (alloc_phys): Use ALIGN_UP instead of align_addr.
24444
8c6052ce
VS
244452010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24446
24447 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
24448
17cec782
VS
244492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24450
24451 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
24452
e0128bbd
VS
244532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
24456 verbose dprintf.
24457
ca62070b
VS
244582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 Fix over-4GiB seek on sparc64.
24461
24462 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
24463 Replace pos_i and pos_lo with pos. All users updated.
24464 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24465 New constant.
24466 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24467 Likewise.
24468 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
24469 and pos_lo.
24470
bdca2607
VS
244712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24472
24473 * util/grub-mkrawimage.c (main): Call set_program_name.
24474
da278c4d
VS
244752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24476
24477 Properly align 64-bit targets.
24478
24479 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
24480 (generate_image): Use ALIGN_ADDR.
24481
b274d734
VS
244822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24483
24484 Properly create cross-endian images.
24485
24486 * include/grub/types.h (grub_host_to_target_addr): New macro
24487 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
24488
82da2062
VS
244892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24490
24491 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
24492
7cae4377
VS
244932010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24494
24495 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
24496
24497 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
24498 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
24499 (grub_linux_boot): Divide by 64K when on VESA.
24500
65a533e7
VS
245012010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24502
24503 Support GRUB_GFXPAYLOAD_LINUX.
24504
24505 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
24506 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
24507
dd01d397
VS
245082010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
24511 to show messages instead of discarding them.
24512 Process errors after executing command and not before. Keep old method
24513 too as precaution.
24514
660960d6
VS
245152010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
24516
24517 * configure.ac: Check for ft2build.h.
24518
62509f04
VS
245192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24520
24521 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
24522
473df63d
VS
245232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24524
24525 * genkernsyms.sh.in: Use TARGET_CC.
24526
c98d2a13
CW
245272010-02-07 Colin Watson <cjwatson@ubuntu.com>
24528
24529 * NEWS: Update.
24530
6e14234c
VS
245312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24532
24533 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
24534 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
24535 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 24536
b255e9cf
YB
245372010-02-07 Yves Blusseau <blusseau@zetam.org>
24538
6e14234c 24539 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 24540
98e6959d
VS
245412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24542
24543 Fix warnings in grub-emu when compiling with maximum warning options.
24544
24545 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
24546 (grub_arch_modules_addr): Return 0 and not NULL.
24547 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 24548 (xstrdup): Use newstr instead of dup.
f88d801b
VS
24549 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
24550 of disk to dsk to avoid shadowing.
74e4934e
VS
24551 (find_free_slot): Fix prototype.
24552 * util/getroot.c (grub_util_is_dmraid): Make static.
24553 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
24554 Add missing prototype.
24555 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 24556
74e31b5c
VS
245572010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24558
24559 * loader/i386/linux.c (grub_linux_setup_video): Handle error
24560 appropriately.
24561
6b2ad14b
VS
245622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24563
24564 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
24565 code out.
24566
8f891adc
VS
245672010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24568
24569 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
24570 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
24571 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
24572 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
24573 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
24574 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
24575
74b45184
VS
245762010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24577
24578 * include/grub/err.h (grub_err_printf): Don't export.
24579
a4bced77
VS
245802010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24581
24582 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
24583
007d0695
VS
245842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24585
24586 * include/grub/i18n.h (grub_gettext_dummy): Removed.
24587 * kern/misc.c (grub_gettext_dummy): Make static.
24588
b6c0d9c2
VS
245892010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24590
24591 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
24592 by non-valid ones.
24593 * kern/term.c (grub_putchar): Likewise.
24594
f51a90d0
VS
245952010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24596
24597 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
24598 buggy hook call and memory leak.
24599
6846cec5
VS
246002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24601
24602 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
24603
468d69fe
VS
246042010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24605
24606 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
24607
51906b8c
VS
246082010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24609
24610 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
24611 modevar.
24612 Return grub_errno on allocation error.
24613
09706ce5
VS
246142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24615
24616 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
24617
911df80c
YB
246182010-02-06 Yves Blusseau <blusseau@zetam.org>
24619
24620 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
24621 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
24622
3746a6bc
VS
246232010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24624
24625 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
24626 non-pxe disk.
24627 (grub_pxefs_open): Likewise.
24628
09706ce5
VS
246292010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24630
24631 * util/grub.d/10_hurd.in: Add --class information to menuentries.
24632 * util/grub.d/10_kfreebsd.in: Likewise.
24633 * util/grub.d/10_linux.in: Likewise.
24634
7cc192d9
VS
246352010-02-06 Colin D Bennett <colin@gibibit.com>
24636
24637 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
24638 (gfxmenu_mod_SOURCES): New variable.
24639 (gfxmenu_mod_CFLAGS): Likewise.
24640 (gfxmenu_mod_LDFLAGS): Likewise.
24641 * include/grub/term.h (grub_term_set_current_output): Declare
24642 argument as const.
24643 * docs/gfxmenu-theme-example.txt: New file.
24644 * gfxmenu/gfxmenu.c: Likewise.
24645 * gfxmenu/gui_box.c: Likewise.
24646 * gfxmenu/gui_canvas.c: Likewise.
24647 * gfxmenu/gui_circular_progress.c: Likewise.
24648 * gfxmenu/gui_image.c: Likewise.
24649 * gfxmenu/gui_label.c: Likewise.
24650 * gfxmenu/gui_list.c: Likewise.
24651 * gfxmenu/gui_progress_bar.c: Likewise.
24652 * gfxmenu/gui_string_util.c: Likewise.
24653 * gfxmenu/gui_util.c: Likewise.
24654 * gfxmenu/icon_manager.c: Likewise.
24655 * gfxmenu/model.c: Likewise.
24656 * gfxmenu/named_colors.c: Likewise.
24657 * gfxmenu/theme_loader.c: Likewise.
24658 * gfxmenu/view.c: Likewise.
24659 * gfxmenu/widget-box.c: Likewise.
24660 * include/grub/gfxmenu_model.h: Likewise.
24661 * include/grub/gfxmenu_view.h: Likewise.
24662 * include/grub/gfxwidgets.h: Likewise.
24663 * include/grub/gui.h: Likewise.
24664 * include/grub/gui_string_util.h: Likewise.
24665 * include/grub/icon_manager.h: Likewise.
24666
246672010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24668
24669 Agglomerate scrolling in gfxterm.
24670
24671 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
24672 (grub_virtual_screen_setup): Initialise 'total_screen'.
24673 (write_char): Split to ...
24674 (paint_char): ... this ...
24675 (write_char): ... and this.
24676 (paint_char): Handle delayed scrolling.
24677 (draw_cursor): Likewise.
24678 (scroll_up): Split to ...
24679 (real_scroll): ... this ...
24680 (scroll_up): ... and this.
24681 (real_scroll): Handle multi-line scroll and draw below-the-bottom
24682 characters.
24683 (grub_gfxterm_refresh): Call real_scroll.
24684
246852010-02-06 Colin D Bennett <colin@gibibit.com>
24686
24687 * include/grub/misc.h (grub_iscntrl): New inline function.
24688 (grub_isalnum): Likewise.
24689 (grub_strtol): Likewise.
24690
246912010-02-06 Colin D Bennett <colin@gibibit.com>
24692
24693 * normal/menu_text.c (get_entry_number): Move from here ...
24694 * normal/menu.c (get_entry_number): ... moved here.
24695 * include/grub/menu.h (grub_menu_get_default_entry_index):
24696 New prototype.
24697 * normal/menu.c (grub_menu_get_default_entry_index): New function.
24698 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
24699 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
24700 (grub_menu_viewer_should_return): Likewise.
24701 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
24702 * normal/menu_text.c (run_menu): Enable menu switching.
24703 * normal/menu_viewer.c (should_return): New variable.
24704 (menu_viewer_changed): Likewise.
24705 (grub_menu_viewer_show_menu): Handle menu viewer changes.
24706 (grub_menu_viewer_should_return): New function.
24707 (menuviewer_write_hook): Likewise.
24708 (grub_menu_viewer_init): Likewise.
24709
247102010-02-06 Colin D Bennet <colin@gibibit.com>
247112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24712
24713 Support for gfxterm in a window.
24714
24715 * include/grub/gfxterm.h: New file.
24716 * include/grub/video.h (struct grub_video_rect): New declaration.
24717 (grub_video_rect_t): Likewise.
24718 * term/gfxterm.c (struct grub_gfxterm_window): New type.
24719 (refcount): New variable.
24720 (render_target): Likewise.
24721 (window): Likewise.
24722 (repaint_callback): Likewise.
24723 (grub_virtual_screen_setup): Use 'render_target'.
24724 (init_window): New function.
24725 (grub_gfxterm_init_window): Likewise.
24726 (grub_gfxterm_init): Check reference counter.
24727 Use init_window.
24728 (destroy_window): New function.
24729 (grub_gfxterm_destroy_window): Likewise.
24730 (grub_gfxterm_fini): Check reference counter.
24731 Use destroy_window.
24732 (redraw_screen_rect): Restore viewport.
24733 Use 'render_target' and 'window'.
24734 Call 'repaint_callback'.
24735 (write_char): Use 'render_target'.
24736 (draw_cursor): Likewise.
24737 (scroll_up): Restore viewport.
24738 Use 'render_target' and 'window'.
24739 Call 'repaint_callback'.
24740 (grub_gfxterm_cls): Likewise.
24741 (grub_gfxterm_refresh): Use 'window'.
24742 (grub_gfxterm_set_repaint_callback): New function.
24743 (grub_gfxterm_background_image_cmd): Use 'window'.
24744 (grub_gfxterm_get_term): New function.
24745 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
24746
247472010-02-06 Colin D Bennett <colin@gibibit.com>
24748
24749 Bitmap scaling support.
24750
24751 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
24752 (bitmap_scale_mod_SOURCES): New variable.
24753 (bitmap_scale_mod_CFLAGS): Likewise.
24754 (bitmap_scale_mod_LDFLAGS): Likewise.
24755 * include/grub/bitmap_scale.h: New file.
24756 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
24757 (background_image_cmd_options): New variable.
24758 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
24759 (cmd): Rename and change type to ...
24760 (background_image_cmd_handle): ... this. All users updated.
24761 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
24762 * video/bitmap_scale.c: New file.
24763
247642010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24765
24766 SDL support.
24767
24768 * Makefile.in (LIBSDL): New variable.
24769 (enable_grub_emu_sdl): Likewise.
24770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
24771 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
24772 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
24773 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
24774 * util/sdl.c: New file.
24775
247762010-02-06 Colin D Bennett <colin@gibibit.com>
247772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24778
24779 Double buffering support.
24780
24781 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
24782 * include/grub/video.h: Update comment.
24783 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
24784 New type.
24785 (grub_video_fb_doublebuf_blit_init): New prototype.
24786 * term/gfxterm.c (scroll_up): Support double buffering.
24787 (grub_gfxterm_refresh): Likewise.
24788 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
24789 (grub_video_fb_doublebuf_blit_init): Likewise.
24790 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
24791 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
24792 'displayed_page', 'render_page' and 'update_screen'.
24793 (grub_video_vbe_fini): Free offscreen buffer.
24794 (doublebuf_pageflipping_commit): New function.
24795 (doublebuf_pageflipping_update_screen): Likewise.
24796 (doublebuf_pageflipping_init): Likewise.
24797 (double_buffering_init): Likewise.
24798 (grub_video_vbe_setup): Enable doublebuffering.
24799 (grub_video_vbe_swap_buffers): Implement.
24800 (grub_video_vbe_set_active_render_target): Handle double buffering.
24801 (grub_video_vbe_get_active_render_target): Likewise.
24802 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
24803 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
24804 (grub_video_vbe_enable_double_buffering): Likewise.
24805 (grub_video_vbe_swap_buffers): Use update_screen.
24806 (grub_video_set_mode): Use double buffering.
24807
248082010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24809
24810 * maintainance/gentrigtables.py: Remove.
24811 * lib/trig.c: Likewise.
24812
24813 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
24814
24815 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
24816 `trigtables.c'.
24817 (trigtables.c): New rule.
24818 (gentrigtables): Likewise.
24819 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
24820
248212010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24822
24823 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
24824 integer constants.
24825
248262010-02-06 Colin D Bennet <colin@gibibit.com>
24827
24828 Trigonometry support.
24829
24830 * include/grub/trig.h: New file.
24831 * lib/trig.c: Likewise.
24832 * maintainance/gentrigtables.py: Likewise.
24833 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24834 (trig_mod_SOURCES): New variable.
24835 (trig_mod_CFLAGS): Likewise.
24836 (trig_mod_LDFLAGS): Likewise.
24837
5562834e
VS
248382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24839
24840 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24841 disk devices.
24842
4f8528fc
VS
248432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24844
24845 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24846 error.
24847
2b4068e9
VS
248482010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24849
24850 * util/hostdisk.c (open_device): Don't use partition device when reading
24851 before the partition.
24852 (grub_util_biosdisk_read): Don't read from partition and before the
24853 partition in single operation.
24854 (grub_util_biosdisk_write): Don't write to partition and before the
24855 partition in single operation.
24856
399f6e4d
TL
248572010-02-03 Torsten Landschoff <torsten@debian.org>
24858
24859 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24860 last sectors.
24861
996649b0
VS
248622010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24863
24864 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
24865 CDROM reads.
24866 (grub_biosdisk_write): Refuse to write to CDROM.
24867
3b205d4d
VS
248682010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24869
24870 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
24871
61e89d9d
VS
248722010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24873
24874 * font/font.c (find_glyph): Check that bmp_idx is available before
24875 using it.
24876 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
24877 with (font == NULL).
24878
bf7fcba2
CS
248792010-01-28 Christian Schmitt <chris@ilovelinux.de>
24880
24881 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24882
f45d2663
BC
248832010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24884
24885 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24886 * util/grub-script-check.c (getline): Fix empty lines case.
24887
ec1444e6
RM
248882010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24889
24890 * Makefile.in (check): Exit with fail status when one of the tests
24891 fails.
24892 * tests/example_functional_test.c (example_test): Fix reversed assert.
24893 * tests/example_unit_test.c (example_test): Likewise.
24894
2e1cb9bb
CW
248952010-01-28 Colin Watson <cjwatson@ubuntu.com>
24896
24897 * util/grub.d/10_linux.in: This script does not use any of the
24898 contents of gettext.sh, only the external command `gettext', so stop
24899 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24900 the same prefix as GRUB.)
24901 * util/grub.d/10_kfreebsd.in: Likewise.
24902
63533ab0
VS
249032010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24904
24905 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24906 of the line.
24907
989e1f93
VS
249082010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24909
24910 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24911 last sectors.
24912
e709ebe2
VS
249132010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24914
24915 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24916 having a 4KiB and not 32KiB buffer size.
24917
27dea7ed
RM
249182010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24919
24920 * util/hostfs.c: Include `<errno.h>'.
24921 (grub_hostfs_read): Handle errors from fseeko() and fread().
24922
67667b9c
RM
249232010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24924
24925 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24926 loop when using read hooks on files whose size isn't sector-aligned.
24927
c294d9d8
RM
249282010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24929
24930 Remove unused parameter.
24931
24932 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24933 (grub_iso9660_open): Remove initialization of `data->length'.
24934
af75a9f1
RM
249352010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24936
24937 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24938 memleak conditions.
24939
254e2ce5 249402010-01-27 Carles Pina i Estany <carles@pina.cat>
24941
24942 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24943 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24944
b510928c 249452010-01-26 Carles Pina i Estany <carles@pina.cat>
24946
24947 * util/bin2h.c (usage): Fix warning (space after backslash).
24948
aa2f9dd2 249492010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24950
24951 * font/font.c: Include `grub/fontformat.h.
24952 Remove font file format constants.
24953 (grub_font_load): Use the new macros.
24954 * include/grub/fontformat.h: New file.
24955 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24956 (write_font_pf2): Use the new macros.
24957
94e7e712
RM
249582010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24959
24960 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24961 does.
24962
3973a59a
RM
249632010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24964
24965 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24966
24967 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24968 (_start): Macroify `0x7F'.
24969
24970 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24971 (make_install_device): Use "(pxe)" as fallback prefix when booting
24972 via PXE.
24973
42e0cba3
GS
249742010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24975
24976 * configure.ac: Reset LIBS after check for libgcc symbols.
24977
847effd8
CW
249782010-01-25 Colin Watson <cjwatson@ubuntu.com>
24979
24980 * util/hostdisk.c (open_device): Add trailing newline to debug
24981 message.
24982
ea4a7e35
GS
249832010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24984
24985 * configure.ac: Check for `limits.h'.
24986 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24987
67951a53
RM
249882010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24989
24990 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24991 capitalize error strings.
24992
c273d4ce
ST
249932010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24994
24995 * util/grub.d/10_hurd.in: Add a recovery mode.
24996
69be5b74
VS
249972010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24998
24999 * configure.ac: Check for libgcc symbols with -nostdlib.
25000
fc9e5810
BC
250012010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
25002
25003 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
25004
4b358c0a
VS
250052010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25006
25007 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
25008 stack since heap may be unavailable at that point.
25009 (grub_ofconsole_gotoxy): Likewise.
25010
454fcd1c
VS
250112010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25012
25013 * configure.ac: Check for _restgpr_14_x.
25014 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
25015 and _savegpr_* prototypes.
25016
566863ca
RM
250172010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25018
25019 Use generic grub_reboot() for i386-efi.
25020
25021 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25022 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25023 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25024
bf86e59a
VS
250252010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25026
25027 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25028 presence of "prefix" variable as it breaks when normal.mod is
25029 embedded.
25030
d645e0f8
VS
250312010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25032
25033 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25034 stack since heap is unavailable at that point.
25035
f9ab2e25
VS
250362010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25037
25038 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25039 (grub_freebsd_bootinfo): Rewritten.
25040 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25041
01fc7054
VS
250422010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25043
25044 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25045
caab4fd6
RM
250462010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25047
25048 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25049 domain now.
25050
67eb1427
FZ
250512010-01-20 Felix Zielcke <fzielcke@z-51.de>
25052
25053 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25054 around for handling "/" to the correct fix. Fix a memory leak. Use
25055 xstrdup instead of strdup.
25056
a9ed4ff3
VS
250572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25058
25059 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25060
250612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
25062
25063 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25064
25065 * font/font.c (struct grub_font): New member 'bmp_idx'.
25066 (font_init): Initialise 'bmp_idx'.
25067 (load_font_index): Fill 'bmp_idx'.
25068 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25069
48209f4f
VS
250702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25071
25072 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25073 unnecessary calls.
25074
9f0a4bb7
VS
250752010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25076
25077 Move context handling out of the kernel.
25078
25079 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25080 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25081 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25082 * conf/i386-efi.rmk: Likewise.
25083 * conf/i386-ieee1275.rmk: Likewise.
25084 * conf/i386-pc.rmk: Likewise.
25085 * conf/powerpc-ieee1275.rmk: Likewise.
25086 * conf/sparc64-ieee1275.rmk: Likewise.
25087 * conf/x86_64-efi.rmk: Likewise.
25088 * include/grub/env.h: Include grub/menu.h.
25089 (grub_env_var_type): Removed.
25090 (grub_env_var): Replaced field 'type' with 'global'.
25091 (grub_env_find): New prototype.
25092 (grub_env_context_open): Remove EXPORT_FUNC.
25093 (grub_env_context_close): Likewise.
25094 (grub_env_export): Likewise.
25095 (grub_env_set_data_slot): Removed.
25096 (grub_env_get_data_slot): Likewise.
25097 (grub_env_unset_data_slot): Likewise.
25098 (grub_env_unset_menu): New prototype.
25099 (grub_env_set_menu): Likewise.
25100 (grub_env_get_menu): Likewise.
25101 * include/grub/env_private.h: New file.
25102 * include/grub/normal.h (grub_context_init): New prototype.
25103 (grub_context_fini): Likewise.
25104 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25105 * normal/context.c (grub_cmd_export): ... to here.
25106 * kern/env.c: Include env_private.h.
25107 (HASHSZ): Moved to include/grub/env_private.h.
25108 (grub_env_context): Likewise.
25109 (grub_env_sorted_var): Likewise.
25110 (current_context): Renamed from this ...
25111 (grub_current_context): ...to this. 'static' removed. All users updated.
25112 (grub_env_find): Removed 'static'.
25113 (grub_env_context_open): Moved to normal/context.c.
25114 (grub_env_context_close): Likewise.
25115 (grub_env_export): Likewise.
25116 (mangle_data_slot_name): Removed.
25117 (grub_env_set_data_slot): Likewise.
25118 (grub_env_get_data_slot): Likewise.
25119 (grub_env_unset_data_slot): Likewise.
25120 * kern/main.c (grub_set_root_dev): Don't export root.
25121 It will be done later.
25122 (grub_main): Don't export prefix.
25123 It will be done later.
25124 * normal/context.c: New file.
25125 * normal/main.c (free_menu): Use grub_env_unset_menu.
25126 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25127 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25128 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25129 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25130
8dd35b8c
VS
251312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25132
25133 setpci support.
25134
25135 * commands/setpci.c: New file.
25136 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25137 (setpci_mod_SOURCES): New variable.
25138 (setpci_mod_CFLAGS): Likewise.
25139 (setpci_mod_LDFLAGS): Likewise.
25140
449193d5
VS
251412010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25142
25143 Byte-addressable PCI configuration space.
25144
25145 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25146 dword address.
25147 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25148 GRUB_PCI_REG_CACHELINE.
25149 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25150 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25151 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25152 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25153 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25154 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25155 grub_pci_make_address.
25156 (lock_rom_area): Likewise.
25157 * commands/lspci.c (grub_lspci_iter): Use macroses
25158 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25159 of grub_pci_make_address.
25160 * disk/ata.c (grub_ata_pciinit): Likewise.
25161 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25162 (GRUB_PCI_REG_VENDOR): Likewise.
25163 (GRUB_PCI_REG_DEVICE): Likewise.
25164 (GRUB_PCI_REG_COMMAND): Likewise.
25165 (GRUB_PCI_REG_STATUS): Likewise.
25166 (GRUB_PCI_REG_REVISION): Likewise.
25167 (GRUB_PCI_REG_CLASS): Likewise.
25168 (GRUB_PCI_REG_CACHELINE): Likewise.
25169 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25170 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25171 (GRUB_PCI_REG_BIST): Likewise.
25172 (GRUB_PCI_REG_ADDRESSES): Likewise.
25173 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25174 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25175 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25176 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25177 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25178 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25179 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25180 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25181 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25182 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25183 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25184 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25185 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25186 (GRUB_PCI_REG_MIN_GNT): Likewise.
25187 (GRUB_PCI_REG_MAX_LAT): Likewise.
25188 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25189 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25190 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 25191 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
25192 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25193 space.
25194
96d73208
RM
251952010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25196
25197 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25198 can be reliably determined to be supported.
25199
d4484482
RM
252002010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25201
25202 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25203 that VESA is supported.
25204 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25205 supported.
25206
00308ecf
VS
252072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25208
25209 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25210
f66924a4
RM
252112010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25212
25213 * util/misc.c (make_system_path_relative_to_its_root): Work around
25214 special-casing of "/", as previous incarnation of this routine did.
25215
cbca0ada
VS
252162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25217
25218 Fix any-emu compilation.
25219
25220 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25221 * grub_bin2h_SOURCES: New variable.
25222
34a66d99
RM
252232010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25224
25225 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25226
94fabf58
RM
252272010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25228
25229 * util/grub.d/00_header.in: Fix handling of locale_dir.
25230
02cf98ca
VS
252312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25232
25233 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25234 as possible unifont location (Gentoo).
25235 Reported by: Alexander Brüning
25236
327dbcd7
VS
252372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25238
25239 Don't try to generate lists for kernel.img.
25240
25241 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25242 (pkglib_MODULES): Remove kernel.img.
25243 (kernel_img_EXPORTS): Removed.
25244 (kernel_img_RELOCATABLE): New variable.
25245 * conf/x86_64-efi.rmk: Likewise.
25246 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25247
ca467290
VS
252482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25249
25250 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25251 grub_xasprintf or grub_snprintf.
25252 (grub_vsprintf): Likewise.
25253 (grub_snprintf): New proto.
25254 (grub_vsnprintf): Likewise.
25255 (grub_xasprintf): Likewise.
25256 (grub_xvasprintf): Likewise.
25257 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25258 (grub_sprintf): Removed.
25259 (grub_vsnprintf): New function.
25260 (grub_snprintf): Likewise.
25261 (grub_xvasprintf): Likewise.
25262 (grub_xasprintf): Likewise.
25263 (grub_vsprintf): Renamed to ...
25264 (grub_vsnprintf_real): ...this. New argument max_len.
25265
aca655fd
BC
252662010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25267
25268 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25269 fix grub-script-check warning.
25270
7ee92c32
VS
252712010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25272
25273 * include/grub/font.h (grub_font_load): Fix prototype.
25274
f80927ca
VS
252752010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25276
25277 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25278
119c50ea
VS
252792010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25280
25281 * include/grub/x86_64/at_keyboard.h: New file.
25282
47d5f3c1
VS
252832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25284
25285 * loader/mips/linux.c: Include missing grub/i18n.h.
25286
55ff5266
RM
252872009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25288
25289 * normal/menu.c (notify_execution_failure): Clarify error message.
25290
c893cc87
RM
252912009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25292
25293 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25294 return value (and revert all return statements). Update users.
25295
917dd370
CW
252962010-01-20 Dan Merillat <debian@dan.merillat.org>
25297
25298 * kern/device.c (grub_device_iterate): Allocate new part_ent
25299 structure based on sizeof (*p) rather than sizeof (p->next), to
25300 account for structure padding.
25301
25302 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
25303 disk is NULL, which might happen for LVM physical volumes with no
25304 LVM signature.
25305
d4a4ee57
RM
253062009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25307
25308 * loader/mips/linux.c (grub_cmd_initrd)
25309 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
25310
253112009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25312
25313 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
25314 (grub_video_video_init, grub_video_bitmap_init)
25315 (grub_font_manager_init, grub_term_gfxterm_init)
25316 (grub_at_keyboard_init): New extern declarations.
25317 (grub_machine_init): Initialize gfxterm and at_keyboard.
25318
25319 * kern/main.c (grub_main): Revert grub_printf delay kludge.
25320
25321 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
25322 `gfxterm.mod' into core image.
25323
25324 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25325 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25326 (kernel_img_FORMAT): Copy to ...
25327
25328 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25329 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25330 (kernel_img_FORMAT): ... here, and ...
25331
25332 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25333 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25334 (kernel_img_FORMAT): ... here.
25335
25336 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
25337 and input (at_keyboard) terminals in kernel.
25338 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
25339
25340 (pkglib_MODULES): Remove `pci.mod'.
25341 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
25342 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
25343 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25344 (at_keyboard_mod_LDFLAGS): Remove variables.
25345
253462010-01-11 Felix Zielcke <fzielcke@z-51.de>
25347
25348 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
25349
253502009-12-10 Robert Millan <rmh.grub@aybabtu.com>
25351
25352 * include/grub/mips/libgcc.h: Only export symbols for functions
25353 that libgcc provides.
25354
253552009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
25356
25357 MIPS support.
25358
25359 * bus/bonito.c: New file.
25360 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
25361 GRUB_PCI_NUM_DEVICES.
25362 * term/i386/pc/serial.c: Move to ...
25363 * term/serial.c: ... here. All users updated.
25364 * util/i386/pc/grub-mkimage.c: Move to ...
25365 * util/grub-mkrawimage.c: ... here. All users updated.
25366 * term/i386/pc/at_keyboard.c: Move to ...
25367 * term/at_keyboard.c: ... here. All users updated.
25368 * conf/mips-qemu-mips.rmk: New file.
25369 * conf/mips-yeeloong.rmk: Likewise.
25370 * conf/mips.rmk: Likewise.
25371 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
25372 mipsel-qemu-mips.
25373 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
25374 to port addresses.
25375 (grub_ata_pciinit): Support CS5536.
25376 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
25377 * font/font_cmd.c (loadfont_command): Open file before passing it to
25378 grub_font_load.
25379 (pseudo_file_read): New function.
25380 (pseudo_file_close): Likewise.
25381 (pseudo_fs): New structure.
25382 (load_font_module): New function.
25383 (GRUB_MOD_INIT(font_manager)): Load embedded font.
25384 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
25385 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
25386 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
25387 * include/grub/i386/at_keyboard.h: Split into ...
25388 * include/grub/at_keyboard.h: ... this ...
25389 * include/grub/i386/at_keyboard.h: ... and this.
25390 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
25391 New prototype.
25392 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
25393 updated.
25394 (grub_elf64_size): Likewise.
25395 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
25396 filename.
25397 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
25398 * include/grub/i386/coreboot/serial.h: Rewritten.
25399 * include/grub/i386/ieee1275/serial.h: Include
25400 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
25401 * include/grub/i386/pc/serial.h: Moved from here ...
25402 * include/grub/serial.h: ... to here. All users updated.
25403 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
25404 (GRUB_PCI_NUM_BUS): Likewise.
25405 (GRUB_PCI_NUM_DEVICES): Likewise.
25406 (grub_pci_device_map_range): Add missing volatile keyword.
25407 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
25408 * include/grub/mips/at_keyboard.h: New file.
25409 * include/grub/mips/cache.h: Likewise.
25410 * include/grub/mips/io.h: Likewise.
25411 * include/grub/mips/kernel.h: Likewise.
25412 * include/grub/mips/libgcc.h: Likewise.
25413 * include/grub/mips/pci.h: Likewise.
25414 * include/grub/mips/qemu-mips/boot.h: Likewise.
25415 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25416 * include/grub/mips/qemu-mips/loader.h: Likewise.
25417 * include/grub/mips/qemu-mips/memory.h: Likewise.
25418 * include/grub/mips/qemu-mips/serial.h: Likewise.
25419 * include/grub/mips/qemu-mips/time.h: Likewise.
25420 * include/grub/mips/relocator.h: Likewise.
25421 * include/grub/mips/time.h: Likewise.
25422 * include/grub/mips/types.h: Likewise.
25423 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
25424 * include/grub/mips/yeeloong/boot.h: Likewise.
25425 * include/grub/mips/yeeloong/kernel.h: Likewise.
25426 * include/grub/mips/yeeloong/loader.h: Likewise.
25427 * include/grub/mips/yeeloong/memory.h: Likewise.
25428 * include/grub/mips/yeeloong/pci.h: Likewise.
25429 * include/grub/mips/yeeloong/serial.h: Likewise.
25430 * include/grub/mips/yeeloong/time.h: Likewise.
25431 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
25432 * kern/elf.c (grub_elf32_size): New parameter. All users
25433 updated.
25434 (grub_elf64_size): Likewise.
25435 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
25436 Load modules before saying "Welcome to GRUB!".
25437 Call grub_refresh after saying "Welcome to GRUB!".
25438 * kern/mips/cache.S: New file.
25439 * kern/mips/cache_flush.S: Likewise.
25440 * kern/mips/dl.c: Likewise.
25441 * kern/mips/init.c: Likewise.
25442 * kern/mips/qemu-mips/init.c: Likewise.
25443 * kern/mips/startup.S: Likewise.
25444 * kern/mips/yeeloong/init.c: Likewise.
25445 * kern/term.c (grub_putcode): Handle NULL terminal.
25446 (grub_getcharwidth): Likewise.
25447 (grub_getkey): Likewise.
25448 (grub_checkkey): Likewise.
25449 (grub_getkeystatus): Likewise.
25450 (grub_getxy): Likewise.
25451 (grub_getwh): Likewise.
25452 (grub_gotoxy): Likewise.
25453 (grub_cls): Likewise.
25454 (grub_setcolorstate): Likewise.
25455 (grub_setcolor): Likewise.
25456 (grub_getcolor): Likewise.
25457 (grub_refresh): Likewise.
25458 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
25459 (write_jump): Add hatch nop.
25460 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
25461 * lib/mips/setjmp.S: New file.
25462 * loader/mips/linux.c: Likewise.
25463 * term/i386/pc/at_keyboard.c: Move from here ...
25464 * term/at_keyboard.c: ... to here.
25465 * term/i386/pc/serial.c: Moved from here ...
25466 * term/serial.c: ... to here. All users updated.
25467 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
25468 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
25469 (serial_translate_key_sequence): Avoid deadlock.
25470 (grub_serial_getkey): Handle backspace.
25471 (grub_serial_putchar): Fix newline handling.
25472 * util/i386/pc/grub-mkimage.c: Move from here ...
25473 * util/grub-mkrawimage.c: ... to here. All users updated.
25474 (generate_image): New parameters 'font_path' and 'format'.
25475 Support embedding font.
25476 Use grub_host_to_target* instead of grub_cpu_to_le*.
25477 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
25478 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
25479 (options): New option "--font".
25480 (usage): Likewise.
25481 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
25482 (main): Handle "--font".
25483 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
25484 (grub_virtual_screen_setup): Set bg_color_display.
25485 (redraw_screen_rect): Use bg_color_display instead of incorrect
25486 bg_color.
25487 (grub_gfxterm_cls): Likewise.
25488 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
25489 Support embedding config file.
25490 (add_segments): Likewise.
25491 (options): New option "--config".
25492 (main): Handle "--config".
25493 * video/sm712.c: New file.
25494
25c2b5b3
RM
254952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25496
25497 Fix parallel builds.
25498
25499 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
25500 font.c depend on ascii.h).
25501
255022010-01-12 Carles Pina i Estany <carles@pina.cat>
25503
25504 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
25505
255062010-01-11 Carles Pina i Estany <carles@pina.cat>
25507
25508 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
25509 By default: disabled.
25510 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
25511 parameter.
25512
255132010-01-10 Carles Pina i Estany <carles@pina.cat>
25514
25515 * font/font.c: Update copyright years.
25516 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
25517
255182010-01-10 Carles Pina i Estany <carles@pina.cat>
25519
25520 * font/font.c: Include `ascii.h'.
25521 (ASCII_BITMAP_SIZE): New macro.
25522 (ascii_font_glyph): Define.
25523 (ascii_glyph_lookup): New function.
25524 (grub_font_get_string_width): Change comment. If glyph not found, use
25525 ascii_glyph_lookup.
25526 (grub_font_get_glyph_with_fallback): If glyph not available returns
25527 ascii_glyph_lookup.
25528 * util/grub-mkfont.c (file_formats): New enum.
25529 (options): Add `ascii-bitmaps' new option.
25530 (usage): Add `asii-bitmaps' new option.
25531 (write_font_ascii_bitmap): New function.
25532 (write_font): Rename to ...
25533 (write_font_p2): ... this. Remove print_glyphs call.
25534 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
25535 used. Call print_glyphs.
25536 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
25537
255382010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25539
25540 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
25541 (grub_bin2h_SOURCES): New variable.
25542 * util/bin2h.c: New file.
25543
915fc1b8
VS
255442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25545
25546 * include/multiboot.h: Resynced with spec.
25547 * include/multiboot2.h: Likewise.
25548 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
25549 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
25550
9444b678
RM
255512010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25552
25553 * include/grub/term.h (grub_term_register_input,
25554 grub_term_register_output): Check return of terminal init()
25555 routines, and abort if errors are raised.
25556
25557 * commands/terminal.c: Update copyright year.
25558
cba98e8d
RM
255592010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25560
25561 * commands/terminal.c (grub_cmd_terminal_input)
25562 (grub_cmd_terminal_output): Check return of terminal init()
25563 routines, and abort if errors are raised.
25564
6f7db5d6
VS
255652010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25566
25567 * include/grub/i386/bsd.h: Fix include pathes.
25568
262bff8d
VS
255692010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25570
25571 Add missing *BSD copyright headers.
25572
25573 * include/grub/aout.h: Add BSD licence.
25574 * include/grub/i386/bsd.h: Parts under different licences moved to ...
25575 * include/grub/i386/freebsd_linker.h: ... here,
25576 * include/grub/i386/freebsd_reboot.h: ... here,
25577 * include/grub/i386/netbsd_bootinfo.h: ... here,
25578 * include/grub/i386/netbsd_reboot.h: ... here,
25579 * include/grub/i386/openbsd_bootarg.h: ... here,
25580 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
25581 licence to each file.
25582
b2cab848
RM
255832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25584
25585 * acinclude.m4: Remove `nop' assembly instruction; it's not
25586 implemented by all architectures.
25587
2cb6be4b
RM
255882010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25589
25590 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
25591 ELILO. This is no longer necessary.
25592
a2eaee15
BC
255932010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
25594
25595 Added new tool, grub-scrit-check to verify grub.cfg syntax.
25596
25597 * util/grub-script-check.c: grub-script-check tool.
25598 * conf/common.rmk: Make rules for grub-script-check.
25599
88d17012
RM
256002010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25601
25602 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
25603 spotting it back in 2008. Shame on me for forgetting he did.
25604
25605 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
25606
8040619d
RM
256072010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25608
25609 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
25610 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
25611 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
25612 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
25613 (GRUB_VIDEO_TYPE_EFI): Rename to ...
25614 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
25615
a0c2a0f6
RM
256162010-01-17 Robert Millan <rmh.grub@aybabtu.com>
25617
25618 * include/grub/test.h: Add license header.
25619 * tests/example_functional_test.c: Likewise.
25620 * tests/example_unit_test.c: Likewise.
25621 * tests/lib/functional_test.c: Likewise.
25622 * tests/lib/test.c: Likewise.
25623 * tests/lib/unit_test.c: Likewise.
25624
b0b13907
VS
256252010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
25626
25627 Use flag-based instead of hook-based video mode selection and "auto"
25628 keyword.
25629
25630 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
25631 (grub_video_set_mode): Changed prototype. All users updated.
25632 (grub_video_check_mode_flag): New inline function.
25633 * video/video.c (parse_modespec): New function.
25634 (grub_video_set_mode): Parse flags and keywords.
25635
ea379330 256362010-01-17 Carles Pina i Estany <carles@pina.cat>
25637
25638 * util/misc.c (grub_util_info): Fix the order of the parameters in a
25639 fprintf call.
25640
e15c215e
FZ
256412010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
25642
25643 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
25644
409ae1c9 256452010-01-16 Carles Pina i Estany <carles@pina.cat>
25646
25647 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
25648 string.
25649 * util/grub-emu.c (usage): Likewise.
25650 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
25651 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25652 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25653 * util/i386/pc/grub-setup.c (usage): Likewise.
25654
70a14d3d 256552010-01-16 Carles Pina i Estany <carles@pina.cat>
25656
25657 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
25658 the message.
25659 (grub_util_info): Likewise.
25660 (grub_util_error): Likewise.
25661 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
25662 and/or new lines in `grub_util_warna', `grub_util_info',
25663 `grub_util_error' calls.
25664 * util/getroot.c: Likewise.
25665 * util/grub-editenv.c: Likewise.
25666 * util/grub-emu.c: Likewise.
25667 * util/grub-fstest.c: Likewise.
25668 * util/grub-mkdevicemap.c: Likewise.
25669 * util/grub-mkfont.c: Likewise.
25670 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25671 * util/grub-mkrelpath.c: Likewise.
25672 * util/grub-pe2elf.c: Likewise.
25673 * util/grub-probe.c: Likewise.
25674 * util/hostdisk.c: Likewise.
25675 * util/i386/efi/grub-mkimage.c: Likewise.
25676 * util/i386/pc/grub-mkimage.c: Likewise.
25677 * util/i386/pc/grub-setup.c: Likewise.
25678 * util/ieee1275/ofpath.c: Likewise.
25679 * util/mkisofs/eltorito.c: Likewise.
25680 * util/mkisofs/rock.c: Likewise.
25681 * util/mkisofs/write.c: Likewise.
25682 * util/raid.c: Likewise.
25683 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25684 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25685
a0b766fc
VS
256862010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25687
25688 Enable multiboot on non-pc.
25689
25690 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
25691 multiboot.mod and multiboot2.mod to ...
25692 * conf/i386.rmk (pkglib_MODULES): ... here.
25693 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
25694 Moved to ...
25695 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
25696 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
25697 Moved to ...
25698 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
25699 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
25700 Moved to ...
25701 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
25702 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
25703 Moved to ...
25704 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
25705 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
25706 relocator.mod.
25707 (ata_mod_SOURCES): Removed.
25708 (ata_mod_CFLAGS): Likewise.
25709 (ata_mod_LDFLAGS): Likewise.
25710 (relocator_mod_SOURCES): Removed.
25711 (relocator_mod_CFLAGS): Likewise.
25712 (relocator_mod_ASFLAGS): Likewise.
25713 (relocator_mod_LDFLAGS): Likewise.
25714 Include i386.mk.
25715 * include/grub/x86_64/multiboot.h: New file.
25716 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
25717 Terminate EFI.
25718
884ade56
VS
257192010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25720
25721 Video multiboot support.
25722
25723 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
25724 New prototype.
25725 * include/multiboot.h: Resynced with multiboot specification.
25726 * include/multiboot2.h: Likewise.
25727 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
25728 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
25729 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
25730 (HAS_VGA_TEXT): Likewise.
25731 (accepts_video): New variable.
25732 (grub_multiboot_set_accepts_video): New function.
25733 (grub_multiboot_get_mbi_size): Account for video structures.
25734 (set_video_mode): New function.
25735 (retrieve_video_parameters): Likewise.
25736 (grub_multiboot_make_mbi): Fill video fields.
25737
0d90e8a6
VS
257382010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25739
25740 Video driver ids.
25741
25742 * include/grub/video.h (grub_video_driver_id): New type.
25743 (grub_video_adapter): New member 'id'. All users updated.
25744 (grub_video_get_driver_id): New proto.
25745 * video/video.c (grub_video_get_driver_id): New function.
25746
5c71db1b 257472010-01-14 Carles Pina i Estany <carles@pina.cat>
25748
25749 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
25750 `var=val'.
25751
cca15b52 257522010-01-14 Carles Pina i Estany <carles@pina.cat>
25753
25754 * normal/cmdline.c (print_completion): Gettextizze.
25755
c586fbb2 257562001-01-14 Carles Pina i Estany <carles@pina.cat>
25757
25758 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
25759
ba2f6848 257602010-01-14 Carles Pina i Estany <carles@pina.cat>
25761
25762 * gettext/gettext.c (grub_gettext_translate): Push and pop
25763 grub_errno.
25764 (grub_gettext_delete_list): Change comment style.
25765 * kern/err.c (grub_error): Gettextizze.
25766 (grub_fatal): Gettextizze.
25767
0a46429a
RM
257682010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25769
25770 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
25771 (grub_linux16_real_boot): ... this.
25772 * kern/i386/loader.S: Likewise.
25773 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
25774 (grub_linux16_boot): New function. Switches to text mode and calls
25775 grub_linux16_real_boot().
25776
25777 * loader/i386/bsd.c: Include `<grub/video.h>'.
25778 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
25779 text mode before calling grub_unix_real_boot().
25780
25781 * loader/i386/multiboot.c: Include `<grub/video.h>'.
25782 (grub_multiboot_boot): Switch to text mode before calling
25783 grub_relocator32_boot().
25784
25785 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
25786 (grub_chainloader_boot): Switch to text mode before calling
25787 grub_chainloader_real_boot().
25788
d6f93a66
RM
257892010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
257902010-01-05 Colin Watson <cjwatson@ubuntu.com>
25791
25792 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
25793 non-empty value.
25794
257952010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
257962010-01-05 Colin Watson <cjwatson@ubuntu.com>
25797
25798 * util/grub.d/00_header.in: Define a "savedefault" function for use
25799 in menu entries.
25800 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
25801
258022010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
258032010-01-05 Colin Watson <cjwatson@ubuntu.com>
25804
25805 * util/grub-mkconfig_lib.in (save_default_entry): Only set
25806 saved_entry if boot_once is unset.
25807 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
25808 previous saved entry (i.e. grub-reboot).
25809
258102009-12-08 Colin Watson <cjwatson@ubuntu.com>
25811
25812 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
25813
258142009-12-08 Colin Watson <cjwatson@ubuntu.com>
25815
25816 * util/grub.d/00_header.in: Use `set var=val' rather than plain
25817 `var=val'.
25818 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
25819
258202009-12-08 Colin Watson <cjwatson@ubuntu.com>
25821
25822 * util/grub-reboot.in: Fix --version output.
25823 * util/grub-set-default.in: Likewise.
25824
258252009-12-08 Colin Watson <cjwatson@ubuntu.com>
25826
25827 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25828 blocks.
25829
258302009-12-08 Colin Watson <cjwatson@ubuntu.com>
25831
25832 * util/grub.d/00_header.in: Quote the value assigned to `default',
25833 in case it contains spaces.
25834
258352009-12-08 Colin Watson <cjwatson@ubuntu.com>
25836
25837 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25838 `save_default_entry' call from the macosx case to the linux case.
25839
258402009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
258412009-10-25 Colin Watson <cjwatson@ubuntu.com>
25842
25843 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25844 in `chosen' environment variable.
25845 * normal/menu_text.c (get_entry_number): Check if the variable
25846 matches the title of a menu entry.
25847 (run_menu): Pass menu to get_entry_number.
25848
25849 * util/grub-reboot.in: New file.
25850 * util/grub-set-default.in: New file.
25851 * conf/common.rmk (grub-reboot): New utility.
25852 (grub-set-default): New utility.
25853
25854 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25855 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25856 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25857 move it to `saved_entry' for the next boot. Load environment on
25858 initialisation.
25859 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25860 * util/grub.d/10_hurd.in: Likewise.
25861 * util/grub.d/10_linux.in (linux_entry): Likewise.
25862 * util/grub.d/10_windows.in: Likewise.
25863 * util/grub.d/30_os-prober.in: Likewise.
25864
25865 * util/grub-install.in: Create environment block.
25866 * util/i386/efi/grub-install.in: Likewise.
25867 * util/ieee1275/grub-install.in: Likewise.
25868 * util/sparc64/ieee1275/grub-install.in: Likewise.
25869
0934d184
BC
258702010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
25871
25872 Unit testing framework for GRUB.
25873
25874 * Makefile.in: Test framework build rules for 'make check'.
25875 * conf/tests.rmk: Build rules for individual tests and framework.
25876
25877 * include/grub/test.h: Header file for whitebox tests.
25878 * tests/lib/functional_test.c: Framework support for whitebox
25879 functional tests.
25880 * tests/lib/test.c: Common whitebox testing code for unit and
25881 functional tests.
25882 * tests/lib/unit_test.c: Framework support for whitebox unit
25883 tests.
25884
25885 * tests/util/grub-shell-tester.in: Support utility for grub-script
25886 tests.
25887 * tests/util/grub-shell.in: Utility to execute grub-script
25888 commands in a Qemu instance.
25889
25890 * tests/example_functional_test.c: Example whitebox functional
25891 test.
25892 * tests/example_grub_script_test.in: Example grub-script test.
25893 * tests/example_scripted_test.in: Example scripted test.
25894 * tests/example_unit_test.c: Example whitebox unit test.
25895
9c4ffeeb
VS
258962010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25897
25898 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25899 Add loader/i386/multiboot_mbi.c.
25900 (multiboot2_mod_SOURCES): Likewise.
25901 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25902 (multiboot2_mod_SOURCES): Likewise.
25903 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25904 (grub_multiboot_make_mbi): Likewise.
25905 (grub_multiboot_free_mbi): Likewise.
25906 (grub_multiboot_init_mbi): Likewise.
25907 (grub_multiboot_add_module): Likewise.
25908 (grub_multiboot_set_bootdev): Likewise.
25909 * loader/i386/multiboot.c (mbi): Removed.
25910 (mbi_dest): Likewise.
25911 (alloc_mbi): New variable.
25912 (grub_multiboot_payload_size): Removed. All users updated.
25913 (grub_multiboot_pure_size): New variable.
25914 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25915 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25916 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25917 (grub_fill_multiboot_mmap): Likewise.
25918 (grub_multiboot_get_bootdev): Likewise.
25919 (grub_multiboot): Use multiboot_mbi functions.
25920 * loader/i386/multiboot_mbi.c: New file.
25921
17383dfe
VS
259222010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25923
25924 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25925 it would result in module crash.
25926
c1f28820
VS
259272010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25928
25929 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25930 (grub_ofconsole_getwh): Split to ...
25931 (grub_ofconsole_getwh): ... this.
25932 (grub_ofconsole_dimensions): ...and this.
25933 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25934
58655a16
RM
259352010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25936
25937 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25938
10891398
VS
259392010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25940
25941 * loader/i386/pc/multiboot2.c: Removed stalled file.
25942
0b8a223c
VS
259432010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25944
25945 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25946 Reported by: Grégoire Sutre
25947
92ab12b0
RM
259482010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25949
25950 * util/misc.c (canonicalize_file_name): New function.
25951 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25952 instead of realpath().
25953
a788afb6
CW
259542010-01-11 Colin Watson <cjwatson@ubuntu.com>
25955
25956 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25957 and make it clearer that it's optional. Based on confusion
25958 witnessed on IRC.
25959
ffa8e3d2
VS
259602010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25961
25962 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25963 in premature implicit newline.
25964
e9060a9d
VS
259652010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25966
25967 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25968 which resulted in garbled command line at the end of screen.
25969
f0d0c0b7
RM
259702010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25971
25972 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25973 initialization with similar approach as with other Linux loaders.
25974
0e60bae7
RM
259752010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25976
25977 Fix i386-ieee1275 build.
25978
25979 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25980 and grub_term_height() for video_{width,height} initialization.
25981
259822010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25983
25984 Fix grub-emu build.
25985
25986 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25987
cdb3f378
RM
259882010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
259892010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25990
25991 Support for multiple terminals.
25992
25993 * Makefile.in (pkglib_DATA): terminal.lst.
25994 (terminal.lst): New target.
25995 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25996 (GRUB_MOD_INIT(handler)): Likewise.
25997 (GRUB_MOD_FINI(handler)): Likewise.
25998 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25999 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
26000 * commands/sleep.c (do_print): Use grub_term_restore_pos.
26001 (grub_cmd_sleep): Use grub_term_save_pos.
26002 * commands/terminal.c: New file.
26003 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
26004 commands/terminal.c and lib/charset.c.
26005 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
26006 (pkglib_MODULES): Add terminal.mod.
26007 (terminal_mod_SOURCES): New variable.
26008 (terminal_mod_CFLAGS): Likewise.
26009 (terminal_mod_LDFLAGS): Likewise.
26010 * genhandlerlist.sh: Don't handle terminals.
26011 * genmk.rb: Generate terminal-*.lst.
26012 * genterminallist.sh: New file.
26013 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
26014 (grub_is_valid_utf8): Likewise.
26015 (grub_utf8_to_ucs4_alloc): Likewise.
26016 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26017 (grub_menu_register_viewer): Changed argument.
26018 (grub_menu_try_text): New proto.
26019 (grub_gfxmenu_try_hook): New declaration.
26020 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26021 (grub_menu_init_page): Additional argument term.
26022 (grub_normal_init_page): Likewise.
26023 (grub_cmdline_get): Arguments simplified.
26024 (grub_utf8_to_ucs4_alloc): Removed.
26025 (grub_print_ucs4): Additional argument term.
26026 (grub_getstringwidth): Likewise.
26027 (grub_print_message_indented): Likewise.
26028 (grub_menu_text_register_instances): New proto.
26029 (grub_show_menu): Likewise.
26030 (read_terminal_list): Likewise.
26031 (grub_set_more): Likewise.
26032 * include/grub/parser.h: Include handler.h.
26033 * include/grub/reader.h: Rewritten.
26034 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26035 (GRUB_TERM_WIDTH): Changed to function.
26036 (GRUB_TERM_HEIGHT): Likewise.
26037 (GRUB_TERM_BORDER_WIDTH): Likewise.
26038 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26039 (GRUB_TERM_NUM_ENTRIES): Likewise.
26040 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26041 (GRUB_TERM_CURSOR_X): Likewise.
26042 (grub_term_input_class): Likewise.
26043 (grub_term_output_class): Likewise.
26044 (grub_term_outputs_disabled): New declaration.
26045 (grub_term_inputs_disabled): Likewise.
26046 (grub_term_outputs): Likewise.
26047 (grub_term_inputs): Likewise.
26048 (grub_term_register_input): Rewritten.
26049 (grub_term_register_output): Likewise.
26050 (grub_term_unregister_input): Likewise.
26051 (grub_term_unregister_output): Likewise.
26052 (FOR_ACTIVE_TERM_INPUTS): New macro.
26053 (FOR_DISABLED_TERM_INPUTS): Likewise.
26054 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26055 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26056 * include/grub/terminfo.h: Add oterm argument to all protypes.
26057 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26058 Use grub_rescue_run.
26059 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26060 All users updated.
26061 * kern/reader.c: Removed. All users updated.
26062 * kern/rescue_reader.c (grub_rescue_init): Removed.
26063 (grub_rescue_reader): Likewise.
26064 (grub_register_rescue_reader): Likewise.
26065 (grub_rescue_run): New function based on kern/reader.c.
26066 * kern/term.c: Adapted for multiterm.
26067 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26068 (grub_is_valid_utf8): Likewise.
26069 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26070 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26071 right terminal.
26072 * loader/i386/linux.c (grub_linux_boot): Likewise.
26073 * normal/auth.c (grub_username_get): New function.
26074 (grub_auth_check_authentication): Use grub_username_get.
26075 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26076 * normal/color.c: Adapt for multiterm.
26077 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26078 (grub_normal_init_page): Additional argument term.
26079 (read_lists): Call read_terminal_lists.
26080 (grub_enter_normal_mode): Call grub_cmdline_run.
26081 Handle grub_normal_exit_level.
26082 (grub_cmd_normal): Make reentrant.
26083 (grub_cmd_normal_exit): New function.
26084 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26085 * normal/menu.c: Adapt for multiterm.
26086 * normal/menu_entry.c: Likewise.
26087 * normal/menu_text.c: Likewise.
26088 * normal/menu_viewer.c: Removed. All users updated.
26089 * normal/term.c: New file.
26090 * util/console.c: Change order of includes to workaround a bug in
26091 ncurses headers.
26092 * term/terminfo.c: New argument oterm on all exported functions.
26093 All users updated.
26094 * util/grub-editenv.c (grub_term_input_class): Removed.
26095 (grub_term_output_class): Likewise.
26096
1a064917
RM
260972010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26098
26099 Make loader output a bit more user-friendly.
26100
26101 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26102 is being loaded. Likewise for the Hurd.
26103
26104 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26105 that kernel of FreeBSD ${version} is being loaded.
26106
26107 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26108 grub_dprintf().
26109 (grub_cmd_initrd): Likewise.
26110 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26111 that Linux ${version} is being loaded. Likewise for initrd.
26112
5ce0a83a 261132010-01-09 Carles Pina i Estany <carles@pina.cat>
26114
26115 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26116
809bbfeb 261172010-01-08 Carles Pina i Estany <carles@pina.cat>
26118
26119 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26120 (GRUB_MOD_INIT): Gettextizze.
26121 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26122 (GRUB_MOD_INIT): Gettextizze.
26123 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26124 (grub_cmd_linux): Capitalise Linux.
26125 (GRUB_MOD_INIT): Gettextizze.
26126 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26127 (grub_cmd_linux): Capitalise Linux.
26128 (GRUB_MOD_INIT): Gettextizze.
26129 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26130 (grub_cmd_linux): Capitalise Linux.
26131 (GRUB_MOD_INIT): Gettextizze.
26132 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26133 (GRUB_MOD_INIT): Gettextizze.
26134 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26135 (grub_cmd_linux): Capitalise Linux.
26136 (GRUB_MOD_INIT): Gettextizze.
26137 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26138 (grub_cpu_xnu_init): Gettextizze.
26139 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26140 (GRUB_MOD_INIT): Gettextizze.
26141 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26142 (GRUB_MOD_INIT): Gettextizze.
26143 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26144 (grub_linux_load64): Capitalise Linux.
26145 (GRUB_MOD_INIT): Gettextizze.
26146 * loader/xnu.c: Include `<grub/i18n.h>'.
26147 (GRUB_MOD_INIT): Gettextizze.
26148 * po/POTFILES: Add `loader/efi/appleloader.c',
26149 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26150 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26151 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26152 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26153 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26154 and `loader/xnu.c'.
26155
b394b2ca
RM
261562010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26157
26158 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26159
261602010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
26161
26162 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26163 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26164 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26165
bc8b32b3
RM
261662010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26167
26168 Reset Multiboot 2 support. New loader implements the draft in
26169 /branches/multiboot2 and shares as much code as possible with the
26170 production Multiboot 1 implementation.
26171
26172 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26173 * loader/multiboot2.c: Likewise.
26174 * loader/i386/multiboot_helper.S: Likewise.
26175 * include/multiboot2.h: Replace with latest version from the draft
26176 in /branches/multiboot2.
26177
26178 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26179 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26180 and `loader/multiboot2.c'.
26181 (pkglib_MODULES): Add `multiboot2.mod'.
26182 (multiboot2_mod_SOURCES): New variable.
26183 (multiboot2_mod_LDFLAGS): Likewise.
26184 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26185
26186 * conf/i386-pc.rmk: Likewise.
26187
26188 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26189 (multiboot_mod_SOURCES): Remove variable.
26190 (multiboot_mod_LDFLAGS): Likewise.
26191 (multiboot_mod_CFLAGS): Likewise.
26192
26193 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26194 `<multiboot2.h>' instead of `<multiboot.h>'.
26195 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26196 (MULTIBOOT_HEADER_MAGIC): New macros.
26197
26198 * loader/multiboot_loader.c (module_version_status): Remove variable.
26199 (find_multi_boot2_header): Remove function.
26200 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26201 logic. Always check for the Multiboot version we're compiling for.
26202 (grub_cmd_module_loader): Likewise.
26203 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26204 command instead of `multiboot'.
26205
5d2c52b8
RM
262062010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26207
26208 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26209 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26210 all users.
26211
53108d92
RM
262122010-01-07 Robert Millan <rmh.grub@aybabtu.com>
262132010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26214
26215 Fix breakage introduced with previous commit.
26216
26217 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26218 commands.
26219 * normal/handler.c (read_handler_list): Revert part of previous commit
26220 affecting this file.
26221 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26222 (grub_normal_execute): ... here.
26223
e2e936b2
RM
262242010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26225
26226 Merge prefix-redefinition-fix branch.
26227
26228 * normal/autofs.c (read_fs_list): Make function capable of being
26229 run multiple times, gracefuly replacing the previous data
26230 structures.
26231 * normal/dyncmd.c (read_command_list): Likewise.
26232 * normal/handler.c (read_handler_list): Likewise.
26233 * normal/main.c (read_lists): New function. Calls all the
26234 list reading functions.
26235 (grub_normal_execute): Use read_lists() instead of calling all
26236 list reading functions explicitly. Register read_lists() as a
26237 variable hook attached to ${prefix}.
26238
607a3701
VS
262392010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26240
26241 Merge crypto branch.
26242
26243 * Makefile.in (pkglib_DATA): Add crypto.lst.
26244 (crypto.lst): New target.
26245 * commands/hashsum.c: New file.
26246 * commands/password.c (check_password): Use grub_crypto_memcmp.
26247 * commands/password_pbkdf2.c: New file.
26248 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26249 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26250 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26251 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26252 -I$(srcdir)/lib/libgcrypt_wrap.
26253 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26254 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26255 password_pbkdf2.mod.
26256 (crypto_mod_SOURCES): New variable.
26257 (crypto_mod_CFLAGS): Likewise.
26258 (crypto_mod_LDFLAGS): Likewise.
26259 (hashsum_mod_SOURCES): New variable.
26260 (hashsum_mod_CFLAGS): Likewise.
26261 (hashsum_mod_LDFLAGS): Likewise.
26262 (pbkdf2_mod_SOURCES): New variable.
26263 (pbkdf2_mod_CFLAGS): Likewise.
26264 (pbkdf2_mod_LDFLAGS): Likewise.
26265 (password_pbkdf2_mod_SOURCES): New variable.
26266 (password_pbkdf2_mod_CFLAGS): Likewise.
26267 (password_pbkdf2_mod_LDFLAGS): Likewise.
26268 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26269 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26270 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26271 Include conf/gcry.rmk.
26272 * include/grub/auth.h: Rewritten.
26273 * include/grub/crypto.h: New file.
26274 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26275 * include/grub/normal.h (read_crypto_list): New prototype.
26276 * lib/crypto.c: New file.
26277 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26278 * lib/pbkdf2.c: Likewise.
26279 * normal/auth.c (grub_auth_strcmp): Removed.
26280 (grub_iswordseparator): Likewise.
26281 (grub_auth_strword): Likewise.
26282 (is_authenticated): Use grub_strword.
26283 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26284 and grub_strword. Pass entered password to authentication callback.
26285 * normal/crypto.c: New file.
26286 * normal/main.c: Call read_crypto_list.
26287 * util/grub-mkpasswd-pbkdf2.c: New file.
26288 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26289
42841caa
VS
262902010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26291
26292 Fix descent and ascent calculation.
26293
26294 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26295 (options): New option "asce".
26296 (usage): Likewise.
26297 (add_char): Ignore invalid glyphs for descent calculation.
26298 Calculate ascent from actual content.
26299 (print_glyphs): Use 'asce'.
26300 (write_font): Likewise. Allow ascent override.
26301 (main): Handle "asce" option.
26302
e7730de7 263032010-01-06 Carles Pina i Estany <carles@pina.cat>
26304
26305 * kern/err.c: Include `<grub/i18n.h>'.
26306 (grub_print_error): Add full stop. Gettextizze.
26307 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
26308 (grub_bsd_load_elf): Capitalise ELF.
26309 (grub_cmd_freebsd_loadenv): Add `s' in error string.
26310 (grub_cmd_freebsd_module): Likewise.
26311 (grub_cmd_freebsd_module_elf): Likewise.
26312 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
26313
40e3a41f 263142010-01-06 Carles Pina i Estany <carles@pina.cat>
26315
26316 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
26317 * commands/search_file.c (HELP_MESSAGE): New macro.
26318 * commands/search_label.c (HELP_MESSAGE): Likewise.
26319 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
26320 * po/POTFILES: Add `commands/search_file.c',
26321 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
26322 `commands/search.c'.
26323
83507e68
RM
263242010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26325
26326 * config.rpath: Update from Gnulib.
26327
465c787b
YB
263282010-01-05 Yves Blusseau <blusseau@zetam.org>
26329
26330 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
26331
6581dd3a
YB
263322010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
26333
26334 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
26335
3bff18c5
CW
263362010-01-05 Colin Watson <cjwatson@ubuntu.com>
26337
26338 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
26339 arguments to fread so that we get a return value in bytes, rather
26340 than something that will normally be rounded down to 0.
26341 Adjust error handling to avoid producing garbage when size_t is not
26342 the same size as long long.
26343
a1368118
CW
263442010-01-05 Colin Watson <cjwatson@ubuntu.com>
26345
26346 * util/mkisofs/write.c (padblock_write): Check return value of
26347 fread.
26348
7c302978
RM
263492010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26350
26351 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
26352 floppy images now.
26353
26354 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
26355
e33ace06
RM
263562010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26357
26358 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
26359 instead of manual alignment.
26360 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
26361 verbose). Avoid attempts to read past end of the device
26362 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
26363 but GRUB_DISK_CACHE_SIZE may exceed that).
26364
4b856776
RM
263652010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26366
26367 * commands/crc.c (grub_cmd_crc): Abort on read errors.
26368 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
26369 it to upper layer.
26370
52c2d97f
VS
263712010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26372
26373 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
26374 New constant.
26375 (grub_efi_piwg_device_path): New structure
26376 (grub_efi_piwg_device_path_t): New type.
26377 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
26378 (devpath_1): Transform to a structure. All users updated.
26379 (devpath_2): Likewise.
26380 (devpath_3): Likewise.
26381 (devpath_4): Likewise.
26382 (devpath_5): Likewise.
26383
98ff6a54
VS
263842010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26385
26386 * loader/efi/appleloader.c: Restored. Update all users.
26387
3a73dcb6
RM
263882010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26389
26390 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
26391
26392 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
26393 (struct boot_blocklist): Move from here ...
26394 * include/grub/i386/pc/boot.h [ASM_FILE]
26395 (struct grub_boot_blocklist): ... to here. Update all users.
26396 (setup): Only initialize `start' member of `first_block'
26397 structure. Add assert() calls to verify the other members.
26398
26399 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
26400 (generate_image): Fix broken blocklist length initialization.
26401 Add assert() call to verify blocklist `segment' field.
26402
ab0eeb0c
RM
264032010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26404
26405 * loader/efi/appleloader.c: Remove. Update all users.
26406
58bc8bd5
RM
264072010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26408
26409 * boot/i386/pc/boot.S: Update copyright year.
26410 * boot/i386/pc/cdboot.S: Likewise.
26411 * boot/i386/pc/diskboot.S: Likewise.
26412 * boot/i386/pc/lnxboot.S: Likewise.
26413 * boot/i386/pc/pxeboot.S: Likewise.
26414 * bus/pci.c: Likewise.
26415 * commands/cmp.c: Likewise.
26416 * commands/help.c: Likewise.
26417 * commands/hexdump.c: Likewise.
26418 * commands/i386/pc/halt.c: Likewise.
26419 * commands/i386/pc/play.c: Likewise.
26420 * commands/i386/pc/vbeinfo.c: Likewise.
26421 * commands/ls.c: Likewise.
26422 * commands/test.c: Likewise.
26423 * disk/dmraid_nvidia.c: Likewise.
26424 * disk/i386/pc/biosdisk.c: Likewise.
26425 * disk/ieee1275/nand.c: Likewise.
26426 * disk/ieee1275/ofdisk.c: Likewise.
26427 * disk/lvm.c: Likewise.
26428 * disk/raid.c: Likewise.
26429 * disk/raid6_recover.c: Likewise.
26430 * disk/scsi.c: Likewise.
26431 * fs/affs.c: Likewise.
26432 * fs/cpio.c: Likewise.
26433 * fs/ext2.c: Likewise.
26434 * fs/hfs.c: Likewise.
26435 * fs/iso9660.c: Likewise.
26436 * fs/ntfs.c: Likewise.
26437 * fs/sfs.c: Likewise.
26438 * fs/udf.c: Likewise.
26439 * fs/ufs.c: Likewise.
26440 * fs/xfs.c: Likewise.
26441 * gencmdlist.sh: Likewise.
26442 * genmk.rb: Likewise.
26443 * include/grub/disk.h: Likewise.
26444 * include/grub/efi/api.h: Likewise.
26445 * include/grub/efi/efi.h: Likewise.
26446 * include/grub/efi/pe32.h: Likewise.
26447 * include/grub/elf.h: Likewise.
26448 * include/grub/fs.h: Likewise.
26449 * include/grub/i386/at_keyboard.h: Likewise.
26450 * include/grub/i386/pc/memory.h: Likewise.
26451 * include/grub/i386/pc/vbe.h: Likewise.
26452 * include/grub/i386/pci.h: Likewise.
26453 * include/grub/i386/tsc.h: Likewise.
26454 * include/grub/ieee1275/ieee1275.h: Likewise.
26455 * include/grub/ntfs.h: Likewise.
26456 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26457 * include/grub/sparc64/libgcc.h: Likewise.
26458 * include/grub/symbol.h: Likewise.
26459 * include/grub/types.h: Likewise.
26460 * include/multiboot2.h: Likewise.
26461 * io/gzio.c: Likewise.
26462 * kern/device.c: Likewise.
26463 * kern/disk.c: Likewise.
26464 * kern/efi/efi.c: Likewise.
26465 * kern/efi/mm.c: Likewise.
26466 * kern/elf.c: Likewise.
26467 * kern/file.c: Likewise.
26468 * kern/i386/dl.c: Likewise.
26469 * kern/i386/pc/init.c: Likewise.
26470 * kern/i386/pc/startup.S: Likewise.
26471 * kern/ieee1275/ieee1275.c: Likewise.
26472 * kern/ieee1275/init.c: Likewise.
26473 * kern/main.c: Likewise.
26474 * kern/mm.c: Likewise.
26475 * kern/powerpc/dl.c: Likewise.
26476 * kern/sparc64/dl.c: Likewise.
26477 * kern/x86_64/dl.c: Likewise.
26478 * lib/hexdump.c: Likewise.
26479 * loader/efi/appleloader.c: Likewise.
26480 * loader/i386/ieee1275/linux.c: Likewise.
26481 * loader/i386/pc/chainloader.c: Likewise.
26482 * loader/i386/pc/linux.c: Likewise.
26483 * loader/i386/pc/multiboot2.c: Likewise.
26484 * loader/ieee1275/multiboot2.c: Likewise.
26485 * loader/multiboot2.c: Likewise.
26486 * loader/multiboot_loader.c: Likewise.
26487 * loader/powerpc/ieee1275/linux.c: Likewise.
26488 * normal/completion.c: Likewise.
26489 * normal/menu_entry.c: Likewise.
26490 * partmap/apple.c: Likewise.
26491 * util/grub.d/10_hurd.in: Likewise.
26492 * util/hostfs.c: Likewise.
26493 * video/readers/png.c: Likewise.
26494
e2d70b5c
CW
264952010-01-03 Colin Watson <cjwatson@ubuntu.com>
26496
26497 * include/grub/misc.h (GNUC_PREREQ): New macro.
26498 (ATTRIBUTE_ERROR): New macro.
26499 * include/grub/list.h (grub_bad_type_cast_real): Use
26500 ATTRIBUTE_ERROR.
26501
a173283f 265022010-01-03 Carles Pina i Estany <carles@pina.cat>
26503
26504 * normal/menu_text.c (print_message): Change messages.
26505
7fa7ff74 265062010-01-03 Carles Pina i Estany <carles@pina.cat>
26507
26508 * normal/menu_entry.c (store_completion): Gettextizze.
26509
136d24f6 265102010-01-03 Carles Pina i Estany <carles@pina.cat>
26511
26512 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
26513
f936862e 265142010-01-03 Carles Pina i Estany <carles@pina.cat>
26515
26516 * po/POTFILES: Sort correctly.
26517
29c44ad1 265182010-01-03 Carles Pina i Estany <carles@pina.cat>
26519
26520 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
26521 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
26522 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
26523 full stop.
26524 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
26525 summary. Gettextizze the strings.
26526 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
26527 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
26528 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
26529 full stop.
26530 (GRUB_MOD_INIT): Remove command name from summary.
26531 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
26532 summary.
26533 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
26534 * term/i386/pc/serial.c (options): Add full stops.
26535 (GRUB_MOD_INIT): Remove command name from the summary.
26536
77a79592 265372010-01-03 Carles Pina i Estany <carles@pina.cat>
26538
26539 * commands/acpi.c: Gettextizze help strings and/or options. Include
26540 `grub/i18n.h' if needed.
26541 * commands/blocklist.c: Likewise.
26542 * commands/boot.c: Likewise.
26543 * commands/cat.c: Likewise.
26544 * commands/cmp.c: Likewise.
26545 * commands/configfile.c: Likewise.
26546 * commands/crc.c: Likewise.
26547 * commands/date.c: Likewise.
26548 * commands/echo.c: Likewise.
26549 * commands/efi/fixvideo.c: Likewise.
26550 * commands/efi/loadbios.c: Likewise.
26551 * commands/gptsync.c: Likewise.
26552 * commands/halt.c: Likewise.
26553 * commands/handler.c: Likewise.
26554 * commands/hdparm.c: Likewise.
26555 * commands/hexdump.c: Likewise.
26556 * commands/i386/cpuid.c: Likewise.
26557 * commands/i386/pc/drivemap.c: Likewise.
26558 * commands/i386/pc/halt.c: Likewise.
26559 * commands/i386/pc/pxecmd.c: Likewise.
26560 * commands/i386/pc/vbeinfo.c: Likewise.
26561 * commands/i386/pc/vbetest.c: Likewise.
26562 * commands/ieee1275/suspend.c: Likewise.
26563 * commands/keystatus.c: Likewise.
26564 * commands/loadenv.c: Likewise.
26565 * commands/ls.c: Likewise.
26566 * commands/lsmmap.c: Likewise.
26567 * commands/lspci.c: Likewise.
26568 * commands/memrw.c: Likewise.
26569 * commands/minicmd.c: Likewise.
26570 * commands/parttool.c: Likewise.
26571 * commands/password.c: Likewise.
26572 * commands/probe.c: Likewise.
26573 * commands/read.c: Likewise.
26574 * commands/reboot.c: Likewise.
26575 * commands/search.c: Likewise.
26576 * commands/sleep.c: Likewise.
26577 * commands/test.c: Likewise.
26578 * commands/true.c: Likewise.
26579 * commands/usbtest.c: Likewise.
26580 * commands/videotest.c: Likewise.
26581 * commands/xnu_uuid.c: Likewise.
26582 * disk/loopback.c: Likewise.
26583 * hello/hello.c: Likewise.
26584 * loader/i386/bsd.c: Likewise.
26585 * term/i386/pc/serial.c: Likewise.
26586 * po/POTFILES: Add new files.
26587
da8d5c53
CW
265882010-01-02 Colin Watson <cjwatson@ubuntu.com>
26589
26590 * term/i386/pc/at_keyboard.c
26591 (keyboard_controller_wait_untill_ready): Rename to ...
26592 (keyboard_controller_wait_until_ready): ... this. Update all users.
26593
33937904 265942010-01-01 Carles Pina i Estany <carles@pina.cat>
26595
26596 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
26597 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
26598 string using string width.
26599 * normal/menu_text.c (grub_print_message_indented): Use
26600 grub_print_spaces and not print_spaces.
26601 (print_timeout): Likewise.
26602 (print_spaces): Move to...
26603 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
26604
3fd3b8d8
RM
266052010-01-01 Robert Millan <rmh.grub@aybabtu.com>
26606
26607 Import from Gnulib.
26608
26609 * gnulib/getdelim.c: New file.
26610 * gnulib/getline.c: Likewise.
26611
33433555
VS
266122009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
26613
26614 * include/grub/list.h (grub_assert_fail): Removed.
26615 (grub_bad_type_cast_real): New function.
26616 (grub_bad_type_cast): New macro.
26617 (GRUB_AS_LIST): Use grub_bad_type_cast.
26618 (GRUB_AS_LIST_P): Likewise.
e44721e8 26619 (GRUB_AS_NAMED_LIST): Likewise.
33433555 26620 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 26621 (GRUB_AS_PRIO_LIST): Likewise.
33433555 26622 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 26623 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 26624
f5a51306
VS
266252009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
26628 Fix syntax error.
26629
90d1e879
RM
266302009-12-29 Robert Millan <rmh.grub@aybabtu.com>
26631
26632 * configure.ac: Check for TARGET_CFLAGS initialization before we
26633 initialize it ourselves (sigh).
26634 Move a few modifications to TARGET_CFLAGS to be unconditional
26635 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
26636 eh_frame)
26637
26638 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
26639 * term/i386/pc/at_keyboard.c
26640 (keyboard_controller_wait_untill_ready): Likewise.
26641 (keyboard_controller_led): Rename `led_status' paramter to avoid
26642 name conflict.
26643
465b5a81 266442009-12-28 Carles Pina i Estany <carles@pina.cat>
26645
26646 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
26647 quotes.
26648
c181849b
VS
266492009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26650
26651 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
26652
9c8739a4
VS
266532009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26654
26655 * normal/menu_text.c (grub_print_message_indented): Prevent
26656 past-the-end-of-array dereference.
26657
3e74249c
VS
266582009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26659
26660 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
26661 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
26662
64fd18ed 266632009-12-27 Carles Pina i Estany <carles@pina.cat>
26664
26665 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
26666 * normal/main.c (grub_normal_read_line): Remove a space from the
26667 default prompt.
26668
714af9b9 266692009-12-27 Carles Pina i Estany <carles@pina.cat>
26670
26671 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
26672 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26673 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26674 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26675 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26676 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26677 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26678
82f3e412 266792009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 26680
26681 * video/readers/jpeg.c (cmd): Declare.
26682 (grub_cmd_jpegtest): Use `grub_command_t' type.
26683 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26684 Assign to `cmd'.
26685 (GRUB_MOD_FINI): Use `cmd' to unregister.
26686 * video/readers/png.c (cmd): Declare.
26687 (grub_cmd_pngtest): Use `grub_command_t' type.
26688 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26689 Assign to `cmd'.
26690 (GRUB_MOD_FINI): Use `cmd' to unregister.
26691 * video/readers/tga.c (cmd): Declare.
26692 (grub_cmd_tgatest): Use `grub_command_t' type.
26693 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26694 Assign to `cmd'.
26695 (GRUB_MOD_FINI): Use `cmd' to unregister.
26696
82f3e412 266972009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 26698
26699 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
26700 stops.
26701 * kern/corecmd.c (grub_register_core_commands): Likewise.
26702 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
26703 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26704 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
26705 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26706 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26707 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
26708 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26709 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
26710 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26711 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26712 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26713 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26714 * normal/handler.c (insert_handler): Likewise.
26715 * normal/main.c (GRUB_MOD_INIT): Likewise.
26716 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
26717
fdcdbb66 267182009-12-26 Carles Pina i Estany <carles@pina.cat>
26719
26720 * commands/help.c (grub_cmd_help): Print the command name before the
26721 summary.
26722 (GRUB_MOD_INIT): Remove command name from the summary.
26723 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 26724 string as summary.
fdcdbb66 26725 * lib/arg.c (find_long): Print the command name before the summary.
26726 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
26727 summary.
26728 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
26729 * commands/cat.c (GRUB_MOD_INIT): Likewise.
26730 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
26731 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26732 * commands/crc.c (GRUB_MOD_INIT): Likewise.
26733 * commands/date.c (GRUB_MOD_INIT): Likewise.
26734 * commands/echo.c (GRUB_MOD_INIT): Likewise.
26735 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
26736 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26737 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26738 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
26739 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
26740 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
26741 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
26742 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26743 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
26744 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
26745 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
26746 * commands/ls.c (GRUB_MOD_INIT): Likewise.
26747 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26748 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26749 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26750 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
26751 * commands/password.c (GRUB_MOD_INIT): Likewise.
26752 * commands/probe.c (GRUB_MOD_INIT): Likewise.
26753 * commands/read.c (GRUB_MOD_INIT): Likewise.
26754 * commands/search.c (GRUB_MOD_INIT): Likewise.
26755 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
26756 * commands/test.c (GRUB_MOD_INIT): Likewise.
26757 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
26758 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26759 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26760 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
26761 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26762 * lib/arg.c (GRUB_MOD_INIT): Likewise.
26763 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
26764 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26765 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26766 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26767 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26768 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
26769 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
26770 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
26771
9c288be2
VS
267722009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26773
26774 Use search command for preliminar UUID search.
26775
26776 * commands/search.c: Split into ...
26777 * commands/search_wrap.c: ...this
26778 * commands/search.c: ...and this.
26779 * commands/search_file.c: New file.
26780 * commands/search_label.c: New file.
26781 * commands/search_uuid.c: New file.
26782 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
26783 Add commands/search_wrap.c, commands/search_file.c,
26784 commands/search_label.c and commands/search_uuid.c.
26785 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
26786 (search_mod_SOURCES): Set to commands/search_wrap.c.
26787 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
26788 search_label.mod.
26789 (search_fs_file_mod_SOURCES): New variable.
26790 (search_fs_file_mod_CFLAGS): Likewise.
26791 (search_fs_file_mod_LDFLAGS): Likewise.
26792 (search_label_mod_SOURCES): Likewise.
26793 (search_label_mod_CFLAGS): Likewise.
26794 (search_label_mod_LDFLAGS): Likewise.
26795 (search_fs_uuid_mod_SOURCES): New variable.
26796 (search_fs_uuid_mod_CFLAGS): Likewise.
26797 (search_fs_uuid_mod_LDFLAGS): Likewise.
26798 (fs_file_mod_SOURCES): Removed.
26799 (fs_file_mod_CFLAGS): Likewise.
26800 (fs_file_mod_LDFLAGS): Likewise.
26801 (fs_uuid_mod_SOURCES): Removed.
26802 (fs_uuid_mod_CFLAGS): Likewise.
26803 (fs_uuid_mod_LDFLAGS): Likewise.
26804 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
26805 Set to util/grub-install.in.
26806 * disk/fs_file.c: Removed.
26807 * disk/fs_uuid.c: Likewise.
26808 * include/grub/search.h: New file.
26809 * util/grub-install.in: Handle sparc64.
26810 Create and use load.cfg.
26811 * util/sparc64/ieee1275/grub-install.in: Removed.
26812
db943399
VS
268132009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26814
26815 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
26816 Ignore return status if CF is cleared.
26817 (grub_biosdisk_get_diskinfo_standard): Likewise.
26818
3fdae612
RM
268192009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26820
26821 * term/i386/pc/at_keyboard.c
26822 (keyboard_controller_wait_untill_ready): New function.
26823 (grub_keyboard_controller_write, grub_keyboard_controller_read)
26824 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
26825 for keyboard polling, rather than duplicate the same loop. This
26826 saves a few bytes in code size.
26827
7ebaa2b4
VS
268282009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26829
26830 Support for (pxe[:server[:gateway]]) syntax and
26831 use environment variable for PXE.
26832
26833 * commands/i386/pc/pxecmd.c (options): Removed.
26834 (print_ip): Removed.
26835 (grub_cmd_pxe): Removed
26836 (grub_cmd_pxe_unload): New function.
26837 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26838 (grub_pxe_your_ip): Made static.
26839 (grub_pxe_default_server_ip): Likewise.
26840 (grub_pxe_default_gateway_ip): Likewise.
26841 (grub_pxe_blksize): Likewise.
26842 (parse_ip): New function.
26843 (grub_pxe_open): Support server and gateway specification.
26844 (grub_pxe_close): Free disk->data.
26845 (grub_pxefs_open): Use disk->data.
26846 (grub_pxefs_read): Likewise.
26847 (grub_env_write_readonly): New function.
26848 (set_mac_env): Likewise.
26849 (set_env_limn_ro): Likewise.
26850 (parse_dhcp_vendor): Likewise.
26851 (grub_pxe_detect): Set the environment variables.
26852 (set_ip_env): New function.
26853 (write_ip_env): Likewise.
26854 (grub_env_write_pxe_default_server): Likewise.
26855 (grub_env_write_pxe_default_gateway): Likewise.
26856 (grub_env_write_pxe_blocksize): Likewise.
26857 (GRUB_MOD_INIT(pxe)): Set environment variables.
26858 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26859 (grub_pxe_mac_addr_t): ... this. All users updated.
26860 (grub_pxe_your_ip): Removed.
26861 (grub_pxe_server_ip): Likewise.
26862 (grub_pxe_gateway_ip): Likewise.
26863 (grub_pxe_blksize): Likewise.
26864
ec5f98ab 268652009-12-25 Carles Pina i Estany <carles@pina.cat>
26866
26867 * commands/help.c: Include `<grub/i18n.h>'.
26868 (grub_cmd_help): Gettextizze.
26869 (GRUB_MOD_INIT): Likewise.
26870 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
26871 (GRUB_MOD_INIT): Gettextizze.
26872 * commands/search.c: Include `<grub/i18n.h>'.
26873 (options): Gettextizze.
26874 (GRUB_MOD_INIT): Gettextizze.
26875 * lib/arg.c: Include `<grub/i18n.h>'.
26876 (help_options): Gettextizze.
26877 (find_long): Likewise.
26878 (grub_arg_show_help): Likewise.
26879 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26880 (read_command_list): Gettextizze.
26881 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26882 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26883
22815526
RM
268842009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26885
26886 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26887 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26888 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26889 (led_status): New variable.
26890 (keyboard_controller_led): New function.
26891 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26892 update led status for caps lock, num lock and scroll lock.
26893
0ad46fd7
FZ
268942009-12-25 Felix Zielcke <fzielcke@z-51.de>
26895
26896 * util/hostdisk.c (open_device): Fix a comment.
26897
d0e158c2
RM
268982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26899
26900 * util/grub-install.in (host_os): New variable.
26901 * util/i386/efi/grub-install.in (host_os): Likewise.
26902
401c0ad6
RM
269032009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26904
26905 * util/mkisofs/write.c (padblock_write): Abort when given an
26906 excedingly large embed image, instead of silently truncating it.
26907
d14d3370
RM
269082009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26909
26910 * include/multiboot.h: Indentation fixes.
26911
eeed10b4
RM
269122009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26913
26914 * include/multiboot.h (struct multiboot_aout_symbol_table)
26915 (struct multiboot_elf_section_header_table): New structure
26916 declarations (stolen from GRUB Legacy).
26917 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26918 table information.
26919
26920 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26921 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26922 type aliases.
26923
681c70ab
RM
269242009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * include/multiboot.h: Make comments src2texi-friendly.
26927
e4d47d8d
RM
269282009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26929
26930 For consistency with [multiboot]/docs/boot.S.
26931
26932 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26933 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26934 (MULTIBOOT_MAGIC2): Rename from this ...
26935 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26936
a0b70bda
RM
269372009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26938
26939 * include/multiboot.h: Remove `<grub/types.h>'.
26940 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26941 types. Update all users.
26942
61ba42be 269432009-12-25 Carles Pina i Estany <carles@pina.cat>
26944
26945 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26946 `couldn't' and `can not' by `cannot'.
26947 * commands/i386/pc/drivemap.c: Likewise.
26948 * disk/ata.c: Likewise.
26949 * disk/ieee1275/nand.c: Likewise.
26950 * fs/affs.c: Likewise.
26951 * fs/fat.c: Likewise.
26952 * fs/hfs.c: Likewise.
26953 * fs/hfsplus.c: Likewise.
26954 * fs/iso9660.c: Likewise.
26955 * fs/jfs.c: Likewise.
26956 * fs/minix.c: Likewise.
26957 * fs/reiserfs.c: Likewise.
26958 * fs/sfs.c: Likewise.
26959 * fs/udf.c: Likewise.
26960 * fs/ufs.c: Likewise.
26961 * fs/xfs.c: Likewise.
26962 * loader/powerpc/ieee1275/linux.c: Likewise.
26963 * loader/sparc64/ieee1275/linux.c: Likewise.
26964 * util/grub-probe.c: Likewise.
26965 * util/misc.c: Likewise.
26966
7fd0baee 269672009-12-24 Carles Pina i Estany <carles@pina.cat>
26968
26969 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26970 grub_errno calls.
26971 * commands/acpi.c: Likewise.
26972 * commands/blocklist.c: Likewise.
26973 * commands/efi/loadbios.c: Likewise.
26974 * commands/i386/pc/drivemap.c: Likewise.
26975 * commands/loadenv.c: Likewise.
26976 * commands/memrw.c: Likewise.
26977 * commands/password.c: Likewise.
26978 * commands/videotest.c: Likewise.
26979 * disk/ata.c: Likewise.
26980 * disk/ata_pthru.c: Likewise.
26981 * disk/dmraid_nvidia.c: Likewise.
26982 * disk/ieee1275/nand.c: Likewise.
26983 * disk/ieee1275/ofdisk.c: Likewise.
26984 * disk/loopback.c: Likewise.
26985 * disk/lvm.c: Likewise.
26986 * disk/mdraid_linux.c: Likewise.
26987 * disk/raid.c: Likewise.
26988 * disk/raid6_recover.c: Likewise.
26989 * disk/scsi.c: Likewise.
26990 * efiemu/main.c: Likewise.
26991 * efiemu/mm.c: Likewise.
26992 * efiemu/pnvram.c: Likewise.
26993 * efiemu/symbols.c: Likewise.
26994 * font/font.c: Likewise.
26995 * fs/cpio.c: Likewise.
26996 * fs/hfsplus.c: Likewise.
26997 * fs/iso9660.c: Likewise.
26998 * fs/jfs.c: Likewise.
26999 * fs/minix.c: Likewise.
27000 * fs/ntfs.c: Likewise.
27001 * fs/ntfscomp.c: Likewise.
27002 * fs/reiserfs.c: Likewise.
27003 * fs/ufs.c: Likewise.
27004 * fs/xfs.c: Likewise.
27005 * gettext/gettext.c: Likewise.
27006 * include/grub/auth.h: Likewise.
27007 * kern/elf.c: Likewise.
27008 * kern/file.c: Likewise.
27009 * kern/ieee1275/init.c: Likewise.
27010 * kern/ieee1275/mmap.c: Likewise.
27011 * kern/ieee1275/openfw.c: Likewise.
27012 * kern/powerpc/dl.c: Likewise.
27013 * kern/sparc64/dl.c: Likewise.
27014 * lib/arg.c: Likewise.
27015 * loader/i386/bsd.c: Likewise.
27016 * loader/i386/bsdXX.c: Likewise.
27017 * loader/i386/efi/linux.c: Likewise.
27018 * loader/i386/efi/xnu.c: Likewise.
27019 * loader/i386/ieee1275/linux.c: Likewise.
27020 * loader/i386/linux.c: Likewise.
27021 * loader/i386/multiboot.c: Likewise.
27022 * loader/i386/pc/linux.c: Likewise.
27023 * loader/i386/pc/multiboot2.c: Likewise.
27024 * loader/i386/xnu.c: Likewise.
27025 * loader/ieee1275/multiboot2.c: Likewise.
27026 * loader/macho.c: Likewise.
27027 * loader/machoXX.c: Likewise.
27028 * loader/multiboot2.c: Likewise.
27029 * loader/multiboot_loader.c: Likewise.
27030 * loader/powerpc/ieee1275/linux.c: Likewise.
27031 * loader/sparc64/ieee1275/linux.c: Likewise.
27032 * loader/xnu.c: Likewise.
27033 * loader/xnu_resume.c: Likewise.
27034 * mmap/i386/pc/mmap.c: Likewise.
27035 * normal/menu_viewer.c: Likewise.
27036 * partmap/acorn.c: Likewise.
27037 * partmap/amiga.c: Likewise.
27038 * partmap/apple.c: Likewise.
27039 * script/lexer.c: Likewise.
27040 * term/gfxterm.c: Likewise.
27041 * term/i386/pc/serial.c: Likewise.
27042 * term/i386/pc/vga.c: Likewise.
27043 * term/ieee1275/ofconsole.c: Likewise.
27044 * term/terminfo.c: Likewise.
27045 * video/bitmap.c: Likewise.
27046 * video/efi_gop.c: Likewise.
27047 * video/efi_uga.c: Likewise.
27048 * video/fb/video_fb.c: Likewise.
27049 * video/i386/pc/vbe.c: Likewise.
27050 * video/readers/tga.c: Likewise.
27051 * video/video.c: Likewise.
27052
0ad46fd7 270532009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
27054
27055 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27056 * commands/lspci.c: Likewise.
27057 * commands/probe.c: Likewise.
27058 * commands/xnu_uuid.c: Likewise.
27059 * conf/i386-coreboot.rmk: Likewise.
27060 * conf/i386-efi.rmk: Likewise.
27061 * conf/i386-ieee1275.rmk: Likewise.
27062 * conf/i386-pc.rmk: Likewise.
27063 * conf/powerpc-ieee1275.rmk: Likewise.
27064 * conf/sparc64-ieee1275.rmk: Likewise.
27065 * conf/x86_64-efi.rmk: Likewise.
27066 * fs/i386/pc/pxe.c: Likewise.
27067 * gettext/gettext.c: Likewise.
27068 * include/grub/efi/graphics_output.h: Likewise.
27069 * include/grub/i386/pc/memory.h: Likewise.
27070 * kern/env.c: Likewise.
27071 * kern/i386/qemu/startup.S: Likewise.
27072 * lib/i386/pc/biosnum.c: Likewise.
27073 * lib/i386/relocator.c: Likewise.
27074 * lib/i386/relocator_asm.S: Likewise.
27075 * lib/relocator.c: Likewise.
27076 * loader/i386/bsd.c: Likewise.
27077 * loader/i386/multiboot.c: Likewise.
27078 * loader/i386/pc/chainloader.c: Likewise.
27079 * loader/i386/xnu.c: Likewise.
27080 * loader/xnu.c: Likewise.
27081 * normal/main.c: Likewise.
27082 * normal/menu_text.c: Likewise.
27083 * util/getroot.c: Likewise.
27084 * util/grub-mkconfig_lib.in: Likewise.
27085 * util/grub.d/00_header.in: Likewise.
27086 * util/i386/pc/grub-mkimage.c: Likewise.
27087 * util/mkisofs/eltorito.c: Likewise.
27088 * util/mkisofs/exclude.h: Likewise.
27089 * util/mkisofs/hash.c: Likewise.
27090 * util/mkisofs/iso9660.h: Likewise.
27091 * util/mkisofs/joliet.c: Likewise.
27092 * util/mkisofs/mkisofs.c: Likewise.
27093 * util/mkisofs/mkisofs.h: Likewise.
27094 * util/mkisofs/multi.c: Likewise.
27095 * util/mkisofs/name.c: Likewise.
27096 * util/mkisofs/rock.c: Likewise.
27097 * util/mkisofs/tree.c: Likewise.
27098 * util/mkisofs/write.c: Likewise.
27099 * video/efi_gop.c: Likewise.
27100
009ec743
VS
271012009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27102
27103 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27104 size counting.
27105
0ad46fd7 271062009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
27107
27108 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27109 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27110
d3d30ea0
VS
271112009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27112
27113 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27114 (GRUB_MOD_INIT(memrw)): Update help line.
27115
a34f5c70
VS
271162009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27117
27118 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27119 Use grub_extcmd_t. All users updated.
27120 (options): New variable.
27121 (grub_cmd_read): Restructure for readability. Support "-v" option.
27122 (grub_cmd_write): Restructure for readability.
27123
0ad46fd7 271242009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
27125
27126 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27127
0ad46fd7 271282009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
27129
27130 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27131 with the actual contents of the correspondending make variable.
27132 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27133 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27134 specifying `*.lst' and `efiemu??.o'
27135
0ad46fd7 271362009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
27137
27138 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27139 after function name.
27140 Noticed by Rene Engelhard <rene@debian.org>.
27141
dc77a799
VS
271422009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27143
27144 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27145 (options): New variable.
27146 (iospace): Likewise.
27147 (grub_lspci_iter): List IO spaces if "-i" was given.
27148 (grub_cmd_lspci): Parse options.
27149 (GRUB_MOD_INIT(lspci)): Use extcmd.
27150 (GRUB_MOD_FINI(lspci)): Likewise.
27151
0ad46fd7 271522009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
27153
27154 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27155 `function' keyword.
27156 Patch by Tony Mancill <tmancill@debian.org>.
27157
b5d5993b
VS
271582009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27159
27160 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27161 (grub_uhci_portstatus): Likewise.
27162 (grub_uhci_portstatus): Add necessary delay.
11d18281 27163 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 27164
941903f2 271652009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 27166
941903f2 27167 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27168 (GRUB_MOD_INIT): Likewise.
27169 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 27170 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27171 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 27172 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27173 (enable_rom_area): Likewise.
27174 (GRUB_MOD_INIT): Likewise.
27175 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27176 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27177 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27178 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27179 * commands/hexdump.c (options): Likewise.
27180 * commands/i386/cpuid.c (options): Likewise.
27181 (GRUB_MOD_INIT): Likewise.
27182 * commands/i386/pc/drivemap.c (options): Likewise.
27183 (GRUB_MOD_INIT): Likewise.
27184 * commands/i386/pc/halt (options): Likewise.
27185 (GRUB_MOD_INIT): Likewise.
27186 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27187 * commands/i386/pc/pxecmd.c (options): Likewise.
27188 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27189 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27190 * commands/keystatus.c (options): Likewise.
27191 (GRUB_MOD_INIT): Likewise.
27192 * commands/loadenv.c (options): Likewise.
27193 * commands/ls.c (options): Likewise.
27194 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27195 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27196 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27197 * commands/parttool.c (helpmsg): Likewise.
27198 * commands/probe.c (options): Likewise.
27199 * commands/read.c (GRUB_MOD_INIT): Likewise.
27200 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27201 * commands/search.c (options): Likewise.
27202 * commands/sleep.c (options): Likewise.
27203 * commands/test.c (GRUB_MOD_INIT): Likewise.
27204 * commands/true.c (GRUB_MOD_INIT): Likewise.
27205 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27206 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27207 * lib/arg.c (help_options): Likewise.
e9bbb4e7 27208 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27209 `$(XGETTEXT)'.
98a50553 27210 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 27211
0ad46fd7 272122009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 27213
ef3c2c3a 27214 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
27215 instead of specifying them explicit.
27216
7922f68b
RM
272172009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27218
27219 * NEWS: Add grub-probe support for GNU/Hurd.
27220
537ce47f
RM
272212009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27222
27223 * NEWS: gettext was added after 1.97.
27224
9b214e3a
RM
272252009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27226
27227 * util/mkisofs/msdos_partition.h: New file (based on
27228 include/grub/msdos_partition.h).
27229 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27230 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27231 (ld_options, main): Recognize --protective-msdos-label.
27232 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27233 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27234 (padblock_write): If `use_protective_msdos_label' is set, patch a
27235 protective DOS-style label in the output image.
27236
27237 * util/grub-mkrescue.in: Use --protective-msdos-label.
27238
e9309813
RM
272392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27240
27241 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27242 boot.
27243
0ae56929
RM
272442009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27245
27246 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27247 variables.
27248 (ld_options, main): Recognize `--embedded-boot'.
27249 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27250 declarations.
27251 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27252 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27253 (padblock_write): Likewise. Rewrite to support embedded boot image.
27254
27255 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27256 for BIOS-based disk boot instead of only ElTorito.
27257
b15937b1
RM
272582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27259
27260 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27261 build (not needed for bootstrap).
27262
52cc3ce0
RM
272632009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27264
27265 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27266 from i386-pc build (not needed for bootstrap).
27267 Rewrite a pair of strings.
27268
36f5ff04
RM
272692009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27270
27271 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27272
973c6c85 272732009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
27274
27275 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27276
05d21547
AB
272772009-12-21 Andreas Born <futur.andy@googlemail.com>
27278
27279 * kern/env.c (grub_env_context_open): Mark exported variable for
27280 reexport.
27281
0175d51f
AB
272822009-12-21 Andreas Born <futur.andy@googlemail.com>
27283
27284 * kern/env.c (grub_env_export): Create nonexistent variables before
27285 exporting.
27286
7f39d92f 272872009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 27288
7f39d92f 27289 * include/grub/auth.h: Include `<grub/i18n.h>'.
27290 (GRUB_GET_PASSWORD): Gettextizze string.
27291 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27292 menu_text.c.
27293 (grub_utf8_to_ucs4_alloc): Fix indentation.
27294 (grub_print_ucs4): Likewise.
27295 (grub_getstringwidth): Likewise.
27296 (print_message_indented): New declaration.
27297 * normal/auth.c: Include `<grub/i18n.h>'.
27298 (grub_auth_check_authentication): Gettexttize string.
27299 * normal/cmdline.c: Include `<grub/i18n.h>'.
27300 (grub_cmdline_get): Gettextizze.
27301 * normal/color.c: Include `<grub/i18n.h>'.
27302 (grub_parse_color_name_pair): Gettexttize strings.
27303 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
27304 string (use `print_message_indented').
27305 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
27306 `include/grub/normal.h'.
27307 (print_message_indented): Renamed to ...
27308 (grub_print_message_indented): ... this. Remove `static' qualifer (now
27309 used in normal/main.c).
27310 (print_message): Use `grub_print_message_indented' instead of
27311 `print_message_indented'.
27312 (print_timeout): Likewise.
27313 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
27314 (grub_normal_print_device_info): Gettexttize strings.
27315 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
27316
3041d898
VS
273172009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27318
27319 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
27320 of arguments. Return number of tokens and not arguments. All users
27321 updated.
27322
de15bf8e
VS
273232009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27324
27325 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
27326 non-MSDOS paritions.
27327
e0a6ca52
VS
273282009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
27329
27330 * include/grub/types.h (UNUSED): Removed since it conflicts with
27331 NetBSD headers. All users changed to direct __attribute__ ((unused)).
27332 Reported by Grégoire Sutre.
27333
b99518d1 273342009-12-19 Carles Pina i Estany <carles@pina.cat>
27335
27336 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
27337 (grub_print_ucs4_alloc): Likewise.
27338 (grub_getstringwidth): Likewise.
27339 * normal/main.c (grub_normal_init_page): Gettextize version string.
27340 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
27341 (getstringwidth): Renamed to ...
27342 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
27343 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
27344 (grub_print_ucs4): Remove `static' qualifer (now used in
27345 normal/main.c).
27346 * po/POTFILES: Add normal/main.c.
27347
bfd5e52b 273482009-12-19 Carles Pina i Estany <carles@pina.cat>
27349
27350 * normal/menu_text.c (STANDARD_MARGIN): New macro.
27351 (print_message_indented): Add `margin_left' and `margin_right'
27352 parameters.
27353 (print_message): Update `print_message_indented' calls. Adds '\n' to the
27354 strings.
27355 (print_timeout): Use `print_message_indented' to print the message.
27356 Deletes `second_stage' parameter.
27357 (run_menu): Update `print_timeout' calls.
27358
5a1ad2b9
VS
273592009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27360
27361 Fix console palette on OpenFirmware.
27362
27363 * term/ieee1275/ofconsole.c (MAX): Removed.
27364 (colors): Redone based on VGA palette.
27365 (grub_ofconsole_setcolor): Discard brightness bit since only 8
27366 colors are supported.
27367 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
27368
b045f00a
VS
273692009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27370
27371 Fix potential EfiEmu double prepare.
27372
27373 * efiemu/main.c (prepared): New variable
27374 (grub_efiemu_unload): Set prepare to '0'.
27375 (grub_efiemu_prepare): Return if already prepared. Set prepared.
27376
27377 set_virtual_address_map support.
27378
27379 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
27380 prototype.
27381 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
27382 prototype.
27383 (grub_efiemu_crc32): Likewise.
27384 (grub_efiemu_crc64): Likewise.
27385 (grub_efiemu_set_virtual_address_map): Likewise.
27386 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
27387 New definition.
27388 (grub_autoefi_set_virtual_address_map): Likewise.
27389 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
27390 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
27391 Restructure flow to accomodate it.
27392 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
27393 (grub_efiemu_crc): Recompute CRC32.
27394 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
27395 (efiemu_ptv_relocated): ... this. Made global. All users updated.
27396 * efiemu/symbols.c (relocated_handle): New variable.
27397 (grub_efiemu_free_syms): Free relocated_handle.
27398 (grub_efiemu_alloc_syms): Allocate relocated_handle.
27399 (grub_efiemu_write_sym_markers): New function.
27400 (grub_efiemu_set_virtual_address_map): Likewise.
27401
27402 Newer XNU parameters.
27403
27404 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
27405 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
27406 (grub_xnu_fill_devicetree): New prototype.
27407 (grub_xnu_heap_real_start): New variable.
27408 * loader/xnu.c (get_name_ptr): New function.
27409 (grub_xnu_load_driver): Fill namelen and name.
27410
27411 64-bit xnu support.
27412
27413 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
27414 and 'loader/macho64.c'.
27415 * conf/i386-pc.rmk: Likewise.
27416 * conf/x86_64-efi.rmk: Likewise.
27417 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
27418 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
27419 * include/grub/macho.h (grub_macho_segment64): New structure.
27420 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
27421 (grub_macho_size32): ... to this.
27422 (grub_macho32_get_entry_point): Renamed from ...
27423 (grub_macho_get_entry_point32): ... to this.
27424 (grub_macho_contains_macho64): New prototype.
27425 (grub_macho_size64): Likewise.
27426 (grub_macho_get_entry_point64): Likewise.
27427 (grub_macho32_load): Renamed from ...
27428 (grub_macho_load32): ... to this.
27429 (grub_macho32_filesize): Renamed from ...
27430 (grub_macho_filesize32): ... to this.
27431 (grub_macho32_readfile): Renamed from ...
27432 (grub_macho_readfile32): ... to this.
27433 (grub_macho_filesize64): New prototype.
27434 (grub_macho_readfile64): Likewise.
27435 (grub_macho_parse32): Likewise.
27436 (grub_macho_parse64): Likewise.
27437 * loader/macho.c: Split into ...
27438 * loader/machoXX.c: ... and this. Replace 32 with XX.
27439 * loader/macho32.c: New file.
27440 * loader/macho64.c: Likewise.
27441 * loader/xnu.c (grub_xnu_is_64bit): New variable.
27442 (grub_cmd_xnu_kernel): Make 32-bit only.
27443 (grub_cmd_xnu_kernel64): New function.
27444 (grub_xnu_load_driver): Support Mach-O 64.
27445 (grub_cmd_xnu_mkext): Likewise.
27446 * util/grub.d/30_os-prober.in (osx_entry): New function.
27447 Generate entries for 64-bit boot too.
27448
27449 Eliminate ad-hoc tree format in XNU and EfiEmu.
27450
27451 * efiemu/main.c (grub_efiemu_prepare): Update comment.
27452 * efiemu/pnvram.c: Rewritten to use environment variables.
27453 All users updated.
27454
27455 Inline utf16_to_utf8.
27456
27457 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
27458 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
27459 All users updated.
27460 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
27461
27462 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
27463 * commands/usbtest.c (grub_usb_get_string): ... move here.
27464 (usb_print_str): Fix error handling.
27465 * include/grub/usb.h (grub_usb_get_string): Remove.
27466
27467 UTF-8 to UTF-16 transformation.
27468
27469 * conf/common.rmk (pkglib_MODULES): Add charset.mod
27470 (charset_mod_SOURCES): New variable.
27471 (charset_mod_CFLAGS): Likewise.
27472 (charset_mod_LDFLAGS): Likewise.
27473 * include/grub/utf.h: New file.
27474 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
27475
27476 Support for device properties.
27477
27478 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
27479 (grub_xnu_devprop_device_header): Likewise.
27480 (grub_xnu_devprop_device_descriptor): Likewise.
27481 (grub_xnu_devprop_add_device): New prototype.
27482 (grub_xnu_devprop_remove_device): Likewise.
27483 (grub_xnu_devprop_remove_property): Likewise.
27484 (grub_xnu_devprop_add_property_utf8): Likewise.
27485 (grub_xnu_devprop_add_property_utf16): Likewise.
27486 (grub_cpu_xnu_init): Likewise.
27487 (grub_cpu_xnu_fini): Likewise.
27488 (grub_cpu_xnu_unload): Likewise.
27489 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
27490 (property_descriptor): Likewise.
27491 (devices): New variable.
27492 (grub_xnu_devprop_remove_property): New function.
27493 (grub_xnu_devprop_add_device): Likewise.
27494 (grub_xnu_devprop_remove_device): Likewise.
27495 (grub_xnu_devprop_add_property): Likewise.
27496 (grub_xnu_devprop_add_property_utf8): Likewise.
27497 (grub_xnu_devprop_add_property_utf16): Likewise.
27498 (hextoval): Likewise.
27499 (grub_cpu_xnu_fill_devprop): Likewise.
27500 (grub_cmd_devprop_load): Likewise.
27501 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
27502 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
27503 (cmd_devprop_load): New variable.
27504 (grub_cpu_xnu_init): New function.
27505 (grub_cpu_xnu_fini): Likewise.
27506 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
27507 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
27508 (grub_cmd_xnu_devtree): Likewise.
27509 (hextoval): New function.
27510 (unescape): Likewise.
27511 (grub_xnu_fill_devicetree): Likewise.
27512
27513 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
27514 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
27515
0945f181
VS
275162009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27517
27518 Workaround for broken ATI VBE.
27519
27520 * video/i386/pc/vbe.c (last_set_mode): New variable.
27521 (grub_vbe_set_video_mode): Set 'last_set_mode'.
27522 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
27523 (grub_video_vbe_setup): Don't check for reserved flag.
27524
0ad46fd7 275252009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
27526
27527 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
27528 the `find' command.
27529
c179ebe4
VS
275302009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
27531
27532 UUID support for HFS.
27533
27534 * fs/hfs.c (grub_hfs_uuid): New function.
27535 (grub_hfs_fs): New value .uuid.
27536 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
27537
0ad46fd7 275382009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
27539
27540 Fix a segfault with parsing unknown long options.
27541
27542 * util/grub-mkrelpath.c (options): Zero terminate it.
27543
c4a3e41a
CPE
275442009-12-13 Carles Pina i Estany <carles@pina.cat>
27545
27546 * include/grub/misc.h (grub_puts): New declaration.
27547 (grub_puts_): Likewise.
a22008a6 27548 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
27549 (grub_puts_): Likewise.
27550
2e8a7602
RM
275512009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27552
27553 * util/grub-probe.c (probe): Improve error message.
27554
b50b77b9
RM
275552009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27556
27557 * loader/i386/multiboot_elfxx.c
27558 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
27559 initialization.
27560
275612009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27562
27563 Relocator framework
27564
27565 * loader/i386/xnu_helper.S: Removed. All users updated.
27566 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
27567 (relocator_mod_SOURCES): New variable.
27568 (relocator_mod_CFLAGS): Likewise.
27569 (relocator_mod_LDFLAGS): Likewise.
27570 (relocator_mod_ASFLAGS): Likewise.
27571 * conf/x86_64.rmk: Likewise.
27572 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
27573 (grub_multiboot_payload_entry_offset): Likewise.
27574 (grub_multiboot_forward_relocator): Likewise.
27575 (grub_multiboot_forward_relocator_end): Likewise.
27576 (grub_multiboot_backward_relocator): Likewise.
27577 (grub_multiboot_backward_relocator_end): Likewise.
27578 (grub_multiboot_payload_eip): New variable.
27579 (grub_multiboot_payload_orig): Likewise.
27580 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
27581 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
27582 * include/grub/i386/memory.h
27583 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
27584 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
27585 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
27586 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
27587 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
27588 * include/grub/i386/relocator.h: New file.
27589 * include/grub/x86_64/relocator.h: Likewise.
27590 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
27591 (XNU_RELOCATOR): New macro.
27592 (grub_xnu_launcher_start): Remove.
27593 (grub_xnu_launcher_end): Likewise.
27594 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
27595 (grub_xnu_heap_real_start): Remove.
27596 (grub_xnu_heap_start): Change to void *. All users updated.
27597 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
27598 * lib/i386/relocator.c: New file.
27599 * lib/i386/relocator_asm.S: Likewise.
27600 * lib/i386/relocator_backward.S: Likewise.
27601 * lib/mips/relocator.c: Likewise.
27602 * lib/mips/relocator_asm.S: Likewise.
27603 * lib/relocator.c: Likewise.
27604 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
27605 (entry): Removed.
27606 (playground): Likewise.
27607 (grub_multiboot_payload_orig): New variable.
27608 (grub_multiboot_payload_dest): Likewise.
27609 (grub_multiboot_payload_size): Likewise.
27610 (grub_multiboot_payload_eip): Likewise.
27611 (grub_multiboot_payload_esp): Likewise.
27612 (grub_multiboot_boot): Use grub_relocator32_boot.
27613 (grub_multiboot_unload): Free relocators.
27614 (grub_multiboot): Setup stack. Use relocators.
27615 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
27616 (grub_multiboot_load_elfXX): Use relocators.
27617 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
27618 (grub_multiboot_payload_size): Likewise.
27619 (grub_multiboot_payload_dest): Likewise.
27620 (grub_multiboot_payload_entry_offset): Likewise.
27621 (grub_multiboot_forward_relocator): Likewise.
27622 (grub_multiboot_backward_relocator): Likewise.
27623 (grub_multiboot_real_boot): Likewise.
27624 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
27625 (grub_xnu_entry_point): Likewise.
27626 (grub_xnu_arg1): Likewise.
27627 (grub_xnu_stack): Likewise.
27628 (grub_xnu_launch): Removed.
27629 (grub_xnu_boot_resume): New function.
27630 (grub_xnu_boot): Use relocators.
27631 * loader/i386/xnu_helper.S: Removed.
27632 * loader/xnu.c (grub_xnu_heap_start): New variable.
27633 (grub_xnu_heap_size): Likewise.
27634 (grub_xnu_heap_malloc): Use relocators.
27635 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
27636
29eb90c6
VS
276372009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27638
27639 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
27640 anything.
27641
31027430
CPE
276422009-12-13 Carles Pina i Estany <carles@pina.cat>
27643
27644 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
27645 GRUB_ERR_NONE before calling grub_env_set.
27646
dc0c71d9
RM
276472009-12-12 Robert Millan <rmh@aybabtu.com>
27648
27649 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
27650 * genmk.rb (video): New variable.
27651 (CLEANFILES, VIDEOFILES): Add #{video}.
27652 (#{video}): New target rule.
27653 * genvideolist.sh: New file.
27654 * Makefile.in (pkglib_DATA): Add video.lst.
27655 (video.lst): New target rule.
27656 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
27657 `video.lst'.
27658 * util/grub.d/30_os-prober.in: Replace `vbe' with
27659 ${GRUB_VIDEO_BACKEND}.
27660
2a4bfcf0
RM
276612009-12-11 Robert Millan <rmh.grub@aybabtu.com>
27662
27663 * THANKS: Add David Miller.
27664
2a3aa4d5
RM
276652009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
27666
27667 libpciaccess support.
27668
27669 * Makefile.in (LIBPCIACCESS): New variable.
27670 (enable_grub_emu_pci): Likewise.
27671 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
27672 util/pci.c and commands/lspci.c.
27673 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
27674 * configure.ac (grub-emu-pci): New option.
27675 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
27676 (grub_pci_device_unmap_range): Likewise.
27677 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
27678 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
27679 (grub_pci_address_t) [!GRUB_UTIL]: New type.
27680 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
27681 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
27682 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
27683 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
27684 * include/grub/pciutils.h: New file.
27685 * util/pci.c: Likewise.
27686
0ad46fd7 276872009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
27688
27689 * util/misc.c: Don't include <errno.h> twice.
27690
0ad46fd7 276912009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
27692
27693 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
27694 name in an error message.
27695 (grub_biosdisk_rw): Likewise.
27696
2e59983c
VS
276972009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27698
27699 Eliminate NTFS 4Gib barrier.
27700
27701 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
27702 (read_run_data): Likewise.
27703 (grub_ntfs_read_run_list): Likewise.
27704 (grub_ntfs_read_block): Likewise.
27705 (grub_ntfs_iterate_dir): Likewise.
27706 (read_mft): Likewise.
27707 (read_data): Likewise.
27708 Use COM_LOG_LEN.
27709 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
27710 to avoid 64-bit division
27711 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
27712 (grub_ntfs_rlst): Use grub_disk_addr_t.
27713
71ee178a
VS
277142009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27715
27716 Eliminate grub-fstest 4Gib barrier.
27717
27718 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
27719 (read_file): Fix error reporting.
27720
2520d4b8
VS
277212009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27722
27723 Eliminate hexdump 4Gib barrier.
27724
27725 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
27726 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
27727
e1f27065
VS
277282009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27729
27730 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
27731 Fixes amarsh bug.
27732
1a0f7f45
RM
277332009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
27734
27735 Remove miscellaneous files in distclean target.
27736
27737 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
27738
c631d9fb
CW
277392009-12-09 Colin Watson <cjwatson@ubuntu.com>
27740
27741 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
27742 if they're already set. This resolves the conflict between my
27743 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
27744 fixing the --grub-probe option again.
27745 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
27746 change on 2009-10-06, so that we now once again source
27747 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27748
7c7b6106
RM
277492009-12-08 Robert Millan <rmh.grub@aybabtu.com>
27750
27751 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
27752 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
27753 `util/devicemap.c'.
27754
e3069ec1
CPE
277552009-12-08 Carles Pina i Estany <carles@pina.cat>
27756
27757 * include/grub/misc.h (grub_printf_): New declaration.
27758 * kern/misc.c (grub_printf_): New definition.
27759 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
27760 instead of `grub_printf' and `_'.
27761 * normal/menu_entry.c (store_completion): Likewise.
27762 (run): Likewise.
27763 (grub_menu_entry_run): Likewise.
27764 * normal/menu_text.c (grub_wait_after_message): Likewise.
27765 (notify_booting): Likewise.
27766 (notify_fallback): Likewise.
27767 (notify_execution_failure): Likewise.
27768
d6ceebf1
CW
277692009-12-07 Colin Watson <cjwatson@ubuntu.com>
27770
27771 * configure.ac: Check for vasprintf.
27772 * util/misc.c (asprintf): Move allocation from here ...
27773 (vasprintf): ... to here. New function.
27774 (xasprintf): New function.
27775 * include/grub/util/misc.h (vasprintf, xasprintf): Add
27776 prototypes.
27777 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
27778 * util/grub-mkfont.c (write_font): Likewise.
27779 * util/grub-probe.c (probe): Likewise.
27780 * util/hostdisk.c (make_device_name): Likewise.
27781
de6daa8b
DM
277822009-12-06 David S. Miller <davem@sunset.davemloft.net>
27783
27784 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
27785 anything even prefixed with 'cdrom' as a cdrom.
27786
0ad46fd7 277872009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
27788
27789 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
27790 mount points.
27791
98d3dc02
CPE
277922009-12-05 Carles Pina i Estany <carles@pina.cat>
27793
27794 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
27795 grub_gettext_msg_list.
27796 (grub_gettext_gettranslation_from_position): Return const char *
27797 and not char *.
a2c1332b 27798 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
27799 returns from the list if existing there.
27800 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
27801 (grub_gettext_delete_list): Delete the list.
27802 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
27803 lang environment variable is changed.
27804 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
27805
b283f108
VS
278062009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27807
27808 Rename kernel.mod to kernel.img.
27809
27810 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
27811 (kernel_mod_EXPORTS): Rename to ...
27812 (kernel_img_EXPORTS): ... this.
27813 (kernel_mod_SOURCES): Rename to ...
27814 (kernel_img_SOURCES): ... this.
27815 (kernel_mod_HEADERS): Rename to ...
27816 (kernel_img_HEADERS): ... this. All users updated.
27817 (kernel_mod_CFLAGS): Rename to ...
27818 (kernel_img_CFLAGS): ... this.
27819 (kernel_mod_ASFLAGS): Rename to ...
27820 (kernel_img_ASFLAGS): ... this.
27821 (kernel_mod_LDFLAGS): Rename to ...
27822 (kernel_img_LDFLAGS): ... this.
27823 * conf/x86_64-efi.rmk: Likewise.
27824 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
27825 (read_kernel_image): ... this. All users updated.
27826 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27827
69055f8a
CPE
278282009-12-05 Carles Pina i Estany <carles@pina.cat>
27829
27830 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27831 (print_spaces): New function.
27832 (grub_print_ucs4): New function.
27833 (getstringwidth): New function.
27834 (print_message_indented): New function.
27835 (print_message): Gettexttize strings using print_message_indented.
27836 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27837 width.
27838 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27839 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27840 Gettextize.
27841 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27842 string.
27843 (run): Likewise.
27844 (grub_menu_entry_run): Likewise.
27845 * PO/POTFILES: Add normal/menu_entry.c.
27846
f616f51c
VS
278472009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27848
27849 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27850
57bbe3be
CPE
278512009-12-05 Carles Pina i Estany <carles@pina.cat>
27852
27853 * util/grub-install.in: Install gettext .mo files.
27854 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27855
013d67a1
CPE
278562009-12-05 Carles Pina i Estany <carles@pina.cat>
27857
27858 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27859 grub_dprintf.
27860
fb954db0
RM
278612009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27862
27863 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
27864 non-firmware-dependant one in realmode.S takes precedence.
27865
6b8474f8
RM
278662009-12-04 Robert Millan <rmh.grub@aybabtu.com>
27867
27868 * commands/halt.c: Replace misc arch-specific headers with
27869 `<grub/misc.h>'.
27870 * commands/reboot.c: Likewise.
27871 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
27872 `<grub/misc.h>'.
27873 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
27874 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
27875 (kernel_img_SOURCES): ... to here.
27876
27877 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27878 * include/grub/i386/pc/init.h: Likewise.
27879 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27880 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27881
27882 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27883
27884 * include/grub/i386/halt.h: Remove.
27885 * include/grub/i386/reboot.h: Likewise.
27886
27887 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27888
4b2e6ca2
DM
278892009-12-03 David S. Miller <davem@sunset.davemloft.net>
27890
27891 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27892 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27893 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27894 "progname.h"
27895 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27896 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27897 (usage): Add missing comma in printf.
27898
5239348f
RM
278992009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27900
27901 Use the same reboot approach on i386 coreboot and qemu as we do on
27902 BIOS.
27903
27904 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27905 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27906 * kern/i386/reboot.c: Remove.
27907 * include/grub/i386/reboot.h (grub_reboot): Export function.
27908 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27909 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27910 0xf000:0xfff0 instead of 0xffff:0x0000.
27911 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27912 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27913
ef34cbd4
RM
279142009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27915
27916 Fix $srcdir != $objdir build.
27917
27918 * Makefile.in (po/%.po): Rewrite as ...
27919 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27920
dc9837ea
ST
279212009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27922
27923 Fix GNU/Hurd grub-install crash.
27924 * util/grub-probe.c (probe): Try to access `path' only when it is not
27925 NULL.
27926
2f857f98
VS
279272009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27928
27929 Correct module naming.
27930
27931 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27932 (GRUB_MOD_INIT(efi_uga)): ... to this
27933 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27934 (GRUB_MOD_FINI(efi_uga)): ... to this
27935 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27936 (GRUB_MOD_INIT(efi_gop)): ... to this
27937 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27938 (GRUB_MOD_FINI(efi_gop)): ... to this
27939
c5448046
RM
279402009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27941
27942 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27943 translatable.
27944 (usage): Translate `arg' strings using gettext().
27945 Thanks to Jordi Mallach for the suggestion.
27946
c85184ad
VS
279472009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27948
27949 GOP support. Based on patch from Bean
27950 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27951
27952 * video/efi_gop.c: New file.
27953 * include/grub/efi/graphics_output.h: Likewise.
27954 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27955 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27956 variables.
27957 * conf/x86_64-efi.rmk: Likewise.
27958
8a4c48d8
VS
279592009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27960
27961 Rename efi_fb to efi_uga.
27962
27963 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27964 'efi_uga.mod'.
27965 (efi_fb_mod_SOURCES): Rename this ...
27966 (efi_uga_mod_SOURCES): ... to this.
27967 (efi_fb_mod_CFLAGS): Rename this ...
27968 (efi_uga_mod_CFLAGS): ... to this.
27969 (efi_fb_mod_LDFLAGS): Rename this ...
27970 (efi_uga_mod_LDFLAGS): ... to this.
27971 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27972 'efi_uga.mod'.
27973 (efi_fb_mod_SOURCES): Rename this ...
27974 (efi_uga_mod_SOURCES): ... to this.
27975 (efi_fb_mod_CFLAGS): Rename this ...
27976 (efi_uga_mod_CFLAGS): ... to this.
27977 (efi_fb_mod_LDFLAGS): Rename this ...
27978 (efi_uga_mod_LDFLAGS): ... to this.
27979 * video/efi_fb.c: Move this ...
27980 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27981
fb6c1a7b
RM
279822009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27983
27984 * po/README: New file. Explain our PO file workflow.
27985
3bc7896c
RM
279862009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27987
27988 * po/ChangeLog: Remove. Move relevant entries back to ...
27989 * ChangeLog: ... here.
27990 * po/ca.po: Remove (now handled by TLP).
27991 * po/id.po: Likewise.
27992 * po/zh_CN.po: Likewise.
27993 * Makefile.in (LINGUAS): Initialize in a way that supports
27994 empty set.
27995
9ed4841d
RM
279962009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27997
27998 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27999 reliing on po/LINGUAS.
28000 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
28001 (po/%.po): ... this.
28002
0ad46fd7 280032009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
28004
28005 * util/i386/efi/grub-mkimage.c: Include "progname.h".
28006 (main): Use `program_name' instead of nonexistent `progname'.
28007
e30dd392
FZ
280082009-11-26 Felix Zielcke <fzielcke@z-51.de>
28009
28010 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28011 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
28012
7656de4f
RM
280132009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28014
28015 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
28016 commit.
28017 * conf/i386-efi.rmk: Likewise.
28018 * conf/i386-ieee1275.rmk: Likewise.
28019 * conf/powerpc-ieee1275.rmk: Likewise.
28020 * conf/sparc64-ieee1275.rmk: Likewise.
28021 * conf/x86_64-efi.rmk: Likewise.
28022
db77c4d4
FZ
280232009-11-26 Felix Zielcke <fzielcke@z-51.de>
28024
28025 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28026
a755bb04
FZ
280272009-11-26 Felix Zielcke <fzielcke@z-51.de>
28028
28029 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28030
8a4c07fd
RM
280312009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28032
28033 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28034 (grub_mkdevicemap_SOURCES): New variable.
28035 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28036 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28037 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28038 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28039 (grub_mkdevicemap_SOURCES): Remove.
28040 * conf/i386-efi.rmk: Likewise.
28041 * conf/i386-ieee1275.rmk: Likewise.
28042 * conf/i386-pc.rmk: Likewise.
28043 * conf/powerpc-ieee1275.rmk: Likewise.
28044 * conf/sparc64-ieee1275.rmk: Likewise.
28045 * conf/x86_64-efi.rmk: Likewise.
28046 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28047 (usage): Fix strings to use `program_name'.
28048 (main): Initialize gettext.
28049 * util/grub-editenv.c: Likewise.
28050 * util/grub-emu.c: Likewise.
28051 * util/grub-fstest.c: Likewise.
28052 * util/grub-mkdevicemap.c: Likewise.
28053 * util/grub-mkfont.c: Likewise.
28054 * util/grub-mkrelpath.c: Likewise.
28055 * util/grub-pe2elf.c: Likewise.
28056 * util/grub-probe.c: Likewise.
28057 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28058 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28059 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28060
28061 * util/misc.c: Include `"progname.h"'.
28062 (progname): Remove variable.
28063 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28064
6f61ed55
FZ
280652009-11-25 Felix Zielcke <fzielcke@z-51.de>
28066
28067 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28068 printf and print a newline after the menuentry header line.
28069 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28070
f022876b
FZ
280712009-11-25 Felix Zielcke <fzielcke@z-51.de>
28072
28073 autoconf >= 2.60 support $(localedir).
28074
28075 * INSTALL: Note that autoconf 2.60 is required.
28076 * configure.ac (AC_PREREQ): Bump to 2.60.
28077 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28078 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28079
6717926e
YB
280802009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28081
28082 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28083 aclocal is run.
28084
08806a54
RM
280852009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28086
28087 * normal/main.c (grub_normal_read_line): Fix off-by-one
28088 buffer overflow.
28089
13b33fba
RM
280902009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28091
28092 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28093 "parser.grub" in grub_command_execute() call.
28094
4a8572e9
CPE
280952009-11-24 Carles Pina i Estany <carles@pina.cat>
28096
28097 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28098 * conf/i386-efi.rmk: Likewise.
28099 * conf/i386-ieee1275.rmk: Likewise.
28100 * conf/i386-pc.rmk: Likewise.
28101 * conf/powerpc-ieee1275.rmk: Likewise.
28102 * conf/sparc64-ieee1275.rmk: Likewise.
28103 * conf/x86_64-efi.rmk: Likewise.
28104 * gettext/gettex.c: Include <grub/i18n.h>.
28105 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28106 here ...
28107 * include/grub/i18n.h: ... to here
28108 * include/grub/i18n.h: ... to here.
28109 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 28110 (grub_gettext_dummy): Move above user.
4a8572e9 28111
bee48093
FZ
281122009-11-24 Felix Zielcke <fzielcke@z-51.de>
28113
28114 * util/Makefile.in (install-local): Convert a `for' into a normal
28115 shell expansion.
28116
a031e91c
RM
281172009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28118
28119 * autogen.sh: Add automake call.
28120 * config.guess: Remove.
28121 * config.sub: Likewise.
28122 * install-sh: Likewise.
28123
26bec39d
FZ
281242009-11-24 Felix Zielcke <fzielcke@z-51.de>
28125
28126 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28127
8e2532fd
FZ
281282009-11-24 Felix Zielcke <fzielcke@z-51.de>
28129
28130 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28131 function to a normal shell `for'.
28132
fefa1b7d
FZ
281332009-11-24 Felix Zielcke <fzielcke@z-51.de>
28134
28135 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28136
4501250b
FZ
281372009-11-24 Felix Zielcke <fzielcke@z-51.de>
28138
28139 * util/grub-mkrelpath.c: New file.
28140 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28141 (grub_mkrelpath_SOURCES): New variable.
28142 * include/grub/util/misc.h: New function prototype.
28143 * util/misc.c (make_system_path_relative_to_its_root): New function.
28144
28145 * util/grub-mkconfig_lib.in (bindir): New variable.
28146 (grub_mkrelpath): Likewise.
28147 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28148
28149 * util/probe.c (probe): Make the file path relative to its root.
28150 Change a info message to use the GRUB path. Enable again the
28151 check if we can read the file with GRUB facilities.
28152
28153 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28154 to its root.
28155
11d9778b
FZ
281562009-11-24 Felix Zielcke <fzielcke@z-51.de>
28157
28158 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28159 platform.
28160
4465287d
FZ
281612009-11-24 Felix Zielcke <fzielcke@z-51.de>
28162
28163 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28164 strncmp().
28165
62b47f22
FZ
281662009-11-24 Felix Zielcke <fzielcke@z-51.de>
28167
28168 * util/getroot.c (grub_util_is_dmraid): New function.
28169 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28170 devices as normal ones, not as LVM.
28171
1eafb9b9 281722009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
28173
28174 * conf/common.rmk: Add grub-gettext_lib target and updates
28175 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28176 LDFLAGS.
28177 * gettext/gettext.c: New file. (Reads mo files).
28178 * include/grub/file.h (grub_file_pread): New prototype.
28179 * include/grub/i18n.h (_): New prototype.
28180 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28181 prototypes.
28182 * kern/misc.c (grub_gettext_dummy): New function.
28183 * normal/menu_text.c: Include <grub/i18n.h>.
28184 * normal/menu_text.c (print_timeout): Gettexttize string.
28185 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
28186 * po/POTFILES: Add `normal/menu_text.c'.
28187 * po/ca.po: Add new translations.
c3ea6bd4
CPE
28188 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28189 gettext module and defines locale_dir and lang in grub.cfg.
28190 * NEWS: Add gettext support.
28191
0fdb2568
RM
281922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28193
28194 * util/hostdisk.c: Include `<grub/i18n.h>'.
28195 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28196 (make_device_name): Rewrite using asprintf.
28197 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28198 (find_system_device): If a device is not found, generate one just
28199 by reusing the OS path name.
28200 (read_device_map): Make it permissible for device.map not to exist.
28201
f515aa62
RM
282022009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28203
28204 * script/sh/execute.c: Move from here ...
28205 * script/execute.c: ... to here. Update all users.
28206 * script/sh/function.c: Move from here ...
28207 * script/function.c: ... to here. Update all users.
28208 * script/sh/lexer.c: Move from here ...
28209 * script/lexer.c: ... to here. Update all users.
28210 * script/sh/main.c: Move from here ...
28211 * script/main.c: ... to here. Update all users.
28212 * script/sh/parser.y: Move from here ...
28213 * script/parser.y: ... to here. Update all users.
28214 * script/sh/script.c: Move from here ...
28215 * script/script.c: ... to here. Update all users.
28216
f84b481b
RM
282172009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28218
28219 * configure.ac: Detect all `emu' platforms. Define
28220 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28221 --enable-grub-emu logic. Disable include/grub/machine
28222 symlink on `emu' platforms.
28223
28224 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28225 * gensymlist.sh.in: Likewise.
28226
28227 * include/grub/i386/coreboot/machine.h: Remove file.
28228 * include/grub/i386/efi/machine.h: Likewise.
28229 * include/grub/i386/ieee1275/machine.h: Likewise.
28230 * include/grub/i386/pc/machine.h: Likewise.
28231 * include/grub/i386/qemu/machine.h: Likewise.
28232 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28233 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28234 * include/grub/x86_64/efi/machine.h: Likewise.
28235
28236 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28237 * commands/halt.c: Likewise.
28238 * commands/reboot.c: Likewise.
28239 * include/grub/autoefi.h: Likewise.
28240 * include/grub/i386/at_keyboard.h: Likewise.
28241 * include/grub/i386/kernel.h: Likewise.
28242 * include/grub/i386/loader.h: Likewise.
28243 * include/grub/i386/pc/memory.h: Likewise.
28244 * kern/dl.c: Likewise.
28245 * kern/i386/coreboot/init.c: Likewise.
28246 * loader/i386/bsd.c: Likewise.
28247 * loader/i386/linux.c: Likewise.
28248 * loader/multiboot_loader.c: Likewise.
28249 * term/i386/pc/serial.c: Likewise.
28250 * term/usb_keyboard.c: Likewise.
28251
28252 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28253 `<grub/machine/machine.h>'
28254 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28255 * util/misc.c: Remove `<grub/machine/machine.h>' and
28256 `<grub/machine/time.h>'.
28257
28258 * Makefile.in (enable_grub_emu): Remove variable.
28259 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28260
28261 * conf/any-emu.rmk: New file.
28262 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28263 (grub_emu_init.c): Move from here ...
28264 * conf/any-emu.rmk: ... to here.
28265
28266 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28267 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28268 * conf/any-emu.rmk: ... to here.
28269
4efeab03
RM
282702009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28271
28272 * include/grub/parser.h (grub_parser_register): Document need
28273 of `name' parameter.
28274 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28275 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28276 "sh" to "grub".
28277
ea1dd8bf
RM
282782009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28279
28280 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28281 `$(XGETTEXT)'.
28282 * include/grub/i18n.h (N_): New macro.
28283 * util/mkisofs/mkisofs.h: Likewise.
28284 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28285 around N_().
28286 (usage): Use gettext() to translate help strings when printing them.
28287
0c140626
RM
282882009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28289
28290 Based on patch from Bean
28291 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28292
28293 * video/efi_fb.c: New file.
28294 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28295 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28296 variables.
28297 * conf/x86_64-efi.rmk: Likewise.
28298
87d58298
RM
282992009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28300
28301 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28302 * util/i386/pc/grub-setup.c: Likewise.
28303
994cc3a3
ST
283042009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
28305
28306 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
28307 <hurd/fs.h>
28308 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
28309 file_get_storage_info to implement grub_guess_root_device.
28310
26a61d6a
FZ
283112009-11-21 Felix Zielcke <fzielcke@z-51.de>
28312
28313 * Makefile.in (target): Use make's builtin $(shell) function
28314 instead of calling directly $(SHELL) to create the locale directories,
28315 inside the $(foreach) function.
28316
74ff1dd5
FZ
283172009-11-21 Felix Zielcke <fzielcke@z-51.de>
28318
28319 * util/grub-mkrescue.in: Print an error and usage if output option
28320 has not been given.
28321
0b787d0e
FZ
283222009-11-21 Felix Zielcke <fzielcke@z-51.de>
28323
28324 Patch from Loïc Minier <loic.minier@ubuntu.com>.
28325 * util/grub.d/30_os-prober.in: Cope with Linux entries where
28326 root and /boot are on different devices.
28327
1164b270
RM
283282009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28329
28330 Fix build for srcdir != objdir.
28331
28332 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
28333 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
28334 $(srcdir).
28335 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
28336 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
28337 reference for input.
28338
13774a2f
RM
283392009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 * util/grub-mkrescue.in: Use source directory direcly (without copiing
28342 or hardlinking it). Remove -J option, Joliet is not compatible with
28343 multiple source directories.
28344
efda854e
RM
283452009-11-21 Carles Pina i Estany <carles@pina.cat>
283462009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28347
28348 * util/grub-mkrescue.in: Recognize `--override-directory' option.
28349 (process_input_dir): New function. Process an arbitrary input
28350 directory.
28351 Misc adjustments to support both "override mode" and system-wide mode.
28352
6c09890c
FZ
283532009-11-20 Felix Zielcke <fzielcke@z-51.de>
28354
28355 * configure.ac (UNIFONT_BDF): Rename to ...
28356 (FONT_SOURCE): ... this. Update all users.
28357
a797824f
FZ
283582009-11-20 Felix Zielcke <fzielcke@z-51.de>
28359
28360 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
28361 to the list of unifont files to look for.
28362
cd4f42b0
RM
283632009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28364
28365 Patch from Joe Auricchio <jauricchio@gmail.com>
28366 * commands/minicmd.c (grub_mini_cmd_clear): New function.
28367 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
28368 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
28369
393c783d
FZ
283702009-11-19 Felix Zielcke <fzielcke@z-51.de>
28371
28372 * Makefile.in (install-local): Add a missing backslash.
28373
b2f1e327
FZ
283742009-11-19 Felix Zielcke <fzielcke@z-51.de>
28375
28376 * include/grub/x86_64/io.h: New file.
28377
f577f7a0
RM
283782009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28379
28380 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
28381 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
28382 Include `"progname.h"'.
28383 (main): Initialize gettext.
28384 * util/i386/pc/grub-setup.c: Gettexttize.
28385 * util/i386/pc/grub-mkimage.c: Likewise.
28386
28387 * Makefile.in (po/*.po): Redefine as ...
28388 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
28389
3bc7896c
RM
28390 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
28391
c37943b6
RM
283922009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28393
28394 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
28395 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
28396 (program_name): Remove.
28397 (main): Initialize gettext support.
6323f705
RM
28398 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
28399 Include `<libintl.h>'.
28400 (_): New macro.
c37943b6
RM
28401
28402 * util/mkisofs/eltorito.c: Gettexttize.
28403 * util/mkisofs/joliet.c: Likewise.
28404 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
28405 * util/mkisofs/multi.c: Likewise.
28406 * util/mkisofs/rock.c: Likewise.
28407 * util/mkisofs/tree.c: Likewise.
28408 * util/mkisofs/write.c: Likewise.
28409
3bc7896c
RM
28410 * po/POTFILES: Update with new files.
28411
5ce77c6e
RM
284122009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28413
28414 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
28415 * util/mkisofs/iso9660.h: Likewise.
28416 * util/mkisofs/joliet.c: Likewise.
28417 * util/mkisofs/mkisofs.c: Likewise.
28418 * util/mkisofs/mkisofs.h: Likewise.
28419 * util/mkisofs/rock.c: Likewise.
28420 * util/mkisofs/tree.c: Likewise.
28421 * util/mkisofs/write.c: Likewise.
28422
28423 * util/mkisofs/eltorito.c (rcsid): Remove.
28424 * util/mkisofs/hash.c: Likewise.
28425 * util/mkisofs/joliet.c: Likewise.
28426 * util/mkisofs/name.c: Likewise.
28427 * util/mkisofs/rock.c: Likewise.
28428 * util/mkisofs/tree.c: Likewise.
28429 * util/mkisofs/write.c: Likewise.
28430
1dabbc77
RM
284312009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28432
28433 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
28434 instead of static allocation.
28435 * util/mkisofs/match.h: Likewise.
28436
633877cb
RM
284372009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28438
3bc7896c
RM
28439 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
28440 and `util/grub.d/10_linux.in'.
633877cb
RM
28441 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
28442 translatable Shell files.
28443
af1c0c85
RM
284442009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28445
28446 * Makefile.in ($(srcdir)/aclocal.m4): New target.
28447
769ae37b
RM
284482009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28449
28450 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 28451 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
28452 * util/grub.d/10_kfreebsd.in (bindir): New variable.
28453 Add gettext initialization.
28454 (kfreebsd_entry): Make menuentry output translatable.
28455
284562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28457
28458 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
28459 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
28460 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
28461 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
28462 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 28463 * po/LINGUAS: New file.
769ae37b
RM
28464
284652009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28466
28467 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
28468 other things).
28469 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
28470 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
28471 bindtextdomain() calls for gettext initialization.
28472
284732009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28474
28475 * gnulib/progname.c: New file (imported from Gnulib).
28476 * gnulib/progname.h: Likewise.
28477 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28478 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
28479 (usage): Replace `progname' with `program_name'.
28480 (main): Use set_program_name() for program name initialization.
28481
284822009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28483
28484 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
28485 from here ...
28486 * Makefile.in (CPPFLAGS): ... to here.
28487
284882009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28489
28490 * aclocal.m4: Move from here ...
28491 * acinclude.m4: ... to here.
28492 * autogen.sh: Add call to `aclocal'.
28493 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
28494
284952009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28496
28497 * Makefile.in (CLEANFILES): Add `po/*.mo'.
28498 (LINGUAS): New variable.
28499 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
28500 (install-local): Install MO files.
28501 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
28502 * include/grub/i18n.h: New file.
3bc7896c
RM
28503 * po/POTFILES: New file.
28504 * po/ca.po: New file.
769ae37b
RM
28505 * util/grub.d/10_linux.in (bindir): New variable.
28506 Add gettext initialization.
28507 (linux_entry): Make menuentry output translatable.
28508 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
28509 (usage): Make --help output translatable.
28510 (main): Initialize gettext.
28511
02c0a6ad
RM
285122009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28513
28514 * import_gcry.py: New file (written by Vladimir with minor
28515 adjustments).
28516 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
28517 ciphers.
28518 * INSTALL: Document that Python is required for bootstrap.
28519
285202009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28521
28522 Import ciphers from libgcrypt 1.4.4.
28523
28524 * lib/libgcrypt/cipher/ChangeLog
28525 * lib/libgcrypt/cipher/ac.c
28526 * lib/libgcrypt/cipher/arcfour.c
28527 * lib/libgcrypt/cipher/bithelp.h
28528 * lib/libgcrypt/cipher/blowfish.c
28529 * lib/libgcrypt/cipher/camellia-glue.c
28530 * lib/libgcrypt/cipher/camellia.c
28531 * lib/libgcrypt/cipher/camellia.h
28532 * lib/libgcrypt/cipher/cast5.c
28533 * lib/libgcrypt/cipher/cipher.c
28534 * lib/libgcrypt/cipher/crc.c
28535 * lib/libgcrypt/cipher/des.c
28536 * lib/libgcrypt/cipher/dsa.c
28537 * lib/libgcrypt/cipher/ecc.c
28538 * lib/libgcrypt/cipher/elgamal.c
28539 * lib/libgcrypt/cipher/hash-common.c
28540 * lib/libgcrypt/cipher/hash-common.h
28541 * lib/libgcrypt/cipher/hmac-tests.c
28542 * lib/libgcrypt/cipher/md.c
28543 * lib/libgcrypt/cipher/md4.c
28544 * lib/libgcrypt/cipher/md5.c
28545 * lib/libgcrypt/cipher/primegen.c
28546 * lib/libgcrypt/cipher/pubkey.c
28547 * lib/libgcrypt/cipher/rfc2268.c
28548 * lib/libgcrypt/cipher/rijndael-tables.h
28549 * lib/libgcrypt/cipher/rijndael.c
28550 * lib/libgcrypt/cipher/rmd.h
28551 * lib/libgcrypt/cipher/rmd160.c
28552 * lib/libgcrypt/cipher/rsa.c
28553 * lib/libgcrypt/cipher/seed.c
28554 * lib/libgcrypt/cipher/serpent.c
28555 * lib/libgcrypt/cipher/sha1.c
28556 * lib/libgcrypt/cipher/sha256.c
28557 * lib/libgcrypt/cipher/sha512.c
28558 * lib/libgcrypt/cipher/tiger.c
28559 * lib/libgcrypt/cipher/twofish.c
28560 * lib/libgcrypt/cipher/whirlpool.c
28561
af2f93ac
RM
285622009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28563
28564 Fix build for systems without error().
28565
28566 * gnulib/error.c: New file (imported from Gnulib).
28567 * gnulib/error.h: Likewise.
28568 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
28569 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
28570 (this variable is now used by error()).
28571
73fb3dd5
FZ
285722009-11-16 Felix Zielcke <fzielcke@z-51.de>
28573
814f5e96
FZ
28574 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
28575 instead of relying that char is signed.
73fb3dd5 28576
a691ca33
VS
285772009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
28578
28579 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
28580 blocksize different from specified.
28581 (grub_pxefs_read): Likewise.
28582
2af8f0f4
FZ
285832009-11-16 Felix Zielcke <fzielcke@z-51.de>
28584
28585 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
28586
28587 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
28588 (grub_ata_readwrite): Likewise. Update 2 format strings.
28589 (grub_atapi_read): Likewise.
28590
28591 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
28592 * conf/i386.rmk (pkglib_MODULES): ... to here ...
28593 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
28594 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
28595 (ata_mod_LDFLAGS): Move from here ...
28596 * conf/i386.rmk: ... to here ...
28597 * conf/x86_64-efi.rmk: ... and here.
28598 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
28599 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
28600
83bdecaf
RM
286012009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28602
28603 Relicense multiboot.h, with RMS' blessing.
28604
28605 * include/multiboot.h: Change to X11 license.
28606
fd6fd3d7
RM
286072009-11-15 Robert Millan <rmh.grub@aybabtu.com>
28608
28609 Support --version in grub-mkisofs.
28610
28611 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
28612 (OPTION_VERSION): New macro.
28613 (ld_options): Recognize --version.
28614 (usage): Move `program_name' from here ...
28615 (program_name): ... to here. Add `static' qualifier.
28616 (main): Recognize `OPTION_VERSION'.
28617
16a88c49
FZ
286182009-11-15 Felix Zielcke <fzielcke@z-51.de>
28619
28620 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
28621 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
28622
a4158476
RM
286232009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28624
28625 Fix help2man generation for mkisofs.
28626
28627 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
28628 (usage): Send output to stdout (rather than stderr).
28629
fc2208b0
RM
286302009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28631
28632 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
28633 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28634 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
28635 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28636 (bin_SCRIPTS): Add `grub-mkfloppy'.
28637 (grub_mkfloppy_SOURCES): New variable.
28638
28639 * util/grub-mkrescue.in: New file.
28640 * util/i386/pc/grub-mkfloppy.in: New file.
28641
28642 * util/i386/coreboot/grub-mkrescue.in: Remove.
28643 * util/i386/pc/grub-mkrescue.in: Remove.
28644
8d0edf4a
RM
286452009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28646
28647 * include/grub/multiboot.h (struct grub_multiboot_header): Move
28648 from here ...
28649 * include/multiboot.h (struct multiboot_header): ... to here. Update
28650 all users.
28651 * include/grub/multiboot.h (struct grub_multiboot_info): Move
28652 from here ...
28653 * include/multiboot.h (struct multiboot_info): ... to here. Update
28654 all users.
28655 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
28656 from here ...
28657 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
28658 Update all users.
28659 * include/grub/multiboot.h (struct grub_mod_list): Move
28660 from here ...
28661 * include/multiboot.h (struct multiboot_mod_list): ... to here.
28662 Update all users.
28663
a73f5969
RM
286642009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28665
28666 * include/multiboot2.h (multiboot_word): Rename from this ...
28667 (multiboot2_word): ... to this. Update all users.
28668 (multiboot_header): Rename from this ...
28669 (multiboot2_header): ... to this. Update all users.
28670 (multiboot_tag_header): Rename from this ...
28671 (multiboot2_tag_header): ... to this. Update all users.
28672 (multiboot_tag_start): Rename from this ...
28673 (multiboot2_tag_start): ... to this. Update all users.
28674 (multiboot_tag_name): Rename from this ...
28675 (multiboot2_tag_name): ... to this. Update all users.
28676 (multiboot_tag_module): Rename from this ...
28677 (multiboot2_tag_module): ... to this. Update all users.
28678 (multiboot_tag_memory): Rename from this ...
28679 (multiboot2_tag_memory): ... to this. Update all users.
28680 (multiboot_tag_unused): Rename from this ...
28681 (multiboot2_tag_unused): ... to this. Update all users.
28682 (multiboot_tag_end): Rename from this ...
28683 (multiboot2_tag_end): ... to this. Update all users.
28684
1c8927f0
RM
286852009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28686
28687 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
28688 this platform we should support Multiboot1 first.
28689
28690 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28691 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
28692 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
28693
6e1e0d89
RM
286942009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28695
28696 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
28697 of write calls (converting them to fwrite() if they aren't already).
28698 (get_torito_desc): Likewise.
28699 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
28700
7f2b34d8
RM
287012009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28702
28703 * util/i386/pc/grub-install.in: Move from here ...
28704 * util/grub-install.in: ... to here. Update all users.
28705
c0ef3311
CW
287062009-11-11 Colin Watson <cjwatson@ubuntu.com>
28707
28708 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
28709
e1f240ff
RM
287102009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28711
28712 Support for El Torito without floppy emulation.
28713
28714 * util/mkisofs/eltorito.c: Include `<errno.h>'.
28715 (init_boot_catalog): Improve error handling.
28716 (get_torito_desc): Don't use floppy emulation unless requested by
28717 user. Patch boot information table when requested via
28718 `-boot-info-table'.
28719 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
28720 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
28721 (use_boot_info_table): New variables.
28722 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
28723 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
28724 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
28725 `--eltorito-emul-floppy'.
28726 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
28727 and `OPTION_ELTORITO_EMUL_FLOPPY'.
28728 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
28729 (use_boot_info_table, get_731): New prototypes.
28730 * util/mkisofs/write.c (get_731): New function.
28731
af7d4de5
FZ
287322009-11-11 Felix Zielcke <fzielcke@z-51.de>
28733
28734 Fix the generation of the man page.
28735
28736 * util/pc/i386/grub-install.in: Source
28737 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28738
2c55dbc0
RM
287392009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28740
28741 Large file support for grub-mkisofs.
28742
28743 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
28744 * util/mkisofs/mkisofs.c (next_extent, last_extent)
28745 (session_start): Upgrade type to `uint64_t'. Update all users.
28746 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
28747 (struct directory_entry): Upgrade type of `starting_block' and
28748 `size' to `uint64_t'. Update all users.
28749 (struct deferred): Remove unused structure.
28750 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
28751 Update all users.
28752 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
28753 file is larger than `UINT32_MAX'.
28754 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
28755 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
28756 return value.
28757 (struct deferred_write): Upgrade type of `extent' and `size' to
28758 `uint64_t'. Update all users.
28759 (last_extent_written): Upgrade type to `uint64_t'. Update all
28760 users.
28761 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
28762 Update all users. Upgrade type of `remain' to `int64_t' and
28763 `use' to `size_t'. Use error() to handle fread() errors.
28764 (write_files): Rely on write_one_file() rather than calling
28765 xfwrite() directly.
28766
6a9cead5
FZ
287672009-11-09 Felix Zielcke <fzielcke@z-51.de>
28768
28769 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
28770
4825d790
RM
287712009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28772
28773 * util/mkisofs/fnmatch.c: Remove.
28774 * util/mkisofs/getopt1.c: Likewise.
28775 * util/mkisofs/getopt.c: Likewise.
28776 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
28777 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
28778 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
28779 `gnulib/getopt1.c' and `gnulib/getopt.c'.
28780 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
28781
28782 * configure.ac: Detect `mingw32msvc' host_os.
28783 Check for lstat(), getuid() and getgid().
28784
28785 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
28786 instances of `u_char' with `uint8_t'.
28787
28788 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
28789 [!HAVE_GETUID] (getuid): New function (stub).
28790 [!HAVE_GETGID] (getgid): Likewise.
28791 [!HAVE_LSTAT] (lstat): Likewise.
28792 [!S_IROTH] (S_IROTH): New macro (dummy).
28793 [!S_IRGRP] (S_IRGRP): Likewise.
28794
84b860d8
RM
287952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28796
28797 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
28798 conditional expression).
28799
66e9b712
RM
288002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28801
28802 Import from Gnulib.
28803
28804 * gnulib/fnmatch.c: New file.
28805 * gnulib/fnmatch.h: Likewise.
28806 * gnulib/fnmatch_loop.c: Likewise.
28807 * gnulib/getopt.c: Likewise.
28808 * gnulib/getopt.h: Likewise.
28809 * gnulib/getopt1.c: Likewise.
28810 * gnulib/getopt_int.h: Likewise.
28811 * gnulib/gettext.h: Likewise.
28812
34f4a5b0
RM
288132009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28814
28815 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
28816 * normal/handler.c (read_handler_list): Likewise.
28817
ac451143
RM
288182009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28819
28820 Misc cleanup.
28821
28822 * kern/command.c (grub_register_command_prio): Use
28823 grub_zalloc() instead of explicitly zeroing data.
28824 * kern/list.c: Include `<grub/mm.h>'.
28825 (grub_named_list_find): Replace `0' with `NULL'.
28826 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28827 (fs_module_list): Change type to `grub_named_list_t'. Update all
28828 users.
28829 * normal/dyncmd.c (read_command_list): Add space between function
28830 call and parenthesis.
28831 * normal/handler.c (read_handler_list): Likewise.
28832
4089b167
RM
288332009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28834
28835 * normal/auth.c (punishment_delay): Moved from here ...
28836 (grub_auth_strcmp): ... to here (inside function).
28837
325f5037
RM
288382009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28839
28840 * include/grub/list.h (struct grub_named_list): Remove `const'
28841 qualifier from `name'.
28842 (struct grub_prio_list): Likewise.
28843
7aea29a3
RM
288442009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28845
28846 * normal/auth.c: Include `<grub/time.h>'.
28847 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28848
3fd6f044
RM
288492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28850
28851 * normal/auth.c (punishment_delay): New variable.
28852 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28853 (grub_auth_check_authentication): Punish failed login attempts with
28854 an incremental (2^N) delay.
28855
a4cd68e4
RM
288562009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28857
28858 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28859 path with $(srcdir).
28860
7ad12f43
VS
288612009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28862
28863 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
28864
c1129f03
RM
288652009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28866
28867 * util/i386/coreboot/grub-mkrescue.in: New file.
28868 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
28869 variables.
28870
28871 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
28872 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
28873 * configure.ac: Add header and function checks to satisfy grub-mkisofs
28874 requirements.
28875 * util/mkisofs/defaults.h: New file.
28876 * util/mkisofs/eltorito.c: Likewise.
28877 * util/mkisofs/exclude.h: Likewise.
28878 * util/mkisofs/fnmatch.c: Likewise.
28879 * util/mkisofs/getopt.c: Likewise.
28880 * util/mkisofs/getopt1.c: Likewise.
28881 * util/mkisofs/hash.c: Likewise.
28882 * util/mkisofs/include/fctldefs.h: Likewise.
28883 * util/mkisofs/include/mconfig.h: Likewise.
28884 * util/mkisofs/include/prototyp.h: Likewise.
28885 * util/mkisofs/include/statdefs.h: Likewise.
28886 * util/mkisofs/iso9660.h: Likewise.
28887 * util/mkisofs/joliet.c: Likewise.
28888 * util/mkisofs/match.c: Likewise.
28889 * util/mkisofs/match.h: Likewise.
28890 * util/mkisofs/mkisofs.c: Likewise.
28891 * util/mkisofs/mkisofs.h: Likewise.
28892 * util/mkisofs/multi.c: Likewise.
28893 * util/mkisofs/name.c: Likewise.
28894 * util/mkisofs/rock.c: Likewise.
28895 * util/mkisofs/tree.c: Likewise.
28896 * util/mkisofs/write.c: Likewise.
28897
ec8bb77d
VS
288982009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28899
28900 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28901 being insecure.
28902
3716b12c
RM
289032009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28904
28905 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28906 `grub-mkimage' (and use $0 when possible).
28907
b97b7b91
RM
289082009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28909
28910 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28911 error message for excessively large memory map.
28912
04114812
RM
289132009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28914
28915 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28916 executable bit.
28917
e4eb2373
RM
289182009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28919
28920 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28921 message for coreboot users.
28922
c926e1d5 289232009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28924
28925 Fix build with GNU gold.
28926
28927 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28928 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28929 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28930 link addresses.
28931 * aclocal.m4: Likewise.
28932
86e5b1db 289332009-11-04 Felix Zielcke <fzielcke@z-51.de>
28934
28935 * configure.ac (AC_PREREQ): Bump to 2.59d.
28936 * INSTALL: Make it more clear when Autoconf and Ruby are
28937 needed and when to run `./autogen.sh'.
28938
246cd78f 289392009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28940
28941 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28942 OSes.
28943
4f9dfb37 289442009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28945
28946 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28947
b82bd5e1 289482009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28949
28950 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28951 giving it to GNU Mach.
28952
ff1a9bca 289532009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28954
28955 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28956 GNU partition number to get internal GRUB partition number.
28957
61697d9c 289582009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28959
28960 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28961 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28962
a50569e1 289632009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28964
28965 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28966 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28967 case.
28968
5b153867 289692009-11-01 Felix Zielcke <fzielcke@z-51.de>
28970
28971 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28972
d9e2cd70 289732009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28974
28975 Fix build problem.
28976
28977 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28978 `-isystem=$(srcdir)/include'.
28979
805111a4 289802009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28981
28982 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28983 checked (grub-install doesn't currently rely on it).
28984
fa6e945f 289852009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28986
28987 Revert SVN r2660.
28988
28989 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28990 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28991 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28992 * conf/i386-ieee1275.rmk: Likewise.
28993 * conf/i386-pc.rmk: Likewise.
28994 * conf/powerpc-ieee1275.rmk: Likewise.
28995 * conf/sparc64-ieee1275.rmk: Likewise.
28996 * conf/x86_64-efi.rmk: Likewise.
28997
cee15086 289982009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28999
29000 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
29001
95b9239e 290022009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29003
29004 * include/grub/misc.h: Stop checking for APPLE_CC.
29005
2ed19dfd 290062009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29007
29008 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
29009 doesn't cause an infinite call loop.
29010
fdcdde19 290112009-10-28 Felix Zielcke <fzielcke@z-51.de>
29012
29013 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
29014 strings.
29015
cefabfe1 290162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29017
29018 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29019 variable.
29020 * Makefile.in: Likewise.
29021
ed96ab6d 290222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29023
29024 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29025
0579b753 290262009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29027
29028 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29029
478df409 290302009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29031
29032 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29033
083d1679 290342009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29035
29036 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29037 from here ...
29038 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29039
5947ae32 290402009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29041
29042 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29043 in $(MAKEINFO) invocation. This makes it clear in output that
29044 errors are being ignored.
29045
94180ff6 290462009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29047
29048 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29049 from here ...
29050 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29051 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29052 * conf/i386-ieee1275.rmk: Likewise.
29053 * conf/i386-pc.rmk: Likewise.
29054 * conf/powerpc-ieee1275.rmk: Likewise.
29055 * conf/sparc64-ieee1275.rmk: Likewise.
29056 * conf/x86_64-efi.rmk: Likewise.
29057
9031b03a 290582009-10-26 Colin Watson <cjwatson@ubuntu.com>
29059
29060 * util/grub-editenv.c (main): If only a command is given, use
29061 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29062 (usage): FILENAME is now optional and has a default.
29063
e4f6809b 290642009-10-26 Colin Watson <cjwatson@ubuntu.com>
29065
29066 Improve grub-mkconfig performance when there are several menu
29067 entries on a single filesystem.
29068
29069 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29070 prepare_grub_to_access_device.
29071 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29072 * util/grub.d/30_os-prober.in: Likewise.
29073
67937d4d 290742009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29075
29076 * util/grub.d/10_freebsd.in: Remove.
29077 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29078 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29079
ee3756cc 290802009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29081
5c35048e 29082 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 29083
4dea1c6f 290842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29085
29086 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29087 grub_util_error() call.
29088
042484d7 290892009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29090
29091 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29092 `reserved_first_sector' member.
29093 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29094 `reserved_first_sector' to 1.
29095 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29096 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29097 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29098 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29099 filesystems which begin at first sector.
29100 (options): New option --skip-fs-probe.
29101 (main): Handle --skip-fs-probe and pass it to setup().
29102
d64448a7 291032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29104
29105 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29106 (memset): Fix function prototype.
29107
508d42ec 291082009-10-25 Robert Millan <rmh.grub@aybabtu.com>
291092009-10-25 Vasily Averin <vvs@parallels.com>
29110
29111 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29112 `dirent.direntlen == 0'.
29113
b240e30c 291142009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29115
29116 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29117 `cpio'.
29118 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29119
346e7fbe 291202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29121
29122 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29123 `__trampoline_setup' and `__ucmpdi2'.
29124 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29125 that libgcc provides.
29126
cdb308b0 291272009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29128
29129 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29130 * include/grub/sparc64/libgcc.h (memset): Likewise.
29131 * include/grub/misc.h (memset, memcmp): New function prototypes.
29132
fb26abc2 291332009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29134
29135 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29136 `cpio'.
29137 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29138
f6693890 291392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29140
29141 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29142 * docs/grub.cfg: Compensate for recent change in multiboot
29143 loader (since 2009-08-14 it won't pass filename to payload).
29144 * util/grub.d/10_hurd.in: Likewise.
29145
0933cdc0 291462009-10-21 Felix Zielcke <fzielcke@z-51.de>
29147
29148 * config.guess: Update to latest version from config git
29149 repository.
29150 * config.sub: Likewise.
29151
3b2fe8c2 291522009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29153
29154 Fix build on sparc64.
29155
29156 * configure.ac: Perform checks for libgcc symbols before
29157 adding `-nostdlib' to LDFLAGS.
29158
46695a62 291592009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 Let user specify OpenBSD root device.
29162
29163 * loader/i386/bsd.c (openbsd_root): New variable.
29164 (openbsd_opts): New option 'root'.
29165 (OPENBSD_ROOT_ARG): New macro.
29166 (grub_openbsd_boot): Use 'openbsd_root'.
29167 (grub_cmd_openbsd): Fill 'openbsd_root'.
29168
d2b6b7fc 291692009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29170
29171 * NEWS: Misc adjustments.
29172
421bd7ac 291732009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29174
29175 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29176
f1d29d87 291772009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29178
29179 * configure.ac: Bump version to 1.97.
29180
6f3cd880 291812009-10-16 Colin Watson <cjwatson@ubuntu.com>
29182
29183 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29184 -mno-3dnow on x86 architectures. Some toolchains enable these
29185 features by default, but they rely on registers that aren't enabled
29186 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29187
035f7122 291882009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29189
29190 Make entry text a bit more readable.
29191
29192 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29193
44998e58 291942009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29195
29196 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29197
cd2851b3 291982009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29199
29200 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29201 operations.
29202
c6f3b249 292032009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29204
29205 * configure.ac: Add missing dollar.
29206
6b5886ba 292072009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29208
29209 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29210
29211 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29212 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29213 exports.
29214 * include/grub/sparc64/libgcc.h: Likewise. Use
29215 preprocessor conditionals.
29216
e9d66f6d 292172009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29218
29219 * conf/common.rmk (grub-dumpbios): Remove rule.
29220 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29221 * util/grub-dumpbios.in: Remove file.
29222
9155bc17 292232009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29224
29225 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29226 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29227
29228 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29229 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29230 users.
29231
29232 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29233 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29234 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29235 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29236 users.
29237
bf7f7a18 292382009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29239
29240 * term/tparm.c: Switch to GPLv3.
29241
86564c26 292422009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29243
29244 * include/grub/i386/cpuid.h: Add header protection.
29245
5c936493 292462009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29247
29248 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29249
29250 * include/grub/i386/cpuid.h: New file.
29251 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29252 (has_longmode): Rename to ...
29253 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29254 `static' attribute.
29255 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29256 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29257 on a CPU that doesn't implement AMD64 instruction set.
29258
186e7cf2 292592009-10-06 Colin Watson <cjwatson@ubuntu.com>
29260
29261 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29262 that version.texi is rebuilt on version number changes.
29263
83b65c4a 292642009-10-06 Colin Watson <cjwatson@ubuntu.com>
29265
29266 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29267 Fixes bug #27602.
29268
d244281c 292692009-10-06 Colin Watson <cjwatson@ubuntu.com>
29270
29271 * util/i386/pc/grub-install.in: Source
29272 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29273 that the --grub-probe option will work.
29274 * util/sparc64/ieee1275/grub-install.in: Likewise.
29275
da25306d 292762009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29277
29278 * configure.ac: Bump version to 1.97~beta4.
29279
e8ee83c0 292802009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29281
29282 Resync grub-mkdevicemap in x86_64-efi.
29283
29284 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29285 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29286 `util/devicemap.c'.
29287
50dcabcf 292882009-10-01 Colin Watson <cjwatson@ubuntu.com>
29289
29290 * util/grub-editenv.c (create_envblk_file): Write new block with a
29291 .new suffix and then rename it into place, to ensure atomic
29292 creation.
29293
0e51c3a7 292942009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29295
29296 Do not automatically install headers.
29297
29298 * Makefile.in (include_DATA): Remove. Update all users.
29299
31299a95 293002009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29301
29302 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
29303 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
29304
29305 * util/osdetect.lua: Remove.
29306 * script/lua/lauxlib.c: Likewise.
29307 * script/lua/ldebug.c: Likewise.
29308 * script/lua/grub_main.c: Likewise.
29309 * script/lua/lauxlib.h: Likewise.
29310 * script/lua/ldebug.h: Likewise.
29311 * script/lua/ltablib.c: Likewise.
29312 * script/lua/liolib.c: Likewise.
29313 * script/lua/lstrlib.c: Likewise.
29314 * script/lua/lualib.h: Likewise.
29315 * script/lua/ldo.c: Likewise.
29316 * script/lua/ldump.c: Likewise.
29317 * script/lua/ldo.h: Likewise.
29318 * script/lua/loslib.c: Likewise.
29319 * script/lua/lundump.c: Likewise.
29320 * script/lua/grub_lib.c: Likewise.
29321 * script/lua/ldblib.c: Likewise.
29322 * script/lua/lundump.h: Likewise.
29323 * script/lua/lmem.c: Likewise.
29324 * script/lua/grub_lib.h: Likewise.
29325 * script/lua/lmathlib.c: Likewise.
29326 * script/lua/lstate.c: Likewise.
29327 * script/lua/ltm.c: Likewise.
29328 * script/lua/lvm.c: Likewise.
29329 * script/lua/lmem.h: Likewise.
29330 * script/lua/lstate.h: Likewise.
29331 * script/lua/ltm.h: Likewise.
29332 * script/lua/ltable.c: Likewise.
29333 * script/lua/lvm.h: Likewise.
29334 * script/lua/llex.c: Likewise.
29335 * script/lua/lgc.c: Likewise.
29336 * script/lua/grub_lua.h: Likewise.
29337 * script/lua/loadlib.c: Likewise.
29338 * script/lua/lfunc.c: Likewise.
29339 * script/lua/lopcodes.c: Likewise.
29340 * script/lua/lparser.c: Likewise.
29341 * script/lua/ltable.h: Likewise.
29342 * script/lua/llex.h: Likewise.
29343 * script/lua/lgc.h: Likewise.
29344 * script/lua/lfunc.h: Likewise.
29345 * script/lua/lbaselib.c: Likewise.
29346 * script/lua/lopcodes.h: Likewise.
29347 * script/lua/lparser.h: Likewise.
29348 * script/lua/lzio.c: Likewise.
29349 * script/lua/linit.c: Likewise.
29350 * script/lua/lobject.c: Likewise.
29351 * script/lua/llimits.h: Likewise.
29352 * script/lua/lstring.c: Likewise.
29353 * script/lua/lzio.h: Likewise.
29354 * script/lua/lapi.c: Likewise.
29355 * script/lua/lcode.c: Likewise.
29356 * script/lua/lua.h: Likewise.
29357 * script/lua/lobject.h: Likewise.
29358 * script/lua/lstring.h: Likewise.
29359 * script/lua/lapi.h: Likewise.
29360 * script/lua/lcode.h: Likewise.
29361 * script/lua/luaconf.h: Likewise.
29362
cb8a2c38 293632009-09-26 Colin Watson <cjwatson@ubuntu.com>
29364
29365 * docs/grub.texi (Command-line and menu entry commands): Document
29366 date and echo commands.
29367
6b9b6276 293682009-09-24 Pavel Roskin <proski@gnu.org>
29369
29370 * include/grub/kernel.h (struct grub_module_header): Remove
29371 `grub_module_header_types'. Make `type' unsigned. Make `size'
29372 32-bit on all platforms.
29373 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
29374 8-bit field. Use grub_host_to_target32() for `size'.
29375 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
29376 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
29377 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
29378
4e5a02a7 293792009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29380
29381 Fix "lost keypress" bug in at_keyboard.
29382
29383 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
29384 Checks for readyness of input buffer (without flushing it).
29385 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
29386 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
29387
c6dcedf6 293882009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29389
29390 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
29391 size check within GRUB_MACHINE_PCBIOS section.
29392
74c958b1 293932009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29394
29395 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
29396 return value.
29397 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
29398 KEYBOARD_ISREADY check.
29399 (grub_at_keyboard_checkkey): Rename to ...
29400 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
29401 Remove gratuitous cast.
29402
ff420223 294032009-09-23 Colin Watson <cjwatson@ubuntu.com>
29404
29405 * configure.ac: Call AC_PROG_MKDIR_P.
29406 * Makefile.in (docs/stamp-vti): Create docs directory. Create
29407 version.texi in $(builddir) rather than $(srcdir).
29408 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
29409 to makeinfo's @include search path.
29410
d96875df 294112009-09-23 Felix Zielcke <fzielcke@z-51.de>
29412
29413 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
29414
9b3f8365 294152009-09-23 Felix Zielcke <fzielcke@z-51.de>
29416
29417 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
29418 for `*.dpkg-new'.
29419
c44c90db 294202009-09-21 Colin Watson <cjwatson@ubuntu.com>
29421
29422 Build info documentation. Some code borrowed from Automake.
29423
29424 * configure.ac: Check for makeinfo.
29425 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
29426 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
29427 docs/version.texi.
29428 (MOSTLYCLEANFILES): Add vti.tmp.
29429 (docs/version.texi, docs/stamp-vti): Update automatically.
29430 (docs/grub.info): Build info documentation. Use --force and ignore
29431 errors for now.
29432 (all-local): Add $(INFOS).
29433 (install-local): Install info files.
29434 (uninstall): Uninstall info files.
29435 * docs/version.texi: Remove from revision control. This file is
29436 automatically generated on build now.
29437 * gendistlist.sh: Add `*.info'.
29438
e0b37bb5 294392009-09-21 Felix Zielcke <fzielcke@z-51.de>
29440
29441 * kern/term.c: Fix indentation.
29442
5a78865b 294432009-09-21 Felix Zielcke <fzielcke@z-51.de>
29444
29445 * util/hostdisk.c: Fix a comment.
29446
dace7e8a 294472009-09-20 Robert Millan <rmh.grub@aybabtu.com>
29448
29449 Fix regression introduced in r2539.
29450
29451 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
29452 to 0xA1.
29453
a83d079b 294542009-09-19 Colin Watson <cjwatson@ubuntu.com>
29455
29456 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 29457 os-prober. Under normal operation, it does not print anything to
29458 stderr; if it does, we need to debug it, and throwing away stderr
29459 makes that excessively difficult.
a83d079b 29460
be94a509 294612009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
29462
29463 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
29464
63f745e8 294652009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29466
29467 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
29468 AC_LANG_PROGRAM from autoconf.
29469 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
29470 prototypes (fixes warning).
29471
29472 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
29473 `--disable-werror' was used.
29474
bbb2a70f 294752009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29476
29477 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
29478 uninitialized `lastaddr'.
29479
77c24f1d 294802009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
29481
0f0b8c87 29482 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 29483
07197f23 294842009-09-14 Colin Watson <cjwatson@ubuntu.com>
29485
29486 * commands/test.c (get_fileinfo): Return immediately if
29487 grub_fs_probe fails.
29488
dabf1798 294892009-09-14 José Martínez <xosemp@gmail.com>
29490
29491 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
29492
d52109a7 294932009-09-14 Colin Watson <cjwatson@ubuntu.com>
29494
29495 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
29496 output.
29497
56532179 294982009-09-13 Robert Millan <rmh.grub@aybabtu.com>
29499
29500 * configure.ac: Remove --enable-grub-pe2elf. Only build
29501 grub-pe2elf when needed by the build system itself.
29502 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
29503
8ef070f5 295042009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29505
29506 * configure.ac: Bump version to 1.97~beta3.
29507 * docs/version.texi: Likewise.
29508
61229557 295092009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29510
29511 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
29512 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
29513 from here ...
29514 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
29515 (grub_linux_setup_video): ... to here (with some adjustments).
29516
5c9f8d84 295172009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29518
29519 Fix memory corruption issue (spotted by Colin Watson).
29520
29521 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
29522 causing returned size to be stored in an incorrect memory location.
29523 Fix use of uninitialized value when storing the returned size.
29524
e8f5d6e9 295252009-09-12 Yves Blusseau <blusseau@zetam.org>
29526
29527 Change clean rules to properly remove files
29528
29529 * genmk.rb: add new clean rules
29530 * Makefile.in (clean): add the new targets
29531 (mostlyclean): likewise
29532
cda2a409 295332009-09-11 Colin Watson <cjwatson@ubuntu.com>
29534
29535 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
29536 to grub_uint64_t.
29537 * fs/ntfs.c (init_file): Understand 64-bit sizes for
29538 non-resident files.
29539
86695375 295402009-09-11 Colin Watson <cjwatson@ubuntu.com>
29541
29542 * configure.ac: Don't look for help2man when cross-compiling. Fixes
29543 part of bug #27349.
29544
8aa1541a 295452009-09-10 Felix Zielcke <fzielcke@z-51.de>
29546
29547 * util/grub-mkconfig.in: Make the created config mode 400 and
29548 print a warning if it fails.
29549
48d9bb0a 295502009-09-10 Robert Millan <rmh.grub@aybabtu.com>
29551
29552 * util/grub.d/40_custom.in: Ask user to type custom entries below
29553 comment, rather than below 'exec tail' line.
29554
3b0521be 295552009-09-10 Colin Watson <cjwatson@ubuntu.com>
29556
29557 * util/grub.d/40_custom.in: Make sure that the explanatory text is
29558 visible in grub.cfg.
29559
50051d55 295602009-09-10 Colin Watson <cjwatson@ubuntu.com>
29561
29562 * util/grub.d/40_custom.in: Make it a little clearer how to use this
29563 file.
29564
c0d34387 295652009-09-10 Felix Zielcke <fzielcke@z-51.de>
29566
29567 * docs/grub.cfg: Add an example menu entry for memtest86+.
29568
80a608f3 295692009-09-09 Felix Zielcke <fzielcke@z-51.de>
29570
a2094832 29571 * config.guess: Update to latest version from config git.
80a608f3 29572 * config.sub: Likewise.
29573
99423078 295742009-09-08 Colin Watson <cjwatson@ubuntu.com>
29575
29576 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
29577 unknown-command case. Fixes bug #27320.
29578
44454e4c 295792009-09-08 Felix Zielcke <fzielcke@z-51.de>
29580
29581 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
29582 `help' if the command exists.
29583
e30d87ad 295842009-09-06 Robert Millan <rmh.grub@aybabtu.com>
29585
29586 * INSTALL: Require GCC 4.1.3 or later.
29587
9a86f1ec 295882009-09-06 Yves Blusseau <blusseau@zetam.org>
29589
29590 * Makefile.in (RMKFILES): add i386-qemu.rmk
29591 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
29592 $(srcdir)/stamp-h.in
29593
7f26d466 295942009-09-05 Robert Millan <rmh.grub@aybabtu.com>
29595
29596 * util/grub-probe.c (probe): Comment out buggy codepath, which
29597 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
29598 should be re-enabled after 1.97.
29599
3a613259 296002009-09-05 Felix Zielcke <fzielcke@z-51.de>
29601
29602 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
29603 find searches for.
29604
197f76c7 296052009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
29606
29607 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
29608 unnecessary calls to grub_error.
29609
70ba68ce 296102009-09-04 Colin Watson <cjwatson@ubuntu.com>
29611
29612 * NEWS: Mention `keystatus' and Unicode fonts.
29613
4ff0d7a4 296142009-09-04 Robert Millan <rmh.grub@aybabtu.com>
29615
29616 * configure.ac: Bump version to 1.97~beta2.
29617 * docs/version.texi: Likewise.
29618
77c55a87 296192009-09-03 Colin Watson <cjwatson@ubuntu.com>
29620
29621 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
29622 containing unwind information in some cases where it previously did
29623 not. Use -fno-dwarf2-cfi-asm if available to restore the old
29624 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
29625 discussion.
29626
f79572cd 296272009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
29628
29629 Embedding loadenv module into grub-emu
29630
29631 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
29632 commands/loadenv.c
29633 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
29634 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
29635 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
29636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
29637 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
29638 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
29639
93a81088 296402009-09-03 Magnus Granberg <zorry@ume.nu>
29641
29642 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
29643 include -fPIE in the default specs.
29644 * configure.ac: Check if pie_possible is yes and add -fno-PIE
29645 to TARGET_CFLAGS.
29646
160034b2 296472009-09-03 Felix Zielcke <fzielcke@z-51.de>
29648
29649 * INSTALL: Note that GNU Bison 2.3 or later is required.
29650
087c07c4 296512009-09-03 Colin Watson <cjwatson@ubuntu.com>
29652
29653 * kern/i386/pc/startup.S: Fix typo.
29654
cbf978c0 296552009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
29656
29657 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
29658 according to GCS.
29659
296602009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 29661
29662 * docs/grub.texi (Naming convention): Describe one-based partition
29663 numbering.
29664 (Device syntax): Likewise.
29665 (File name syntax): Likewise.
29666 (Block list syntax): Likewise.
29667 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
29668 menu.lst.
29669 (File name syntax): Likewise.
29670 (Command-line and menu entry commands): Document acpi, blocklist,
29671 crc, export, insmod, keystatus, ls, set, and unset commands.
29672
f3e8cdfd 296732009-09-02 Colin Watson <cjwatson@ubuntu.com>
29674
29675 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
29676 to avoid implying that only one of --shift, --ctrl, or --alt may be
29677 used.
29678
c0bc232b 296792009-09-02 Colin Watson <cjwatson@ubuntu.com>
29680
29681 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
29682 rather than comparing against S_IFREG, which will almost never work.
29683
aa0f752d 296842009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
29685
29686 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
29687 (write_blocklists): Likewise.
29688
ecb3166a 296892009-09-01 Colin Watson <cjwatson@ubuntu.com>
29690
29691 * script/lua/grub_lua.h (fputs): Supply a format string as the first
29692 argument to grub_printf.
29693
c403a125 296942009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 29695
29696 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 29697 non GNU test.
31aba781 29698
b5e7312c 296992009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29700
29701 * kern/file.c (grub_file_read): Spelling fix
29702
fe00f472 297032009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29704
29705 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
29706 loading of headers in some cases.
29707
cc55302e 297082009-08-30 Robert Millan <rmh.grub@aybabtu.com>
29709
29710 * configure.ac: Bump version to 1.97~beta1.
29711 * docs/version.texi: Likewise.
29712
5c90cdd2 297132009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 29714
29715 * include/grub/i386/xnu.h: Add license header.
29716 include grub/err.h explicitly.
29717
c90edae4 297182009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29719
29720 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
29721 to `ufs' in the vfs.root.mountfrom kernel parameter.
29722
d8888b5c 297232009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29724
29725 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
29726
29727 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
29728 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
29729
29730 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
29731 `ARRAY_SIZE' macro.
29732
6f07b921 297332009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29734
29735 * kern/file.c (grub_file_read): Check offset.
29736 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
29737 * fs/jfs.c (grub_jfs_read_file): Likewise.
29738 * fs/ntfs.c (grub_ntfs_read): Likewise.
29739 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
29740 * fs/minix.c (grub_minix_read_file): Correct offset check.
29741 * fs/ufs.c (grub_ufs_read_file): Likewise.
29742
b4f34077 297432009-08-28 Colin Watson <cjwatson@ubuntu.com>
29744
29745 * term/i386/pc/console.c (bios_data_area): Cast
29746 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
29747
e7c69859 297482009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29749
29750 1-bit optimised blitters.
29751
29752 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
29753 prototype.
29754 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29755 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29756 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29757 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29758 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29759 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29760 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
29761 function.
29762 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29763 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29764 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29765 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29766 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29767 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29768 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
29769 when possible.
29770 * video/video.c (grub_video_get_blit_format): Return
29771 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
29772
a57da43f 297732009-08-28 Colin Watson <cjwatson@ubuntu.com>
29774
29775 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
29776 the first argument to grub_printf.
29777
4cbe67e5 297782009-08-28 Colin Watson <cjwatson@ubuntu.com>
297792009-08-28 Robert Millan <rmh.grub@aybabtu.com>
29780
29781 Add `getkeystatus' terminal method. Add a new `keystatus' command
29782 to query it.
29783
29784 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
29785 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
29786 modifier key bitmasks.
29787 (struct grub_term_input): Add `getkeystatus' member.
29788 (grub_getkeystatus): Add prototype.
29789 * kern/term.c (grub_getkeystatus): New function.
29790
29791 * include/grub/i386/pc/memory.h
29792 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
29793 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
29794 Data Area layout.
29795 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
29796 (grub_console_term_input): Set `getkeystatus' member.
29797 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
29798 constants.
29799 (grub_usb_keyboard_getreport): Likewise.
29800 (grub_usb_keyboard_checkkey): Likewise.
29801 (grub_usb_keyboard_getkeystatus): New function.
29802 (grub_usb_keyboard_term): Set `getkeystatus' member.
29803
29804 * commands/keystatus.c: New file.
29805 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
29806 (keystatus_mod_SOURCES): New variable.
29807 (keystatus_mod_CFLAGS): Likewise.
29808 (keystatus_mod_LDFLAGS): Likewise.
29809 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
29810 commands/keystatus.c.
29811 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29812 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29813 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29814 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29815 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 29817
6e2a9085 298182009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29819
29820 Split befs.mod and afs.mod into *_be.mod and *.mod
29821
29822 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
29823 (grub_fstest_SOURCES): Likewise.
29824 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
29825 (afs_be_mod_SOURCES): New variable.
29826 (afs_be_mod_CFLAGS): Likewise.
29827 (afs_be_mod_LDFLAGS): Likewise.
29828 (befs_be_mod_SOURCES): Likewise.
29829 (befs_be_mod_CFLAGS): Likewise.
29830 (befs_be_mod_LDFLAGS): Likewise.
29831 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29832 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29834 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29835 (grub_emu_SOURCES): Likewise.
29836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29837 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29838 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29839 * fs/afs_be.c: New file.
29840 * fs/befs_be.c: New file.
29841 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29842 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29843 (U16): Replaced with ...
29844 (grub_afs_to_cpu16): ...this. All users updated.
29845 (U32): Replaced with ...
29846 (grub_afs_to_cpu32): ...this. All users updated.
29847 (U64): Replaced with ...
29848 (grub_afs_to_cpu64): ...this. All users updated.
29849 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29850 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29851 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29852 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29853 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29854 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29855 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29856 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29857 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29858 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29859 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29860
32a71655 298612009-08-26 Bean <bean123ch@gmail.com>
29862
29863 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
29864 64-bit number.
29865 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
29866 (grub_xfs_inode_block): Change return type to grub_uint64_t.
29867 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
29868
552bf6c5 298692009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29870
29871 NetBSD memory map support.
29872
29873 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
29874 (grub_netbsd_btinfo_mmap_header): New structure.
29875 (grub_netbsd_btinfo_mmap_entry): Likewise.
29876 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
29877
1ae2078c 298782009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29879
29880 Enable bsd.mod on coreboot.
29881
29882 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29883 (bsd_mod_SOURCES): New variable.
29884 (bsd_mod_CFLAGS): Likewise.
29885 (bsd_mod_LDFLAGS): Likewise.
29886 (bsd_mod_ASFLAGS): Likewise.
29887 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29888 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29889
beefc598 298902009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29891
29892 Cleanup NetBSD root support.
29893
29894 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29895 grub_bsd_get_device.
29896 Fix typo.
29897
3b76e68b 298982009-08-25 Felix Zielcke <fzielcke@z-51.de>
29899
29900 * util/grub.d/00_header.in: Move check for the video backend of
29901 gfxterm from here ...
29902 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29903 a suitable video backend.
29904
aea664ea 299052009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29906
29907 Fix breakage in grub-setup.
29908
29909 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29910 "msdos_partition_map".
29911
ff747d50 299122009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29913
29914 Fix breakage in normal/auth.c.
29915
29916 * normal/auth.c (grub_iswordseparator): New function.
29917
e7e1f93f 299182009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29919
29920 Authentication support.
29921
29922 * commands/password.c: New file.
29923 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29924 (password_mod_SOURCES): New variable.
29925 (password_mod_CFLAGS): Likewise.
29926 (password_mod_LDFLAGS): Likewise.
29927 (normal_mod_SOURCES): Add normal/auth.c.
29928 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29929 normal/auth.c.
29930 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29931 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29932 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29934 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29935 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29936 * include/grub/auth.h: New file.
29937 * include/grub/err.h (grub_err_t): New enum value
29938 GRUB_ERR_ACCESS_DENIED.
29939 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29940 'users'.
29941 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29942 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29943 users updated.
29944 * normal/auth.c: New file.
29945 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29946 (grub_cmdline_run): Don't allow to go to command line without
29947 authentication.
29948 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29949 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29950 menuentry without superuser rights.
29951 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29952 user isn't a superuser.
29953
70f1161d 299542009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29955
29956 Save space by inlining misc.c functions.
29957
29958 * kern/misc.c (grub_iswordseparator): Made static.
29959 * kern/misc.c (grub_strcat): Moved from here ...
29960 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29961 * kern/misc.c (grub_strncat): Moved from here ...
29962 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29963 * kern/misc.c (grub_strcasecmp): Moved from here ...
29964 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29965 * kern/misc.c (grub_strncasecmp): Moved from here ...
29966 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29967 * kern/misc.c (grub_isalpha): Moved from here ...
29968 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29969 * kern/misc.c (grub_isdigit): Moved from here ...
29970 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29971 * kern/misc.c (grub_isgraph): Moved from here ...
29972 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29973 * kern/misc.c (grub_tolower): Moved from here ...
29974 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29975
48e40bff 299762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29977
29978 * script/sh/function.c (grub_script_function_find): Cut error message
29979 not to flood terminal.
29980 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29981 limit.
29982 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29983
c385bfc3 299842009-08-24 Colin Watson <cjwatson@ubuntu.com>
29985
29986 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29987 `report' grub_uint8_t *.
29988 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29989 Use a 50-millisecond timeout rather than just repeating
29990 grub_usb_keyboard_getreport 50 times.
29991 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29992
2d21e3e8 299932009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29994
29995 Rename *_partition_map to part_*
29996
29997 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29998 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29999 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
30000 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
30001 All users updated.
30002 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
30003 All users updated.
30004 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
30005 * util/grub-probe.c (probe_partmap): Don't transform partition name
30006 to get module name.
30007
dd103c4e 300082009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30009
30010 Fix OpenBSD and NetBSD support.
30011
30012 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
30013 memory address conflict.
30014 (OPENBSD_MMAP_ACPI): New definition.
30015 (OPENBSD_MMAP_NVS): Likewise.
30016 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30017 and OPENBSD_MMAP_NVS.
30018 Add memory map terminator
30019 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 30020 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 30021
16c84d74 300222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30023
30024 Let user specify NetBSD root device.
30025
30026 * loader/i386/bsd.c (netbsd_root): New variable.
30027 (netbsd_opts): New option 'root'.
30028 (NETBSD_ROOT_ARG): New macro.
30029 (grub_netbsd_boot): Use 'netbsd_root'.
30030 (grub_bsd_unload): Free 'netbsd_root'.
30031 (grub_cmd_netbsd): Fill 'netbsd_root'.
30032
adb29902 300332009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 Support for 64-bit NetBSD.
30036
30037 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30038 point when booting non-FreeBSD.
30039
f5ae9f74 300402009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30041
30042 Support --no-smp and --no-acpi for NetBSD.
30043
30044 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30045 (NETBSD_AB_NOACPI): Likewise.
30046 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30047 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30048
de74f136 300492009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30052 errors.
30053 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30054 errors. Call grub_error when needed.
30055
e9a925da 300562009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30057
30058 * commands/search.c (search_fs): Try searching without autoload first.
30059 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30060 filesystem module explicitly for faster booting.
30061
5174302b 300622009-08-23 Colin Watson <cjwatson@ubuntu.com>
30063
30064 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30065
c8c80635 300662009-08-23 Colin Watson <cjwatson@ubuntu.com>
30067
30068 * util/grub.d/30_os-prober.in: Disable os-prober if
30069 `GRUB_DISABLE_OS_PROBER' was set to true.
30070
71acf5e5 300712009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30072
30073 * partmap/pc.c: Rename to ...
30074 * partmap/msdos.c: ... this. Update all users.
30075 (grub_pc_partition_map): Rename to ...
30076 (grub_msdos_partition_map): ... this. Update all users.
30077
30078 * parttool/pcpart.c: Rename to ...
30079 * parttool/msdospart.c: ... this. Update all users.
30080
30081 * include/grub/pc_partition.h: Rename to ...
30082 * include/grub/msdos_partition.h: ... this. Update all users.
30083 (grub_pc_partition_bsd_entry): Rename to ...
30084 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30085 (grub_pc_partition_disk_label): Rename to ...
30086 (grub_msdos_partition_disk_label): ... this. Update all users.
30087 (grub_pc_partition_entry): Rename to ...
30088 (grub_msdos_partition_entry): ... this. Update all users.
30089 (grub_pc_partition_mbr): Rename to ...
30090 (grub_msdos_partition_mbr): ... this. Update all users.
30091 (grub_pc_partition): Rename to ...
30092 (grub_msdos_partition): ... this. Update all users.
30093 (grub_pc_partition_is_empty): Rename to ...
30094 (grub_msdos_partition_is_empty): ... this. Update all users.
30095 (grub_pc_partition_is_extended): Rename to ...
30096 (grub_msdos_partition_is_extended): ... this. Update all users.
30097 (grub_pc_partition_is_bsd): Rename to ...
30098 (grub_msdos_partition_is_bsd): ... this. Update all users.
30099
30100 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30101 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30102 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30103 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30104 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30105 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30106 (gpt_mod_LDFLAGS): Rename to ...
30107 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30108 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30109 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30110 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30111 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30112 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30113 (part_gpt_mod_LDFLAGS): ... this.
30114 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30115 `pcpart.mod' to `msdospart.mod'.
30116 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30117 to ...
30118 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30119 (msdospart_mod_LDFLAGS): ... this.
30120
c11fded5 301212009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30124 (openbsd_opts): Likewise.
30125 (netbsd_opts): Likewise.
30126 (freebsd_flags): Added 0 terminator.
30127 (openbsd_flags): Likewise.
30128 (netbsd_flags): Likewise.
30129 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30130 (grub_cmd_freebsd): Transformed into extended command.
30131 (grub_cmd_openbsd): Likewise.
30132 (grub_cmd_netbsd): Likewise.
30133 (cmd_freebsd): Changed type to grub_extcmd_t.
30134 (cmd_openbsd): Likewise.
30135 (cmd_netbsd): Likewise.
30136 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30137 grub_cmd_openbsd as extended commands.
30138 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30139 cmd_netbsd and cmd_openbsd
30140
11d1c769 301412009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30142
30143 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30144
7a9094e5 301452009-08-21 Pavel Roskin <proski@gnu.org>
30146
5496c37e 30147 * Makefile.in (install-local): When checking if a file is in the
30148 build directory, use "test -e" to detect symlinks.
30149
7a9094e5 30150 * Makefile.in (install-local): Remove all files in
30151 $(DESTDIR)$(pkglibdir) before installing new files there.
30152
e53cea11 301532009-08-18 Felix Zielcke <fzielcke@z-51.de>
30154
30155 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30156 grub-mkelfimage.
30157
9aced544 301582009-08-18 Felix Zielcke <fzielcke@z-51.de>
30159
30160 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30161 explicitly specified by the user.
30162
b7da6bab 301632009-08-18 Pavel Roskin <proski@gnu.org>
30164
30165 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30166 grub_uint8_t pointer for data.
30167 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30168 Likewise.
30169 * video/fb/fbutil.c: Remove unnecessary casts.
30170
19f1b335 301712009-08-17 Michal Suchanek <hramrach@centrum.cz>
30172
30173 VBE cleanup.
30174
30175 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30176 (grub_vbe_set_video_mode): Save active mode info
30177 only after setting the mode.
30178 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30179 second argument.
30180
2f467aa9 301812009-08-17 Michal Suchanek <hramrach@centrum.cz>
30182
30183 Rename variables for clarity.
30184
30185 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30186 (active_vbe_mode_info): ... this. All users updated.
30187 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30188 All users updated.
30189 (initial_mode): Rename to ...
30190 (initial_vbe_mode): ... this. All users updated.
30191 (mode_in_use): Rename to ..
30192 (vbe_mode_in_use): ... this. All users updated.
30193 (mode_list): Rename to ..
30194 (vbe_mode_list): ... this. All users updated.
30195 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30196 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30197 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30198 'mode_list_size' to 'vbe_mode_list_size'.
30199 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30200 'best_mode_info' to 'best_vbe_mode_info' and
30201 'best_mode' to 'best_vbe_mode'
30202
6025fcd7 302032009-08-17 Michal Suchanek <hramrach@centrum.cz>
30204
30205 Remove duplicate grub_video_fb_get_video_ptr.
30206
30207 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30208 (grub_video_fb_get_video_ptr): ... this.
30209 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30210 * video/fb/fbutil.c: Add comment about addressing.
30211 (get_data_ptr): Rename to ...
30212 (grub_video_fb_get_video_ptr): ... this. All users updated.
30213 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30214
cc8c6faf 302152009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30216
30217 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30218 grub_dprintf() that was just added.
30219
08aa61f0 302202009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30221
30222 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30223 (DEFAULT_VIDEO_MODE): Remove macros.
30224 (grub_linux_boot): Remove assumption that Linux has FB support,
30225 and use "text" as default video mode.
30226
7cef4f75 302272009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30228
30229 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30230 grub_dprintf.
30231 * fs/fat.c (grub_fat_read_data): Likewise.
30232
e1f39873 302332009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30234
30235 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30236 payload.
30237 (grub_module): Likewise.
30238
c166d79e 302392009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30242 mbi->cmdline but free playground.
30243
c60cee8e 302442009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 Handle group offset on UFS1.
30247
30248 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30249 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30250
c0d8b5d4 302512009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30252
30253 Split ufs.mod into ufs1.mod and ufs2.mod.
30254
30255 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30256 (grub_fstest_SOURCES): Likewise.
30257 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30258 (ufs_mod_SOURCES): Remove.
30259 (ufs_mod_CFLAGS): Likewise.
30260 (ufs_mod_LDFLAGS): Likewise.
30261 (ufs1_mod_SOURCES): New variable.
30262 (ufs1_mod_CFLAGS): Likewise.
30263 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 30264 (ufs2_mod_SOURCES): New variable.
30265 (ufs2_mod_CFLAGS): Likewise.
30266 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 30267 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30268 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30269 Likewise.
30270 (grub_emu_SOURCES): Likewise.
30271 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30272 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30273 (grub_setup_SOURCES): Likewise.
30274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30275 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30276 (grub_setup_SOURCES): Likewise.
30277 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30278 Likewise.
30279 * fs/ufs2.c: New file.
30280 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30281
d3539132 302822009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30283
30284 Framebuffer split.
30285
30286 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30287 subsystem at the end.
30288 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30289 (video_fb_mod_SOURCES): New variable.
30290 (video_fb_mod_CFLAGS): Likewise.
30291 (video_fb_mod_LDFLAGS): Likewise.
30292 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30293 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30294 * video/i386/pc/vbeblit.c: Moved from here ...
30295 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30296 * video/i386/pc/vbefill.c: Moved from here ...
30297 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30298 * video/i386/pc/vbeutil.c: Moved from here ...
30299 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30300 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30301 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30302 * include/grub/i386/pc/vbefill.h: Moved from here ...
30303 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
30304 * include/grub/i386/pc/vbeutil.h: Moved from here ...
30305 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
30306 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
30307 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
30308 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
30309 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
30310 (grub_video_adapter): Added 'get_info_and_fini'.
30311 (grub_video_get_info_and_fini): New prototype.
30312 (grub_video_set_mode): make modestring const char *.
30313 * loader/i386/linux.c (grub_linux_setup_video): Use
30314 grub_video_get_info_and_fini.
30315 (grub_linux_boot): Move modesetting just before booting.
30316 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
30317 grub_video_get_info_and_fini.
30318 * video/i386/pc/vbe.c: Moved framebuffer part ...
30319 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
30320 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
30321 grub_video_fbstd_colors and grub_video_fb_set_palette.
30322 (grub_video_vbe_init): Clear 'framebuffer' variable and use
30323 grub_video_fb_init.
30324 (grub_video_vbe_fini): Use grub_video_fb_fini.
30325 (grub_video_vbe_setup): Use framebuffer.render_target instead of
30326 render_target and use grub_video_fb_set_active_render_target and
30327 grub_video_fb_set_palette.
30328 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
30329 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
30330 (grub_video_vbe_adapter): Use framebuffer.
30331 * video/video.c (grub_video_get_info_and_fini): New function.
30332 (grub_video_set_mode): Make modestring const char *.
30333 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
30334 values are already initialised.
30335
d404ee56 303362009-08-14 Pavel Roskin <proski@gnu.org>
30337
30338 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
30339 ABS and APPLE_CC.
30340 * boot/i386/pc/diskboot.S: Likewise.
30341 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
30342 sectors allow compilation on MacOSX.
30343 * conf/i386-pc.rmk: Enable unconditional compilation of
30344 lnxboot.img.
30345
9a10df16 303462009-08-13 Colin Watson <cjwatson@ubuntu.com>
30347
30348 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
30349 * util/grub.d/00_header.in: Enter interruptible sleep if
30350 GRUB_HIDDEN_TIMEOUT is set.
30351
be3c9ca7 303522009-08-13 Yves Blusseau <blusseau@zetam.org>
30353
30354 * include/grub/symbol.h: Add the LOCAL macro.
30355 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
30356 starting with "L_".
30357
1f9e557e 303582009-08-13 Pavel Roskin <proski@gnu.org>
30359
9ca62843 30360 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
30361 any modern compilers we support.
30362
1f9e557e 30363 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
30364 Use local labels starting with "L_" so that Apple assembler
30365 knows they are local.
30366
81623db6 303672009-08-10 Robert Millan <rmh.grub@aybabtu.com>
30368
30369 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
30370 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
30371 (bsd_kernel_types): ... this enum.
30372
30373 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
30374 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
30375 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
30376
30377 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
30378 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
30379 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
30380 messages.
30381
f5d35e7a 303822009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30383
30384 * util/grub-dumpdevtree: Moved from here ...
30385 * util/i386/efi/grub-dumpdevtree: ... to here.
30386 (hexify): New function. Converts a string to its hex version.
30387 Generate hex versions of "efi" and "device-properties" by calling
30388 hexify() on the ASCII strings rather than by hardcoding numbers.
30389
d1e1d527 303902009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30391
30392 * fs/jfs.c: Update copyright year.
30393
1ebbe064 303942009-08-08 Felix Zielcke <fzielcke@z-51.de>
30395
30396 * util/grub.d/00_header.in: Fix a comment.
30397 * util/grub.d/10_linux.in: Likewise.
30398 * util/grub.d/10_windows.in: Likewise.
30399 * util/grub.d/10_hurd.in: Likewise.
30400
a78c8d24 304012009-08-08 Felix Zielcke <fzielcke@z-51.de>
30402
30403 * util/grub-mkconfig.in: Allow the user to specify the used font
30404 with GRUB_FONT.
30405
29a6b9e8 304062009-08-08 Pavel Roskin <proski@gnu.org>
30407
b5f16cc4 30408 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
30409 available, xfs.mod needs it now.
30410
2f5cb827 30411 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
30412 the "g" modifier in sed when the intention is to strip something
30413 once. This fixes comparison of kernels with multiple dashes.
30414
29a6b9e8 30415 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
30416 on it. Add missing space before closing bracket. Fix
30417 misleading formatting.
30418
892a3d98 304192009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30420
30421 * docs/grub.texi: Major overhaul. Remove all sections that are
30422 specific to GRUB Legacy, or mostly composed of Legacy-specific
30423 information.
30424
ed94253f 304252009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30426
30427 * docs/version.texi: New file. Provides version information for
30428 grub.texi.
30429
126d6628 304302009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30431
30432 * docs/grub.texi: Update CVS information to SVN.
30433 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
30434
998b5aa9 304352009-08-07 Felix Zielcke <fzielcke@z-51.de>
30436
30437 * util/grub-mkconfig.in: Remove a wrong `fi'.
30438
818e094a 304392009-08-07 Felix Zielcke <fzielcke@z-51.de>
30440
30441 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30442 (grub_jfs_uuid): New function.
30443 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
30444
b969c52f 304452009-08-07 Felix Zielcke <fzielcke@z-51.de>
30446
30447 * util/grub-mkconfig_lib.in (font_path): Move the functionality
30448 of it to ...
30449 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
30450 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
30451
7a4894cc 304522009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30453
30454 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
30455 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
30456 Update all users.
30457
30458 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
30459 not just "vmlinu[zx]".
30460 Moved from here ...
30461 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
30462 all users.
30463
30464 * util/grub.d/10_linux.in (find_latest): Moved from here ...
30465 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
30466 all users.
30467
4e2171f8 304682009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30469
30470 * util/grub.d/10_freebsd.in: Use an absolute device path for
30471 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
30472
6dcfcb32 304732009-08-06 Felix Zielcke <fzielcke@z-51.de>
30474
30475 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
30476 handling of multiple abstraction modules.
30477
f56a8756 304782009-08-04 Robert Millan <rmh.grub@aybabtu.com>
30479
30480 Fix a bug resulting in black screen when loading Linux using a
30481 packed video mode.
30482
30483 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
30484 function.
30485
30486 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
30487 (grub_vbe_bios_getset_dac_palette_width): New function.
30488 (grub_vbe_bios_get_dac_palette_width)
30489 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
30490 grub_vbe_bios_getset_dac_palette_width()).
30491
30492 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
30493 check for return status.
30494 (grub_vbe_get_video_mode_info): When getting information for a packed
30495 mode (<= 8 bpp), obtain DAC palette width using
30496 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
30497 {red,green,blue}_mark_size.
30498
222671b2 304992009-08-04 Felix Zielcke <fzielcke@z-51.de>
30500
ecb1a6d9 30501 * commands/search.c (options): Fix help output to match actual code.
222671b2 30502
f84114f5 305032009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
30504
30505 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
30506 of homegrown code.
30507
bd288a20 305082009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 30509
30510 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
30511 on XFS or ReiserFS.
30512
8aab5e25 305132009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
30514
30515 Support Apple partition map with sector size different from 512 bytes.
30516
30517 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
30518 (apple_partition_map_iterate): Respect 'aheader.blocksize'
30519 and 'apart.partmap_size'.
30520
6ad6258a 305212009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
305222009-08-01 Robert Millan <rmh.grub@aybabtu.com>
30523
30524 Fix cpuid command.
30525
30526 * commands/i386/cpuid.c (options): New variable.
30527 (grub_cmd_cpuid): Return real error.
30528 (GRUB_MOD_INIT(cpuid)): Declare options.
30529
67459bc6 305302009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
30531
30532 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
30533 valid.
30534
fbc6ab54 305352009-07-31 Bean <bean123ch@gmail.com>
30536
30537 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
30538 log2_inode.
30539 (grub_fshelp_node): Move inode field to the end.
30540 (grub_xfs_data): Remove inode field.
30541 (grub_xfs_inode_block): Calculate inode size using sblock.
30542 (grub_xfs_inode_offset): Likewise.
30543 (grub_xfs_read_inode): Calculate inode size using sblock.
30544 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
30545 (grub_xfs_iterate_dir): Calculate inode size using sblock.
30546 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
30547 to match inode size.
30548 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
30549 not accessible when data is null.
30550 (grub_xfs_open): Likewise.
30551
f45d6cfc 305522009-07-31 Bean <bean123ch@gmail.com>
30553
30554 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
30555 Don't change pv->disk if it's already set.
30556
30557 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
30558 (grub_raid_register): ... here.
30559 (grub_raid_rescan): Removed.
30560
30561 * include/grub/raid.h (grub_raid_rescan): Removed.
30562
30563 * util/grub-fstest.c: Remove include file <grub/raid.h>.
30564 (fstest): Replace grub_raid_rescan with module fini function followed
30565 by init function.
30566
30567 * util/grub-probe.c: Add include file <grub/raid.h>.
30568 (probe_raid_level): New function.
30569 (probe): Detect abstraction by walking the disk device, support two
30570 level of abstraction (LVM on RAID) when detecting partition map.
30571
24443b5a 305722009-07-31 Pavel Roskin <proski@gnu.org>
30573
30574 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
30575 to grub_zalloc(), it was erroneous.
30576 Reported by Bean <bean123ch@gmail.com>
30577
a275d9e7 305782009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 30581 embedding zone, not only the first one.
a275d9e7 30582
56c5a47f 305832009-07-29 Joe Auricchio <jauricchio@gmail.com>
30584
30585 * term/gfxterm.c (clear_char): New function.
30586 (grub_virtual_screen_setup): Use clear_char.
30587 (scroll_up): Likewise.
30588 (grub_virtual_screen_cls): Likewise.
30589
67bb323a 305902009-07-29 Felix Zielcke <fzielcke@z-51.de>
30591
30592 * util/deviceiter.c (get_acceleraid_disk_name): New static
30593 function.
30594 (grub_util_iterate_devices): Handle Accelraid devices.
30595 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
30596
388a7c75 305972009-07-28 Robert Millan <rmh.grub@aybabtu.com>
30598
30599 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
30600 separator for the suggested gfxpayload string (';' collides with the
30601 parser and needs escaping).
30602
3bb7abcf 306032009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
30604
30605 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
30606 Clear direction flag before jumping to OS.
30607 (grub_multiboot2_real_boot): Likewise.
30608
2ddd36d7 306092009-07-28 Felix Zielcke <fzielcke@z-51.de>
30610
30611 * util/i386/pc/grub-install: Fix parsing of --disk-module
30612 option.
30613
c521b62b 306142009-07-28 Felix Zielcke <fzielcke@z-51.de>
30615
30616 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
30617 when embedding.
30618
880e0a0c 306192009-07-26 Felix Zielcke <fzielcke@z-51.de>
30620
30621 * util/grub-mkconfig.in (package_version): New variable.
30622 Use it do display the version.
30623
2366e356 306242009-07-25 Felix Zielcke <fzielcke@z-51.de>
30625
30626 * kern/file.c (grub_file_open): Revert to previous check with
30627 grub_errno.
30628
7ad8c80e 306292009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30630
30631 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
30632 from help line. It's out of sync with code.
30633
72b9658b 306342009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30635
30636 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
30637 entries on failed boot.
30638
77435277 306392009-07-25 Felix Zielcke <fzielcke@z-51.de>
30640
30641 * kern/file.c (grub_file_open): Fix an error check.
30642
fcaa8b21 306432009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
30644
35d16c74 30645 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
30646 partition map couldn't be identified.
fcaa8b21 30647
48904cd1 306482009-07-23 Pavel Roskin <proski@gnu.org>
30649
ef3c317f 30650 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
30651 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
30652 case of little endian words becomes just an optimization.
30653 Respect const modifier.
ad8ea1f4 30654 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 30655
48904cd1 30656 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
30657 to avoid loss of upper bits if align is unsigned and shorter
30658 than addr.
30659
260c9a89 306602009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30661
30662 UUID support for UFS
30663
30664 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
30665 (grub_ufs_uuid): New function.
30666 (grub_ufs_fs): add .uuid
30667
f76ce889 306682009-07-21 Pavel Roskin <proski@gnu.org>
30669
30670 * kern/dl.c (grub_dl_check_header): Make static.
30671
6a6cbcaf 306722009-07-21 Felix Zielcke <fzielcke@z-51.de>
30673
30674 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
30675 add drivemap for Vista. It breaks Windows 7.
30676
cffcddb2 306772009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30678
30679 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
30680 128 bytes
30681
1ef44b80 306822009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30683
30684 Add BFS support
30685
30686 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
30687 (grub_fstest_SOURCES): Likewise.
30688 (pkglib_MODULES): Add befs.mod.
30689 (befs_mod_SOURCES): New variable.
30690 (befs_mod_CFLAGS): Likewise.
30691 (befs_mod_LDFLAGS): Likewise.
30692 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30694 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30695 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30696 (grub_setup_SOURCES): Likewise.
30697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30698 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30699 (grub_setup_SOURCES): Likewise.
30700 * fs/befs.c: New file.
30701 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
30702 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
30703 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
30704 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
30705 (B_KEY_INDEX_ALIGN): New declaration.
30706 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
30707 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
30708 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
30709 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
30710 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
30711 (grub_afs_mount) [MODE_BFS]: Likewise.
30712 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
30713 (grub_afs_fs): Use GRUB_AFS_FSNAME
30714 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
30715 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
30716 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
30717 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
30718
4f253044 307192009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
30720
30721 * util/getroot.c (find_root_device): Add support for MacOSX.
30722 * util/hostdisk.c: Likewise.
30723
57a55913 307242009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30725
30726 * font/font.c (find_glyph): Check whether a font is present to avoid
30727 segmentation fault.
75421ca9 30728
307292009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 30730
30731 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
30732
e98cd0c2 307332009-07-20 Pavel Roskin <proski@gnu.org>
30734
30735 * configure.ac: Trim excessively wordy excuses.
30736
1d2d169a 307372009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30738
30739 Add symlink, mtime and label support to AtheFS.
30740
30741 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
30742 (grub_afs_iterate_dir): Handle symlinks.
30743 (grub_afs_open): Use grub_afs_read_symlink.
30744 (grub_afs_dir): Likewise.
30745 Pass mtime.
30746 (grub_afs_label): New function.
30747 (grub_afs_fs): Add grub_afs_label.
30748 (grub_afs_read_symlink): New function.
30749
186f3189 307502009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30751
30752 Fix AtheFS support.
30753
30754 * fs/afs.c: Fix comments style.
30755 (grub_afs_blockrun): Declare as packed.
30756 (grub_afs_datastream): Likewise.
30757 (grub_afs_bnode): Likewise.
30758 (grub_afs_btree): Likewise.
30759 (grub_afs_sblock): Likewise.
30760 Declare `name' as char.
30761 (grub_afs_inode): Declare as packed.
30762 Change void *vnode to grub_uint32_t unused.
30763 (grub_afs_iterate_dir): Check that key_size is positive.
30764 (grub_afs_mount): Don't read superblock twice.
75421ca9 30765 (grub_afs_dir): Don't free node in case of error,
186f3189 30766 grub_fshelp_find_file already handles this.
30767 (grub_afs_open): Likewise.
30768
5680109e 307692009-07-19 Pavel Roskin <proski@gnu.org>
30770
30771 * Makefile.in: Remove LIBLZO and enable_lzo.
30772 * conf/i386-pc.rmk: Remove lzo support.
30773 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
30774 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
30775 support.
30776 * kern/i386/pc/lzo1x.S: Remove.
30777 * kern/i386/pc/startup.S: Remove lzo support.
30778 * util/i386/pc/grub-mkimage.c: Likewise.
30779
ac70fa32 307802009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
30781
30782 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
30783 * fs/xfs.c (grub_xfs_dir): Likewise.
30784 * fs/afs.c (grub_afs_dir): Likewise.
30785 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
30786 (grub_iso9660_open): Likewise.
30787 * fs/jfs.c (grub_jfs_open): Likewise.
30788 * fs/ext2.c (grub_ext2_dir): Likewise.
30789 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
30790 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 30791
eab58da2 307922009-07-16 Pavel Roskin <proski@gnu.org>
30793
d2838156 30794 * configure.ac: Never add "-c" to CFLAGS.
30795
55c70904 30796 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
30797
43e6200c 30798 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
30799 grub_cv_cc_efiemu should be used.
30800
ce7a733d 30801 * configure.ac: Typo fixes.
30802
eab58da2 30803 * kern/mm.c (grub_zalloc): New function.
30804 (grub_debug_zalloc): Likewise.
30805 * include/grub/mm.h: Declare grub_zalloc() and
30806 grub_debug_zalloc().
30807 * util/misc.c (grub_zalloc): New function.
30808 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
30809 instead of grub_malloc(), remove unneeded initializations.
30810 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
30811 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
30812 * commands/parttool.c (grub_cmd_parttool): Likewise.
30813 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
30814 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
30815 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
30816 * disk/usbms.c (grub_usbms_finddevs): Likewise.
30817 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
30818 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
30819 (grub_cmd_efiemu_pnvram): Likewise.
30820 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
30821 * fs/iso9660.c (grub_iso9660_mount): Likewise.
30822 (grub_iso9660_iterate_dir): Likewise.
30823 * fs/jfs.c (grub_jfs_opendir): Likewise.
30824 * fs/ntfs.c (list_file): Likewise.
30825 (grub_ntfs_mount): Likewise.
30826 * kern/disk.c (grub_disk_open): Likewise.
30827 * kern/dl.c (grub_dl_load_core): Likewise.
30828 * kern/elf.c (grub_elf_file): Likewise.
30829 * kern/env.c (grub_env_context_open): Likewise.
30830 (grub_env_set): Likewise.
30831 (grub_env_set_data_slot): Likewise.
30832 * kern/file.c (grub_file_open): Likewise.
30833 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30834 * loader/i386/multiboot.c (grub_module): Likewise.
30835 * loader/xnu.c (grub_xnu_create_key): Likewise.
30836 (grub_xnu_create_value): Likewise.
30837 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30838 (read_config_file): Likewise.
30839 * normal/menu_entry.c (make_screen): Likewise.
30840 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30841 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30842 * script/sh/script.c (grub_script_parse): Likewise.
30843 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30844 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30845 * video/readers/png.c (grub_png_output_byte): Likewise.
30846 (grub_video_reader_png): Likewise.
30847
830afef7 308482009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30849
30850 Enable all targets that can be built by default
30851
830afef7 30852 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30853 grub-mkfont and grub-fstest if they can be built
30854
ee293aee 308552009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30856
30857 Fix hang and segmentation fault in grub-emu-usb
30858
30859 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30860 * util/usb.c (grub_libusb_devices): likewise
30861 (grub_libusb_init): rename to ...
30862 (GRUB_MOD_INIT (libusb)):...this
30863 (grub_libusb_fini): rename to ..
30864 (GRUB_MOD_FINI (libusb)):...this
30865 * disk/usbms.c (grub_usbms_transfer): fix retry logic
30866 * include/grub/disk.h (grub_raid_init): removed, it's useless
30867 (grub_raid_fini): likewise
30868 (grub_lvm_init): likewise
30869 (grub_lvm_fini): likewise
30870 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
30871 by grub_init_all
30872
94414221 308732009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30874
30875 Fix libusb
30876
30877 * Makefile.in (LIBUSB): new macro
30878 * genmk.rb (Utility/print_tail): new method
30879 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30880 (top level): call util.print_tail at the end.
30881
59ade63d 308822009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30883
30884 Make FreeBSD accept zpool.cache
30885
30886 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30887 type is /boot/zfs/zpool.cache
30888
a58da8c7 308892009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30890
30891 Fix 64-bit efiemu
30892
30893 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30894 correct wrong typedef
30895 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30896
20591577 308972009-07-15 Pavel Roskin <proski@gnu.org>
30898
560ca572 30899 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30900 * kern/disk.c (struct grub_disk_cache): Likewise.
30901
e8e8e4fd 30902 * commands/probe.c (options): Typo fix.
30903
fde24e10 30904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30905 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30906 accordingly.
30907 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30908
379c54c1 30909 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30910 the end of "Error" to make the message more readable.
30911
7bd8f5bf 30912 * boot/i386/pc/boot.S (kernel_segment): Remove.
30913 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30914 for destination.
30915
40b132c5 30916 * boot/i386/pc/boot.S (boot_version): Remove.
30917 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30918 Remove.
30919
20591577 30920 * include/grub/i386/pc/boot.h: Sort all offsets.
30921 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30922 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30923 * boot/i386/pc/boot.S: Assert location of every offset listed in
30924 include/grub/i386/pc/boot.h.
30925
2df32b2c 309262009-07-13 Pavel Roskin <proski@gnu.org>
30927
44b5d879 30928 * include/grub/i386/coreboot/machine.h: Rename
30929 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30930 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30931 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30932
17dc3751 30933 * kern/dl.c: Force native word size to suppress warnings when
30934 compiling grub-emu.
30935
2df32b2c 30936 * kern/device.c (grub_device_iterate): Change struct part_ent to
30937 hold the name, not a pointer to it. Use one grub_malloc() per
30938 partition, not two. Free partition_name if grub_malloc() fails.
30939 Set ents to NULL only before grub_partition_iterate() is called.
30940
75c59f59 309412009-07-11 Bean <bean123ch@gmail.com>
30942
30943 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30944 childname.
30945
0ae1bf88 309462009-07-10 Bean <bean123ch@gmail.com>
309472009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30948
30949 * kern/ieee1275/openfw.c (grub_children_iterate)
30950 (grub_devalias_iterate): Fix size evaluation for property or path
30951 strings, which was broken since r2132.
30952
8279cade 309532009-07-07 Pavel Roskin <proski@gnu.org>
30954
7d8a52d3 30955 * commands/search.c (search_file): Merge into ...
30956 (search_fs): ... this. Accept search type as argument.
30957 (grub_cmd_search): Pass search type to search_fs().
30958
25f9a05a 30959 * include/grub/util/console.h: New file.
30960 * util/console.c: Use it instead of grub/machine/console.h.
30961 * util/grub-emu.c: Likewise.
30962
8279cade 30963 * lib/arg.c (find_long_option): Remove.
30964 (find_long): Add `len' argument, make `s' const char *.
30965 (grub_arg_parse): Parse long options in place, not in a
30966 temporary buffer.
30967
4a11b60f 309682009-07-06 Pavel Roskin <proski@gnu.org>
30969
99f68041 30970 * commands/search.c (search_fs): Fix potential NULL pointer
30971 dereference.
30972
4a11b60f 30973 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30974 function pointer.
30975
e110f4de 309762009-07-06 Daniel Mierswa <impulze@impulze.org>
30977
30978 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30979 comparison.
30980
46eeb6a2 309812009-07-05 Pavel Roskin <proski@gnu.org>
30982
bab74958 30983 * include/grub/i386/linux.h (struct linux_kernel_params):
30984 Restore padding3, it's still needed.
30985
46eeb6a2 30986 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30987 FreeBSD.
30988 * util/osdetect.lua: Likewise.
30989
b4a1dc79 309902009-07-05 Bean <bean123ch@gmail.com>
30991
30992 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30993
30994 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30995 (grub_lua_getenv): Likewise.
30996 (grub_lua_setenv): Likewise.
30997 (save_errno): New function.
30998 (push_result): Likewise.
30999 (grub_lua_enum_device): Likewise.
31000 (grub_lua_enum_file): Likewise.
31001 (grub_lua_file_open): Likewise.
31002 (grub_lua_file_close): Likewise.
31003 (grub_lua_file_seek): Likewise.
31004 (grub_lua_file_read): Likewise.
31005 (grub_lua_file_getline): Likewise.
31006 (grub_lua_file_getsize): Likewise.
31007 (grub_lua_file_getpos): Likewise.
31008 (grub_lua_file_eof): Likewise.
31009 (grub_lua_file_exist): Likewise.
31010 (grub_lua_add_menu): Likewise.
31011
31012 * script/lua/grub_lua.h (isupper): New inline function.
31013 (islower): Likewise.
31014 (ispunct): Likewise.
31015 (isxdigit): Likewise.
31016 (strcspn): Change to normal function.
31017 (strpbkr): New function declaration.
31018 (memchr): Likewise.
31019
31020 * script/lua/grub_main.c (scan_str): New function.
31021 (strcspn): Likewise.
31022 (strpbrk): Likewise.
31023 (memchr): Likewise.
31024
31025 * script/lua/linit.c (lualibs): Enable the string library.
31026
31027 * util/osdetect.lua: New file.
31028
2da92295 310292009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31030
31031 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31032 `capabilities' member.
31033
b2582ec9 310342009-07-02 Pavel Roskin <proski@gnu.org>
31035
31036 * genparttoollist.sh: Add missing newline at the end.
31037
32622956 310382009-07-01 Pavel Roskin <proski@gnu.org>
31039
87a7339e 31040 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31041
d23af54e 31042 * util/hostdisk.c (open_device): Remove `const' from
31043 `sysctl_size', as sysctlbyname() can change it (in this case it
31044 doesn't actually happen).
31045
c94b18a9 31046 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31047 using signed long int constants.
31048
c6cd3ef0 31049 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31050 constant to avoid a warning on FreeBSD.
31051
0df63420 31052 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31053 where it's needed.
31054
999577f1 31055 * Makefile.in: Install include/grub/machine symlink.
31056
6f41557f 31057 * Makefile.in: When installing symlinks, use "cp -fR", which
31058 works on FreeBSD and MacOSX.
31059 From Yves Blusseau <cl7m42e02@sneakemail.com>
31060
c8d22988 31061 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31062 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31063
1b96e952 31064 * util/misc.c: Move grub_reboot() and grub_halt() ...
31065 * util/grub-emu.c: ... here. Make main_env static.
31066 * include/grub/util/misc.h: Remove main_env.
31067
2ef0084d 31068 * kern/mm.c: Use correct format to print size_t.
31069
32622956 31070 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31071 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31072 * kern/powerpc/dl.c: Likewise.
31073 * kern/sparc64/dl.c: Likewise.
31074 * kern/x86_64/dl.c: Likewise.
31075
3f7f0cd0 310762009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31077
31078 Fix grub-emu build on sparc64-ieee1275.
31079
75421ca9 31080 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 31081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31082
211d06b5 310832009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31084
31085 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31086 (grub_reboot, grub_halt): New functions.
31087
31088 * util/i386/pc/misc.c: Delete. Update all users.
31089 * util/sparc64/ieee1275/misc.c: Likewise.
31090 * util/powerpc/ieee1275/misc.c: Likewise.
31091
aaf53e3c 310922009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31093
31094 * conf/i386.rmk (setjmp_mod_SOURCES)
31095 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31096 * conf/common.rmk (setjmp_mod_SOURCES)
31097 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31098 to use $(target_cpu).
31099 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31100 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31101 * conf/powerpc-ieee1275.rmk: Likewise.
31102 * conf/sparc64-ieee1275.rmk: Likewise.
31103
31104 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31105 $(target_cpu) for kern/$(target_cpu)/dl.c.
31106 * conf/i386-efi.rmk: Likewise.
31107 * conf/i386-ieee1275.rmk: Likewise.
31108 * conf/x86_64-efi.rmk: Likewise.
31109 * conf/i386-coreboot.rmk: Likewise.
31110 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31111 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31112 kern/$(target_cpu)/cache.S.
31113 * conf/sparc64-ieee1275.rmk: Likewise.
31114
a337130b 311152009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31116
31117 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31118 type to `grub_uint8_t', and adjust `padding9' accordingly.
31119
c6fe4d53 311202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31121
b09db61d 31122 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31123
c6fe4d53 31124 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31125 assembly in final jump, using register constraints.
31126
b09db61d 31127 (grub_linux_boot): For text mode, initialize `have_vga' using
31128 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31129
31130 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31131 right before the final jump.
31132
31133 Set `video_mode' to 0x3.
31134
31135 Document initialization of `video_page', `video_mode' and
31136 `video_ega_bx'.
31137
28333ad0 311382009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31139
31140 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31141 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 31142 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 31143
02164e1b 311442009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31145
31146 Fix build on Debian / sparc.
31147
31148 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31149
18b6c557 311502009-06-28 Pavel Roskin <proski@gnu.org>
31151
85f2aab6 31152 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31153 fix a warning.
31154
18b6c557 31155 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31156
ad760f81 311572009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31158
31159 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31160 `err'.
31161
87a4623b 311622009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31163
31164 Revert r2338.
31165
31166 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31167 file can't be opened. grub_file_open() is already supposed to set
75421ca9 31168 grub_errno / grub_errmsg appropriately.
87a4623b 31169 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31170
8231fb77 311712009-06-27 Pavel Roskin <proski@gnu.org>
311722009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31173
31174 * include/grub/dl.h: Include grub/elf.h.
31175 (struct grub_dl): Add symtab field.
31176 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31177 GRUB_MODULES_MACHINE_READONLY.
31178 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31179 of the header for read-only modules.
31180 (grub_dl_unload): Free mod->symtab for read-only modules.
31181 * kern/i386/dl.c: Use mod->symtab.
31182 * kern/powerpc/dl.c: Likewise.
31183 * kern/sparc64/dl.c: Likewise.
31184 * kern/x86_64/dl.c: Likewise.
31185
31186 * conf/i386-qemu.rmk: New file.
31187 * kern/i386/qemu/startup.S: Likewise.
31188 * kern/i386/qemu/mmap.c: Likewise.
31189 * boot/i386/qemu/boot.S: Likewise.
31190 * include/grub/i386/qemu/time.h: Likewise.
31191 * include/grub/i386/qemu/serial.h: Likewise.
31192 * include/grub/i386/qemu/kernel.h: Likewise.
31193 * include/grub/i386/qemu/console.h: Likewise.
31194 * include/grub/i386/qemu/boot.h: Likewise.
31195 * include/grub/i386/qemu/init.h: Likewise.
31196 * include/grub/i386/qemu/machine.h: Likewise.
31197 * include/grub/i386/qemu/loader.h: Likewise.
31198 * include/grub/i386/qemu/memory.h: Likewise.
31199
31200 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31201 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31202 [qemu] (pkglib_IMAGES): Add `boot.img'.
31203 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31204 [qemu] (boot_img_FORMAT): New variables.
31205 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31206 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31207 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31208 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31209 [qemu] (kernel_img_FORMAT): New variables.
31210
31211 * configure.ac: Recognise `i386-qemu'.
31212
31213 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31214 (for no compression).
31215 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31216 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31217 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31218 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31219 ifdefs).
31220
97fe384e 312212009-06-27 Pavel Roskin <proski@gnu.org>
31222
31223 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31224 read.
31225 * efiemu/prepare32.c: Likewise.
31226 * efiemu/prepare64.c: Likewise.
31227
c402ab17 312282009-06-26 Pavel Roskin <proski@gnu.org>
31229
31230 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31231 * include/grub/elf.h: Define symbols without "32" or "64" based
31232 on GRUB_TARGET_WORDSIZE.
31233 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31234 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31235 ELF definitions.
31236 * efiemu/loadcore64.c: Likewise.
31237 * loader/i386/bsd32.c: Likewise.
31238 * loader/i386/bsd64.c: Likewise.
31239 * kern/dl.c: Remove own ELF definitions.
31240 * util/i386/efi/grub-mkimage.c: Likewise.
31241
9bbdfd4d 312422009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31243
31244 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31245 segment 0x0 unconditionally, because the reference generated by
31246 GAS is an absolute address.
31247
a42ce6e9 312482009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31249
31250 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31251 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31252
c952cf92 312532009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31254
31255 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31256 indexes. Check for -f explicitly.
cc3752ad 31257 (search_file): Improve error message.
31258 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 31259
132a0a59 312602009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31261
31262 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31263 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31264
387a140c 312652009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31266
31267 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31268 * conf/i386-ieee1275.rmk: Likewise.
31269 * conf/i386-coreboot.rmk: Likewise.
31270
31271 * kern/i386/pc/startup.S (grub_stop): Remove function.
31272 * kern/i386/ieee1275/startup.S: Likewise.
31273 * kern/i386/coreboot/startup.S: Likewise.
31274 * kern/i386/misc.S (grub_stop): New function.
31275
41da9665 312762009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31277
31278 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31279 * kern/i386/realmode.S (real_to_prot): ... to here.
31280
bf337234 312812009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31282
31283 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31284 with `kernel.img'.
31285 (kernel_elf_SOURCES): Rename to ...
31286 (kernel_img_SOURCES): ... this.
31287 (kernel_elf_HEADERS): Rename to ...
31288 (kernel_img_HEADERS): ... this. Update all users.
31289 (kernel_elf_ASFLAGS): Rename to ...
31290 (kernel_img_ASFLAGS): ... this.
31291 (kernel_elf_CFLAGS): Rename to ...
31292 (kernel_img_CFLAGS): ... this.
31293 (kernel_elf_LDFLAGS): Rename to ...
31294 (kernel_img_LDFLAGS): ... this.
31295 * conf/i386-coreboot.rmk: Likewise.
31296 * conf/powerpc-ieee1275.rmk: Likewise.
31297
31298 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31299 with "kernel.img".
31300
f52196ff 313012009-06-21 Pavel Roskin <proski@gnu.org>
31302
c3cee413 31303 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
31304 to match nested functions.
31305 * loader/sparc64/ieee1275/linux.c: Likewise.
31306
f52196ff 31307 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
31308
58750afc 313092009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31310
31311 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
31312 all i386 platforms.
31313
15355c7d 313142009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31315
31316 Fix asm file handling on ELF, and remove workarounds.
31317
31318 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 31319 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 31320 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
31321 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
31322
3f3ec72b 313232009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
31324
31325 Load BSD ELF modules
31326
31327 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
31328 and loader/i386/bsd64.c
31329 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
31330 (FREEBSD_MODTYPE_ELF_MODULE): New definition
31331 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
31332 (grub_freebsd_load_elfmodule32): New declaration
31333 (grub_freebsd_load_elfmoduleobj64): Likewise
31334 (grub_freebsd_load_elf_meta32): Likewise
31335 (grub_freebsd_load_elf_meta64): Likewise
31336 (grub_freebsd_add_meta): Likewise
31337 (grub_freebsd_add_meta_module): Likewise
31338 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
31339 (grub_freebsd_add_meta_module): Likewise and move module-specific
31340 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
31341 (grub_cmd_freebsd): Add elf-kernel specific parts
31342 based on grub_freebsd_add_meta_module
31343 (grub_cmd_freebsd_module): Add type parsing moved from
31344 grub_freebsd_add_meta_module
31345 (grub_cmd_freebsd_module_elf): New function
31346 (cmd_freebsd_module_elf): New variable
31347 (GRUB_MOD_INIT): Register freebsd_module_elf
31348 * loader/i386/bsd32.c: New file
31349 * loader/i386/bsd64.c: Likewise
31350 * loader/i386/bsdXX.c: Likewise
31351 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
31352 (grub_elf64_load): Likewise
31353 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
31354 All users updated
31355 (grub_elf64_load_hook_t): Likewise
31356
0db15301 313572009-06-21 Colin Watson <cjwatson@ubuntu.com>
31358
31359 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
31360 variable.
31361 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
31362 don't write a menu entry for recovery mode.
31363
546796c1 313642009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31365
31366 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
31367 after it's no longer needed.
31368
cd7310d5 313692009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31370
31371 * include/grub/i386/loader.h (grub_linux_prot_size)
31372 (grub_linux_tmp_addr, grub_linux_real_addr)
31373 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
31374 GRUB_MACHINE_PCBIOS.
31375 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
31376 common grub_util_info() call to ...
31377 (generate_image): ... here.
31378 Fix use of uninitialized memory, comparison of signed with
31379 unsigned integers and memory leak.
31380 Remove bogus module address message.
31381
ab32d3b5 313822009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
31383
31384 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
31385 grub_raid_register
31386 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
31387
024ef597 313882009-06-19 Pavel Roskin <proski@gnu.org>
31389
31390 * configure.ac: Remove stray AC_MSG_CHECKING.
31391
3ac72b51 313922009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
31393
31394 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 31395
e14cd814 313962009-06-18 Pavel Roskin <proski@gnu.org>
31397
31398 * conf/common.rmk: Add fs_file.mod.
31399 * disk/fs_file.c: New file.
31400 * include/grub/disk.h (enum grub_disk_dev_id): Add
31401 GRUB_DISK_DEVICE_FILE_ID.
31402
26586d98 314032009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31404
31405 Fix build with Apple's toolchain. Part 2
31406
31407 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
31408 a fake start
31409
26de2bcd 314102009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31411
31412 Fix build with Apple's toolchain. Part 1
31413
31414 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
31415 for long calls
31416 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 31417 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 31418 Apple's toolchain
31419
09b3490b 314202009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31421
31422 Fix warnings
31423
31424 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
31425 (decomp_block): initialize ch
31426 use grub_memcpy instead of memcpy
31427
c22a006a 314282009-06-17 Pavel Roskin <proski@gnu.org>
31429
d3638678 31430 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
31431 version, use declarations needed to use vga_text as the startup
31432 console.
31433
c22a006a 31434 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
31435 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
31436 the kernel.
31437 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
31438 and grub_at_keyboard_fini(), it's done on module load and
31439 unload.
31440
05b129e0 314412009-06-17 Felix Zielcke <fzielcke@z-51.de>
31442
31443 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
31444 file can't be found.
31445 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31446
cf24ed9e 314472009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31448
31449 Fix newline handling
31450
31451 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 31452 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 31453 (grub_script_yylex): don't segfault on unterminated script
31454 newline terminates command and variable
31455
74aa8e4b 314562009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31457
31458 avoid double grub_adjust_range call. Bug reported by David Simner
31459
31460 * kern/disk.c (grub_disk_write): change to raw disk access before
31461 calling disk_read
31462
1bd265f3 314632009-06-17 Colin Watson <cjwatson@ubuntu.com>
31464
31465 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
31466 spaces, for the benefit of help2man.
31467 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31468
a2d08c06 314692009-06-16 Pavel Roskin <proski@gnu.org>
31470
31471 * kern/i386/halt.c: Include grub/machine/init.h.
31472 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
31473
b97bcb19 314742009-06-16 Felix Zielcke <fzielcke@z-51.de>
31475
31476 * util/grub.d/30_os-prober.in: Use ${root} in the generated
31477 drivemap menuentry.
31478
0644f96c 314792009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
31480
31481 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
31482 `echo' command.
31483
3ef17a2e 314842009-06-16 Pavel Roskin <proski@gnu.org>
31485
31486 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
31487 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
31488 save %dx, we only need %dl and we never change it.
31489 * boot/i386/pc/cdboot.S: Don't set the root drive.
31490 * boot/i386/pc/pxeboot.S: Likewise.
31491 * include/grub/i386/pc/boot.h: Remove
31492 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
31493 GRUB_BOOT_MACHINE_DRIVE_CHECK.
31494 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
31495 * kern/i386/pc/init.c (make_install_device): Remove references
31496 to grub_root_drive.
31497 * kern/i386/pc/startup.S: Likewise.
31498 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
31499
693fe637 315002009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31501
31502 xnu_uuid command
31503
31504 * commands/xnu_uuid.c: new file
31505 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
31506 (xnu_uuid_mod_SOURCES): new variable
31507 (xnu_uuid_mod_CFLAGS): likewise
31508 (xnu_uuid_mod_LDFLAGS): likewise
31509 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31510 * conf/i386-ieee1275.rmk: likewise
31511 * conf/i386-pc.rmk: likewise
31512 * conf/powerpc-ieee1275.rmk: likewise
31513 * conf/sparc64-ieee1275.rmk: likewise
31514 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
31515
c9da87d0 315162009-06-16 Pavel Roskin <proski@gnu.org>
31517
31518 * configure.ac: Avoid '==' in test command, it's not portable.
31519
9c6f4596 315202009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31521
31522 Probe command
31523
31524 * commands/probe.c: new file
31525 * conf/common.rmk (pkglib_MODULES): add probe.mod
31526 (probe_mod_SOURCES): new variable
31527 (probe_mod_CFLAGS): likewise
31528 (probe_mod_LDFLAGS): likewise
31529 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31530 * conf/i386-ieee1275.rmk: likewise
31531 * conf/i386-pc.rmk: likewise
31532 * conf/powerpc-ieee1275.rmk: likewise
31533 * conf/sparc64-ieee1275.rmk: likewise
31534
70b7f9fd 315352009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
31536
31537 Fix handling of string like \"hello\" and "a
31538 b"
31539
31540 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
31541 (grub_script_yylex): fix parsing of quoting, escaping and newline
31542
71c79a6b 315432009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
31544
dd74360c 31545 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 31546 handling
dd74360c 31547
0644f96c 315482009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 31549
31550 * util/grub-mkconfig.in: Fix parsing of --output option.
31551
e40893c3 315522009-06-12 Pavel Roskin <proski@gnu.org>
31553
31554 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
31555 genmk.rb don't need to be generated or installed.
31556
3a1acfe2 315572009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
31558
31559 * commands/i386/pc/drivemap_int13h.S: add more comments
31560
3a4575d4 315612009-06-11 Pavel Roskin <proski@gnu.org>
31562
0658e928 31563 * Makefile.in (uninstall): Uninstall manuals.
31564
ca0388f0 31565 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
31566 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
31567 and update-grub_lib in two places.
31568 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
31569
e3b27c39 31570 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
31571 a compiler warning.
31572
3a4575d4 31573 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
31574 `entry_lo' to fix variable shadowing.
31575
af1f4f55 315762009-06-11 Christian Franke <franke@computer.org>
31577
31578 * kern/misc.c (__enable_execute_stack): Add missing return type
31579 to prevent gcc warning.
31580
5225e649 315812009-06-11 Felix Zielcke <fzielcke@z-51.de>
31582
31583 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
31584
7d83bd47 315852009-06-11 Pavel Roskin <proski@gnu.org>
31586
c1cb63ba 31587 * Makefile.in: Don't rely on any scripts being executable.
31588 Always use $(SHELL) to run shell scripts.
31589
7d83bd47 31590 * configure.ac: Always define ___main if using -nostdlib. This
31591 fixes tests on Cygwin.
31592
948f48e7 315932009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
31594
31595 UDF fix
31596
7d83bd47 31597 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 31598 is in bytes and not in blocks
7d83bd47 31599
8ada9bc1 316002009-06-11 Pavel Roskin <proski@gnu.org>
31601
31602 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
31603 warning.
31604
25ad2323 316052009-06-11 Felix Zielcke <fzielcke@z-51.de>
31606
31607 * util/grub.d/30_os-prober.in: Fix a comment. Source
31608 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
31609 to set the root device. Place drivemap command in the generated
31610 chain entry.
31611
e65acb0c 316122009-06-11 Pavel Roskin <proski@gnu.org>
31613
31614 * configure.ac: Remove host_m32. Issues with 64-bit utilities
31615 have long been resolved.
31616
f285fe2d 316172009-06-11 Colin Watson <cjwatson@ubuntu.com>
31618
bd47b0b5 31619 * util/grub.d/10_linux.in: Capitalise "Linux".
31620
f285fe2d 31621 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
31622
a0c62e4e 316232009-06-11 Pavel Roskin <proski@gnu.org>
31624
b6783cb2 31625 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
31626 fix a gcc warning and ensure that the function won't ever exit.
31627
dde032e8 31628 * kern/i386/ieee1275/init.c: Add missing prototype for
31629 grub_stop_floppy().
31630
22cd079d 31631 * loader/ieee1275/multiboot2.c [__i386__]: Include
31632 grub/cpu/multiboot.h.
31633
a0c62e4e 31634 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
31635 casts to short - they are not portable and cause warnings. Fix
31636 use of uninitialized values in input_buf. Use ARRAY_SIZE.
31637
63963d17 316382009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
31639
31640 Drivemap fixes
31641
31642 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
31643 new function
31644 (grub_get_root_biosnumber_saved): new variable
31645 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
31646 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 31647 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 31648 %dx after the call if necessary
31649 * conf/common.rmk (pkglib_MODULES): remove boot.mod
31650 (boot_mod_SOURCES): remove
31651 (boot_mod_CFLAGS): remove
31652 (boot_mod_LDFLAGS): remove
31653 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
31654 (boot_mod_SOURCES): new variable
31655 (boot_mod_CFLAGS): likewise
31656 (boot_mod_LDFLAGS): likewise
31657 * conf/i386-efi.rmk: likewise
31658 * conf/i386-ieee1275.rmk: likewise
31659 * conf/i386-pc.rmk: likewise
31660 * conf/powerpc-ieee1275.rmk: likewise
31661 * conf/sparc64-ieee1275.rmk: likewise
31662 * conf/x86_64-efi.rmk: likewise
31663 * include/grub/i386/pc/biosnum.h: new file
31664 * lib/i386/pc/biosnum.c: likewise
31665 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
31666 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
31667 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 31668
33abf7ae 316692009-06-10 Pavel Roskin <proski@gnu.org>
31670
5ac35b35 31671 * io/gzio.c (test_header): Don't reuse one buffer for all data.
31672 Use separate variables. Read only the file size at the end, but
31673 not the checksum that we don't use.
31674
5c5215d5 31675 * kern/file.c (grub_file_read): Use void pointer for the buffer.
31676 Adjust all callers.
31677
27d5fef7 31678 * kern/ieee1275/openfw.c: Remove libc includes.
31679 * kern/ieee1275/cmain.c: Likewise.
31680 * include/grub/ieee1275/ieee1275.h: Likewise.
31681
33abf7ae 31682 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
31683 compiler warnings.
31684
19d50c2b 316852009-06-10 Felix Zielcke <fzielcke@z-51.de>
31686
31687 * Makefile.in: Remove all trailing whitespace.
31688 * conf/i386-pc.rmk: Likewise.
31689 * conf/powerpc-ieee1275.rmk: Likewise.
31690 * conf/sparc64-ieee1275.rmk: Likewise.
31691 * docs/grub.texi: Likewise.
31692 * docs/texinfo.tex: Likewise.
31693 * disk/fs_uuid.c: Likewise.
31694 * disk/lvm.c: Likewise.
31695 * disk/scsi.c: Likewise.
31696 * disk/ata.c: Likewise.
31697 * disk/ieee1275/ofdisk.c: Likewise.
31698 * disk/i386/pc/biosdisk.c: Likewise.
31699 * disk/host.c: Likewise.
31700 * disk/raid.c: Likewise.
31701 * disk/efi/efidisk.c: Likewise.
31702 * disk/usbms.c: Likewise.
31703 * disk/memdisk.c: Likewise.
31704 * disk/loopback.c: Likewise.
31705 * kern/powerpc/dl.c: Likewise.
31706 * kern/device.c: Likewise.
31707 * kern/dl.c: Likewise.
31708 * kern/sparc64/dl.c: Likewise.
31709 * kern/ieee1275/ieee1275.c: Likewise.
31710 * kern/term.c: Likewise.
31711 * kern/fs.c: Likewise.
31712 * kern/i386/dl.c: Likewise.
31713 * kern/i386/pc/startup.S: Likewise.
31714 * kern/i386/pc/init.c: Likewise.
31715 * kern/i386/pc/mmap.c: Likewise.
31716 * kern/i386/pc/lzo1x.S: Likewise.
31717 * kern/i386/ieee1275/init.c: Likewise.
31718 * kern/i386/realmode.S: Likewise.
31719 * kern/i386/tsc.c: Likewise.
31720 * kern/partition.c: Likewise.
31721 * kern/corecmd.c: Likewise.
31722 * kern/file.c: Likewise.
31723 * kern/efi/efi.c: Likewise.
31724 * kern/efi/init.c: Likewise.
31725 * kern/efi/mm.c: Likewise.
31726 * kern/main.c: Likewise.
31727 * kern/err.c: Likewise.
31728 * kern/env.c: Likewise.
31729 * kern/disk.c: Likewise.
31730 * kern/generic/millisleep.c: Likewise.
31731 * kern/generic/rtc_get_time_ms.c: Likewise.
31732 * kern/misc.c: Likewise.
31733 * kern/parser.c: Likewise.
31734 * genmk.rb: Likewise.
31735 * configure.ac: Likewise.
31736 * boot/i386/pc/diskboot.S: Likewise.
31737 * boot/i386/pc/pxeboot.S: Likewise.
31738 * boot/i386/pc/boot.S: Likewise.
31739 * boot/i386/pc/lnxboot.S: Likewise.
31740 * boot/i386/pc/cdboot.S: Likewise.
31741 * parttool/pcpart.c: Likewise.
31742 * video/readers/tga.c: Likewise.
31743 * video/video.c: Likewise.
31744 * video/bitmap.c: Likewise.
31745 * lib/envblk.c: Likewise.
31746 * lib/i386/setjmp.S: Likewise.
31747 * fs/xfs.c: Likewise.
31748 * fs/afs.c: Likewise.
31749 * fs/fat.c: Likewise.
31750 * fs/ntfs.c: Likewise.
31751 * fs/udf.c: Likewise.
31752 * fs/affs.c: Likewise.
31753 * fs/iso9660.c: Likewise.
31754 * fs/hfs.c: Likewise.
31755 * fs/fshelp.c: Likewise.
31756 * fs/ext2.c: Likewise.
31757 * fs/jfs.c: Likewise.
31758 * fs/reiserfs.c: Likewise.
31759 * fs/hfsplus.c: Likewise.
31760 * fs/minix.c: Likewise.
31761 * fs/cpio.c: Likewise.
31762 * fs/sfs.c: Likewise.
31763 * fs/ufs.c: Likewise.
31764 * efiemu/prepare.c: Likewise.
31765 * efiemu/loadcore_common.c: Likewise.
31766 * efiemu/runtime/efiemu.sh: Likewise.
31767 * efiemu/runtime/efiemu.S: Likewise.
31768 * efiemu/runtime/efiemu.c: Likewise.
31769 * efiemu/pnvram.c: Likewise.
31770 * efiemu/main.c: Likewise.
31771 * efiemu/i386/pc/cfgtables.c: Likewise.
31772 * efiemu/i386/loadcore64.c: Likewise.
31773 * efiemu/i386/loadcore32.c: Likewise.
31774 * efiemu/loadcore.c: Likewise.
31775 * efiemu/symbols.c: Likewise.
31776 * efiemu/mm.c: Likewise.
31777 * include/grub/autoefi.h: Likewise.
31778 * include/grub/datetime.h: Likewise.
31779 * include/grub/term.h: Likewise.
31780 * include/grub/hfs.h: Likewise.
31781 * include/grub/lvm.h: Likewise.
31782 * include/grub/i386/tsc.h: Likewise.
31783 * include/grub/i386/linux.h: Likewise.
31784 * include/grub/i386/xnu.h: Likewise.
31785 * include/grub/i386/efiemu.h: Likewise.
31786 * include/grub/i386/pc/biosdisk.h: Likewise.
31787 * include/grub/i386/pc/memory.h: Likewise.
31788 * include/grub/i386/pc/vbe.h: Likewise.
31789 * include/grub/parttool.h: Likewise.
31790 * include/grub/video.h: Likewise.
31791 * include/grub/memory.h: Likewise.
31792 * include/grub/fs.h: Likewise.
31793 * include/grub/partition.h: Likewise.
31794 * include/grub/xnu.h: Likewise.
31795 * include/grub/efi/api.h: Likewise.
31796 * include/grub/efi/pe32.h: Likewise.
31797 * include/grub/efi/memory.h: Likewise.
31798 * include/grub/multiboot.h: Likewise.
31799 * include/grub/usbdesc.h: Likewise.
31800 * include/grub/multiboot2.h: Likewise.
31801 * include/grub/acpi.h: Likewise.
31802 * include/grub/efiemu/efiemu.h: Likewise.
31803 * include/grub/disk.h: Likewise.
31804 * include/grub/ieee1275/ieee1275.h: Likewise.
31805 * include/grub/net.h: Likewise.
31806 * include/grub/machoload.h: Likewise.
31807 * include/grub/macho.h: Likewise.
31808 * include/multiboot.h: Likewise.
31809 * genmoddep.awk: Likewise.
31810 * normal/main.c: Likewise.
31811 * normal/menu_entry.c: Likewise.
31812 * normal/menu_viewer.c: Likewise.
31813 * normal/completion.c: Likewise.
31814 * normal/cmdline.c: Likewise.
31815 * normal/misc.c: Likewise.
31816 * normal/datetime.c: Likewise.
31817 * bus/usb/usbtrans.c: Likewise.
31818 * bus/usb/ohci.c: Likewise.
31819 * bus/usb/uhci.c: Likewise.
31820 * bus/usb/usb.c: Likewise.
31821 * mmap/efi/mmap.c: Likewise.
31822 * mmap/i386/pc/mmap_helper.S: Likewise.
31823 * mmap/i386/pc/mmap.c: Likewise.
31824 * mmap/i386/mmap.c: Likewise.
31825 * mmap/i386/uppermem.c: Likewise.
31826 * mmap/mmap.c: Likewise.
31827 * commands/acpi.c: Likewise.
31828 * commands/echo.c: Likewise.
31829 * commands/blocklist.c: Likewise.
31830 * commands/loadenv.c: Likewise.
31831 * commands/usbtest.c: Likewise.
31832 * commands/boot.c: Likewise.
31833 * commands/parttool.c: Likewise.
31834 * commands/search.c: Likewise.
31835 * commands/cat.c: Likewise.
31836 * commands/i386/pc/play.c: Likewise.
31837 * commands/i386/pc/drivemap.c: Likewise.
31838 * commands/i386/pc/vbeinfo.c: Likewise.
31839 * commands/i386/pc/acpi.c: Likewise.
31840 * commands/i386/pc/vbetest.c: Likewise.
31841 * commands/ls.c: Likewise.
31842 * commands/cmp.c: Likewise.
31843 * commands/test.c: Likewise.
31844 * commands/efi/acpi.c: Likewise.
31845 * commands/gptsync.c: Likewise.
31846 * commands/help.c: Likewise.
31847 * partmap/amiga.c: Likewise.
31848 * partmap/apple.c: Likewise.
31849 * partmap/acorn.c: Likewise.
31850 * partmap/pc.c: Likewise.
31851 * partmap/sun.c: Likewise.
31852 * partmap/gpt.c: Likewise.
31853 * script/sh/lexer.c: Likewise.
31854 * script/sh/function.c: Likewise.
31855 * font/font.c: Likewise.
31856 * font/font_cmd.c: Likewise.
31857 * loader/powerpc/ieee1275/linux.c: Likewise.
31858 * loader/efi/chainloader.c: Likewise.
31859 * loader/multiboot_loader.c: Likewise.
31860 * loader/macho.c: Likewise.
31861 * loader/i386/multiboot.c: Likewise.
31862 * loader/i386/linux.c: Likewise.
31863 * loader/i386/pc/linux.c: Likewise.
31864 * loader/i386/pc/multiboot2.c: Likewise.
31865 * loader/i386/pc/chainloader.c: Likewise.
31866 * loader/i386/pc/xnu.c: Likewise.
31867 * loader/i386/bsd_trampoline.S: Likewise.
31868 * loader/i386/efi/linux.c: Likewise.
31869 * loader/i386/multiboot_elfxx.c: Likewise.
31870 * loader/i386/bsd_helper.S: Likewise.
31871 * loader/i386/bsd.c: Likewise.
31872 * loader/i386/linux_trampoline.S: Likewise.
31873 * loader/i386/xnu_helper.S: Likewise.
31874 * loader/i386/xnu.c: Likewise.
31875 * loader/i386/bsd_pagetable.c: Likewise.
31876 * loader/i386/multiboot_helper.S: Likewise.
31877 * loader/xnu.c: Likewise.
31878 * loader/xnu_resume.c: Likewise.
31879 * io/gzio.c: Likewise.
31880 * term/efi/console.c: Likewise.
31881 * term/terminfo.c: Likewise.
31882 * term/ieee1275/ofconsole.c: Likewise.
31883 * term/i386/pc/serial.c: Likewise.
31884 * term/i386/pc/vesafb.c: Likewise.
31885 * term/i386/pc/vga.c: Likewise.
31886 * term/usb_keyboard.c: Likewise.
31887 * term/gfxterm.c: Likewise.
31888 * aclocal.m4: Likewise.
31889 * util/lvm.c: Likewise.
31890 * util/grub.d/30_os-prober.in: Likewise.
31891 * util/grub.d/10_hurd.in: Likewise.
31892 * util/console.c: Likewise.
31893 * util/grub-macho2img.c: Likewise.
31894 * util/grub-probe.c: Likewise.
31895 * util/hostfs.c: Likewise.
31896 * util/i386/pc/grub-mkimage.c: Likewise.
31897 * util/i386/pc/grub-setup.c: Likewise.
31898 * util/i386/efi/grub-mkimage.c: Likewise.
31899 * util/grub-mkconfig.in: Likewise.
31900 * util/raid.c: Likewise.
31901 * util/resolve.c: Likewise.
31902 * util/grub-mkdevicemap.c: Likewise.
31903 * util/grub-emu.c: Likewise.
31904 * util/getroot.c: Likewise.
31905 * util/hostdisk.c: Likewise.
31906 * util/usb.c: Likewise.
31907 * util/grub-editenv.c: Likewise.
31908 * util/misc.c: Likewise.
31909
d2d49665 319102009-06-10 Felix Zielcke <fzielcke@z-51.de>
31911
31912 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31913 `genparttoollist.sh'.
31914 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31915 Add `*.sh' to the list find searches for and change `mdate.sh'
31916 to `mdate-sh'.
31917
fe052e37 319182009-06-10 Pavel Roskin <proski@gnu.org>
31919
2763ac18 31920 * include/grub/multiboot2.h: Provide compatibility defines for
31921 multiboot2.h.
31922 * include/multiboot2.h: Include stdint.h only if needed, using
31923 angle brackets.
31924 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31925 grub/multiboot2.h.
31926 * loader/ieee1275/multiboot2.c: Likewise.
31927 * loader/multiboot2.c: Likewise.
31928 * loader/multiboot_loader.c: Likewise.
31929
437e6adc 31930 * configure.ac: Use -nostdlib when probing for the target. It
31931 should not be required to have libc for the target.
31932
06a6836c 31933 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31934 they fail without libc headers for the target.
31935 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31936 exports.
31937 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31938 preprocessor conditionals.
31939
fe052e37 31940 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31941 build system doesn't need to be aware of the tar.c internals.
31942
afd22553 319432009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31944
afd22553 31945 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31946
6b787c4f 319472009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31948
31949 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31950 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31951
319522009-06-09 Felix Zielcke <fzielcke@z-51.de>
31953
31954 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31955 aren't available if ata.mod gets used.
6b787c4f 31956
473d1e45 319572009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31958
473d1e45 31959 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31960 initialising controller.
473d1e45 31961 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31962
255a27d4 319632009-06-08 Felix Zielcke <fzielcke@z-51.de>
31964
31965 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31966 to choose between ata and biosdisk module on i386-pc.
31967
473d1e45 319682009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31969
d55842d8 31970 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31971 Subclass and Programming Interface fields in terms of the 3 byte
31972 Class Code register.
31973 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31974
fa5db0b1 31975 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31976 interface is OHCI. Add grub_dprintf for symmetry with
31977 bus/usb/uhci.c.
31978 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31979 interface is UHCI. Add interf variable for programming
31980 interface. Print interface with class/subclass.
31981
c0947beb 31982 * bus/usb/ohci.c: Set interf with correct field.
31983
69da8877 31984 * bus/usb/uhci.c: Remove unneeded doubled lines.
31985 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31986 Remove whitespace inside comment.
31987
9e172e30 319882009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31989
31990 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31991 as fallback an equivalent option without depth.
31992
de65ee2b 319932009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31994
31995 Not fail if unable to retrieve C/H/S on LBA disks
31996
473d1e45 31997 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31998 if unable to retrieve C/H/S on LBA disks
31999
b57ea2c9 320002009-06-08 Pavel Roskin <proski@gnu.org>
32001
32002 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
32003 about aliasing.
32004
af361263 320052009-06-08 Felix Zielcke <fzielcke@z-51.de>
32006
32007 * Makefile.in (uninstall): Remove all $lib_DATA files.
32008
4c9ec6b3 320092009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32010
32011 Bugfix: install on partitionless device
32012
32013 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
32014 is a whole disk
32015
e76fc924 320162009-06-08 Felix Zielcke <fzielcke@z-51.de>
32017
32018 * Makefile.in (uninstall): Remove all $include_DATA files.
32019
ba5a0d05 320202009-06-08 Felix Zielcke <fzielcke@z-51.de>
32021
32022 * commands/true.c: New file. Implement the true and false commands.
32023 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32024 (true_mod_SOURCES): New variable.
32025 (true_mod_CFLAGS): Likewise.
32026 (true_mod_LDFLAGS): Likewise.
32027
c8048e32 320282009-06-05 Colin D Bennett <colin@gibibit.com>
32029
32030 Optimized font character lookup using binary search instead of linear
32031 search. Fonts now are required to have the character index ordered by
32032 code point.
32033
32034 * font/font.c (load_font_index): Verify that fonts have ordered
32035 character indices.
32036 (find_glyph): Use binary search instead of linear search to find a
32037 character in a font.
32038
408305be 320392009-06-05 Michael Scherer <misc@mandriva.org>
32040
32041 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32042 uses case sensitive btree.
32043 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32044 only for case insensitive filesystems.
32045
8ee1e0d9 320462009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32047
32048 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32049 * conf/common.rmk (search_mod_CFLAGS): likewise
32050
a9966eb1 320512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32052
473d1e45 32053 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 32054 compensate a compiler bug
32055
9e7100fb 320562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32057
473d1e45 32058 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 32059 instead of '\b'
473d1e45 32060
ede21d71 320612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32062
32063 Definitions for creating asm symbols with Apple's CC
32064
32065 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32066 [APPLE_CC] (VARIABLE): likewise
32067
9dbf7653 320682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32069
32070 Disable lnxboot.img when compiled
32071 with Apple's CC
32072
32073 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32074 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32075 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32076 [! APPLE_CC] (CODE_LENG): skip
32077 [! APPLE_CC] (setup_sects): likewise
32078 [! APPLE_CC]: skip filling
473d1e45 32079
e93cdc3d 320802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32081
32082 Address in trampolines based on 32-bit registers when compiled
32083 with Apple's CC
32084
473d1e45 32085 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 32086 for addresses
32087 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32088
6c688477 320892009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32090
32091 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32092
32093 * kern/misc.c [APPLE_CC] (memcpy): new function
32094 [APPLE_CC] (memmove): likewise
32095 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 32096 (memcpy): define alias conditionally on !APPLE_CC
6c688477 32097 (memset): likewise
32098 (abort): likewise
32099 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32100 APPLE_CC are defined
32101 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32102 (grub_assert_fail): make prototype conditional
32103
e37ffc5c 321042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32105
32106 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32107
473d1e45 32108 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32109 grub-macho2img
e37ffc5c 32110 (CLEANFILES): add grub-macho2img
32111 (grub_macho2img_SOURCES): new variable
32112 * kern/i386/pc/startup.S (bss_start): new variable
32113 (bss_end): likewise
32114 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32115 * util/grub-macho2img.c: new file
32116
cf00df31 321172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32118
32119 Use objconv when compiling with Apple's CC
32120
32121 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32122 (efiemu64.o): likewise
32123 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32124 when compiling with Apple's CC
32125 (efiemu64_s.o): likewise
32126 * configure.ac: check for objconv when compiling with Apple's CC
32127 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 32128
d119a20c 321292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32130
32131 Define segment as well as section when compiling with
32132 Apple's CC
32133
32134 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32135 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32136 (efiemu_convert_pointer): likewise
32137 (efiemu_set_virtual_address_map): likewise
32138 (efiemu_convert_pointer): likewise
32139 (efiemu_getcrc32): likewise
32140 (init_crc32_table): likewise
32141 (reflect): likewise
32142 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32143 (GRUB_MOD_DEP): likewise
473d1e45 32144
c8600122 321452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32146
32147 Allow a compilation without -mcmodel=large
32148
32149 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32150 when compiled without -mcmodel=large
473d1e45 32151 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 32152 without -mcmodel=large
473d1e45 32153 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 32154 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 32155
e8df1d4e 321562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32157
32158 Remove nested functions in efiemu core
32159
32160 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 32161
cc6c3ac1 321622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32163
32164 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32165
32166 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32167 temporary storage
473d1e45 32168 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32169 using Apple's CC
cc6c3ac1 32170 (grub_cpu_is_tsc_supported): likewise
32171 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 32172
3e325901 321732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32174
32175 Absolute addressing through constant with Apple's cc
32176
32177 * kern/i386/pc/startup.S: Define necessary constants
32178 and address through it when using ABS with Apple's CC
32179 * boot/i386/pc/diskboot.S: likewise
32180 * boot/i386/pc/boot.S: likewise
32181 * boot/i386/pc/lnxboot.S: likewise
32182 * boot/i386/pc/cdboot.S: likewise
32183 * mmap/i386/pc/mmap_helper.S: likewise
32184 * commands/i386/pc/drivemap_int13h.S: likewise
32185
2b167a72 321862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32187
32188 Check if compiler is apple cc
32189
32190 * Makefile.in (ASFLAGS): new variable
32191 (TARGET_ASFLAGS): likewise
32192 (TARGET_MODULE_FORMAT): likewise
32193 (TARGET_APPLE_CC): likewise
32194 (OBJCONV): likewise
32195 (TARGET_IMG_CFLAGS): likewise
32196 (TARGET_CPPFLAGS): add includedir
32197 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32198 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32199 Check for linker script only if compiler isn't Apple's CC
32200 (TARGET_MODULE_FORMAT): set
32201 (TARGET_APPLE_CC): likewise
32202 (TARGET_ASFLAGS): likewise
32203 (ASFLAGS): likewise
32204 Check for objcopy only if compiler isn't Apple's CC
32205 Check for BSS symbol only if compiler isn't Apple's CC
32206 * genmk.rb: adapt nm options if we use Apple's utils
32207 * aclocal.m4 (grub_apple_cc): new test
32208 (grub_apple_target_cc): likewise
473d1e45 32209
fb14123e 322102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32211
32212 Simplify sed expressions and improve awk
32213
32214 * Makefile.in (install-local): simplify sed expression
32215 * gencmdlist.sh: likewise
32216 * genmoddep.awk: avoid adding module as a dependency of itself
32217
5b889789 322182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32219
32220 Add missing start symbols
32221
32222 * boot/i386/pc/boot.S: add start
fb14123e 32223 * boot/i386/pc/pxeboot.S: likewise
473d1e45 32224
fd2bf2e3 322252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32226
32227 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 32228
32229 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 32230 (relocate_addresses): consider both r_addend and value at offset
32231 (make_mods_section): zerofill modinfo and header
32232 (convert_elf): write prefix here
473d1e45 32233
5389763d 322342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32235
32236 Use .asciz instead of .string
32237
32238 * i386/pc/diskboot.S: use .asciz instead of .string
32239 * i386/pc/boot.S: likewise
32240 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32241 (GRUB_MOD_NAME): likewise
473d1e45 32242
3eb5ed4e 322432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32244
32245 gfxpayload support
32246
32247 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32248 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32249 (grub_video_setup): remove
32250 (grub_video_set_mode): new prototype
32251 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32252 (vid_mode): remove
32253 (linux_vesafb_res): compile only on PCBIOS
32254 (grub_linux_boot): support gfxpayload
32255 * loader/i386/pc/xnu.c (video_hook): new function
32256 (grub_xnu_set_video): support gfxpayload
32257 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32258 (DEFAULT_VIDEO_HEIGHT): likewise
32259 (DEFAULT_VIDEO_FLAGS): likewise
32260 (DEFAULT_VIDEO_MODE): new definition
32261 (video_hook): new function
32262 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 32263 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 32264 loading xnu
32265 * video/video.c (grub_video_setup): removed
473d1e45 32266 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 32267 grub_video_setup
32268
4b0e1143 322692009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32270
32271 Avoid calling biosdisk in drivemap
32272
32273 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32274 (revparse_biosdisk): likewise
32275 (list_mappings): derive name from id directly
32276 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 32277
fda6cb98 322782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32279
32280 Script fixes
32281
32282 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32283 (grub_lexer_param): add tokenonhold
32284 (grub_script_create_cmdline): remove cmdline. All callers updated
32285 (grub_script_function_create): make functionname
32286 grub_script_arg. All callers updated
32287 (grub_script_execute_argument_to_string): new prototype
32288 * kern/parser.c (state_transitions): reorder
32289 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 32290 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 32291 make global
32292 (grub_script_execute_cmdline): use new format
32293 * script/sh/function.c (grub_script_function_create): make functionname
32294 grub_script_arg. All callers updated
473d1e45 32295 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 32296 (grub_script_yylex): remove
32297 (grub_script_yylex2): renamed to ...
32298 (grub_script_yylex): ...renamed
32299 parse the expressions like a${b}c
32300 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32301 (GRUB_PARSER_TOKEN_VAR): remove
32302 (GRUB_PARSER_TOKEN_NAME): likewise
32303 ("if"): declare as typeless
32304 ("while"): likewise
32305 ("function"): likewise
32306 ("else"): likewise
32307 ("then"): likewise
32308 ("fi"): likewise
32309 (text): remove
32310 (argument): likewise
32311 (script): accept empty scripts and make exit on error
32312 (arguments): use GRUB_PARSER_TOKEN_ARG
32313 (function): likewise
32314 (command): move error handling to script
32315 (menuentry): move grub_script_lexer_ref before
473d1e45 32316 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 32317 argument. All callers updated
32318
f4448a07 323192009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32320
32321 Prevent GRUB from probing floppies during boot.
32322
32323 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
32324 * commands/search.c (options): Add --no-floppy.
32325 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
32326 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
32327 --no-floppy when searching for UUIDs.
32328
2bf5885a 323292009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32330
32331 Simplify the code duplication in commands/search.c.
32332
32333 * commands/search.c (search_label, search_fs_uuid): Merge into ...
32334 (search_fs): ... this. Update all users.
32335
f6fd460a 323362009-06-03 Felix Zielcke <fzielcke@z-51.de>
32337
32338 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
32339
cbb3c83e 323402009-05-28 Pavel Roskin <proski@gnu.org>
32341
57788cfd 32342 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
32343 Remove the original symlink explicitly.
32344
cbb3c83e 32345 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
32346 just one slash. That's how grub_fshelp_find_file() does it.
32347
cd0d5e30 323482009-05-26 Pavel Roskin <proski@gnu.org>
32349
f0f8bbe2 32350 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
32351 to `str'.
32352
cd0d5e30 32353 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
32354 possibly unused.
32355
8c2cab51 323562009-05-25 Christian Franke <franke@computer.org>
32357
32358 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
32359 register.
32360 (grub_atapi_identify): Add wait after drive select.
32361 (grub_ata_identify): Do more strict status register check before
32362 calling grub_atapi_identify (). Suppress error message if status
32363 register is 0x00 after command failure. Add status register
32364 check after PIO read to avoid bogus identify due to stuck DRQ.
32365 Thanks to Pavel Roskin for testing.
32366 (grub_device_initialize): Remove unsafe status register check.
32367 Thanks to 'phcoder' for problem report and patch.
32368 Prevent sign extension in debug message.
32369
230c0ad6 323702009-05-23 Colin D Bennett <colin@gibibit.com>
32371
32372 Cleaned up `include/grub/normal.h'. Grouped prototypes by
32373 definition file, and functions defined in `normal/menu.c' have had
32374 their prototypes moved to `include/grub/menu.h' for consistency.
32375
32376 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
32377 from normal.h.
32378 (grub_menu_get_entry): Likewise.
32379 (grub_menu_get_timeout): Likewise.
32380 (grub_menu_set_timeout): Likewise.
32381 (grub_menu_execute_entry): Likewise.
32382 (grub_menu_execute_with_fallback): Likewise.
32383 (grub_menu_entry_run): Likewise.
32384
32385 * include/grub/normal.h: Re-ordered and grouped function
32386 prototypes by file that the function is defined in.
32387 (grub_menu_execute_callback): Removed; moved to menu.h.
32388 (grub_menu_get_entry): Likewise.
32389 (grub_menu_get_timeout): Likewise.
32390 (grub_menu_set_timeout): Likewise.
32391 (grub_menu_execute_entry): Likewise.
32392 (grub_menu_execute_with_fallback): Likewise.
32393 (grub_menu_entry_run): Likewise.
32394 (grub_menu_addentry): Renamed from this ...
32395 (grub_normal_add_menu_entry): ... to this.
32396
32397 * normal/main.c (grub_menu_addentry): Renamed from this ...
32398 (grub_normal_add_menu_entry): ... to this.
32399
32400 * script/sh/execute.c (grub_script_execute_menuentry): Update
32401 reference to renamed grub_menu_addentry function.
32402
861f03a5 324032009-05-23 Felix Zielcke <fzielcke@z-51.de>
32404
32405 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
32406
96b1619a 324072009-05-22 Pavel Roskin <proski@gnu.org>
32408
bf6a5fb2 32409 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
32410 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
32411 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
32412 compiling for the i386 targets, but not for the utilities.
32413
96b1619a 32414 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
32415 to grub_uint8_t.
32416 (grub_root_drive): Likewise.
32417 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
32418 remove alignment.
32419 (grub_root_drive): Change size to byte.
32420 (grub_start_addr): Remove.
32421 (grub_end_addr): Likewise.
32422 (grub_apm_bios_info): Likewise.
32423
b729776b 324242009-05-21 Felix Zielcke <fzielcke@z-51.de>
32425
32426 * normal/i386: Remove.
32427 * normal/powerpc: Likewise.
32428 * normal/sparc64: Likewise.
32429 * normal/x86_64: Likewise.
32430
0a15ce80 324312009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
32432
32433 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 32434 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 32435 * loader/i386/xnu_helper.S: Likewise
d6da58e6 32436
33db9015 324372009-05-18 Colin D Bennett <colin@gibibit.com>
32438
d6da58e6 32439 Display error messages when parsing a Lua statement fails.
32440 Previously, executing a syntactically invalid statement like
32441 ")foo" or "bar;" would silently fail.
33db9015 32442
32443 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 32444 (grub_lua_parse_line): Improved reporting of Lua parser and
32445 execution errors.
33db9015 32446
46422c89 324472009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32448
32449 Remove -Werror which causes build to fail on some systems
32450
32451 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
32452 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
32453 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 32454
22f53a96 324552009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32456
32457 trampoline for linux on 64-bit platform
32458
18f547ad 32459 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
32460 loader/i386/efi/linux_trampoline.S
32461 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 32462 declaration
d6da58e6 32463 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
32464 here
22f53a96 32465 * loader/i386/linux_trampoline.S: moved here
d6da58e6 32466 * loader/i386/efi/linux.c (allocate_pages): reserve space for
32467 trampoline
22f53a96 32468 (jumpvector): removed
32469 (grub_linux_trampoline_start): new declaration
32470 (grub_linux_trampoline_end): likewise
32471 (grub_linux_boot): use trampoline when on 64-bit platform
32472 * loader/i386/linux.c: likewise
32473
cb5a0f40 324742009-05-16 Pavel Roskin <proski@gnu.org>
32475
32476 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
32477 const to avoid a warning.
32478 (grub_lua_setenv): Likewise.
32479 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
32480 lmsg to fix a warning.
32481
334f2c28 324822009-05-16 Felix Zielcke <fzielcke@z-51.de>
32483
32484 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 32485 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32486 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
32487 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32488 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32489 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32490 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32491 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 32492
59e5d3ec 324932009-05-16 Felix Zielcke <fzielcke@z-51.de>
32494
32495 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
32496
9d87a1ba 324972009-05-16 Bean <bean123ch@gmail.com>
32498
32499 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
32500 (lua_mod_SOURCES): New variable.
32501 (lua_mod_CFLAGS): Likewise.
32502 (lua_mod_LDFLAGS): Likewise.
32503
32504 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
32505 (setjmp_mod_SOURCES): New variable.
32506 (setjmp_mod_CFLAGS): Likewise.
32507 (setjmp_LDFLAGS): Likewise.
32508
32509 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
32510 (setjmp_mod_SOURCES): New variable.
32511 (setjmp_mod_CFLAGS): Likewise.
32512 (setjmp_LDFLAGS): Likewise.
32513
32514 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32515 (setjmp_mod_SOURCES): New variable.
32516 (setjmp_mod_CFLAGS): Likewise.
32517 (setjmp_LDFLAGS): Likewise.
32518
32519 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32520 (setjmp_mod_SOURCES): New variable.
32521 (setjmp_mod_CFLAGS): Likewise.
32522 (setjmp_LDFLAGS): Likewise.
32523
32524 * normal/i386/setjmp.S: Moved from here ...
32525 * lib/i386/setjmp.S: ... Moved here
32526 * normal/x86_64/setjmp.S: Moved from here ...
32527 * lib/x86_64/setjmp.S: ... Moved here
32528 * normal/powerpc/setjmp.S: Moved from here ...
32529 * lib/powerpc/setjmp.S: ... Moved here
32530 * normal/sparc64/setjmp.S: Moved from here ...
32531 * lib/sparc64/setjmp.S: ... Moved here
32532
32533 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
32534 returns_twice in mingw.
32535
32536 * script/lua/grub_lib.c: New file.
32537 * script/lua/grub_lib.h: Likewise.
32538 * script/lua/grub_lua.h: Likewise.
32539 * script/lua/grub_main.c: Likewise.
32540 * script/lua/lapi.c: Likewise.
32541 * script/lua/lapi.h: Likewise.
32542 * script/lua/lauxlib.c: Likewise.
32543 * script/lua/lauxlib.h: Likewise.
32544 * script/lua/lbaselib.c: Likewise.
32545 * script/lua/lcode.c: Likewise.
32546 * script/lua/lcode.h: Likewise.
32547 * script/lua/ldblib.c: Likewise.
32548 * script/lua/ldebug.c: Likewise.
32549 * script/lua/ldebug.h: Likewise.
32550 * script/lua/ldo.c: Likewise.
32551 * script/lua/ldo.h: Likewise.
32552 * script/lua/ldump.c: Likewise.
32553 * script/lua/lfunc.c: Likewise.
32554 * script/lua/lfunc.h: Likewise.
32555 * script/lua/lgc.c: Likewise.
32556 * script/lua/lgc.h: Likewise.
32557 * script/lua/linit.c: Likewise.
32558 * script/lua/liolib.c: Likewise.
32559 * script/lua/llex.c: Likewise.
32560 * script/lua/llex.h: Likewise.
32561 * script/lua/llimits.h: Likewise.
32562 * script/lua/lmathlib.c: Likewise.
32563 * script/lua/lmem.c: Likewise.
32564 * script/lua/lmem.h: Likewise.
32565 * script/lua/loadlib.c: Likewise.
32566 * script/lua/lobject.c: Likewise.
32567 * script/lua/lobject.h: Likewise.
32568 * script/lua/lopcodes.c: Likewise.
32569 * script/lua/lopcodes.h: Likewise.
32570 * script/lua/loslib.c: Likewise.
32571 * script/lua/lparser.c: Likewise.
32572 * script/lua/lparser.h: Likewise.
32573 * script/lua/lstate.c: Likewise.
32574 * script/lua/lstate.h: Likewise.
32575 * script/lua/lstring.c: Likewise.
32576 * script/lua/lstring.h: Likewise.
32577 * script/lua/lstrlib.c: Likewise.
32578 * script/lua/ltable.c: Likewise.
32579 * script/lua/ltable.h: Likewise.
32580 * script/lua/ltablib.c: Likewise.
32581 * script/lua/ltm.c: Likewise.
32582 * script/lua/ltm.h: Likewise.
32583 * script/lua/lua.h: Likewise.
32584 * script/lua/luaconf.h: Likewise.
32585 * script/lua/lualib.h: Likewise.
32586 * script/lua/lundump.c: Likewise.
32587 * script/lua/lundump.h: Likewise.
32588 * script/lua/lvm.c: Likewise.
32589 * script/lua/lvm.h: Likewise.
32590 * script/lua/lzio.c: Likewise.
32591 * script/lua/lzio.h: Likewise.
32592
5e898c9d 325932009-05-16 Bean <bean123ch@gmail.com>
32594
32595 * include/grub/kernel.h (grub_module_header_types): Add type
32596 OBJ_TYPE_CONFIG.
32597
32598 * kern/main.c (grub_load_config): New function.
32599 (grub_main): Call grub_load_config to read boot config.
32600
32601 * grub-mkimage (generate_image): New parameter config_path.
32602 (options): New option --config.
32603 (main): Parse --config option, and pass it to generate_image.
32604
cf353a47 326052009-05-14 Christian Franke <franke@computer.org>
32606
32607 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
32608 This fixes build on Cygwin.
32609
3834887f 326102009-05-14 Pavel Roskin <proski@gnu.org>
32611
32612 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
32613 jump. This saves two bytes, so the typical case of 2 swapped
32614 drives would fit 32 bytes.
32615
8090fc01 326162009-05-13 Pavel Roskin <proski@gnu.org>
32617
ac963883 32618 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
32619 grub_uint32_t to avoid a warning.
32620
8090fc01 32621 * loader/i386/linux.c (allocate_pages): When assigning
32622 real_mode_mem, cast through grub_size_t to fix a warning. The
32623 code already makes sure that the value would fit a pointer.
32624 (grub_linux_setup_video): Cast render_target->data to
32625 grub_size_t to fix a warning.
32626
18f547ad 326272009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 32628
32629 * commands/i386/pc/drivemap.c: New file - implement drivemap
32630 command.
32631 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
32632 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
32633
6f6a8b28 326342009-05-13 Pavel Roskin <proski@gnu.org>
32635
32636 * util/i386/pc/grub-setup.c (setup): Remove unused variable
32637 embedding_area_exists.
32638
15fbf4c4 326392009-05-13 Robert Millan <rmh.grub@aybabtu.com>
32640
32641 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
32642 it easier to understand / work with.
59978c8a 32643 Improve warning messages for cases where there's no embedding area,
32644 or when it is too small (or core.img too large).
15fbf4c4 32645
238e871f 326462009-05-13 Pavel Roskin <proski@gnu.org>
32647
0ab3a9a4 32648 * loader/i386/pc/multiboot2.c: Add necessary includes for
32649 grub_multiboot2_real_boot().
32650
a2c8c5f8 32651 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
32652 PX record is always little-endian. We only need the lower 2
32653 bytes of the mode.
32654
faec96af 32655 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
32656 facilitate code reuse.
32657 (grub_cpio_mount): Use "struct head", not a char buffer. This
32658 fixes a warning reported by gcc 4.4.
32659
238e871f 32660 * kernel/disk.c (grub_disk_read): Use void pointer for the
32661 buffer.
32662 (grub_disk_write): Use const void pointer for the buffer.
32663 Adjust all callers. Remove unnecessary casts.
32664
901d2f0c 326652009-05-10 Robert Millan <rmh.grub@aybabtu.com>
32666
32667 * util/i386/pc/grub-install.in: Update copyright year.
32668
18f547ad 326692009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 32670
32671 gptsync
32672
32673 * commands/gptsync.c: new file
32674 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
32675 (gptsync_mod_SOURCES): new variable
32676 (gptsync_mod_CFLAGS): likewise
32677 (gptsync_mod_LDFLAGS): likewise
18f547ad 32678 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 32679 new definition
32680 (GRUB_PC_PARTITION_TYPE_HFS): likewise
32681 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
32682 * conf/i386-ieee1275.rmk: likewise
32683 * conf/i386-pc.rmk: likewise
32684 * conf/powerpc-ieee1275.rmk: likewise
32685
b4ba690a 326862009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
32687
32688 Fixed grub-emu
32689
32690 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
32691 (grub_dl_ref): likewise
32692
317e1a44 326932009-05-08 Robert Millan <rmh.grub@aybabtu.com>
32694
32695 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
32696 split in two functions (one for msdos and one for gpt).
32697
041b8094 326982009-05-08 Pavel Roskin <proski@gnu.org>
32699
752473c2 32700 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
32701 not modified.
32702
041b8094 32703 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
32704 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
32705 Initialize them with -1. Add sanity check for bad1. Eliminate
32706 nerr variable.
32707
172800ce 327082009-05-08 David S. Miller <davem@davemloft.net>
32709
32710 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
32711
29aa5e81 327122009-05-06 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 32715 existence.
29aa5e81 32716
96613b62 327172009-05-05 Felix Zielcke <fzielcke@z-51.de>
32718
32719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 32720 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 32721
eef73c8a 327222009-05-05 David S. Miller <davem@davemloft.net>
32723
32724 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
32725
119494b5 327262009-05-05 Pavel Roskin <proski@gnu.org>
32727
32728 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
32729 of grub_dl_ref() and grub_dl_unref().
32730 * commands/parttool.c: Remove preprocessor conditionals around
32731 grub_dl_ref() and grub_dl_unref().
32732 * fs/affs.c: Likewise.
32733 * fs/afs.c: Likewise.
32734 * fs/cpio.c: Likewise.
32735 * fs/ext2.c: Likewise.
32736 * fs/fat.c: Likewise.
32737 * fs/hfs.c: Likewise.
32738 * fs/hfsplus.c: Likewise.
32739 * fs/iso9660.c: Likewise.
32740 * fs/jfs.c: Likewise.
32741 * fs/minix.c: Likewise.
32742 * fs/ntfs.c: Likewise.
32743 * fs/reiserfs.c: Likewise.
32744 * fs/sfs.c: Likewise.
32745 * fs/udf.c: Likewise.
32746 * fs/ufs.c: Likewise.
32747 * fs/xfs.c: Likewise.
32748 * include/grub/dl.h: Likewise.
32749 * loader/xnu.c: Likewise.
32750
de5fd76e 327512009-05-04 Pavel Roskin <proski@gnu.org>
32752
32753 * commands/acpi.c: Remove unused variable my_mod.
32754 * partmap/amiga.c: Likewise.
32755 * partmap/apple.c: Likewise.
32756 * partmap/gpt.c: Likewise.
32757 * partmap/pc.c: Likewise.
32758 * partmap/sun.c: Likewise.
32759 * term/gfxterm.c: Likewise.
32760 * term/i386/pc/vesafb.c: Likewise.
32761 * term/i386/pc/vga.c: Likewise.
32762
983598ad 327632009-05-04 David S. Miller <davem@davemloft.net>
32764
32765 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
32766 pointer args to grub_ieee1275_get_property().
32767
8aadec43 32768 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
32769
9554b15e 32770 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
32771 devices, and do not traverse down under controller nodes.
32772
67e23c90 32773 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
32774 (grub_ofdisk_open): Use it to un-escape "," characters.
32775 * kern/disk.c (find_part_sep): New.
32776 (grub_disk_open): Use it to find the first non-escaped ','
32777 character in the disk name.
32778 * util/ieee1275/devicemap.c (escape_of_path): New.
32779 (grub_util_emit_devicemap_entry): Use it.
32780 * util/sparc64/ieee1275/grub-install.in: Update script to
32781 strip partition specifiers properly by not triggering on
32782 '\' escaped ',' characters.
32783
74bfdd2f 327842009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32785
32786 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
32787 to 0x300.
32788 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
32789 resolutions.
32790 (linux_vesafb_modes): Add a lot of additional modes to the list (based
32791 on documentation from Wikipedia).
32792
4241d2b1 327932009-05-04 Pavel Roskin <proski@gnu.org>
32794
32795 * disk/ata.c: Spelling fixes.
32796 * disk/raid.c: Likewise.
32797 * disk/usbms.c: Likewise.
32798 * disk/dmraid_nvidia.c: Likewise.
32799 * kern/ieee1275/openfw.c: Likewise.
32800 * kern/ieee1275/init.c: Likewise.
32801 * kern/ieee1275/cmain.c: Likewise.
32802 * boot/i386/pc/cdboot.S: Likewise.
32803 * video/readers/png.c: Likewise.
32804 * video/i386/pc/vbe.c: Likewise.
32805 * fs/udf.c: Likewise.
32806 * fs/hfs.c: Likewise.
32807 * fs/reiserfs.c: Likewise.
32808 * efiemu/runtime/efiemu.c: Likewise.
32809 * efiemu/main.c: Likewise.
32810 * efiemu/mm.c: Likewise.
32811 * include/grub/elf.h: Likewise.
32812 * include/grub/xnu.h: Likewise.
32813 * include/grub/usbdesc.h: Likewise.
32814 * include/grub/usb.h: Likewise.
32815 * include/grub/script_sh.h: Likewise.
32816 * include/grub/lib/LzmaEnc.h: Likewise.
32817 * include/grub/efiemu/efiemu.h: Likewise.
32818 * include/grub/command.h: Likewise.
32819 * normal/menu.c: Likewise.
32820 * normal/main.c: Likewise.
32821 * normal/datetime.c: Likewise.
32822 * bus/usb/uhci.c: Likewise.
32823 * mmap/i386/uppermem.c: Likewise.
32824 * mmap/mmap.c: Likewise.
32825 * commands/acpi.c: Likewise.
32826 * commands/test.c: Likewise.
32827 * partmap/apple.c: Likewise.
32828 * font/font.c: Likewise.
32829 * loader/sparc64/ieee1275/linux.c: Likewise.
32830 * loader/macho.c: Likewise.
32831 * loader/i386/bsd_trampoline.S: Likewise.
32832 * loader/i386/bsd.c: Likewise.
32833 * loader/xnu.c: Likewise.
32834 * term/i386/pc/vesafb.c: Likewise.
32835 * term/usb_keyboard.c: Likewise.
32836 * util/resolve.c: Likewise.
32837 * util/getroot.c: Likewise.
32838
0cfc0083 328392009-05-04 Felix Zielcke <fzielcke@z-51.de>
32840
32841 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32842
7c1d00cd 328432009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32844
32845 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32846 build error.
32847
b01f0548 328482009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32849
32850 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32851 parameter only available on BIOS.
32852
ecc3eb22 328532009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32854
32855 Removed wrong semicolon in declaration
32856
32857 * grub/misc.h (grub_dprintf): remove semicolon
32858
112972a9 328592009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32860
32861 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32862 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
32863 is done by grub_cmd_linux() now).
32864 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
32865 restore video to text mode.
32866 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
32867 indicates lack of "vga=" parameter. "vga=0" is mapped to
32868 `GRUB_LINUX_VID_MODE_NORMAL'.
32869
afd5c115 328702009-05-04 Felix Zielcke <fzielcke@z-51.de>
32871
32872 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
32873 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
32874 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 32875 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 32876 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
32877 `grub_script.tab.c'.
32878
32879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32880 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32882 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32883 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32884
faa517ce 32885 * Makefile.in: Remove duplicated 2008 in Copyright line.
32886
ae0c0bdc 328872009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32888
473d1e45 32889 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32890 unconditionally.
32891 * include/grub/util/misc.h (grub_util_warn): New declaration.
32892
32893 * util/i386/pc/grub-install.in: Understand --force and pass it down
32894 to grub-setup.
32895
32896 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32897 down to setup().
32898 (setup): Improve error messages and add warnings when requested to
32899 install in odd layouts. Refuse to install using blocklists unless
32900 --force was set.
32901
18f547ad 329022009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32903
32904 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32905
6d260daa 329062009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32907
32908 Updated copyright year
32909
32910 * fs/hfsplus.c: updated copyright year
18f547ad 32911
69f853f8 329122009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32913
32914 HFS+ UUID
32915
18f547ad 32916 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32917 in the space previously used by unused3
32918 (grub_hfsplus_uuid): new function
32919 (grub_hfsplus_fs): added uuid field
32920
4c402e73 329212009-05-03 Pavel Roskin <proski@gnu.org>
32922
32923 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32924 suppress warnings. It's no longer needed.
32925 * disk/host.c: Likewise.
32926 * disk/ata_pthru.c: Likewise.
32927 * disk/loopback.c: Likewise.
32928 * hook/datehook.c: Likewise.
32929 * parttool/pcpart.c: Likewise.
32930 * fs/i386/pc/pxe.c: Likewise.
32931 * fs/ntfscomp.c: Likewise.
32932 * efiemu/main.c: Likewise.
32933 * mmap/mmap.c: Likewise.
32934 * commands/crc.c: Likewise.
32935 * commands/hexdump.c: Likewise.
32936 * commands/hdparm.c: Likewise.
32937 * commands/acpi.c: Likewise.
32938 * commands/echo.c: Likewise.
32939 * commands/minicmd.c: Likewise.
32940 * commands/blocklist.c: Likewise.
32941 * commands/memrw.c: Likewise.
32942 * commands/loadenv.c: Likewise.
32943 * commands/usbtest.c: Likewise.
32944 * commands/lsmmap.c: Likewise.
32945 * commands/boot.c: Likewise.
32946 * commands/parttool.c: Likewise.
32947 * commands/configfile.c: Likewise.
32948 * commands/search.c: Likewise.
32949 * commands/ieee1275/suspend.c: Likewise.
32950 * commands/cat.c: Likewise.
32951 * commands/i386/pc/pxecmd.c: Likewise.
32952 * commands/i386/pc/play.c: Likewise.
32953 * commands/i386/pc/halt.c: Likewise.
32954 * commands/i386/pc/vbeinfo.c: Likewise.
32955 * commands/i386/pc/vbetest.c: Likewise.
32956 * commands/lspci.c: Likewise.
32957 * commands/date.c: Likewise.
32958 * commands/handler.c: Likewise.
32959 * commands/ls.c: Likewise.
32960 * commands/test.c: Likewise.
32961 * commands/cmp.c: Likewise.
32962 * commands/efi/loadbios.c: Likewise.
32963 * commands/efi/fixvideo.c: Likewise.
32964 * commands/halt.c: Likewise.
32965 * commands/help.c: Likewise.
32966 * commands/reboot.c: Likewise.
32967 * hello/hello.c: Likewise.
32968 * script/sh/main.c: Likewise.
32969 * loader/xnu.c: Likewise.
32970 * term/terminfo.c: Likewise.
32971 * term/i386/pc/serial.c: Likewise.
32972 * term/usb_keyboard.c: Likewise.
32973
515b5079 329742009-05-03 David S. Miller <davem@davemloft.net>
32975
32976 * normal/menu.c: Include grub/parser.h
32977
dfc31a22 329782009-05-03 Pavel Roskin <proski@gnu.org>
32979
2fee74f1 32980 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32981 not char*.
32982 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32983 Suggested by Javier Martín <lordhabbit@gmail.com>
32984
dfc31a22 32985 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32986 efiemu??.o doesn't exist.
32987 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32988 copying.
32989
18f547ad 329902009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32991
32992 FreeBSD 64-bit support
32993
18f547ad 32994 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32995 and loader/i386/bsd_trampoline.S
32996 (bsd_mod_ASFLAGS): new variable
32997 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32998 (FREEBSD_MODTYPE_KERNEL64): likewise
32999 (grub_bsd64_trampoline_start): likewise
33000 (grub_bsd64_trampoline_end): likewise
33001 (grub_bsd64_trampoline_selfjump): likewise
33002 (grub_bsd64_trampoline_gdt): likewise
33003 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
33004 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
33005 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
33006 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 33007 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 33008 of "attrib" member
33009 * loader/i386/bsd_pagetable.c: new file
33010 * loader/i386/bsd_trampoline.S: likewise
33011 * loader/i386/bsd.c (ALIGN_QWORD): new macro
33012 (ALIGN_VAR): likewise
33013 (entry_hi): new variable
33014 (kern_end_mdofs): likewise
33015 (is_64bit): likewise
33016 (grub_freebsd_add_meta): use ALIGN_VAR
33017 (grub_e820_mmap): new declaration
33018 (grub_freebsd_add_mmap): new function
33019 (grub_freebsd_add_meta_module): support 64 bit kernels
33020 (grub_freebsd_list_modules): use ALIGN_VAR
33021 (gdt_descriptor): new declaration
33022 (grub_freebsd_boot): support 64 bit kernels
33023 (grub_bsd_elf64_hook): new function
33024 (grub_bsd_load_elf): support elf64
33025
038c5720 330262009-05-03 Bean <bean123ch@gmail.com>
33027
33028 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33029 after we get the result of if statement.
33030
fc45fb58 330312009-05-03 Bean <bean123ch@gmail.com>
33032
33033 * Makefile.in (enable_efiemu): New variable.
33034
33035 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33036 set.
33037 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33038 path.
33039 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33040 path, add -mno-red-zone option.
33041 (efiemu64_s.o): Likewise.
33042 (efiemu64.o): Use macro $^ for source file.
33043
33044 * configure.ac (--enable-efiemu): New option.
33045
bbee0f2b 330462009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33047
33048 xnu support
33049
33050 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33051 (pkglib_MODULES): add xnu.mod
33052 (xnu_mod_SOURCES): new variable
33053 (xnu_mod_CFLAGS): likewise
33054 (xnu_mod_LDFLAGS): likewise
33055 (xnu_mod_ASFLAGS): likewise
33056 * conf/i386-pc.rmk: likewise
33057 * conf/x86_64-efi.rmk: likewise
7dd4a573 33058 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 33059 new declaration
33060 * include/grub/i386/macho.h: new file
33061 * include/grub/i386/xnu.h: likewise
33062 * include/grub/macho.h: likewise
33063 * include/grub/machoload.h: likewise
33064 * include/grub/x86_64/macho.h: likewise
33065 * include/grub/x86_64/xnu.h: likewise
33066 * include/grub/xnu.h: likewise
33067 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33068 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33069 * loader/i386/efi/xnu.c: new file
33070 * loader/i386/pc/xnu.c: likewise
33071 * loader/i386/xnu.c: likewise
33072 * loader/i386/xnu_helper.S: likewise
33073 * loader/macho.c: likewise
33074 * loader/xnu.c: likewise
33075 * loader/xnu_resume.c: likewise
33076 * util/grub-dumpdevtree: likewise
33077 * include/grub/i386/pit.h: include grub/err.h
33078 (grub_pit_wait): export
33079 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 33080
5caf964d 330812009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33082
33083 Efiemu
7dd4a573 33084
5caf964d 33085 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 33086 _linux_efi, linux_efi.
33087 new files in grub-emu
5caf964d 33088 new targets efiemu32.o and efiemu64.o
33089 * loader/linux_normal_efiemu.c: likewise
33090 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 33091 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 33092 files to copy
33093 * include/grub/autoefi.h: new file
7dd4a573 33094 * include/grub/i386/efiemu.h: likewise
5caf964d 33095 * include/grub/i386/pc/efiemu.h: likewise
33096 * include/grub/efi/api.h: add LL suffix when necessary
33097 new definitions relating to tables
33098 * include/grub/efiemu/efiemu.h: new file
33099 * include/grub/efiemu/runtime.h: likewise
33100 * efiemu/prepare.c: likewise
33101 * efiemu/loadcore_common.c: likewise
33102 * efiemu/loadcore64.c: likewise
33103 * efiemu/runtime/efiemu.sh: likewise
33104 * efiemu/runtime/efiemu.S: likewise
33105 * efiemu/runtime/efiemu.c: likewise
33106 * efiemu/runtime/config.h: likewise
33107 * efiemu/prepare32.c: likewise
33108 * efiemu/main.c: likewise
33109 * efiemu/modules/pnvram.c: likewise
33110 * efiemu/modules/i386: likewise
33111 * efiemu/modules/i386/pc: likewise
33112 * efiemu/modules/acpi.c: likewise
33113 * efiemu/i386/pc/cfgtables.c: likewise
33114 * efiemu/i386/loadcore64.c: likewise
33115 * efiemu/i386/loadcore32.c: likewise
33116 * efiemu/prepare64.c: likewise
33117 * efiemu/loadcore.c: likewise
33118 * efiemu/symbols.c: likewise
33119 * efiemu/mm.c: likewise
33120 * efiemu/loadcore32.c: likewise
7dd4a573 33121
331222009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 33123
33124 ACPI spoofing
33125
33126 * commands/acpi.c: new file
33127 * commands/i386/pc/acpi.c: likewise
33128 * commands/efi/acpi.c: likewise
33129 * include/grub/acpi.h: likewise
33130 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33131 (acpi_mod_SOURCES): new variable
33132 (acpi_mod_CFLAGS): likewise
33133 (acpi_mod_LDFLAGS): likewise
33134 * conf/i386-efi.rmk: likewise
33135 * conf/x86_64-efi.rmk: likewise
33136
7dd4a573 331372009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 33138
33139 Missing part from mmap patch
33140
33141 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33142 (grub_mmap_unregister)
33143 (grub_mmap_free_and_unregister): use grub_mmap_register
33144
7dd4a573 331452009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 33146
33147 Mmap services
33148
33149 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33150 * loader/i386/linux.c (find_mmap_size): likewise
33151 (allocate_pages): likewise
33152 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33153 (grub_fill_multiboot_mmap): likewise
33154 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33155 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33156 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33157 (OPENBSD_MMAP_RESERVED): likewise
33158 * include/grub/i386/pc/memory.h: include grub/memory.h
33159 (grub_lower_mem): removed
33160 (grub_upper_mem): likewise
33161 (GRUB_MACHINE_MEMORY_ACPI): new definition
33162 (GRUB_MACHINE_MEMORY_NVS): likewise
33163 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33164 (GRUB_MACHINE_MEMORY_HOLE): likewise
33165 (grub_machine_mmap_register): likewise
33166 (grub_machine_mmap_unregister): likewise
33167 (grub_machine_get_upper): likewise
33168 (grub_machine_get_lower): likewise
33169 (grub_machine_get_post64): likewise
33170 * include/grub/i386/efi/memory.h: new file
33171 * include/grub/x86_64/efi/memory.h: likewise
33172 * include/grub/efi/memory.h: likewise
33173 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33174 (mmap_mod_SOURCES): new variable
33175 (mmap_mod_LDFLAGS): likewise
33176 (mmap_mod_ASFLAGS): likewise
33177 * conf/i386-coreboot.rmk: likewise
33178 * conf/i386-ieee1275.rmk: likewise
33179 * conf/i386-efi.rmk: likewise
33180 * conf/x86_64-efi.rmk: likewise
33181 * include/grub/types.h (UINT_TO_PTR): new macro
33182 (PTR_TO_UINT32): likewise
33183 (PTR_TO_UINT64): likewise
33184 * include/grub/memory.h: new file
33185 * mmap/i386/pc/mmap.c: likewise
33186 * mmap/i386/pc/mmap_helper.S: likewise
33187 * mmap/i386/uppermem.c: likewise
33188 * mmap/mmap.c: likewise
33189 * mmap/efi/mmap.c: likewise
7dd4a573 33190 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 33191 grub_upper_mem
33192 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33193 (grub_upper_mem): likewise
33194 (grub_machine_init): don't use grub_upper_mem,
33195 make grub_lower_mem local
33196 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33197 grub_mmap_iterate and grub_mmap_get_upper
33198 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33199
d558e6b5 332002009-05-02 Bean <bean123ch@gmail.com>
33201
33202 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33203 script/sh/parser.y.
33204 (pkglib_MODULES): Add normal.mod and sh.mod.
33205 (normal_SOURCES): New variable.
33206 (normal_mod_CFLAGS): Likewise.
33207 (normal_mod_LDFLAGS): Likewise.
33208 (sh_mod_SOURCES): Likewise.
33209 (sh_mod_CFLAGS): Likewise.
33210 (sh_mod_LDFLAGS): Likewise.
33211
33212 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33213 script/sh/lexer.c_DEPENDENCIES.
33214 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33215 kern/rescue_reader.c and kern/rescue_parser.c.
33216 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33217 (grub_emu_SOURCES): Change source files.
33218 (pkglib_MODULES): Remove normal.mod.
33219 (normal_SOURCES): Removed.
33220 (normal_mod_CFLAGS): Likewise.
33221 (normal_mod_LDFLAGS): Likewise.
33222 * conf/i386-coreboot.rmk: Likewise.
33223 * conf/i386-efi.rmk: Likewise.
33224 * conf/i386-ieee1276.rmk: Likewise.
33225 * conf/powerpc-ieee1275.rmk: Likewise.
33226 * conf/sparc64-ieee1275.rmk: Likewise.
33227 * conf/x86_64-efi.rmk: Likewise.
33228
33229 * include/grub/command.h (grub_command_execute): New inline function.
33230
33231 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33232
33233 * include/grub/normal.h: Remove <grub/setjmp.h>.
33234 (grub_fs_module_list): Moved to normal/autofs.c.
33235 (grub_exit_env): Removed.
33236 (grub_command_execute): Likewise.
33237 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33238 parameter script.
33239 (read_command_list): New function declaration.
33240 (read_fs_list): Likewise.
33241
33242 * include/parser.h: Include <grub/reader.h>.
33243 (grub_parser_split_cmdline): Change type of getline parameter.
33244 (grub_parser): New structure.
33245 (grub_parser_class): New variable.
33246 (grub_parser_execute): New function declaration.
33247 (grub_register_rescue_parser): Likewise.
33248 (grub_parser_register): New inline function.
33249 (grub_parser_unregister): Likewise.
33250 (grub_parser_get_current): Likewise.
33251 (grub_parser_set_current): Likewise.
33252
33253 * include/grub/reader.h: New file.
33254 * kern/reader.c: Likewise.
33255 * kern/rescue_parser.c: Likewise.
33256 * kern/rescue_reader.c: Likewise.
33257 * normal/autofs.c: Likewise.
33258 * normal/dyncmd.c: Likewise.
33259
33260 * include/grub/rescue.h: Removed.
33261 * normal/command.h: Likewise.
33262
33263 * include/grub/script.h: Moved to ...
33264 * include/grub/script_sh.h: ... Moved here.
33265 * normal/execute.c: Moved to ...
33266 * script/sh/execute.c: ... Moved here.
33267 * normal/function.c: Moved to ...
33268 * script/sh/function.c: ... Moved here.
33269 * normal/lexer.c: Moved to ...
33270 * script/sh/lexer.c: ... Moved here.
33271 * normal/parser.y: Moved to ...
33272 * script/sh/parser.y: ... Moved here.
33273 * normal/script.c: Moved to ...
33274 * script/sh/script.c: ... Moved here.
33275
33276 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33277 <grub/reader.h>.
33278 (grub_exit_env): Removed.
33279 (fs_module_list): Moved to normal/autofs.c.
33280 (grub_file_getline): Don't handle comment here.
33281 (free_menu): Skip removed field entry->commands.
33282 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33283 script parameter.
33284 (read_config_file): Removed nested parameter, change getline function.
33285 (grub_enter_normal_mode): Removed.
33286 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33287 (read_command_list): Likewise.
33288 (autoload_fs_module): Moved to normal/autofs.c.
33289 (read_fs_list): Likewise.
33290 (reader_nested): New variable.
33291 (grub_normal_execute): Run parser.sh to switch to sh parser.
33292 (grub_cmd_rescue): Removed.
33293 (cmd_normal): Removed.
33294 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33295 rescue command.
33296 (grub_cmdline_run): New function.
33297 (grub_normal_reader_init): Likewise.
33298 (grub_normal_read_line): Likewise.
33299 (grub_env_write_pager): Likewise.
33300 (cmdline): New variable.
33301 (grub_normal_reader): Likewise.
33302 (GRUB_MOD_INIT): Register normal reader and set as current, register
33303 pager hook, register normal command with grub_register_command_prio,
33304 so that it won't show up in command.lst.
33305 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
33306 grub_fs_autoload_hook.
33307
33308 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
33309 (grub_menu_execute_entry): Replace grub_script_execute with
33310 grub_parser_execute, change parameter to grub_command_execute.
33311
33312 * normal/menu_text.c: Remove <grub/script.h>.
33313
33314 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
33315 and <grub/parser.h>.
33316 (run): Change editor_getline to use new parser interface. Change
33317 parameter to grub_command_execute.
33318
33319 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
33320 <grub/reader.h> and <grub/parser.h>.
33321 (grub_load_normal_mode): Execute normal command.
33322 (grub_main): Call grub_register_core_commands,
33323 grub_register_rescue_parser and grub_register_rescue_reader, use
33324 grub_reader_loop to enter input loop.
33325
7dd4a573 33326 * kern/parser.c (grub_parser_split_cmdline): Change type of
33327 getline parameter.
d558e6b5 33328 (grub_parser_class): New variable.
33329 (grub_parser_execute): New function.
33330
33331 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
33332 * loader/multiboot2.c: Likewise.
33333 * loader/sparc64/ieee1275/linux.c: Likewise.
33334
33335 * util/grub-emu.c (read_command_list): New dummy function.
33336
18db813d 333372009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33338
33339 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
33340 count to 16 for CCISS and IDA.
33341
6c67de15 333422009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33343
33344 * normal/menu_text.c (grub_wait_after_message): Print a newline
33345 after waiting for user input.
33346
33347 * loader/i386/linux.c: Include `<grub/normal.h>'.
33348 (grub_cmd_linux): Improve the error message about `ask' mode, by
33349 waiting for user input so it's not missed (we can do this, since
33350 user requested interaction).
33351
d9dc87b0 333522009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33353
33354 Added missing lst to grub-mkrescue
33355
33356 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
33357 and ${input_dir}/parttool.lst
33358
ac8a2baa 333592009-04-30 David S. Miller <davem@davemloft.net>
33360
ad22a610 33361 * util/hostdisk.c (device_is_wholedisk): New function.
33362 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
33363 zero only if device_is_wholedisk() returns true.
33364
6966215d 33365 * util/hostdisk.c (convert_system_partition_to_system_disk):
33366 Handle virtual disk devices named /dev/vdiskX as found on sparc
33367 and powerpc.
33368
ac8a2baa 33369 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
33370 lettered partition specifier is found, convert to numbered.
33371
979b4fb4 333722009-04-29 David S. Miller <davem@davemloft.net>
33373
e2bf39b2 33374 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
33375 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33376
3c64e104 33377 * normal/command.c: Add missing newline at end of file.
33378
979b4fb4 33379 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
33380 warnings.
33381 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
33382 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
33383 grub_ofdisk_read): Likewise, and deal similarly with the fact that
33384 ihandles have a 32-bit type but need to be stored in a "void *".
33385
136d9f82 333862009-04-28 Pavel Roskin <proski@gnu.org>
33387
9459c306 33388 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
33389 not disk. Adjust all dependencies.
2e08a26a 33390 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 33391 grub_disk_close().
33392
136d9f82 33393 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
33394 parent's partition, don't copy it by reference, as it gets freed
33395 on close.
33396
7dd4a573 333972009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 33398
33399 Preboot hooks support
33400
33401 * commands/boot.c (struct grub_preboot_t): new declaration
33402 (preboots_head): new variable
33403 (preboots_tail): likewise
33404 (grub_loader_register_preboot_hook): new function
33405 (grub_loader_unregister_preboot_hook): likewise
33406 (grub_loader_set): launch preboot hooks
33407 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
33408 (grub_loader_register_preboot_hook): new declaration
33409 (grub_loader_unregister_preboot_hook): likewise
33410
5af922b5 334112009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33412
33413 Warning fix
33414
7dd4a573 33415 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 33416 calling grub_dprintf
33417
a5562c30 334182009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
33419
33420 Bug and warning fixes
33421
7dd4a573 33422 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 33423 declaration
33424 * commands/test.c (test_parse): fixed bug with file tests and corrected
33425 declaration of find_file
33426
4006f85c 334272009-04-26 Pavel Roskin <proski@gnu.org>
33428
33429 * Makefile.in: Don't install empty manual pages if help2man is
33430 missing. Use help2man option for output, not shell redirection.
33431
5c77c3de 334322009-04-26 David S. Miller <davem@davemloft.net>
33433
33434 * util/grub-mkdevicemap.c (make_device_map): Add missing
33435 NESTED_FUNC_ATTR to process_device().
33436
033b10a8 334372009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33438
33439 Test command
33440
33441 * commands/test.c: rewritten to use bash-like test
33442
e4343593 334432009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33444
33445 Parttool autoloading and improvements
33446
7dd4a573 33447 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 33448 (parttool.lst): new target
33449 * genmk.rb: generate parttool-*
33450 (CLEANFILES): add #{parttool}
33451 (PARTTOOLFILES): new variable
33452 * genparttoollist.sh: new file
7dd4a573 33453 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 33454 (grub_pcpart_type): likewise
33455 * commands/parttool.c (helpmsg): new variable
33456 (grub_cmd_parttool): output help if not enough arguments are supplied
33457 autoload modules
33458 (GRUB_MOD_INIT(parttool)): use helpmsg
33459
0d312500 334602009-04-24 David S. Miller <davem@davemloft.net>
33461
7dd4a573 33462 Avoiding opening same device multiple times in device iterator.
0d312500 33463
33464 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 33465 and use it to build a list of partitions in iterate_disk() and
0d312500 33466 iterate_partition().
33467
ac20caff 33468 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
33469 on disk->data.
33470
0dcf7495 33471 * disk/ieee1275/nand.c (grub_nand_iterate): Return
33472 grub_devalias_iterate() result instead of unconditional 0.
33473 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
33474 Also, capture hook return value, either directly or via
33475 grub_children_iterate(), and propagate to caller.
33476 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
33477 grub_children_iterate): Return value is now 'int' instead of
33478 'grub_err_t'.
33479 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
33480 like a proper iterator, stopping when hooks return non-zero.
33481 (grub_devalias_iterate): Likewise.
33482
c8c08833 334832009-04-23 David S. Miller <davem@davemloft.net>
33484
33485 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
33486
f01005a8 334872009-04-22 David S. Miller <davem@davemloft.net>
33488
33489 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
33490 is larger than address_cells, use that value for address_cells too.
33491
4e8269da 33492 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
33493 IEEE1275_MAX_PATH_LEN): Define.
33494 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
33495 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
33496 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
33497 'devtype'. Explicitly NULL terminate devalias expansion.
33498
a1447506 33499 * util/sparc64/ieee1275/misc.c: New file.
33500 * util/sparc64/ieee1275/grub-setup.c: New file.
33501 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
33502 * util/sparc64/ieee1275/grub-mkimage.c: New file.
33503 * util/sparc64/ieee1275/grub-install.in: New file.
33504 * util/ieee1275/ofpath.c: New file.
33505 * util/ieee1275/devicemap.c: New file.
33506 * util/devicemap.c: New file.
33507 * util/deviceiter.c: New file.
33508 * kern/sparc64/ieee1275/init.c: New file.
33509 * include/grub/util/ofpath.h: New file.
33510 * include/grub/util/deviceiter.h: New file.
33511 * util/grub-mkdevicemap.c: Include deviceiter.h.
33512 Implement using grub_util_emit_devicemap_entry and
33513 grub_util_iterate_devices.
33514 * conf/i386-corebook.rmk: Build util/deviceiter.c and
33515 util/devicemap.c into grub-mkdevicemap
33516 * conf/i386-efi.rmk: Likewise.
33517 * conf/i386-ieee1275.rmk: Likewise.
33518 * conf/i386-pc.rmk: Likewise.
33519 * conf/powerpc-ieee1275.rmk: Likewise.
33520 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
33521 images and installation utilities. Build kernel as image
33522 instead of as elf binary. Use common rules as much as possible.
33523
7dd4a573 335242009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 33525
33526 Correct GPT definition
33527
7dd4a573 33528 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 33529 of "attrib" member
33530
c6c5219f 335312009-04-19 Felix Zielcke <fzielcke@z-51.de>
33532
33533 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
33534
0552ff9f 335352009-04-19 David S. Miller <davem@davemloft.net>
33536
33537 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
33538 (grub_rescue_cmd_linux): Rename to...
33539 (grub_cmd_linux): and fix prototype.
33540 (grub_rescue_cmd_initrd): Rename to...
33541 (grub_cmd_initrd): and fix prototype.
33542 (cmd_linux, cmd_initrd): New.
33543 (GRUB_MOD_INIT(linux)): Use grub_register_command().
33544 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
33545
d1a282fc 335462009-04-17 Pavel Roskin <proski@gnu.org>
33547
07c5039f 33548 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
33549 format.
33550 (grub_ohci_transfer): Likewise.
33551
b012002d 33552 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
33553
1bc09c35 33554 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
33555 return without a value. Fix inconsistent indentation.
33556
e0ff9126 33557 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
33558 match struct grub_fs.
33559
d1a282fc 33560 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
33561 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
33562 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33563 * commands/lspci.c (grub_lspci_iter): Likewise.
33564
a96df3f2 335652009-04-16 Bean <bean123ch@gmail.com>
33566
33567 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
33568 value.
33569
41bb0fe9 335702009-04-15 Pavel Roskin <proski@gnu.org>
33571
33572 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
33573 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
33574 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
33575 definitions.
33576
596c6970 335772009-04-15 Felix Zielcke <fzielcke@z-51.de>
33578
33579 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 33580 that no multiple data or metadata areas are supported and `Unknown
596c6970 33581 metadata header'.
33582
7dd4a573 335832009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 33584
33585 Move loader out of the kernel
33586
33587 * kern/loader.c: moved to ...
33588 * commands/boot.c: ... moved here
33589 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
33590 * commands/boot.c (grub_cmd_boot): moved here. All users updated
33591 * include/grub/kernel.h (grub_machine_fini): export
33592 * include/grub/loader.h (grub_loader_is_loaded): update declaration
33593 (grub_loader_set): likewise
33594 (grub_loader_unset): likewise
33595 (grub_loader_boot): likewise
33596 * conf/common.rmk: new module boot.mod
33597 (pkglib_MODULES): add boot.mod
33598 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
33599 (grub_emu_SOURCES): likewise
33600 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
33601 (grub_emu_SOURCES): likewise
33602 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
33603 (grub_emu_SOURCES): likewise
33604 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
33605 (grub_emu_SOURCES): likewise
33606 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
33607 (grub_emu_SOURCES): likewise
7dd4a573 33608 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
33609 (grub_emu_SOURCES): likewise
0d5d5653 33610 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 33611 (grub_emu_SOURCES): likewise
0d5d5653 33612
7dd4a573 336132009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 33614
33615 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 33616
5999d619 33617 * kern/misc.c (grub_itoa): Removed function
33618 (grub_ltoa): likewise
33619 (grub_vsprintf): use grub_lltoa
33620
7dd4a573 336212009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 33622
33623 Restore grub-emu
33624
33625 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
33626 * conf/i386-coreboot.rmk: likewise
33627 * conf/i386-ieee1275.rmk: likewise
33628 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33629
20318222 336302009-04-15 Felix Zielcke <fzielcke@z-51.de>
33631
33632 * INSTALL: Add that `./autogen.sh' needs to be run before
33633 `./configure.'.
33634
d05f0df3 336352009-04-14 Bean <bean123ch@gmail.com>
33636
33637 * Makefile.in (pkglib_DATA): Add handler.lst.
33638 (handler.lst): New rule.
33639
33640 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
33641 * conf/i386-coreboot.rmk: Likewise.
33642 * conf/i386-ieee1275.rmk: Likewise.
33643 * conf/i386-efi.rmk: Likewise.
33644 * conf/x86_64-efi.rmk: Likewise.
33645 * conf/powerpc-ieee1275.rmk: Likewise.
33646 * conf/sparc64-ieee1275.rmk: Likewise.
33647
33648 * genhandlerlist.sh: New file.
33649
33650 * genmk.rb: Add rules to generate handler.lst.
33651
33652 * include/grub/normal.h (grub_file_getline): New function definition.
33653 (read_handler_list): Likewise.
33654 (free_handler_list): Likewise.
33655
33656 * include/grub/term.h (grub_term_register_input): Add name parameter
33657 for auto generation of handler.lst.
33658 (grub_term_register_output): Likewise.
33659
33660 * normal/handler.c: New file.
33661
33662 * normal/main.c (get_line): Renamed to grub_file_getline.
33663 (read_config_file): Use the newly renamed grub_file_getline.
33664 (read_command_list): Likewise.
33665 (read_fs_list): Likewise.
33666 (grub_normal_execute): Call read_handler_list to parse handler.lst.
33667 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
33668
33669 * term/efi/console.c (grub_console_init): Add name parameter for auto
33670 generation of handler.lst.
33671 * term/gfxterm.c: Likewise.
33672 * term/i386/pc/at_keyboard.c: Likewise.
33673 * term/i386/pc/console.c: Likewise.
33674 * term/i386/pc/serial.c: Likewise.
33675 * term/i386/pc/vesafb.c: Likewise.
33676 * term/i386/pc/vga.c: Likewise.
33677 * term/i386/pc/vga_text.c: Likewise.
33678 * term/ieee1275/ofconsole.c: Likewise.
33679 * term/usb_keyboard.c: Likewise.
33680
33c846be 336812009-04-14 Bean <bean123ch@gmail.com>
33682
33683 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
33684 properly with null character.
33685
4484e01e 336862009-04-14 Felix Zielcke <fzielcke@z-51.de>
33687
33688 * configure: Remove.
33689 * config.h.in: Likewise.
f93d668e 33690 * stamp-h.in: Likewise.
4484e01e 33691 * DISTLIST: Likewise.
33692 * conf/common.mk: Likewise.
33693 * conf/i386-coreboot.mk: Likewise.
33694 * conf/i386-efi.mk: Likewise.
33695 * conf/i386-ieee1275.mk: Likewise.
33696 * conf/i386.mk: Likewise.
33697 * conf/i386-pc.mk: Likewise.
33698 * conf/powerpc-ieee1275.mk: Likewise.
33699 * conf/sparc64-ieee1275.mk: Likewise.
33700 * conf/x86_64-efi.mk: Likewise.
33701
33702 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
33703 develop on GRUB.
33704
7dd4a573 337052009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 33706 David S. Miller <davem@davemloft.net>
33707
33708 * util/hostdisk.c (make_device_name): Fix buffer length
33709 calculations.
33710
e25b5a8c 337112009-04-14 Felix Zielcke <fzielcke@z-51.de>
33712
33713 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
33714 <sys/param.h> and <sys/sysctl.h>.
33715 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
33716 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
33717 opening the device and reset them afterwards.
33718
1f1f580c 337192009-04-13 Pavel Roskin <proski@gnu.org>
33720
33721 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
33722 Reported by John Stanley <jpsinthemix@verizon.net>
33723
7ebc2d6b 337242009-04-13 Robert Millan <rmh@aybabtu.com>
33725
33726 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 33727 that name for menuentries when appropriate.
7ebc2d6b 33728
d8ba3667 337292009-04-13 Felix Zielcke <fzielcke@z-51.de>
33730
33731 * util/grub.d/10_freebsd.in: Add a missing `fi'.
33732
cba416eb 337332009-04-13 Robert Millan <rmh@aybabtu.com>
33734
33735 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
33736 to Linux, simply abort telling the user it's no longer supported.
33737
a547a745 337382009-04-13 Felix Zielcke <fzielcke@z-51.de>
33739
33740 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 33741 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 33742 `freebsd_loadenv' only when devices.hints exist.
33743
232a769c 337442009-04-13 Pavel Roskin <proski@gnu.org>
33745
33746 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
33747
c3012039 337482009-04-13 Felix Zielcke <fzielcke@z-51.de>
33749
33750 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
33751 partition number.
33752 (grub_drive): Likewise.
33753
234022fe 337542009-04-13 David S. Miller <davem@davemloft.net>
33755
33756 * kern/sparc64/ieee1275/ieee1275.c: New file.
33757 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
33758 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
33759 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
33760 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
33761 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
33762 grub_ieee1275_alloc_physmem): Declare new exported functions.
33763
d8e1836c 33764 * include/grub/sparc64/ieee1275/loader.h: New file.
33765 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33766 * include/grub/sparc64/kernel.h: Likewise.
33767 * loader/sparc64/ieee1275/linux.c: Likewise.
33768
96bd81ec 33769 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
33770 (grub_fstest_SOURCES): Likewise.
33771
6a4737e5 33772 * util/hostdisk.c (make_device_name): Do not make any assumptions
33773 about the length of drive names.
33774
1d7a72fd 33775 * kern/dl.c (grub_dl_load_file): Close file immediately when
33776 we are done using it.
33777
56bc2471 337782009-04-12 David S. Miller <davem@davemloft.net>
33779
33780 * kern/misc.c (grub_ltoa): Fix cast when handling negative
33781 values. Noticed by Pavel Roskin.
33782
df38d0bb 33783 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
33784 target compiler.
7dd4a573 33785
e382e93a 33786 * genmk.rb: Add more flexible image type specification, also
33787 pass --strip-unneeded to objcopy.
33788 * conf/i386-pc.rmk: Use *_FORMAT.
33789 * conf/i386-pc.mk: Rebuilt.
33790
f5dbbca9 33791 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
33792 (OFDISK_HASH_SZ): Define.
33793 (ofdisk_hash): New hash table.
33794 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
33795 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
33796 instead of device phandle which is not unique.
33797
91c88b12 33798 * kern/sparc64/ieee1275/init.c: Delete, replace with...
33799 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
33800 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
33801 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
33802 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
33803 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
33804 GRUB_KERNEL_MACHINE_DATA_END): Define.
33805 (grub_kernel_image_size, grub_total_module_size): Declare.
33806
5b5d4aa5 338072009-04-12 Pavel Roskin <proski@gnu.org>
33808
7dd4a573 33809 * configure.ac: Change the logic when we check for target tools.
33810 Do it when the target is specified and it's different from the
33811 specified value of the host.
5b5d4aa5 33812
c91e1793 338132009-04-11 Felix Zielcke <fzielcke@z-51.de>
33814
33815 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
33816 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
33817 GNU/kFreeBSD. Check if a device is a character device. Use
33818 DIOCGMEDIASIZE to get the size.
33819 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
33820 support for GNU/kFreeBSD.
33821 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
33822 is a character device instead of a block device. Add support for
33823 FreeBSD device names.
33824
33825 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33826 is a character device instead of a block device.
33827
33828 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33829 is a character device instead of a block device.
33830
b1ac8644 338312009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33832
33833 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33834 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33835 FreeBSD. Check if a device is a character device. Use
33836 DIOCGMEDIASIZE to get the size.
33837 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33838 support for FreeBSD.
33839 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33840 is a character device instead of a block device. Add support for
33841 FreeBSD device names.
33842
33843 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33844 a character device instead of a block device.
33845 (grub_util_check_char_device): New function.
33846
33847 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33848 a character device instead of a block device.
33849
33850 * include/grub/util/getroot.h (grub_util_check_char_device): New
33851 prototype.
33852
a3f7515a 338532009-04-11 David S. Miller <davem@davemloft.net>
33854
33855 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33856 static libgcc.
33857 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33858 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33859 function, if present.
33860 (__bswapdi2): Likewise.
33861
0d44993d 33862 * include/grub/sparc64/ieee1275/boot.h: New file.
33863 * boot/sparc64/ieee1275/boot.S: Likewise.
33864 * boot/sparc64/ieee1275/diskboot.S: Likewise.
33865
ed3d2bc2 33866 * kern/misc.c (grub_ltoa): New function.
33867 (grub_vsprintf): Use it to format 'long' integers.
33868
d3bfb59c 338692009-04-10 David S. Miller <davem@davemloft.net>
33870
33871 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
33872 slots are of type grub_ieee1275_cell_t.
33873 (grub_nand_read): Likewise.
33874 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
33875 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
33876 macros are used to compare values in arg/ret block of the call.
33877 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33878 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33879 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33880 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33881 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33882 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33883 grub_ieee1275_close, grub_ieee1275_set_property,
33884 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33885 grub_ieee1275_cell_t.
33886 * kern/ieee1275/openfw.c (grub_map): Likewise.
33887 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33888 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33889
450e2238 33890 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33891 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33892 (grub_devalias_iterate): Likewise.
33893
7dd4a573 338942009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33895
33896 UFS improvements
33897
33898 * fs/ufs.c (INODE_NBLOCKS): new definition
33899 (struct grub_ufs_dirent): added fields for non-BSD dirents
33900 (grub_ufs_get_file_block): fixed double indirect handling
33901 (grub_ufs_lookup_symlink): use more robust way to determine whether
33902 symlink is inline
33903 (grub_ufs_find_file): support for non-BSD dirents
33904 (grub_ufs_dir): support for non-BSD dirents
33905
e7e6862a 339062009-04-10 Bean <bean123ch@gnail.com>
33907
33908 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33909 attribute, otherwise the size would be wrong for i386 platform.
33910
33911 * include/grub/pci.h (grub_pci_read_word): New inline function.
33912 (grub_pci_read_byte): Likewise.
33913 (grub_pci_write): Likewise.
33914 (grub_pci_write_word): Likewise.
33915 (grub_pci_write_byte): Likewise.
33916
33917 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33918
33919 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33920 (find_framebuf): Scan pci to locate the frame buffer address.
33921
33922 * commands/efi/fixvideo.c: New file.
33923
33924 * commands/efi/loadbios.c: Likewise.
33925
33926 * commands/memrw.c: Likewise.
33927
33928 * util/grub-dumpbios.in: Likewise.
33929
33930 * conf/common.rmk (grub-dumpbios): New utility.
33931 (pkglib_MODULES): New module memrw.mod.
33932 (memrw_mod_SOURCE): New macro.
33933 (memrw_mod_CFLAGS): Likewise.
33934 (memrw_mod_LDFLAGS): Likewise.
33935
7dd4a573 33936 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33937 fixvideo.mod.
33938 (loadbios_mod_SOURCE): New macro.
33939 (loadbios_mod_CFLAGS): Likewise.
33940 (loadbios_mod_LDFLAGS): Likewise.
33941 (fixvideo_mod_SOURCE): Likewise.
33942 (fixvideo_mod_CFLAGS): Likewise.
33943 (fixvideo_mod_LDFLAGS): Likewise.
33944
7dd4a573 33945 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33946 fixvideo.mod.
33947 (loadbios_mod_SOURCE): New macro.
33948 (loadbios_mod_CFLAGS): Likewise.
33949 (loadbios_mod_LDFLAGS): Likewise.
33950 (fixvideo_mod_SOURCE): Likewise.
33951 (fixvideo_mod_CFLAGS): Likewise.
33952 (fixvideo_mod_LDFLAGS): Likewise.
33953
af63ada2 339542009-04-08 Felix Zielcke <fzielcke@z-51.de>
33955
33956 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33957
c2cdde70 339582009-04-07 David S. Miller <davem@davemloft.net>
33959
33960 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33961 support for R_SPARC_OLO10 relocations. Fix compile warning for
33962 R_SPARC_WDISP30 case.
ea3f72cf 33963 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33964
761319cf 339652009-04-06 Pavel Roskin <proski@gnu.org>
33966
1007d1f5 33967 * include/grub/misc.h (ARRAY_SIZE): New macro.
33968 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33969 New macro.
33970 * loader/i386/linux.c (allocate_pages): Use free_pages().
33971 (grub_linux_unload): Don't use free_pages().
33972 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33973 wrong index. Treat all other modes as text modes.
33974 (grub_cmd_linux): Initialize vid_mode unconditionally to
33975 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33976
761319cf 33977 * commands/help.c (print_command_help): Use cmd->prio, not
33978 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33979
ea761d40 339802009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33981
ea761d40 33982 Parttool
33983
33984 * parttool/pcpart.c: new file
33985 * commands/parttool.c: likewise
33986 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33987 (parttool_mod_SOURCES): new variable
33988 (parttool_mod_CFLAGS): likewise
33989 (parttool_mod_LDFLAGS): likewise
33990 (pcpart_mod_SOURCES): likewise
33991 (pcpart_mod_CFLAGS): likewise
33992 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33993 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33994 and parttool/pcpart.c
33995 * conf/i386-efi.rmk: likewise
33996 * conf/i386-ieee1275.rmk: likewise
33997 * conf/i386-pc.rmk: likewise
33998 * conf/powerpc-ieee1275.rmk: likewise
33999 * conf/sparc64-ieee1275.rmk: likewise
34000 * conf/x86_64-ieee1275.rmk: likewise
34001
05aaebfb 340022009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34003
34004 Support for mtime and further expandability of dir command
34005
34006 * include/grub/lib/datetime.h: moved to ...
7dd4a573 34007 * include/grub/datetime.h: ... moved here and added
05aaebfb 34008 declaration of grub_unixtime2datetime. All users updated
7dd4a573 34009 * include/grub/fs.h: new syntax for dir and mtime functions in
34010 struct grub_fs
05aaebfb 34011 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
34012 and GRUB_FSHELP_FLAGS_MASK
34013 * commands/ls.c (grub_ls_list_files): Write mtime in long format
34014 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
34015 (grub_ext2_mtime): new function
34016 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34017 (grub_hfsplus_mtime): new function
34018 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34019 (GRUB_UFS_ATTR_FILE): likewise
34020 (GRUB_UFS_ATTR_LNK): likewise
34021 (struct grub_ufs_sblock): new fields mtime
34022 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34023 all users updated
34024 (grub_ufs_dir): mtime support
34025 (grub_ufs_mtime): new function
34026 * fs/affs.c (grub_affs_dir): use new dir syntax
34027 * fs/afs.c (grub_afs_dir): likewise
34028 * fs/cpio.c (grub_cpio_dir): likewise
34029 * fs/fat.c (grub_fat_find_dir): likewise
34030 * fs/hfs.c (grub_hfs_dir): likewise
34031 * fs/iso9660.c (grub_iso9660_dir): likewise
34032 * fs/jfs.c (grub_jfs_dir): likewise
34033 * fs/minix.c (grub_minix_dir): likewise
34034 * fs/ntfs.c (grub_ntfs_dir): likewise
34035 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34036 * fs/sfs.c (grub_sfs_dir): likewise
34037 * fs/xfs.c (grub_xfs_dir): likewise
34038 * util/hostfs.c (grub_hostfs_dir): likewise
34039 * lib/datetime.c: moved to ...
34040 * normal/datetime.c: ... moved here
34041 (grub_unixtime2datetime): new function
34042 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 34043 * normal/completion.c (iterate_dir): use new dir syntax
34044 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 34045 last modification time of a volume
7dd4a573 34046 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 34047 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 34048 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 34049 (normal_mod_SOURCES): likewise
34050 (datetime_mod_SOURCES): Removed lib/datetime.c
34051 * conf/i386-efi.rmk: likewise
7dd4a573 34052 * conf/i386-ieee1275.rmk: likewise
05aaebfb 34053 * conf/i386-pc.rmk: likewise
34054 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 34055 * conf/sparc64-ieee1275.rmk: likewise
34056 * conf/x86_64-efi.rmk: likewise
05aaebfb 34057
8a7e1a14 340582009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34059
34060 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 34061
34062 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 34063 on grub_fat_find_dir
34064 (grub_fat_find_dir): use grub_fat_iterate_dir
34065 (grub_fat_label): likewise
34066
04186a9c 340672009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34068
7dd4a573 34069 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 34070 and command.h
34071 remove extraneous kernel_elf_HEADERS
34072
da4c0bb6 340732009-04-04 Bean <bean123ch@gnail.com>
34074
34075 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34076
34077 * util/misc.c: Likewise.
34078
54ad9555 340792009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34080
34081 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34082 instead of grub_printf.
34083
7a6bf9f2 340842009-04-03 Robert Millan <rmh@aybabtu.com>
34085
34086 * loader/i386/linux.c (grub_linux_setup_video): Fill
34087 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34088 values from `mode info' structure instead of hardcoded
34089 values.
34090
3fcc2083 340912009-04-01 Pavel Roskin <proski@gnu.org>
34092
34093 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34094 unused now.
34095 * genmk.rb: Likewise.
34096 * configure.ac: Likewise.
34097
5ec9740b 340982009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34099
34100 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34101 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34102
5270cec8 341032009-04-01 David S. Miller <davem@davemloft.net>
34104
34105 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 34106 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 34107 (grub_setjmp): Mark with 'returns_twice' attribute.
34108 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34109 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34110 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34111
9c3dd854 341122009-04-01 Robert Millan <rmh@aybabtu.com>
34113
34114 Reapply fix from 2008-07-28 which was accidentally reverted; also
34115 perform the same fix to a similar check in same function.
34116
34117 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34118 with the same number are found, just use issue a warning with
34119 grub_dprintf(), as this error has been reported to be non-fatal.
34120
0d818b7e 341212009-03-31 Pavel Roskin <proski@gnu.org>
34122
34123 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34124 for cross-compilation.
34125
95646d92 341262009-03-30 Robert Millan <rmh@aybabtu.com>
34127
34128 Fix i386-ieee1275 build.
34129
34130 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34131 Remove declaration.
34132
6a003ed1 341332009-03-30 Pavel Roskin <proski@gnu.org>
34134
34135 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34136 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34137 zero-terminated, rely only on the strlen value. Fix comparison
34138 of strings differing in length.
34139
92f33540 341402009-03-30 Robert Millan <rmh@aybabtu.com>
34141
34142 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34143 checking for abi version. Improve error messages on BIOS to notify
34144 user about `linux16' command.
34145
a8c48fd5 341462009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34147
f968172e 34148 Leak fixes
a8c48fd5 34149
f968172e 34150 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34151 in case of collision
34152 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 34153
9c323f09 341542009-03-29 Robert Millan <rmh@aybabtu.com>
34155
34156 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34157 set `vid_mode' accordingly.
34158 (grub_linux_boot): Process `vid_mode' and set video mode.
34159
ae68f423 341602009-03-29 Robert Millan <rmh@aybabtu.com>
34161
34162 * util/grub.d/10_linux.in (linux_entry): New function.
34163 Factorize generation of Linux boot entries.
34164
5709cfc4 341652009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34166
34167 Make the format of Environment Block plain text. The boot loader
34168 part is not tested well yet.
7dd4a573 34169
5709cfc4 34170 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34171 (buffer): Removed.
34172 (envblk): Likewise.
34173 (usage): Remove "info" and "clear". Add "unset". Update the
34174 description of "set", as this does not delete variables any
34175 longer.
34176 (create_envblk_file): Complete rewrite.
34177 (open_envblk_file): Likewise.
34178 (cmd_info): Removed.
34179 (cmd_list): Likewise.
34180 (cmd_set): Likewise.
34181 (cmd_clear): Likewise.
34182 (list_variables): New function.
34183 (write_envblk): Likewise.
34184 (set_variables): Likewise.
34185 (unset_variables): Likewise.
34186 (main): Complete rewrite.
34187
34188 * commands/loadenv.c (buffer): Removed.
34189 (envblk): Likewise.
34190 (open_envblk_file): New function.
34191 (read_envblk_file): Complete rewrite.
34192 (grub_cmd_load_env): Likewise.
34193 (grub_cmd_list_env): Likewise.
34194 (struct blocklist): New struct.
34195 (free_blocklists): New function.
34196 (check_blocklists): Likewise.
34197 (write_blocklists): Likewise.
34198 (grub_cmd_save_env): Complete rewrite.
34199
34200 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34201 a plain text signature.
34202 (GRUB_ENVBLK_MAXLEN): Removed.
34203 (struct grub_envblk): Complete rewrite.
34204 (grub_envblk_find): Removed.
34205 (grub_envblk_insert): Likewise.
34206 (grub_envblk_open): New prototype.
34207 (grub_envblk_set): Likewise.
34208 (grub_envblk_delete): Put const to VALUE.
34209 (grub_envblk_iterate): Put const to NAME and VALUE.
34210 (grub_envblk_close): New prototype.
34211 (grub_envblk_buffer): New inline function.
34212 (grub_envblk_size): Likewise.
34213
34214 * lib/envblk.c: Include grub/mm.h.
34215 (grub_env_find): Removed.
34216 (grub_envblk_open): New function.
34217 (grub_envblk_close): Likewise.
34218 (escaped_value_len): Likewise.
34219 (find_next_line): Likewise.
34220 (grub_envblk_insert): Removed.
34221 (grub_envblk_set): New function.
34222 (grub_envblk_delete): Complete rewrite.
34223 (grub_envblk_iterate): Likewise.
34224
a9368fd3 342252009-03-28 Robert Millan <rmh@aybabtu.com>
34226
34227 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34228 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34229 variables. Use 16-bit loader.
34230 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34231 loader.
34232 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34233 (grub_linux16_boot): ... this. Update all users.
34234 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34235 (grub_linux_boot): ... this. Update all users.
34236
34237 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34238 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34239 commands to `linux16' and `initrd16'.
34240 (GRUB_MOD_FINI(linux)): Rename to ...
34241 (GRUB_MOD_FINI(linux16)): ... this.
34242
e4dd5a7e 342432009-03-24 Pavel Roskin <proski@gnu.org>
34244
34245 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34246 not just for compilation.
34247
c04d6e05 342482009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34249
34250 Move multiboot helper out of kernel
34251
34252 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34253 `loader/i386/multiboot_helper.S'.
34254 * conf/i386-coreboot.rmk: Likewise
34255 * conf/i386-ieee1275.rmk: Likewise
34256
34257 * kern/i386/loader.S: Move multiboot helpers from here...
34258 * loader/i386/multiboot_helper.S: ...moved here
34259 * include/grub/i386/loader.h: Move declarations of multiboot
34260 helpers from here...
34261 * include/grub/i386/multiboot.h: ...moved here
34262 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34263
42a5b3fc 342642009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34265
34266 * kern/env.c (grub_env_context_open): Added an argument to specify
34267 whether a new context inherits exported variables from current
34268 one. This is useful when making a sandbox to interpret a config
34269 file.
34270 All callers updated.
34271
34272 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34273
b28bbc4e 342742009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34275
34276 * kern/env.c (grub_env_context_close): Fix memory leaks.
34277
f04f02e4 342782009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34279
34280 * normal/main.c (grub_normal_execute): Added an argument
34281 BATCH to specify if an interactive interface should be provided
34282 after reading a config file.
34283 All callers updated.
34284 (read_command_list): Prevent being executed twice.
34285 (read_fs_list): Likewise.
34286
42a5b3fc 34287 * include/grub/normal.h (grub_normal_execute): Updated the
34288 prototype.
f04f02e4 34289
41473ac2 342902009-03-22 Pavel Roskin <proski@gno.org>
34291
fbc00b0c 34292 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34293 _start.
34294 * kern/i386/pc/startup.S: Likewise.
34295 * kern/i386/efi/startup.S: Likewise.
34296 * kern/i386/ieee1275/startup.S: Likewise.
34297 * kern/i386/coreboot/startup.S: Likewise.
34298 * kern/x86_64/efi/startup.S: Likewise.
34299
41473ac2 34300 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34301 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34302 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
34303
2274cc8f 343042009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
34305
34306 Bugfixes in multiboot for bugs uncovered by solaris kernel.
34307
34308 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
34309 limit detection.
34310 Use vaddr of correct segment for entry_point.
34311
b1b797cb 343122009-03-21 Bean <bean123ch@gmail.com>
34313
34314 * commands/blocklist.c: Add include file <grub/command.h>, remove
34315 <grub/normal.h> and <grub/arg.h>.
34316 (grub_cmd_blocklist): Use the new command interface.
34317 (GRUB_MOD_INIT): Likewise.
34318 (GRUB_MOD_FINI): Likewise.
34319 * commands/boot.c: Likewise.
34320 * commands/cat.c: Likewise.
34321 * commands/cmp.c: Likewise.
34322 * commands/configfile.c: Likewise.
34323 * commands/crc.c: Likewise.
34324 * commands/echo.c: Likewise.
34325 * commands/halt.c: Likewise.
34326 * commands/handler.c: Likewise.
34327 * commands/hdparm.c: Likewise.
34328 * commands/help.c: Likewise.
34329 * commands/hexdump.c: Likewise.
34330 * commands/loadenv.c: Likewise.
34331 * commands/ls.c: Likewise.
34332 * commands/lsmmap.c: Likewise.
34333 * commands/lspci.c: Likewise.
34334 * commands/loadenv.c: Likewise.
34335 * commands/read.c: Likewise.
34336 * commands/reboot.c: Likewise.
34337 * commands/search.c: Likewise.
34338 * commands/sleep.c: Likewise.
34339 * commands/test.c: Likewise.
34340 * commands/usbtest.c: Likewise.
34341 * commands/videotest.c: Likewise.
34342 * commands/i386/cpuid.c: Likewise.
34343 * commands/i386/pc/halt.c: Likewise.
34344 * commands/i386/pc/play.c: Likewise.
34345 * commands/i386/pc/pxecmd.c: Likewise.
34346 * commands/i386/pc/vbeinfo.c: Likewise.
34347 * commands/i386/pc/vbetest.c: Likewise.
34348 * commands/ieee1275/suspend.c: Likewise.
34349 * disk/loopback.c: Likewise.
34350 * font/font_cmd.c: Likewise.
34351 * hello/hello.c: Likewise.
34352 * loader/efi/appleloader.c: Likewise.
34353 * loader/efi/chainloader.c: Likewise.
34354 * loader/i386/bsd.c: Likewise.
34355 * loader/i386/efi/linux.c: Likewise.
34356 * loader/i386/ieee1275/linux.c: Likewise.
34357 * loader/i386/linux.c: Likewise.
34358 * loader/i386/pc/chainloader.c: Likewise.
34359 * loader/i386/pc/linux.c: Likewise.
34360 * loader/powerpc/ieee1275/linux.c: Likewise.
34361 * loader/multiboot_loader.c: Likewise.
34362 * term/gfxterm.c: Likewise.
34363 * term/i386/pc/serial.c: Likewise.
34364 * term/terminfo.c: Likewise.
34365
34366 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
34367 * term/i386/pc/vga.c: Likewise.
34368 * video/readers/jpeg.c: Likewise.
34369 * video/readers/png.c: Likewise.
34370 * video/readers/tga.c: Likewise.
34371
34372 * util/grub-fstest (cmd_loopback): Removed.
34373 (cmd_blocklist): Likewise.
34374 (cmd_ls): Likewise.
34375 (grub_register_command): Likewise.
34376 (grub_unregister_command): Likewise.
34377 (execute_command): Use grub_command_find to locate command and execute
34378 it.
34379
34380 * include/grub/efi/chainloader.h: Removed.
34381 * loader/efi/chainloader_normal.c: Likewise.
34382 * loader/i386/bsd_normal.c: Likewise.
34383 * loader/i386/pc/chainloader_normal.c: Likewise.
34384 * loader/i386/pc/multiboot_normal.c: Likewise.
34385 * loader/linux_normal.c: Likewise.
34386 * loader/multiboot_loader_normal.c: Likewise.
34387 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
34388
34389 * gencmdlist.sh: Scan new registration command grub_register_extcmd
34390 and grub_register_command_p1.
34391
34392 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
34393 kern/command.c, lib/arg.c and commands/extcmd.c.
34394 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
34395 (minicmd_mod_SOURCES): New variable.
34396 (minicmd_mod_CFLAGS): Likewise.
34397 (minicmd_mod_LDFLAGS): Likewise.
34398 (extcmd_mod_SOURCES): Likewise.
34399 (extcmd_mod_CFLAGS): Likewise.
34400 (extcmd_mod_LDFLAGS): Likewise.
34401 (boot_mod_SOURCES): Removed.
34402 (boot_mod_CFLAGS): Likewise.
34403 (boot_mod_LDFLAGS): Likewise.
34404
34405 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
34406 kern/corecmd.c.
34407 (kernel_img_HEADERS): Add command.h.
34408 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
34409 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
34410 and lib/arg.c.
34411 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
34412 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
34413 remove the corresponding normal mode command.
34414 (normal_mod_SOURCES): Remove normal/arg.c.
34415 * conf/i386-coreboot.rmk: Likewise.
34416 * conf/i386-efi.rmk: Likewise.
34417 * conf/i386-ieee1275.rmk: Likewise.
34418 * conf/powerpc-ieee1275.rmk: Likewise.
34419 * conf/x86_64-efi.rmk: Likewise.
34420
34421 * include/grub/arg.h: Move from here ...
34422 * include/grub/lib/arg.h: ... to here.
34423
34424 * normal/arg.c: Move from here ...
34425 * lib/arg.c: ... to here.
34426
34427 * commands/extcmd.c: New file.
34428 * commands/minicmd.c: Likewise.
34429 * include/grub/command.h: Likewise.
34430 * include/grub/extcmd.h: Likewise.
34431 * kern/command.c: Likewise.
34432 * kern/corecmd.c: Likewise.
34433
34434 * kern/list.c (grub_list_iterate): Return int instead of void.
34435 (grub_list_insert): New function.
34436 (grub_prio_list_insert): Likewise.
34437
34438 * kern/rescue.c (grub_rescue_command): Removed.
34439 (grub_rescue_command_list): Likewise.
34440 (grub_rescue_register_command): Likewise.
34441 (grub_rescue_unregister_command): Likewise.
34442 (grub_rescue_cmd_boot): Move to minicmd.c
34443 (grub_rescue_cmd_help): Likewise.
34444 (grub_rescue_cmd_info): Likewise.
34445 (grub_rescue_cmd_boot): Likewise.
34446 (grub_rescue_cmd_testload): Likewise.
34447 (grub_rescue_cmd_dump): Likewise.
34448 (grub_rescue_cmd_rmmod): Likewise.
34449 (grub_rescue_cmd_lsmod): Likewise.
34450 (grub_rescue_cmd_exit): Likewise.
34451 (grub_rescue_print_devices): Moved to corecmd.c.
34452 (grub_rescue_print_files): Likewise.
34453 (grub_rescue_cmd_ls): Likewise.
34454 (grub_rescue_cmd_insmod): Likewise.
34455 (grub_rescue_cmd_set): Likewise.
34456 (grub_rescue_cmd_unset): Likewise.
7d074e3c 34457 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 34458 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 34459 commands, remove grub_rescue_register_command calls.
b1b797cb 34460
7d074e3c 34461 * normal/command.c (grub_register_command): Removed.
b1b797cb 34462 (grub_unregister_command): Likewise.
34463 (grub_command_find): Likewise.
34464 (grub_iterate_commands): Likewise.
34465 (rescue_command): Likewise.
34466 (export_command): Moved to corecmd.c.
34467 (set_command): Removed.
34468 (unset_command): Likewise.
34469 (insmod_command): Likewise.
34470 (rmmod_command): Likewise.
34471 (lsmod_command): Likewise.
34472 (grub_command_init): Likewise.
34473
34474 * normal/completion.c (iterate_command): Use cmd->prio to check for
34475 active command.
34476 (complete_arguments): Use grub_extcmd_t structure to find options.
34477 (grub_normal_do_completion): Change function grub_iterate_commands to
34478 grub_command_iterate.
34479
34480 * normal/execute.c (grub_script_execute_cmd): No need to parse
34481 argument here.
34482
34483 * normal/main.c (grub_dyncmd_dispatcher): New function.
34484 (read_command_list): Register unload commands as dyncmd.
34485 (grub_cmd_normal): Use new command interface, register rescue,
34486 unregister normal at entry, register normal, unregister rescue at exit.
34487
34488 * include/grub/list.h (grub_list_test_t): New type.
34489 (grub_list_iterate): Return int instead of void.
34490 (grub_list_insert): New function.
34491 (GRUB_AS_NAMED_LIST_P): New macro.
34492 (GRUB_AS_PRIO_LIST): Likewise.
34493 (GRUB_AS_PRIO_LIST_P): Likewise.
34494 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
34495 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
34496 (grub_prio_list): New structure.
34497 (grub_prio_list_insert): New function.
34498 (grub_prio_list_remove): New inline function.
34499
34500 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
34501 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
34502 (GRUB_COMMAND_FLAG_MENU): Likewise.
34503 (GRUB_COMMAND_FLAG_BOTH): Likewise.
34504 (GRUB_COMMAND_FLAG_TITLE): Likewise.
34505 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
34506 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
34507 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
34508 (grub_command): Likewise.
34509 (grub_register_command): Likewise.
34510 (grub_command_find): Likewise.
34511 (grub_iterate_commands): Likewise.
34512 (grub_command_init): Likewise.
34513 (grub_arg_parse): Likewise.
34514 (grub_arg_show_help): Likewise.
34515
34516 * include/grub/rescue.h (grub_rescue_register_command): Removed.
34517 (grub_rescue_unregister_command): Likewise.
34518
34519 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
34520 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
34521 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
34522
34523 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
34524 grub_rescue_cmd_initrd.
34525 * include/grub/i386/loader.h: Likewise.
34526 * include/grub/x86_64/loader.h: Likewise.
34527
34528 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
34529
1f4147aa 345302009-03-21 Bean <bean123ch@gmail.com>
34531
34532 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
34533 instead of stat in mingw environment.
34534
34535 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
34536
34537 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
34538
34539 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
34540 AC_CONFIG_LINKS.
34541
2156d5ba 345422009-03-21 Bean <bean123ch@gmail.com>
34543
34544 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
34545 out of range error.
34546
177b82ca 345472009-03-18 Michel Dänzer <michel@daenzer.net>
34548
34549 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
34550 checking inode flags for EXT4_EXTENTS_FLAG.
34551
14aad807 345522009-03-18 Robert Millan <rmh@aybabtu.com>
34553
34554 * loader/i386/linux.c: Include `<grub/video.h>' and
34555 `<grub/i386/pc/vbe.h>'..
34556 (grub_linux_setup_video): New function. Loosely based on the EFI one.
34557 (grub_linux32_boot): Attempt to configure video settings with
34558 grub_linux_setup_video().
34559 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
34560 to avoid grub_console_fini() which would step out of graphical mode
34561 unconditionally.
34562
8cf83a27 345632009-03-14 Robert Millan <rmh@aybabtu.com>
34564
34565 Fix build on powerpc.
34566 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
34567
40164e75 345682009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
34569
34570 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
34571 background image command.
34572
c58bc32a 345732009-03-12 Colin D Bennett <colin@gibibit.com>
34574
34575 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
34576 (grub_gfxterm_putchar): Extract pairs of identical calls to
34577 draw_cursor out of conditional blocks.
34578
5415144a 345792009-03-11 Pavel Roskin <proski@gnu.org>
34580
34581 * fs/hfs.c (grub_hfs_strncasecmp): New function.
34582 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
34583
6394042e 345842009-03-11 Robert Millan <rmh@aybabtu.com>
34585
34586 * loader/i386/multiboot_elfxx.c
34587 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
34588
b7b50e5f 345892009-03-11 Felix Zielcke <fzielcke@z-51.de>
34590
34591 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
34592 `kern/handler.c'.
34593
1ca7fc96 345942009-03-11 Robert Millan <rmh@aybabtu.com>
34595
34596 * loader/i386/multiboot.c (code_size): New variable.
34597 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 34598 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 34599 4-byte alignment to MBI and others by increasing
7d074e3c 34600 `boot_loader_name_length' appropriately.
1ca7fc96 34601
34602 * loader/i386/multiboot_elfxx.c
34603 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
34604
a83ea1d2 346052009-03-09 Felix Zielcke <fzielcke@z-51.de>
34606
34607 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
34608 `fs/ext2.c'.
34609
aa9f3bff 346102009-03-08 Robert Millan <rmh@aybabtu.com>
34611
34612 Make loader/i386/linux.c usable on i386-pc again.
34613
34614 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
34615 memory to heap.
34616 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
34617 `#error' stanza.
34618
d8b3b60e 346192009-03-07 Bean <bean123ch@gmail.com>
34620
34621 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
34622 allocation.
34623
b362c9e9 346242009-03-06 Robert Millan <rmh@aybabtu.com>
34625
34626 Fix display issue on terminals with screen size other than 80x25
34627 (e.g. gfxterm with resolution higher than 640x480).
34628
34629 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 34630 position relative to the center of the terminal instead of relying
b362c9e9 34631 on a hardcoded offset.
34632
9304eef1 346332009-03-04 Robert Millan <rmh@aybabtu.com>
34634
34635 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
34636 installed.
34637
34638 * Makefile.in (host_kernel): New variable.
34639 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
34640 scripts instead of just the windows one.
34641 * configure.ac: Initialize and AC_SUBST `host_kernel'.
34642
eabc95fb 346432009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 34644
34645 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
34646 `kern/handler.c'.
34647 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34648 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34649 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34651 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34652 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34653
ceb1223c 346542009-03-04 Felix Zielcke <fzielcke@z-51.de>
34655
34656 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
34657 or if there's no space for the disk label and print the partition number on a
34658 invalid magic.
34659
4910684a 346602009-03-04 Felix Zielcke <fzielcke@z-51.de>
34661
34662 * util/misc.c: Include <time.h>.
34663 (grub_millisleep): New function.
34664
7e9ca17a 346652009-03-04 Bean <bean123ch@gmail.com>
34666
34667 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
34668 another option -mno-red-zone.
34669
34670 * commands/handler.c: Change module description.
34671
34672 * kern/handler.c: Add missing space at the end of description line.
34673
34674 * kern/list.c: Likewise.
34675
f501677c 346762009-03-03 Robert Millan <rmh@aybabtu.com>
34677
34678 Move more components to the relocation area, and fix mbi pointer
34679 handling to use the destination rather than the origin (thanks to
34680 Vladimir Serbinenko for spotting).
34681
34682 * loader/i386/multiboot.c (mbi_dest): New variable.
34683 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
34684 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
34685 relocation area.
34686
9902d047 346872009-03-01 Bean <bean123ch@gmail.com>
34688
50fb7002 34689 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 34690 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
34691 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
34692 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
34693
34694 * loader/i386/efi/linux.c (acpi_guid): New variable.
34695 (acpi_guid): Likewise.
34696 (EBDA_SEG_ADDR): New constant.
34697 (LOW_MEM_ADDR): Likewise.
34698 (FAKE_EBDA_SEG): Likewise.
34699 (fake_bios_data): New function.
34700 (grub_linux_boot): Call fake_bios_data.
34701
71b9f361 347022009-03-01 Bean <bean123ch@gmail.com>
34703
34704 * commands/terminal.c: Removed.
34705
34706 * commands/handler.c: New file.
34707
34708 * include/grub/list.h: Likewise.
34709
34710 * include/grub/handler.h: Likewise.
34711
34712 * kern/list.c: Likewise.
34713
34714 * kern/handler.c: Likewise.
34715
34716 * kern/term.h: Include header file <grub/handler.h>.
34717 (grub_term_input): Move next field to the beginning.
34718 (grub_term_output): Likewise.
34719 (grub_term_input_class): New variable.
34720 (grub_term_output_class): Likewise.
34721 (grub_term_register_input): Changed to inline function.
34722 (grub_term_register_output): Likewise.
34723 (grub_term_unregister_input): Likewise.
34724 (grub_term_unregister_output): Likewise.
34725 (grub_term_set_current_input): Likewise.
34726 (grub_term_set_current_output): Likewise.
34727 (grub_term_get_current_input): Likewise.
34728 (grub_term_get_current_output): Likewise.
34729 (grub_term_iterate_input): Removed.
34730 (grub_term_iterate_output): Likewise.
34731
34732 * kern/term.c (grub_term_list_input): Removed.
34733 (grub_term_list_output): Likewise.
34734 (grub_term_input_class): New variable.
34735 (grub_term_output_class): Likewise.
50fb7002 34736 (grub_cur_term_input): Change variable as macro.
71b9f361 34737 (grub_cur_term_output): Likewise.
34738 (grub_term_register_input): Removed.
34739 (grub_term_register_output): Likewise.
34740 (grub_term_unregister_input): Likewise.
34741 (grub_term_unregister_output): Likewise.
34742 (grub_term_set_current_input): Likewise.
34743 (grub_term_set_current_output): Likewise.
34744 (grub_term_iterate_input): Likewise.
34745 (grub_term_iterate_output): Likewise.
34746 (grub_term_get_current_input): Likewise.
34747 (grub_term_get_current_output): Likewise.
34748
34749 * util/grub-editenv.c: Include header file <grub/handler.h>.
34750 (grub_term_get_current_input): Removed.
34751 (grub_term_get_current_output): Likewise.
34752 (grub_term_input_class): New variable.
50fb7002 34753 (grub_term_output_class): Likewise.
71b9f361 34754
34755 * util/grub-fstest.c (grub_term_get_current_input): Removed.
34756 (grub_term_get_current_output): Likewise.
34757 (grub_term_input_class): New variable.
50fb7002 34758 (grub_term_output_class): Likewise.
71b9f361 34759
34760 * util/grub-probe.c (grub_term_get_current_input): Removed.
34761 (grub_term_get_current_output): Likewise.
34762 (grub_term_input_class): New variable.
50fb7002 34763 (grub_term_output_class): Likewise.
71b9f361 34764
34765 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
34766 (grub_term_get_current_output): Likewise.
34767 (grub_term_input_class): New variable.
50fb7002 34768 (grub_term_output_class): Likewise.
71b9f361 34769
34770 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
34771 (terminal_mod_SOURCES): Likewise.
34772 (terminal_mod_CFLAGS): Likewise.
34773 (terminal_mod_LDFLAGS): Likewise.
34774
34775 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
34776 handler.c.
34777 (kernel_img_SOURCES): Add list.c and handler.c.
34778 (kernel_img_HEADERS): Add list.h and handler.h.
34779
34780 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34781 handler.c.
34782 (kernel_mod_SOURCES): Add list.c and handler.c.
34783 (kernel_mod_HEADERS): Add list.h and handler.h.
34784
34785 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
34786 handler.c.
34787 (kernel_elf_SOURCES): Add list.c and handler.c.
34788 (kernel_elf_HEADERS): Add list.h and handler.h.
34789
34790 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34791 handler.c.
34792 (kernel_elf_SOURCES): Add list.c and handler.c.
34793 (kernel_elf_HEADERS): Add list.h and handler.h.
34794
34795 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34796 handler.c.
34797 (kernel_mod_SOURCES): Add list.c and handler.c.
34798 (kernel_mod_HEADERS): Add list.h and handler.h.
34799
34800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34801 handler.c.
34802 (kernel_elf_SOURCES): Add list.c and handler.c.
34803 (kernel_elf_HEADERS): Add list.h and handler.h.
34804
8a31787f 348052009-02-27 Robert Millan <rmh@aybabtu.com>
34806
34807 Factorize elf32 / elf64 code in Multiboot loader. This will
34808 prevent it from getting out of sync again.
34809
34810 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
34811 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
34812 grub_multiboot_load_elf64): Move from here ...
34813 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
34814 grub_multiboot_load_elf): ... to here (new file).
34815
51cd3dfc 348162009-02-27 Robert Millan <rmh@aybabtu.com>
34817
34818 * util/grub.d/10_linux.in: Rename "single-user mode" to
34819 "recovery mode".
34820
6e8c9c3a 348212009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34822
34823 Don't leak in SCSI code.
34824 * disk/scsi.c (grub_scsi_close): free `scsi'.
34825
4b6bf4f9 348262009-02-27 Robert Millan <rmh@aybabtu.com>
34827
34828 * loader/i386/pc/multiboot.c: Move from here ...
34829 * loader/i386/multiboot.c: ... to here. Update all users.
34830
b9413424 348312009-02-27 Robert Millan <rmh@aybabtu.com>
34832
34833 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34834 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34835
50fb7002 348362009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34837
34838 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34839 b-tree.
34840
8cc50345 348412009-02-27 Robert Millan <rmh@aybabtu.com>
34842
34843 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34844 `0x' qualifier as 0 when base is specified as parameter).
34845
6e09b8b7 348462009-02-24 Bean <bean123ch@gmail.com>
34847
34848 * configure.ac: Check for -mcmodel=large in x86_64 target.
34849
34850 * include/grub/efi/api.h (efi_call_10): New macro.
34851 (efi_wrap_10): New function.
34852
34853 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34854 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34855 (GRUB_PE32_REL_BASED_LOW): Likewise.
34856 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34857 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34858 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34859 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34860 (GRUB_PE32_REL_BASED_REL): Likewise.
34861 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34862 (GRUB_PE32_REL_BASED_DIR64): Likewise.
34863 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
34864
34865 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
34866 issue.
34867
34868 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
34869 (efi_wrap_10): New function.
34870
34871 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
34872
34873 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
34874 MB/MBP model (NV chipset).
34875 (devdata_devs): Add devpath_5 to the list.
34876
34877 * load/i386/efi/linux.c (video_base): Remove variable.
34878 (RGB_MASK): New macro.
34879 (RGB_MAGIC): Likewise.
34880 (LINE_MIN): Likewise.
34881 (LINE_MAX): Likewise.
34882 (FBTEST_STEP): Likewise.
34883 (FBTEST_COUNT): Likewise.
34884 (fb_list): New variable.
34885 (grub_find_video_card): Remove function.
34886 (find_framebuf): New function.
34887 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34888 line length.
34889
34890 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34891 problem for x86_64.
34892
74b21bee 348932009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34894
34895 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34896
34897 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34898 coding tool name.
34899
a455f472 349002009-02-22 Robert Millan <rmh@aybabtu.com>
34901
34902 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34903 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34904 in our relocation, instead of using it directly from heap. Also
34905 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34906
6374daf3 349072009-02-21 Robert Millan <rmh@aybabtu.com>
34908
34909 Implement USB keyboard support (based on patch by Marco Gerards)
34910
34911 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34912 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34913 (usb_keyboard_mod_LDFLAGS): New variables.
34914
34915 * term/usb_keyboard.c: New file.
34916
8fa4ea70 349172009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34918
34919 Corrected wrong declaration
34920
34921 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34922
353976ac 349232009-02-14 Christian Franke <franke@computer.org>
34924
34925 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34926 (grub_lspci_iter): Print class code and programming interface byte.
34927
6aa1169b 349282009-02-14 Christian Franke <franke@computer.org>
34929
34930 * gendistlist.sh: Ignore `.svn' directories.
34931
265372ca 349322009-02-14 Felix Zielcke <fzielcke@z-51.de>
34933
34934 * fs/fat.c: Add 2009 to Copyright line.
34935
9ff516f3 349362009-02-14 Christian Franke <franke@computer.org>
34937
34938 * commands/hdparm.c: New file. Provides `hdparm' command
34939 which sends ATA commands via grub_disk_ata_pass_through ().
34940
34941 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34942
34943 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34944 and <grub/cpu/io.h> to include/grub/ata.h.
34945 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34946 (GRUB_CDROM_SECTOR_SIZE): Remove.
34947 (GRUB_ATA_*): Move to include/grub/ata.h.
34948 (GRUB_ATAPI_*): Likewise.
34949 (enum grub_ata_commands): Likewise.
34950 (enum grub_ata_timeout_milliseconds): Likewise.
34951 (struct grub_ata_device): Likewise.
34952 (grub_ata_regset): Likewise.
34953 (grub_ata_regget): Likewise.
34954 (grub_ata_regset2): Likewise.
34955 (grub_ata_regget2): Likewise.
34956 (grub_ata_check_ready): Likewise.
34957 (grub_ata_wait_not_busy): Remove static, exported in
34958 include/grub/ata.h.
34959 (grub_ata_wait_drq): Likewise.
34960 (grub_ata_pio_read): Likewise.
34961
34962 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34963 function for hdparm.mod.
34964
34965 * include/grub/ata.h: New file, contains declarations from
34966 disk/ata.c.
34967 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34968
34969 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34970 (grub_disk_ata_pass_through): New exported variable.
34971
34972 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34973
772e23da 349742009-02-13 Colin D Bennett <colin@gibibit.com>
34975
34976 Support multiple fallback entries, and provide an API to support
34977 executing default+fallback menu entries. Renamed the `terminal' menu
34978 viewer to `text'.
34979
34980 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34981 variable declaration.
34982 (grub_menu_execute_callback): New structure declaration.
34983 (grub_menu_execute_callback_t): New typedef.
34984 (grub_menu_execute_with_fallback): New function declaration.
34985 (grub_menu_get_entry): Likewise.
34986 (grub_menu_get_timeout): Likewise.
34987 (grub_menu_set_timeout): Likewise.
34988
34989 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34990
34991 * normal/menu.c (grub_wait_after_message): Moved to
34992 `normal/menu_text.c'.
34993 (draw_border): Likewise.
34994 (print_message): Likewise.
34995 (print_entry): Likewise.
34996 (print_entries): Likewise.
34997 (grub_menu_init_page): Likewise.
34998 (get_entry_number): Likewise.
34999 (print_timeout): Likewise.
35000 (run_menu): Likewise.
35001 (grub_menu_execute_entry): Likewise.
35002 (show_text_menu): Likewise.
35003 (get_and_remove_first_entry_number): New function.
35004 (grub_menu_execute_with_fallback): Likewise.
35005 (get_entry): Renamed to ...
35006 (grub_menu_get_entry): .. this and made it global.
35007 (get_timeout): Renamed to ...
35008 (grub_menu_get_timeout): ... this and made it global.
35009 (set_timeout): Renamed to ...
35010 (grub_menu_set_timeout): ... this and made it global.
35011 (grub_normal_terminal_menu_viewer): Renamed to ...
35012 (grub_normal_text_menu_viewer): ... this.
35013
35014 * normal/menu_text.c: New file. Extracted text-menu-specific code
35015 from normal/menu.c.
35016
35017 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35018 (normal_mod_SOURCES): Likewise.
35019
35020 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35021 (normal_mod_SOURCES): Likewise.
35022
35023 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35024 (normal_mod_SOURCES): Likewise.
35025
35026 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35027 (normal_mod_SOURCES): Likewise.
35028
35029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35030 (normal_mod_SOURCES): Likewise.
35031
35032 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35033 (normal_mod_SOURCES): Likewise.
35034
35035 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35036 (normal_mod_SOURCES): Likewise.
35037
16ac430e 350382009-02-11 Robert Millan <rmh@aybabtu.com>
35039
35040 * util/grub.d/00_header.in: Update old reference to `font' command.
35041
06ff20fc 350422009-02-10 Felix Zielcke <fzielcke@z-51.de>
35043
35044 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35045
35046 Based on patch from Javier Martín.
35047
96da9407 350482009-02-09 Felix Zielcke <fzielcke@z-51.de>
35049
35050 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 35051 to avoid false positives with FAT.
96da9407 35052 (grub_fstest_SOURCES): Likewise.
35053 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35056 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35057 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35058 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35059
6dca6fe4 350602009-02-09 Felix Zielcke <fzielcke@z-51.de>
35061
06ff20fc 35062 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 35063 bpb.version_specific.fat12_or_fat16.fstype and
35064 bpb.version_specific.fat32.fstype.
35065
2550c62f 350662009-02-08 Robert Millan <rmh@aybabtu.com>
35067
be110b30 35068 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 35069
56978920 350702009-02-08 Robert Millan <rmh@aybabtu.com>
35071
35072 * Makefile.in (host_os, host_cpu): New variables.
35073 (target_os): Remove. Update all users.
35074
d64399b5 350752009-02-08 Marco Gerards <marco@gnu.org>
35076
35077 * Makefile.in (enable_grub_emu_usb): New variable.
35078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35079 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35080 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35081 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35082 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35083 `usbtest.mod' and `usbms.mod'.
35084 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35085 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35086 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35087 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35088 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35089 variables.
35090
35091 * disk/usbms.c: New file.
35092
35093 * include/grub/usb.h: Likewise.
35094
35095 * include/grub/usbtrans.h: Likewise.
35096
35097 * include/grub/usbdesc.h: Likewise.
35098
35099 * bus/usb/usbtrans.c: Likewise.
35100
35101 * bus/usb/ohci.c: Likewise.
35102
35103 * bus/usb/uhci.c: Likewise.
35104
35105 * bus/usb/usbhub.c: Likewise.
35106
35107 * bus/usb/usb.c: Likewise.
35108
35109 * commands/usbtest.c: Likewise.
35110
35111 * util/usb.c: Likewise.
50fb7002 35112
d64399b5 35113 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35114
35115 * configure.ac: Test for libusb presence.
50fb7002 35116
d64399b5 35117 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35118
2b40d6bb 351192009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35120
35121 * kern/mm.c: Add more comments.
35122
73a4ce81 351232009-02-08 Robert Millan <rmh@aybabtu.com>
35124
35125 Patch from Javier Martín.
35126 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35127 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35128
f821ce59 351292009-02-08 Robert Millan <rmh@aybabtu.com>
35130
35131 * fs/cpio.c: Split tar functionality to ...
35132 * fs/tar.c: ... here (new file). Update all users.
35133
aebfc4b0 351342009-02-07 Robert Millan <rmh@aybabtu.com>
35135
35136 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35137 backward-incompatible features.
35138
35139 Based on patch from Javier Martín, with some adjustments.
35140
50fb7002 351412009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 35142
35143 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35144
0bb5115e 351452009-02-07 Robert Millan <rmh@aybabtu.com>
35146
35147 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35148 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35149 after the RAID stuff.
35150
38a0f8e7 351512009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35152
50fb7002 35153 Fixes problem when running vbetest command as reported by
38a0f8e7 35154 Vladimir Serbinenko <phcoder@gmail.com>.
35155
35156 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35157
3143cc1c 351582009-02-04 Felix Zielcke <fzielcke@z-51.de>
35159
35160 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35161 /dev/md/NpN style mdraid devices.
35162
9cba6fce 351632009-02-03 Felix Zielcke <fzielcke@z-51.de>
35164
35165 * util/unifont2pff.rb: Remove.
35166
e507a2c1 351672009-02-03 Felix Zielcke <fzielcke@z-51.de>
35168
35169 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35170 `#'.
35171
d2c2b4cd 351722009-02-03 Felix Zielcke <fzielcke@z-51.de>
35173
35174 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35175 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35176 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35179 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35180 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35181
b4315fb0 351822009-02-02 Christian Franke <franke@computer.org>
35183
35184 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35185
de3aa260 351862009-02-01 Felix Zielcke <fzielcke@z-51.de>
35187
7c3ff286 35188 * INSTALL: Note that we now require at least autoconf 2.59 and
35189 that LZO is optional.
de3aa260 35190
825a182b 351912009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35192
35193 Base on patch on bug #24154 created by Tomas Tintera
35194 <trosos@seznam.cz>.
35195
35196 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35197
a69ef770 351982009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35199
7c3ff286 35200 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 35201 <bero@arklinux.org>.
35202
35203 * normal/parser.y (script_init): Add missing semicolon.
35204
6fa42fa6 352052009-01-31 Colin D Bennett <colin@gibibit.com>
35206
7c3ff286 35207 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 35208 (free_menu_entry_classes): Added.
35209 (grub_normal_menu_addentry): Added class property handling.
35210 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35211 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35212
35213 * normal/menu_viewer.c: New file.
35214
35215 * normal/menu.c (run_menu_entry): Renamed to ...
35216 (grub_menu_execute_entry): ... this and made it as global.
35217 (grub_menu_run): Renamed to ...
35218 (show_text_menu): ... this and made it local.
35219 (show_text_menu): Adapt to new function names.
35220 (grub_normal_terminal_menu_viewer): New global variable.
35221
35222 * include/grub/menu.h: New file.
35223
35224 * include/grub/menu_viewer.h: New file.
35225
35226 * include/grub/normal.h: Added include to grub/menu.h.
35227 (grub_menu_entry): Moved to include/grub/menu.h.
35228 (grub_menu_entry_t): Likewise.
35229 (grub_menu): Likewise.
35230 (grub_menu_t): Likewise.
35231 (grub_normal_terminal_menu_viewer): Added.
35232 (grub_menu_execute_entry): Likewise.
35233 (grub_menu_run): Removed.
35234
35235 * DISTLIST: Added include/grub/menu.h.
35236 Added include/grub/menu_viewer.h.
35237 Added normal/menu_viewer.c.
35238
352392009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35240
35241 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35242 arglist for menutitle arguments.
35243
35244 * normal/main.c (grub_normal_menu_addentry): Likewise.
35245
35246 * normal/parser.y (menuentry): Likewise.
35247
35248 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35249
35250 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35251 (grub_script_create_cmdmenu): Likewise.
35252
35253 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35254
35255 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35256 changes.
35257
35258 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35259
35260 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35261
35262 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35263
35264 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35265
35266 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35267
35268 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35269
56192c23 352702009-01-30 Christian Franke <franke@computer.org>
35271
35272 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35273 in option help text.
35274
d72521b3 352752009-01-27 Pavel Roskin <proski@gnu.org>
35276
35277 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35278
994b5e84 352792009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35280
35281 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35282
35283 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35284
35285 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35286 unregister function.
35287
6a7eab2c 352882009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35289
35290 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35291
35292 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35293
35294 * util/grub-mkfont.c (usage): Fix typo.
35295
35296 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35297
1806b56e 352982009-01-26 Daniel Mierswa <impulze@impulze.org>
35299
3fb18f09 35300 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35301
336e1fb9 35302 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
35303
1806b56e 35304 * kern/misc.c (grub_strcasecmp): New function.
35305 (grub_strcasecmp): Use grub_size_t instead of int for length.
35306 Fix return value.
35307 * include/grub/misc.h: Update function prototypes.
35308
580b2a0f 353092009-01-26 Robert Millan <rmh@aybabtu.com>
35310
35311 * configure.ac: Fix cross-compilation check.
ef257b36 35312
d31c24f1 353132009-01-22 Christian Franke <franke@computer.org>
35314
35315 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
35316 (precision) digit string. Allow `.format2' without `format1' (width).
35317 Limit input chars for `%s' output to `format2' if specified. This is
35318 compatible with standard printf ().
35319
3138b44c 353202009-01-22 Christian Franke <franke@computer.org>
35321
35322 * disk/ata.c (grub_ata_wait_status): Replace by ...
35323 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
35324 other status bits may be invalid while BSY is asserted.
35325 (grub_ata_check_ready): New function.
35326 (grub_ata_cmd): Removed.
35327 (grub_ata_wait_drq): New function.
35328 (grub_ata_strncpy): Remove inline.
35329 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
35330 and error check now done by grub_ata_wait_drq ().
35331 (grub_ata_pio_write): Likewise.
35332 (grub_atapi_identify): Set DEV before check for !BSY. Use
35333 grub_ata_wait_drq () to wait for data.
35334 (grub_ata_device_initialize): Add status register check to
35335 detect missing SATA slave devices. Add debug messages.
35336 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
35337 (grub_atapi_packet): Set DEV before check for !BSY. Replace
35338 transfer loop by grub_ata_pio_write ().
35339 (grub_ata_identify): Set DEV before check for !BSY. Use
35340 grub_ata_wait_drq () to wait for data.
ef257b36 35341 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 35342 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
35343 read/write in one loop. Fix invalid command on write. Fix incomplete
35344 command on (size % batch) == 0. Add missing error check after write of
35345 last block. Add debug messages.
35346 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
35347
59a64ef6 353482009-01-19 Christian Franke <franke@computer.org>
35349
35350 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
35351 (GRUB_ATAPI_IREASON_*): Likewise.
35352 (grub_ata_pio_write): Fix timeout error return.
35353 (grub_atapi_identify): Add grub_ata_wait () after cmd.
35354 (grub_atapi_wait_drq): New function.
35355 (grub_atapi_packet): New parameter `size'.
35356 Use grub_atapi_wait_drq () and direct write instead of
35357 grub_ata_pio_write ().
35358 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
35359 reads the number of bytes requested by the device for each DRQ
35360 assertion.
35361 (grub_atapi_write): Remove old implementation, return not
35362 implemented instead.
35363
1cfe20b3 353642009-01-19 Christian Franke <franke@computer.org>
35365
35366 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
35367 of 512 to calculate data size.
35368 (grub_scsi_read12): Likewise.
35369 (grub_scsi_write10): Likewise.
35370 (grub_scsi_write12): Likewise.
35371 (grub_scsi_read): Adjust size according to blocksize.
35372 Add checks for invalid blocksize and unaligned transfer.
35373
bee5fe5d 353742009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
35375
35376 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
35377
ef257b36 35378 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 35379 width glyphs.
35380
3e643f8c 353812009-01-19 Robert Millan <rmh@aybabtu.com>
35382
35383 * config.guess: Update to latest version from config git.
35384 * config.sub: Likewise.
35385
4fa80998 353862009-01-17 Felix Zielcke <fzielcke@z-51.de>
35387
35388 * Makefile.in: Change font compilation to use new grub-mkfont instead
35389 of java version.
35390
35391 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
35392 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
35393 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35394 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35395 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
35396 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
35397 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
35398 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
35399 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35400
7086085b 354012009-01-16 Christian Franke <franke@computer.org>
35402
35403 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
35404 (enum grub_ata_timeout_milliseconds): New enum.
35405 (grub_ata_wait_status): Add parameter milliseconds.
35406 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
35407 recovery from timed-out commands.
35408 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
35409 return grub_errno instead of REG_ERROR.
35410 (grub_ata_pio_write): Add parameter milliseconds.
35411 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
35412 Pass milliseconds to grub_ata_wait_status () and
35413 grub_ata_pio_read ().
35414 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
35415 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
35416 grub_ata_wait_status (). Fix IDENTIFY timeout check.
35417 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
35418 It is not suitable for device detection, because DEV bit is ignored,
35419 the command may run too long, and not all devices set the signature
35420 properly.
35421 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
35422 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
35423 Fix device selection, DEV bit must be set first to address the registers
35424 of the correct device.
35425 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
35426 grub_ata_pio_read/write ().
35427 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
35428 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
35429
4a412913 354302009-01-13 Carles Pina i Estany <carles@pina.cat>
35431
35432 * util/grub-editenv.c (main): Use fseeko(), not fseek().
35433
7795c55e 354342009-01-13 Bean <bean123ch@gmail.com>
d913988c 35435
35436 * util/grub-mkfont.c (write_font): forget to remove some debug code.
35437
7795c55e 354382009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 35439
35440 * Makefile.in: (enable_grub_mkfont): New variable.
35441 (freetype_cflags): Likewise.
35442 (freetype_libs): Likewise.
35443
35444 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
35445 (grub_mkfont_SOURCES): New variable.
35446 (grub_mkfont_CFLAGS): Likewise.
35447 (grub_mkfont_LDFLAGS): Likewise.
35448
35449 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
35450 library if `--enable-grub-mkfont' is requested.
35451 (enable_grub_mkfont): New variable.
35452 (freetype_cflags): Likewise.
35453 (freetype_libs): Likewise.
35454
35455 * util/grub-mkfont.c: New file.
35456
093af1fe 354572009-01-12 Christian Franke <franke@computer.org>
35458
35459 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
35460 mode check. Fix setting of compat_use[].
35461
f36cc108 354622009-01-10 Robert Millan <rmh@aybabtu.com>
35463
35464 Update a few copyright years which we forgot to do in 2008 (only for
35465 files whose changes made in 2008 were copyright-significant)
35466
35467 * Makefile.in: Add 2008 to Copyright line.
35468 * disk/ieee1275/ofdisk.c: Likewise.
35469 * disk/efi/efidisk.c: Likewise.
35470 * kern/dl.c: Likewise.
35471 * kern/sparc64/ieee1275/init.c: Likewise.
35472 * kern/mm.c: Likewise.
35473 * kern/efi/mm.c: Likewise.
35474 * boot/i386/pc/boot.S: Likewise.
35475 * genfslist.sh: Likewise.
35476 * fs/iso9660.c: Likewise.
35477 * fs/hfs.c: Likewise.
35478 * fs/jfs.c: Likewise.
35479 * fs/minix.c: Likewise.
35480 * fs/ufs.c: Likewise.
35481 * gensymlist.sh.in: Likewise.
35482 * genkernsyms.sh.in: Likewise.
35483 * include/grub/misc.h: Likewise.
35484 * include/grub/types.h: Likewise.
35485 * include/grub/symbol.h: Likewise.
35486 * include/grub/elf.h: Likewise.
35487 * include/grub/kernel.h: Likewise.
35488 * include/grub/disk.h: Likewise.
35489 * include/grub/dl.h: Likewise.
35490 * include/grub/i386/linux.h: Likewise.
35491 * include/grub/i386/pc/biosdisk.h: Likewise.
35492 * include/grub/efi/api.h: Likewise.
35493 * include/grub/efi/pe32.h: Likewise.
35494 * include/grub/util/misc.h: Likewise.
35495 * normal/execute.c: Likewise.
35496 * normal/arg.c: Likewise.
35497 * normal/completion.c: Likewise.
35498 * normal/lexer.c: Likewise.
35499 * normal/parser.y: Likewise.
35500 * normal/misc.c: Likewise.
35501 * commands/i386/pc/vbeinfo.c: Likewise.
35502 * commands/hexdump.c: Likewise.
35503 * commands/terminal.c: Likewise.
35504 * commands/ls.c: Likewise.
35505 * commands/help.c: Likewise.
35506 * partmap/pc.c: Likewise.
35507 * loader/efi/chainloader.c: Likewise.
35508 * loader/multiboot_loader.c: Likewise.
35509 * loader/i386/pc/multiboot2.c: Likewise.
35510 * term/efi/console.c: Likewise.
35511 * term/i386/pc/serial.c: Likewise.
35512 * util/lvm.c: Likewise.
35513 * util/console.c: Likewise.
35514 * util/i386/efi/grub-mkimage.c: Likewise.
35515 * util/raid.c: Likewise.
35516
7f02114b 355172009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
35518
35519 * commands/videotest.c: Removed include to grub/machine/memory.h.
35520
35521 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
35522 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
35523 (video_mod_SOURCES): Removed.
35524 (video_mod_CFLAGS): Likewise.
35525 (video_mod_LDFLAGS): Likewise.
35526 (gfxterm_mod_SOURCES): Likewise.
35527 (gfxterm_mod_CFLAGS): Likewise.
35528 (gfxterm_mod_LDFLAGS): Likewise.
35529 (videotest_mod_SOURCES): Likewise.
35530 (videotest_mod_CFLAGS): Likewise.
35531 (videotest_mod_LDFLAGS): Likewise.
35532 (bitmap_mod_SOURCES): Likewise.
35533 (bitmap_mod_CFLAGS): Likewise.
35534 (bitmap_mod_LDFLAGS): Likewise.
35535 (tga_mod_SOURCES): Likewise.
35536 (tga_mod_CFLAGS): Likewise.
35537 (tga_mod_LDFLAGS): Likewise.
35538 (jpeg_mod_SOURCES): Likewise.
35539 (jpeg_mod_CFLAGS): Likewise.
35540 (jpeg_mod_LDFLAGS): Likewise.
35541 (png_mod_SOURCES): Likewise.
35542 (png_mod_CFLAGS): Likewise.
35543 (png_mod_LDFLAGS): Likewise.
35544
35545 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
35546 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
35547 (video_mod_SOURCES): Added.
35548 (video_mod_CFLAGS): Likewise.
35549 (video_mod_LDFLAGS): Likewise.
35550 (videotest_mod_SOURCES): Likewise.
35551 (videotest_mod_CFLAGS): Likewise.
35552 (videotest_mod_LDFLAGS): Likewise.
35553 (bitmap_mod_SOURCES): Likewise.
35554 (bitmap_mod_CFLAGS): Likewise.
35555 (bitmap_mod_LDFLAGS): Likewise.
35556 (tga_mod_SOURCES): Likewise.
35557 (tga_mod_CFLAGS): Likewise.
35558 (tga_mod_LDFLAGS): Likewise.
35559 (jpeg_mod_SOURCES): Likewise.
35560 (jpeg_mod_CFLAGS): Likewise.
35561 (jpeg_mod_LDFLAGS): Likewise.
35562 (png_mod_SOURCES): Likewise.
35563 (png_mod_CFLAGS): Likewise.
35564 (png_mod_LDFLAGS): Likewise.
35565 (gfxterm_mod_SOURCES): Likewise.
35566 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 35567 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 35568
35569 * term/gfxterm.c: Removed include to grub/machine/memory.h,
35570 grub/machine/console.h.
35571
644fff97 355722009-01-04 Jerone Young <jerone@gmail.com>
35573
35574 Make on screen instructions clearer
35575
35576 Based on patch created by Jidanni <jidanni@jidanni.org>
35577
35578 * normal/menu.c: print clearer instructions on the screen
35579
1e901a75 355802009-01-02 Colin D Bennett <colin@gibibit.com>
35581
35582 New font engine.
34c44600 35583
1e901a75 35584 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
35585 build system and fixed gfxterm.c to work with different sized fonts.
35586
35587 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 35588
1e901a75 35589 * configure: Re-generated.
34c44600 35590
1e901a75 35591 * DISTLIST: Removed font/manager.c.
35592 Added font/font.c.
35593 Added font/font_cmd.c.
34c44600 35594
1e901a75 35595 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
35596 compilation.
34c44600 35597
1e901a75 35598 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 35599
35600 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 35601
35602 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 35603
1e901a75 35604 * normal/menu.c: Likewise.
34c44600 35605
1e901a75 35606 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
35607 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 35608
1e901a75 35609 * include/grub/font.h: Replaced with new file.
34c44600 35610
1e901a75 35611 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
35612 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
35613 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
35614 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
35615 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 35616 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 35617 fg_red, fg_green, fg_blue, fg_alpha.
35618 (grub_video_adapter): Removed blit_glyph.
34c44600 35619 (grub_video_blit_glyph): Removed.
35620
1e901a75 35621 * font/manager.c: Removed file.
34c44600 35622
35623 * font/font.c: New file.
35624
1e901a75 35625 * font/font_cmd.c: Likewise.
34c44600 35626
1e901a75 35627 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 35628
1e901a75 35629 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
35630 (grub_video_vbe_map_rgba): Likewise.
35631 (grub_video_vbe_unmap_color_int): Likewise.
35632 (grub_video_vbe_blit_glyph): Removed.
35633 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 35634
1e901a75 35635 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
35636 (get_pixel): Likewise.
34c44600 35637 (set_pixel): Likewise.
35638
1e901a75 35639 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 35640
1e901a75 35641 * term/gfxterm.c: Adapted to new font engine.
34c44600 35642
1e901a75 35643 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 35644
1e901a75 35645 * term/i386/pc/vga.c: Likewise.
34c44600 35646
1e901a75 35647 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 35648
1e901a75 35649 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 35650
1e901a75 35651 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35652
1e901a75 35653 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35654
1e901a75 35655 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 35656
1e901a75 35657 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 35658
1e901a75 35659 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 35660
1e901a75 35661 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 35662
1e901a75 35663 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35664
35665 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 35666
1e901a75 35667 * util/grub-mkconfig_lib.in: Changed font extension.
35668
278922e8 356692008-12-28 Felix Zielcke <fzielcke@z-51.de>
35670
35671 * util/getroot.c (grub_util_get_grub_dev): Add support for
35672 /dev/md/dNNpNN style partitionable mdraid devices.
35673
3ced05cf 356742008-12-12 Alex Smith <alex@alex-smith.me.uk>
35675
35676 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
35677 at a time limit of the PXE TFTP API correctly.
35678 (grub_pxefs_close): Likewise.
35679
7fd0ee30 356802008-11-29 Robert Millan <rmh@aybabtu.com>
35681
34c44600 35682 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 35683 grub_ata_device_initialize() calls.
35684
34c44600 356852008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 35686
35687 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
35688 iteration failed.
35689 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
35690
89313780 356912008-11-28 Robert Millan <rmh@aybabtu.com>
35692
35693 Fix build on powerpc-ieee1275. Based on patch created by
35694 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
35695 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35696 `kern/ieee1275/mmap.c'.
35697 * include/grub/powerpc/ieee1275/memory.h: New file.
35698
15257703 35699 Provide grub-install on coreboot.
35700 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
35701 (grub_install_SOURCES): New variable.
35702 * util/i386/pc/grub-install.in: Add a few condition checks to make it
35703 usable on coreboot.
35704
9fc5388a 357052008-11-25 Felix Zielcke <fzielcke@z-51.de>
35706
35707 * util/grub-fstest.c (grub_term_get_current_input): Change return type
35708 to `grub_term_input_t'.
35709 (grub_term_get_current_output): Change return type to
35710 `grub_term_output_t'.
35711
bc3a2f31 357122008-11-22 Robert Millan <rmh@aybabtu.com>
35713
34c44600 35714 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 35715 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
35716 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
35717 grub_vga_text_cls().
35718
80fc88f2 35719 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 35720 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 35721
cbf36fd3 35722 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
35723 to 0x200000 (avoids trouble with some OFW implementations, and matches
35724 with the one in Yaboot).
35725 Reported by Manoel Abranches
35726
73e8e268 357272008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 35728
35729 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
35730 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
35731
73e8e268 35732 * util/grub-mkconfig_lib.in (grub_warn): New function.
35733 (convert_system_path_to_grub_path): Use grub_warn() when issuing
35734 warnings, to obtain consistent formatting.
35735 * util/grub.d/00_header.in: Likewise.
35736 * util/update-grub_lib.in: Likewise.
35737
e94045a1 35738 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 35739 Move comment text to `#error' stanza.
e94045a1 35740
79d29fd7 35741 Harmonize ieee1275's grub_available_iterate() with the generic
35742 grub_machine_mmap_iterate() interface (fixes a recently-introduced
35743 build problem on i386-ieee1275):
35744 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
35745 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
35746 parameter `type'. Update all users of this function.
35747 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
35748 `kern/ieee1275/mmap.c'.
35749 * kern/ieee1275/init.c
35750 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
35751 with ...
35752 (grub_machine_mmap_iterate): ... this.
35753 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
35754 return type to `grub_err_t'. Update all implementations of this
35755 function prototype.
35756 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
35757 Likewise.
35758
60d6b16e 35759 Add `lsmmap' command (lists firmware-provided memory map):
35760 * commands/lsmmap.c: New file.
35761 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
35762 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
35763 variables.
35764 * conf/powerpc-ieee1275.rmk: Likewise.
35765 * conf/i386-coreboot.rmk: Likewise.
35766 * conf/i386-ieee1275.rmk: Likewise.
35767
ebaaf49b 357682008-11-19 Robert Millan <rmh@aybabtu.com>
35769
35770 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 35771 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
35772 constraints to initrd allocation (based on code from
35773 loader/i386/pc/linux.c). Without them, initrd was allocated too high
35774 for Linux to find it.
ebaaf49b 35775
dfab719f 357762008-11-14 Robert Millan <rmh@aybabtu.com>
35777
35778 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
35779 order to cope with duplicate slashes.
35780
10fc3eb9 357812008-11-14 Robert Millan <rmh@aybabtu.com>
35782
35783 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
35784 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
35785 don't want to mess with lower memory, because it is used in the Linux
35786 loader.
35787
35788 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 35789 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 35790 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
35791 is in our heap (probably as a result of it being corrupted during
2f2a3442 35792 decompression). Add #error instance with comment to explain why this
35793 loader isn't currently usable on PC/BIOS.
10fc3eb9 35794
e2e07847 357952008-11-14 Robert Millan <rmh@aybabtu.com>
35796
35797 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 35798 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 35799
fe8e8d69 358002008-11-12 Robert Millan <rmh@aybabtu.com>
35801
35802 Make loader/i386/linux.c buildable on i386-pc (although disabled).
35803
35804 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
35805 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
35806 from here ...
35807 * include/grub/i386/pc/memory.h: ... to here.
35808
976b07d0 358092008-11-12 Robert Millan <rmh@aybabtu.com>
35810
35811 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
35812 split).
35813
35814 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
35815 (grub_console_cur_color, grub_console_real_putchar)
35816 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35817 (grub_console_setcolorstate, grub_console_setcolor)
35818 (grub_console_getcolor): Move from here ...
35819 * include/grub/i386/vga_common.h: ... to here (new file).
35820
35821 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
35822 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
35823 `<grub/i386/io.h>'.
35824 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
35825 `<grub/i386/vga_common.h>'.
35826
76679cd3 358272008-11-12 Robert Millan <rmh@aybabtu.com>
35828
35829 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35830 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35831 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35832 variables.
35833 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35834 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35835
35836 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35837 grub_console_init() with call to grub_vga_text_init().
35838 (grub_machine_fini): Replace call to
35839 grub_console_fini() with call to grub_vga_text_fini() and
35840 grub_at_keyboard_fini().
35841
35842 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35843 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35844 (grub_console_setcolorstate, grub_console_setcolor)
35845 (grub_console_getcolor): New function prototypes.
35846
35847 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35848 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35849 (grub_vga_text_setcursor): Static-ize.
35850 (grub_vga_text_term): New structure.
35851 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35852
35853 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35854 (grub_console_cur_color, grub_console_standard_color)
35855 (grub_console_normal_color, grub_console_highlight_color)
35856 (map_char, grub_console_putchar, grub_console_getcharwidth)
35857 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35858 (grub_console_getcolor): Move from here ...
35859 * term/i386/vga_common.c: ... to here (same function names).
35860
95b841d3 358612008-11-12 Robert Millan <rmh@aybabtu.com>
35862
35863 Use newly-added Multiboot support in coreboot.
35864
35865 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35866 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
35867
35868 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
35869 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
35870 (codestart): Store the MBI in `startup_multiboot_info' when we're
35871 being loaded using Multiboot.
35872
35873 * kern/i386/coreboot/init.c (grub_machine_init): Move
35874 grub_at_keyboard_init() call to beginning of function (useful for
35875 debugging). Call grub_machine_mmap_init() before attempting to use
35876 grub_machine_mmap_iterate().
35877 (grub_lower_mem, grub_upper_mem): Move from here ...
35878 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35879 here (new file).
35880
35881 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35882 function prototype.
35883
761ca975 358842008-11-12 Robert Millan <rmh@aybabtu.com>
35885
35886 Fix a regression introduced by the at_keyboard.mod split. Because
35887 some terminals are default on some platforms and non-default on
35888 others, the first terminal being registered determines which is
35889 going to be default.
35890
35891 * kern/term.c (grub_term_register_input): If this is the first
35892 terminal being registered, set it as the current one.
35893 (grub_term_register_output): Likewise.
35894
35895 * term/efi/console.c (grub_console_init): Do not call
35896 grub_term_set_current_output() or grub_term_set_current_input().
35897 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35898 * term/i386/pc/console.c (grub_console_init): Likewise.
35899 (grub_console_fini): Do not call grub_term_set_current_input()
35900 (but leave grub_term_set_current_output() to restore text mode).
35901
6c529df7 359022008-11-10 Robert Millan <rmh@aybabtu.com>
35903
35904 * util/grub.d/00_header.in: Add backward compatibility check for
35905 versions of terminal.mod that don't understand `terminal_input' or
35906 `terminal_output'.
35907
132e4113 359082008-11-09 Robert Millan <rmh@aybabtu.com>
35909
35910 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35911 `terminal_input' / `terminal_output', not `terminal'.
35912
ac293d50 359132008-11-08 Robert Millan <rmh@aybabtu.com>
35914
35915 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35916 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35917
0025933a 359182008-11-08 Robert Millan <rmh@aybabtu.com>
35919
35920 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35921 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35922 members. Update all users.
35923 * util/console.c (grub_ncurses_term): Split in ...
35924 (grub_ncurses_term_input): ... this, and ...
35925 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35926 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35927
37c86336 359282008-11-08 Robert Millan <rmh@aybabtu.com>
35929
35930 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35931 (PKGDATA): Add $(pkgdata_SRCDIR).
35932 (pkglib_BUILDDIR): New variable.
35933 (pkgdata_SRCDIR): New variable.
35934 (build_env.mk): New target.
35935 (include_DATA): New variable.
35936 (install-local): Install $(include_DATA) files in $(includedir).
35937
b6c15a2d 359382008-11-07 Pavel Roskin <proski@gnu.org>
35939
d99d46f1 35940 * gendistlist.sh: Use C locale for sorting to ensure consistent
35941 output on all systems.
35942
b6c15a2d 35943 * util/grub.d/00_header.in: Remove incorrect space before
35944 "serial".
35945
c32ee8c9 359462008-11-07 Robert Millan <rmh@aybabtu.com>
35947
35948 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35949 per specification.
35950 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35951 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35952 (based on find_multi_boot1_header).
35953 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35954 using find_multi_boot2_header(), and abort if neither Multiboot or
35955 Multiboot headers were found.
35956
651c29b7 359572008-11-07 Robert Millan <rmh@aybabtu.com>
35958
35959 Modularize at_keyboard.mod:
35960
35961 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35962 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35963 (at_keyboard_mod_LDFLAGS): New variables.
35964
35965 Actual terminal split:
35966
35967 * include/grub/term.h (struct grub_term): Split in ...
35968 (struct grub_term_input): ... this, and ...
35969 (struct grub_term_output): ... this. Update all users.
35970 (grub_term_set_current): Split in ...
35971 (grub_term_set_current_input): ... this, and ...
35972 (grub_term_set_current_output): ... this.
35973 (grub_term_get_current): Split in ...
35974 (grub_term_get_current_input): ... this, and ...
35975 (grub_term_get_current_output): ... this.
35976 (grub_term_register): Split in ...
35977 (grub_term_register_input): ... this, and ...
35978 (grub_term_register_output): ... this.
35979 (grub_term_unregister): Split in ...
35980 (grub_term_unregister_input): ... this, and ...
35981 (grub_term_unregister_output): ... this.
35982 (grub_term_iterate): Split in ...
35983 (grub_term_iterate_input): ... this, and ...
35984 (grub_term_iterate_output): ... this.
35985
35986 * kern/term.c (grub_term_list): Split in ...
35987 (grub_term_list_input): ... this, and ...
35988 (grub_term_list_output): ... this. Update all users.
35989 (grub_cur_term): Split in ...
35990 (grub_cur_term_input): ... this, and ...
35991 (grub_cur_term_output): ... this. Update all users.
35992 (grub_term_set_current): Split in ...
35993 (grub_term_set_current_input): ... this, and ...
35994 (grub_term_set_current_output): ... this.
35995 (grub_term_get_current): Split in ...
35996 (grub_term_get_current_input): ... this, and ...
35997 (grub_term_get_current_output): ... this.
35998 (grub_term_register): Split in ...
35999 (grub_term_register_input): ... this, and ...
36000 (grub_term_register_output): ... this.
36001 (grub_term_unregister): Split in ...
36002 (grub_term_unregister_input): ... this, and ...
36003 (grub_term_unregister_output): ... this.
36004 (grub_term_iterate): Split in ...
36005 (grub_term_iterate_input): ... this, and ...
36006 (grub_term_iterate_output): ... this.
36007
36008 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
36009 a check for input and one for output (and only attempt to get keys
36010 from user when input works).
36011
36012 * util/grub-probe.c (grub_term_get_current): Split in ...
36013 (grub_term_get_current_input): ... this, and ...
36014 (grub_term_get_current_output): ... this.
36015 * util/grub-fstest.c: Likewise.
36016 * util/i386/pc/grub-setup.c: Likewise.
36017 * util/grub-editenv.c: Likewise.
36018
36019 Portability adjustments:
36020
36021 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36022 `term/i386/pc/at_keyboard.c'.
36023 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36024 grub_keyboard_controller_init() (now handled by terminal .init).
36025 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36026 grub_at_keyboard_init().
36027 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36028 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36029 at_keyboard.mod via input terminal interface).
36030 * include/grub/i386/coreboot/console.h: Convert into a stub for
36031 `<grub/i386/pc/console.h>'.
36032
36033 Migrate full terminals to new API:
36034
36035 * term/efi/console.c (grub_console_term): Split into ...
36036 (grub_console_term_input): ... this, and ...
36037 (grub_console_term_output): ... this. Update all users.
36038 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36039 (grub_ofconsole_init): Split into ...
36040 (grub_ofconsole_init_input): ... this, and ...
36041 (grub_ofconsole_init_output): ... this.
36042 (grub_ofconsole_term): Split into ...
36043 (grub_ofconsole_term_input): ... this, and ...
36044 (grub_ofconsole_term_output): ... this. Update all users.
36045 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36046 (grub_serial_term_input): ... this, and ...
36047 (grub_serial_term_output): ... this. Update all users.
36048 * term/i386/pc/console.c (grub_console_term): Split into ...
36049 (grub_console_term_input): ... this, and ...
36050 (grub_console_term_output): ... this. Update all users.
36051 (grub_console_term_input): Only enable it on PC/BIOS platform.
36052 (grub_console_init): Remove grub_keyboard_controller_init() call.
36053
36054 Migrate input terminals to new API:
36055
36056 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36057 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36058 i386-specific anyway).
36059 (grub_console_checkkey): Rename to ...
36060 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36061 users.
36062 (grub_keyboard_controller_orig): New variable.
36063 (grub_console_getkey): Rename to ...
36064 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36065 users.
36066 (grub_keyboard_controller_init): Static-ize. Save original
36067 controller value so that it can be restored ...
36068 (grub_keyboard_controller_fini): ... here (new function).
36069 (grub_at_keyboard_term): New structure.
36070 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36071 functions.
36072
36073 Migrate output terminals to new API:
36074
36075 * term/i386/pc/vga.c (grub_vga_term): Change type to
36076 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36077 members. Update all users.
36078 * term/gfxterm.c (grub_video_term): Change type to
36079 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36080 members. Update all users.
36081 * include/grub/i386/pc/console.h (grub_console_checkkey)
36082 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36083 etc).
36084
36085 Migrate `terminal' command and userland tools to new API:
36086
36087 * commands/terminal.c (grub_cmd_terminal): Split into ...
36088 (grub_cmd_terminal_input): ... this, and ...
36089 (grub_cmd_terminal_output): ... this.
36090 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36091 `terminal_input' and `terminal_output'.
36092 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36093 `terminal_input' / `terminal_output' API.
36094 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36095 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36096 provided ${GRUB_TERMINAL}, convert it).
36097
96e5d876 360982008-11-04 Robert Millan <rmh@aybabtu.com>
36099
36100 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36101 for FreeBSD.
36102 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36103
556f3775 361042008-11-03 Bean <bean123ch@gmail.com>
36105
36106 * kern/elf.c (grub_elf32_load): Revert to previous code.
36107 (grub_elf64_load): Likewise.
36108
36109 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36110
926b9823 361112008-11-01 Robert Millan <rmh@aybabtu.com>
36112
36113 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36114 (TARGET_CPPFLAGS): Likewise.
36115 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36116
1432e958 361172008-11-01 Carles Pina i Estany <carles@pina.cat>
36118
36119 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36120
dba3f844 361212008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 36122
36123 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36124 addition of objects until the code is not going to be able to fail.
36125
dba3f844 361262008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 36127
36128 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36129 (add a missing NULL check, and correct them by moving the pointer
36130 operations after the actual check).
36131
7ab28c21 361322008-10-29 Robert Millan <rmh@aybabtu.com>
36133
36134 * util/i386/pc/grub-install.in: Handle empty string as output from
36135 make_system_path_relative_to_its_root().
36136
1b7748eb 361372008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36138
36139 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36140 circular metadata worst case scenario. If the metadata is circular
36141 then copy the wrap in place.
36142 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36143 project lib/format_text/layout.h
36144 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36145
c9618ab2 361462008-10-03 Felix Zielcke <fzielcke@z-51.de>
36147
7a36edca 36148 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 36149
bf981c62 361502008-10-03 Felix Zielcke <fzielcke@z-51.de>
36151
36152 * util/update-grub_lib.in: Mention filename in warning message.
36153
6d994591 361542008-09-29 Felix Zielcke <fzielcke@z-51.de>
36155
36156 * NEWS: Update for rename of update-grub to grub-mkconfig.
36157
18ade780 361582008-09-29 Felix Zielcke <fzielcke@z-51.de>
36159
36160 * util/update-grub_lib.in: Copy to ...
36161 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 36162 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 36163 * util/update-grub.in: Rename to ...
36164 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36165 option. Add `--output' option to allow users to specify the generated
36166 configuration file. Default to stdout.
36167 (update_grub_dir): Rename to ...
36168 (grub_mkconfig_dir): ... this.
36169 (grub_cfg): Default to an empty string.
36170 * conf/common.rmk (update-grub): Rename to ...
36171 (grub-mkconfig): ... this.
36172 (update-grub_lib): Copy to ...
36173 (grub-mkconfig_lib): ... this.
36174 (update-grub_SCRIPTS): Copy to ...
36175 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36176 (update-grub_DATA): Rename to ...
36177 (grub-mkconfig_DATA): ... this.
36178
556ce6ac 361792008-09-28 Robert Millan <rmh@aybabtu.com>
36180
36181 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36182 to `modified'. Add the real `created' field.
36183 (grub_iso9660_uuid): Use `modified' rather than `created' for
36184 constructing the UUID.
36185
361862008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 36187
36188 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36189 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36190
92274e85 361912008-09-28 Bean <bean123ch@gmail.com>
36192
36193 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36194 Thanks to Christian Franke for finding this bug.
36195
add6f17a 361962008-09-25 Robert Millan <rmh@aybabtu.com>
36197
36198 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36199 instances of grub_util_get_disk_name() (see previous commit).
36200
d2a367b8 362012008-09-25 Robert Millan <rmh@aybabtu.com>
36202
36203 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36204 `util/i386/get_disk_name.c'.
36205 * conf/i386-efi.rmk: Likewise.
36206 * conf/x86_64-efi.rmk: Likewise.
36207 * conf/i386-coreboot.rmk: Likewise.
36208 * conf/i386-ieee1275.rmk: Likewise.
36209 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36210 `util/ieee1275/get_disk_name.c'.
36211 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36212 * util/ieee1275/get_disk_name.c: Remove file.
36213 * util/i386/get_disk_name.c: Remove file.
36214 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36215 "hd%d" for device.map entries, rather than using
36216 grub_util_get_disk_name().
36217
81a06771 362182008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 36219
36220 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36221 warning.
36222 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36223
5a004279 362242008-09-24 Carles Pina i Estany <carles@pina.cat>
36225
36226 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36227 Changed to 0x5100.
36228 (GRUB_TERM_PPAGE): Changed to 0x4900.
36229
397093d3 362302008-09-24 Robert Millan <rmh@aybabtu.com>
36231
36232 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36233 macros (they were i386-pc specific).
36234 * include/grub/sparc64/ieee1275/console.h: Likewise.
36235 * include/grub/efi/console.h: Likewise.
36236
a91b6c7c 362372008-09-22 Bean <bean123ch@gmail.com>
36238
36239 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36240 resident and in attribute list.
36241
36242 * include/grub/ntfs.h (BMP_LEN): Removed.
36243
c40fd116 362442008-09-22 Bean <bean123ch@gmail.com>
36245
81a06771 36246 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 36247 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36248
36249 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36250 error occurs, as grub_disk_open will call grub_disk_close, which will
36251 call p->close (scsi).
36252
81a06771 362532008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 36254
36255 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36256 (AC_PREREQ): Bumped to 2.59.
36257 (AC_TRY_COMPILE): Replace obsolete macro with ...
36258 (AC_COMPILE_IFELSE): ... this.
36259 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36260 (AC_LINK_IFELSE): ... this.
36261
5dc43410 362622008-09-21 Felix Zielcke <fzielcke@z-51.de>
36263
36264 * autogen.sh: Add a call to `gendistlist.sh'.
36265
9035dce4 362662008-09-19 Christian Franke <franke@computer.org>
36267
36268 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36269 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36270 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36271 Export __enable_execute_stack() to modules.
36272 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36273 New function.
36274
7fd75377 362752008-09-09 Felix Zielcke <fzielcke@z-51.de>
36276
040030b3 36277 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36278 Sort the list.
36279
362802008-09-09 Felix Zielcke <fzielcke@z-51.de>
36281
36282 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 36283 #include <grub/util/hostdisk.h>.
36284
89d5ffcf 362852008-09-08 Robert Millan <rmh@aybabtu.com>
36286
36287 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36288 segments when their filesz is zero (grub_file_read() interprets
81a06771 36289 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 36290 Use `lowest_segment' rather than 0 for calculating the current
36291 segment load address.
36292
40da438f 362932008-09-08 Robert Millan <rmh@aybabtu.com>
36294
36295 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36296 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36297 clobbered useful information.
36298
ddbf5556 362992008-09-08 Robert Millan <rmh@aybabtu.com>
36300
36301 * include/grub/util/biosdisk.h: Move to ...
36302 * include/grub/util/hostdisk.h: ... here. Update all users.
36303 * util/biosdisk.c: Move to ...
36304 * util/hostdisk.c: ... here. Update all users.
36305
783d0f48 363062008-09-07 Robert Millan <rmh@aybabtu.com>
36307
36308 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
36309 variables.
36310 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
36311 and length can be stored directly in the `mbi->mmap_addr' and
36312 `mbi->mmap_length' struct fields.
36313
548e2ea5 363142008-09-07 Robert Millan <rmh@aybabtu.com>
36315
36316 * conf/i386.rmk: New file. Provides declaration for building
36317 `cpuid.mod'.
36318 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
36319 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
36320 variables.
36321 Include `conf/i386.mk'.
36322 * conf/i386-efi.rmk: Likewise.
36323 * conf/x86_64-efi.rmk: Likewise.
36324 * conf/i386-coreboot.rmk: Likewise.
36325 * conf/i386-ieee1275.rmk: Likewise.
36326
0ea85a37 363272008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
36328
36329 Based on patch created by Colin D Bennett <colin@gibibit.com>.
36330 Adds optimization support for BGR based modes.
36331
36332 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
36333 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36334 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36335 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36336 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36337 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36338 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36339 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36340 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36341 (grub_video_i386_vbeblit_index_index): Likewise.
36342 (grub_video_i386_vbeblit_replace_directN): Added.
36343 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36344 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36345 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36346 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36347 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36348 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 36349 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 36350 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36351 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36352 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36353 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36354 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36355 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36356
36357 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
36358 (grub_video_i386_vbefill_R8G8B8): Likewise.
36359 (grub_video_i386_vbefill_index): Likewise.
36360 (grub_video_i386_vbefill_direct32): Added.
36361 (grub_video_i386_vbefill_direct24): Likewise.
36362 (grub_video_i386_vbefill_direct16): Likewise.
36363 (grub_video_i386_vbefill_direct8): Likewise.
36364
81a06771 36365 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 36366 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
36367 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
36368 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
36369 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
36370 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 36371
0ea85a37 36372 * video/video.c (grub_video_get_blit_format): Updated to use new
36373 blit formats. Added handling for 16 bit color modes.
81a06771 36374
36375 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 36376 fillers.
36377 (common_blitter): Updated to use new blitters.
36378
36379 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
36380 Removed.
36381 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36382 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36383 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36384 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36385 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36386 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36387 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36388 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36389 (grub_video_i386_vbeblit_index_index): Likewise.
36390 (grub_video_i386_vbeblit_replace_directN): Added.
36391 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36392 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36393 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36394 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36395 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36396 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36397 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36398 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36399 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36400 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36401 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36402 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36403 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 36404
0ea85a37 36405 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
36406 (grub_video_i386_vbefill_R8G8B8): Likewise.
36407 (grub_video_i386_vbefill_index): Likewise.
36408 (grub_video_i386_vbefill_direct32): Added.
36409 (grub_video_i386_vbefill_direct24): Likewise.
36410 (grub_video_i386_vbefill_direct16): Likewise.
36411 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 36412
0ea85a37 36413 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
36414 types.
81a06771 36415
0ea85a37 36416 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
36417 types.
81a06771 36418
0ea85a37 36419 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
36420 blitter types.
81a06771 36421
0ea85a37 36422 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
36423 types.
36424
e8a83df6 364252008-09-06 Felix Zielcke <fzielcke@z-51.de>
36426
36427 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
36428 RAID level 1.
36429
6bcd8ee5 364302008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 36431
6bcd8ee5 36432 * fs/iso9660.c (grub_iso9660_date): New structure.
36433 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
36434 (grub_iso9660_uuid): New function.
c375ae58 36435
59261157 364362008-09-05 Bean <bean123ch@gmail.com>
36437
36438 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
36439
36440 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
36441 insensitive bit for names in Win32 and Win32 & DOS namespace.
36442
36443 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
36444
36445 * include/grub/types.h (LONG_MAX): Likewise.
36446
58b6645a 364472008-09-04 Felix Zielcke <fzielcke@z-51.de>
36448
4ee55921 36449 * util/getroot.c: Include <config.h>.
36450 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
36451 add support for /dev/md/N devices and handle LVM double dash escaping.
36452
364532008-09-04 Felix Zielcke <fzielcke@z-51.de>
36454
36455 * config.guess: Update to latest version from config git.
36456 * config.sub: Likewise.
58b6645a 36457
9124f65d 364582008-09-03 Robert Millan <rmh@aybabtu.com>
36459
36460 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
36461 `disk->total_sectors'.
36462
81a06771 364632008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 36464
36465 * include/grub/normal.h: Fixed incorrect comment for
36466 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
36467
81a06771 364682008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 36469
36470 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
36471 values with defines.
36472
36473 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
36474 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
36475 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
36476 (GRUB_VBE_MODEATTR_COLOR): Likewise.
36477 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
36478 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
36479 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
36480 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
36481 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
36482 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
36483 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
36484 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
36485 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
36486 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
36487 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
36488 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
36489 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
36490 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
36491 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
36492
93d5cbf8 364932008-08-31 Robert Millan <rmh@aybabtu.com>
36494
36495 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
36496 declaration.
36497 (grub_multiboot): Fix a few warnings.
36498
21751d50 364992008-08-31 Robert Millan <rmh@aybabtu.com>
36500
36501 * loader/i386/pc/multiboot.c: Update comment not to say that
36502 boot_device support is unimplemented.
36503
e27a75c5 365042008-08-31 Robert Millan <rmh@aybabtu.com>
36505
36506 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
36507 or memory map support are unimplemented.
36508
81a06771 365092008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 36510
36511 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
36512
81a06771 365132008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 36514
36515 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
36516 total video memory in 'vbeinfo' output; show color format details for
36517 each video mode.
36518
7c5d8d95 365192008-08-30 Pavel Roskin <proski@gnu.org>
36520
36521 * util/genmoddep.c: Remove for real this time.
36522 * DISTLIST: Remove util/genmoddep.c.
36523
4cebd25a 365242008-08-30 Robert Millan <rmh@aybabtu.com>
36525
36526 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
36527 as required by Multiboot spec (it was already 4-byte aligned, but
36528 only by chance).
36529
b497a269 365302008-08-29 Pavel Roskin <proski@gnu.org>
36531
e3925185 36532 * kern/powerpc/ieee1275/crt0.S: Rename to ...
36533 * kern/powerpc/ieee1275/startup.S: ... this.
36534 * conf/powerpc-ieee1275.rmk: Adjust for the above.
36535 * DISTLIST: Likewise.
36536
b497a269 36537 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
36538 grub/cpu/kernel.h. Add start label for consistency with other
36539 platforms. Add grub_prefix immediately after start. Add jump
36540 to the code after grub_prefix.
36541 * include/grub/powerpc/kernel.h: Provide valid values for
36542 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
36543
6e5a42fe 365442008-08-29 Bean <bean123ch@gmail.com>
36545
36546 * configure.ac: Change host_os to cygwin for mingw.
36547 (asprintf): New check for function.
36548
36549 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
36550 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
36551
36552 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 36553 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 36554 sync, sleep and grub_util_get_disk_size for mingw.
36555
36556 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
36557 to get size in mingw.
36558 (open_device): Use flag O_BINARY if it's defined.
36559 (find_root_device): Add dummy code for mingw.
36560
36561 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
36562 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
36563 (get_scsi_disk_name): Return 0 for mingw.
36564
36565 * util/hostfs.c: #include <grub/util/misc.h>.
36566 (grub_hostfs_open): Use "rb" flag to open file, use
36567 grub_util_get_disk_size to get disk size for mingw.
36568
36569 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
36570 (asprintf): New function if HAVE_ASPRINTF is not set.
36571 (sync): New function for mingw.
36572 (sleep): Likewise.
36573 (grub_util_get_disk_size): Likewise.
36574
ab3f2673 365752008-08-28 Pavel Roskin <proski@gnu.org>
36576
36577 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36578 kern/time.c.
36579
1c282483 365802008-08-28 Robert Millan <rmh@aybabtu.com>
36581
36582 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
36583
678e849c 365842008-08-28 Robert Millan <rmh@aybabtu.com>
36585
36586 Change find_grub_drive() syntax so it doesn't prevent it from
36587 detecting NULL names as errors.
36588
36589 * util/biosdisk.c (find_grub_drive): Move free slot search code
36590 from here ...
36591 (find_free_slot): ... to here.
36592 (read_device_map): Use find_free_slot() to search for free slots.
36593
965c75ca 365942008-08-27 Marco Gerards <marco@gnu.org>
36595
36596 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
36597 (scsi_mod_SOURCES): New variable.
36598 (scsi_mod_CFLAGS): Likewise
36599 (scsi_mod_LDFLAGS): Likewise.
36600
36601 * disk/scsi.c: New file.
36602
36603 * include/grub/scsi.h: Likewise.
36604
36605 * include/grub/scsicmd.h: Likewise.
36606
36607 * disk/ata.c: Include <grub/scsi.h>.
36608 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
36609 instead.
36610 (grub_ata_iterate): Skip ATAPI devices.
36611 (grub_ata_open): Only handle ATAPI devices.
36612 (struct grub_atapi_read): Removed.
36613 (grub_atapi_readsector): Likewise.
36614 (grub_ata_read): No longer handle ATAPI devices.
36615 (grub_ata_write): Likewise.
36616 (grub_atapi_iterate): New function.
36617 (grub_atapi_read): Likewise.
36618 (grub_atapi_write): Likewise.
36619 (grub_atapi_open): Likewise.
36620 (grub_atapi_close): Likewise.
36621 (grub_atapi_dev): New variable.
36622 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
36623 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
36624
36625 * include/grub/disk.h (enum grub_disk_dev_id): Add
36626 `GRUB_DISK_DEVICE_SCSI_ID'.
36627
c07ae501 366282008-08-26 Robert Millan <rmh@aybabtu.com>
36629
36630 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
36631 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
36632 descriptive.
36633
5ed20adc 366342008-08-23 Bean <bean123ch@gmail.com>
36635
36636 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
36637 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36638 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
36639 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
36640 dm_nv.mod.
36641 (raid5rec_mod_SOURCES): New macro.
36642 (raid5rec_mod_CFLAGS): Likewise.
36643 (raid5rec_mod_LDFLAGS): Likewise.
36644 (raid6rec_mod_SOURCES): Likewise.
36645 (raid6rec_mod_CFLAGS): Likewise.
36646 (raid6rec_mod_LDFLAGS): Likewise.
36647 (mdraid_mod_SOURCES): Likewise.
36648 (mdraid_mod_CFLAGS): Likewise.
36649 (mdraid_mod_LDFLAGS): Likewise.
36650 (dm_nv_mod_SOURCES): Likewise.
36651 (dm_nv_mod_CFLAGS): Likewise.
36652 (dm_nv_mod_LDFLAGS): Likewise.
36653
36654 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
36655 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36656 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36657
36658 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
36659 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36660
36661 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36662
36663 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36664
36665 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36666
36667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36668
36669 * disk/raid5_recover.c: New file.
36670
36671 * disk/raid6_recover.c: Likewise.
36672
36673 * disk/mdraid_linux.c: Likewise.
36674
36675 * disk/dmraid_nvidia.c: Likewise.
36676
36677 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
36678 ULONG_MAX.
36679
36680 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
36681 calculate the size of raid device.
36682 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
36683 different layout of raid5.
36684 (grub_raid_scan_device): Remove code specific to mdraid.
36685 (grub_raid_list): New variable.
36686 (free_array): New function.
36687 (grub_raid_register): Likewise.
36688 (grub_raid_unregister): Likewise.
36689 (grub_raid_rescan): Likewise.
36690 (GRUB_MOD_INIT): Don't iterate device here.
36691 (GRUB_MOD_FINI): Use free_array to release resource.
36692
36693 * include/grub/raid.h: Remove macro and structure specific to mdraid.
36694 (grub_raid5_recover_func_t): New function variable type.
36695 (grub_raid6_recover_func_t): Likewise.
36696 (grub_raid5_recover_func): New variable.
36697 (grub_raid6_recover_func): Likewise.
36698 (grub_raid_register): New function.
36699 (grub_raid_unregister): Likewise.
36700 (grub_raid_rescan): Likewise.
36701 (grub_raid_block_xor): Likewise.
36702
36703 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
36704 (CMD_CRC): New macro.
36705 (part): Removed.
36706 (read_file): Handle device as well as file.
36707 (cmd_crc): New function.
36708 (fstest): Handle multiple disks.
36709 (options): Remove part, raw and long, add root and diskcount.
36710 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 36711 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 36712 add handling for the new options, support multiple disks.
36713
36714 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
36715
29c18915 367162008-08-23 Bean <bean123ch@gmail.com>
36717
36718 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
36719
36720 * genfslist.sh: Ignore kernel.mod.
36721
36722 * genpartmaplist.sh: Likewise.
36723
8415f261 367242008-08-23 Robert Millan <rmh@aybabtu.com>
36725
36726 * util/getroot.c (find_root_device): Skip anything that starts with
36727 a dot, not just directories. This avoids things like /dev/.tmp.md0.
36728
d5a7dc5b 367292008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 36730
d5a7dc5b 36731 * util/update-grub.in (GRUB_GFXMODE): Export variable.
36732 * util/grub.d/00_header.in: Allow the administrator to change default
36733 gfxmode via ${GRUB_GFXMODE}.
36734
380cfbb4 367352008-08-21 Felix Zielcke <fzielcke@z-51.de>
36736
36737 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
36738
c9baafe7 367392008-08-21 Robert Millan <rmh@aybabtu.com>
36740
36741 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
36742 loader.
36743 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
36744 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
36745
e290bef2 367462008-08-20 Carles Pina i Estany <carles@pina.cat>
36747
36748 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
36749 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
36750
f9dbfc96 367512008-08-19 Robert Millan <rmh@aybabtu.com>
36752
36753 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
36754 (struct grub_virtual_screen): Remove `cursor_color'.
36755 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
36756 initialization.
36757 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
36758
dd6bd6ab 367592008-08-18 Robert Millan <rmh@aybabtu.com>
36760
36761 Unify (identical) linux_normal.c files.
36762 * loader/i386/efi/linux_normal.c: Move from here ...
36763 * loader/linux_normal.c: ... to here. Update all users.
36764 * loader/i386/pc/linux_normal.c: Delete. Update all users.
36765 * loader/i386/ieee1275/linux_normal.c: Likewise.
36766
7f42f83e 367672008-08-18 Robert Millan <rmh@aybabtu.com>
36768
36769 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
36770 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
36771 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
36772 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
36773 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
36774 New macros.
36775 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
36776 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
36777 (GRUB_LINUX_CL_END_OFFSET): ... to here.
36778 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
36779 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
36780 (GRUB_EFI_CL_END_OFFSET): Rename to ...
36781 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
36782 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
36783 Initialize `params->video_cursor_x' and `params->video_cursor_y'
36784 portably using grub_getxy().
36785 Replace `-EFI' with `-bzImage' in boot message.
36786
38487ddb 367872008-08-17 Robert Millan <rmh@aybabtu.com>
36788
36789 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
36790
deceb3ec 367912008-08-17 Robert Millan <rmh@aybabtu.com>
36792
36793 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
36794
36795 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
36796 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
36797 (grub_machine_mmap_iterate): New function declaration.
36798 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
36799 structure.
36800 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
36801 macros.
36802
36803 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
36804 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
36805 Move e820 parsing from here ...
36806 * kern/i386/pc/mmap.c: New file.
36807 (grub_machine_mmap_iterate): ... to here.
36808
36809 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
36810 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
36811 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
36812 (grub_available_iterate): Redeclare to return `void', and redeclare
36813 its hook to use grub_uint64_t as addr and size parameters, and rename
36814 to ...
36815 (grub_machine_mmap_iterate): ... this. Update all users.
36816
36817 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
36818 to make it more readable. Rename to ...
36819 (grub_machine_mmap_iterate): ... this.
36820
36821 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
36822 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
36823 (grub_multiboot): Allocate an extra region after the payload, and fill
36824 it with a Multiboot memory map. Adjust a.out loader to calculate size
36825 with the extra space.
36826 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36827 with the extra space.
36828
f8aa0f43 368292008-08-17 Carles Pina i Estany <carles@pina.cat>
36830
9807deb9 36831 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36832
605f5bb6 368332008-08-17 Felix Zielcke <fzielcke@z-51.de>
36834
36835 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36836 mdate-sh to the list `find' searches for.
36837 * DISTLIST: Regenerated.
36838
210db6c6 368392008-08-16 Felix Zielcke <fzielcke@z-51.de>
36840
36841 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36842 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36843 genmoddep.awk, gensymlist.sh.in.
36844 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36845 * DISTLIST: Regenerated.
48cdbfd4 36846 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36847
1082b929 368482008-08-16 Robert Millan <rmh@aybabtu.com>
36849
36850 * disk/raid.c (grub_raid_init): Handle/report errors set by
36851 grub_device_iterate().
36852 * disk/lvm.c (grub_lvm_init): Likewise.
36853
42ce5170 368542008-08-15 Bean <bean123ch@gmail.com>
36855
36856 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36857 and datehook.mod.
36858 (datetime_mod_SOURCES): New macro.
36859 (datetime_mod_CFLAGS): Likewise.
36860 (datetime_mod_LDFLAGS): Likewise.
36861 (date_mod_SOURCES): Likewise.
36862 (date_mod_CFLAGS): Likewise.
36863 (date_mod_LDFLAGS): Likewise.
36864 (datehook_mod_SOURCES): Likewise.
36865 (datehook_mod_CFLAGS): Likewise.
36866 (datehook_mod_LDFLAGS): Likewise.
36867
36868 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36869 and datehook.mod.
36870 (datetime_mod_SOURCES): New macro.
36871 (datetime_mod_CFLAGS): Likewise.
36872 (datetime_mod_LDFLAGS): Likewise.
36873 (date_mod_SOURCES): Likewise.
36874 (date_mod_CFLAGS): Likewise.
36875 (date_mod_LDFLAGS): Likewise.
36876 (datehook_mod_SOURCES): Likewise.
36877 (datehook_mod_CFLAGS): Likewise.
36878 (datehook_mod_LDFLAGS): Likewise.
36879
36880 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36881 and datehook.mod.
36882 (datetime_mod_SOURCES): New macro.
36883 (datetime_mod_CFLAGS): Likewise.
36884 (datetime_mod_LDFLAGS): Likewise.
36885 (date_mod_SOURCES): Likewise.
36886 (date_mod_CFLAGS): Likewise.
36887 (date_mod_LDFLAGS): Likewise.
36888 (datehook_mod_SOURCES): Likewise.
36889 (datehook_mod_CFLAGS): Likewise.
36890 (datehook_mod_LDFLAGS): Likewise.
36891
36892 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36893 and datehook.mod.
36894 (datetime_mod_SOURCES): New macro.
36895 (datetime_mod_CFLAGS): Likewise.
36896 (datetime_mod_LDFLAGS): Likewise.
36897 (date_mod_SOURCES): Likewise.
36898 (date_mod_CFLAGS): Likewise.
36899 (date_mod_LDFLAGS): Likewise.
36900 (datehook_mod_SOURCES): Likewise.
36901 (datehook_mod_CFLAGS): Likewise.
36902 (datehook_mod_LDFLAGS): Likewise.
36903
36904 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36905 and datehook.mod.
36906 (datetime_mod_SOURCES): New macro.
36907 (datetime_mod_CFLAGS): Likewise.
36908 (datetime_mod_LDFLAGS): Likewise.
36909 (date_mod_SOURCES): Likewise.
36910 (date_mod_CFLAGS): Likewise.
36911 (date_mod_LDFLAGS): Likewise.
36912 (datehook_mod_SOURCES): Likewise.
36913 (datehook_mod_CFLAGS): Likewise.
36914 (datehook_mod_LDFLAGS): Likewise.
36915
36916 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36917
36918 * commands/date.c: New file.
36919
36920 * hook/datehook.c: Likewise.
36921
36922 * include/grub/lib/datetime.h: Likewise.
36923
36924 * include/grub/i386/cmos.h: Likewise.
36925
36926 * lib/datetime.c: Likewise.
36927
36928 * lib/i386/datetime.c: Likewise.
36929
36930 * lib/efi/datetime.c: Likewise.
36931
0e9242da 369322008-08-14 Robert Millan <rmh@aybabtu.com>
36933
36934 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36935 (grub_mkelfimage_SOURCES): New variable.
36936 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36937
36938 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36939 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36940 * conf/powerpc-ieee1275.rmk: Likewise.
36941 * conf/i386-ieee1275.rmk: Likewise.
36942
36943 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36944 * kern/i386/coreboot/init.c: Likewise.
36945
36946 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36947 with `<grub/cpu/kernel.h>'.
36948 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36949 to ...
36950 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36951 * kern/i386/coreboot/startup.S: Likewise.
36952
36953 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36954 (GRUB_MOD_GAP): Remove.
36955 * include/grub/powerpc/kernel.h: New file.
36956 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36957 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36958 * include/grub/i386/kernel.h: New file.
36959 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36960 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36961 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36962
36963 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36964 `grub-mkelfimage'.
36965 Use --directory when invoking grub_mkimage.
36966
36967 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36968 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36969 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36970 and GRUB_KERNEL_CPU_PREFIX.
36971
b86408f8 369722008-08-14 Felix Zielcke <fzielcke@z-51.de>
36973
d5e619ca 36974 * include/grub/err.h (grub_err_printf): New function prototype.
36975 * util/misc.c (grub_err_printf): New function.
36976 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36977 grub_printf.
36978 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36979
7161f0e0 369802008-08-13 Robert Millan <rmh@aybabtu.com>
36981
36982 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36983
a1967522 369842008-08-13 Robert Millan <rmh@aybabtu.com>
36985
36986 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36987 boot entry.
36988
371458b5 369892008-08-12 Robert Millan <rmh@aybabtu.com>
36990
36991 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36992 of the relocation code from here ...
36993 (grub_multiboot): ... to here.
36994 (forward_relocator, backward_relocator): Move from here ...
36995 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36996 (grub_multiboot_backward_relocator): ... to here.
36997 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36998 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36999 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
37000 (grub_multiboot_forward_relocator_end)
37001 (grub_multiboot_backward_relocator)
37002 (grub_multiboot_backward_relocator_end): New variables.
37003
05f9452b 370042008-08-12 Bean <bean123ch@gmail.com>
37005
37006 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
37007
20024ab0 370082008-08-11 Robert Millan <rmh@aybabtu.com>
37009
37010 * kern/i386/linuxbios/startup.S: Move from here ...
37011 * kern/i386/coreboot/startup.S: ... to here.
37012
37013 * kern/i386/linuxbios/init.c: Move from here ...
37014 * kern/i386/coreboot/init.c: ... to here.
37015
37016 * kern/i386/linuxbios/table.c: Move from here ...
37017 * kern/i386/coreboot/mmap.c: ... to here.
37018
37019 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37020
e352e9cd 370212008-08-11 Robert Millan <rmh@aybabtu.com>
37022
37023 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37024 errors. Leave it to the upper layer to handle them.
37025
2d05bc6a 370262008-08-09 Christian Franke <franke@computer.org>
37027
37028 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37029 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37030 Install `grub.d/10_windows' only on Cygwin.
37031 * configure.ac: Add subst of `target_os'.
37032 Check `target_os' also before setting TARGET_OBJ2ELF.
37033 Add `--enable-grub-pe2elf'.
37034
042bd419 370352008-08-08 Robert Millan <rmh@aybabtu.com>
37036
37037 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37038 (grub_last_time): Change type to grub_uint64_t.
37039 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37040 (grub_disk_close): Likewise.
37041
37042 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37043 (run_menu): Migrate code from to using grub_get_time_ms().
37044
37045 * util/misc.c (grub_get_time_ms): New function.
37046
7f280db5 370472008-08-08 Marco Gerards <marco@gnu.org>
37048
37049 * disk/ata.c (grub_ata_regget): Change return type to
37050 `grub_uint8_t'.
37051 (grub_ata_regget2): Likewise.
37052 (grub_ata_wait_status): New function.
37053 (grub_ata_wait_busy): Removed function, updated all users to use
37054 `grub_ata_wait_status'.
37055 (grub_ata_wait_drq): Likewise.
37056 (grub_ata_cmd): New function.
37057 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37058 error handling.
37059 (grub_ata_pio_write): Add error handling.
37060 (grub_atapi_identify): Likewise.
37061 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37062 handling.
37063 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37064 handling. Actually use the detected registers. Reorder the
37065 detection logic such that it is easier to read.
37066 (grub_ata_pciinit): Do not assign the same ID to each controller.
37067 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37068 handling.
37069 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37070
37071 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37072
1fbc5e66 370732008-08-08 Marco Gerards <marco@gnu.org>
37074
37075 * NEWS: Update.
37076
819ce6c0 370772008-08-07 Bean <bean123ch@gmail.com>
37078
37079 * include/grub/x86_64/pci.h: New file.
37080
5c41d44d 370812008-08-07 Christian Franke <franke@computer.org>
37082
37083 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37084 (TIMER2_GATE): Likewise.
37085 (grub_pit_wait): Add enable/disable of the timer2 gate
37086 bit of port 0x61. This fixes a possible infinite loop.
37087
5ebc275d 370882008-08-07 Bean <bean123ch@gmail.com>
37089
37090 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37091 kern/i386/tsc.c and kern/i386/pit.c.
37092
37093 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37094 x86_64 platform.
37095
37096 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37097 <grub/i386/tsc.h>.
37098
37099 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37100
e383b3d0 371012008-08-07 Bean <bean123ch@gmail.com>
37102
37103 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37104
37105 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37106
37107 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37108 multiple inclusion. Add #include <grub/types.h>.
37109
1cbb58ac 371102008-08-06 Christian Franke <franke@computer.org>
37111
37112 * conf/common.rmk: Build and install `10_windows'.
37113 * util/grub.d/10_windows.in: New script.
37114
337f5a1e 371152008-08-06 Pavel Roskin <proski@gnu.org>
37116
37117 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37118
057bc4ac 371192008-08-06 Robert Millan <rmh@aybabtu.com>
37120
37121 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37122 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37123
2b99f123 371242008-08-06 Bean <bean123ch@gmail.com>
37125
37126 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37127 (grub_pxefs_fs_int): Remove dummy definition.
37128 (grub_pxefs_open): Use data->block_size to store the current block
37129 size setting.
37130 (grub_pxefs_read): Use block size stored in data->block_size. As the
37131 value of grub_pxe_blksize can be changed after the file is opened.
37132
9f0234cb 371332008-08-06 Bean <bean123ch@gmail.com>
37134
37135 * fs/i386/pc/pxe.c (curr_file): new variable.
37136 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37137 require the dummy internal file system anymore.
37138 (grub_pxefs_read): Removed.
37139 (grub_pxefs_close): Likewise.
37140 (grub_pxefs_fs_int): Likewise.
37141 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37142 connection when we switch file.
37143 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37144
a55d42e0 371452008-08-06 Robert Millan <rmh@aybabtu.com>
37146
37147 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37148 `halt.mod'.
37149 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37150 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37151
37152 * kern/i386/halt.c: New file.
37153 * kern/i386/reboot.c: Likewise.
37154 * include/grub/i386/reboot.h: Likewise.
37155 * include/grub/i386/halt.h: Likewise.
37156
37157 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37158 Include `<grub/cpu/halt.h>'.
37159 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37160 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37161
37162 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37163 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37164 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37165 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37166 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37167 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37168 from here ...
37169 * include/grub/i386/at_keyboard.h: ... to here.
37170
24371d26 371712008-08-05 Robert Millan <rmh@aybabtu.com>
37172
37173 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37174 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37175 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37176 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37177 `kern/generic/millisleep.c'.
37178
37179 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37180 instead of grub_get_rtc().
37181 (grub_tsc_init): Initialize `tsc_boot_time'.
37182
37183 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37184 (grub_machine_init): Use grub_tsc_init() rather than
37185 installing an RTC-based handler via grub_install_get_time_ms().
37186
37187 * kern/i386/pit.c: New file.
37188 * include/grub/i386/pit.h: Likewise.
37189
9e7007b3 371902008-08-05 Bean <bean123ch@gmail.com>
37191
37192 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37193
37194 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37195 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37196 (pxe_mod_SOURCES): New macro.
37197 (pxe_mod_CFLAGS): Likewise.
37198 (pxe_mod_LDFLAGS): Likewise.
37199 (pxecmd_mod_SOURCES): Likewise.
37200 (pxecmd_mod_CFLAGS): Likewise.
37201 (pxecmd_mod_LDFLAGS): Likewise.
37202
37203 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37204 (grub_pxe_call): Likewise.
37205
37206 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37207
37208 * commands/i386/pc/pxecmd.c: New file.
37209
9f0234cb 37210 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 37211
37212 * include/grub/i386/pc/pxe.h: Likewise.
37213
6977d49f 372142008-08-05 Bean <bean123ch@gmail.com>
37215
37216 * util/console.c (grub_console_cur_color): New variable.
37217 (grub_console_standard_color): Likewise.
37218 (grub_console_normal_color): Likewise.
37219 (grub_console_highlight_color): Likewise.
37220 (color_map): Likewise.
37221 (use_color): Likewise.
37222 (NUM_COLORS): New macro.
37223 (grub_ncurses_setcolorstate): Handle color properly.
37224 (grub_ncurses_setcolor): Don't change color here, just remember the
37225 settings, color will be set in grub_ncurses_setcolorstate.
37226 (grub_ncurses_getcolor): New function.
37227 (grub_ncurses_init): Initialize color pairs.
37228 (grub_ncurses_term): New member grub_ncurses_getcolor.
37229
9c2ff3ee 372302008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 37231
9c2ff3ee 37232 High resolution timer support. Implemented for x86 CPUs using TSC.
37233 Extracted generic grub_millisleep() so it's linked in only as needed.
37234 This requires a Pentium compatible CPU; if the RDTSC instruction is
37235 not supported, then it falls back on the generic grub_get_time_ms()
37236 implementation that uses the machine's RTC.
37237
37238 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37239 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37240 `kern/generic/millisleep.c'.
37241
37242 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37243 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37244
37245 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37246 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37247
37248 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37249
37250 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37251 `kern/generic/millisleep.c'.
37252
37253 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37254
37255 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37256
37257 * kern/generic/rtc_get_time_ms.c: New file.
37258
37259 * kern/generic/millisleep.c: New file.
337f5a1e 37260
9c2ff3ee 37261 * kern/misc.c: Don't include
37262 <kern/time.h> anymore.
37263 (grub_millisleep_generic): Removed.
37264
37265 * commands/sleep.c (grub_interruptible_millisleep): Uses
37266 grub_get_time_ms() instead of grub_get_rtc().
37267
37268 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37269 function.
37270 (grub_cpu_is_cpuid_supported): New inline function.
37271 (grub_cpu_is_tsc_supported): New inline function.
37272 (grub_tsc_init): New function prototype.
37273 (grub_tsc_get_time_ms): New function prototype.
37274
37275 * kern/i386/tsc.c (grub_get_time_ms): New file.
37276
37277 * include/grub/time.h: Include <grub/types.h.
37278 (grub_millisleep_generic): Removed.
37279 (grub_get_time_ms): New prototype.
37280 (grub_install_get_time_ms): New prototype.
37281 (grub_rtc_get_time_ms): New prototype.
37282
37283 * kern/time.c (grub_get_time_ms): New function.
37284 (grub_install_get_time_ms): New function.
37285
37286 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37287 <grub/time.h> anymore.
37288 (grub_millisleep): Removed.
37289 (grub_machine_init): Call grub_tsc_init.
37290
37291 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37292 get_time_ms() implementation.
37293
37294 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37295 (ieee1275_get_time_ms): New function.
37296 (grub_machine_init): Install get_time_ms() implementation.
37297
37298 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37299 (grub_machine_init): Call grub_tsc_init().
37300 (grub_millisleep): Removed.
bf06a93f 37301
9c2ff3ee 37302 * kern/ieee1275/init.c (grub_millisleep): Removed.
37303 (grub_machine_init): Install ieee1275_get_time_ms()
37304 implementation.
37305 (ieee1275_get_time_ms): New function.
37306 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
37307 real work.
37308
9ec92aaf 373092008-08-05 Marco Gerards <marco@gnu.org>
37310
37311 * disk/ata.c: Include <grub/pci.h>.
37312 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
37313 (grub_ata_initialize): Rewritten.
37314 (grub_ata_device_initialize): New function.
37315
8d23f507 373162008-08-04 Pavel Roskin <proski@gnu.org>
37317
37318 * kern/main.c: Include grub/mm.h.
37319
5e15ee3d 373202008-08-04 Robert Millan <rmh@aybabtu.com>
37321
37322 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
37323 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
37324 corruption problem).
37325
a9053f8f 373262008-08-04 Robert Millan <rmh@aybabtu.com>
37327
37328 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
37329 warnings introduced in my last commit.
37330
dd19c7d7 373312008-08-03 Robert Millan <rmh@aybabtu.com>
37332
37333 Make PCI available on all i386 architectures.
37334
37335 * include/grub/i386/pc/pci.h: Move from here ...
37336 * include/grub/i386/pci.h: ... to here.
37337
37338 * include/grub/i386/pc/pci.h: Remove.
37339 * include/grub/i386/efi/pci.h: Remove.
37340 * include/grub/x86_64/efi/pci.h: Remove.
37341
37342 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
37343 `<grub/cpu/pci.h>'.
37344
37345 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
37346 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
37347 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
37348
37349 * conf/i386-ieee1275.rmk: Likewise.
37350
e14a6184 373512008-08-03 Robert Millan <rmh@aybabtu.com>
37352
37353 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
37354 (grub_console_setcursor): Make it possible to set cursor off.
37355
52768e37 373562008-08-03 Robert Millan <rmh@aybabtu.com>
37357
37358 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
37359 of modules instead of assuming which platform provides what.
37360 * util/update-grub.in: Likewise.
37361
2d52f57f 373622008-08-03 Robert Millan <rmh@aybabtu.com>
37363
37364 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
37365 instead of `grub_install_dos_part' to determine whether a drive needs
37366 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 37367 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 37368
2a5cd121 373692008-08-02 Robert Millan <rmh@aybabtu.com>
37370
37371 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
37372
93808428 373732008-08-02 Robert Millan <rmh@aybabtu.com>
37374
37375 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
37376 of informational grub_dprintf() calls.
37377
3bd0a12a 373782008-08-02 Robert Millan <rmh@aybabtu.com>
37379
37380 * disk/memdisk.c (memdisk_size): Don't initialize.
37381 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
37382
37383 * include/grub/i386/pc/kernel.h
37384 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
37385 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
37386 (grub_memdisk_image_size, grub_arch_memdisk_addr)
37387 (grub_arch_memdisk_size): Remove.
37388
37389 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
37390 field (was only used to transfer a constant). Add `type' field to
37391 support multiple module types.
37392 (grub_module_iterate): New function.
37393
37394 * kern/device.c (grub_device_open): Do not hide error messages
37395 when grub_disk_open() fails. Use grub_print_error() instead.
37396
37397 * kern/i386/pc/init.c (grub_arch_modules_addr)
37398 (grub_arch_memdisk_size): Remove functions.
37399 (grub_arch_modules_addr): Return the module address in high memory
37400 (now that it isn't copied anymore).
37401
37402 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
37403 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
37404 decompression routine (grub_total_module_size already includes that
37405 now). Don't copy modules back to low memory.
37406
37407 * kern/main.c: Include `<grub/mm.h>'.
37408 (grub_load_modules): Split out (and use) ...
37409 (grub_module_iterate): ... this function, which iterates through
37410 module objects and runs a hook.
37411 Comment out grub_mm_init_region() call, as it would cause non-ELF
37412 modules to be overwritten.
37413
37414 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
37415 the memdisk image in its own region, make it part of the module list.
37416 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
37417 (main): Parse --memdisk|-m option, and pass user-provided path as
37418 parameter to generate_image().
37419 (add_segments): Pass `memdisk_path' down to load_modules().
37420 (load_modules): Embed memdisk image in module section when requested.
37421 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
37422 `header.type' instead of `header.offset'.
37423
37424 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
37425 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
37426 (memdisk_mod_LDFLAGS): New variables.
37427 * conf/i386-coreboot.rmk: Likewise.
37428 * conf/i386-ieee1275.rmk: Likewise.
37429
a927cc73 374302008-08-02 Robert Millan <rmh@aybabtu.com>
37431
37432 * loader/i386/pc/multiboot.c (playground, forward_relocator)
37433 (backward_relocator): New variables. Used to allocate and relocate
37434 the payload, respectively.
37435 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 37436 address, install the appropriate relocator code in each bound of
a927cc73 37437 the payload, and set the entry point such that
37438 grub_multiboot_real_boot() will jump to one of them.
37439
37440 * kern/i386/loader.S (grub_multiboot_payload_size)
37441 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37442 (grub_multiboot_payload_entry_offset): New variables.
37443 (grub_multiboot_real_boot): Set cpu context to what the relocator
37444 expects, and jump to the relocator instead of the payload.
37445
37446 * include/grub/i386/loader.h (grub_multiboot_payload_size)
37447 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37448 (grub_multiboot_payload_entry_offset): Export.
37449
b15d8a0c 374502008-08-01 Bean <bean123ch@gmail.com>
37451
37452 * normal/menu_entry.c (editor_getline): Don't return the original
37453 string as result, as it will be released by lexer once it has done
37454 using it.
37455
cdfb3d22 374562008-08-01 Robert Millan <rmh@aybabtu.com>
37457
37458 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
37459 within menuentries, not before them.
37460 util/grub.d/10_hurd.in: Likewise.
37461
9175e93d 374622008-08-01 Bean <bean123ch@gmail.com>
37463
37464 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
37465 (bufio_mod_SOURCES): New macro.
37466 (bufio_mod_CFLAGS): Likewise.
37467 (bufio_mod_LDFLAGS): Likewise.
37468
37469 * include/grub/bufio.h: New file.
37470
37471 * io/bufio.c: Likewise.
37472
37473 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
37474 (grub_video_reader_png): Use grub_buffile_open to open file.
37475
37476 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
37477 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
37478
37479 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
37480 (grub_video_reader_tga): Use grub_buffile_open to open file.
37481
37482 * font/manager.c: Include <grub/bufio.h>.
37483 (add_font): Use grub_buffile_open to open file.
37484
3d8383e7 374852008-07-31 Robert Millan <rmh@aybabtu.com>
37486
37487 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
37488 ELF segments, use a macro for arbitrarily accessing any of them instead
37489 of preparing a pointer that allows access to one at a time.
37490 (grub_multiboot_load_elf64): Likewise.
37491
16e641b6 374922008-07-31 Bean <bean123ch@gmail.com>
37493
37494 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
37495 GRUB_KERNEL_MACHINE_DATA_END.
37496
59198b72 374972008-07-30 Robert Millan <rmh@aybabtu.com>
37498
37499 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
37500 Increase from 0x50 to 0x60.
37501 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
37502 use UUIDs to identify the root drive for them. If that's not
37503 possible, abort.
37504 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
37505 check, for cross-disk installs.
37506
ae88bca3 375072008-07-30 Robert Millan <rmh@aybabtu.com>
37508
37509 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
37510 is non-empty, use it to set the `prefix' environment variable instead
37511 of the usual approach.
37512 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
37513 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
37514 environment variable instead of dummy make_install_device().
37515
37516 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
37517 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 37518 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 37519
37520 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
37521 New variable reference.
37522 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
37523 New macro. Defines offset of `grub_prefix' within startup.S (relative
37524 to `start').
37525 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
37526 section within startup.S (relative to `start').
37527 * include/grub/i386/coreboot/kernel.h: Likewise.
37528
37529 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
37530 Overwrite grub_prefix with its contents, at the beginning of the
37531 first segment.
37532 (main): Understand -p|--prefix.
37533
14f41dd1 375342008-07-30 Robert Millan <rmh@aybabtu.com>
37535
37536 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
37537
4ca049a3 375382008-07-30 Robert Millan <rmh@aybabtu.com>
37539
37540 * term/i386/pc/vga_text.c (grub_console_cls): Use
37541 grub_console_gotoxy() to go back to beginning of the screen.
37542 Found by Patrick Georgi <patrick.georgi@coresystems.de>
37543
2921d337 375442008-07-29 Christian Franke <franke@computer.org>
37545
37546 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37547 Add conversion of emulated mount points on Cygwin.
37548
b609876d 375492008-07-29 Christian Franke <franke@computer.org>
37550
37551 * util/update-grub.in: Add a check for admin
37552 group on Cygwin.
37553 Remove old `grub.cfg.new' before creation.
37554 Add `-f' to `mv' to handle the different filesystem
37555 semantics of Windows.
37556
e93e4679 375572008-07-29 Bean <bean123ch@gmail.com>
37558
37559 * normal/main.c (get_line): Fix buffer overflow bug.
37560
41694fd0 375612008-07-28 Robert Millan <rmh@aybabtu.com>
37562
37563 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
37564 (struct grub_apple_header): New struct. Describes the layout of
37565 the partmap header.
37566 (apple_partition_map_iterate): Check the header magic as well as the
37567 partition magic (which was already being checked).
37568
cfd0b4e6 375692008-07-28 Pavel Roskin <proski@gnu.org>
37570
37571 * genmk.rb: Add a warning to the beginning of the output that
37572 it's a generated file and should not be edited.
37573
93cce016 375742008-07-28 Robert Millan <rmh@aybabtu.com>
37575
37576 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37577 with the same number are found, just use issue a warning with
37578 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 37579
cd1df915 375802008-07-27 Robert Millan <rmh@aybabtu.com>
37581
37582 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
37583 information.
37584
b70a8427 375852008-07-27 Bean <bean123ch@gmail.com>
37586
37587 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
37588 (grub_fat_find_dir): Ignore case when comparing filename.
37589
8f5e379f 375902008-07-27 Bean <bean123ch@gmail.com>
37591
37592 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
37593 smallino, as it's more descriptive, and i8count can be confused with
37594 the other field count.
37595 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
37596 inode type.
37597
a85cd5a0 375982008-07-27 Bean <bean123ch@gmail.com>
37599
37600 * commands/crc.c: New file.
37601
37602 * lib/crc.c: Likewise.
37603
37604 * include/grub/lib/crc.h: Likewise.
37605
37606 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
37607
37608 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
37609 (hexdump): Move this function to ...
37610
37611 * lib/hexdump.c: ... here.
37612
37613 * include/grub/hexdump.h: Renamed to ...
37614
37615 * include/grub/lib/hexdump.h: ... this.
37616
37617 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
37618
37619 * util/grub-editenv.c: Likewise.
37620
37621 * include/envblk.h: Renamed to ...
37622
37623 * include/lib/envblk.h: ... this.
37624
37625 * util/envblk.c: Renamed to ...
37626
37627 * lib/envblk.c: ... this.
37628
37629 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
37630 lib/hexdump.c.
37631 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
37632 (pkglib_MODULES): Add crc.mod.
37633 (hexdump_mod_SOURCES): Add lib/hexdump.c.
37634 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
37635 (crc_mod_SOURCES): New macro.
37636 (crc_mod_CFLAGS): Likewise.
37637 (crc_mod_LDFLAGS): Likewise.
37638
37639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
37640
37641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37642
37643 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37644
37645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37646
37647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37648
c298def0 376492008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 37650
37651 * commands/help.c: Include <grub/term.h>.
37652 (TERM_WIDTH): Removed. Updated all users.
37653
cc349fb3 376542008-07-27 Pavel Roskin <proski@gnu.org>
37655
37656 * util/getroot.c (find_root_device): Rephrase a comment to avoid
37657 spurious warnings about a comment within a comment.
37658
9051607e 376592008-07-25 Robert Millan <rmh@aybabtu.com>
37660
37661 * util/getroot.c (find_root_device): Skip devices that match
37662 /dev/dm-[0-9]. This lets the real device be found for any type of
37663 abstraction (LVM, EVMS, RAID..).
37664 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
37665 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
37666 device is found first, find_root_device() will now skip it.
37667
01453bfc 376682008-07-24 Pavel Roskin <proski@gnu.org>
37669
37670 * include/grub/types.h: Use __builtin_bswap32() and
37671 __builtin_bswap64() with gcc 4.3 and newer.
37672
6af9849f 376732008-07-24 Christian Franke <franke@computer.org>
37674
3a0fa256 37675 * util/i386/pc/grub-install.in: If `--debug' is specified,
37676 pass `--verbose' to grub-setup.
37677 Abort script if make_system_path_relative_to_its_root() fails.
37678
7810e747 376792008-07-24 Bean <bean123ch@gmail.com>
37680
37681 * configure.ac: Fixed a bug caused by the previous cygwin patch,
37682 variable `target_platform' should be `platform'.
37683
42290e17 376842008-07-24 Bean <bean123ch@gmail.com>
37685
51cc5193 37686 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 37687 (grub_png_init_fixed_block): New function.
37688 (grub_png_decode_image_data): Handle fixed huffman code compression.
37689
2a8a80e4 376902008-07-24 Bean <bean123ch@gmail.com>
37691
37692 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
37693 (grub_pe2elf_SOURCES): New macro.
37694 (CLEANFILES): Add grub-pe2elf.
37695
37696 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
37697 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
37698 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
37699 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
37700 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
37701 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
37702 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
37703 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
37704 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
37705 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
37706 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
37707 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
37708 (GRUB_PE32_DT_FUNCTION): Likewise.
37709 (GRUB_PE32_REL_I386_DIR32): Likewise.
37710 (GRUB_PE32_REL_I386_REL32): Likewise.
37711 (grub_pe32_symbol): New structure.
37712 (grub_pe32_reloc): Likewise.
37713
37714 * util/grub-pe2elf.c: New file.
37715
37716 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
37717 start symbol in non pc platform.
37718
37719 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
37720
37721 The following patches are from Christian Franke.
37722
37723 * include/grub/dl.h: Remove .previous, gas supports this only
37724 for ELF format.
37725
37726 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
37727 Remove .type, gas supports this only for ELF format.
37728
37729 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
37730 nullbytes in symbol table. This fixes an infinite loop if table is
37731 zero filled.
37732
37733 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
37734 TARGET_IMG_LDFLAGS and EXEEXT.
37735
37736 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
37737 TARGET_IMG_LDFLAGS_AC.
37738 (grub_CHECK_STACK_ARG_PROBE): New function.
37739
37740 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
37741
37742 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
37743
37744 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
37745 to set TARGET_IMG_LD* accordingly.
37746 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
37747 Add call to grub_CHECK_STACK_ARG_PROBE.
37748 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
37749
37750 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
37751
37752 * genmk.rb: Add EXEEXT to CLEANFILES.
37753
12ccdb75 377542008-07-23 Robert Millan <rmh@aybabtu.com>
37755
37756 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
37757 define the codes for arrows and lines used for the menu).
37758 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
37759 as well.
37760
37761 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
37762 fonts, because the latter are too slow.
37763
18eeaf04 377642008-07-21 Bean <bean123ch@gmail.com>
37765
37766 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
37767 a20. Run keyboard test last, as it will cause macbook to halt.
37768
b095e2ad 377692008-07-18 Pavel Roskin <proski@gnu.org>
37770
37771 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
37772 load foreign architecture modules correctly anyway. Keep
37773 support for loading host architecture modules, whether we
37774 compile them or not.
37775
737feb35 377762008-07-17 Pavel Roskin <proski@gnu.org>
37777
3f4ce737 37778 * configure.ac: Use -m32 or -m64 regardless of whether we had to
37779 change target_cpu. The compiler default can mismatch target_cpu
37780 in any case.
37781
4ad2d049 37782 * disk/efi/efidisk.c: Fix format warnings on x86_64.
37783 * kern/efi/efi.c: Likewise.
37784
f6130a12 37785 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
37786 target compiler is functional.
37787 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
37788 are set up.
37789
58393a2d 37790 * configure.ac: Default to efi platform for x86_64-apple. Allow
37791 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
37792 adjustments from the rest, only do them if target is not
37793 explicitly given. Merge other adjustments with the final sanity
37794 check. Remove an extraneous check for supported CPU. Be
37795 specific which CPU and which platform is not supported.
37796
737feb35 37797 * configure.ac: Default to pc platform for x86_64.
37798
546f966a 377992008-07-17 Robert Millan <rmh@aybabtu.com>
37800
37801 Partial LinuxBIOS -> Coreboot rename.
37802
37803 * conf/i386-linuxbios.rmk: Renamed to ...
37804 * conf/i386-coreboot.rmk: ... this.
37805 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
37806 * configure.ac: Accept "coreboot" as input platform (but maintain
37807 compatibility with "linuxbios").
37808 * include/grub/i386/linuxbios: Renamed to ...
37809 * include/grub/i386/coreboot: ... this.
37810
20011694 378112008-07-17 Bean <bean123ch@gmail.com>
37812
37813 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 37814 (appleldr_mod_SOURCE): New variable.
20011694 37815 (appleldr_mod_CFLAGS): Likewise.
37816 (appleldr_mod_LDFLAGS): Likewise.
37817 (pci_mod_SOURCES): Likewise.
37818 (pci_mod_CFLAGS): Likewise.
37819 (pci_mod_LDFLAGS): Likewise.
37820 (lspci_mod_SOURCES): Likewise.
37821 (lspci_mod_CFLAGS): Likewise.
37822 (lspci_mod_LDFLAGS): Likewise.
37823
37824 * conf/x86_64-efi.rmk: New file.
37825
37826 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37827 macro.
37828 (grub_efidisk_write): Likewise.
37829
37830 * include/efi/api.h (efi_call_0): New macro.
37831 (efi_call_1): Likewise.
37832 (efi_call_2): Likewise.
37833 (efi_call_3): Likewise.
37834 (efi_call_4): Likewise.
37835 (efi_call_5): Likewise.
37836 (efi_call_6): Likewise.
37837
37838 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37839 grub_rescue_cmd_chainloader.
37840
37841 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37842 (grub_pe32_optional_header): Change some fields based on i386 or
37843 x86_64 platform.
37844 (GRUB_PE32_PE32_MAGIC): Likewise.
37845
37846 * include/grub/efi/uga_draw.h: New file.
37847
37848 * include/grub/elf.h (STN_ABS): New constant.
37849 (R_X86_64_NONE): Relocation constant for x86_64.
37850 (R_X86_64_64): Likewise.
37851 (R_X86_64_PC32): Likewise.
37852 (R_X86_64_GOT32): Likewise.
37853 (R_X86_64_PLT32): Likewise.
37854 (R_X86_64_COPY): Likewise.
37855 (R_X86_64_GLOB_DAT): Likewise.
37856 (R_X86_64_JUMP_SLOT): Likewise.
37857 (R_X86_64_RELATIVE): Likewise.
37858 (R_X86_64_GOTPCREL): Likewise.
37859 (R_X86_64_32): Likewise.
37860 (R_X86_64_32S): Likewise.
37861 (R_X86_64_16): Likewise.
37862 (R_X86_64_PC16): Likewise.
37863 (R_X86_64_8): Likewise.
37864 (R_X86_64_PC8): Likewise.
37865
37866 * include/grub/i386/efi/pci.h: New file.
37867
37868 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
37869 Change it value based on platform.
37870 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
37871 (GRUB_E820_RAM): Likewise.
37872 (GRUB_E820_RESERVED): Likewise.
37873 (GRUB_E820_ACPI): Likewise.
37874 (GRUB_E820_NVS): Likewise.
37875 (GRUB_E820_EXEC_CODE): Likewise.
37876 (GRUB_E820_MAX_ENTRY): Likewise.
37877 (grub_e820_mmap): New structure.
37878 (linux_kernel_header): Change the efi field according to different
37879 kernel version, also field from linux_kernel_header.
37880
37881 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37882
37883 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37884 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37885 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37886 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37887 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37888 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37889 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37890 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37891 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37892 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37893
37894 * include/grub/x86_64/efi/kernel.h: New file.
37895
37896 * include/grub/x86_64/efi/loader.h: Likewise.
37897
37898 * include/grub/x86_64/efi/machine.h: Likewise.
37899
37900 * include/grub/x86_64/efi/pci.h: Likewise.
37901
37902 * include/grub/x86_64/efi/time.h: Likewise.
37903
37904 * include/grub/x86_64/linux.h: Likewise.
37905
37906 * include/grub/x86_64/setjmp.h: Likewise.
37907
37908 * include/grub/x86_64/time.h: Likewise.
37909
37910 * include/grub/x86_64/types.h: Likewise.
37911
37912 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37913 GRUB_TARGET_SIZEOF_VOID_P.
37914
37915 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37916 (grub_efi_locate_handle): Likewise.
37917 (grub_efi_open_protocol): Likewise.
37918 (grub_efi_set_text_mode): Likewise.
37919 (grub_efi_stall): Likewise.
37920 (grub_exit): Likewise.
37921 (grub_reboot): Likewise.
37922 (grub_halt): Likewise.
37923 (grub_efi_exit_boot_services): Likewise.
37924 (grub_get_rtc): Likewise.
37925
37926 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37927 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37928 (grub_efi_allocate_pages): Wrap efi calls.
37929 (grub_efi_free_pages): Wrap efi calls.
37930 (grub_efi_get_memory_map): Wrap efi calls.
37931
37932 * kern/x86_64/dl.c: New file.
37933
37934 * kern/x86_64/efi/callwrap.S: Likewise.
37935
37936 * kern/x86_64/efi/startup.S: Likewise.
37937
37938 * loader/efi/appleloader.c: Likewise.
37939
37940 * loader/efi/chainloader.c (cmdline): New variable.
37941 (grub_chainloader_unload): Wrap efi calls.
37942 (grub_chainloader_boot): Likewise.
37943 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37944 command line.
37945
37946 * loader/efi/chainloader_normal.c (chainloader_command):
37947 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37948 command line.
37949
37950 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37951 method.
37952 (grub_e820_add_region): New function.
37953 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37954 booting.
37955 (grub_find_video_card): New function.
37956 (grub_linux_setup_video): New function.
37957 (grub_rescue_cmd_linux): Probe for video information.
37958
37959 * normal/x86_64/setjmp.S: New file.
37960
37961 * term/efi/console.c (map_char): New function.
37962 (grub_console_putchar): Map unicode char.
37963 (grub_console_checkkey): Wrap efi calls.
37964 (grub_console_getkey): Likewise.
37965 (grub_console_getwh): Likewise.
37966 (grub_console_gotoxy): Likewise.
37967 (grub_console_cls): Likewise.
37968 (grub_console_setcolorstate): Likewise.
37969 (grub_console_setcursor): Likewise.
37970
37971 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37972
59652a20 379732008-07-16 Pavel Roskin <proski@gnu.org>
37974
ef294055 37975 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37976 format strings.
37977
59652a20 37978 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37979 pointer, not an integer. This fixes a warning and prevents
37980 precision loss on 64-bit systems.
37981 (relocate_addresses): Remove unneeded cast.
37982
afc3b5d7 379832008-07-15 Pavel Roskin <proski@gnu.org>
37984
506b2b3e 37985 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37986
62ead89c 37987 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37988
c4cd51d7 37989 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37990 Fix comparison between signed and unsigned.
37991
0d3d8f28 37992 * include/grub/i386/ieee1275/console.h: Declare
37993 grub_console_init() and grub_console_fini().
37994
8804b286 37995 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37996 It's empty and unused.
37997
ee01cf35 37998 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37999 beginning to avoid warnings with some compilers.
38000
afc3b5d7 38001 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
38002 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
38003
e4e8eaa5 380042008-07-14 Pavel Roskin <proski@gnu.org>
38005
407aceb4 38006 * kern/env.c (grub_register_variable_hook): Don't copy empty
38007 string, it leaks memory. Pass "" to grub_env_set(), it should
38008 handle constant strings.
38009
e4e8eaa5 38010 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
38011 * commands/cmp.c (grub_cmd_cmp): Likewise.
38012 * kern/dl.c (grub_dl_flush_cache): Likewise.
38013 (grub_dl_load_core): Likewise.
38014 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
38015 (grub_elf64_load_phdrs): Likewise.
38016
d4e2dad3 380172008-07-13 Pavel Roskin <proski@gnu.org>
38018
38019 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38020 between signed and unsigned.
38021 (LzmaEnc_Finish): Fix warning about an unused parameter.
38022
aa24b516 380232008-07-13 Bean <bean123ch@gmail.com>
38024
38025 * Makefile.in (enable_lzo): New rule.
38026
38027 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38028
38029 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38030
38031 * boot/i386/pc/lnxboot.S: #include <config.h>.
38032
38033 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 38034 its value according to the compression algorithm used, lzo or lzma.
aa24b516 38035
38036 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38037 compression algorithm according to configure macro.
38038
38039 * kern/i386/pc/startup.S (codestart): Likewise.
38040
38041 * kern/i386/pc/lzma_decode.S: New file.
38042
38043 * include/grub/lib/LzFind.h: Likewise.
38044
38045 * include/grub/lib/LzHash.h: Likewise.
38046
38047 * include/grub/lib/LzmaDec.h: Likewise.
38048
38049 * include/grub/lib/LzmaEnc.h: Likewise.
38050
38051 * include/grub/lib/LzmaTypes.h: Likewise.
38052
38053 * lib/LzFind.c: Likewise.
38054
38055 * lib/LzmaDec.c: Likewise.
38056
38057 * lib/LzmaEnc.c: Likewise.
38058
4ae821ac 380592008-07-13 Bean <bean123ch@gmail.com>
38060
38061 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38062 (grub_ext4_extent_header): New structure.
38063 (grub_ext4_extent): Likewise.
38064 (grub_ext4_extent_idx): Likewise.
38065 (grub_ext4_find_leaf): New function.
38066 (grub_ext2_read_block): Handle extents.
38067
9a745147 380682008-07-12 Robert Millan <rmh@aybabtu.com>
38069
38070 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38071
d49a4cf6 380722008-07-11 Robert Millan <rmh@aybabtu.com>
38073
38074 * util/grub.d/40_custom.in: New file. Example on how to add custom
38075 entries to /etc/grub.d.
38076 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38077 40_custom (implicitly, by merging all the grub.d rules).
38078
947414b4 380792008-07-11 Pavel Roskin <proski@gnu.org>
38080
0059cf6f 38081 * commands/read.c (grub_getline): Fix invalid memory access.
38082 Don't add newline to the variable value.
38083
947414b4 38084 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38085 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38086 (serial_hw_get_port): Check validity of the port number.
38087 (grub_cmd_serial): Check return value of serial_hw_get_port().
38088
62a02d00 380892008-07-07 Pavel Roskin <proski@gnu.org>
38090
38091 * boot/i386/pc/diskboot.S (notification_string): Replace
38092 "Loading kernel" with just "loading". This is shorter, less
38093 confusing and saves a few bytes for possible future changes.
38094
3e5581b0 380952008-07-05 Pavel Roskin <proski@gnu.org>
38096
ea387a48 38097 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38098 size for ATAPI devices, they are undefined. Output sector
38099 number in decimal form.
38100
3e5581b0 38101 * disk/ata.c: Use named constants for status bits.
38102
fdecb8fd 381032008-07-04 Pavel Roskin <proski@gnu.org>
38104
bcd35b90 38105 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38106 grub_addr_t before casting it to the void pointer to fix a
38107 warning. Non-addressable regions are discarded earlier.
38108 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38109 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38110 (check_signature): Don't shadow table_header.
38111 (grub_linuxbios_table_iterate): Cast numeric constants to
38112 grub_linuxbios_table_header_t.
38113 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38114 grub_stop().
38115
af58ab3d 38116 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38117 prevent warnings.
38118
1759aa57 38119 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38120 pointer, which can cause warnings. Support 64-bit addresses.
38121
fdecb8fd 38122 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38123 of sizeof(long). This fixes PowerPC image generation on x86_64.
38124
8516d2a8 381252008-07-04 Robert Millan <rmh@aybabtu.com>
38126
38127 This fixes a performance issue when pc & gpt partmap iterators
38128 didn't abort iteration even after our hook found what it was
fe987087 38129 looking for (often causing expensive probes of non-existent drives).
8516d2a8 38130
38131 Some callers relied on previous buggy behaviour, since they would
34c44600 38132 raise an error when their own hooks caused early abortion of its
8516d2a8 38133 iteration.
38134
38135 * kern/device.c (grub_device_open): Improve error message.
38136 * disk/lvm.c (grub_lvm_open): Likewise.
38137 * disk/raid.c (grub_raid_open): Likewise.
38138
38139 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38140 when hook requests it, independently of grub_errno.
38141 (pc_partition_map_probe): Do not fail when find_func() caused
38142 early abortion of pc_partition_map_iterate().
38143
38144 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38145 when hook requests it, independently of grub_errno.
38146 (gpt_partition_map_probe): Do not fail when find_func() caused
38147 early abortion of gpt_partition_map_iterate().
38148
38149 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38150 when hook requests it, independently of grub_errno. Do not fail when
38151 part_map_iterate_hook() caused early abortion of p->iterate().
38152
38153 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38154 when grub_partition_iterate() returned with non-zero.
38155
277d0de9 381562008-07-03 Pavel Roskin <proski@gnu.org>
38157
38158 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38159 like we do in grub_ata_pio_read().
38160 (grub_ata_readwrite): Always write individual sectors. Fix the
38161 sector count for the remainder.
38162 (grub_ata_write): Enable writing to ATA devices. Correctly
38163 report error for ATAPI devices.
38164
d4c9b428 381652008-07-02 Pavel Roskin <proski@gnu.org>
38166
e43fc690 38167 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38168 warning.
38169
f707af42 38170 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38171 for every read sector, we already increment it for the whole
38172 batch. This fixes reading more than 256 sectors at once.
38173
11e16b15 38174 * util/grub-editenv.c (cmd_info): Cast argument to long
38175 explicitly. ptrdiff_t reduces to int on i386.
38176
cbabfdd4 38177 * util/grub-editenv.c (main): Be specific which parameter is
38178 missing.
38179
b8fbce0a 38180 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38181 (memdisk): Make memdisk_orig_addr a pointer.
38182
c9c8e606 38183 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38184 for file offsets, use grub_off_t instead. Fix printf format
38185 warnings.
38186
ca62e598 38187 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38188 there. Real unexpected warnings should not drown in the noise
38189 about known problems.
38190
ce8d1766 38191 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38192 grub_disk_addr_t for memory addresses.
38193
00c7a56a 38194 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38195 explicitly to fix a warning.
38196
08d3ef09 38197 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38198
cb71ba20 38199 * Makefile.in (MODULE_LDFLAGS): New variable.
38200 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38201 the linker accepts --build-id=none.
38202 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38203 MODULE_LDFLAGS.
38204 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38205
d4c9b428 38206 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38207 those in Linux XFS code. Provide a way to access 64-bit parent
38208 inode.
38209 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38210 the end of struct grub_xfs_dir_header.
38211
d4156eee 382122008-07-02 Bean <bean123ch@gmail.com>
38213
38214 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38215 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38216 and GRUB_IEEE1275_FLAG_NO_ANSI.
38217
38218 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38219 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38220 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38221
38222 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38223 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38224
38225 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38226 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38227
38228 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38229 esc sequence on non ANSI terminal.
38230 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38231
38232 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38233 beginning of file.
38234
2270f77b 382352008-07-02 Bean <bean123ch@gmail.com>
38236
38237 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38238 (grub_editenv_SOURCES): New variable.
38239 (pkglib_MODULES): Add loadenv.mod.
38240 (loadenv_mod_SOURCES): New variable.
38241 (loadenv_mod_CFLAGS): Likewise.
38242 (loadenv_mod_LDFLAGS): Likewise.
38243
38244 * include/grub/envblk.h: New file.
38245
38246 * util/envblk.c: New file.
38247
38248 * util/grub-editenv.c: New file.
38249
38250 * commands/loadenv.c: New file.
38251
0e9e51ec 382522008-07-01 Pavel Roskin <proski@gnu.org>
38253
d89b7634 38254 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38255 not unsigned char. This fixes warnings and is consistent with
38256 other tags.
38257
bf1835b1 38258 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38259
8222a04b 38260 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38261
6a42d99d 38262 * term/tparm.c (analyze): Always set *popcount.
38263
10b159d1 38264 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38265 cast to fix a warning.
38266
b8789f6c 38267 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38268 cast to suppress a warning.
38269
29d7e38a 38270 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38271 grub_fshelp_read_file() expects.
38272
f341f669 38273 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38274 write uuid as a 32-bit value in CPU byte order, so declare and
38275 use it as such.
38276
0e9e51ec 38277 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38278 long if the format specifier expects it.
38279 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38280 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38281 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38282 long to fix a warning.
38283 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38284 grub_dprintf() arguments to fix warnings.
38285
3aefa857 382862008-06-30 Pavel Roskin <proski@gnu.org>
38287
56c7668b 38288 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38289 install_bsd_part immediately before core.img is embedded or
38290 modified on disk. This fixes core.img verification if core.img
38291 cannot be embedded.
38292
3aefa857 38293 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38294 core_path to calculate the blocklist.
38295 Patch from Javier Martín <lordhabbit@gmail.com>
38296
5444088d 382972008-06-29 Robert Millan <rmh@aybabtu.com>
38298
38299 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38300 block to disk block.
38301 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38302 Patch from Niels Böhm <bitbucket@arcor.de>
38303
674835c8 383042008-06-29 Robert Millan <rmh@aybabtu.com>
38305
38306 * util/update-grub_lib.in (font_path): Search for fonts in
38307 /boot/grub first, which is more likely to be readable (we aren't
38308 deciding where fonts live, just looking for them).
38309
f527dbc8 383102008-06-26 Pavel Roskin <proski@gnu.org>
38311
6c2d8df6 38312 * util/biosdisk.c (read_device_map): Don't leave dead map
38313 entries for devices failing stat() check.
38314
f527dbc8 38315 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
38316 core_path_dev for the core.img path on the target device.
38317
aebe3d13 383182008-06-26 Robert Millan <rmh@aybabtu.com>
38319
38320 * disk/fs_uuid.c: New file.
38321 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
38322 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
38323 (fs_uuid_mod_LDFLAGS): New variables.
38324 * include/grub/disk.h (grub_disk_dev_id): Add
38325 `GRUB_DISK_DEVICE_UUID_ID'.
38326 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
38327 implement iterate().
38328
37aaf354 383292008-06-26 Robert Millan <rmh@aybabtu.com>
38330
38331 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
38332 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
38333 Linux image includes no initrd.
38334
25ff262a 383352008-06-21 Javier Martín <lordhabbit@gmail.com>
38336
38337 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
38338 call to resolve the core image location that effectively appended the
38339 name twice.
38340
76a2bd44 383412008-06-21 Robert Millan <rmh@aybabtu.com>
38342
38343 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
38344 call from here ...
38345
38346 * util/grub.d/10_hurd.in: ... to here ...
38347 * util/grub.d/10_linux.in: ... and here.
38348
650e1c79 383492008-06-19 Robert Millan <rmh@aybabtu.com>
38350
fe987087 38351 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 38352 after it has been set by grub_machine_set_prefix().
38353
6ce63911 383542008-06-19 Robert Millan <rmh@aybabtu.com>
38355
38356 * commands/search.c (search_label, search_fs_uuid, search_file): Print
38357 search result when not saving to variable, not the other way around.
38358 When saving to variable, abort iteration as soon as a match is found.
38359
73940cec 383602008-06-19 Robert Millan <rmh@aybabtu.com>
38361
38362 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
38363 check for partition that provides /boot/grub. Its logic is flawed,
38364 as it prevents prepare_grub_to_access_device() from being called
38365 multiple times.
38366
3c62a39d 383672008-06-19 Robert Millan <rmh@aybabtu.com>
38368
38369 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
38370 "insmod" command directly when abstraction modules are needed,
fe987087 38371 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 38372 since it had already been processed).
38373
47395a42 383742008-06-19 Pavel Roskin <proski@gnu.org>
38375
38376 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
38377 changed. This is needed in case GRUB_LIBDIR changes.
38378 * conf/i386-ieee1275.rmk: Likewise.
38379 * conf/i386-linuxbios.rmk: Likewise.
38380 * conf/i386-pc.rmk: Likewise.
38381 * conf/powerpc-ieee1275.rmk: Likewise.
38382
a145ac2d 383832008-06-18 Pavel Roskin <proski@gnu.org>
38384
38385 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
38386 kernel_elf_symlist.c to symlist.c for consistency with other
38387 architectures. Update all users.
38388 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38389
7847c51e 383902008-06-18 Robert Millan <rmh@aybabtu.com>
38391
38392 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
38393 it in prefix.
38394
38395 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
38396 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
38397 a RAID device, run setup() for all members independently on whether
38398 LVM abstraction is being used.
38399 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
38400 If grub-mkimage has set `*install_dos_part == -2', don't override this
38401 value.
38402 Perform *install_dos_part adjustments independently on whether
38403 we're embedding or not.
38404 Clarify error message when image is too big for embedding.
38405 Remove duplicate *install_dos_part stanza.
38406
b23e5644 384072008-06-17 Robert Millan <rmh@aybabtu.com>
38408
38409 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
38410 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
38411 variables.
38412 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
38413 values in grub_ofconsole_normal_color and
38414 grub_ofconsole_highlight_color (they're not directly related to
38415 background and foreground).
38416 (grub_ofconsole_setcolorstate): Extract background and foreground
38417 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
38418
0aac2f79 384192008-06-17 Robert Millan <rmh@aybabtu.com>
38420
38421 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
38422 /boot/grub for the check in last commit, not /boot (they could be
38423 different partitions).
38424
3cca7ef3 384252008-06-16 Robert Millan <rmh@aybabtu.com>
38426
38427 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
38428 asked to setup access for the same partition that provides /boot,
38429 don't bother using UUIDs since our root already has the value we
38430 want.
38431
347396d8 384322008-06-16 Robert Millan <rmh@aybabtu.com>
38433
38434 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
38435 I2O devices.
38436 Patch from Sven Mueller <sven@debian.org>.
38437
991477f8 384382008-06-16 Robert Millan <rmh@aybabtu.com>
38439
38440 * util/update-grub.in: Check for $EUID instead of $UID.
38441 Reported by Vincent Zweije.
38442
d31a32a1 384432008-06-16 Bean <bean123ch@gmail.com>
38444
fe987087 38445 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 38446 (grub_ext2_read_block): Likewise.
38447 (grub_ext2_read_inode): Likewise.
38448 (grub_ext2_mount): Likewise.
38449 (grub_ext2_close): Likewise.
38450 (grub_ext3_get_journal): Removed.
38451
fe987087 38452 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 38453 (grub_reiserfs_read_symlink): Likewise.
38454 (grub_reiserfs_mount): Likewise.
38455 (grub_reiserfs_open): Likewise.
38456 (grub_reiserfs_read): Likewise.
38457 (grub_reiserfs_close): Likewise.
38458 (grub_reiserfs_get_journal): Removed.
38459
38460 * fs/fshelp.c (grub_fshelp_read): Removed.
38461 (grub_fshelp_map_block): Likewise.
38462
38463 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
38464 (grub_fshelp_journal): Likewise.
38465 (grub_fshelp_read): Likewise.
38466 (grub_fshelp_map_block): Likewise.
38467
3540a760 384682008-06-16 Pavel Roskin <proski@gnu.org>
38469
38470 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
38471 floating point anymore.
38472 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
38473
95614c84 384742008-06-15 Pavel Roskin <proski@gnu.org>
38475
38476 * commands/ls.c (grub_ls_list_files): Use integer calculations
38477 for human readable format, avoid floating point use.
38478 * kern/misc.c (grub_ftoa): Remove.
38479 (grub_vsprintf): Remove floating point support.
38480
50465dd6 384812008-06-15 Robert Millan <rmh@aybabtu.com>
38482
fe6b695a 38483 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 38484 devices.
38485 Reported by Max Vozeler.
38486
a9207284 384872008-06-15 Robert Millan <rmh@aybabtu.com>
38488
38489 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
38490 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
38491 skipped later.
38492 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
38493 the beginning of the prefix.
38494
38495 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
38496 It is assumed that if we have a memdisk, grub-mkimage has set
38497 grub_prefix to include the "(memdisk)" drive in it.
38498
a7cbd45a 384992008-06-15 Robert Millan <rmh@aybabtu.com>
38500
38501 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
38502 Initialize keyboard controller after registering the terminal, so that
38503 grub_printf() can be called from grub_keyboard_controller_init().
38504
21cf716a 385052008-06-15 Robert Millan <rmh@aybabtu.com>
38506
38507 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
38508 extent-btree which is written as big endian on disk.
38509 Reported by Alain Greppin <al@chilibi.org>.
38510
23a64d8e 385112008-06-14 Robert Millan <rmh@aybabtu.com>
38512
38513 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
38514 * util/i386/pc/grub-install.in (modules): Likewise.
38515
d687651c 385162008-06-13 Pavel Roskin <proski@gnu.org>
38517
38518 * commands/ls.c (grub_ls_list_files): Fix format warnings.
38519
dfe9ddd4 385202008-06-13 Bean <bean123ch@gmail.com>
38521
38522 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
38523
38524 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
38525
38526 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
38527 to indicate sparse block.
38528
16ae7781 385292008-06-12 Pavel Roskin <proski@gnu.org>
38530
e6d1a308 38531 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
38532 number, grub_fshelp_read() does it for us.
38533
16ae7781 38534 * fs/fshelp.c (grub_fshelp_read): New function. Implement
38535 linear disk read with journal translation.
38536 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
38537 * include/grub/fshelp.h: Declare grub_fshelp_read().
38538
40fd3a2b 385392008-06-09 Pavel Roskin <proski@gnu.org>
38540
38541 * fs/minix.c (grub_minix_mount): Handle error reading
38542 superblock.
38543
f5679726 385442008-06-08 Robert Millan <rmh@aybabtu.com>
38545
38546 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
38547 don't append the RAID prefix afterwards.
38548 Reported by Clint Adams.
38549
ce525529 385502008-06-08 Robert Millan <rmh@aybabtu.com>
38551
38552 Based on description from Pavel:
38553 * kern/disk.c (grub_disk_check_range): Rename to ...
38554 (grub_disk_adjust_range): ... this. Add a comment explaining the
38555 tasks performed by this function.
38556
ad4936a0 385572008-06-08 Robert Millan <rmh@aybabtu.com>
38558
38559 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
38560 `num_serial' (for consistency with other variables).
38561 (struct grub_ntfs_data): Add `uuid' member.
38562 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
38563 (grub_ntfs_uuid): New function.
38564 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
38565
dc20b0f9 385662008-06-07 Pavel Roskin <proski@gnu.org>
38567
38568 * util/biosdisk.c (open_device): Revert last change to the
38569 function, it broke installation. The sector needs to be
38570 different dependent on which device is opened.
38571
c5e3cfba 385722008-06-06 Robert Millan <rmh@aybabtu.com>
38573
38574 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
38575 rest of GRUB, and breakage doesn't happen if its value were modified.
38576
38577 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38578 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
38579 a constant (same value).
38580 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
38581 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
38582
26a1f8c4 385832008-06-06 Robert Millan <rmh@aybabtu.com>
38584
38585 * util/biosdisk.c (open_device): Do not modify sector offset when
38586 accessing a partition. kern/disk.c already handles this for us.
38587
25d6b327 385882008-06-06 Robert Millan <rmh@aybabtu.com>
38589
38590 * util/grub-emu.c (grub_machine_init): Move code in this function from
38591 here ...
38592 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
38593 segfault in case grub_printf() is called).
38594
38595 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
38596 grub_probe. Update all users not to explicitly add it again.
38597 (grub_device): New variable; contains corresponding device for grubdir.
38598 (fs_module, partmap_module, devabstraction_module): Pass
38599 `--device ${grub_device}' to grub_probe to avoid traversing /dev
38600 every time.
38601
9ece62fb 386022008-06-05 Robert Millan <rmh@aybabtu.com>
38603
38604 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
38605 is found, print it (same layout as with labels).
38606
1ad36d37 386072008-06-04 Robert Millan <rmh@aybabtu.com>
38608
38609 * util/biosdisk.c (get_drive): Rename to ...
38610 (find_grub_drive): ... this. Update all users.
38611
38612 (get_os_disk): Rename to ...
38613 (convert_system_partition_to_system_disk): ... this. Update all users.
38614
38615 (find_drive): Rename to ...
38616 (find_system_device): ... this. Update all users.
38617
e6a30859 386182008-06-04 Robert Millan <rmh@aybabtu.com>
38619
38620 * util/biosdisk.c (get_os_disk): Handle IDA devices.
38621 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38622 (make_device_map): Likewise.
38623
00c108a4 386242008-06-01 Robert Millan <rmh@aybabtu.com>
38625
38626 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
38627 before dereferencing it.
38628
38629 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
38630 union with fat12/fat16-specific ones. Add some new fields, including
38631 `num_serial' for both versions.
38632 (struct grub_fat_data): Add `uuid' member.
38633 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
38634 names. Initialize `data->uuid' using `num_serial'.
38635 (grub_fat_uuid): New function.
38636 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
38637
38638 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
38639 (grub_reiserfs_uuid): New function.
38640 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
38641 member.
38642
38643 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
38644 (grub_xfs_uuid): New function.
38645 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
38646
1385c5bb 386472008-06-01 Robert Millan <rmh@aybabtu.com>
38648
38649 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
38650 code that is backward compatible with pre-uuid search command.
38651
c682dfd7 386522008-05-31 Robert Millan <rmh@aybabtu.com>
38653
38654 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
38655 floppies after everything else, to ensure floppy drive isn't accessed
38656 unnecessarily (patch from Bean).
38657
b7db5d47 386582008-05-31 Robert Millan <rmh@aybabtu.com>
38659
38660 * commands/search.c (search_label, search_fs_uuid, search_file): Do
38661 not print device names when we were asked to set a variable.
38662
6e037aa9 386632008-05-31 Robert Millan <rmh@aybabtu.com>
38664
38665 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
38666 using "cursor-on" and "cursor-off" commands (understood at least by
38667 the Open Firmware flavour on OLPC).
38668
41305bc8 386692008-05-31 Michael Gorven <michael@gorven.za.net>
38670
38671 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
38672 on and off sequences.
38673
69ba137e 386742008-05-31 Robert Millan <rmh@aybabtu.com>
38675
38676 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
38677 * util/update-grub.in: Likewise.
38678
520ae21b 386792008-05-30 Pavel Roskin <proski@gnu.org>
38680
38681 * util/biosdisk.c (linux_find_partition): Simplify logic and
38682 make the code more universal. Keep special processing for
38683 devfs, but use a simple rule for all other devices. If the
38684 device ends with a number, append 'p' and the partition number.
38685 Otherwise, append only the partition number.
38686
5786569b 386872008-05-30 Robert Millan <rmh@aybabtu.com>
38688
38689 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
38690 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
38691 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
38692 the `root' parameter to Linux.
38693
51500452 386942008-05-30 Robert Millan <rmh@aybabtu.com>
38695
38696 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
38697 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
38698 --fs_uuid with --fs-uuid.
38699 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
38700 all filesystems support them).
38701
811d3878 387022008-05-30 Robert Millan <rmh@aybabtu.com>
38703
38704 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 38705 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 38706
cab63c95 387072008-05-30 Robert Millan <rmh@aybabtu.com>
38708
38709 * util/grub.d/00_header.in: Remove obsolete comment referencing
38710 convert_system_path_to_grub_path().
38711 * util/update-grub.in: Likewise.
38712 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
38713 (convert_system_path_to_grub_path): Add a warning message explaining
38714 that this function is deprecated. Rely on is_path_readable_by_grub()
38715 for the readability checks.
38716 (font_path): Use is_path_readable_by_grub() for the readability
38717 check rather than convert_system_path_to_grub_path().
38718
972e2f7a 387192008-05-30 Robert Millan <rmh@aybabtu.com>
38720
38721 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
38722 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
38723 converting it first.
38724 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
38725 grub.cfg for access to font file, and afterwards call it again to set
38726 the root device.
38727
62191274 387282008-05-30 Robert Millan <rmh@aybabtu.com>
38729
38730 * commands/search.c (options): Add --fs_uuid option.
38731 (search_fs_uuid): New function.
38732 (grub_cmd_search): Fix --set argument passing.
38733 Use search_fs_uuid() when requested via --fs_uuid.
38734 (grub_search_init): Update help message.
38735 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
38736 and redeclare it as an array of 16-bit words.
38737 (grub_ext2_uuid): New function.
38738 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
38739 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
38740 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
38741 (GRUB_DEVICE_BOOT_UUID): New variables.
38742 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
38743 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
38744 whenever possible.
38745 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
38746 just assume `root' variable has the right value.
38747 * util/grub.d/10_linux.in: Likewise.
38748 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
38749 via PRINT_FS_UUID.
38750 (main): Recognise `-t fs_uuid' argument.
38751
01b73ec8 387522008-05-30 Robert Millan <rmh@aybabtu.com>
38753
38754 * util/biosdisk.c (map): Redefine structure to hold information
38755 about GRUB drive name.
fe6b695a 38756 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 38757 drive names.
38758 (call_hook): Remove.
38759 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
38760 member. Assume drive has partitions.
38761 (grub_util_biosdisk_open): Access device names via `.device' struct
38762 member.
38763 (open_device): Likewise.
38764 (find_drive): Likewise.
38765 (read_device_map): Adjust map[] usage to match the new struct
38766 definition. Don't check for duplicates (still possible, but not cheap
38767 anymore).
38768 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
38769 (make_device_name): Remove assumption of BIOS-like drive names.
38770
22f16596 387712008-05-30 Pavel Roskin <proski@gnu.org>
38772
38773 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
38774 compiling execute.c doesn't need grub_script.tab.h anymore.
38775 (normal/command.c_DEPENDENCIES): Likewise.
38776 (normal/function.c_DEPENDENCIES): Likewise.
38777 * conf/i386-ieee1275.rmk: Likewise.
38778 * conf/i386-linuxbios.rmk: Likewise.
38779 * conf/i386-pc.rmk: Likewise.
38780 * conf/powerpc-ieee1275.rmk: Likewise.
38781 * conf/sparc64-ieee1275.rmk: Likewise.
38782
528ad8f2 387832008-05-29 Pavel Roskin <proski@gnu.org>
38784
d1dff95d 38785 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
38786 when scanning metadata for volume group name.
38787
528ad8f2 38788 * include/grub/script.h: Don't include grub_script.tab.h. It's
38789 a generated file, which may only be included from the files with
38790 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
38791 use union YYSTYPE, as the later allows forward declaration.
38792 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
38793
47248e08 387942008-05-29 Robert Millan <rmh@aybabtu.com>
38795
38796 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
38797 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
38798 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
38799 (grub_console_checkkey): Add grub_dprintf() call to report unknown
38800 scan codes.
38801
ee632529 388022008-05-29 Robert Millan <rmh@aybabtu.com>
38803
38804 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
38805 control key combinations.
38806
eee96e08 388072008-05-29 Robert Millan <rmh@aybabtu.com>
38808
38809 * util/powerpc/ieee1275/grub-install.in: Move from here ...
38810 * util/ieee1275/grub-install.in: ... to here.
38811 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
38812 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
38813 (grub_install_SOURCES): Likewise.
38814
da9a6a94 388152008-05-29 Robert Millan <rmh@aybabtu.com>
38816
38817 * fs/affs.c: Update copyright year.
38818 * fs/ext2.c: Likewise.
38819 * fs/fshelp.c: Likewise.
38820 * fs/hfsplus.c: Likewise.
38821 * fs/ntfs.c: Likewise.
38822 * fs/xfs.c: Likewise.
38823 * include/grub/fshelp.h: Likewise.
38824 * util/grub-mkdevicemap.c: Likewise.
38825
12e65f3a 388262008-05-28 Robert Millan <rmh@aybabtu.com>
38827
38828 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38829 might need to be fatfs to support some firmware implementations
38830 (e.g. OFW or EFI).
38831
23023641 388322008-05-28 Robert Millan <rmh@aybabtu.com>
38833
38834 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38835 devices.
38836 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38837 (make_device_map): Likewise.
38838
887d2619 388392008-05-20 Bean <bean123ch@gmail.com>
38840
38841 * fs/fshelp.c (grub_fshelp_map_block): New function.
38842 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38843 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38844
38845 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38846 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38847 (grub_fshelp_journal): New structure.
38848 (grub_fshelp_map_block): New function prototype.
38849 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38850 (grub_fshelp_map_block): Likewise.
38851
38852 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38853 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38854 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38855 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38856 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38857 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38858 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38859 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38860 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38861 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38862 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
38863 (grub_ext2_sblock): New members for journal support.
38864 (grub_ext3_journal_header): New structure.
38865 (grub_ext3_journal_revoke_header): Likewise.
38866 (grub_ext3_journal_block_tag): Likewise.
38867 (grub_ext3_journal_sblock): Likewise.
38868 (grub_fshelp_node): New members logfile and journal.
38869 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
38870 grub_fshelp_map_block to get real block number.
38871 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
38872 number.
38873 (grub_ext2_read_inode): Likewise.
38874 (grub_ext3_get_journal): New function.
38875 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
38876 (grub_ext2_close): Release memory used by journal.
38877
38878 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38879 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38880 (grub_reiserfs_transaction_header): Renamed to
38881 grub_reiserfs_description_block, replace field data with real_blocks.
38882 (grub_reiserfs_commit_block): New structure.
38883 (grub_reiserfs_data): New member journal.
38884 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38885 number.
38886 (grub_reiserfs_read_symlink): Likewise.
38887 (grub_reiserfs_iterate_dir): Likewise.
38888 (grub_reiserfs_open): Likewise.
38889 (grub_reiserfs_read): Likewise.
38890 (grub_reiserfs_get_journal): New function.
38891 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38892 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38893 using grub_reiserfs_get_journal.
38894 (grub_reiserfs_close): Release memory used by journal.
38895
38896 * fs/affs.c (grub_affs_read_block): Change block type to
38897 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38898
38899 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38900
38901 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38902
38903 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38904
38905 * fs/udf.c (grub_udf_read_block): Change block type to
38906 grub_disk_addr_t. Use type cast to avoid warning.
38907
38908 * fs/xfs.c (grub_xfs_read_block): Likewise.
38909
b7c6bed5 389102008-05-16 Christian Franke <franke@computer.org>
38911
38912 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38913 to ensure that break with ESC will always work.
38914 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38915 Remove ESC from keyboard queue.
38916
eedf167f 389172008-05-16 Christian Franke <franke@computer.org>
38918
38919 * util/biosdisk.c: [__CYGWIN__] Add includes.
38920 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38921 (get_os_disk): Move variable declarations to OS specific
38922 parts to avoid warning.
38923 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38924 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38925 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38926 Cygwin.
38927 * util/getroot.c: [__CYGWIN__] Add includes.
38928 (strip_extra_slashes): Fix "/" case.
38929 [__CYGWIN__] (get_win32_path): New function.
38930 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38931 [__CYGWIN__] (find_root_device): Disable.
38932 [__CYGWIN__] (get_bootsec_serial): New function.
38933 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38934 [__linux__] (grub_guess_root_device): Add early returns to simplify
38935 structure.
38936 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38937 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38938 check for Linux only.
38939
a079699e 389402008-05-15 Bean <bean123ch@gmail.com>
38941
38942 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38943 keyboard hang problem in apple's intel mac.
38944
1cf4059a 389452008-05-09 Robert Millan <rmh@aybabtu.com>
38946
38947 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38948 devices.
38949 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38950 (make_device_map): Likewise.
38951 Reported by Aurelien Jarno <aurel32@debian.org>
38952
ed759390 389532008-05-07 Ian Campbell <ijc@hellion.org.uk>
38954
38955 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38956 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38957 (make_device_map): Output entries for xvd type disks.
38958
b56c4eaa 389592008-05-07 Robert Millan <rmh@aybabtu.com>
38960
38961 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38962 devices.
38963 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38964 (make_device_map): Likewise.
38965 Reported by Roland Dreier <rdreier@cisco.com>
38966
7f8866ed 389672008-05-07 Robert Millan <rmh@aybabtu.com>
38968
38969 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38970 grub_strstr() call. Correct a few mistakes in failure path handling.
38971
b0346e0f 389722008-05-06 Robert Millan <rmh@aybabtu.com>
38973
38974 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38975 Do not print a trailing slash (therefore, the root directory is an
38976 empty string).
38977 (convert_system_path_to_grub_path): Do not remove trailing slash
38978 from make_system_path_relative_to_its_root() output.
38979
38980 * util/i386/pc/grub-install.in: Add trailing slash to output from
38981 make_system_path_relative_to_its_root().
38982
6cf12cbd 389832008-05-06 Robert Millan <rmh@aybabtu.com>
38984
38985 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38986 ensures that output lines aren't intermangled with those sent to
38987 stderr (via grub_util_info()).
38988 * util/grub-probe.c (grub_refresh): Likewise.
38989 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38990
0fbb3117 389912008-05-05 Christian Franke <franke@computer.org>
38992
38993 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38994 Add Cygwin device names.
38995 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38996 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38997 (check_device): Return error instead of success on empty name.
38998 (make_device_map): Move label inside linux specific code to
38999 prevent compiler warning.
39000
8124cdb7 390012008-04-30 Robert Millan <rmh@aybabtu.com>
39002
39003 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
39004 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
39005 first boot option.
39006 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
39007
094c01d0 390082008-04-29 Robert Millan <rmh@aybabtu.com>
39009
39010 * docs/grub.cfg: New file (example GRUB configuration).
39011
f4b1fc02 390122008-04-26 Robert Millan <rmh@aybabtu.com>
39013
329ce2a5 39014 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
39015 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
39016 and `disk/ieee1275/nand.c'.
f4b1fc02 39017
25f16ec1 390182008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 39019
25f16ec1 39020 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39021 i386-linuxbios.
39022
39023 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39024 change the buffer size to 4096 for cdrom device.
39025
39026 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39027 and nand.mod.
39028 (_linux_mod_SOURCES): New variable.
39029 (_linux_mod_CFLAGS): Likewise.
39030 (_linux_mod_LDFLAGS): Likewise.
39031 (linux_mod_SOURCES): Likewise.
39032 (linux_mod_CFLAGS): Likewise.
39033 (linux_mod_LDFLAGS): Likewise.
39034 (nand_mod_SOURCES): Likewise.
39035 (nand_mod_CFLAGS): Likewise.
39036 (nand_mod_LDFLAGS): Likewise.
39037
39038 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39039 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39040 type property. (nand device in olpc don't have this property)
39041
39042 * include/grub/disk.h (grub_disk_dev_id): New macro
39043 GRUB_DISK_DEVICE_NAND_ID.
39044
39045 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39046 function prototype.
39047 (grub_rescue_cmd_initrd): Likewise.
39048
39049 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39050 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39051 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 39052
25f16ec1 39053 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39054 GRUB_MACHINE_IEEE1275 is defined.
39055
39056 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39057 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39058
39059 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39060 on nested function heap_init.
39061 (grub_upper_mem): New variable for i386-ieee1275.
39062 (grub_get_extended_memory): New function for i386-ieee1275.
39063 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39064
39065 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39066 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39067 property.
f19dbdb7 39068
25f16ec1 39069 * loader/i386/ieee1275/linux.c: New file.
39070
39071 * loader/i386/ieee1275/linux_normal.c: New file.
39072
39073 * disk/ieee1275/nand.c: New file.
39074
e89d61e9 390752008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39076
39077 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39078 value.
39079 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39080
602566f6 390812008-04-18 Robert Millan <rmh@aybabtu.com>
39082
39083 Restructures early code path on ieee1275 to unify grub_main() as
39084 the first C function that is executed in every platform.
39085
39086 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39087 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39088 cmain().
39089 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39090 * kern/ieee1275/cmain.c (cmain): Rename to ...
39091 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39092 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39093 at the beginning.
39094
57490c2b 390952008-04-18 Robert Millan <rmh@aybabtu.com>
39096
39097 * util/update-grub.in: Fix syntax error when setting
39098 `GRUB_PRELOAD_MODULES'.
39099 Reported by Stephane Chazelas <stephane@artesyncp.com>
39100
1977517d 391012008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39102
39103 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39104 section into account, newer toolchains generate unique build ids
39105 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 39106 we want build ids to be preserved
1977517d 39107 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39108 far from other sections don't cause the raw binary images grow
39109 size
39110
bfb1f1a2 391112008-04-15 Robert Millan <rmh@aybabtu.com>
39112
39113 * disk/lvm.c: Update copyright year.
39114 * kern/misc.c: Likewise.
39115
01979850 391162008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39117
39118 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 39119 there is no memory left for physical volume name.
01979850 39120
0a1150e2 391212008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39122
39123 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39124 volume name mapping to support bigger than 9 character names properly.
39125
82ead3fe 391262008-04-13 Robert Millan <rmh@aybabtu.com>
39127
39128 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39129 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39130
e54a72f5 391312008-04-13 Christian Franke <franke@computer.org>
39132
39133 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39134 to create a floppy emulation boot CD when non emulation mode
39135 does not work.
39136 Enable Joliet CD filesystem extension.
39137
9fe86034 391382008-04-13 Robert Millan <rmh@aybabtu.com>
39139
39140 * kern/misc.c (grub_strncat): Fix off-by-one error.
39141 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39142
39143 * kern/env.c (grub_env_context_close): Clear current context, not
39144 previous one.
39145 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39146
39147 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39148
7ceeee39 391492008-04-13 Robert Millan <rmh@aybabtu.com>
39150
39151 Improve robustness when handling LVM.
39152
39153 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 39154 (and leave `*p' unmodified).
7ceeee39 39155 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39156 through it.
39157 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39158 iterating through it.
39159 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39160 through it.
fe6b695a 39161 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 39162 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39163 Don't assume `vg->pvs != NULL' when iterating through it.
39164
58cd3d85 391652008-04-13 Robert Millan <rmh@aybabtu.com>
39166
39167 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39168 * genmk.rb (partmap): New variable.
39169 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39170 (#{partmap}): New target rule.
39171 * genpartmaplist.sh: New file.
39172 * Makefile.in (pkglib_DATA): Add partmap.lst.
39173 (partmap.lst): New target rule.
39174 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39175 modules (including all partition maps), instead of preloading them.
39176
78b51059 391772007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39178
39179 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39180 `linux-boot-prober' (if installed) to detect other operating
39181 systems which are installed on the computer and add them to
39182 the boot menu.
39183 * conf/common.rmk: Build and install 30_os-prober.
39184
a91627b4 391852008-04-12 Robert Millan <rmh@aybabtu.com>
39186
39187 * kern/powerpc/ieee1275/init.c: Move from here ...
39188 * kern/ieee1275/init.c: ... to here. Update all users.
39189
39190 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39191 * kern/ieee1275/cmain.c: ... to here. Update all users.
39192
39193 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39194 * kern/ieee1275/openfw.c: ... to here. Update all users.
39195
39196 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39197 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39198
322562ea 391992008-04-10 Pavel Roskin <proski@gnu.org>
39200
39201 * configure.ac: Always use "_cv_" in cache variables for
39202 compatibility with Autoconf 2.62.
39203
a02a73c5 392042008-04-07 Robert Millan <rmh@aybabtu.com>
39205
39206 Revert grub/machine/init.h addition by Pavel (since it breaks on
39207 i386-ieee1275 and others):
39208 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39209 * util/powerpc/ieee1275/misc.c: Likewise.
39210
25c024b1 392112008-04-07 Robert Millan <rmh@aybabtu.com>
39212
39213 * util/grub-probe.c (probe): Improve error message.
39214
3cbd2f98 392152008-04-07 Robert Millan <rmh@aybabtu.com>
39216
39217 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39218 (this prevents the presence of a bogus entry from ruining the whole
39219 thing).
39220
87a297bf 392212008-04-06 Pavel Roskin <proski@gnu.org>
39222
36747a62 39223 * util/biosdisk.c: Include grub/util/biosdisk.h.
39224 * util/grub-fstest.c (execute_command): Make static.
39225 * util/grub-mkdevicemap.c (check_device): Likewise.
39226 * util/i386/pc/misc.c: Include grub/machine/init.h.
39227 * util/powerpc/ieee1275/misc.c: Likewise.
39228 * util/lvm.c: Include grub/util/lvm.h.
39229 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39230 grub/cache.h.
39231 * util/raid.c: Include grub/util/raid.h.
39232 (grub_util_getdiskname): Make static.
39233
87a297bf 39234 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39235 grub_hostfs_fini(), as they are called from grub_init_all() and
39236 grub_fini_all() respectively. This fixes an infinite loop in
39237 grub-fstest due to double registration of hostfs.
39238 Reported by Christian Franke <Christian.Franke@t-online.de>
39239
f6ce7629 392402008-04-05 Pavel Roskin <proski@gnu.org>
39241
39242 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39243 all 8 functions. Otherwise, probe function 0 only.
39244
070e49e4 392452008-04-04 Pavel Roskin <proski@gnu.org>
39246
8b088a4c 39247 * commands/lspci.c (grub_lspci_iter): Print the bus number
39248 correctly.
39249
4f657021 39250 * commands/lspci.c (grub_pci_classes): Fix typos.
39251 (grub_lspci_iter): Don't print func twice. Print vendor ID
39252 before device ID, as it's normally done.
39253
070e49e4 39254 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39255 Fix signedness warnings.
39256 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39257 Likewise.
39258 * util/ieee1275/get_disk_name.c: Include config.h so that
39259 _GNU_SOURCE is defined and getline() is declared. Mark an
39260 unused argument as such. Fix a signedness warning.
39261
ba7328dc 392622008-04-02 Pavel Roskin <proski@gnu.org>
39263
26887f22 39264 * genkernsyms.sh.in: Use more robust assignments for CC and
39265 srcdir. Quote srcdir.
39266 * gensymlist.sh.in: Likewise. Assert at the compile time that
39267 the symbol table is not empty.
39268
ba7328dc 39269 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39270 * fs/cpio.c (grub_cpio_read): Likewise.
39271
0f582c6b 392722008-04-01 Pavel Roskin <proski@gnu.org>
39273
4b6e1995 39274 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39275 * disk/host.c (grub_host_open): Likewise.
39276 * disk/loopback.c (grub_loopback_open): Likewise.
39277 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39278 disk->id as in disk/host.c, not a multi-character constant.
39279
828a2768 39280 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39281 later is obsolete, potentially dangerous and sets a bad example.
39282 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39283 * util/misc.c (grub_util_get_image_size): Likewise.
39284
2bb4fb47 39285 * disk/loopback.c (options): Improve help for "--partitions".
39286
0f582c6b 39287 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39288 options to align them with the short options, e.g. "echo -e".
39289
a33224e0 392902008-03-31 Bean <bean123ch@gmail.com>
39291
39292 * video/reader/png.c (grub_png_data): New member is_16bit and
39293 image_data.
39294 (grub_png_decode_image_header): Detect 16 bit png image.
39295 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39296 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39297 (grub_video_reader_png): Release memory occupied by image_data.
39298
39299 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39300 4096 bytes.
39301 (grub_nfs_mount): Skip the test for sector per cluster.
39302
39303 * include/grub/ntfs.h (MAX_SPC): Removed.
39304
86cb4f54 393052008-03-31 Bean <bean123ch@gmail.com>
39306
39307 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
39308 (grub_probe_SOURCES): Add fs/afs.c.
39309 (grub_fstest_SOURCES): Likewise.
39310 (afs_mod_SOURCES): New variable.
39311 (afs_mod_CFLAGS): Likewise.
39312 (afs_mod_LDFLAGS): Likewise.
39313
39314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
39315 (grub_emu_SOURCES): Likewise.
39316
39317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39318
39319 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39320
39321 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39322
39323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39324
39325 * fs/afs.c: New file.
39326
17c74c21 393272008-03-30 Pavel Roskin <proski@gnu.org>
39328
4cb68e89 39329 * disk/host.c: Include grub/misc.h to fix a warning.
39330 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
39331 warnings about implicit declarations.
39332
8790bb04 39333 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
39334 variable.
39335 * include/grub/i386/loader.h: Change declaration of
39336 grub_linux_boot() to match what grub_loader_set() expects.
39337 * util/getroot.c (grub_guess_root_device): Return const char* to
39338 fix a warning.
39339 * util/grub-probe.c (probe): Fix a warning about uninitialized
39340 abstraction_name variable.
39341 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
39342 second argument as unused to fix a warning.
39343
9a3f3296 39344 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
39345 missing grub_error() call.
39346
0ecef90d 39347 * util/update-grub_lib.in: Define datarootdir, since Autoconf
39348 2.60 and newer uses it to define datadir.
39349
0bf6d401 39350 * commands/sleep.c: Fix warning about implicit declaration.
39351 * disk/memdisk.c: Likewise.
39352 * loader/aout.c: Likewise.
39353 * loader/i386/bsd_normal.c: Likewise.
39354 * util/grub-probe.c: Likewise.
39355
7cdacf97 39356 * commands/i386/cpuid.c (has_longmode): Make static.
39357 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
39358 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
39359
17c74c21 39360 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
39361 GDT. This is more robust, as %ds can change.
39362 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
39363 calling real_to_prot().
39364 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
39365
80a3e68b 393662008-03-28 Pavel Roskin <proski@gnu.org>
39367
39368 * kern/i386/pc/startup.S: Assert that uncompressed functions
39369 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
39370 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
39371 code, as they push parts of the code (error handlers) beyond
39372 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
39373 code as correctness and size.
39374
77bcd272 393752008-03-28 Pavel Roskin <proski@gnu.org>
39376
39377 * kern/i386/pc/startup.S
39378 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
39379 data block address to the real mode, keep offset minimal. This
39380 works around a bug in AWARD BIOS on old Athlon systems, which
39381 makes CD detection hang.
39382
c5dfd43b 393832008-03-26 Pavel Roskin <proski@gnu.org>
39384
39385 * normal/color.c (grub_parse_color_name_pair): Make `name' a
39386 const.
39387 * include/grub/normal.h: Add grub_parse_color_name_pair()
39388 declaration.
39389
bf962df2 393902008-03-24 Bean <bean123ch@gmail.com>
39391
39392 * disk/i386/pc/biosdisk.c (cd_start): Removed.
39393 (cd_count): Removed.
39394 (cd_drive): New variable.
39395 (grub_biosdisk_get_drive): Don't check for (cdN) device.
39396 (grub_biosdisk_call_hook): Likewise.
39397 (grub_biosdisk_iterate): Change cdrom detection method.
39398 (grub_biosdisk_open): Replace cd_start with cd_drive.
39399 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
39400 detect cdrom device.
39401
39402 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
39403 Removed.
39404 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
39405 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
39406 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
39407 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
39408 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
39409 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
39410 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
39411 (grub_biosdisk_cdrp): New structure.
39412 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
39413
39414 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
39415
39416 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
39417 device.
39418
39419 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
39420 New function.
39421
68e7fc7a 394222008-03-20 Robert Millan <rmh@aybabtu.com>
39423
39424 Remove 2 TiB limit in ata.mod.
39425 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
39426 (grub_ata_dumpinfo): Print sector count with 0x%llx.
39427 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
39428 grub_uint64_t instead of grub_uint32_t.
39429
38ad2cf5 394302008-03-05 Bean <bean123ch@gmail.com>
39431
39432 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
39433 (grub_multiboot): Set boot device.
39434
39435 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
39436
2b89344e 394372008-03-02 Bean <bean123ch@gmail.com>
39438
39439 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
39440 symlink_buffer.
39441
87a95d1f 394422008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
39443
39444 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
39445 texinfo.tex.
39446
39447 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
39448 modified.
39449
39450 * docs/fdl.texi: New file.
f19dbdb7 39451
87a95d1f 39452 * docs/mdate-sh: New file. Copied from gnulib.
39453 * docs/texinfo.tex: Likewise.
39454
39455 * config.guess: Updated from gnulib.
39456 * install-sh: Likewise.
39457
7dc15d8e 394582008-02-28 Robert Millan <rmh@aybabtu.com>
39459
39460 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
39461 (aout_mod_SOURCES): New variable.
39462 (aout_mod_CFLAGS): Likewise.
39463 (aout_mod_LDFLAGS): Likewise.
39464
39465 * conf/i386-ieee1275.rmk: Likewise.
39466
b00ab696 394672008-02-28 Robert Millan <rmh@aybabtu.com>
39468
39469 * util/update-grub.in: Reorganise terminal validity check. Accept
39470 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
39471 Based on suggestion by Franklin PIAT.
39472
79ca2d78 394732008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
39474
39475 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
39476 function.
39477 * util/getroot.c (grub_util_check_block_device): New function that
39478 returns the given argument if it is a block device and returns NULL else.
39479 * util/grub-probe.c (argument_is_device): New variable.
39480 (probe): Promote device_name from a variable to an argument. Receive
39481 device_name from grub_util_check_block_device() if path is NULL and from
39482 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 39483 (options): Introduce new parameter '-d, --device'.
79ca2d78 39484 (main): Add description of the new parameter to the help screen.
39485 Rename path variable to argument. Set argument_is_device if the '-d'
39486 option is given. Pass argument to probe() depending on
39487 argument_is_device.
39488
0d16e571 394892008-02-24 Bean <bean123ch@gmail.com>
39490
39491 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
39492 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
39493 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
39494 (GRUB_ISO9660_VOLDESC_PART): Likewise.
39495 (GRUB_ISO9660_VOLDESC_END): Likewise.
39496 (grub_iso9660_primary_voldesc): New member escape.
39497 (grub_iso9660_data): New member joliet.
39498 (grub_iso9660_convert_string): New function.
39499 (grub_iso9660_mount): Detect joliet extension.
39500 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
39501 (grub_iso9660_iso9660_label): Likewise.
39502
39503 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
39504 (grub_setup_SOURCES): Add fs/udf.c.
39505 (grub_fstest_SOURCES): Likewise.
39506 (udf_mod_SOURCES): New variable.
39507 (udf_mod_CFLAGS): Likewise.
39508 (udf_mod_LDFLAGS): Likewise.
39509
39510 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
39511 (grub_emu_SOURCES): Likewise.
39512
39513 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39514
39515 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39516
39517 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39518
39519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39520
39521 * fs/udf.c: New file.
39522
8a594a17 395232008-02-24 Robert Millan <rmh@aybabtu.com>
39524
39525 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
39526 (normal/lexer.c_DEPENDENCIES): New variables.
39527 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39528 (normal/lexer.c_DEPENDENCIES): Likewise.
39529 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
39530 (normal/lexer.c_DEPENDENCIES): Likewise.
39531 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
39532 (normal/lexer.c_DEPENDENCIES): Likewise.
39533 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39534 (normal/lexer.c_DEPENDENCIES): Likewise.
39535 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39536 (normal/lexer.c_DEPENDENCIES): Likewise.
39537
2dc33c03 395382008-02-23 Robert Millan <rmh@aybabtu.com>
39539
39540 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
39541 since they were intended to be in hex. This didn't break previously
39542 because of a bug in gpt_partition_map_iterate() (see below).
39543
39544 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
39545 when checking the validity of GPT header.
39546 Remove `partno', since it always provides the same information as `i'.
39547
f6f4cfb0 395482008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
39549
39550 * include/grub/efi/time.h: Fix a wrong comment.
39551
79ff665f 395522008-02-19 Pavel Roskin <proski@gnu.org>
39553
39554 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
39555 message.
39556
d38e24c2 395572008-02-19 Bean <bean123ch@gmail.com>
39558
39559 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
39560 (aout_mod_SOURCES): New variable.
39561 (aout_mod_CFLAGS): Likewise.
39562 (aout_mod_LDFLAGS): Likewise.
39563 (_bsd_mod_SOURCES): New variable.
39564 (_bsd_mod_CFLAGS): Likewise.
39565 (_bsd_mod_LDFLAGS): Likewise.
39566 (bsd_mod_SOURCES): New variable.
39567 (bsd_mod_CFLAGS): Likewise.
39568 (bsd_mod_LDFLAGS): Likewise.
39569
39570 * include/grub/aout.h: New file.
39571
39572 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
39573
39574 * include/grub/i386/bsd.h: New file.
39575
39576 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
39577 to make it public.
39578
39579 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
39580 function is called, so that it's possible to change it inside the hook.
39581 (grub_elf64_load): Likewise.
39582 (grub_elf_file): Don't close the file if elf header is not found.
39583 (grub_elf_close): Close the file if grub_elf_file fails (The new
39584 grub_elf_file won't close it).
39585 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
39586 (grub_elf64_size): Likewise.
39587
39588 * kern/i386/loader.S (grub_unix_real_boot): New function.
39589
39590 * loader/aout.c: New file.
39591
39592 * loader/i386/bsd.c: New file.
39593
39594 * loader/i386/bsd_normal.c: New file.
39595
39596 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
39597
39598 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 39599 can test other formats.
d38e24c2 39600
b93bdb0f 396012008-02-19 Robert Millan <rmh@aybabtu.com>
39602
39603 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
39604 (grub_gpt_partition_type_empty): Redefine with macro from
39605 `<grub/gpt_partition.h>'.
39606 (gpt_partition_map_iterate): Adjust partition type comparison.
39607
39608 Export `entry' as partmap-specific `part.data' struct.
39609 (grub_gpt_header, grub_gpt_partentry): Move from here ...
39610
39611 * include/grub/gpt_partition.h (grub_gpt_header)
39612 (grub_gpt_partentry): ... to here (new file).
39613
39614 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
39615
39616 (grub_gpt_partition_type_bios_boot): New const variable, defined
39617 with macro from `<grub/gpt_partition.h>'.
39618
39619 (setup): Replace `first_start' with `embed_region', which keeps
39620 track of the embed region (and is partmap-agnostic).
39621
39622 Replace find_first_partition_start() with find_usable_region(),
39623 which finds a usable region for embedding using partmap-specific
39624 knowledge (supports PC/MSDOS and GPT).
39625
39626 Fix all assumptions that the embed region start at sector 1, using
39627 `embed_region.start' from now on. Similarly, use `embed_region.end'
39628 rather than `first_start' to calculate available size.
39629
39630 In grub_util_info() message, replace "into after the MBR" with an
39631 indication of the specific sector our embed region starts at.
39632
66cb40f6 396332008-02-19 Robert Millan <rmh@aybabtu.com>
39634
39635 * DISTLIST: Replace `commands/ieee1275/halt.c' and
39636 `commands/ieee1275/reboot.c' with `commands/halt.c' and
39637 `commands/reboot.c'.
39638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39639 (halt_mod_SOURCES): Likewise.
39640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39641 (halt_mod_SOURCES): Likewise.
39642
b7202015 396432008-02-17 Christian Franke <franke@computer.org>
39644
39645 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
39646
32b0fc49 396472008-02-17 Robert Millan <rmh@aybabtu.com>
39648
39649 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39650 set `first_start' to 0 for non-PC/MSDOS partition maps.
39651
aca63502 396522008-02-16 Robert Millan <rmh@aybabtu.com>
39653
39654 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39655 do not assume partition map is PC/MSDOS before performing checks that
39656 are specific to that layout.
39657
0de8be86 396582008-02-13 Robert Millan <rmh@aybabtu.com>
39659
39660 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
39661 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
39662 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
39663
c3db8364 396642008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
39665
39666 * configure.ac: Only a cosmetic change on the handling of
39667 -fno-stack-protector.
39668
f714229e 396692008-02-12 Alexandre Boeglin <alex@boeglin.org>
39670
c3db8364 39671 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
39672 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
39673 reboot.c.
f714229e 39674 (grub_install_SOURCES): Add halt.mod and reboot.mod.
39675 (halt_mod_SOURCES): New variable.
39676 (halt_mod_CFLAGS): Likewise.
39677 (halt_mod_LDFLAGS): Likewise.
39678 (reboot_mod_SOURCES): Likewise.
39679 (reboot_mod_CFLAGS): Likewise.
39680 (reboot_mod_LDFLAGS): Likewise.
39681
c3db8364 39682 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
39683 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
39684 reboot.c.
f714229e 39685 (halt_mod_SOURCES): Likewise.
39686 (reboot_mod_SOURCES): Likewise.
39687
c3db8364 39688 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
39689 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 39690 (reboot_mod_SOURCES): Likewise.
39691
39692 * commands/i386/pc/reboot.c: merge this file ...
39693
39694 * commands/ieee1275/reboot.c: ... and this file ...
39695
39696 * commands/reboot.c: ... to this file.
c3db8364 39697 Add some precompiler directive to include the correct header for
39698 each machine.
f714229e 39699
39700 * commands/ieee1275/halt.c: move this file ...
39701
39702 * commands/halt.c: ... to here.
c3db8364 39703 Add some precompiler directive to include the correct header for
39704 each machine.
f714229e 39705
39706 * include/grub/efi/efi.h (grub_reboot): New function declaration.
39707 (grub_halt): Likewise.
39708
39709 * kern/efi/efi.c (grub_reboot): New function.
39710 (grub_halt): Likewise.
39711
c74493e0 397122008-02-12 Robert Millan <rmh@aybabtu.com>
39713
39714 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
39715 /dev (like it is done for /dev/mapper). This doesn't provide support
39716 for EVMS, but at least it is now easy to identify the problem when it
39717 arises.
39718
d0db4b04 397192008-02-11 Robert Millan <rmh@aybabtu.com>
39720
39721 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
39722 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
39723 comparing it with -1, not 0.
39724
bf748642 397252008-02-10 Robert Millan <rmh@aybabtu.com>
39726
39727 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
39728 `disk/lvm.c'.
39729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39730 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
39731
39732 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
39733 `disk/lvm.c' to the end of the list.
39734 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39735 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39736
b5db202a 397372008-02-10 Robert Millan <rmh@aybabtu.com>
39738
39739 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
39740 grub_print_error() instead. This will let user know why we're entering
39741 rescue mode.
39742 Based on suggestions from Sam Morris.
39743
83abee31 397442008-02-10 Alexandre Boeglin <alex@boeglin.org>
39745
39746 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
39747 on remaining N args, instead of "--" arg N times.
39748
78d5a08b 397492008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
39750
39751 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
39752 (fill_with_default_glyph): Changed to use unknown_glyph for fill
39753 pattern for unknown glyphs.
39754
68807e5f 397552008-02-09 Robert Millan <rmh@aybabtu.com>
39756
39757 * configure.ac: Probe for `help2man'.
39758 * Makefile.in (builddir): New variable.
39759 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
39760 or otherwise add a few flags/options to it.
39761 (install-local): For every executable utility or script that is
39762 installed, invoke $(HELP2MAN) to install a manpage based on --help
39763 output.
39764
39765 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
39766 that it doesn't prevent --help from working in build tree.
39767
39768 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
39769 with `bug-grub@gnu.org'.
39770 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
39771 * util/update-grub.in (usage): New function.
39772 Implement proper argument check, with support for --help and --version
39773 (as well as existing -y).
39774
397752008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 39776
39777 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
39778 avoid overwriting previous output.
39779 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
39780
c1962162 397812008-02-09 Robert Millan <rmh@aybabtu.com>
39782
39783 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
39784 drawing the menu.
39785
3dac2e3f 397862008-02-09 Robert Millan <rmh@aybabtu.com>
39787
39788 * commands/sleep.c: New file.
39789 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
39790 (sleep_mod_SOURCES): New variable.
39791 (sleep_mod_CFLAGS): Likewise.
39792 (sleep_mod_LDFLAGS): Likewise.
39793
7a634e08 397942008-02-09 Robert Millan <rmh@aybabtu.com>
39795
39796 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
39797 situations in which we can deduce the RAID size and the superblock
39798 doesn't match it.
39799
b92f0c18 398002008-02-09 Robert Millan <rmh@aybabtu.com>
39801
39802 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
39803 and return a grub_diskmemberlist_t composed of LVM physical volumes.
39804 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
39805
39806 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
39807 and return a grub_diskmemberlist_t composed of physical array members.
39808 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
39809
39810 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
39811 prototype.
39812 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
39813 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
39814 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
39815
39816 * util/grub-probe.c (probe): Move partmap probing code from here ...
39817 (probe_partmap): ... to here.
39818 (probe): Use probe_partmap() once for the disk we're probing, and
39819 additionally, when such disk contains a memberlist() struct member,
39820 once for each disk that is contained in the structure returned by
39821 memberlist().
39822
91a4bf68 398232008-02-09 Robert Millan <rmh@aybabtu.com>
39824
39825 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39826 environment variable to 'all' in order to obtain debug output from
39827 non-util/ code.
39828 * util/i386/pc/grub-setup.c (main): Likewise.
39829
a96f9caa 398302008-02-08 Robert Millan <rmh@aybabtu.com>
39831
39832 * disk/raid.c (grub_raid_scan_device): Check for
39833 `array->device[sb.this_disk.number]' rather than for
39834 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39835 guaranteed to be accessible.
a96f9caa 39836
b37a9222 398372008-02-08 Robert Millan <rmh@aybabtu.com>
39838
39839 * disk/raid.c: Update copyright.
39840 * fs/cpio.c: Likewise.
39841 * include/grub/raid.h: Likewise.
39842 * loader/i386/pc/multiboot.c: Likewise.
39843 * util/hostfs.c: Likewise.
39844
5626aee1 398452008-02-08 Robert Millan <rmh@aybabtu.com>
39846
39847 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39848 to a grub_disk_t array.
39849 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39850 `device[x]'.
39851 (grub_raid_scan_device): Replace `device[x].name' accesses with
39852 `device[x]->name'. Simplify initialization of `array->device[x]'.
39853
554f0187 398542008-02-08 Robert Millan <rmh@aybabtu.com>
39855
39856 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39857 grub_dprintf() calls.
39858 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39859 error message.
39860
1ec8425d 398612008-02-07 Christian Franke <franke@computer.org>
39862
39863 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
39864 instead of fseek and ftell to support large files.
39865 (grub_hostfs_read): Likewise.
39866
f2156fda 398672008-02-07 Robert Millan <rmh@aybabtu.com>
39868
39869 Patch from Jeroen Dekkers.
39870 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 39871 failure, since successfully reading all array members might not be
f2156fda 39872 required.
39873
9216e0e7 398742008-02-06 Robert Millan <rmh@aybabtu.com>
39875
39876 * util/grub-probe.c (probe): Simplify partmap probing (with the
39877 assumption that the first word up to the underscore equals to
39878 the module name).
39879
b0dfd29a 398802008-02-06 Christian Franke <franke@computer.org>
39881
39882 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39883 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39884 last block of a cpio or tar stream.
39885 Check for "TRAILER!!!" instead of any empty data
39886 block to detect last block of a cpio stream.
39887 (grub_cpio_dir): Fix constness of variable np.
39888 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39889 cpio or tar trailer is detected. This fixes a crash
39890 on open of a non existing file.
39891
c32865bf 398922008-02-05 Bean <bean123ch@gmail.com>
39893
39894 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39895 address of entry.
39896 (grub_multiboot_load_elf64): Likewise.
39897 (grub_multiboot): Initialize mbi structure.
39898
39899 * util/grub-fstest.c: Don't include unused header file script.h.
39900
fe6b695a 39901 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39902 of file.
39903 (grub_fstest_SOURCES): Likewise.
39904
409480b7 399052008-02-05 Robert Millan <rmh@aybabtu.com>
39906
39907 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39908 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39909 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39910 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39911
39912 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39913 (translation_table): Replace hardcoded values with macros
39914 provided by `<grub/term.h>'.
39915
39916 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39917 (keyboard_map): Correct/add a few values, with macros provided
39918 by `<grub/term.h>'.
39919 (keyboard_map_shift): Zero values that don't differ from their
39920 `keyboard_map' equivalents.
39921 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39922 Discard the second scan code that is always sent by Caps lock.
39923 Only use `keyboard_map_shift' when it provides a non-zero value,
39924 otherwise fallback to `keyboard_map'.
39925
99fadbaa 399262008-02-04 Bean <bean123ch@gmail.com>
39927
39928 * Makefile.in (enable_grub_fstest): New variable.
39929
39930 * conf/common.rmk (grub_fstest_init.lst): New rule.
39931 (grub_fstest_init.h): Likewise.
39932 (grub_fstest_init.c): Likewise.
39933 (util/grub-fstest.c_DEPENDENCIES): New variable.
39934 (grub_fstest_SOURCES): Likewise.
39935
39936 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39937
39938 * util/grub-fstest.c: New file.
39939
bf567c50 399402008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39941
39942 Make grub-setup handle a separate root device.
f19dbdb7 39943
bf567c50 39944 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39945 so that the root device can be compared with the destination
39946 device.
39947 When embedding the core image, if the root and destination devices
39948 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39949 0xFF.
39950 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39951
9be6b98b 399522008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39953
39954 Add support for having a grub directory in a different drive. This
39955 is still only the data handling part.
f19dbdb7 39956
9be6b98b 39957 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39958 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39959 (grub_root_drive): New variable.
39960
39961 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39962 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39963 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39964 as it was.
39965
39966 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39967
39968 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39969 macro.
39970 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39971
39972 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39973 is bogus, because PXE booting does not specify any drive
39974 correctly.
39975
39976 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39977 am not sure if this is really correct.
39978
39979 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39980 is always identical to the boot drive when booting from a CD.
39981
39982 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39983 longer.
39984 (root_drive): New variable.
39985 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39986 (setup_sectors): Push %dx right after popping it, because %dh will
39987 be modified later.
39988 (copy_buffer): Restore %dx.
39989
e0ca0677 399902008-02-03 Robert Millan <rmh@aybabtu.com>
39991
39992 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39993 use `cdboot.img' for cdrom images.
39994
3b3f6629 399952008-02-03 Robert Millan <rmh@aybabtu.com>
39996
39997 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39998 only setup gfxterm when `font' command has succeeded.
39999
d42b3672 400002008-02-03 Robert Millan <rmh@aybabtu.com>
40001
40002 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
40003 (grub_rescue_cmd_multiboot_loader)
40004 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
40005
fa370ea6 400062008-02-03 Pavel Roskin <proski@gnu.org>
40007
e0c5dacb 40008 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 40009 %edx and %esi from stack only after grub_gate_a20() is called.
40010 grub_gate_a20() clobbers %edx.
40011
f2a76e1d 400122008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40013
40014 * configure.ac (AC_INIT): Bumped to 1.96.
40015
40016 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40017 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40018 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40019 video/readers/png.c.
40020
90fd32d1 400212008-02-03 Bean <bean123ch@gmail.com>
9be665dd 40022
40023 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40024 (cdboot_img_SOURCES): New variable.
40025 (cdboot_img_ASFLAGS): New variable.
40026 (cdboot_img_LDFLAGS): New variable.
40027
40028 * boot/i386/pc/cdboot.S: New file.
40029
40030 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40031 (cd_count): Likewise.
40032 (grub_biosdisk_get_drive): Add support for cd device.
40033 (grub_biosdisk_call_hook): Likewise.
40034 (grub_biosdisk_iterate): Likewise.
40035 (grub_biosdisk_open): Likewise.
40036 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40037 (grub_biosdisk_rw): Support reading from cd device.
40038 (GRUB_MOD_INIT): Iterate cd devices.
40039
40040 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40041 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40042 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40043
40044 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40045
4020aa53 400462008-02-02 Robert Millan <rmh@aybabtu.com>
40047
40048 * commands/read.c: New file.
40049 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40050 (read_mod_SOURCES): New variable.
40051 (read_mod_CFLAGS): Likewise.
40052 (read_mod_LDFLAGS): Likewise.
40053
e03a1132 400542008-02-02 Robert Millan <rmh@aybabtu.com>
40055
40056 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40057 determining whether menu has to be displayed.
40058
58c69220 400592008-02-02 Marco Gerards <marco@gnu.org>
40060
40061 * bus/pci.c: New file.
40062
40063 * include/grub/pci.h: Likewise.
40064
40065 * include/grub/i386/pc/pci.h: Likewise.
40066
40067 * commands/lspci.c: Likewise.
40068
40069 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40070 `lspci.mod'.
40071 (pci_mod_SOURCES): New variable.
40072 (pci_mod_CFLAGS): Likewise.
40073 (pci_mod_LDFLAGS): Likewise.
40074 (lspci_mod_SOURCES): Likewise.
40075 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 40076 (lspci_mod_LDFLAGS): Likewise.
58c69220 40077
c004e1b4 400782008-02-02 Bean <bean123ch@gmail.com>
40079
40080 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40081 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40082
40083 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40084 (grub_xfs_btree_node): New structure.
40085 (grub_xfs_btree_root): New structure.
40086 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40087 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40088 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40089 (GRUB_XFS_EXTENT_SIZE): Likewise.
40090 (grub_xfs_read_block): Support btree format type.
40091 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40092 Use directory block as basic unit.
40093
40094 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40095
40096 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40097 __attribute__ ((__regparm__ (1))).
40098
f95562bf 400992008-02-01 Robert Millan <rmh@aybabtu.com>
40100
40101 Correct a mistake in previous commit.
40102
40103 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40104 top.
40105 (normal/command.c_DEPENDENCIES): New variable.
40106
7d31f41f 401072008-02-01 Robert Millan <rmh@aybabtu.com>
40108
40109 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40110 top.
40111 (normal/command.c_DEPENDENCIES): New variable.
40112 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40113 * conf/i386-ieee1275.rmk: Likewise.
40114 * conf/i386-linuxbios.rmk: Likewise.
40115 * conf/i386-pc.rmk: Likewise.
40116 * conf/sparc64-ieee1275.rmk: Likewise.
40117 * conf/powerpc-ieee1275.rmk: Likewise.
40118 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40119
40120 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40121
60b6be74 401222008-02-01 Robert Millan <rmh@aybabtu.com>
40123
40124 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40125 call at beginning of function.
40126
078522ab 401272008-01-31 Pavel Roskin <proski@gnu.org>
40128
40129 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 40130 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40131 (grub_mkrescue_SOURCES): Likewise.
078522ab 40132 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40133
ccaa8a5f 401342008-01-30 Robert Millan <rmh@aybabtu.com>
40135
40136 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40137 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40138 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40139 (grub_probe_SOURCES): ... to here.
40140
40141 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40142 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40143 * conf/i386-ieee1275.rmk: Likewise.
40144 * conf/i386-linuxbios.rmk: Likewise.
40145 * conf/powerpc-ieee1275.rmk: Likewise.
40146
ae5a9cd7 401472008-01-30 Tristan Gingold <gingold@free.fr>
40148
40149 * kern/rescue.c: Silently accept empty lines.
40150
70bc2ef2 401512008-01-29 Bean <bean123ch@gmail.com>
40152
40153 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40154 (real_code_2): Code cleanup and change comment style.
40155 (move_memory): Avoid using 32-bit address mode.
40156
6a4d50ea 401572008-01-29 Bean <bean123ch@gmail.com>
40158
40159 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40160 (png_mod_SOURCES): New variable.
40161 (png_mod_CFLAGS): Likewise.
40162 (png_mod_LDFLAGS): Likewise.
40163
40164 * video/readers/png.c: New file.
40165
11cc30ac 401662008-01-28 Robert Millan <rmh@aybabtu.com>
40167
40168 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40169 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40170 `ifndef GRUB_MOD_GAP' hack.
40171 * util/elf/grub-mkimage.c (add_segments): Likewise.
40172
3abc589f 401732008-01-27 Robert Millan <rmh@aybabtu.com>
40174
40175 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40176 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 40177 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 40178
e1907778 401792008-01-27 Robert Millan <rmh@aybabtu.com>
40180
40181 Get grub-emu to build again (including parallel builds).
40182
40183 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40184 Split into ...
40185 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40186 (normal/execute.c_DEPENDENCIES): ... this, ...
40187 (grub-emu_DEPENDENCIES): ... and this.
40188
40189 * conf/i386-efi.rmk: Likewise.
40190 * conf/i386-linuxbios.rmk: Likewise.
40191 * conf/i386-ieee1275.rmk: Likewise.
40192 * conf/powerpc-ieee1275.rmk: Likewise.
40193 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40194
2216b101 401952008-01-27 Robert Millan <rmh@aybabtu.com>
40196
40197 * NEWS: Add a few items.
40198
f75172d9 401992008-01-27 Robert Millan <rmh@aybabtu.com>
40200
40201 Fix parallel builds with grub-emu. Based on earlier commit for
40202 grub-probe and grub-setup.
40203
40204 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40205 (util/grub-emu.c_DEPENDENCIES): ... this.
40206 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40207 (util/grub-emu.c_DEPENDENCIES): ... this.
40208 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40209 (util/grub-emu.c_DEPENDENCIES): ... this.
40210 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40211 (util/grub-emu.c_DEPENDENCIES): ... this.
40212 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40213 (util/grub-emu.c_DEPENDENCIES): ... this.
40214
3f51de77 402152008-01-27 Pavel Roskin <proski@gnu.org>
40216
40217 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40218 to create a gap between _end and the modules added to the image
40219 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40220 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40221 * util/elf/grub-mkimage.c (add_segments): Likewise.
40222
2033f53e 402232008-01-26 Pavel Roskin <proski@gnu.org>
40224
40225 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40226 just return an error.
40227
22da1f6f 402282008-01-26 Bean <bean123ch@gmail.com>
40229
40230 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40231 (grub_reiserfs_get_item): Save offset of the next item.
40232 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40233
2a9525e6 402342008-01-25 Robert Millan <rmh@aybabtu.com>
40235
40236 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40237 make all filesystem sources appear together (possibly fixing omissions
40238 while at it).
40239 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40240 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40241 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40243
40244 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40245 add `kern/file.c'.
40246 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40247 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40248 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40249 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40250
40251 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40252 (probe): Add a sanity check to make sure of our ability to read
40253 requested files when probing for filesystem type.
40254
40255 * genmk.rb: Update copyright year (2007).
40256
40257 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40258 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40259 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40260 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40261 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40262 : Remove function prototypes.
40263
b95f71b5 402642008-01-25 Robert Millan <rmh@aybabtu.com>
40265
40266 Revert my previous commits (based on wrong assumption of how grub_errno
40267 works).
40268
fe6b695a 40269 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 40270 * kern/file.c (grub_file_open): Likewise.
40271
d08bbb49 402722008-01-24 Pavel Roskin <proski@gnu.org>
40273
40274 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40275 that hang if GRUB tries to setup colors.
40276 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40277 colors for firmwares that don't support it.
40278 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40279 Recognize Open Hack'Ware, set flags to work around its
40280 limitations.
40281
605e36ed 402822008-01-24 Robert Millan <rmh@aybabtu.com>
40283
40284 * kern/file.c (grub_file_open): Do not account previous failures of
40285 unrelated functions when grub_errno is checked for.
40286 Reported by Oleg Strikov.
40287
bac332a1 402882008-01-24 Bean <bean123ch@gmail.com>
40289
40290 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40291 (grub_ufs_sblock): New member volume name.
40292 (grub_ufs_find_file): Fix string copy bug.
40293 (grub_ufs_label): Implement this function properly.
40294
40295 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40296 (grub_hfs_iterate_records): Use the correct file number for extents
40297 and catalog file. Fix problem in next index calculation.
40298 (grub_hfs_find_node): Replace recursive function call with loop.
40299 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40300
15c80c09 403012008-01-23 Robert Millan <rmh@aybabtu.com>
40302
40303 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
40304 `<grub/symbol.h>' and `<grub/multiboot.h>'.
40305 (grub_multiboot2_real_boot): New function prototype.
40306
40307 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
40308 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
40309
40310 * kern/i386/ieee1275/init.c (grub_os_area_addr)
40311 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
40312
305338fd 403132008-01-23 Robert Millan <rmh@aybabtu.com>
40314
40315 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
40316 #ifdef'ed out grub_printf().
40317
3ea52685 403182008-01-23 Robert Millan <rmh@aybabtu.com>
40319
40320 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
40321 grub_dprintf calls, since they make "debug=all" mode unusable.
40322 (grub_console_checkkey): Likewise.
40323
5882ae4b 403242008-01-23 Robert Millan <rmh@aybabtu.com>
40325
40326 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40327 `term/i386/pc/at_keyboard.c'.
40328 (pkglib_MODULES): Add `serial.mod'.
40329 (serial_mod_SOURCES): New variable.
40330 (serial_mod_CFLAGS): Likewise.
40331 (serial_mod_LDFLAGS): Likewise.
40332
40333 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
40334 `<grub/powerpc/ieee1275/console.h>'.
40335 (grub_keyboard_controller_init): New function prototype.
40336 (grub_console_checkkey): Likewise.
40337 (grub_console_getkey): Likewise.
40338
40339 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
40340 keyboard on i386.
40341
40342 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
40343 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
40344
06ab5303 403452008-01-23 Robert Millan <rmh@aybabtu.com>
40346
40347 * kern/i386/pc/init.c (make_install_device): When memdisk image is
40348 present, "(memdisk)/boot/grub" becomes the default prefix.
40349
40350 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
40351 a memdisk tarball with all the modules. Add --overlay=DIR option that
40352 allows users to overlay additional files into the image.
40353
dbb475a4 403542008-01-23 Robert Millan <rmh@aybabtu.com>
40355
40356 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
40357 and `machine/memory.h'.
40358 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
40359 (_multiboot_mod_SOURCES): New variable.
40360 (_multiboot_mod_CFLAGS): Likewise.
40361 (_multiboot_mod_LDFLAGS): Likewise.
40362 (multiboot_mod_SOURCES): Likewise.
40363 (multiboot_mod_CFLAGS): Likewise.
40364 (multiboot_mod_LDFLAGS): Likewise.
40365
40366 * include/grub/i386/ieee1275/loader.h: New file.
40367
40368 * include/grub/i386/ieee1275/machine.h: Likewise.
40369
40370 * include/grub/i386/ieee1275/memory.h: Likewise.
40371
40372 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
40373 variable declaration.
40374 (grub_os_area_size): Likewise.
40375
40376 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
40377 (grub_lower_mem, grub_upper_mem): New variables.
40378 (grub_stop_floppy): New function (just to make
40379 grub_multiboot2_real_boot() happy).
40380
40381 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
40382 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
40383 (grub_stop): New function.
40384 Include `"../realmode.S"' and `"../loader.S"'.
40385
40386 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
40387 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
40388
40389 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
40390 rely on grub_multiboot2_real_boot() for final boot.
40391
25638629 403922008-01-22 Robert Millan <rmh@aybabtu.com>
40393
40394 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
40395 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
40396 device that doesn't look like an SD card.
40397 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40398 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
40399 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
40400 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
40401 found.
40402
9dad816d 404032008-01-22 Robert Millan <rmh@aybabtu.com>
40404
40405 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
40406 avoid claiming over our own code.
40407
34842f2d 404082008-01-22 Bean <bean123ch@gmail.com>
40409
40410 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
40411 (jpeg_mod_SOURCES): New variable.
40412 (jpeg_mod_CFLAGS): Likewise.
40413 (jpeg_mod_LDFLAGS): Likewise.
40414
40415 * video/readers/jpeg.c : New file.
40416
44023a28 404172008-01-22 Bean <bean123ch@gmail.com>
40418
40419 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
40420 there are no more items.
40421
bc2d8ac6 404222008-01-21 Robert Millan <rmh@aybabtu.com>
40423
40424 * kern/mm.c (grub_mm_init_region): Improve debug message.
40425
261bd4bc 404262008-01-21 Robert Millan <rmh@aybabtu.com>
40427
40428 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
40429 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
40430 address.
40431 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
40432 a C macro.
40433 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
40434 Indicates start of upper memory.
40435 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
40436 (generate_image): Abort when image size is big enough to corrupt
40437 upper memory.
40438
40439 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
40440 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
40441 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40442 instead of hardcoding 0xA0000.
40443 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
40444 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40445 instead of hardcoding 0xA0000.
40446
f970b55e 404472008-01-21 Robert Millan <rmh@aybabtu.com>
40448
40449 * disk/memdisk.c (memdisk_size): New variable.
40450 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
40451 `memdisk_size'.
40452 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
40453 image to dynamic memory.
40454 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
40455 `memdisk_size'. Free memdisk block.
40456
1a8b0526 404572008-01-21 Robert Millan <rmh@aybabtu.com>
40458
40459 Fix detection of very small filesystems (like tar).
40460
40461 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
40462 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
40463 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
40464 a problem with this disk).
40465
6e9b4aab 404662008-01-21 Robert Millan <rmh@aybabtu.com>
40467
40468 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
40469 on grub_biosdisk_rw_standard() error.
40470
0d8837b2 404712008-01-21 Robert Millan <rmh@aybabtu.com>
40472
40473 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
40474 recent changes.
40475 * kern/elf.c: Likewise.
40476 * kern/ieee1275/ieee1275.c: Likewise.
40477 * kern/powerpc/ieee1275/openfw.c: Likewise.
40478 * term/ieee1275/ofconsole.c: Likewise.
40479
ffd36e34 404802008-01-21 Robert Millan <rmh@aybabtu.com>
40481
40482 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
40483
3f0093d0 40484 * include/grub/kernel.h (grub_arch_memdisk_addr)
40485 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 40486
3f0093d0 40487 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
40488 (grub_arch_memdisk_size): ... to here.
ffd36e34 40489
6c391b21 404902008-01-21 Robert Millan <rmh@aybabtu.com>
40491
40492 Mostly based on bugfix from Bean.
40493
40494 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
40495 attribute with hook() parameter.
40496 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
40497 declaration.
40498 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
40499 attribute with hook() parameter.
40500 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
40501 declaration.
40502
55a581dc 405032008-01-21 Robert Millan <rmh@aybabtu.com>
40504
40505 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
40506 (pkglib_MODULES): Add `memdisk.mod'.
40507 (memdisk_mod_SOURCES): New variable.
40508 (memdisk_mod_CFLAGS): Likewise.
40509 (memdisk_mod_LDFLAGS): Likewise.
40510
40511 * disk/memdisk.c: New file.
40512
40513 * include/grub/disk.h (grub_disk_dev_id): Add
40514 `GRUB_DISK_DEVICE_MEMDISK_ID'.
40515
40516 * include/grub/i386/pc/kernel.h
40517 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
40518 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
40519 (grub_kernel_image_size): New variable declaration.
40520 (grub_total_module_size): Likewise.
40521 (grub_memdisk_image_size): Likewise.
40522
40523 * include/grub/i386/pc/memory.h
40524 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
40525
40526 * include/grub/kernel.h: Include `<grub/symbol.h>'.
40527 (grub_arch_memdisk_addr): New variable declaration.
40528 (grub_arch_memdisk_size): Likewise.
40529
40530 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
40531 (grub_arch_memdisk_size): Likewise.
40532
40533 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
40534 (codestart): Replace hardcoded `0x100000' with
40535 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
40536
40537 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
40538 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
40539 not NULL, append the contents of the file it refers to, at the end of
40540 the compressed kernel image. Initialize `grub_memdisk_image_size'
40541 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
40542 (options): Add "memdisk"|'m' option.
40543 (main): Parse --memdisk|-m option, and pass user-provided path as
40544 parameter to generate_image().
40545
3d7f54c9 405462008-01-20 Robert Millan <rmh@aybabtu.com>
40547
40548 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
40549 grub_dprintf() calls from here ...
40550 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
40551
0bf74728 405522008-01-20 Robert Millan <rmh@aybabtu.com>
40553
40554 Fix detection of "real mode" when /options/real-mode? doesn't exist.
40555
40556 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
40557 declaration.
40558 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
40559 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
40560 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 40561 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 40562 property).
40563 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
40564 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
40565
33bf70a7 405662008-01-19 Robert Millan <rmh@aybabtu.com>
40567
fe6b695a 40568 Get rid of confusing function (superseded by
33bf70a7 40569 `grub_ieee1275_get_integer_property')
40570 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
40571 prototype.
40572 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
40573 function.
40574 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
40575 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 40576 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 40577
e2da7d26 405782008-01-19 Robert Millan <rmh@aybabtu.com>
40579
40580 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
40581 command after "shut-down", since implementations differ on which
40582 the command for halt is.
40583
59f1fd8d 405842008-01-19 Robert Millan <rmh@aybabtu.com>
40585
40586 * include/grub/i386/linuxbios/console.h: Add header protection.
40587 (grub_keyboard_controller_init): New function prototype.
40588 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
40589 (KEYBOARD_COMMAND_READ): Likewise.
40590 (KEYBOARD_COMMAND_WRITE): Likewise.
40591 (KEYBOARD_SCANCODE_SET1): Likewise.
40592 (grub_keyboard_controller_write): New function.
40593 (grub_keyboard_controller_read): Likewise.
40594 (grub_keyboard_controller_init): Likewise.
40595
40596 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
40597 (grub_console_init): On coreboot/LinuxBIOS, call
40598 grub_keyboard_controller_init().
40599
5f5a7c15 406002008-01-19 Robert Millan <rmh@aybabtu.com>
40601
40602 PowerPC changes provided by Pavel Roskin.
40603
40604 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
40605 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
40606 don't rely on cmain() doing it.
40607 * kern/i386/ieee1275/startup.S (_start): Store %eax in
40608 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
40609
1210e168 406102008-01-16 Robert Millan <rmh@aybabtu.com>
40611
40612 * include/grub/i386/linuxbios/memory.h
40613 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
40614 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
40615 receive `table_header' as argument. Instead, probe for it in the
40616 known memory ranges where it can be present.
40617 (grub_available_iterate): Do not pass a fixed `table_header' address
40618 to grub_linuxbios_table_iterate().
40619
3d04eab8 406202008-01-15 Robert Millan <rmh@aybabtu.com>
40621
40622 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
40623 * conf/i386-ieee1275.rmk: New file.
40624 * include/grub/i386/ieee1275/console.h: Likewise.
40625 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
40626 * include/grub/i386/ieee1275/kernel.h: Likewise.
40627 * include/grub/i386/ieee1275/time.h: Likewise.
40628 * kern/i386/ieee1275/init.c: Likewise.
40629 * kern/i386/ieee1275/startup.S: Likewise.
40630
d1bc1b73 406312008-01-15 Robert Millan <rmh@aybabtu.com>
40632
40633 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
40634 when pointers are 32-bit (but still do set it to one when they are
40635 64-bit).
40636
66a65807 406372008-01-15 Robert Millan <rmh@aybabtu.com>
40638
40639 * include/grub/ieee1275/ieee1275.h
40640 (grub_ieee1275_get_integer_property): New function prototype.
40641
40642 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
40643 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 40644 grub_ieee1275_get_property() to handle endianness.
66a65807 40645
40646 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
40647 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 40648 where appropriate.
66a65807 40649 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
40650 (grub_map): Likewise.
40651 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
40652
a83ccafd 406532008-01-15 Bean <bean123ch@gmail.com>
40654
40655 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
40656 (grub_script_execute_cmdline): Reset grub_errno.
40657
40658 * normal/main.c (read_config_file): Reset grub_errno.
40659
40660 * normal/parse.y (script_init): New.
40661 (script): Move function and menuentry here.
40662 (delimiter): New.
40663 (command): Add delimiter at the end of command.
40664 (commands): Adjust to match the new command.
40665 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 40666 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 40667 (if): Use the new commands.
40668
40669 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
40670
df6ecfc6 406712008-01-15 Robert Millan <rmh@aybabtu.com>
40672
40673 * normal/menu.c (run_menu): Move timeout message from here ...
40674 (print_timeout): ... to here.
40675 (run_menu): Use print_timeout() once during initial draw to print
40676 the whole message, and again in every clock tick to update only
40677 the number of seconds.
40678
87ae25eb 406792008-01-15 Robert Millan <rmh@aybabtu.com>
40680
40681 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
40682 actual size of `available' from grub_ieee1275_get_property(), and
40683 restrict parsing to that bound.
40684
47bf09a4 406852008-01-15 Christian Franke <franke@computer.org>
40686
40687 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
40688 (argp_program_version): Remove variable.
40689 (argp_program_bug_address): Likewise.
40690 (options): Convert from struct argp_option to struct option.
40691 (struct arguments): Remove.
40692 (parse_opt): Remove.
40693 (usage): New function.
40694 (main): Replace struct args members by simple variables.
40695 Replace argp_parse() by getopt_long().
40696 Add switch to evaluate options.
40697 Add missing "(...)" around root_dev in prefix string.
40698
c86f1469 406992008-01-14 Robert Millan <rmh@aybabtu.com>
40700
40701 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
40702 for grub_ieee1275_exit(), in order to improve portability.
40703
e622c559 407042008-01-14 Robert Millan <rmh@aybabtu.com>
40705
40706 * util/grub.d/10_linux.in (prefix): Define.
40707 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
40708
44cb1ec8 407092008-01-13 Pavel Roskin <proski@gnu.org>
40710
40711 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
40712 grub_errno if no errors have been detected.
40713
1eb8c802 407142008-01-12 Robert Millan <rmh@aybabtu.com>
40715
40716 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
40717 (grub_util_get_dev_abstraction): New function prototype.
40718
40719 * util/getroot.c: Include `<grub/util/getroot.h>'
40720 (grub_util_get_grub_dev): Move detection of abstraction type to ...
40721 (grub_util_get_dev_abstraction): ... here (new function).
40722
40723 * util/grub-probe.c: Convert PRINT_* to an enum. Add
40724 `PRINT_ABSTRACTION'.
40725 (probe): Probe for abstraction type when requested.
40726 (main): Understand `--target=abstraction'.
40727
40728 * util/i386/efi/grub-install.in: Add abstraction module to core
40729 image when it is found to be necessary.
40730 * util/i386/pc/grub-install.in: Likewise.
40731 * util/powerpc/ieee1275/grub-install.in: Likewise.
40732
40733 * util/update-grub_lib.in (font_path): Return system path without
40734 converting to GRUB path.
40735 * util/update-grub.in: Convert system path returned by font_path()
40736 to a GRUB path. Use `grub-probe -t abstraction' to determine what
40737 abstraction module is needed for loading fonts (if any). Export
40738 that as `GRUB_PRELOAD_MODULES'.
40739 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
40740 insmod commands).
40741
52bd3de9 407422008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
40743
40744 Remove some unused code from reiserfs.
f19dbdb7 40745
52bd3de9 40746 * fs/reiserfs.c (struct grub_reiserfs_key)
40747 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
40748 (struct grub_reiserfs_node_body): Removed.
40749 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40750 Likewise.
40751 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40752 Likewise.
40753 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40754 Likewise.
40755 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40756 Likewise.
40757 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40758 Likewise.
40759 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
40760 Likewise.
40761 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40762 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40763 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40764
2f80039d 407652008-01-10 Robert Millan <rmh@aybabtu.com>
40766
40767 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
40768 Determines if a file is garbage left by packaging systems, etc.
40769 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
40770 for processing /etc/grub.d scripts.
40771 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
40772 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
40773 as a condition for processing Linux images.
40774
87888032 407752008-01-10 Pavel Roskin <proski@gnu.org>
40776
40777 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
40778 to compile reiserfs.c on PowerPC.
40779
7e54fced 407802008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 40781
40782 * kern/device.c (grub_device_iterate): Do not abort device iteration
40783 when one of the devices cannot be opened.
40784 * kern/disk.c (grub_disk_open): Do not account previous failures of
40785 unrelated functions when grub_errno is checked for.
40786
5aa541e6 407872008-01-08 Robert Millan <rmh@aybabtu.com>
40788
40789 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
40790 `! grub_linux_is_bzimage', change order of address comparison to make
40791 it more intuitive, and improve "too big zImage" error message.
40792
7076340d 407932008-01-08 Robert Millan <rmh@aybabtu.com>
40794
40795 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
40796 `$(update-grub_DATA)'.
40797 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
40798 targets.
40799
9ca70333 408002008-01-07 Robert Millan <rmh@aybabtu.com>
40801
40802 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
40803 which instruction is modified by grub-setup during installation
40804 (since it wasn't obvious by only looking at this file).
40805
38ccf575 408062008-01-07 Robert Millan <rmh@aybabtu.com>
40807
40808 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
40809 listing actual TODO items.
40810
f5db4291 408112008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40812
868967cf 40813 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
40814 correctly.
40815 (grub_reiserfs_get_key_offset): Likewise.
40816 (grub_reiserfs_set_key_offset): Likewise.
40817 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 40818 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 40819
40820 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
40821 better to remove the bitfield version completely.
f19dbdb7 40822
868967cf 408232008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40824
f5db4291 40825 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40826 allocated from the heap, due to the fshelp implementation.
40827 (grub_reiserfs_dir): Free NODE, due to the same reason.
40828
492e6d9d 408292008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40830
40831 Mostly from Vincent Pelletier:
f19dbdb7 40832
492e6d9d 40833 * fs/reiserfs.c: New file.
f19dbdb7 40834
492e6d9d 40835 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40836 (reiserfs_mod_SOURCES): New variable.
40837 (reiserfs_mod_CFLAGS): Likewise.
40838 (reiserfs_mod_LDFLAGS): Likewise.
40839
40840 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40841 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40842 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40843 normal/color.c.
40844
9ce3e7c1 408452008-01-06 Robert Millan <rmh@aybabtu.com>
40846
40847 * normal/color.c: Remove `<grub/env.h>'.
40848
f3b58148 408492008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40850
40851 * include/grub/normal.h: Include <grub/env.h>.
40852
7ac3bcfa 408532008-01-05 Robert Millan <rmh@aybabtu.com>
40854
40855 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40856 usage example with `(hd0,1)'.
fb358190 40857 Reported by Samuel Thibault.
7ac3bcfa 40858
c8ee99d7 408592008-01-05 Robert Millan <rmh@aybabtu.com>
40860
40861 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40862 (grub_linux_boot_zimage): Rename to ...
40863 (grub_linux_boot): ... this.
40864 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
40865 (grub_linux_boot_zimage): Conditionalize zImage copy.
40866
40867 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
40868 (grub_linux_boot_bzimage): Remove prototype.
40869 (grub_linux_boot_zimage): Rename to ...
40870 (grub_linux_boot): ... this.
40871
40872 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
40873 (grub_linux_boot): Remove function.
40874
0ece25b1 408752008-01-05 Robert Millan <rmh@aybabtu.com>
40876
40877 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40878 (grub_env_write_color_highlight): Likewise.
40879 (grub_wait_after_message): Likewise.
40880
40881 * normal/color.c: New file.
40882
40883 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40884 (normal_mod_DEPENDENCIES): Likewise.
40885
40886 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40887 (normal_mod_DEPENDENCIES): Likewise.
40888
40889 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40890 (normal_mod_DEPENDENCIES): Likewise.
40891
40892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40893 (normal_mod_DEPENDENCIES): Likewise.
40894
40895 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40896 for waiting after a message is printed.
40897 * normal/main.c (read_config_file): Likewise.
40898 (grub_normal_init): Register grub_env_write_color_normal() and
40899 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40900 `color_highlight' variables as global.
40901
40902 * normal/menu.c (grub_wait_after_message): New function.
40903 (grub_color_menu_normal): New variable. Replaces ...
40904 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40905 (grub_color_menu_highlight): New variable. Replaces ...
40906 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40907 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40908 `GRUB_TERM_COLOR_STANDARD'.
40909 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40910 `normal_code' and `highlight_code' to `old_color_normal' and
40911 `old_color_highlight', respectively.
40912 (grub_menu_init_page): Update colors when drawing the menu, based on
40913 `menu_color_normal' and `menu_color_highlight' variables.
40914 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40915 a message is printed.
40916
182dd4e5 409172008-01-05 Robert Millan <rmh@aybabtu.com>
40918
40919 * kern/env.c (grub_env_context_open): Propagate hooks for global
40920 variables to new context.
40921
40922 * kern/main.c (grub_set_root_dev): Export `root' variable.
40923
ddf8f6ad 409242008-01-05 Robert Millan <rmh@aybabtu.com>
40925
40926 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40927 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40928 them.
40929
d8b43d9b 409302008-01-05 Robert Millan <rmh@aybabtu.com>
40931
40932 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40933
2bff2de3 409342008-01-04 Christian Franke <franke@computer.org>
40935
40936 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40937 of eisa_mmap.
40938
97eab917 409392008-01-03 Pavel Roskin <proski@gnu.org>
40940
40941 * kern/i386/linuxbios/init.c: Put "void" to all function
40942 declarations with no arguments.
40943 * kern/powerpc/ieee1275/init.c: Likewise.
40944 * term/i386/pc/at_keyboard.c: Likewise.
40945 * term/i386/pc/vga_text.c: Likewise.
40946 * util/grub-mkdevicemap.c: Likewise.
40947
b9416d00 409482008-01-02 Robert Millan <rmh@aybabtu.com>
40949
40950 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40951 message when loaded image is out of bounds.
40952 (grub_multiboot_load_elf64): Likewise.
40953
92695df9 409542008-01-02 Pavel Roskin <proski@gnu.org>
40955
40956 * util/grub.d/10_linux.in: Try version without ".old" when
40957 looking for initrd. It's better to use initrd from the newer
40958 kernel of the same version than no initrd at all.
40959
d98d9cad 409602008-01-01 Robert Millan <rmh@aybabtu.com>
40961
40962 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40963
dbfdce36 409642008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40965
f19dbdb7 40966 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40967 grub_video_get_active_render_target.
40968 (grub_video_adapter): Added unmap_color and get_active_render_target.
40969
f19dbdb7 40970 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40971 grub_video_get_active_render_target.
40972 (grub_video_get_info): Changed method to accept NULL pointer as an
40973 argument to allow detection of active video adapter.
40974
40975 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40976 grub_video_vbe_unmap_color_int.
40977 Added grub_video_vbe_unmap_color and
40978 grub_video_vbe_get_active_render_target.
40979 (grub_video_vbe_adapter): Added unmap_color and
40980 get_active_render_target.
40981
f19dbdb7 40982 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40983 with grub_video_vbe_unmap_color_int.
40984
40985 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40986 (DEFAULT_NORMAL_COLOR): Likewise.
40987 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40988 (DEFAULT_FG_COLOR): Removed.
40989 (DEFAULT_BG_COLOR): Likewise.
40990 (DEFAULT_CURSOR_COLOR): Changed value.
40991 (grub_virtual_screen): Added standard_color_setting,
40992 normal_color_setting, highlight_color_setting and term_color.
40993 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40994 (bitmap_width): Added.
40995 (bitmap_height): Likewise.
40996 (bitmap): Likewise.
40997 (set_term_color): Likewise.
40998 (grub_virtual_screen_setup): Changed to use new terminal coloring
40999 settings.
41000 (grub_gfxterm_init): Added init for bitmap.
41001 (grub_gfxterm_fini): Added destroy for bitmap.
41002 (redraw_screen_rect): Updated to use background bitmap and new
41003 terminal coloring.
41004 (scroll_up): Added optimization for case when there is no bitmap.
41005 (grub_gfxterm_cls): Fixed to use correct background color.
41006 (grub_virtual_screen_setcolorstate): Changed to use new terminal
41007 coloring.
41008 (grub_virtual_screen_setcolor): Likewise.
41009 (grub_virtual_screen_getcolor): Added.
41010 (grub_gfxterm_background_image_cmd): Likewise.
41011 (grub_video_term): Added setcolor and getcolor.
41012 (MOD_INIT): Added registration of background_image command.
41013 (MOD_TERM): Added unregistration for background_image command.
41014
c3c20931 410152007-12-30 Pavel Roskin <proski@gnu.org>
41016
41017 * loader/multiboot_loader.c: Fix multiboot command
41018 unregistration. Fix all typos in the word "multiboot".
41019
df266716 410202007-12-29 Pavel Roskin <proski@gnu.org>
94239199 41021
41022 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41023 support for initrd names used in Fedora.
41024
fc6e896c 410252007-12-26 Bean <bean123ch@gmail.com>
41026
41027 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41028 (cpio_mod_SOURCES): New variable.
41029 (cpio_mod_CFLAGS): Likewise.
41030 (cpio_mod_LDFLAGS): Likewise.
41031
41032 * fs/cpio.c: New file.
41033
41034 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41035
41036 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41037
41038 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41039
41040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41041
533110ad 410422007-12-25 Robert Millan <rmh@aybabtu.com>
41043
41044 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41045 (grub_getcolor): New function.
41046
41047 * kern/term.c (grub_getcolor): New function.
41048 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41049 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41050 (print_entry): Set normal and highlight colors to
41051 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41052 respectively, before printing and restore them to old
41053 values afterwards.
41054 (grub_menu_init_page): Likewise. Fill an additional colored space
41055 that would otherwise be left blank.
41056
41057 * term/efi/console.c (grub_console_getcolor): New function.
41058 (struct grub_console_term.getcolor): New variable.
41059 * term/i386/pc/console.c (grub_console_getcolor): New function.
41060 (struct grub_console_term.getcolor): New variable.
41061 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41062 (struct grub_console_term.getcolor): New variable.
41063
41064 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41065 (struct grub_console_term.setcolor): Remove variable.
41066 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41067 (struct grub_console_term.setcolor): Remove variable.
41068 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41069 (struct grub_console_term.setcolor): Remove variable.
41070 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41071 (struct grub_console_term.setcolor): Remove variable.
41072
4931827f 410732007-12-25 Robert Millan <rmh@aybabtu.com>
41074
41075 * configure.ac: Search for possible unifont.hex locations, and
41076 define UNIFONT_HEX if found.
41077
41078 * Makefile.in (UNIFONT_HEX): Define variable.
41079 (DATA): Rename to ...
41080 (PKGLIB): ... this. Update all users.
41081 (PKGDATA): New variable.
41082 (pkgdata_IMAGES): Rename to ...
41083 (pkglib_IMAGES): ... this. Update all users.
41084 (pkgdata_MODULES): Rename to ...
41085 (pkglib_MODULES): ... this. Update all users.
41086 (pkgdata_PROGRAMS): Rename to ...
41087 (pkglib_PROGRAMS): ... this. Update all users.
41088 (pkgdata_DATA): Rename to ...
41089 (pkglib_DATA): ... this. Update all users.
41090 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41091 (unicode.pff, ascii.pff): New rules.
41092 (all-local): Add `$(PKGDATA)' dependency.
41093 (install-local): Process `$(PKGDATA)'.
41094
41095 * util/update-grub_lib.in (font_path): Search for *.pff files in
41096 a few more locations, including `${pkgdata}'.
41097
57e57e31 410982007-12-23 Robert Millan <rmh@aybabtu.com>
41099
41100 Patch from Bean <bean123ch@gmail.com>:
41101 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41102 `size'.
41103
4bc72aa9 411042007-12-21 Bean <bean123ch@gmail.com>
41105
41106 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41107 (ntfscomp_mod_SOURCES): New variable.
41108 (ntfscomp_mod_CFLAGS): Likewise.
41109 (ntfscomp_mod_LDFLAGS): Likewise.
41110
41111 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41112 (grub_probe_SOURCES): Likewise.
41113 (grub_emu_SOURCES): Likewise.
41114
41115 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41116 (grub_emu_SOURCES): Likewise.
41117
41118 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41119 (grub_emu_SOURCES): Likewise.
41120
41121 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41122 (grub_emu_SOURCES): Likewise.
41123
41124 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41125 (read_run_list): Renamed to grub_ntfs_read_run_list.
41126 (decomp_nextvcn): Moved to ntfscomp.c.
41127 (decomp_getch): Likewise.
41128 (decomp_get16): Likewise.
41129 (decomp_block): Likewise.
41130 (read_block): Likewise.
41131 (read_data): Partially moved to ntfscomp.c.
41132 (fixup): Change unsigned to grub_uint16_t.
41133 (read_mft): Change unsigned long to grub_uint32_t.
41134 (read_attr): Likewise.
41135 (read_data): Likewise.
41136 (read_run_data): Likewise.
41137 (read_run_list): Likewise.
41138 (read_mft): Likewise.
41139
41140 * fs/ntfscomp.c: New file.
41141
41142 * include/grub/ntfs.h: New file.
41143
af680a87 411442007-12-16 Robert Millan <rmh@aybabtu.com>
41145
41146 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41147 IDE disk check, since Linux is known to support 20 IDE disks.
41148 Reported by Colin Watson.
41149
84be7599 411502007-12-15 Bean <bean123ch@gmail.com>
41151
41152 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41153 (lnxboot_img_SOURCES): New variable.
41154 (lnxboot_img_ASFLAGS): Likewise.
41155 (lnxboot_img_LDFLAGS): Likewise.
41156
41157 * boot/i386/pc/lnxboot.S: New file.
41158
6af9db01 411592007-11-24 Pavel Roskin <proski@gnu.org>
41160
41161 * configure.ac: Test if '--build-id=none' is supported by the
41162 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41163 objcopy to generate incorrect binary files (binutils
41164 2.17.50.0.18-1 as shipped by Fedora 8).
41165 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41166 linking, so that build ID doesn't break the test.
41167
7361cfe6 411682007-11-24 Pavel Roskin <proski@gnu.org>
41169
41170 * include/grub/i386/time.h: use "void" in the argument list
41171 of grub_cpu_idle().
41172 * include/grub/powerpc/time.h: Likewise.
41173 * include/grub/sparc64/time.h: Likewise.
41174
1593e10c 411752007-11-18 Christian Franke <franke@computer.org>
41176
41177 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41178 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41179 This fixes the problem that function keys did not work in grub-emu.
41180
3b8db1a8 411812007-11-18 Christian Franke <franke@computer.org>
41182
41183 * disk/host.c (grub_host_open): Remove attribute unused from
41184 name parameter. Add check for "host". This fixes the problem
41185 that grub-emu does not find partitions.
41186
2e29408d 411872007-11-18 Christian Franke <franke@computer.org>
41188
41189 * util/hostfs.c (is_dir): New function.
41190 (grub_hostfs_dir): Handle missing dirent.d_type case.
41191 (grub_hostfs_read): Add missing fseek().
41192 (grub_hostfs_label): Clear label pointer. This fixes a crash
41193 of grub-emu on "ls (host)".
41194
398cd047 411952007-11-18 Christian Franke <franke@computer.org>
41196
41197 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41198 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41199 to 64 bit boundary by default.
41200
c405c391 412012007-11-18 Bean <bean123ch@gmail.com>
41202
41203 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41204 (hexdump_mod_SOURCES): New variable.
41205 (hexdump_mod_CFLAGS): Likewise.
41206 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 41207
c405c391 41208 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41209
41210 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41211
41212 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41213
41214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41215
41216 * include/grub/hexdump.h: New file.
41217
41218 * commands/hexdump.c: New file.
41219
5cced7fd 412202007-11-10 Robert Millan <rmh@aybabtu.com>
41221
41222 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41223 in grub_outb() calls.
41224 (beep_on): Likewise.
41225
8b714eb0 412262007-11-10 Christian Franke <franke@computer.org>
41227
41228 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41229 (grub_menu_run): Likewise.
41230
ce0f1839 412312007-11-10 Robert Millan <rmh@aybabtu.com>
41232
41233 * include/grub/i386/efi/machine.h: New file.
41234 * include/grub/i386/linuxbios/machine.h: Likewise.
41235 * include/grub/i386/pc/machine.h: Likewise.
41236 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41237 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41238
41239 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41240 (serial_hw_io_addr): New variable.
41241 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41242 instead of `(unsigned short *) 0x400'.
41243
270c237d 412442007-11-10 Bean <bean123ch@gmail.com>
41245
41246 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41247
a87783bf 412482007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41249
41250 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41251 (vga_mod_SOURCES): Added.
41252 (vga_mod_CFLAGS): Likewise.
41253 (vga_mod_LDFLAGS): Likewise.
41254
41255 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41256 grub_outb() calls.
41257 (set_map_mask): Likewise.
41258 (set_read_map): Likewise.
41259 (set_read_address): Likewise.
41260 (vga_font): Removed variable.
41261 (get_vga_glyph): Removed function.
41262 (invalidate_char): Likewise.
41263 (write_char): Changed to use grub_font_get_glyph() for font
41264 information.
41265 (grub_vga_putchar): Likewise.
41266 (grub_vga_getcharwidth): Likewise.
41267
6433b448 412682007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41269
41270 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41271 flags.
41272 (pxeboot_img_LDFLAGS): Likewise.
41273 (diskboot_img_LDFLAGS): Likewise.
41274 (kernel_img_LDFLAGS): Likewise.
41275
49178511 412762007-11-06 Robert Millan <rmh@aybabtu.com>
41277
41278 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41279 in grub_outb() calls.
41280 (serial_hw_init): Likewise.
41281
53b052de 412822007-11-05 Robert Millan <rmh@aybabtu.com>
41283
41284 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41285 spaces. Skip non-regular files.
41286
5ab33bba 412872007-11-05 Robert Millan <rmh@aybabtu.com>
41288
41289 * kern/disk.c (grub_disk_firmware_fini)
41290 (grub_disk_firmware_is_tainted): New variables.
41291
41292 * include/grub/disk.h (grub_disk_firmware_fini)
41293 (grub_disk_firmware_is_tainted): Likewise.
41294
41295 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41296 (grub_disk_biosdisk_fini): ... to here.
41297 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41298 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41299 is set. Register grub_disk_biosdisk_fini() in
41300 `grub_disk_firmware_fini'.
41301
41302 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
41303 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
41304 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
41305 to finish existing firmware disk interface.
41306
41307 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
41308 (ata_mod_SOURCES): New variable.
41309 (ata_mod_CFLAGS): Likewise.
41310 (ata_mod_LDFLAGS): Likewise.
41311
0149ab7c 413122007-11-05 Robert Millan <rmh@aybabtu.com>
41313
41314 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
41315 (grub_ata_wait): Reimplement using grub_millisleep().
41316
41317 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
41318 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
41319
be7ac41e 413202007-11-03 Marco Gerards <marco@gnu.org>
41321
41322 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
41323 (CRTC_ADDR_PORT): New macro.
41324 (CRTC_DATA_PORT): Likewise.
41325 (CRTC_CURSOR): Likewise.
41326 (CRTC_CURSOR_ADDR_HIGH): Likewise.
41327 (CRTC_CURSOR_ADDR_LOW): Likewise.
41328 (update_cursor): New function.
41329 (grub_console_real_putchar): Call `update_cursor'.
41330 (grub_console_gotoxy): Likewise.
41331 (grub_console_cls): Set the default color when clearing the
41332 screen.
41333 (grub_console_setcursor): Implemented.
41334
bb06ab2e 413352007-11-03 Marco Gerards <marco@gnu.org>
41336
41337 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
41338 become activate.
41339 (grub_ata_pio_write): Likewise.
41340
41341 (grub_atapi_identify): Wait after issuing an ATA command.
41342 (grub_atapi_packet): Likewise.
41343 (grub_ata_identify): Likewise.
41344 (grub_ata_readwrite): Likewise.
41345
cf8f780b 413462007-11-03 Marco Gerards <marco@gnu.org>
41347
41348 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
41349 (grub_ata_pio_write): Likewise.
41350 (grub_ata_readwrite): Use `grub_error', instead of
41351 returning `grub_errno'.
41352
ed649e54 413532007-11-03 Marco Gerards <marco@gnu.org>
41354
41355 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
41356 grub_ata_pio_write once for every single sector, instead of for
41357 multiple sectors.
41358
ca25d8f0 413592007-10-31 Robert Millan <rmh@aybabtu.com>
41360
41361 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
41362
41363 * conf/i386-linuxbios.rmk: New file.
41364
41365 * kern/i386/pc/hardware.c: Likewise.
41366 * term/i386/pc/at_keyboard.c: Likewise.
41367 * term/i386/pc/vga_text.c: Likewise.
41368
41369 * include/grub/i386/linuxbios/boot.h: Likewise.
41370 * include/grub/i386/linuxbios/console.h: Likewise.
41371 * include/grub/i386/linuxbios/init.h: Likewise.
41372 * include/grub/i386/linuxbios/kernel.h: Likewise.
41373 * include/grub/i386/linuxbios/loader.h: Likewise.
41374 * include/grub/i386/linuxbios/memory.h: Likewise.
41375 * include/grub/i386/linuxbios/serial.h: Likewise.
41376 * include/grub/i386/linuxbios/time.h: Likewise.
41377
41378 * kern/i386/linuxbios/init.c: Likewise.
41379 * kern/i386/linuxbios/startup.S: Likewise.
41380 * kern/i386/linuxbios/table.c: Likewise.
41381
e911ecc1 413822007-10-31 Marco Gerards <marco@gnu.org>
41383
41384 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
41385 (ata_mod_SOURCES): New variable.
41386 (ata_mod_CFLAGS): Likewise.
41387 (ata_mod_LDFLAGS): Likewise.
41388
41389 * disk/ata.c: New file.
41390
41391 * include/grub/disk.h (grub_disk_dev_id): Add
41392 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 41393
7f66d0e0 413942007-10-31 Robert Millan <rmh@aybabtu.com>
41395
41396 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
41397 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
41398
41399 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
41400 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
41401
41402 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
41403 `<grub/types.h>'.
41404
41405 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
41406
5cd7dd46 414072007-10-27 Robert Millan <rmh@aybabtu.com>
41408
3236ca65 41409 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 41410
2ebfc90f 414112007-10-22 Robert Millan <rmh@aybabtu.com>
41412
41413 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
41414 `"../realmode.S"'.
41415 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
41416
73fcb0f3 414172007-10-22 Robert Millan <rmh@aybabtu.com>
41418
41419 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
41420 (pkgdata_MODULES): Add `biosdisk.mod'.
41421 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
41422 variables.
41423
41424 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
41425 (grub_biosdisk_init): Replace with ...
41426 (GRUB_MOD_INIT(biosdisk)): ... this.
41427 (grub_biosdisk_fini): Replace with ...
41428 (GRUB_MOD_FINI(biosdisk)): ... this.
41429
41430 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
41431 (grub_machine_init): Remove call to grub_biosdisk_init().
41432 (grub_machine_fini): Remove call to grub_machine_fini().
41433
41434 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
41435
3381d274 414362007-10-22 Robert Millan <rmh@aybabtu.com>
41437
41438 * include/grub/time.h: New file.
41439 * include/grub/i386/time.h: Likewise.
41440 * include/grub/powerpc/time.h: Likewise.
41441 * include/grub/sparc64/time.h: Likewise.
41442
41443 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
41444 instances to ...
41445 (KERNEL_MACHINE_TIME_HEADER): ... this.
41446 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41447 instances to ...
41448 (KERNEL_MACHINE_TIME_HEADER): ... this.
41449 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41450 instances to ...
41451 (KERNEL_MACHINE_TIME_HEADER): ... this.
41452
41453 * kern/i386/efi/init.c: Include `<grub/time.h>'.
41454 (grub_millisleep): New function.
41455 * kern/i386/pc/init.c: Include `<grub/time.h>'.
41456 (grub_millisleep): New function.
41457 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
41458 Remove `grub/machine/time.h' include.
41459 (grub_millisleep): New function.
41460 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
41461 Remove `grub/machine/time.h' include.
41462 (grub_millisleep): New function.
41463
41464 * include/grub/misc.h (grub_div_roundup): New function.
41465
41466 * kern/misc.c: Include `<grub/time.h>'.
41467 (grub_millisleep_generic): New function.
41468
41469 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
41470 Add `time.h'.
41471 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
41472 Add `time.h'.
41473 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
41474 `machine/time.h'. Add `time.h'.
41475 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41476
a39a0312 414772007-10-21 Robert Millan <rmh@aybabtu.com>
41478
41479 * include/grub/misc.h (grub_max): New function.
41480
2aad70e2 414812007-10-21 Robert Millan <rmh@aybabtu.com>
41482
41483 * util/misc.c (grub_util_info): Call fflush() before returning.
41484
54b71c4b 414852007-10-20 Robert Millan <rmh@aybabtu.com>
41486
41487 * genmk.rb (Image): Copy `extra_flags' from here ...
41488 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
41489
41490 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
41491 to `argc' and `args' arguments.
41492
a979f513 414932007-10-17 Robert Millan <rmh@aybabtu.com>
41494
41495 * kern/i386/loader.S: New file.
41496
41497 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
41498 * kern/i386/loader.S (grub_linux_prot_size)... to here.
41499 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
41500 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
41501 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
41502 * kern/i386/loader.S (grub_linux_real_addr)... to here.
41503 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
41504 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
41505 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
41506 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
41507 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
41508 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
41509 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
41510 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
41511
41512 * kern/i386/realmode.S: New file.
41513
41514 * kern/i386/pc/startup.S (protstack): Moved from here ...
41515 * kern/i386/realmode.S (protstack)... to here.
41516 * kern/i386/pc/startup.S (gdt): Moved from here ...
41517 * kern/i386/realmode.S (gdt)... to here.
41518 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
41519 * kern/i386/realmode.S (prot_to_real)... to here.
41520
41521 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
41522 `kern/i386/realmode.S'.
41523
825fc8fd 415242007-10-17 Robert Millan <rmh@aybabtu.com>
41525
41526 * include/grub/i386/loader.h: New file.
41527
41528 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
41529 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41530 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41531 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41532 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
41533 * include/grub/i386/loader.h (grub_linux_prot_size)
41534 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41535 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41536 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41537 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
41538
41539 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
41540
e179b2f4 415412007-10-15 Robert Millan <rmh@aybabtu.com>
41542
41543 * normal/misc.c (grub_normal_print_device_info): Do not probe for
41544 filesystem when dev->disk is unset.
41545 Do probe for filesystem even when dev->disk->has_partitions is set.
41546 In case a filesystem is found, always report it.
41547 In case it isn't, if dev->disk->has_partitions is set, report that
41548 a partition table was found instead of reporting that no filesystem
41549 could be identified.
41550
5db82af6 415512007-10-12 Robert Millan <rmh@aybabtu.com>
41552
41553 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
41554 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
41555
68f6ac74 41556 * include/grub/types.h (grub_host_to_target16): New macro.
41557 (grub_host_to_target32): Likewise.
41558 (grub_host_to_target64): Likewise.
41559 (grub_target_to_host16): Likewise.
41560 (grub_target_to_host32): Likewise.
41561 (grub_target_to_host64): Likewise.
5db82af6 41562
41563 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41564 Renamed from to ...
41565 (GRUB_MOD_ALIGN): ...this. Update all users.
41566
68f6ac74 41567 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
41568 grub_host_to_target32.
41569 Replace grub_be_to_cpu32 with grub_target_to_host32.
41570 (load_modules): Likewise.
41571 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
41572 Replace grub_be_to_cpu32 with grub_target_to_host32.
41573 Replace grub_cpu_to_be16 with grub_host_to_target16.
41574 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 41575
3cf497cc 415762007-10-12 Robert Millan <rmh@aybabtu.com>
41577
41578 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
41579 * util/elf/grub-mkimage.c: ... here.
41580
41581 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
41582 `util/powerpc/ieee1275/grub-mkimage.c'.
41583
c8cc3692 415842007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 41585
c8cc3692 41586 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
41587 and make it easier to figure out.
41588 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
41589 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
41590 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
41591 leave us with less than HEAP_MIN_SIZE total heap.
41592 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 41593
5c58b791 415942007-10-03 Robert Millan <rmh@aybabtu.com>
41595
41596 * include/grub/i386/io.h: New file.
41597 * commands/i386/pc/play.c (inb): Removed.
41598 (outb): Removed.
41599 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41600 with grub_outb().
afcd2ef8 41601 * term/i386/pc/serial.c (inb): Removed.
41602 (outb): Removed.
41603 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41604 with grub_outb().
41605 * term/i386/pc/vga.c (inb): Removed.
41606 (outb): Removed.
41607 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41608 with grub_outb().
5c58b791 41609
1a477ed6 416102007-10-02 Robert Millan <rmh@aybabtu.com>
41611
41612 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
41613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41614 Reported by Marcin Kurek.
41615
6b5d80fa 416162007-09-07 Robert Millan <rmh@aybabtu.com>
41617
41618 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
41619 SmartFirmware version updates (as released by Sven Luther), and avoid
41620 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
41621 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
41622 known broken.
41623
5618afbf 416242007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41625
41626 From Hitoshi Ozeki:
41627 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
41628 when merging two regions.
41629
6139dcd9 416302007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41631
508e39ee 41632 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
41633 * normal/completion.c (grub_normal_do_completion): Likewise.
41634 Reported by Hitoshi Ozeki.
41635
416362007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 41637
6139dcd9 41638 Do not use devices at boot in chainloading.
f19dbdb7 41639
6139dcd9 41640 * loader/i386/pc/chainloader.c (boot_drive): New variable.
41641 (boot_part_addr): Likewise.
41642 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
41643 with BOOT_DRIVE and BOOT_PART_ADDR.
41644 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
41645 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
41646
38da6516 416472007-08-29 Robert Millan <rmh@aybabtu.com>
41648
41649 Patch from Simon Peter <dn.tlp@gmx.net>:
41650 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
41651 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
41652 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
41653 util/i386/pc/grub-setup.c_DEPENDENCIES.
41654 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
41655 util/grub-probe.c_DEPENDENCIES.
41656 * conf/powerpc-ieee1275.rmk: Likewise.
41657
29d0928c 416582007-08-28 Robert Millan <rmh@aybabtu.com>
41659
41660 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
41661 to tell grub-mkdevicemap how to name devices.
41662 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
41663 feature).
41664
41665 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
41666 util/i386/get_disk_name.c.
41667 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
41668 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
41669 util/ieee1275/get_disk_name.c.
41670
41671 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
41672
41673 * DISTLIST: Add util/i386/get_disk_name.c and
41674 util/ieee1275/get_disk_name.c.
41675
41676 * util/grub-mkdevicemap.c: Replace device naming logic with
41677 grub_util_get_disk_name() calls.
41678
5a0d3cca 416792007-08-20 Robert Millan <rmh@aybabtu.com>
41680
41681 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
41682 (so that it works for both plural and singular quantities).
41683
8b72db2f 416842007-08-05 Robert Millan <rmh@aybabtu.com>
41685
41686 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
41687 so that [xz] isn't taken into account when determining order.
41688
352466bf 416892007-08-02 Marco Gerards <marco@gnu.org>
41690
41691 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
41692 `include/multiboot2.h', `include/grub/elfload.h',
41693 `include/multiboot.h', `include/grub/multiboot.h',
41694 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
41695 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
41696 `kern/elf.c', `loader/multiboot_loader.c',
41697 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
41698 `loader/i386/pc/multiboot2.c',
41699 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
41700 `util/i386/pc/grub-mkrescue.in'. Remove
41701 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
41702 `include/grub/i386/pc/util/biosdisk.h' and
41703 `include/grub/powerpc/ieee1275/multiboot.h'.
41704
8f096014 417052007-08-02 Bean <bean123ch@gmail.com>
41706
41707 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
41708 (ntfs_mod_SOURCES): New variable.
41709 (ntfs_mod_CFLAGS): Likewise.
41710 (ntfs_mod_LDFLAGS): Likewise.
41711
41712 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
41713 (grub_probe_SOURCES): Likewise.
41714 (grub_emu_SOURCES): Likewise.
41715
41716 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41717 (grub_emu_SOURCES): Likewise.
41718
41719 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41720 (grub_emu_SOURCES): Likewise.
f19dbdb7 41721
8f096014 41722 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
41723
41724 * fs/ntfs.c: New file.
41725
9959f7db 417262007-08-02 Bean <bean123ch@gmail.com>
41727
41728 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
41729
41730 * file.h (grub_file): Likewise.
41731
41732 * fshelp.h (grub_fshelp_read_file): Likewise.
41733
41734 * util/i386/pc/grub-setup.c (setup): Likewise.
41735 (save_first_sector): Likewise.
41736 (save_blocklists): Likewise.
f19dbdb7 41737
9959f7db 41738 * fs/affs.c (grub_affs_read_file): Likewise.
41739
41740 * fs/ext2.c (grub_ext2_read_file): Likewise.
41741
41742 * fs/fat.c (grub_fat_read_data): Likewise.
41743
41744 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
41745
41746 * fs/hfs.c (grub_hfs_read_file): Likewise.
41747
41748 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41749
41750 * fs/jfs.c (grub_jfs_read_file): Likewise.
41751
41752 * fs/minix.c (grub_minix_read_file): Likewise.
41753
41754 * fs/sfs.c (grub_sfs_read_file): Likewise.
41755
41756 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 41757
9959f7db 41758 * fs/xfs.c (grub_xfs_read_file): Likewise.
41759
41760 * command/blocklist.c (read_blocklist): Likewise.
41761 (print_blocklist): Likewise.
41762
0a203f83 417632007-08-02 Marco Gerards <marco@gnu.org>
41764
41765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
41766 `util/hostfs.c'.
41767
41768 * disk/host.c: New file.
41769
41770 * util/hostfs.c: Likewise.
41771
41772 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
41773 return `GRUB_ERR_BAD_FS'.
41774 * fs/sfs.c (grub_sfs_mount): Likewise.
41775 * fs/xfs.c (grub_xfs_mount): Likewise.
41776
41777 * include/grub/disk.h (enum grub_disk_dev_id): Add
41778 `GRUB_DISK_DEVICE_HOST_ID'.
41779
41780 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
41781
e5dfe777 417822007-07-24 Jerone Young <jerone@gmail.com>
41783
f19dbdb7 41784 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 41785 modules for compilation.
41786 * conf/powerpc-ieee1275.rmk: Likewise.
41787
41788 * include/multiboot.h: Move multiboot definitions to one file. Rename
41789 many definitions to not get grub specific.
41790 * include/multiboot2.h: Create header with multiboot 2 definitions.
41791 * include/grub/multiboot.h: Header for grub specific function
41792 prototypes and definitions.
41793 * include/grub/multiboot2.h: Likewise.
41794 * include/grub/multiboot_loader.h: Likewise.
41795 * include/grub/i386/pc/multiboot.h: Removed.
41796 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
41797
41798 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
41799 and 2 to allow for one multiboot and module commands.
41800 * loader/multiboot2.c: Add multiboot2 functionality.
41801 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
41802 and definition names.
41803 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
41804 2 functions.
41805 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
41806 ieee1275 specific multiboot2 code.
41807
41808 * kern/i386/pc/startup.S: Change headers and definition names for
41809 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
41810
daf0f0ba 418112007-07-22 Robert Millan <rmh@aybabtu.com>
41812
41813 * geninitheader.sh: Process file specified in first parameter rather
41814 than hardcoding grub_modules_init.lst.
fe6b695a 41815 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 41816 than hardcoding grub_modules_init.h.
41817
41818 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
41819 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
41820 grub_probe_init.[ch] and grub_setup_init.[ch].
41821
41822 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
41823 grub_modules_init.h with grub_emu_init.h.
41824 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
41825 grub_probe_init.[ch] files.
41826 * conf/i386-efi.rmk: Likewise.
41827 * conf/i386-pc.rmk: Likewise.
41828 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41829 grub_setup_init.[ch] files.
41830
41831 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41832 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41833 to initialize modules rather than a list of hardcoded functions.
41834 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41835 grub_init_all() to initialize modules rather than a list of hardcoded
41836 functions.
41837
54cdc1cc 418382007-07-22 Robert Millan <rmh@aybabtu.com>
41839
41840 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41841 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41842
ad0686cc 418432007-07-22 Robert Millan <rmh@aybabtu.com>
41844
41845 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41846 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41847 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41848 flag when running on SmartFirmware.
41849 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41850 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41851 was set.
41852
41853 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41854 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41855 rather than decreasing it.
41856
41857 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41858 there's not enough space to do it, fail in the same way as when it
41859 can't be done because there are no partitions.
41860
41861 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41862 when nvsetenv failed.
41863
969c02ec 418642007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41865
41866 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
41867 because this rule is automatically generated.
41868 (grub-mkrescue): Removed for the same reason as above.
41869
5a79f472 418702007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41871
41872 Migrate to GNU General Public License Version 3.
f19dbdb7 41873
5a79f472 41874 * COPYING: Replaced with the plain text version of GPLv3.
41875
41876 * config.guess: Updated from gnulib.
41877 * config.sub: Likewise.
41878
41879 * geninit.sh: Output a GPLv3 copyright notice.
41880 * geninitheader.sh: Likewise.
41881 * genmodsrc.sh: Likewise.
41882 * gensymlist.sh.in: Likewise.
41883
41884 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41885 * boot/i386/pc/diskboot.S: Likewise.
41886 * boot/i386/pc/pxeboot.S: Likewise.
41887 * commands/blocklist.c: Likewise.
41888 * commands/boot.c: Likewise.
41889 * commands/cat.c: Likewise.
41890 * commands/cmp.c: Likewise.
41891 * commands/configfile.c: Likewise.
41892 * commands/echo.c: Likewise.
41893 * commands/help.c: Likewise.
41894 * commands/ls.c: Likewise.
41895 * commands/search.c: Likewise.
41896 * commands/terminal.c: Likewise.
41897 * commands/test.c: Likewise.
41898 * commands/videotest.c: Likewise.
41899 * commands/i386/cpuid.c: Likewise.
41900 * commands/i386/pc/halt.c: Likewise.
41901 * commands/i386/pc/play.c: Likewise.
41902 * commands/i386/pc/reboot.c: Likewise.
41903 * commands/i386/pc/vbeinfo.c: Likewise.
41904 * commands/i386/pc/vbetest.c: Likewise.
41905 * commands/ieee1275/halt.c: Likewise.
41906 * commands/ieee1275/reboot.c: Likewise.
41907 * commands/ieee1275/suspend.c: Likewise.
41908 * disk/loopback.c: Likewise.
41909 * disk/lvm.c: Likewise.
41910 * disk/raid.c: Likewise.
41911 * disk/efi/efidisk.c: Likewise.
41912 * disk/i386/pc/biosdisk.c: Likewise.
41913 * disk/ieee1275/ofdisk.c: Likewise.
41914 * font/manager.c: Likewise.
41915 * fs/affs.c: Likewise.
41916 * fs/ext2.c: Likewise.
41917 * fs/fat.c: Likewise.
41918 * fs/fshelp.c: Likewise.
41919 * fs/hfs.c: Likewise.
41920 * fs/hfsplus.c: Likewise.
41921 * fs/iso9660.c: Likewise.
41922 * fs/jfs.c: Likewise.
41923 * fs/minix.c: Likewise.
41924 * fs/sfs.c: Likewise.
41925 * fs/ufs.c: Likewise.
41926 * fs/xfs.c: Likewise.
41927 * hello/hello.c: Likewise.
41928 * include/grub/acorn_filecore.h: Likewise.
41929 * include/grub/arg.h: Likewise.
41930 * include/grub/bitmap.h: Likewise.
41931 * include/grub/boot.h: Likewise.
41932 * include/grub/cache.h: Likewise.
41933 * include/grub/device.h: Likewise.
41934 * include/grub/disk.h: Likewise.
41935 * include/grub/dl.h: Likewise.
41936 * include/grub/elfload.h: Likewise.
41937 * include/grub/env.h: Likewise.
41938 * include/grub/err.h: Likewise.
41939 * include/grub/file.h: Likewise.
41940 * include/grub/font.h: Likewise.
41941 * include/grub/fs.h: Likewise.
41942 * include/grub/fshelp.h: Likewise.
41943 * include/grub/gzio.h: Likewise.
41944 * include/grub/hfs.h: Likewise.
41945 * include/grub/kernel.h: Likewise.
41946 * include/grub/loader.h: Likewise.
41947 * include/grub/lvm.h: Likewise.
41948 * include/grub/misc.h: Likewise.
41949 * include/grub/mm.h: Likewise.
41950 * include/grub/net.h: Likewise.
41951 * include/grub/normal.h: Likewise.
41952 * include/grub/parser.h: Likewise.
41953 * include/grub/partition.h: Likewise.
41954 * include/grub/pc_partition.h: Likewise.
41955 * include/grub/raid.h: Likewise.
41956 * include/grub/rescue.h: Likewise.
41957 * include/grub/script.h: Likewise.
41958 * include/grub/setjmp.h: Likewise.
41959 * include/grub/symbol.h: Likewise.
41960 * include/grub/term.h: Likewise.
41961 * include/grub/terminfo.h: Likewise.
41962 * include/grub/tparm.h: Likewise.
41963 * include/grub/types.h: Likewise.
41964 * include/grub/video.h: Likewise.
41965 * include/grub/efi/api.h: Likewise.
41966 * include/grub/efi/chainloader.h: Likewise.
41967 * include/grub/efi/console.h: Likewise.
41968 * include/grub/efi/console_control.h: Likewise.
41969 * include/grub/efi/disk.h: Likewise.
41970 * include/grub/efi/efi.h: Likewise.
41971 * include/grub/efi/pe32.h: Likewise.
41972 * include/grub/efi/time.h: Likewise.
41973 * include/grub/i386/linux.h: Likewise.
41974 * include/grub/i386/setjmp.h: Likewise.
41975 * include/grub/i386/types.h: Likewise.
41976 * include/grub/i386/efi/kernel.h: Likewise.
41977 * include/grub/i386/efi/loader.h: Likewise.
41978 * include/grub/i386/efi/time.h: Likewise.
41979 * include/grub/i386/pc/biosdisk.h: Likewise.
41980 * include/grub/i386/pc/boot.h: Likewise.
41981 * include/grub/i386/pc/chainloader.h: Likewise.
41982 * include/grub/i386/pc/console.h: Likewise.
41983 * include/grub/i386/pc/init.h: Likewise.
41984 * include/grub/i386/pc/kernel.h: Likewise.
41985 * include/grub/i386/pc/loader.h: Likewise.
41986 * include/grub/i386/pc/memory.h: Likewise.
41987 * include/grub/i386/pc/multiboot.h: Likewise.
41988 * include/grub/i386/pc/serial.h: Likewise.
41989 * include/grub/i386/pc/time.h: Likewise.
41990 * include/grub/i386/pc/vbe.h: Likewise.
41991 * include/grub/i386/pc/vbeblit.h: Likewise.
41992 * include/grub/i386/pc/vbefill.h: Likewise.
41993 * include/grub/i386/pc/vbeutil.h: Likewise.
41994 * include/grub/i386/pc/vga.h: Likewise.
41995 * include/grub/ieee1275/ieee1275.h: Likewise.
41996 * include/grub/ieee1275/ofdisk.h: Likewise.
41997 * include/grub/powerpc/libgcc.h: Likewise.
41998 * include/grub/powerpc/setjmp.h: Likewise.
41999 * include/grub/powerpc/types.h: Likewise.
42000 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
42001 * include/grub/powerpc/ieee1275/console.h: Likewise.
42002 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
42003 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
42004 * include/grub/powerpc/ieee1275/loader.h: Likewise.
42005 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
42006 * include/grub/powerpc/ieee1275/time.h: Likewise.
42007 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
42008 * include/grub/sparc64/libgcc.h: Likewise.
42009 * include/grub/sparc64/setjmp.h: Likewise.
42010 * include/grub/sparc64/types.h: Likewise.
42011 * include/grub/sparc64/ieee1275/console.h: Likewise.
42012 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
42013 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
42014 * include/grub/sparc64/ieee1275/time.h: Likewise.
42015 * include/grub/util/biosdisk.h: Likewise.
42016 * include/grub/util/getroot.h: Likewise.
42017 * include/grub/util/lvm.h: Likewise.
42018 * include/grub/util/misc.h: Likewise.
42019 * include/grub/util/raid.h: Likewise.
42020 * include/grub/util/resolve.h: Likewise.
42021 * io/gzio.c: Likewise.
42022 * kern/device.c: Likewise.
42023 * kern/disk.c: Likewise.
42024 * kern/dl.c: Likewise.
42025 * kern/elf.c: Likewise.
42026 * kern/env.c: Likewise.
42027 * kern/err.c: Likewise.
42028 * kern/file.c: Likewise.
42029 * kern/fs.c: Likewise.
42030 * kern/loader.c: Likewise.
42031 * kern/main.c: Likewise.
42032 * kern/misc.c: Likewise.
42033 * kern/mm.c: Likewise.
42034 * kern/parser.c: Likewise.
42035 * kern/partition.c: Likewise.
42036 * kern/rescue.c: Likewise.
42037 * kern/term.c: Likewise.
42038 * kern/efi/efi.c: Likewise.
42039 * kern/efi/init.c: Likewise.
42040 * kern/efi/mm.c: Likewise.
42041 * kern/i386/dl.c: Likewise.
42042 * kern/i386/efi/init.c: Likewise.
42043 * kern/i386/efi/startup.S: Likewise.
42044 * kern/i386/pc/init.c: Likewise.
42045 * kern/i386/pc/lzo1x.S: Likewise.
42046 * kern/i386/pc/startup.S: Likewise.
42047 * kern/ieee1275/ieee1275.c: Likewise.
42048 * kern/powerpc/cache.S: Likewise.
42049 * kern/powerpc/dl.c: Likewise.
42050 * kern/powerpc/ieee1275/cmain.c: Likewise.
42051 * kern/powerpc/ieee1275/crt0.S: Likewise.
42052 * kern/powerpc/ieee1275/init.c: Likewise.
42053 * kern/powerpc/ieee1275/openfw.c: Likewise.
42054 * kern/sparc64/cache.S: Likewise.
42055 * kern/sparc64/dl.c: Likewise.
42056 * kern/sparc64/ieee1275/init.c: Likewise.
42057 * kern/sparc64/ieee1275/openfw.c: Likewise.
42058 * loader/efi/chainloader.c: Likewise.
42059 * loader/efi/chainloader_normal.c: Likewise.
42060 * loader/i386/efi/linux.c: Likewise.
42061 * loader/i386/efi/linux_normal.c: Likewise.
42062 * loader/i386/pc/chainloader.c: Likewise.
42063 * loader/i386/pc/chainloader_normal.c: Likewise.
42064 * loader/i386/pc/linux.c: Likewise.
42065 * loader/i386/pc/linux_normal.c: Likewise.
42066 * loader/i386/pc/multiboot.c: Likewise.
42067 * loader/i386/pc/multiboot_normal.c: Likewise.
42068 * loader/powerpc/ieee1275/linux.c: Likewise.
42069 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42070 * normal/arg.c: Likewise.
42071 * normal/cmdline.c: Likewise.
42072 * normal/command.c: Likewise.
42073 * normal/completion.c: Likewise.
42074 * normal/execute.c: Likewise.
42075 * normal/function.c: Likewise.
42076 * normal/lexer.c: Likewise.
42077 * normal/main.c: Likewise.
42078 * normal/menu.c: Likewise.
42079 * normal/menu_entry.c: Likewise.
42080 * normal/misc.c: Likewise.
42081 * normal/parser.y: Likewise.
42082 * normal/script.c: Likewise.
42083 * normal/i386/setjmp.S: Likewise.
42084 * normal/powerpc/setjmp.S: Likewise.
42085 * normal/sparc64/setjmp.S: Likewise.
42086 * partmap/acorn.c: Likewise.
42087 * partmap/amiga.c: Likewise.
42088 * partmap/apple.c: Likewise.
42089 * partmap/gpt.c: Likewise.
42090 * partmap/pc.c: Likewise.
42091 * partmap/sun.c: Likewise.
42092 * term/gfxterm.c: Likewise.
42093 * term/terminfo.c: Likewise.
42094 * term/efi/console.c: Likewise.
42095 * term/i386/pc/console.c: Likewise.
42096 * term/i386/pc/serial.c: Likewise.
42097 * term/i386/pc/vesafb.c: Likewise.
42098 * term/i386/pc/vga.c: Likewise.
42099 * term/ieee1275/ofconsole.c: Likewise.
42100 * util/biosdisk.c: Likewise.
42101 * util/console.c: Likewise.
42102 * util/genmoddep.c: Likewise.
42103 * util/getroot.c: Likewise.
42104 * util/grub-emu.c: Likewise.
42105 * util/grub-mkdevicemap.c: Likewise.
42106 * util/grub-probe.c: Likewise.
42107 * util/lvm.c: Likewise.
42108 * util/misc.c: Likewise.
42109 * util/raid.c: Likewise.
42110 * util/resolve.c: Likewise.
42111 * util/update-grub.in: Likewise.
42112 * util/update-grub_lib.in: Likewise.
42113 * util/grub.d/00_header.in: Likewise.
42114 * util/grub.d/10_hurd.in: Likewise.
42115 * util/grub.d/10_linux.in: Likewise.
42116 * util/i386/efi/grub-install.in: Likewise.
42117 * util/i386/efi/grub-mkimage.c: Likewise.
42118 * util/i386/pc/grub-install.in: Likewise.
42119 * util/i386/pc/grub-mkimage.c: Likewise.
42120 * util/i386/pc/grub-mkrescue.in: Likewise.
42121 * util/i386/pc/grub-setup.c: Likewise.
42122 * util/i386/pc/misc.c: Likewise.
42123 * util/powerpc/ieee1275/grub-install.in: Likewise.
42124 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42125 * util/powerpc/ieee1275/misc.c: Likewise.
42126 * video/bitmap.c: Likewise.
42127 * video/video.c: Likewise.
42128 * video/i386/pc/vbe.c: Likewise.
42129 * video/i386/pc/vbeblit.c: Likewise.
42130 * video/i386/pc/vbefill.c: Likewise.
42131 * video/i386/pc/vbeutil.c: Likewise.
42132 * video/readers/tga.c: Likewise.
42133
3572d015 421342007-07-02 Robert Millan <rmh@aybabtu.com>
42135
42136 * conf/i386-efi.rmk: Replace obsolete reference to
42137 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42138 with util/getroot.c.
42139 * conf/powerpc-ieee1275.rmk: Likewise.
42140 * conf/sparc64-ieee1275.rmk: Likewise.
42141
42142 * util/grub-emu.c (main): Fix unchecked pointer handling.
42143
2c2a681b 421442007-07-02 Robert Millan <rmh@aybabtu.com>
42145
42146 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42147 invocation to fail, in order to support partition-less media.
42148
42149 * util/i386/pc/grub-install.in: Likewise.
42150
42151 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42152 which fs or partmap modules are needed (akin to its sister scripts).
42153
42154 Also use grub-probe to get rid of unportable /proc/mounts check.
42155
42156 Print the same informational message that the other scripts do, before
fe6b695a 42157 exiting.
2c2a681b 42158
6193defe 421592007-06-23 Robert Millan <rmh@aybabtu.com>
42160
fe6b695a 42161 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 42162 a font file can be found and, if so, echo the GRUB path to it.
42163
42164 * util/update-grub.in: Handle multiple terminals depending on user
42165 input, platform availability and font file presence. Propagate
42166 variables of our findings to /etc/grub.d/ children.
42167
42168 * util/grub.d/00_header.in: Handle multiple terminals, based on
42169 environment setup by update-grub.
42170
eface1dc 421712007-06-23 Robert Millan <rmh@aybabtu.com>
42172
ba50d28f 42173 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 42174
bf697e28 421752007-06-21 Robert Millan <rmh@aybabtu.com>
42176
42177 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42178 indicate end of data section in kernel image.
42179 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42180 GRUB_KERNEL_MACHINE_DATA_END.
42181
42182 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42183 space for it.
42184 * kern/i386/efi/startup.S: Likewise.
42185
42186 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42187 during image generation. Implement --prefix option to override this
42188 patch.
42189 * util/i386/efi/grub-mkimage.c: Likewise.
42190
42191 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42192 code to make path relative to its root into a separate function.
42193
42194 * util/i386/pc/grub-install.in: Use newly provided
42195 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42196 pass the result to grub-install --prefix.
42197
baa574b4 421982007-06-13 Robert Millan <rmh@aybabtu.com>
42199
42200 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42201 DEFAULT_DEVICE_MAP.
42202 * util/grub-emu.c: Use above definitions from misc.h instead of
42203 defining them.
42204 * util/grub-mkdevicemap.c: Likewise.
42205 * util/i386/pc/grub-setup.c: Likewise.
42206 * util/grub-probe.c: Likewise.
42207 (probe): Abort with grub_util_error() when either
42208 grub_guess_root_device or grub_util_get_grub_dev fails.
42209
0215dcbf 422102007-06-12 Robert Millan <rmh@aybabtu.com>
42211
42212 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42213 "pager" assignment.
42214 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42215 "pcdata".
42216 * util/grub-probe.c (probe): Likewise for "drive_name".
42217
8af2ab7b 422182007-06-11 Robert Millan <rmh@aybabtu.com>
42219
42220 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42221 not just the cdrom one.
42222
59d31694 422232007-06-11 Robert Millan <rmh@aybabtu.com>
42224
42225 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42226 Add --pkglibdir=DIR option to override pkglibdir.
42227 Mention --image-type=TYPE in help output.
42228 Fix --grub-mkimage (it was a no-op).
fe6b695a 42229 Abort gracefully when no parameter is given.
59d31694 42230
7ee367e4 422312007-06-11 Robert Millan <rmh@aybabtu.com>
42232
42233 * util/i386/pc/grub-mkrescue.in: New file.
42234 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42235 * Makefile.in: Handle bin_SCRIPTS.
42236
29b0ed46 422372007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42238
42239 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42240 list of video modes.
42241
c0f90770 422422007-06-06 Robert Millan <rmh@aybabtu.com>
42243
42244 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42245 file doesn't exist, or if it is in a filesystem grub can't read.
42246
42247 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42248 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42249 header comment to fit in 80 columns when the variables are resolved.
42250
42251 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42252 could be identified by update-grub. Remove redundant check for
fe6b695a 42253 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 42254 handles that).
42255
fb36dc26 422562007-06-04 Robert Millan <rmh@aybabtu.com>
42257
42258 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42259
42260 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42261
42262 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42263
0c68c93e 422642007-06-04 Robert Millan <rmh@aybabtu.com>
42265
42266 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42267
42268 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42269 grub_apple_partition_map_fini.
42270
42271 * util/biosdisk.c
42272 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42273 to access >2 TiB disks).
42274
42275 Print disk->total_sectors with %llu instead of %lu, since this
42276 variable is always 64-bit (prevents wrong disk size from being displayed
42277 on either >2 TiB disk or big-endian CPU).
42278
42279 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42280 into a generic case that supports all (sane) partition maps.
42281
42282 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42283 breaks big-endian.
42284
42285 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42286 and grub_apple_partition_map_fini() after that.
42287
0f23eb74 422882007-06-01 Robert Millan <rmh@aybabtu.com>
42289
42290 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42291
42292 * util/grub.d/00_header.in: Only enable gfxterm when
42293 convert_system_path_to_grub_path() succeeds.
42294
42c71976 422952007-05-20 Robert Millan <rmh@aybabtu.com>
42296
42297 * util/update-grub_lib.in: New file.
42298 * DISTLIST: Add update-grub_lib.in.
42299 * conf/common.rmk: Generate update-grub_lib and install it in
42300 $(lib_DATA).
42301 * Makefile.in: Add install routine for $(lib_DATA).
42302
42303 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
42304 function provided by update-grub_lib to support arbitrary paths of
42305 unifont.pff.
42306 * util/update-grub.in: Use convert_system_path_to_grub_path() to
42307 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
42308
5beb2291 423092007-05-19 Robert Millan <rmh@aybabtu.com>
42310
42311 * commands/i386/cpuid.c: New module.
42312 * DISTLIST: Add it.
42313 * conf/i386-efi.rmk: Enable cpuid.mod.
42314 * conf/i386-pc.rmk: Likewise.
42315
7262eca1 423162007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42317
42318 * kern/disk.c (grub_disk_read): Check return value of
42319 grub_realloc().
42320
260ba823 423212007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42322
42323 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
42324 arrays.
42325 * disk/raid.c (grub_raid_open): Likewise.
42326
1ecb6cf2 423272007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42328
42329 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
42330 stack instead of on the heap.
42331
42332 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
42333 before doing a read on it.
42334
42335 * configure.ac: Only use -fno-stack-protector for the target
42336 environment.
f19dbdb7 42337
21c8cbb1 423382007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42339
42340 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
42341 __attribute_ ((unused)) to mode_type argument.
42342
42343 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 42344
21c8cbb1 42345 * kern/misc.c (memcmp): Fix prototype.
42346
42347 * include/grub/partition.h [GRUB_UTIL]
42348 (grub_gpt_partition_map_init): Add prototype.
42349 (grub_gpt_partition_map_fini): Likewise.
42350
42351 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
42352 at the right place.
42353
42354 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
42355 (grub_fat_read_data): Likewise.
42356 (grub_fat_find_dir): Likewise.
42357
42358 * font/manager.c (find_glyph): Make table a const.
42359 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 42360
849d55d3 423612007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
42362
42363 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
42364 code, first search for device in /dev/mapper, then in /dev.
42365 (grub_util_get_grub_dev): New function.
42366 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
42367 prototype.
42368 * util/grub-probe.c (probe): Remove check for RAID, call
42369 grub_util_get_grub_dev() instead of
42370 grub_util_biosdisk_get_grub_dev().
42371 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
42372 grub_util_biosdisk_get_grub_dev().
42373 * util/i386/pc/grub-setup.c (main): Likewise.
42374
8fff7c2f 423752007-05-16 Robert Millan <rmh@aybabtu.com>
42376
42377 * DISTLIST: Update for the latest changes.
42378 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
42379 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
42380 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
42381 grub/util/biosdisk.h.
42382 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
42383 grub/util/biosdisk.h.
42384
48e12b52 423852007-05-16 Robert Millan <rmh@aybabtu.com>
42386
42387 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
42388
46b9d128 423892007-05-16 Robert Millan <rmh@aybabtu.com>
42390
42391 * util/i386/efi/grub-install.in: New.
42392 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
42393 newly added grub-install.
42394 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
42395 include.
42396 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
42397 grub/util/biosdisk.h.
42398 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
42399 grub/util/biosdisk.h.
42400
2d1a40a9 424012007-05-16 Robert Millan <rmh@aybabtu.com>
42402
42403 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
42404 * include/grub/util/biosdisk.h: ... here.
42405 * util/i386/pc/biosdisk.c: Moved to ...
42406 * util/biosdisk.c: ... here.
42407 * util/i386/pc/getroot.c: Moved to ...
42408 * util/getroot.c: ... here.
42409 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
42410 * util/grub-mkdevicemap.c: ... here.
42411 * util/i386/pc/grub-probe.c: Moved to ...
42412 * util/grub-probe.c: ... here.
42413
9e26e3bc 424142007-05-15 Robert Millan <rmh@aybabtu.com>
42415
42416 * util/update-grub.in: Remove duplicated line in grub.cfg header
42417 message.
42418
57f96397 424192007-05-13 Robert Millan <rmh@aybabtu.com>
42420
42421 * util/update-grub.in: Fix a few assumptions about the devices holding
42422 /, /boot and /boot/grub being the same.
42423 * util/grub.d/00_header.in: Likewise.
42424 * util/grub.d/10_hurd.in: Likewise.
42425 * util/grub.d/10_linux.in: Likewise.
42426
42427 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
42428 patterns. Use that to define the `.old' suffix as older than `'.
42429
42430 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
42431
42432 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
42433 the grub.cfg header message.
42434
2e610d62 424352007-05-11 Robert Millan <rmh@aybabtu.com>
42436
42437 * util/update-grub.in: Create device.map if it doesn't already exist,
42438 before attempting to run grub-probe.
42439 Check for grub-probe and grub-mkdevicemap with the same code
42440 grub-install is using.
42441 Remove test mode.
42442
3f6a10ef 424432007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
42444
42445 * Makefile.in: Add the datarootdir autoconf variable.
42446
02e7b75e 424472007-05-09 Robert Millan <rmh@aybabtu.com>
42448
42449 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 42450 fail gracefully if dev->disk->partition == NULL.
02e7b75e 42451
75f396cc 424522007-05-07 Robert Millan <rmh@aybabtu.com>
42453
42454 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
42455 determine partition map module.
42456 * util/i386/pc/grub-install.in: Use this feature to decide which
42457 partition module to load, instead of hardcoding pc and gpt.
42458
da65cb36 424592007-05-07 Robert Millan <rmh@aybabtu.com>
42460
42461 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
42462 source directory differs from build directory.
42463
b57d6a91 424642007-05-05 Robert Millan <rmh@aybabtu.com>
42465
42466 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
42467 initialisation.
42468
509d00f1 424692007-05-05 Robert Millan <rmh@aybabtu.com>
42470
42471 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
42472
c48f23ef 424732007-05-05 Robert Millan <rmh@aybabtu.com>
42474
42475 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
42476 command-line arguments via ${GRUB_CMDLINE_LINUX}.
42477
20b97658 424782007-05-05 Robert Millan <rmh@aybabtu.com>
42479
42480 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
42481 (grub_probe_SOURCES): Likewise.
42482 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
42483 GPT and initialize dos_part and bsd_part accordingly.
42484 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
42485 install_bsd_part.
42486 (main): Activate gpt module for use during partition identification,
42487 and deactivate it afterwards.
42488 * util/i386/pc/grub-install.in: Add gpt module to core.img.
42489 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
42490 partition identification, and deactivate it afterwards.
42491
99123174 424922007-05-05 Robert Millan <rmh@aybabtu.com>
42493
42494 * term/i386/pc/console.c (grub_console_fini): Call
42495 grub_term_set_current() before grub_term_unregister().
42496
ebd97f6e 424972007-05-04 Robert Millan <rmh@aybabtu.com>
42498
42499 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
42500 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
42501 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
42502 and update-grub_DATA.
42503 * conf/common.rmk: Build and install update-grub components.
42504 * conf/common.mk: Regenerate.
42505 * util/update-grub.in: New. Core of update-grub.
42506 * util/grub.d/00_header.in: New. Generates grub.cfg header.
42507 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
42508 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
42509 * util/grub.d/README: New. Document grub.d directory layout.
42510
b06a264d 425112007-05-01 Robert Millan <rmh@aybabtu.com>
42512
42513 * util/grub-emu.c: Move initialization functions
42514 grub_util_biosdisk_init() and grub_init_all() before
42515 grub_util_biosdisk_get_grub_dev(), which relies on them.
42516
41f0050e 425172007-04-19 Robert Millan <rmh@aybabtu.com>
42518
42519 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
42520 it is used later.
42521
04582bb3 425222007-04-18 Jerone Young <jerone@gmail.com>
42523
f19dbdb7 42524 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 42525 stanza.
42526
08db4632 425272007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 42528
08db4632 42529 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
42530 continue on and look for device node with real device name.
42531
801b76be 425322007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 42533
fe6b695a 42534 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 42535 ability.
42536 * Makefile.in: Add autoconf package transformation code.
42537 * util/i386/pc/grub-install.in: Likewise.
42538 * util/powerpc/ieee1275/grub-install.in: Likewise.
42539
6795c4e1 425402007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
42541
42542 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
42543 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
42544 (EXT2_REVISION): Likewise.
42545 (EXT2_INODE_SIZE): Likewise.
42546 (struct grub_ext2_block_group): Added a missing member
42547 "used_dirs".
42548 (grub_ext2_read_inode): Divide by the inode size in a superblock
42549 instead of 128 to obtain INODES_PER_BLOCK.
42550 Use the macro EXT2_INODE_SIZE instead of directly using
42551 SBLOCK->INODE_SIZE.
42552
d70af616 425532007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
42554
42555 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
42556 superblock instead of the structure size to compute an
42557 offset. This fixes the problem that GRUB could not read a
42558 filesystem when inode size is different from 128-byte.
42559
3b801603 425602007-03-05 Marco Gerards <marco@gnu.org>
42561
42562 * normal/main.c (read_config_file): When "menu" is not set, create
42563 an initial context.
42564
4785bfe4 425652007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42566
42567 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
42568 (HEAP_LIMIT): New macro.
42569 (grub_claim_heap): Claim memory up to `heaplimit'.
42570
a0cbb023 425712007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42572
42573 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
42574 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
42575 (_start): Likewise.
42576 (grub_arch_modules_addr): Return address after `_end'.
42577 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
42578 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
42579 (add_segments): Calculate `_end' from phdr size and location.
42580 (ALIGN_UP): Moved to ...
42581 * include/grub/misc.h: here.
42582 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42583 New macro.
42584 (GRUB_IEEE1275_MODULE_BASE): Removed.
42585
fd7d8eba 425862007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42587
42588 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
42589 loop boundary.
42590
9b09e6fc 425912007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42592
42593 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
42594 All users updated.
42595 (grub_elf64_load_hook_t): Likewise.
42596 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
42597 debug output.
42598
3ce27299 425992007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42600
42601 * kern/mm.c: Update copyright.
42602 (grub_mm_debug): Correct syntax error.
42603 (grub_mm_dump_free): New function.
42604 (grub_debug_free): Call `grub_free'.
42605 * include/grub/mm.h: Update copyright.
42606 (grub_mm_dump_free): Add declaration.
42607
077d5fee 426082007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42609
42610 * include/grub/ieee1275/ieee1275.h: Update copyright.
42611 * kern/powerpc/ieee1275/init.c: Likewise.
42612 * kern/powerpc/ieee1275/openfw.c: Likewise.
42613
42614 * loader/powerpc/ieee1275/linux.c: Likewise.
42615 * include/grub/elfload.h: Likewise.
42616 * kern/elf.c: Likewise.
42617 (grub_elf32_load): Pass `base' and `size' parameters. Update all
42618 callers.
42619 (grub_elf64_load): Likewise.
42620 (grub_elf32_load_segment): Move to a nested function.
42621 (grub_elf64_load_segment): Likewise.
42622
dc946850 426232007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42624
42625 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
42626 prototype.
42627 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
42628 (grub_heap_len): Likewise.
42629 (HEAP_SIZE): New macro.
42630 (grub_claim_heap): New function.
42631 (grub_machine_init): Don't claim heap directly. Call
42632 `grub_claim_heap'.
42633 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
42634 (grub_available_iterate): New function.
42635
baa2a121 426362007-02-03 Thomas Schwinge <tschwinge@gnu.org>
42637
42638 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
42639 * configure.ac: Use it for testing the HOST and TARGET compilers.
42640
4fe9862e 426412006-12-13 Thomas Schwinge <tschwinge@gnu.org>
42642
42643 * Makefile.in (enable_grub_emu): New variable.
42644 * configure.ac (--enable-grub-emu): New option.
42645 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
42646 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
42647 * conf/i386-pc.rmk: Likewise.
42648 * conf/powerpc-ieee1275.rmk: Likewise.
42649 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
42650
a8aa5762 426512006-12-12 Marco Gerards <marco@gnu.org>
42652
42653 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
42654
42655 * kern/env.c (grub_env_unset): Don't free the member `value' when
42656 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
42657 pointer.
42658
42659 * normal/main.c (current_menu): Removed.
42660 (free_menu): Unset the `menu' environment variable.
42661 (grub_normal_menu_addentry): Make use of the environment variable
42662 `menu', instead of using the global `current_menu'. Allocate
42663 memory for the sourcecode of this entry.
42664 (read_config_file): New argument `nested', changed all callers.
42665 Only in the case of a new context, initialize a new menu. Set the
42666 `menu' environment variable.
42667 (grub_normal_execute): Don't set and unset the environment
42668 variable `menu' here anymore. Only free the menu when leaving the
42669 context.
42670
42671 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
42672 leak.
42673
957b3a3e 426742006-12-11 Marco Gerards <marco@gnu.org>
42675
42676 * normal/menu_entry.c (run): Fix off by one bug so the last line
42677 is executed. Move the loader check to outside the loop.
42678
ef875714 426792006-12-08 Hollis Blanchard <hollis@penguinppc.org>
42680
42681 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
42682
4e739985 426832006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
42684
42685 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
42686 the number of sectors. Reported by Andrey Shuvikov
42687 <mr_hyro@yahoo.com>.
f19dbdb7 42688
790707f2 426892006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
42690
42691 * kern/disk.c (grub_disk_read): When there is a read error, always
42692 try to read only the necessary data.
f19dbdb7 42693
790707f2 42694 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
42695 disk/raid.c.
42696 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
42697 prototype.
42698 [GRUB_UTIL] (grub_raid_fini): Likewise.
42699 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 42700 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 42701 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
42702 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
42703 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
42704 and grub_raid_fini().
f19dbdb7 42705
03e58196 427062006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42707
42708 * include/grub/types.h (__unused): Rename to UNUSED.
42709 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
42710 (grub_elf64_size): Likewise.
f19dbdb7 42711
ae4f23bf 427122006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42713
42714 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
42715 grub_error_push and grub_error_pop in the error-handling path.
42716 (grub_elf32_load_segment): Only call grub_file_read with non-zero
42717 length.
42718
2166cc83 427192006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42720
42721 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
42722 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42724 (kernel_elf_SOURCES): Likewise.
42725 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
42726 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
42727 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42728 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42729 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
42730 (elf_mod_SOURCES): New variable.
42731 (elf_mod_CFLAGS): Likewise.
42732 (elf_mod_LDFLAGS): Likewise.
42733 * include/grub/types.h (__unused): New macro.
42734 * include/grub/elfload.h: New file.
42735 * kern/elf.c: Likewise.
42736 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
42737 (ELF32_LOADMASK): New macro.
42738 (ELF64_LOADMASK): Likewise.
42739 (vmlinux): Removed.
42740 (grub_linux_load32): New function.
42741 (grub_linux_load64): Likewise.
42742 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
42743 Use grub_elf_t instead of grub_file_t.
42744
a09d5aa5 427452006-11-02 Hollis Blanchard <hollis@penguinppc.org>
42746
42747 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
42748 `catch_result' to struct set_color_args.
42749
d976fc51 427502006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42751
42752 * normal/menu.c: Include grub/script.h.
42753 * normal/menu_entry.c: Likewise.
42754 * include/grub/normal.h: Do not include grub/script.h.
42755
67507549 427562006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42757
42758 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
42759
69203a99 427602006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42761
42762 * kern/disk.c (grub_disk_open): Print debug messages when opening a
42763 disk.
42764 (grub_disk_close): Print debug messages when closing a disk.
42765 (grub_disk_read): Print debug messages when disk read fails.
42766 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
42767 filesystem type.
42768 * kern/partition.c: Include misc.h.
42769 (grub_partition_iterate): Print debug messages when detecting
42770 partition type.
42771
e2b8278c 427722006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42773
42774 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
42775 is negative.
42776 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
42777
97b2f2ff 427782006-10-26 Hollis Blanchard <hollis@penguinppc.org>
42779
42780 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42781 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
42782
6555d655 427832006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
42784
42785 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
42786 instead of sizeof(lv). Patch by Michael Guntsche.
42787
4d42b77f 427882006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
42789
42790 * disk/lvm.c: Rename VGS to VG_LIST.
42791 (grub_lvm_iterate): Change VGS->LV to VG-LV.
42792 (grub_lvm_open): Likewise.
42793 Thanks to Michael Guntsche for finding this bug.
42794
5d74d927 427952006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
42796
42797 * configure.ac (AC_INIT): Bumped to 1.95.
42798
a1bb27e4 427992006-10-14 Robert Millan <rmh@aybabtu.com>
42800
42801 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
42802 with "/dev/.static/dev/md".
42803
e0994b8b 428042006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42805
42806 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
42807 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
42808 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
42809 DRIVE_NAME are always freed.
42810
42811 * util/i386/pc/biosdisk.c (make_device_name): Add one into
42812 DOS_PART, as a DOS partition is counted from one instead of zero
42813 now. Reported by Robert Millan.
42814
ddd5cee9 428152006-10-14 Robert Millan <rmh@aybabtu.com>
42816
42817 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
42818 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
42819 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
42820 string returned by grub_guess_root_device.
42821 * util/i386/pc/grub-setup.c: Likewise.
42822 * util/i386/pc/grub-probefs.c: Likewise.
42823
42824 * util/i386/pc/grub-probefs.c: Rename to ...
42825 * util/i386/pc/grub-probe.c: ... this.
42826 * DISTLIST: Remove grub-probefs, add grub-probe.
42827 * conf/i386-efi.rmk: Likewise.
42828 * conf/i386-pc.rmk: Likewise.
42829 * util/i386/pc/grub-install.in: Likewise.
42830
42831 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42832 choose which information we want to print.
42833
2b002173 428342006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42835
42836 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42837 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42838 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42839 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42840 video/readers/tga.c and video/i386/pc/vbeutil.c.
42841
428422006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42843
42844 Added support for RAID and LVM.
f19dbdb7 42845
2b002173 42846 * disk/lvm.c: New file.
42847 * disk/raid.c: Likewise.
42848 * include/grub/lvm.h: Likewise.
f19dbdb7 42849 * include/grub/raid.h: Likewise.
2b002173 42850 * include/grub/util/lvm.h: Likewise.
42851 * include/grub/util/raid.h: Likewise.
42852 * util/lvm.c: Likewise.
42853 * util/raid.c: Likewise.
42854
42855 * include/grub/disk.h (grub_disk_dev_id): Add
42856 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42857 (grub_disk_get_size): New prototype.
42858 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42859 returns a partition.
42860 (grub_disk_get_size): New function.
f19dbdb7 42861
2b002173 42862 * kern/i386/pc/init.c (make_install_device): Copy the prefix
42863 verbatim if grub_install_dos_part is -2.
42864
42865 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
42866 and LVM devices.
42867
42868 * util/i386/pc/grub-setup.c (setup): New argument
42869 MUST_EMBED. Force embedding of GRUB when the argument is
42870 true. Close FILE before returning.
42871 (main): Add support for RAID and LVM.
f19dbdb7 42872
2b002173 42873 * conf/common.rmk: Add RAID and LVM modules.
42874 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
42875 util/lvm.c.
42876 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
42877
42878 * kern/misc.c (grub_strstr): New function.
42879 * include/grub/misc.h (grub_strstr): New prototype.
42880
050548d0 428812006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42882
42883 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42884
da849d2d 428852006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42886
42887 * kern/misc.c (grub_strtoull): Guess the base only if not
42888 specified.
42889
97b2f2ff 428902006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42891
42892 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42893 PowerMac support.
42894
97b2f2ff 428952006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42896
42897 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42898
42899 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42900 Remove `flags' argument. All callers changed.
42901 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42902 (IEEE1275_IHANDLE_INVALID): New variable.
42903 (IEEE1275_CELL_INVALID): New variable.
42904 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42905 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42906 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42907 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42908 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42909 codes from Open Firmware. All callers updated.
42910 (grub_ieee1275_next_property): Directly return Open Firmware return
42911 code.
42912 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42913 Standardize error checking from `grub_ieee1275_get_property'.
42914 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42915 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42916
97b2f2ff 429172006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42918
42919 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42920 `instance_to_package_args' to `instance_to_path_args'.
42921
42922 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42923 `grub_ieee1275_chosen'.
42924
42925 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42926 `grub_ieee1275_interpret'.
42927
97b2f2ff 429282006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42929
42930 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42931
97b2f2ff 429322006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42933
42934 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42935 (__cmpdi): Likewise.
42936
42937 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42938 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42939 `grub_ssize_t'.
42940
02bb8acc 42941 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42942
42943 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42944 to type `grub_ssize_t'.
42945 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42946
7f9a8531 429472006-09-22 Marco Gerards <marco@gnu.org>
42948
42949 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42950 newlines.
42951
b5ef1102 429522006-09-22 Marco Gerards <marco@gnu.org>
42953
42954 * commands/echo.c: New file.
42955
42956 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42957
42958 * conf/common.rmk (echo_mod_SOURCES): New variable.
42959 (echo_mod_CFLAGS): Likewise.
42960 (echo_mod_LDFLAGS): Likewise.
42961
2cff3677 429622006-09-22 Marco Gerards <marco@gnu.org>
42963
42964 * normal/main.c (get_line): Malloc memory instead of using
42965 preallocated memory. Removed the arguments `cmdline' and
42966 `max_len'. Updated all callers.
42967
6ba4688b 429682006-09-22 Marco Gerards <marco@gnu.org>
42969
42970 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42971 (normal_mod_DEPENDENCIES): Likewise.
42972
42973 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42974 (normal_mod_DEPENDENCIES): Likewise.
42975
42976 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42977
e02ac02c 429782006-09-22 Johan Rydberg <jrydberg@gnu.org>
42979
42980 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42981 programs.
42982 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42983 (normal_mod_DEPENDENCIES): Likewise.
42984 * conf/i386-pc.mk: Regenerate.
42985 * conf/i386-efi.mk: Likewise
42986 * conf/common.mk: Likewise.
42987 * conf/powerpc-ieee1275.mk: Likewise.
42988 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42989
8d252e44 429902006-09-22 Robert Millan <rmh@aybabtu.com>
42991
42992 Sync with i386 version.
42993 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42994 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42995
209bf7ac 429962006-09-21 Robert Millan <rmh@aybabtu.com>
42997
42998 Import from GRUB Legacy (lib/device.c):
42999 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
43000 (init_device_map) [__linux__]: Add support for I2O devices.
43001
6b146090 430022006-09-14 Marco Gerards <marco@gnu.org>
43003
43004 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
43005 `-melf_i386'.
43006
e38600a8 430072006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 43008
43009 * util/i386/pc/grub-install.in: Skip menu.lst when removing
43010 /boot/grub/*.lst.
78fa1790 43011
2952da5d 43012 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 43013
2952da5d 43014 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
43015 before adding it to device.map.
43016
01b82a64 430172006-08-15 Johan Rydberg <jrydberg@gnu.org>
43018
fe6b695a 43019 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 43020 compiles a file; using the -MD option.
43021 * conf/common.mk: Regenerate.
43022 * conf/i386-pc.mk: Likewise.
43023 * conf/i386-efi.mk: Likewise.
43024 * conf/powerpc-ieee1275.mk: Likewise.
43025 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 43026
1064790d 430272006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43028
43029 Move the prototypes of grub_setjmp and grub_longjmp to
43030 cpu/setjmp.h, so that each architecture may specify different
43031 attributes.
f19dbdb7 43032
1064790d 43033 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43034 (grub_longjmp): Likewise.
43035 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43036 (grub_longjmp): Likewise.
43037 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43038 (grub_longjmp): Likewise.
43039
43040 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43041 [!GRUB_UTIL] (grub_longjmp): Removed.
43042
29dda3ed 430432006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43044
43045 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43046 "color!" method does not return any value.
43047
ad2a06ed 430482006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43049
43050 * include/grub/bitmap.h: New file.
43051
43052 * include/grub/i386/pc/vbeutil.h: Likewise.
43053
43054 * video/bitmap.c: Likewise.
43055
43056 * video/readers/tga.c: Likewise.
43057
43058 * video/i386/pc/vbeutil.c: Likewise.
43059
43060 * commands/videotest.c: Code cleanup and updated to reflect to new
43061 video API.
43062
43063 * term/gfxterm.c: Likewise.
43064
43065 * video/video.c: Likewise.
43066
43067 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43068 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43069 (bitmap_mod_SOURCES): New entry.
43070 (bitmap_mod_CFLAGS): Likewise.
43071 (bitmap_mod_LDFLAGS): Likewise.
43072 (tga_mod_SOURCES): Likewise.
43073 (tga_mod_CFLAGS): Likewise.
43074 (tga_mod_LDFLAGS): Likewise.
43075
43076 * include/grub/video.h (grub_video_blit_operators): New enum type.
43077 (grub_video_render_target): Changed as forward declaration and moved
43078 actual definition to be video driver specific.
43079 (grub_video_adapter.blit_bitmap): Added blitting operator.
43080 (grub_video_adapter.blit_render_target): Likewise.
43081 (grub_video_blit_bitmap): Likewise.
43082 (grub_video_blit_render_target): Likewise.
43083
43084 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43085 driver specific render target definition.
43086 (grub_video_vbe_map_rgba): Added driver internal helper.
43087 (grub_video_vbe_unmap_color): Updated to use
43088 grub_video_i386_vbeblit_info.
43089 (grub_video_vbe_get_video_ptr): Likewise.
43090
43091 * include/grub/i386/pc/vbeblit.h
43092 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43093 grub_video_i386_vbeblit_info.
43094 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43095 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43096 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43097 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43098 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43099 (grub_video_i386_vbeblit_index_index): Likewise.
43100 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43101 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43102 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43103 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43104 operator.
43105 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43106 operator.
43107
43108 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43109 include/grub/i386/pc/vbeblit.h.
43110
43111 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43112 Updated to use grub_video_i386_vbeblit_info.
43113 (grub_video_i386_vbefill_R8G8B8): Likewise.
43114 (grub_video_i386_vbefill_index): Likewise.
43115 (grub_video_i386_vbefill): Added generic filler.
43116
43117 * video/i386/pc/vbefill.c: Updated to reflect changes on
43118 include/grub/i386/pc/vbefill.h.
43119
43120 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43121 grub_video_i386_vbeblit_info.
43122 (grub_video_vbe_unmap_color): Likewise.
43123 (grub_video_vbe_blit_glyph): Likewise.
43124 (grub_video_vbe_scroll): Likewise.
43125 (grub_video_vbe_draw_pixel): Removed function.
43126 (grub_video_vbe_get_pixel): Likewise.
43127 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43128 updated code to use it.
43129 (common_blitter): Added common blitter for render target and bitmap.
43130 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43131 (grub_video_vbe_blit_render_target): Likewise.
43132
bc8c036d 431332006-07-30 Johan Rydberg <jrydberg@gnu.org>
43134
43135 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43136 is in text mode if there is no console control protocol instance
43137 available.
43138
684a8eff 431392006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43140
43141 * include/grub/video.h: Code cleanup.
43142
43143 * include/grub/i386/pc/vbe.h: Likewise.
43144
43145 * video/i386/pc/vbe.c: Likewise.
43146
43147 * video/i386/pc/vbeblit.c: Likewise.
43148
43149 * video/i386/pc/vbefill.c: Likewise.
43150
43151 * video/video.c: Likewise. Also added more comments.
43152
5915059b 431532006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43154
43155 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43156 (struct grub_biosdisk_dap): Likewise.
43157
43158 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43159 linkage settings for all functions.
43160
90ce5d56 431612006-07-12 Marco Gerards <marco@gnu.org>
43162
43163 * configure.ac (--enable-mm-debug): Fix typo.
43164
43165 * genkernsyms.sh.in: Use proper quoting for `CC'.
43166
43e7f879 431672006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43168
43169 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43170 (normal_mod_ASFLAGS): Remove "-m32".
43171
4889bdec 431722006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43173
43174 * util/misc.c: Include config.h.
43175 [!HAVE_MEMALIGN]: Do not include malloc.h.
43176 (grub_memalign): Use posix_memalign, if present. Then, use
43177 memalign, if present. Otherwise, emit an error.
43178
43179 * util/grub-emu.c: Do not include malloc.h.
43180
43181 * include/grub/util/misc.h: Include unistd.h. This is required for
43182 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43183 D. Eades III <hde@foobar-qux.org>.
43184
43185 * configure.ac (AC_GNU_SOURCE): Added.
43186 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43187 type.
43188
fd39d4da 431892006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43190
43191 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43192 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43193
b786f3b5 431942006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43195
43196 * include/grub/types.h (grub_host_addr_t): Rename to
43197 grub_target_addr_t.
43198 (grub_host_off_t): Rename to grub_target_off_t.
43199 (grub_host_size_t): Rename to grub_target_size_t.
43200 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43201 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43202
43203 * include/grub/kernel.h (struct grub_module_header): Change type
43204 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43205 (grub_module_info): Likewise.
f19dbdb7 43206
051988bb 432072006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43208
43209 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43210 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43211 Velazquez <jesus.velazquez@gmail.com>.
43212
deae281b 432132006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43214
43215 Count partitions from 1 instead of 0 in the string representation
43216 of partitions. Still use 0-based internally.
f19dbdb7 43217
deae281b 43218 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43219 (sun_partition_map_iterate): Use grub_partition_t instead of
43220 struct grub_partition *. Cast DESC->START_CYLINDER to
43221 grub_uint64_t after converting the endian.
43222 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43223 (sun_partition_map_get_name): Add 1 to P->INDEX.
43224
43225 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43226 PCDATA->DOS_PART.
43227 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43228
43229 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43230 zero instead of one.
43231 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43232 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43233
43234 * partmap/apple.c (apple_partition_map_iterate): Change the type
43235 of POS to unsigned.
43236 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43237 (apple_partition_map_get_name): Add 1 into P->INDEX.
43238
43239 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43240 of POS to unsigned.
43241 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43242 calculate the offset of a partition.
43243 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43244 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43245
43246 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43247 SECTOR to grub_disk_addr_t.
43248 (acorn_partition_map_iterate): Likewise.
43249 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43250 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43251 top.
43252 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43253
43254 * kern/i386/pc/init.c (make_install_device): Add 1 into
43255 GRUB_INSTALL_DOS_PART.
43256
43257 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43258 conditional.
43259
524a1e6a 432602006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43261
43262 Clean up the code to support 64-bit addressing in disks and
43263 files. This change is not enough for filesystems yet.
f19dbdb7 43264
524a1e6a 43265 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43266 type of "start" to grub_uint64_t.
43267 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43268 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43269 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43270 convert addresses.
43271
43272 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43273 to grub_disk_addr_t.
43274
43275 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43276 string.
43277
43278 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43279
43280 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43281 to char *.
43282
43283 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43284
43285 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43286
43287 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43288
43289 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43290 to grub_off_t, to detect an error from grub_file_seek.
43291 (grub_multiboot_load_elf32): Likewise.
43292
43293 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43294 maximum unsigned long value when an overflow is detected.
43295 (grub_strtoull): New function.
43296 (grub_divmod64): Likewise.
43297 (grub_lltoa): use grub_divmod64.
43298
43299 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43300 grub_disk_addr_t.
43301 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43302 the pointer to next character. Use grub_strtoull instead of
43303 grub_strtoul.
43304 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
43305 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
43306 respectively.
43307
fe6b695a 43308 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 43309 return value is signed.
43310 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
43311 test if OFFSET is less than zero, as OFFSET is unsigned now.
43312
43313 * kern/disk.c (struct grub_disk_cache): Change the type of
43314 "sector" to grub_disk_addr_t.
43315 (grub_disk_cache_get_index): Change the type of SECTOR to
43316 grub_disk_addr_t. Calculate the hash with SECTOR casted to
43317 unsigned after shifting.
43318 (grub_disk_cache_invalidate): Change the type of SECTOR to
43319 grub_disk_addr_t.
43320 (grub_disk_cache_unlock): Likewise.
43321 (grub_disk_cache_store): Likewise.
43322 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
43323 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
43324 grub_disk_addr_t and grub_uint64_t, respectively.
43325 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
43326 body, as the value of OFFSET is tweaked by
43327 grub_disk_check_range. Change the types of START_SECTOR, LEN and
43328 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
43329 respectively.
43330 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
43331 body, as the value of OFFSET is tweaked by
43332 grub_disk_check_range. Change the types of LEN and N to
43333 grub_size_t.
43334
43335 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
43336 and "saved_offset" to grub_off_t.
43337 (test_header): Cast BUF to char *.
43338 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
43339 to char *.
43340 (grub_gzio_read): Change the types of OFFSET and SIZE to
43341 grub_off_t and grub_size_t, respectively.
43342
43343 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
43344 Removed.
43345 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
43346 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
43347 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
43348 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
43349 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
43350
43351 * include/grub/types.h (grub_off_t): Unconditionally set to
43352 grub_uint64_t.
43353 (grub_disk_addr_t): Changed to grub_uint64_t.
43354
43355 * include/grub/partition.h (struct grub_partition): Change the
43356 types of "start", "len" and "offset" to grub_disk_addr_t,
43357 grub_uint64_t and grub_disk_addr_t, respectively.
43358 (grub_partition_get_start): Return grub_disk_addr_t.
43359 (grub_partition_get_len): Return grub_uint64_t.
43360
43361 * include/grub/misc.h (grub_strtoull): New prototype.
43362 (grub_divmod64): Likewise.
43363
43364 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
43365 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
43366 grub_off_t, respectively.
43367 All callers and references changed.
43368
43369 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
43370 grub_size_t in "read".
43371 All callers and references changed.
43372
43373 * include/grub/file.h (struct grub_file): Change the types of
43374 "offset" and "size" to grub_off_t and grub_off_t,
43375 respectively. Change the type of SECTOR to grub_disk_addr_t in
43376 "read_hook".
43377 (grub_file_read): Change the type of LEN to grub_size_t.
43378 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
43379 grub_off_t.
43380 (grub_file_size): Return grub_off_t.
43381 (grub_file_tell): Likewise.
43382 All callers and references changed.
43383
43384 * include/grub/disk.h (struct grub_disk_dev): Change the types of
43385 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
43386 "write".
43387 (struct grub_disk): Change the type of "total_sectors" to
43388 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 43389 "read_hook".
524a1e6a 43390 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
43391 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
43392 (grub_disk_write): Likewise.
43393 All callers and references changed.
43394
43395 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
43396 char * for grub_strncmp to silence gcc.
43397 (grub_iso9660_mount): Likewise.
43398 (grub_iso9660_mount): Likewise.
43399 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
43400 return statement.
43401 (grub_iso9660_iterate_dir): Likewise.
43402 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
43403
43404 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
43405 LEN to grub_disk_addr_t and grub_size_t, respectively.
43406
43407 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43408
43409 * fs/jfs.c (grub_jfs_read_file): Likewise.
43410
43411 * fs/minix.c (grub_jfs_read_file): Likewise.
43412
43413 * fs/sfs.c (grub_jfs_read_file): Likewise.
43414
43415 * fs/ufs.c (grub_jfs_read_file): Likewise.
43416
43417 * fs/xfs.c (grub_jfs_read_file): Likewise.
43418
43419 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
43420 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
43421 respectively.
43422
43423 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
43424 BLKNR to -1 instead of returning GRUB_ERRNO.
43425 (grub_ext2_read_file): Change the types of SECTOR and
43426 LEN to grub_disk_addr_t and grub_size_t, respectively.
43427
43428 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
43429 LEN to grub_disk_addr_t and grub_size_t, respectively.
43430
43431 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
43432 grub_file_read.
43433
43434 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
43435 string. Do not cast SECTOR explicitly.
43436
43437 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
43438 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
43439 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
43440 grub_disk_addr_t and grub_size_t, respectively. If the sector is
43441 over 2TB and LBA mode is not supported, raise an error.
43442 (get_safe_sectors): New function.
43443 (grub_biosdisk_read): Use get_safe_sectors.
43444 (grub_biosdisk_write): Likewise.
43445
43446 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
43447 (grub_efidisk_write): Likewise.
43448
43449 * disk/loopback.c (delete_loopback): Cosmetic changes.
43450 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
43451 correctly.
43452 (grub_loopback_open): Likewise.
43453 (grub_loopback_read): Likewise. Also, change the type of POS to
43454 grub_off_t, and fix the usage of grub_memset.
43455
43456 * commands/i386/pc/play.c: Include grub/machine/time.h.
43457
43458 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
43459 print FILE->SIZE.
43460
43461 * commands/configfile.c: Include grub/env.h.
43462
43463 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
43464 GRUB_ERRNO directly instead. Change the type of POS to
43465 grub_off_t. Follow the coding standard.
43466
43467 * commands/blocklist.c: Include grub/partition.h.
43468 (grub_cmd_blocklist): Return an error if the underlying device is
43469 not a disk. Take the starting sector of a partition into account,
43470 if a partition is used.
43471
43472 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
43473 a length field.
43474 (lba_mode): Support 64-bit addresses.
43475 (chs_mode): Likewise.
43476 (copy_buffer): Adapted to the new offsets of a length field and a
43477 segment field.
43478 (blocklist_default_start): Allocate 64-bit space.
43479
43480 * boot/i386/pc/boot.S (force_lba): Removed.
43481 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 43482 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 43483 space.
43484 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
43485 is useless.
43486 (lba_mode): Refactored to support a 64-bit address. More size
43487 optimization.
43488 (setup_sectors): Likewise.
43489
53af98ad 434902006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43491
43492 * DISTLIST: Added include/grub/i386/linux.h. Removed
43493 include/grub/i386/pc/linux.h
43494
43495 * configure.ac (AC_INIT): Bumped to 1.94.
43496
43497 * config.guess: Updated from gnulib.
43498 * config.sub: Likewise.
43499 * install-sh: Likewise.
43500 * mkinstalldirs: Likewise.
43501
b4c1940a 435022006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43503
43504 * conf/common.rmk (grub_modules_init.lst): Depended on
43505 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
43506 MODSRCFILES.
43507
43508 * genmk.rb (PModule::rule): Reverted the previous change.
43509
cfca1cfd 435102006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43511
43512 * conf/common.rmk (grub_modules_init.lst): Depends on
43513 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
43514 that the target does not exist before producing.
43515 (grub_modules_init.h): Remove the target before generating.
43516 (grub_emu_init.c): Likewise.
43517
43518 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
43519
aa6d7826 435202006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
43521
43522 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
43523 for the target-specific tests. Make sure that we also have the
43524 up-to-date target variables for those tests.
43525
26c607b9 435262006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43527
43528 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
43529 (PModule::rule): Likewise.
43530
0162321a 435312006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43532
43533 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
43534 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
43535 target-specific flags should be prefixed.
43536 (PModule::rule): Likewise.
43537
6c826348 435382006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
43539
43540 * configure.ac (CMP): Check if cmp is available explicitly.
43541
b977bf01 435422006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
43543
43544 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
43545 (target_cpu): New variable.
43546 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 43547
b977bf01 43548 * util/i386/pc/grub-install.in (host_cpu): Removed.
43549 (target_cpu): New variable.
43550 (pkglibdir): Use target_cpu instead of host_cpu.
43551
43552 * util/genmoddep.c: Removed.
f19dbdb7 43553
b977bf01 43554 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
43555 instead of GRUB_HOST_SIZEOF_VOID_P.
43556 * kern/dl.c: Likewise.
43557
43558 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
43559 ...
43560 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43561 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43562 (GRUB_TARGET_SIZEOF_LONG): ... this.
43563 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43564 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43565 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43566 to ...
43567 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43568 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43569 (GRUB_TARGET_SIZEOF_LONG): ... this.
43570 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43571 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43572 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43573 to ...
43574 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43575 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43576 (GRUB_TARGET_SIZEOF_LONG): ... this.
43577 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43578 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43579
43580 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
43581 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
43582 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
43583 instead of GRUB_HOST_SIZEOF_LONG.
43584 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
43585 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
43586 GRUB_CPU_WORDS_BIGENDIAN.
43587 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
43588 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
43589 grub_host_ssize_t.
43590
43591 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
43592 (genmoddep_SOURCES): Likewise.
43593 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
43594 (genmoddep_SOURCES): Likewise.
43595 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
43596 (genmoddep_SOURCES): Likewise.
43597 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
43598 Likewise.
43599 (genmoddep_SOURCES): Likewise.
43600
43601 * genmoddep.awk: New file.
43602
43603 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
43604 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
43605 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
43606 (PModule::rule): Likewise.
43607 (Program::rule): Likewise.
43608 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
43609 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
43610 respectively.
43611
43612 * configure.ac: Rewritten intensively to use host and target
43613 instead of build and host, respectively.
43614
43615 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
43616 (host_cpu): Removed.
43617 (target_cpu): New variable.
43618 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
43619 (BUILD_CC): Removed.
43620 (BUILD_CFLAGS): Likewise.
43621 (BUILD_CPPFLAGS): Likewise.
43622 (TARGET_CC): New variable.
43623 (TARGET_CFLAGS): Likewise.
43624 (TARGET_CPPFLAGS): Likewise.
43625 (TARGET_LDFLAGS): Likewise.
43626 (AWK): Likewise.
43627 (include): Use target_cpu instead of host_cpu.
43628 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 43629
b977bf01 43630 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
43631
f09771a1 436322006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
43633
43634 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
43635 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
43636 field 'false' to 'exec_on_false'.
43637 (grub_script_create_cmdif): Renamed argument names to reflect above
43638 changes.
43639
43640 * normal/execute.c (grub_script_execute_cmdif): Likewise.
43641
43642 * normal/script.c (grub_script_create_cmdif): Likewise.
43643
118f4fb3 436442006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
43645
43646 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
43647 top.
43648 (grub_hfsplus_btree_recptr): Likewise.
43649 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
43650 FILEBLOCK both to pass a block number and store next block
43651 number.
43652 (grub_hfsplus_read_block): Rewritten heavily to support an extent
43653 overflow file correctly. Specify errors appropriately, because
43654 fshelp expects that GRUB_ERRNO is set when fails. Reuse
43655 grub_hfsplus_btree_recptr to get the pointer to a found key.
43656 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
43657 is found.
43658
43659 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
43660 linux.mod.
43661 (_linux_mod_SOURCES): New variable.
43662 (_linux_mod_CFLAGS): Likewise.
43663 (_linux_mod_LDFLAGS): Likewise.
43664 (linux_mod_SOURCES): Likewise.
43665 (linux_mod_CFLAGS): Likewise.
43666 (linux_mod_LDFLAGS): Likewise.
43667
43668 * DISTLIST: Added loader/i386/efi/linux.c,
43669 loader/i386/efi/linux_normal.c and
43670 include/grub/i386/efi/loader.h.
43671
43672 * loader/i386/efi/linux.c: New file.
43673 * loader/i386/efi/linux_normal.c: Likewise.
43674 * include/grub/i386/efi/loader.h: Likewise.
43675
89a7d726 436762006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
43677
43678 * commands/blocklist.c: New file.
43679
43680 * DISTLIST: Added commands/blocklist.c.
43681
43682 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 43683 color for the background, and a darker color for the foreground.
89a7d726 43684 (grub_console_checkkey): Return READ_KEY.
43685 (grub_console_cls): Set the background to
43686 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
43687
43688 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
43689
43690 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
43691 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
43692
43693 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
43694 prototype.
43695
43696 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
43697 BG. The spec is wrong again.
43698
43699 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
43700 prototype.
43701 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
43702
43703 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
43704 commands/blocklist.c.
43705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 43706
89a7d726 43707 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
43708 (blocklist_mod_SOURCES): New variable.
43709 (blocklist_mod_CFLAGS): Likewise.
43710 (blocklist_mod_LDFLAGS): Likewise.
43711
75c8f258 437122006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
43713
43714 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
43715 duplication.
43716 (lba_mode): Use %eax more intensively to reduce the code size.
43717
da2eb181 437182006-05-20 Marco Gerards <marco@gnu.org>
43719
43720 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
43721
43722 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
43723 for `menuentry'.
43724 (script): Accept leading newlines.
43725 (newlines): New rule to describe 0 or more newlines.
43726 (commands): Accept `command' with trailing newline. Fixed the
43727 order in which arguments were passed to `grub_script_add_cmd'.
43728 Accept commands separated by newlines.
43729 (function): Changed to accept newlines.
43730 (menuentry) Rewritten.
43731
43732 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
43733 front of the list, instead of to the end.
43734
577b4050 437352006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
43736
43737 * util/i386/pc/grub-install.in (bindir): New variable.
43738 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
43739 Shaver <lbgwjl@gmail.com>.
43740
0d6e1189 437412006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
43742
43743 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
43744 grub/machine/linux.h
43745 * loader/i386/pc/linux.c: Likewise.
43746
43747 * include/grub/i386/pc/linux.h: Moved to ...
43748 * include/grub/i386/linux.h: ... here.
43749
43750 * include/grub/i386/linux.h (struct linux_kernel_params): New
43751 struct.
f19dbdb7 43752
31b86e9f 437532006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
43754
43755 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
43756 checking.
43757 (grub_video_vbe_blit_glyph): Likewise.
43758 (grub_video_vbe_blit_bitmap): Likewise.
43759 (grub_video_vbe_blit_render_target): Likewise.
43760
83b984de 437612006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
43762
43763 * configure.ac (--with-platform): Properly quote the square
43764 brackets.
43765
5f0413bd 437662006-05-08 Marco Gerards <marco@gnu.org>
43767
43768 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
43769 this...
43770 (kernel_elf_HEADERS): ...to this. Updated all users.
43771 (grubof_symlist.c): Renamed from this...
43772 (kernel_elf_symlist.c): ...to this. Updated all users.
43773 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43774 (grubof_SOURCES): Renamed from this...
43775 (kernel_elf_SOURCES): ...to this.
43776 (grubof_HEADERS): Renamed from this...
43777 (kernel_elf_HEADERS): ...to this.
43778 (grubof_CFLAGS): Renamed from this...
43779 (kernel_elf_CFLAGS): ...to this.
43780 (grubof_ASFLAGS): Renamed from this...
43781 (kernel_elf_ASFLAGS): ...to this.
43782 (grubof_LDFLAGS): Renamed from this...
43783 (kernel_elf_LDFLAGS): ...to this.
43784
43785 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
43786 this...
43787 (kernel_elf_HEADERS): ...to this. Updated all users.
43788 (grubof_symlist.c): Renamed from this...
43789 (kernel_elf_symlist.c): ...to this. Updated all users.
43790 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43791 (grubof_SOURCES): Renamed from this...
43792 (kernel_elf_SOURCES): ...to this.
43793 (grubof_HEADERS): Renamed from this...
43794 (kernel_elf_HEADERS): ...to this.
43795 (grubof_CFLAGS): Renamed from this...
43796 (kernel_elf_CFLAGS): ...to this.
43797 (grubof_ASFLAGS): Renamed from this...
43798 (kernel_elf_ASFLAGS): ...to this.
43799 (grubof_LDFLAGS): Renamed from this...
43800 (kernel_elf_LDFLAGS): ...to this.
43801
43802 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
43803 `kernel.elf' instead of `grubof'.
43804
05568c2e 438052006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
43806
43807 Add --with-platform to configure. Use pkglibdir instead of
43808 pkgdatadir. This is reported by Roger Leigh.
43809
43810 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
43811 (host_vendor): Likewise.
43812 (host_os): Likewise.
43813 (pkgdatadir): Likewise.
43814 (platform): New variable.
43815 (pkglibdir): Likewise.
43816 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 43817
05568c2e 43818 * util/i386/pc/grub-install.in (datadir): Removed.
43819 (host_vendor): Likewise.
43820 (host_os): Likewise.
43821 (pkgdatadir): Likewise.
43822 (platform): New variable.
43823 (pkglibdir): Likewise.
43824 Use PKGLIBDIR instead of PKGDATADIR.
43825
43826 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43827 instead of GRUB_DATADIR.
43828 (main): Likewise.
43829 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43830 (main): Likewise.
43831 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43832 (main): Likewise.
43833
43834 * configure.ac (--with-platform): New option.
43835 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43836
43837 * Makefile.in: Include a makefile based on PLATFORM instead of
43838 HOST_VENDOR.
43839 (pkgdatadir): Not appended by the machine type.
43840 (pkglibdir): Appended by the machine type.
43841 (host_vendor): Removed.
43842 (platform): New variable.
43843 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43844 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43845 (uninstall): Likewise.
43846
4e93851c 438472006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43848
43849 Use the environment context in the menu. Remove the commands
43850 "default" and "timeout", and use variables instead.
f19dbdb7 43851
4e93851c 43852 * normal/menu.c: Include grub/env.h.
43853 (print_entry): Cast TITLE to silence gcc.
43854 (get_timeout): New function.
43855 (set_timeout): Likewise.
43856 (get_entry_number): Likewise.
43857 (run_menu): Use a default entry, a fallback entry and a timeout
43858 in the environment variables "default", "fallback" and
43859 "timeout". Also, tweak the default entry if it is not within the
43860 current menu entries.
43861 (grub_menu_run): Use a fallback entry in the environment variable
43862 "fallback".
43863
43864 * normal/main.c (read_config_file): Do not initialize
43865 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
43866 NEWMENU->TIMEOUT.
43867 (grub_normal_execute): Use a data slot to store the menu.
43868
43869 * include/grub/normal.h (struct grub_menu): Removed default_entry,
43870 fallback_entry and timeout.
43871 (struct grub_menu_list): Removed.
43872 (grub_menu_list_t): Likewise.
43873 (struct grub_context): Likewise.
43874 (grub_context_t): Likewise.
43875 (grub_context_get): Likewise.
43876 (grub_context_get_current_menu): Likewise.
43877 (grub_context_push_menu): Likewise.
43878 (grub_context_pop_menu): Likewise.
43879 (grub_default_init): Likewise.
43880 (grub_default_fini): Likewise.
43881 (grub_timeout_init): Likewise.
43882 (grub_timeout_fini): Likewise.
43883
43884 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43885 and timeout.mod.
43886 (normal_mod_SOURCES): Removed normal/context.c.
43887
43888 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43889 commands/default.c, commands/timeout.c and normal/context.c.
43890 (normal_mod_SOURCES): Removed normal/context.c.
43891
43892 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43893 commands/timeout.c and normal/context.c.
43894 (normal_mod_SOURCES): Removed normal/context.c.
43895
43896 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43897 commands/default.c, commands/timeout.c and normal/context.c.
43898 (normal_mod_SOURCES): Removed normal/context.c.
43899
43900 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43901 timeout.mod.
43902 (default_mod_SOURCES): Removed.
43903 (default_mod_CFLAGS): Likewise.
43904 (default_mod_LDFLAGS): Likewise.
43905 (timeout_mod_SOURCES): Removed.
43906 (timeout_mod_CFLAGS): Likewise.
43907 (timeout_mod_LDFLAGS): Likewise.
43908
43909 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43910 normal/context.c.
43911
43912 * commands/default.c: Removed.
43913 * commands/timeout.c: Likewise.
43914 * normal/context.c: Likewise.
43915
1eb9cc1d 439162006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43917
43918 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43919
385bd9c1 439202006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43921
43922 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43923 "next" to "prev" for readability.
43924 (struct grub_env_sorted_var): New struct.
43925 (grub_env_context): Renamed to ...
43926 (initial_context): ... this.
43927 (grub_env_var_context): Renamed to ...
43928 (current_context): ... this.
43929 (grub_env_find): Look only at CURRENT_CONTEXT.
43930 (grub_env_context_open): Rewritten to copy exported variables from
43931 previous context.
43932 (grub_env_context_close): Rewritten according to the new
43933 scheme. Also, add an assertion to prevent the initial context from
43934 removed.
43935 (grub_env_insert): Removed the code for the sorted list.
43936 (grub_env_remove): Likewise.
43937 (grub_env_export): Simply mark the variable with
43938 GRUB_ENV_VAR_GLOBAL.
43939 (grub_env_set): A cosmetic change for naming consistency.
43940 (grub_env_get): Likewise.
43941 (grub_env_unset): Likewise.
43942 (grub_env_iterate): Rewritten to sort variables within this
43943 function.
43944 (grub_register_variable_hook): Fixed for naming consistency. Call
43945 grub_env_find again, only if NAME is not found at the first time.
43946 (mangle_data_slot_name): New function.
43947 (grub_env_set_data_slot): Likewise.
43948 (grub_env_get_data_slot): Likewise.
43949 (grub_env_unset_data_slot): Likewise.
43950
43951 * include/grub/env.h (grub_env_var_type): New enum.
43952 (GRUB_ENV_VAR_LOCAL): New constant.
43953 (GRUB_ENV_VAR_GLOBAL): Likewise.
43954 (GRUB_ENV_VAR_DATA): Likewise.
43955 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43956 "type".
43957 (grub_env_set): Replace VAR with NAME for consistency.
43958 (grub_register_variable_hook): Likewise.
43959 (grub_env_export): Specify the name of the argument.
43960 (grub_env_set_data_slot): New prototype.
43961 (grub_env_get_data_slot): Likewise.
43962 (grub_env_unset_data_slot): Likewise.
43963
7f362539 439642006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43965
43966 Extend the loader so that GRUB can accept a loader which comes
43967 back to GRUB when a loaded image exits. Also, this change adds
43968 support for a chainloader on EFI.
f19dbdb7 43969
7f362539 43970 * term/efi/console.c: Include grub/misc.h.
43971 (grub_console_checkkey): Display a scan code on the top for
43972 debugging. This will be removed once the EFI port gets stable.
43973 Correct the scan code mapping.
43974
43975 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43976 allocate memory from larger regions, in order to reduce the number
43977 of allocated regions. Otherwise, the MacOSX loader panics.
43978 (filter_memory_map): Avoid less than 1MB for compatibility with
43979 other loaders.
43980 (add_memory_regions): Allocate from the tail of a region, if
43981 possible, to avoid allocating a region near to 1MB, for the MacOSX
43982 loader.
43983
43984 * kern/efi/init.c (grub_efi_set_prefix): Specify
43985 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43986
43987 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43988 argument IMAGE_HANDLE and specify it to get a loaded image.
43989 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43990 grub_efi_get_loaded_image.
fe6b695a 43991 (grub_efi_get_filename): Divide the length by the size of
7f362539 43992 grub_efi_char16_t.
43993 (grub_efi_get_device_path): New function.
43994 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43995 the length by the size of grub_efi_char16_t for a file path device
43996 path node.
43997
43998 * kern/loader.c (grub_loader_noreturn): New variable.
43999 (grub_loader_set): Accept a new argument NORETURN. Set
44000 GRUB_LOADER_NORETURN to NORETURN.
44001 All callers changed.
44002 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
44003 grub_machine_fini.
44004
44005 * include/grub/efi/efi.h (grub_efi_get_device_path): New
44006 prototype.
44007 (grub_efi_get_loaded_image): Take an argument to specify an image
44008 handle.
44009
44010 * include/grub/loader.h (grub_loader_set): Added one more argument
44011 NORETURN.
44012
44013 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
44014 instead of grub_efi_open_protocol.
44015 (grub_efidisk_get_device_name): Likewise.
44016 (grub_efidisk_close): Print a newline.
44017 (grub_efidisk_get_device_handle): Fixed to use
44018 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44019 GRUB_EFI_DEVICE_PATH_TYPE.
44020
44021 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44022 * kern/efi/efi.c (device_path_guid): ... here.
44023
44024 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44025 chain.mod.
44026 (kernel_mod_HEADERS): Added efi/disk.h.
44027 (_chain_mod_SOURCES): New variable.
44028 (_chain_mod_CFLAGS): Likewise.
44029 (_chain_mod_LDFLAGS): Likewise.
44030 (chain_mod_SOURCES): Likewise.
44031 (chain_mod_CFLAGS): Likewise.
44032 (chain_mod_LDFLAGS): Likewise.
44033
44034 * DISTLIST: Added include/grub/efi/chainloader.h,
44035 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44036
44037 * include/grub/efi/chainloader.h: New file.
44038 * loader/efi/chainloader.c: Likewise.
44039 * loader/efi/chainloader_normal.c: Likewise.
44040
c0111d6e 440412006-04-30 Marco Gerards <marco@gnu.org>
44042
44043 * commands/configfile.c (grub_cmd_source): New function.
44044 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44045 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44046
df5341da 440472006-04-30 Marco Gerards <marco@gnu.org>
44048
44049 * normal/execute.c (grub_script_execute_cmd): Change the return
44050 type to `grub_err_t'. Correctly return the error.
44051 (grub_script_execute_cmdline): In case a command line is not a
44052 command or a function, try to interpret it as an assignment.
44053
f85934bd 440542006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44055
44056 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44057 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44058 skip a node whose name is obviously invalid as UTF-16,
44059 i.e. contains a NUL character. Stop the iteration when the last
44060 directory entry is found. Instead of using the return value of
44061 grub_hfsplus_btree_iterate_node, store the value in RET and use
44062 it, because the iterator can be stopped by the last directory
44063 entry.
44064
8f8a2cf8 440652006-04-30 Marco Gerards <marco@gnu.org>
44066
44067 * include/grub/env.h (grub_env_export): New prototype. Reported
44068 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44069
a27e84ce 440702006-04-30 Marco Gerards <marco@gnu.org>
44071
44072 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44073 size of the extents in a catalog file record.
44074
eaef0553 440752006-04-29 Marco Gerards <marco@gnu.org>
44076
44077 * commands/configfile.c (grub_cmd_configfile): Execute the
44078 configfile within its own context.
44079
44080 * include/grub/env.h (grub_env_context_open): New prototype.
44081 (grub_env_context_close): Likewise.
44082
44083 * kern/env.c (grub_env): Removed.
44084 (grub_env_sorted): Likewise.
44085 (grub_env_context): New variable.
44086 (grub_env_var_context): Likewise.
44087 (grub_env_find): Search both the active context and the global
44088 context.
44089 (grub_env_context_open): New function.
44090 (grub_env_context_close): Likewise.
44091 (grub_env_insert): Likewise.
44092 (grub_env_remove): Likewise.
44093 (grub_env_export): Likewise.
44094 (grub_env_set): Changed to use helper functions to avoid code
44095 duplication.
44096 (grub_env_iterate): Rewritten so both the current context and the
44097 global context are being used.
44098
44099 * normal/command.c (export_command): New function.
44100 (grub_command_init): Register the `export' function.
44101
7b455f4d 441022006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44103
44104 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44105 explicitly to suppress gcc's warnings.
44106 * fs/fat.c (grub_fat_find_dir): Likewise.
44107 (grub_fat_label): Likewise.
44108 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44109 (grub_xfs_mount): Likewise.
44110 (grub_xfs_label): Likewise.
44111 * fs/affs.c (grub_affs_mount): Likewise.
44112 (grub_affs_label): Likewise.
44113 (grub_affs_iterate_dir): Likewise.
44114 * fs/sfs.c (grub_sfs_mount): Likewise.
44115 (grub_sfs_iterate_dir): Likewise.
44116 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44117 * fs/hfs.c (grub_hfs_mount): Likewise.
44118 (grub_hfs_cmp_catkeys): Likewise.
44119 (grub_hfs_find_dir): Likewise.
44120 (grub_hfs_dir): Likewise.
44121 (grub_hfs_label): Likewise.
44122 * fs/jfs.c (grub_jfs_mount): Likewise.
44123 (grub_jfs_opendir): Likewise.
44124 (grub_jfs_getent): Likewise.
44125 (grub_jfs_lookup_symlink): Likewise.
44126 (grub_jfs_label): Likewise.
44127 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44128 (grub_hfsplus_iterate_dir): Likewise.
44129 (grub_hfsplus_btree_iterate_node): Made static.
44130
44131 * util/grub-emu.c (prefix): New variable.
44132 (grub_machine_set_prefix): New function.
44133 (main): Do not set the environment variable "prefix" here. Only
44134 set PREFIX, which is used later by grub_machine_set_prefix.
44135
44136 * include/grub/video.h: Do not include grub/symbol.h.
44137 (grub_video_register): Not exported. This symbol is not defined in
44138 the kernel.
44139 (grub_video_unregister): Likewise.
44140 (grub_video_iterate): Likewise.
44141 (grub_video_setup): Likewise.
44142 (grub_video_restore): Likewise.
44143 (grub_video_get_info): Likewise.
44144 (grub_video_get_blit_format): Likewise.
44145 (grub_video_set_palette): Likewise.
44146 (grub_video_get_palette): Likewise.
44147 (grub_video_set_viewport): Likewise.
44148 (grub_video_get_viewport): Likewise.
44149 (grub_video_map_color): Likewise.
44150 (grub_video_map_rgb): Likewise.
44151 (grub_video_map_rgba): Likewise.
44152 (grub_video_fill_rect): Likewise.
44153 (grub_video_blit_glyph): Likewise.
44154 (grub_video_blit_bitmap): Likewise.
44155 (grub_video_blit_render_target): Likewise.
44156 (grub_video_scroll): Likewise.
44157 (grub_video_swap_buffers): Likewise.
44158 (grub_video_create_render_target): Likewise.
44159 (grub_video_delete_render_target): Likewise.
44160 (grub_video_set_active_render_target): Likewise.
44161
44162 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44163 Undefined.
44164 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44165
44166 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44167 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44168 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44169 instead of $(srcdir)/genkernsyms.sh.
44170
44171 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44172 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44173 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44174 instead of $(srcdir)/genkernsyms.sh.
44175
44176 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44177 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44178 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44179 instead of $(srcdir)/genkernsyms.sh.
44180
44181 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44182 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44183 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44184 instead of $(srcdir)/genkernsyms.sh.
44185
44186 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44187 genkernsyms.sh.
44188
44189 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44190 genkernsyms.sh.
44191 (gensymlist.sh): New target.
44192 (genkernsyms.sh): Likewise.
44193
44194 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44195 genkernsyms.sh.in and gensymlist.sh.in.
44196
44197 * genkernsyms.sh: Removed.
44198 * gensymlist.sh: Likewise.
f19dbdb7 44199
7b455f4d 44200 * genkernsyms.sh.in: New file.
44201 * gensymlist.sh.in: Likewise.
44202
1885bb27 442032006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44204
44205 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44206 clobber "prefix", since we may have already set it manually.
44207
71538dff 442082006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44209
44210 * kern/misc.c (abort): New alias for grub_abort.
44211
2965c7cc 442122006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44213
44214 A new machine-specific function "grub_machine_set_prefix" is
44215 defined. This is called after loading modules, so that a prefix
44216 initialization can use modules. Also, this change adds an
44217 intensive debugging feature for the memory manager via the
44218 configure option "--enable-mm-debug".
f19dbdb7 44219
2965c7cc 44220 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44221 PART.LEN.
44222
44223 * kern/sparc64/ieee1275/init.c (abort): Removed.
44224 (grub_stop): Likewise.
44225 (grub_exit): New function.
44226 (grub_set_prefix): Renamed to ...
44227 (grub_machine_set_prefix): ... this.
44228 (grub_machine_init): Do not call grub_set_prefix.
44229
44230 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44231 (grub_machine_set_prefix): ... this.
44232 (grub_machine_init): Do not call grub_set_prefix.
44233
44234 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44235 (grub_machine_init): Do not set the prefix here.
44236
44237 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44238
44239 * kern/efi/init.c: Include grub/mm.h.
44240 (grub_efi_set_prefix): New function.
44241
44242 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44243 (grub_efi_get_filename): New function.
44244 (grub_print_device_path): Renamed to ...
44245 (grub_efi_print_device_path): ... this.
44246
44247 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44248 [MM_DEBUG] (grub_realloc): Likewise.
44249 [MM_DEBUG] (grub_free): Likewise.
44250 [MM_DEBUG] (grub_memalign): Likewise.
44251 [MM_DEBUG] (grub_mm_debug): New variable.
44252 [MM_DEBUG] (grub_debug_malloc): New function.
44253 [MM_DEBUG] (grub_debug_free): New function.
44254 [MM_DEBUG] (grub_debug_realloc): New function.
44255 [MM_DEBUG] (grub_debug_memalign): New function.
44256
44257 * kern/misc.c (grub_abort): Print a newline to distinguish
44258 the message.
44259
44260 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44261 grub_set_root_dev after loading modules. This is necessary when
44262 setting a prefix depends on modules.
44263
44264 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44265 (grub_efi_print_device_path): ... this.
44266 (grub_efi_get_filename): New prototype.
44267 (grub_efi_set_prefix): Likewise.
44268
44269 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44270 and grub/disk.h.
44271 (grub_efidisk_get_device_handle): New prototype.
44272 (grub_efidisk_get_device_name): Likewise.
44273
44274 * include/grub/mm.h: Include config.h.
44275 (MM_DEBUG): Removed.
44276 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44277 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44278 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44279 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44280 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44281 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44282 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44283 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44284 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44285
44286 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44287
44288 * disk/efi/efidisk.c: Include grub/partition.h.
44289 (iterate_child_devices): New function.
44290 (add_device): First, compare only last device path nodes, so that
44291 devices are sorted by the types.
44292 (grub_efidisk_get_device_handle): New function.
44293 (grub_efidisk_get_device_name): Likewise.
44294
44295 * configure.ac (--enable-mm-debug): New option to enable the
44296 memory manager debugging feature. This makes the binary much
44297 bigger, so is disabled by default.
44298
9cacaa17 442992006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44300
44301 Use grub_abort instead of grub_stop, and grub_exit must be
44302 define in each architecture now. Also, this change adds support
44303 for EFI disks.
f19dbdb7 44304
9cacaa17 44305 * util/i386/pc/grub-probefs.c: Include grub/term.h.
44306 (grub_getkey): New function.
44307 (grub_term_get_current): Likewise.
44308
44309 * util/i386/pc/grub-setup.c: Include grub/term.h.
44310 (grub_getkey): New function.
44311 (grub_term_get_current): Likewise.
44312
44313 * util/misc.c (grub_stop): Renamed to ...
44314 (grub_exit): ... this.
44315
44316 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
44317 (grub_exit): ... this.
44318 (grub_machine_init): Use grub_abort instead of abort.
44319 (grub_stop): Removed.
44320
44321 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
44322 abort.
44323
44324 * kern/i386/pc/startup.S (grub_exit): New function.
44325 (cold_reboot): New label.
44326
44327 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
44328 (grub_efi_init): Call grub_efidisk_init.
44329 (grub_efi_fini): Call grub_efidisk_fini.
44330
44331 * kern/efi/efi.c: Include grub/mm.h.
44332 (grub_efi_console_control_guid): Renamed to ...
44333 (console_control_guid): ... this.
44334 (grub_efi_loaded_image_guid): Renamed to ...
44335 (loaded_image_guid): ... this.
44336 (grub_efi_locate_handle): New function.
44337 (grub_efi_open_protocol): Likewise.
44338 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
44339 GRUB_EFI_CONSOLE_CONTROL_GUID.
44340 (grub_efi_exit): Removed.
44341 (grub_stop): Likewise.
44342 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
44343 (grub_exit): New function.
44344 (grub_print_device_path): Likewise.
44345
44346 * kern/rescue.c (grub_rescue_cmd_exit): New function.
44347 (grub_enter_rescue_mode): Register "exit".
44348
44349 * kern/misc.c (grub_real_dprintf): A cosmetic change.
44350 (grub_abort): New function.
44351
44352 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
44353
44354 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
44355
44356 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
44357
44358 * include/grub/efi/efi.h (grub_efi_exit): Removed.
44359 (grub_print_device_path): New prototype.
44360 (grub_efi_locate_handle): Likewise.
44361 (grub_efi_open_protocol): Likewise.
44362
44363 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
44364 * disk/efi/efidisk.c: Likewise.
44365
44366 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
44367
44368 * include/grub/efi/console_control.h
44369 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
44370
44371 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
44372 last 8 bytes as an array.
44373 (GRUB_EFI_DISK_IO_GUID): New macro.
44374 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
44375 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
44376 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
44377 grub_uint8_t.
44378 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
44379 (struct grub_efi_device_path): Rename the member "sub_type" to
44380 "subtype".
44381 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
44382 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
44383 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
44384 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
44385 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
44386 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
44387 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
44388 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
44389 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
44390 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
44391 (struct grub_efi_pci_device_path): New structure.
44392 (grub_efi_pci_device_path_t): New type.
44393 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
44394 (struct grub_efi_pccard_device_path): New structure.
44395 (grub_efi_pccard_device_path_t): New type.
44396 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
44397 (struct grub_efi_memory_mapped_device_path): New structure.
44398 (grub_efi_memory_mapped_device_path_t): New type.
44399 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
44400 (struct grub_efi_vendor_device_path): New structure.
44401 (grub_efi_vendor_device_path_t): New type.
44402 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
44403 (struct grub_efi_controller_device_path): New structure.
44404 (grub_efi_controller_device_path_t): New type.
44405 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
44406 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
44407 (struct grub_efi_acpi_device_path): New structure.
44408 (grub_efi_acpi_device_path_t): New type.
44409 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
44410 (struct grub_efi_expanded_acpi_device_path): New structure.
44411 (grub_efi_expanded_acpi_device_path_t): New type.
44412 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
44413 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
44414 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
44415 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
44416 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
44417 (struct grub_efi_atapi_device_path): New structure.
44418 (grub_efi_atapi_device_path_t): New type.
44419 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
44420 (struct grub_efi_fibre_channel_device_path): New structure.
44421 (grub_efi_fibre_channel_device_path_t): New type.
44422 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
44423 (struct grub_efi_1394_device_path): New structure.
44424 (grub_efi_1394_device_path_t): New type.
44425 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
44426 (struct grub_efi_usb_device_path): New structure.
44427 (grub_efi_usb_device_path_t): New type.
44428 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
44429 (struct grub_efi_usb_class_device_path): New structure.
44430 (grub_efi_usb_class_device_path_t): New type.
44431 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
44432 (struct grub_efi_i2o_device_path): New structure.
44433 (grub_efi_i2o_device_path_t): New type.
44434 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
44435 (struct grub_efi_mac_address_device_path): New structure.
44436 (grub_efi_mac_address_device_path_t): New type.
44437 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
44438 (struct grub_efi_ipv4_device_path): New structure.
44439 (grub_efi_ipv4_device_path_t): New type.
44440 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
44441 (struct grub_efi_ipv6_device_path): New structure.
44442 (grub_efi_ipv6_device_path_t): New type.
44443 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
44444 (struct grub_efi_infiniband_device_path): New structure.
44445 (grub_efi_infiniband_device_path_t): New type.
44446 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
44447 (struct grub_efi_uart_device_path): New structure.
44448 (grub_efi_uart_device_path_t): New type.
44449 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
44450 (struct grub_efi_vendor_messaging_device_path): New structure.
44451 (grub_efi_vendor_messaging_device_path_t): New type.
44452 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
44453 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
44454 (struct grub_efi_hard_drive_device_path): New structure.
44455 (grub_efi_hard_drive_device_path_t): New type.
44456 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
44457 (struct grub_efi_cdrom_device_path): New structure.
44458 (grub_efi_cdrom_device_path_t): New type.
44459 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
44460 (struct grub_efi_vendor_media_device_path): New structure.
44461 (grub_efi_vendor_media_device_path_t): New type.
44462 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
44463 (struct grub_efi_file_path_device_path): New structure.
44464 (grub_efi_file_path_device_path_t): New type.
44465 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
44466 (struct grub_efi_protocol_device_path): New structure.
44467 (grub_efi_protocol_device_path_t): New type.
44468 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
44469 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
44470 (struct grub_efi_bios_device_path): New structure.
44471 (grub_efi_bios_device_path_t): New type.
44472 (struct grub_efi_disk_io): New structure.
44473 (grub_efi_disk_io_t): New type.
44474 (struct grub_efi_block_io_media): New structure.
44475 (grub_efi_block_io_media_t): New type.
44476 (struct grub_efi_block_io): New structure.
44477 (grub_efi_block_io_t): New type.
44478
44479 * include/grub/misc.h (grub_stop): Removed.
44480 (grub_exit): New prototype.
44481 (grub_abort): Likewise.
44482
44483 * include/grub/disk.h (enum grub_disk_dev_id): Added
44484 GRUB_DISK_DEVICE_EFIDISK_ID.
44485
44486 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
44487 disk/efi/efidisk.c.
44488 (kernel_syms.lst): Remove the target if an error occurs.
44489
49986a9f 444902006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
44491
44492 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
44493 as it was simply too buggy.
44494
970d3b8a 444952006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
44496
44497 * kern/misc.c (grub_lltoa): New function.
44498 (grub_vsprintf): Added support for the long long suffix,
44499 i.e. "ll".
44500
ff04ec24 445012006-04-20 Hollis Blanchard <hollis@penguinppc.org>
44502
44503 * Makefile.in (LDFLAGS): Add variable.
44504 (LD): Remove variable.
44505 * configure.ac: Add -m32 to LDFLAGS.
44506 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
44507 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
44508 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
44509 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
44510 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
44511 variables.
44512 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
44513 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
44514 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
44515
37e5e1a4 445162006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
44517
44518 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
44519 length for unknown glyph.
44520
c352d8dd 445212006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
44522
2eab1c0d 44523 Add support for pre-loaded modules into the EFI port.
f19dbdb7 44524
2eab1c0d 44525 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
44526 completely. Accept one more argument DIR. The caller has changed.
44527
44528 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
44529
44530 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
44531 (grub_efi_loaded_image_guid): New variable.
44532 (grub_efi_get_loaded_image): New function.
44533 (grub_arch_modules_addr): Likewise.
44534
44535 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
44536 prototype.
44537
44538 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
44539 (struct grub_efi_loaded_image): New structure.
44540 (grub_efi_loaded_image_t): New type.
44541
445422006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44543
c352d8dd 44544 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
44545 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
44546 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
44547
6d01d6b4 445482006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
44549
44550 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
44551
976a4ea0 445522006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
44553
44554 * DISTLIST: Added include/grub/efi/console.h,
44555 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
44556 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44557
44558 * include/grub/efi/console.h: New file.
44559 * include/grub/efi/time.h: Likewise.
44560 * include/grub/i386/efi/kernel.h: Likewise.
44561 * kern/efi/init.c: Likewise.
44562 * kern/efi/mm.c: Likewise.
44563 * term/efi/console.c: Likewise.
f19dbdb7 44564
976a4ea0 44565 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
44566 (grub_stop): Removed.
44567 (grub_get_rtc): Likewise.
44568 (grub_machine_init): Simply call grub_efi_init.
44569 (grub_machine_fini): Call grub_efi_fini.
44570
44571 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
44572 (grub_efi_output_string): Removed.
44573 (grub_efi_stall): New function.
44574 (grub_stop): Likewise.
44575 (grub_get_rtc): Likewise.
44576
44577 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
44578 (grub_efi_stall): New prototype.
44579 (grub_efi_allocate_pages): Likewise.
44580 (grub_efi_free_pages): Likewise.
44581 (grub_efi_get_memory_map): Likewise.
44582 (grub_efi_mm_init): Likewise.
44583 (grub_efi_mm_fini): Likewise.
44584 (grub_efi_init): Likewise.
44585 (grub_efi_fini): Likewise.
44586
44587 * include/grub/i386/efi/time.h: Do not include
44588 grub/symbol.h. Include grub/efi/time.h.
44589 (GRUB_TICKS_PER_SECOND): Removed.
44590 (grub_get_rtc): Likewise.
44591
44592 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
44593 Added padding. The EFI spec is buggy.
44594 (GRUB_EFI_BLACK): New macro.
44595 (GRUB_EFI_BLUE): Likewise.
44596 (GRUB_EFI_GREEN): Likewise.
44597 (GRUB_EFI_CYAN): Likewise.
44598 (GRUB_EFI_RED): Likewise.
44599 (GRUB_EFI_MAGENTA): Likewise.
44600 (GRUB_EFI_BROWN): Likewise.
44601 (GRUB_EFI_LIGHTGRAY): Likewise.
44602 (GRUB_EFI_BRIGHT): Likewise.
44603 (GRUB_EFI_DARKGRAY): Likewise.
44604 (GRUB_EFI_LIGHTBLUE): Likewise.
44605 (GRUB_EFI_LIGHTGREEN): Likewise.
44606 (GRUB_EFI_LIGHTCYAN): Likewise.
44607 (GRUB_EFI_LIGHTRED): Likewise.
44608 (GRUB_EFI_LIGHTMAGENTA): Likewise.
44609 (GRUB_EFI_YELLOW): Likewise.
44610 (GRUB_EFI_WHITE): Likewise.
44611 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
44612 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
44613 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
44614 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
44615 (GRUB_EFI_BACKGROUND_RED): Likewise.
44616 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
44617 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
44618 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
44619 (GRUB_EFI_TEXT_ATTR): Likewise.
44620
44621 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
44622 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44623 (kernel_mod_HEADERS): Added efi/time.h.
44624
83709125 446252006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
44626
44627 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
44628 include/grub/efi/api.h, include/grub/efi/console_control.h,
44629 include/grub/efi/efi.h, include/grub/efi/pe32.h,
44630 include/grub/i386/efi/time.h, kern/efi/efi.c,
44631 kern/i386/efi/init.c, kern/i386/efi/startup.S,
44632 and util/i386/efi/grub-mkimage.c.
44633
44634 * Makefile.in (RMKFILES): Added i386-efi.rmk.
44635
44636 * genmk.rb (PModule#rule): Do not export symbols if
44637 #{prefix}_EXPORTS is set to "no".
44638
44639 * conf/i386-efi.mk: New file.
44640 * conf/i386-efi.rmk: Likewise.
44641 * include/grub/efi/api.h: Likewise.
44642 * include/grub/efi/console_control.h: Likewise.
44643 * include/grub/efi/efi.h: Likewise.
44644 * include/grub/efi/pe32.h: Likewise.
44645 * include/grub/i386/efi/time.h: Likewise.
44646 * kern/efi/efi.c: Likewise.
44647 * kern/i386/efi/init.c: Likewise.
44648 * kern/i386/efi/startup.S: Likewise.
44649 * util/i386/efi/grub-mkimage.c: Likewise.
44650
446512006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 44652
44653 * include/grub/script.h: Include <grub/parser.h> and
44654 "grub_script.tab.h".
44655 (struct grub_lexer_param): New struct.
44656 (struct grub_parser_param): Likewise.
44657 (grub_script_create_arglist): Pass the state in an argument.
44658 (grub_script_add_arglist): Likewise.
44659 (grub_script_create_cmdline): Likewise.
44660 (grub_script_create_cmdblock): Likewise.
44661 (grub_script_create_cmdif): Likewise.
44662 (grub_script_create_cmdmenu): Likewise.
44663 (grub_script_add_cmd): Likewise.
44664 (grub_script_arg_add): Likewise.
44665 (grub_script_lexer_ref): Likewise.
44666 (grub_script_lexer_deref): Likewise.
44667 (grub_script_lexer_record_start): Likewise.
44668 (grub_script_lexer_record_stop): Likewise.
44669 (grub_script_mem_record): Likewise.
44670 (grub_script_mem_record_stop): Likewise.
44671 (grub_script_malloc): Likewise.
44672 (grub_script_yylex): Likewise.
44673 (grub_script_yyparse): Likewise.
44674 (grub_script_yyerror): Likewise.
44675 (grub_script_yylex): Likewise.
44676 (grub_script_lexer_init): Return the state.
44677
44678 * normal/lexer.c (grub_script_lexer_state): Removed variable.
44679 (grub_script_lexer_done): Likewise.
44680 (grub_script_lexer_getline): Likewise.
44681 (grub_script_lexer_refs): Likewise.
44682 (script): Likewise.
44683 (newscript): Likewise.
44684 (record): Likewise.
44685 (recording): Likewise.
44686 (recordpos): Likewise.
44687 (recordlen): Likewise.
44688 (grub_script_lexer_init): Return the state instead of setting
44689 global variables.
44690 (grub_script_lexer_ref): Use the newly added argument for state
44691 instead of globals.
44692 (grub_script_lexer_deref): Likewise.
44693 (grub_script_lexer_record_start): Likewise.
44694 (grub_script_lexer_record_stop): Likewise.
44695 (recordchar): Likewise.
44696 (nextchar): Likewise.
44697 (grub_script_yylex2): Likewise.
44698 (grub_script_yylex): Likewise.
44699 (grub_script_yyerror): Likewise.
44700
44701 * normal/parser.y (func_mem): Removed variable.
44702 (menu_entry): Likewise.
44703 (err): Likewise.
44704 (%lex-param): New parser option.
44705 (%parse-param): Likewise.
44706 (script): Always return the AST.
44707 (argument): Pass the state around.
44708 (arguments): Likewise.
44709 (grubcmd): Likewise.
44710 (commands): Likewise.
44711 (function): Likewise.
44712 (menuentry): Likewise.
44713 (if_statement): Likewise.
44714 (if): Likewise.
44715
44716 * normal/script.c (grub_script_memused): Removed variable.
44717 (grub_script_parsed): Likewise.
44718 (grub_script_malloc): Added a state argument. Use that instead of
44719 global variables.
44720 (grub_script_mem_record): Likewise.
44721 (grub_script_mem_record_stop): Likewise.
44722 (grub_script_arg_add): Likewise.
44723 (grub_script_add_arglist): Likewise.
44724 (grub_script_create_cmdline): Likewise.
44725 (grub_script_create_cmdif): Likewise.
44726 (grub_script_create_cmdmenu): Likewise.
44727 (grub_script_add_cmd): Likewise.
44728 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 44729
e2a8c904 447302006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 44731
44732 * normal/command.c (grub_command_init): Remove the title command.
44733
44734 * normal/lexer.c (grub_script_yylex): Renamed from this...
44735 (grub_script_yylex2): ... to this.
44736 (grub_script_yylex): New function. Temporary
44737 introduced to filter some tokens.
44738 (grub_script_yyerror): Print a newline.
44739
44740 * normal/main.c (read_config_file): Output information about the
44741 lines that contain errors. Wait for a key after all lines have
44742 been processed. Don't return an empty menu.
44743
44744 * normal/parser.y (func_mem): Don't initialize.
44745 (menu_entry): Likewise.
44746 (err): New variable.
44747 (script): Don't return anything when an error was encountered.
44748 (ws, returns): Removed rules.
44749 (argument): Disabled concatenated variable support.
44750 (arguments): Remove explicit separators.
44751 (grubcmd): Likewise.
44752 (function): Likewise.
44753 (menuentry): Likewise.
44754 (if): Likewise.
44755 (commands): Likewise. Add error handling.
44756
44757 * normal/script.c (grub_script_create_cmdline): If
44758 `grub_script_parsed' is 0, assume the parser encountered an error.
44759
c9a86192 447602006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
44761
44762 * configure.ac: Add support for EFI. Fix the typo
44763 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
44764
70f3b243 447652006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44766
44767 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
44768 foreign multibyte characters should be shown correctly.
44769
65f201ad 447702006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44771
44772 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
44773 calculation.
44774 (read_config_file): Made it to close file before returning.
44775
b4b93674 447762006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
44777
44778 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
44779 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
44780 video/i386/pc/vbefill.c.
44781
44782 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
44783 video/i386/pc/vbefill.c.
44784
44785 * include/grub/video.h (grub_video_blit_format): New enum.
44786 (grub_video_mode_info): Added new member blit_format.
44787 (grub_video_get_blit_format): New function prototype.
44788
44789 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
44790 function prototype.
44791 (grub_video_vbe_map_rgb): Likewise.
44792 (grub_video_vbe_unmap_color): Likewise.
44793
44794 * include/grub/i386/pc/vbeblit.h: New file.
44795
44796 * include/grub/i386/pc/vbefill.h: New file.
44797
44798 * video/video.c (grub_video_get_blit_format): New function.
44799 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
44800 (grub_video_vbe_map_rgb): Likewise.
44801 (grub_video_vbe_unmap_color): Likewise.
44802
44803 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
44804 optimized fills.
44805 (grub_video_vbe_blit_render_target): Changed to use more optimized
44806 blits.
44807 (grub_video_vbe_setup): Added detection for optimized settings.
44808 (grub_video_vbe_create_render_target): Likewise.
44809
44810 * video/i386/pc/vbeblit.c: New file.
44811
44812 * video/i386/pc/vbefill.c: New file.
44813
c2379b9c 448142006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
44815
44816 * font/manager.c (grub_font_get_glyph): Removed font fixup from
44817 here...
44818
44819 * util/unifont2pff.rb: ... and moved it to here. Improved argument
44820 parsing to support both hex and dec ranges. If filename was missing
44821 show usage information.
44822
bd0d7896 448232006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
44824
44825 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44826 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44827
44828 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44829 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44830 (video_mod_SOURCES): Added.
44831 (video_mod_CFLAGS): Likewise.
44832 (video_mod_LDFLAGS): Likewise.
44833 (gfxterm_mod_SOURCES): Likewise.
44834 (gfxterm_mod_CFLAGS): Likewise.
44835 (gfxterm_mod_LDFLAGS): Likewise.
44836 (videotest_mod_SOURCES): Likewise.
44837 (videotest_mod_CFLAGS): Likewise.
44838 (videotest_mod_LDFLAGS): Likewise.
44839 (vesafb_mod_SOURCES): Removed.
44840 (vesafb_mod_CFLAGS): Likewise.
44841 (vesafb_mod_LDFLAGS): Likewise.
44842 (vga_mod_SOURCES): Likewise.
44843 (vga_mod_CFLAGS): Likewise.
44844 (vga_mod_LDFLAGS): Likewise.
44845
44846 * commands/videotest.c: New file.
44847
44848 * font/manager.c (fill_with_default_glyph): Modified to use
44849 grub_font_glyph.
44850 (grub_font_get_glyph): Likewise.
44851 (fontmanager): Renamed from this...
44852 (font_manager): ... to this.
44853
44854 * include/grub/font.h (grub_font_glyph): Added new structure.
44855 (grub_font_get_glyph): Modified to use grub_font_glyph.
44856
44857 * include/grub/misc.h (grub_abs): Added as inline function.
44858
44859 * include/grub/video.h: New file.
44860
44861 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44862 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
44863 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
44864 (grub_vbe_get_controller_info): Renamed from this...
44865 (grub_vbe_bios_get_controller_info): ... to this.
44866 (grub_vbe_get_mode_info): Renamed from this...
44867 (grub_vbe_bios_get_mode_info): ... to this.
44868 (grub_vbe_set_mode): Renamed from this...
44869 (grub_vbe_bios_set_mode): ... to this.
44870 (grub_vbe_get_mode): Renamed from this...
44871 (grub_vbe_bios_get_mode): ... to this.
44872 (grub_vbe_set_memory_window): Renamed from this...
44873 (grub_vbe_bios_set_memory_window): ... to this.
44874 (grub_vbe_get_memory_window): Renamed from this...
44875 (grub_vbe_bios_get_memory_window): ... to this.
44876 (grub_vbe_set_scanline_length): Renamed from this...
44877 (grub_vbe_set_scanline_length): ... to this.
44878 (grub_vbe_get_scanline_length): Renamed from this...
44879 (grub_vbe_bios_get_scanline_length): ... to this.
44880 (grub_vbe_set_display_start): Renamed from this...
44881 (grub_vbe_bios_set_display_start): ... to this.
44882 (grub_vbe_get_display_start): Renamed from this...
44883 (grub_vbe_bios_get_display_start): ... to this.
44884 (grub_vbe_set_palette_data): Renamed from this...
44885 (grub_vbe_bios_set_palette_data): ... to this.
44886 (grub_vbe_set_pixel_rgb): Removed.
44887 (grub_vbe_set_pixel_index): Likewise.
44888
44889 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44890 from this...
44891 (grub_vbe_bios_get_controller_info): ... to this.
44892 (grub_vbe_get_mode_info): Renamed from this...
44893 (grub_vbe_bios_get_mode_info): ... to this.
44894 (grub_vbe_set_mode): Renamed from this...
44895 (grub_vbe_bios_set_mode): ... to this.
44896 (grub_vbe_get_mode): Renamed from this...
44897 (grub_vbe_bios_get_mode): ... to this.
44898 (grub_vbe_set_memory_window): Renamed from this...
44899 (grub_vbe_bios_set_memory_window): ... to this.
44900 (grub_vbe_get_memory_window): Renamed from this...
44901 (grub_vbe_bios_get_memory_window): ... to this.
44902 (grub_vbe_set_scanline_length): Renamed from this...
44903 (grub_vbe_set_scanline_length): ... to this.
44904 (grub_vbe_get_scanline_length): Renamed from this...
44905 (grub_vbe_bios_get_scanline_length): ... to this.
44906 (grub_vbe_set_display_start): Renamed from this...
44907 (grub_vbe_bios_set_display_start): ... to this.
44908 (grub_vbe_get_display_start): Renamed from this...
44909 (grub_vbe_bios_get_display_start): ... to this.
44910 (grub_vbe_set_palette_data): Renamed from this...
44911 (grub_vbe_bios_set_palette_data): ... to this.
44912 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44913 getting corrupted after calling it. Added more pushes and pops.
44914 (grub_vbe_bios_set_mode): Likewise.
44915 (grub_vbe_bios_get_mode): Likewise.
44916 (grub_vbe_bios_get_memory_window): Likewise.
44917 (grub_vbe_bios_set_scanline_length): Likewise.
44918 (grub_vbe_bios_get_scanline_length): Likewise.
44919 (grub_vbe_bios_get_display_start): Likewise.
44920 (grub_vbe_bios_set_palette_data): Likewise.
44921
44922 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44923 (cl_insert): Likewise.
44924 (cl_delete): Likewise.
44925
44926 * term/gfxterm.c: New file.
44927
44928 * term/i386/pc/vesafb.c: Removed file.
44929
44930 * video/video.c: New file.
44931
44932 * video/i386/pc/vbe.c (real2pm): Added new function.
44933 (grub_video_vbe_draw_pixel): Likewise.
44934 (grub_video_vbe_get_video_ptr): Likewise.
44935 (grub_video_vbe_get_pixel): Likewise
44936 (grub_video_vbe_init): Likewise.
44937 (grub_video_vbe_fini): Likewise.
44938 (grub_video_vbe_setup): Likewise.
44939 (grub_video_vbe_get_info): Likewise.
44940 (grub_video_vbe_set_palette): Likewise.
44941 (grub_video_vbe_get_palette): Likewise.
44942 (grub_video_vbe_set_viewport): Likewise.
44943 (grub_video_vbe_get_viewport): Likewise.
44944 (grub_video_vbe_map_color): Likewise.
44945 (grub_video_vbe_map_rgb): Likewise.
44946 (grub_video_vbe_map_rgba): Likewise.
44947 (grub_video_vbe_unmap_color): Likewise.
44948 (grub_video_vbe_fill_rect): Likewise.
44949 (grub_video_vbe_blit_glyph): Likewise.
44950 (grub_video_vbe_blit_bitmap): Likewise.
44951 (grub_video_vbe_blit_render_target): Likewise.
44952 (grub_video_vbe_scroll): Likewise.
44953 (grub_video_vbe_swap_buffers): Likewise.
44954 (grub_video_vbe_create_render_target): Likewise.
44955 (grub_video_vbe_delete_render_target): Likewise.
44956 (grub_video_vbe_set_active_render_target): Likewise.
44957 (grub_vbe_set_pixel_rgb): Remove function.
44958 (grub_vbe_set_pixel_index): Likewise.
44959 (index_color_mode): Remove static variable.
44960 (active_mode): Likewise.
44961 (framebuffer): Likewise.
44962 (bytes_per_scan_line): Likewise.
44963 (grub_video_vbe_adapter): Added new static variable.
44964 (framebuffer): Likewise.
44965 (render_target): Likewise.
44966 (initial_mode): Likewise.
44967 (mode_in_use): Likewise.
44968 (mode_list): Likewise.
44969
5f97350b 449702006-03-10 Marco Gerards <marco@gnu.org>
44971
44972 * configure.ac (AC_INIT): Bumped to 1.93.
44973
44974 * DISTLIST: Added `include/grub/hfs.h'.
44975
a3c5c6f8 449762006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44977
44978 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44979 18H, which might help the BIOS falling back to next boot media.
44980
6de53d26 449812006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44982
44983 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44984 Poe Chen <poe.poechen@gmail.com>.
44985
77c4a393 449862006-01-17 Marco Gerards <marco@gnu.org>
44987
44988 * include/grub/normal.h: Include <grub/script.h>.
44989 (grub_command_list): Removed struct.
44990 (grub_command_list_t): Removed type.
44991 (grub_menu_entry): Remove members `num' and `command_list'. Add
44992 members `commands' and `sourcecode'.
44993 * include/grub/script.h: Add inclusion guards.
44994 (grub_script_cmd_menuentry): New struct.
44995 (grub_script_execute_menuentry): New prototype.
44996 (grub_script_lexer_record_start): Likewise.
44997 (grub_script_lexer_record_stop): Likewise.
44998 * normal/execute.c (grub_script_execute_menuentry): New function.
44999 * normal/lexer.c (record, recording, recordpos, recordlen): New
45000 variables.
45001 (grub_script_lexer_record_start): New function.
45002 (grub_script_lexer_record_stop): Likewise.
45003 (recordchar): Likewise.
45004 (nextchar): Likewise.
45005 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
45006 2048 as the buffer size. Add the tokens `menuentry' and `@'.
45007 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
45008 (current_menu): New variable.
45009 (free_menu): Mainly rewritten.
45010 (grub_normal_menu_addentry): New function.
45011 (read_config_file): Rewritten.
45012 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 45013 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 45014 the menu entry.
45015 (run): Mainly rewritten.
45016 * normal/parser.y (menu_entry): New variable.
45017 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45018 (menuentry): New rule.
45019 (command): Add `menuentry'.
45020 (if_statement): Allow additional returns before `fi'.
45021 * normal/script.c (grub_script_create_cmdmenu): New function.
45022
144f1f98 450232006-01-03 Marco Gerards <marco@gnu.org>
45024
45025 * INSTALL: GNU Bison is required.
45026 * configure.ac: Rewritten the test to detect Bison.
45027 * Makefile.in (YACC): New variable. Reported by Xun Sun
45028 <xun.sun.cn@gmail.com>.
45029
af4b2d89 450302006-01-03 Marco Gerards <marco@gnu.org>
45031
45032 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45033 the HFS+ filesystem to filesystem blocks.
45034 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45035 GCC warning is silenced.
45036
15643b71 450372006-01-03 Marco Gerards <marco@gnu.org>
45038
45039 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45040 read from disk from big endian to host byte order.
45041
00905879 450422006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45043
45044 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45045 documentation.
45046 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45047 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45048 embedded HFS+ filesystem.
45049 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45050 (grub_hfs_sblock): Move from here...
45051 * include/grub/hfs.h: To here... New file.
45052 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45053 documentation.
45054 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45055 New macros.
45056 (grub_hfsplus_volheader): Change type of member `magic' to
45057 `grub_uint16_t'.
45058 (grub_hfsplus_data): Add new member `embedded_offset'.
45059 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45060 returned block.
45061 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45062 Calculate the offset.
45063
8899bc3e 450642005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45065
45066 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45067 Removed.
45068 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45069
ae8c0277 450702005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45071
45072 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45073 ENV->NAME is NULL after allocating ENV->VALUE.
45074
07084456 450752005-12-25 Marco Gerards <marco@gnu.org>
45076
45077 * kern/env.c (grub_env_set): Rewritten the error handling code.
45078
4750f5f1 450792005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45080
45081 * geninit.sh: Made more robust, and more portable.
45082
50214199 450832005-12-25 Marco Gerards <marco@gnu.org>
45084
45085 Add support for Apple HFS+ filesystems.
f19dbdb7 45086
50214199 45087 * fs/hfsplus.c: New file.
45088
45089 * DISTLIST: Added `fs/hfsplus.c'.
45090
45091 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45092 (hfsplus_mod_SOURCES): New variable.
45093 (hfsplus_mod_CFLAGS): Likewise.
45094 (hfsplus_mod_LDFLAGS): Likewise.
45095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45096 (grub_setup_SOURCES): Likewise.
45097 (grub_mkdevicemap_SOURCES): Likewise.
45098 (grub_emu_SOURCES): Likewise.
45099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45100
45101 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45102
45103 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45104
befaed6c 451052005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45106
45107 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45108 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45109 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45110 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45111 normal/lexer.c, normal/parser.y, normal/script.c, and
45112 partmap/gpt.c.
45113 Removed kern/sparc64/cache.c.
45114
45115 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45116 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45117 grub_emu_init.c.
45118
45119 * configure.ac (AC_INIT): Bumped to 1.92.
45120
6a124103 451212005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45122
45123 * kern/err.c (grub_error_push): Added new function to support error
45124 stacks.
45125 (grub_error_pop): Likewise.
45126 (grub_error_stack_items): New local variable to support error stacks.
45127 (grub_error_stack_pos): Likewise.
45128 (grub_error_stack_assert): Likewise.
45129 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45130 stack depth.
45131 (grub_print_error): Added support to print errors from error stack.
45132
45133 * include/grub/err.h (grub_error_push): Added function prototype.
45134 (grub_error_pop): Likewise.
45135
be973c1b 451362005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45137
45138 * configure.ac: Accept `powerpc64' as host_cpu.
45139 (amd64): Rename to `biarch32'.
45140
45141 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45142 non-cacheline-aligned addresses.
45143
45144 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45145 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45146 if `size' is non-zero.
45147
b04216ab 451482005-12-03 Marco Gerards <mgerards@xs4all.nl>
45149
45150 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45151 and `cd' to make sure the filename is not prefixed with a
45152 directory name.
45153 (pkgdata_MODULES): Add `gpt.mod'.
45154 (gpt_mod_SOURCES): New variable.
45155 (gpt_mod_CFLAGS): Likewise.
45156 (gpt_mod_LDFLAGS): Likewise.
45157
45158 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45159
45160 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45161 New macro.
45162
45163 * partmap/gpt.c: New file.
45164
45165 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45166 GPT partition map is detected.
45167
41730ed9 451682005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45169
45170 * commands/i386/pc/play.c: New file.
45171 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45172 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45173 macros.
f19dbdb7 45174
95dc3643 451752005-11-27 Marco Gerards <mgerards@xs4all.nl>
45176
45177 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45178 ((unused))' to silence gcc warning.
45179
1569ec51 451802005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45181
45182 * configure.ac: Correct `AC_PROG_YACC' test.
45183
9abde152 451842005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45185
45186 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45187 check before installing files.
45188
44b83271 451892005-11-22 Mike Small <smallm@panix.com>
45190
45191 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45192 number regex so multidigit numbers are recognized correctly.
45193
451942005-11-22 Mike Small <smallm@panix.com>
45195
45196 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45197 debugging message before attempting to claim memory.
45198 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45199 multiple addresses in case of failure.
45200
9c12956b 452012005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45202
45203 * term/tparm.c (get_space): Remove empty `if' statement.
45204
45205 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45206
45207 * kern/parser.c (check_varstate): Rename `state' to 's'.
45208
aeaf81d9 452092005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45210
45211 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45212 variable definitions to the beginning of each function. Sort stack
45213 variables by size.
45214 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45215 `buf' argument to `char *'.
45216
79bbb63f 452172005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45218
45219 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45220 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45221 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 45222 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45223 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45224 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45225 configfile.mod, search.mod, gzio.mod and test.mod.
45226 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45227 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45228 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45229 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45230 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45231 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45232 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45233 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45234 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45235 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45236 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45237 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45238 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45239 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45240 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45241 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45242 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45243 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45244 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45245 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45246 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45247 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45248 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45249
45250 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45251 `grep --include'.
45252 (pkgdata_MODULES): Add test.mod.
45253
233b1628 452542005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45255
45256 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45257 appending to variables with "+=".
45258 (PModule): Use full pathname to generate *.lst filenames.
45259
45260 * Makefile.in: Fixed list rules moved from genmk.rb.
45261 (.DELETE_ON_ERROR): New special target.
45262 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45263
45264 * conf/i386-pc.rmk: Include conf/common.mk.
45265 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45266 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 45267 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45268 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45269 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45270 configfile.mod, search.mod, gzio.mod and test.mod.
45271 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45272 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45273 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45274 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45275 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45276 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45277 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45278 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45279 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45280 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45281 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45282 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45283 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45284 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45285 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45286 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45287 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45288 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45289 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45290 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45291 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45292 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45293 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45294 here...
45295 * conf/common.rmk: ... to here. New file.
45296
45297 * conf/common.mk: New file.
45298
16f820c8 452992005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45300
45301 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45302 (grub_script.tab.c): ... here.
45303
45304 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
45305 (grub_script.tab.c): ... here.
45306
45307 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
45308 (grub_script.tab.c): ... here.
45309
45310 * normal/command.c (grub_command_find): Fixed a memory leak of
45311 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
45312
63ba1554 453132005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45314
45315 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
45316 "@" which marks the start of a comment on ARM.
45317 (VARIABLE): Likewise.
45318
7f67dc13 453192005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45320
79bbb63f 45321 Add support for Linux/ADFS partition tables.
7f67dc13 45322
45323 * partmap/acorn.c: New file.
45324
45325 * include/grub/acorn_filecore.h: Likewise.
45326
45327 * DISTLIST: Added `partmap/acorn.c' and
45328 `include/grub/acorn_filecore.h'.
f19dbdb7 45329
7f67dc13 45330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45331 `partmap/acorn.c'.
45332 (pkgdata_MODULES): Add `acorn.mod'.
45333 (acorn_mod_SOURCES): New variable.
45334 (acorn_mod_CFLAGS): Likewise.
45335
45336 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45337 `partmap/acorn.c'.
45338 (pkgdata_MODULES): Add `acorn.mod'.
45339 (acorn_mod_SOURCES): New variable.
45340 (acorn_mod_CFLAGS): Likewise.
45341
45342 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
45343 (pkgdata_MODULES): Add `acorn.mod'.
45344 (acorn_mod_SOURCES): New variable.
45345 (acorn_mod_CFLAGS): Likewise.
45346 (acorn_mod_LDFLAGS): Likewise.
45347
45348 * include/types.h (grub_disk_addr_t): New typedef.
45349
6d099807 453502005-11-13 Marco Gerards <mgerards@xs4all.nl>
45351
45352 * geninit.sh: New file.
45353
45354 * geninitheader.sh: Likewise.
45355
45356 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
45357 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
45358 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
45359 * commands/configfile.c (grub_configfile_init)
45360 (grub_configfile_fini): Likewise.
45361 * commands/default.c (grub_default_init, grub_default_fini):
45362 Likewise.
45363 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
45364 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
45365 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
45366 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
45367 Likewise.
45368 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
45369 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
45370 Likewise.
45371 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 45372 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 45373 Likewise.
45374 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
45375 Likewise.
fe6b695a 45376 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 45377 Likewise.
45378 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
45379 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
45380 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
45381 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
45382 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
45383 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
45384 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
45385 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
45386 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
45387 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
45388 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
45389 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
45390 * partmap/amiga.c (grub_amiga_partition_map_init)
45391 (grub_amiga_partition_map_fini): Likewise.
45392 * partmap/apple.c (grub_apple_partition_map_init)
45393 (grub_apple_partition_map_fini): Likewise.
45394 * partmap/pc.c (grub_pc_partition_map_init)
45395 (grub_pc_partition_map_fini): Likewise.
45396 * partmap/sun.c (grub_sun_partition_map_init,
45397 grub_sun_partition_map_fini): Likewise.
45398 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
45399 Likewise.
45400
45401 * util/grub-emu.c: Include <grub_modules_init.h>.
45402 (main): Don't initialize and de-initialize any modules directly,
45403 use `grub_init_all' and `grub_fini_all' instead.
45404
45405 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
45406 `grub_vesafb_mod_init'.
45407 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
45408 all users.
45409 * term/i386/pc/vga.c (grub_vga_init): Renamed to
45410 `grub_vga_mod_init'. Updated all users.
45411 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 45412
6d099807 45413 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
45414 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
45415 rules.
45416
45417 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
45418 Generate a function to initialize the module in utilities.
45419 Updated all callers.
45420 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
45421 initialize the module in utilities. Updated all callers.
45422
9046bcf0 454232005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45424
45425 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
45426 escape sequence and a literal ^L to clear the screen.
45427
45428 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
45429 when returning from Open Firmware.
45430
d13ea639 454312005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45432
45433 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
45434 (grub_ofconsole_height): Likewise.
45435 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
45436 manually insert a '\n'.
45437 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
45438 `grub_ofconsole_height'. Return early if these are already set.
45439
a8fcf206 454402005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
45441
45442 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45443 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
45444 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
45445 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
45446 and `normal/script.c'.
45447 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45448 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45449 (test_mod_SOURCES): New variable.
45450 (test_mod_CFLAGS): Likewise.
45451 (test_mod_LDFLAGS): Likewise.
45452 (pkgdata_MODULES): Add `test.mod'.
45453 (grub_script.tab.c): New rule.
45454 (grub_script.tab.h): Likewise.
45455
b6b32745 454562005-11-07 Marco Gerards <mgerards@xs4all.nl>
45457
45458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45459 `commands/test.c', `normal/execute.c', `normal/lexer.c',
45460 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45461 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45462 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45463 (test_mod_SOURCES): New variable.
45464 (test_mod_CFLAGS): Likewise.
45465 (pkgdata_MODULES): Add `test.mod'.
45466 (grub_script.tab.c): New rule.
45467 (grub_script.tab.h): Likewise.
45468
daac212a 454692005-11-06 Marco Gerards <mgerards@xs4all.nl>
45470
45471 Add initial scripting support.
45472
45473 * commands/test.c: New file.
45474 * include/grub/script.h: Likewise.
45475 * normal/execute.c: Likewise.
45476 * normal/function.c: Likewise.
45477 * normal/lexer.c: Likewise.
45478 * normal/parser.y: Likewise.
45479 * normal/script.c: Likewise.
45480
45481 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 45482
daac212a 45483 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
45484 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
45485 `normal/function.c' and `normal/script.c'.
45486 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45487 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 45488 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
45489 variables.
daac212a 45490 (pkgdata_MODULES): Add `test.mod'.
45491 (grub_script.tab.c): New rule.
45492 (grub_script.tab.h): Likewise.
45493
45494 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
45495
45496 * include/grub/normal.h (grub_test_init): New prototype.
45497 (grub_test_fini): Likewise.
f19dbdb7 45498
daac212a 45499 * normal/command.c: Include <grub/script.h>.
45500 (grub_command_execute): Rewritten.
f19dbdb7 45501
daac212a 45502 * util/grub-emu.c (main): Call `grub_test_init' and
45503 `grub_test_fini'.
45504
77500b2b 455052005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45506
45507 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
45508 to 0.
45509 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
45510 there are no pending characters.
45511
e45deb9e 455122005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45513
45514 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
45515 `grub_strndup' to drop device arguments. Replace unnecessary
45516 `grub_strndup' with `grub_strdup'.
45517
4ce32619 455182005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45519
45520 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
45521 `debug' environment variable has been set.
45522
455232005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 45524
4ce32619 45525 * Makefile.in (install-local): Use $(DATA).
45526 (uninstall): Likewise.
45527 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
45528 (sbin_UTILITIES): ... to here.
45529 (sbin_SCRIPTS): New variable.
45530 (grub_install_SOURCES): New variable.
45531 * util/powerpc/ieee1275/grub-install.in: New file.
45532 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
45533 variable.
45534 (add_segments): Call `grub_util_get_path'.
45535
25fe6f03 455362005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45537
45538 From Timothy Baldwin:
45539 * commands/ls.c (grub_ls_list_files): Close FILE with
45540 grub_file_close.
45541 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
45542
04ccf3ec 455432005-10-24 Marco Gerards <mgerards@xs4all.nl>
45544
45545 * include/grub/parser.h: New file.
45546
45547 * kern/parser.c: Likewise.
45548
45549 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
45550 (grub_setup_SOURCES): Likewise.
45551 (grub_probefs_SOURCES): Likewise.
45552 (grub_emu_SOURCES): Likewise.
45553 (kernel_img_HEADERS): Add `parser.h'.
45554
45555 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45556 (grub_emu_SOURCES): Add `kern/parser.c'.
45557 (grubof_SOURCES): Likewise.
45558
45559 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45560 (grubof_SOURCES): Add `kern/parser.c'.
45561
45562 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
45563
45564 * kern/misc.c (grub_split_cmdline): Removed function.
45565
45566 * kern/rescue.c: Include <grub/parser.h>.
45567 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
45568 of `grub_split_cmdline'.
45569
45570 * normal/command.c: Include <grub/parser.h>.
45571 (grub_command_execute): Use `grub_parser_split_cmdline' instead
45572 of `grub_split_cmdline'.
45573
45574 * normal/completion.c: Include <grub/parser.h>.
45575 (cmdline_state): New variable.
45576 (iterate_dir): End the filename with a quote depending on the
45577 command line state.
45578 (get_state): new function.
45579 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
45580 split the arguments and determine the current argument. When the
45581 argument string is not quoted, escape all spaces.
45582
6d8f4b0e 455832005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45584
45585 * normal/sparc64/setjmp.S: New file.
45586
15cf03ed 455872005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45588
45589 * include/grub/sparc64/libgcc.h: New file.
45590 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
45591 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
45592 normal/sparc64/setjmp.c.
45593
03e8661a 455942005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45595
45596 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
45597 * kern/sparc64/cache.S: New file.
45598 * kern/sparc64/cache.c: Removed.
45599 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
45600 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
45601 -mtune=ultrasparc.
45602 (COMMON_LDFLAGS): Add -melf64_sparc.
45603 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
45604 (grubof_SOURCES): Use cache.S instead of cache.c.
45605 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
45606 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
45607 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
45608 commented though.
45609 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
45610 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
45611 (linux_mod_CFLAGS): Commented out.
45612 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
45613 out because module isn't built.
45614 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
45615 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
45616 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
45617 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
45618 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
45619 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45620 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45621 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
45622 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
45623 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
45624 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45625 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45626 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
45627 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
45628
34eeec8a 456292005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
45630
45631 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
45632 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
45633 longer, because HFS should not be used on PC.
45634
708367a3 456352005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45636
45637 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
45638 consistently within the loop.
45639
6fa1251a 456402005-10-15 Marco Gerards <mgerards@xs4all.nl>
45641
45642 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
45643 directory can not be read.
45644
4801580b 456452005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45646
45647 * configure.ac (AC_INIT): Increase the version number to 1.91.
45648
45649 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
45650 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
45651 term/i386/pc/serial.c.
45652
219ad426 456532005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45654
45655 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
45656 file size must be permitted.
45657
45658 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
45659 between %ah and %al.
45660
688e5699 456612005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45662
45663 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
45664 grub_uint64_t.
45665 Call the hook with a NUL-terminated filename.
45666 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
45667 grub_cpu_to_be32.
45668
45669 * kern/term.c (cursor_state): New variable.
45670 (grub_term_set_current): Reset the cursor state on a new
45671 terminal.
45672 (grub_setcursor): Rewritten to use CURSOR_STATE.
45673 (grub_getcursor): New function.
45674
45675 * include/grub/term.h (grub_getcursor): New prototype.
45676
45677 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
45678 integers on ARM. Reported by Timothy Baldwin
45679 <T.E.Baldwin99@members.leeds.ac.uk>.
45680
bb34586c 456812005-10-11 Marco Gerards <mgerards@xs4all.nl>
45682
45683 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
45684 allocated.
45685 (grub_sfs_dir): Likewise.
45686
9a909877 456872005-10-09 Marco Gerards <mgerards@xs4all.nl>
45688
45689 Add support for the SFS filesystem.
45690
45691 * fs/sfs.c: New file.
45692
45693 * DISTLIST: Added `fs/sfs.c'.
45694
45695 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
45696 (grub_probefs_SOURCES): Likewise.
45697 (grub_emu_SOURCES): Likewise.
45698 (pkgdata_MODULES): Add `sfs.mod'.
45699 (sfs_mod_SOURCES): New variable.
45700 (sfs_mod_CFLAGS): Likewise.
45701 (sfs_mod_LDFLAGS): Likewise.
45702
45703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
45704 (pkgdata_MODULES): Add `sfs.mod'.
45705 (sfs_mod_SOURCES): New variable.
45706 (sfs_mod_CFLAGS): Likewise.
45707
45708 * util/grub-emu.c (main): Call `grub_sfs_init' and
45709 `grub_sfs_fini'.
45710
45711 * include/grub/fs.h (grub_sfs_init): New prototype.
45712 (grub_sfs_fini): Likewise.
45713
57bdbde3 457142005-10-07 Marco Gerards <mgerards@xs4all.nl>
45715
45716 Add support for the AFFS filesystem.
45717
45718 * fs/affs.c: New file.
45719
45720 * DISTLIST: Added `fs/affs.c'.
45721
45722 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
45723 (grub_probefs_SOURCES): Likewise.
45724 (grub_emu_SOURCES): Likewise.
45725 (pkgdata_MODULES): Add `affs.mod'.
45726 (affs_mod_SOURCES): New variable.
45727 (affs_mod_CFLAGS): Likewise.
45728 (affs_mod_LDFLAGS): Likewise.
45729
45730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
45731 (pkgdata_MODULES): Add `affs.mod'.
45732 (affs_mod_SOURCES): New variable.
45733 (affs_mod_CFLAGS): Likewise.
45734
45735 * util/grub-emu.c (main): Call `grub_affs_init' and
45736 `grub_affs_fini'.
45737
45738 * include/grub/fs.h (grub_affs_init): New prototype.
45739 (grub_affs_fini): Likewise.
45740
047b67e0 457412005-10-01 Marco Gerards <mgerards@xs4all.nl>
45742
45743 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
45744
59b8208a 457452005-10-01 Marco Gerards <mgerards@xs4all.nl>
45746
45747 * configure.ac: Accept `x86_64' as host_cpu. In that case add
45748 `-m32' to CFLAGS.
45749
45750 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
45751 linking.
f19dbdb7 45752
59b8208a 45753 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
45754 (COMMON_LDFLAGS): New variable.
45755 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
45756 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
45757 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
45758 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
45759 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
45760 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
45761 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
45762 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
45763 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
45764 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
45765 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45766 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45767 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
45768 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
45769 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
45770 variables.
45771 (normal_mod_ASFLAGS): Add `-m32'.
45772
45773 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
45774 (grub_host_size_t, grub_host_ssize_t): New types.
45775 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 45776 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 45777 `GRUB_HOST_SIZEOF_VOID_P'.
45778
45779 * include/grub/kernel.h (struct grub_module_header): Type of
45780 member offset changed to `grub_host_off_t'. Type of member size
45781 changed to `grub_host_size_t'.
45782 (struct grub_module_info): Type of member offset changed to
45783 `grub_host_off_t'. Type of member size changed to
45784 `grub_host_size_t'.
45785
b4093103 457862005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
45787
45788 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 45789
b4093103 45790 * kern/i386/pc/startup.S (multiboot_header): New label.
45791 (multiboot_entry): Likewise.
45792 (multiboot_trampoline): Likewise.
45793
45794 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45795 Increased to 0x4A0.
45796
45797 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
45798 put parentheses after a question mark.
45799 [!GRUB_UTIL] (my_mod): New variable.
45800
45801 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
45802
b2499b29 458032005-09-28 Marco Gerards <mgerards@xs4all.nl>
45804
45805 Adds support for the XFS filesystem. Btrees are not supported
45806 yet.
45807
45808 * fs/xfs.c: New file.
45809
45810 * DISTLIST: Added `fs/xfs.c'.
45811
45812 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
45813 (grub_probefs_SOURCES): Likewise.
45814 (grub_emu_SOURCES): Likewise.
45815 (pkgdata_MODULES): Add `xfs.mod'.
45816 (xfs_mod_SOURCES): New variable.
45817 (xfs_mod_CFLAGS): Likewise.
45818
45819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
45820 (pkgdata_MODULES): Add `xfs.mod'.
45821 (xfs_mod_SOURCES): New variable.
45822 (xfs_mod_CFLAGS): Likewise.
45823
45824 * util/grub-emu.c (main): Call `grub_xfs_init' and
45825 `grub_xfs_fini'.
45826
45827 * include/grub/fs.h (grub_xfs_init): New prototype.
45828 (grub_xfs_fini): Likewise.
45829
f19dbdb7 45830
83d37a62 458312005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45832
45833 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45834 color modes, allow greater than 16 colors to be configured as
45835 a default palette.
45836
47d2d65e 458372005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45838
45839 * normal/completion.c (complete_arguments): Add the qualifier
45840 const into OPTIONS.
45841
45842 From Omniflux <omniflux+lists@omniflux.com>:
45843 * include/grub/terminfo.h: New file.
45844 * include/grub/tparm.h: Likewise.
45845 * include/grub/i386/pc/serial.h: Likewise.
45846 * term/terminfo.c: Likewise.
45847 * term/tparm.c: Likewise.
45848 * term/i386/pc/serial.c: Likewise.
45849 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45850 serial.mod.
45851 (terminfo_mod_SOURCES): New variable.
45852 (terminfo_mod_CFLAGS): Likewise.
45853 (serial_mod_SOURCES): Likewise.
45854 (serial_mod_CFLAGS): Likewise.
45855
48b671ff 458562005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45857
45858 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45859 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45860 and kern/powerpc/ieee1275/cmain.c, respectively.
45861
45862 * boot/powerpc/ieee1275/crt0.S: Moved to ...
45863 * kern/powerpc/ieee1275/crt0.S: ... here.
45864
45865 * boot/powerpc/ieee1275/cmain.c: Moved to ...
45866 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 45867
48b671ff 45868 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
45869 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
45870 instead of boot/powerpc/ieee1275/crt0.S and
45871 boot/powerpc/ieee1275/cmain.c, respectively.
45872
45873 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
45874 sectors. It was not used anyway.
45875
09fc77a7 458762005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45877
45878 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45879 `unused parameter' warning.
45880
003789c7 458812005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45882
45883 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45884 function.
45885 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45886 getcharwidth.
45887
67f44c86 458882005-08-28 Marco Gerards <metgerards@student.han.nl>
45889
45890 * include/grub/normal.h (enum grub_completion_type): Added
45891 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45892
45893 * normal/cmdline.c (print_completion): Handle
45894 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45895 * normal/menu_entry.c (store_completion): Likewise.
45896
45897 * normal/completion.c (complete_arguments): New function.
45898 (grub_normal_do_completion): Call `complete_arguments' when the
45899 current words start with a dash.
45900
0b5abe02 459012005-08-27 Marco Gerards <metgerards@student.han.nl>
45902
45903 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45904 `gzio.mod' instead of `io.mod').
45905
d9864ee1 459062005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45907
45908 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45909 (DISTDIRS): Added io and video.
45910 Rewrite the search routine to make an output consistently.
45911
45912 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45913 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45914 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45915 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45916 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45917 util/powerpc/ieee1275/misc.c.
f19dbdb7 45918
d9864ee1 45919 * include/grub/gzio.h: New file.
45920 * io/gzio.c: Likewise.
f19dbdb7 45921
d9864ee1 45922 * kern/file.c (grub_file_close): Call grub_device_close only if
45923 FILE->DEVICE is not NULL.
45924
45925 * include/grub/mm.h [!NULL] (NULL): New macro.
45926
45927 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45928
45929 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45930 (pkgdata_MODULES): Added gzio.mod.
45931 (gzio_mod_SOURCES): New variable.
45932 (gzio_mod_CFLAGS): Likewise.
45933
45934 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45935 (pkgdata_MODULES): Added gzio.mod.
45936 (gzio_mod_SOURCES): New variable.
45937 (gzio_mod_CFLAGS): Likewise.
45938
45939 * commands/cat.c: Include grub/gzio.h.
45940 (grub_cmd_cat): Use grub_gzfile_open instead of
45941 grub_file_open.
f19dbdb7 45942
d9864ee1 45943 * commands/cmp.c: Include grub/gzio.h.
45944 (grub_cmd_cmp): Use grub_gzfile_open instead of
45945 grub_file_open.
45946
45947 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45948 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45949 grub_file_open.
45950 (grub_rescue_cmd_module): Likewise.
45951
fa46f4b5 459522005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45953
45954 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45955 kern/sparc64/ieee1275/init.c because it contains _start.
45956 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45957
e9211b5d 459582005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45959
45960 * configure.ac: Add support for sparc64 host with ieee1275
45961 firmware.
45962 * configure: Generated from configure.ac.
45963 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45964 instead of int.
45965 (grub_ofdisk_read): Likewise.
45966 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45967 pointers as (void *) to remove a warning.
45968 (grub_ofdisk_close): Likewise.
45969 (grub_ofdisk_read): Likewise.
45970 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45971 returns, so make it return void to remove a warning.
45972 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45973 Corresponding prototype change.
45974 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45975 values, and cast the pointers as (void *) to remove a warning.
45976 (grub_mm_dump): Likewise.
45977 * conf/sparc64-ieee1275.mk: New file.
45978 * conf/sparc64-ieee1275.rmk: Likewise.
45979 * include/grub/sparc64/setjmp.h: Likewise.
45980 * include/grub/sparc64/types.h: Likewise.
45981 * include/grub/sparc64/ieee1275/console.h: Likewise.
45982 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45983 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45984 * include/grub/sparc64/ieee1275/time.h: Likewise.
45985 * kern/sparc64/cache.c: Likewise.
45986 * kern/sparc64/dl.c: Likewise.
45987 * kern/sparc64/ieee1275/init.c: Likewise.
45988 * kern/sparc64/ieee1275/openfw.c: Likewise.
45989
385c6a92 459902005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45991
45992 * util/console.c (grub_ncurses_putchar): If C is greater than
45993 0x7f, set C to a question mark.
45994 (grub_ncurses_getcharwidth): New function.
45995 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45996 getcharwidth.
45997
45998 * normal/menu.c (print_entry): Made aware of Unicode. First,
45999 convert TITLE to UCS-4, and predict the cursor position by
46000 grub_getcharwidth.
46001
46002 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
46003 const to SRC.
46004 * kern/misc.c (grub_utf16_to_utf8): Likewise.
46005
16ccb8b1 460062005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46007
46008 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
46009 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46010 grub_strcat.
46011
46012 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
46013 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46014 grub_strcpy and grub_strlen. Take it into account that a space
46015 character is inserted as a delimiter.
46016
6a85ce79 460172005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46018
46019 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 46020 invalid magic in the error.
6a85ce79 46021
46022 * commands/search.c: New file.
f19dbdb7 46023
6a85ce79 46024 * util/grub-emu.c (main): Call grub_search_init and
46025 grub_search_fini.
46026
46027 * kern/rescue.c (grub_rescue_print_disks): Removed.
46028 (grub_rescue_print_devices): New function.
46029 (grub_rescue_cmd_ls): Use grub_device_iterate with
46030 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46031 grub_rescue_print_disks.
46032
46033 * kern/partition.c (grub_partition_iterate): Return the result of
46034 PARTMAP->ITERATE instead of GRUB_ERRNO.
46035
46036 * kern/device.c: Include grub/partition.h.
46037 (grub_device_iterate): New function.
46038
46039 * include/grub/partition.h (grub_partition_iterate): Return int
46040 instead of grub_err_t.
46041
46042 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46043 prototype.
46044 [GRUB_UTIL] (grub_search_fini): Likewise.
46045
46046 * include/grub/device.h (grub_device_iterate): New prototype.
46047
46048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46049 commands/search.c.
46050 (pkgdata_MODULES): Added search.mod.
46051 (search_mod_SOURCES): New variable.
46052 (search_mod_CFLAGS): Likewise.
46053
46054 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46055 (pkgdata_MODULES): Added search.mod.
46056 (search_mod_SOURCES): New variable.
46057 (search_mod_CFLAGS): Likewise.
46058
46059 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46060 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46061 All callers changed.
46062
46063 * DISTLIST: Added commands/search.c.
46064
ef095434 460652005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46066
46067 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46068 conversion.
46069 (grub_getcharwidth): New function.
46070
46071 * kern/misc.c (grub_utf8_to_ucs4): New function.
46072
46073 * include/grub/term.h (struct grub_term): Added a new member
46074 "getcharwidth".
46075 (grub_getcharwidth): New prototype.
46076
46077 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46078
46079 * term/i386/pc/console.c (map_char): New function. Segregated from
46080 grub_console_putchar.
46081 (grub_console_putchar): Use map_char.
46082 (grub_console_getcharwidth): New function.
46083 (grub_console_term): Specified grub_console_getcharwidth as
46084 getcharwidth.
46085
46086 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46087 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46088
46089 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46090 GRUB_ERRNO.
46091 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46092 on grub_strtoul completely.
46093 (write_char): Declare local variables in the beginning of the
46094 function.
46095 (grub_vesafb_getcharwidth): New function.
46096 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46097 getcharwidth.
46098
1f0a95e4 460992005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46100
46101 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46102 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46103 commands/i386/pc/vbetest.c.
46104
46105 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46106 call grub_vbe_get_controller_info again, because the returned
46107 information is volatile.
46108 (grub_vbe_set_video_mode): Mostly rewritten.
46109 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46110 grub_vbe_status_t correctly.
46111 (grub_vbe_get_video_mode_info): Likewise.
46112 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46113 several if statements.
46114
46115 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46116 * commands/i386/pc/vbeinfo.c: ... this.
46117
46118 * commands/i386/pc/vbe_test.c: Renamed to ...
46119 * commands/i386/pc/vbetest.c: ... this.
46120
46121 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46122 ...
46123 (grub_cmd_vbeinfo): ... this. Save video modes before
46124 iterating. Skip a video mode, if it is not available, not enough
46125 information is given or it is monochrome. Show the memory
46126 model. Leave the interpretation of MODEVAR to grub_strtoul
46127 completely.
46128 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46129 (GRUB_MOD_FINI): Likewise.
46130
46131 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46132 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46133 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46134 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46135 grub_strtoul completely.
46136 (real2pm): Removed.
46137 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46138 (GRUB_MOD_FINI): Likewise.
46139
46140 * normal/misc.c: Include grub/mm.h.
46141
46142 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46143 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46144 (vbe_list_modes_mod_SOURCES): Removed.
46145 (vbe_list_modes_mod_CFLAGS): Likewise.
46146 (vbe_test_mod_SOURCES): Likewise.
46147 (vbe_test_mod_CFLAGS): Likewise.
46148 (vbeinfo_mod_SOURCES): New variable.
46149 (vbeinfo_mod_CFLAGS): Likewise.
46150 (vbetest_mod_SOURCES): Likewise.
46151 (vbetest_mod_CFLAGS): Likewise.
46152
992ffbbe 461532005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46154
46155 * normal/misc.c: New file.
46156
46157 * DISTLIST: Added normal/misc.c.
f19dbdb7 46158
992ffbbe 46159 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46160 DISK to HOOK. Call HOOK with DISK.
46161 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46162 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46163 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46164
46165 * normal/menu_entry.c (struct screen): Added a new member
46166 "completion_shown".
46167 (completion_buffer): New global variable.
46168 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46169 (store_completion): New function.
46170 (complete): Likewise.
46171 (clear_completions): Likewise.
46172 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46173 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46174 a tab, call complete.
46175
46176 * normal/completion.c (disk_dev): Removed.
46177 (print_simple_completion): Likewise.
46178 (print_partition_completion): Likewise.
46179 (print_func): New global variable.
46180 (add_completion): Do not take the arguments WHAT or PRINT any
46181 longer. Added a new argument TYPE. Instead of printing directly,
46182 call PRINT_FUNC if not NULL.
46183 All callers changed.
46184 (complete_device): Use a local variable DEV instead of
46185 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46186 (grub_normal_do_completion): Take a new argument HOOK. Do not
46187 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46188 empty string, return NULL instead.
46189 All callers changed.
46190
46191 * normal/cmdline.c (print_completion): New function.
46192
46193 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46194 to HOOK.
46195 All callers changed.
46196
46197 * kern/disk.c (grub_print_partinfo): Removed.
46198
46199 * include/grub/partition.h (struct grub_partition_map): Add a new
46200 argument DISK into HOOK of ITERATE.
46201 (grub_partition_iterate): Add a new argument DISK to HOOK.
46202
46203 * include/grub/normal.h (enum grub_completion_type): New enum.
46204 (grub_completion_type_t): New type.
46205 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46206 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46207 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46208 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46209 (grub_normal_do_completion): Added a new argument HOOK.
46210 (grub_normal_print_device_info): New prototype.
46211
46212 * include/grub/disk.h (grub_print_partinfo): Removed.
46213
46214 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46215 (normal_mod_SOURCES): Likewise.
46216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46217 (normal_mod_SOURCES): Likewise.
46218
46219 * commands/ls.c (grub_ls_list_disks): Use
46220 grub_normal_print_device_info instead of grub_print_partinfo. Free
46221 PNAME.
46222 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46223 duplicating the code.
46224
0bd41162 462252005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46226
46227 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 46228 follow GCS more precisely.
46229 * commands/i386/pc/vbe_test.c: Likewise.
46230 * include/grub/i386/pc/vbe.h: Likewise.
46231 * term/i386/pc/vesafb.c: Likewise.
46232 * video/i386/pc/vbe.c: Likewise.
0bd41162 46233
6323696a 462342005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46235
46236 * DISTLIST: Added term/i386/pc/vesafb.c
46237 DISTLIST: Added video/i386/pc/vbe.c
46238 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46239 DISTLIST: Added commands/i386/pc/vbe_test.c.
46240 * commands/i386/pc/vbe_list_modes.c: New file.
46241 * commands/i386/pc/vbe_test.c: Likewise.
46242 * term/i386/pc/vesafb.c: Likewise.
46243 * video/i386/pc/vbe.c: Likewise.
46244 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46245 (grub_vbe_probe) Added prototype.
46246 (grub_vbe_set_video_mode) Likewise.
46247 (grub_vbe_get_video_mode) Likewise.
46248 (grub_vbe_get_video_mode_info) Likewise.
46249 (grub_vbe_set_pixel_rgb) Likewise.
46250 (grub_vbe_set_pixel_index) Likewise.
46251 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46252 (pkgdata_MODULES): Added vesafb.mod.
46253 (pkgdata_MODULES): Added vbe_list_modes.mod.
46254 (pkgdata_MODULES): Added vbe_test.mod.
46255 (vbe_mod_SOURCES): Added.
46256 (vbe_mod_CFLAGS): Likewise.
46257 (vesafb_mod_SOURCES): Likewise.
46258 (vesafb_mod_CFLAGS): Likewise.
46259 (vbe_list_modes_mod_SOURCES): Likewise.
46260 (vbe_list_modes_mod_CFLAGS): Likewise.
46261 (vbe_test_mod_SOURCES): Likewise.
46262 (vbe_test_mod_CFLAGS): Likewise.
46263
0a74e62f 462642005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46265
0a74e62f 46266 * normal/command.c (grub_command_execute): If INTERACTIVE is
46267 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46268 CMDLINE. Disable the pager if INTERACTIVE is true.
46269 All callers are changed.
46270
46271 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46272 before reading a config file.
46273 * normal/main.c (read_config_file): Even if a command is not
46274 found, register it if it is within an entry.
46275
46276 * util/grub-emu.c: Include sys/types.h and unistd.h.
46277 (options): Added --hold.
46278 (struct arguments): Added a new member "hold".
46279 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46280 missing.
46281 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46282 cleared by a debugger, if it is not zero.
46283
46284 * include/grub/normal.h (grub_command_execute): Add an argument
46285 INTERACTIVE.
46286
e51f85ae 462872005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46288
46289 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46290
e9c6f39b 462912005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46292
46293 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46294 program with another one, because the old one didn't detect a bug
46295 in gcc-3.4. Always use regparm 2, because the new test is still
46296 not enough for gcc-4.0. Someone must investigate a simple test
46297 case which detects a bug in gcc-4.0.
46298
8de3495c 462992005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46300
46301 * DISTLIST: Added normal/completion.c.
46302
46303 * normal/completion.c: New file.
f19dbdb7 46304
8de3495c 46305 * term/i386/pc/console.c (grub_console_getwh): New function.
46306 (grub_console_term): Assign grub_console_getwh to getwh.
46307
46308 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
46309 function is defined in normal/completion.c as
46310 grub_normal_do_completion.
46311 (grub_cmdline_get): Use grub_normal_do_completion instead of
46312 grub_tab_complete.
46313
46314 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
46315 returns non-zero, otherwise return 0.
46316 (grub_partition_iterate): First, probe the partition map. Then,
46317 call ITERATE only for this partition map.
46318
46319 * kern/misc.c (grub_strncmp): Rewritten.
46320
46321 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
46322 returns non-zero. Otherwise return 0.
46323
46324 * include/grub/partition.h (grub_partition_map_iterate): Return
46325 int instead of void.
46326
46327 * include/grub/normal.h (grub_normal_do_completion): New prototype.
46328
46329 * include/grub/misc.h (grub_strncmp): Change the type of N to
46330 grub_size_t.
46331
46332 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
46333 of void.
46334
46335 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 46336 unsigned explicitly before comparing it with I.
8de3495c 46337
46338 * kern/main.c (grub_env_write_root): Add the attribute unused into
46339 VAR.
46340
46341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46342 normal/completion.c.
46343 (normal_mod_SOURCES): Likewise.
46344 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
46345 (normal_mod_SOURCES): Likewise.
46346
46347 * normal/command.c (grub_iterate_commands): If ITERATE returns
46348 non-zero, return one immediately.
46349
e85e144b 463502005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
46351
46352 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
46353 * kern/i386/pc/startup.S: Updated Global Descriptor table's
46354 descriptions.
46355 (grub_vbe_get_controller_info): New function.
46356 (grub_vbe_get_mode_info): Likewise.
46357 (grub_vbe_set_mode): Likewise.
46358 (grub_vbe_get_mode): Likewise.
46359 (grub_vbe_set_memory_window): Likewise.
46360 (grub_vbe_get_memory_window): Likewise.
46361 (grub_vbe_set_scanline_length): Likewise.
46362 (grub_vbe_get_scanline_length): Likewise.
46363 (grub_vbe_set_display_start): Likewise.
46364 (grub_vbe_get_display_start): Likewise.
46365 (grub_vbe_set_palette_data): Likewise.
46366 * include/grub/i386/pc/vbe.h: New file.
46367
c46153d2 463682005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46369
46370 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46371 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
46372 * DISTLIST: Likewise.
46373 * kern/ieee1275/of.c: Moved to ...
46374 * kern/ieee1275/ieee1275.c: ... here.
46375
0cb90c45 463762005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46377
46378 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
46379 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
46380 Pass 0 as `end' parameter to grub_strtoul().
46381
a19fb360 463822005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46383
46384 * include/grub/powerpc/ieee1275/console.h: Do not include
46385 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
46386 ifdef.
46387 (grub_console_cur_color): Remove i386-specific prototype.
46388 (grub_console_real_putchar): Likewise.
46389 (grub_console_checkkey): Likewise.
46390 (grub_console_getkey): Likewise.
46391 (grub_console_getxy): Likewise.
46392 (grub_console_gotoxy): Likewise.
46393 (grub_console_cls): Likewise.
46394 (grub_console_setcursor): Likewise.
46395 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
46396 Include <grub/machine/console.h>.
46397 * term/ieee1275/ofconsole.c: Likewise.
46398
4ac9bd04 463992005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
46400
46401 * Makefile.in (LIBLZO): New variable.
46402
46403 * configure.ac: Check for LZO version 2.
46404
46405 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
46406 lzo/lzo1x.h instead of lzo1x.h.
46407
46408 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
46409 of -llzo.
46410
46411 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
46412 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
46413
46414 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
46415 copying the data from PARTITION to P.
46416
f4917dfd 464172005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46418
46419 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
46420 negative, unload the module.
46421
46422 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
46423 map is "pc_partition_map" but not "pc".
46424 (usage): Fix the description. The options are --boot-image and
46425 --core-image but not --boot-file or --core-file.
46426 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
46427 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
46428 DEFAULT_DIRECTORY.
46429
46430 * util/i386/pc/grub-install.in: Do not specify --boot-file or
46431 --core-file. Specify INSTALL_DEVICE as an argument.
46432
46433 * util/console.c: Include config.h.
46434 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
46435 [HAVE_NCURSES_H]: Include ncurses.h.
46436 [HAVE_CURSES_H]: Include curses.h.
46437 [!A_NORMAL] (A_NORMAL): Defined as zero.
46438 [!A_STANDOUT] (A_STANDOUT): Likewise.
46439
46440 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
46441 -lncurses.
46442 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
46443
46444 * configure.ac: Check for curses libraries and headers.
46445
46446 * Makefile.in (LIBCURSES): New variable.
46447
46448 * genmk.rb (Script::rule): Set the executable bits.
46449
46450 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
46451 name of the PC partition map is "pc_partition_map" but not "pc".
46452
0e143073 464532005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46454
46455 * util/i386/pc/grub-install.in (grub_probefs): New variable.
46456 (modules): Likewise.
46457 (usage): Added descriptions for --modules and --grub-probefs.
46458 Handle --modules and --grub-probefs. Save the arguments in MODULES
46459 and GRUB_PROBEFS, respectively.
46460 Auto-detect a filesystem module against GRUBDIR. If the result is
46461 empty and modules are not specified explicitly, abort the
46462 installation. Add the result to MODULES.
46463
46464 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
46465 disk/powerpc/ieee1275/ofdisk.c,
46466 include/grub/powerpc/ieee1275/init.h and
46467 term/powerpc/ieee1275/ofconsole.c.
46468 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
46469 term/ieee1275/ofconsole.c.
46470
46471 * include/grub/powerpc/ieee1275/console.h: Resurrected.
46472
46473 * COPYING: Upgraded to the latest version. Only the address of the
46474 FSF office has changed.
f19dbdb7 46475
efd6e6d5 464762005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46477
46478 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46479 kern/ieee1275.c with kern/ieee1275/of.c.
46480
46481 * kern/ieee1275.c: Moved to ...
46482 * kern/ieee1275/of.c: ... here.
46483
8ceafda2 464842005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
46485
46486 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 46487 readability.
8ceafda2 46488
46489 * config.guess: Updated to the latest version from gnulib.
46490 * config.sub: Likewise.
46491 * install.sh: Likewise.
46492 * mkinstalldirs: Likewise.
46493
46494 * include/grub/console.h: Removed. This file is arch-specific. Do
46495 not put this in include/grub.
46496
46497 * include/grub/i386/pc/console.h: Resurrected.
46498
46499 * util/console.c: Include grub/machine/console.h instead of
46500 grub/console.h.
46501 * util/grub-emu.c: Likewise.
46502
267f6cd9 465032005-08-04 Marco Gerards <metgerards@student.han.nl>
46504
46505 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
46506 hardcoded value.
f19dbdb7 46507
267f6cd9 46508 From Vincent Pelletier <subdino2004@yahoo.fr>
46509 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
46510 Redefined to use grub_getwh.
46511 (grub_term): New member named getwh.
46512 (grub_getwh): New prototype.
46513 * kern/term.c (grub_getwh): New function.
46514 * term/i386/pc/console.c (grub_console_getwh): New function.
46515 (grub_console_term): New member `getwh'.
46516 * term/i386/pc/vga.c (grub_vga_getwh): New function.
46517 (grub_vga_term): New member `getwh'.
0b5abe02 46518 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 46519 grub_ssize_t.
46520 (grub_ofconsole_getw): New function.
46521 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
46522 (grub_ofconsole_term): New field named getwh and new initial
46523 value.
46524
3be7266d 465252005-08-03 Hollis Blanchard <hollis@penguinppc.org>
46526
46527 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
46528 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
46529 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
46530 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
46531 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
46532 of <grub/machine/ieee1275.h>.
46533 * commands/ieee1275/reboot.c: Likewise.
46534 * boot/powerpc/ieee1275/ieee1275.c: Move ...
46535 * kern/ieee1275.c: ... to here. All users updated. Change all
46536 parameter structs to use new type `grub_ieee1275_cell_t'.
46537 * term/powerpc/ieee1275/ofconsole.c: Move ...
46538 * term/ieee1275/ofconsole.c: ... to here. All users updated.
46539 * disk/powerpc/ieee1275/ofdisk.c: Move ...
46540 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
46541 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
46542 to return int.
46543 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
46544 Remove unused prototypes. All users updated.
46545 * include/grub/powerpc/ieee1275/console.h: Removed.
46546 * include/grub/powerpc/ieee1275/ieee1275.h: Define
46547 `grub_ieee1275_cell_t'.
46548 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
46549 Cast comparisons with -1 to the correct type.
46550 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
46551 type to match `grub_ieee1275_entry_fn'.
46552
8b5f3938 465532005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
46554
46555 * DISTLIST: Added util/i386/pc/grub-probefs.c.
46556
46557 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
46558 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
46559 partmap/sun.c.
46560 (grub_probefs_SOURCES): New variable.
46561
46562 * util/i386/pc/grub-probefs.c: New file.
46563
46564 * util/i386/pc/grub-setup.c (main): Call
46565 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
46566 grub_hfs_init and grub_jfs_init to initialize the system. Call
46567 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
46568 grub_pc_partition_map_fini to finish the system.
46569
ea409713 465702005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
46571
46572 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
46573 function.
46574 (grub_multiboot_load_elf32): Likewise.
46575 (grub_multiboot_is_elf64): Likewise.
46576 (grub_multiboot_load_elf64): Likewise.
46577 (grub_multiboot_load_elf): Likewise.
46578 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
46579 an ELF32 or ELF64 file.
46580 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
46581
46582 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
46583 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
46584 NULL before calling FS->LABEL.
46585 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
46586 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
46587 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
46588 before calling FS->LABEL.
46589
141a288b 465902005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
46591
46592 * util/i386/pc/grub-install.in (datadir): New variable.
46593 (libdir): Removed.
46594 (pkgdatadir): New variable.
46595 (pkglibdir): Removed.
46596
0d5f8a54 465972005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
46598
46599 * DISTLIST: Added util/i386/pc/grub-install.in.
46600
46601 * util/i386/pc/grub-install.in: New file.
46602
46603 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
46604 (grub_install_SOURCES): Likewise.
46605
46606 * genmk.rb: Added support for scripts.
46607 (Script): New class.
46608 (scripts): New variable.
46609
46610 * Makefile.in (install-local): Install sbin_SCRIPTS by
46611 INSTALL_SCRIPT.
46612 (uninstall): Remove sbin_SCRIPTS.
46613
46614 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
46615 device, try to get a GRUB device by
46616 grub_util_biosdisk_get_grub_dev.
46617 Free DEST_DEV.
46618
46619 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
46620 description for --device-map.
46621
5f968e1e 466222005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46623
46624 Change the semantics of variable hooks. They now return strings
46625 instead of error values.
f19dbdb7 46626
5f968e1e 46627 * util/i386/pc/grub-setup.c: Include grub/env.h.
46628 (setup): Use grub_device_set_root instead of grub_env_set.
46629
46630 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
46631 grub_env_get instead of grub_device_set_root and
46632 grub_device_get_root, respectively.
46633
46634 * kern/main.c (grub_env_write_root): New function.
46635 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
46636 grub_env_set instead of grub_device_set_root.
46637
46638 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
46639 many variables.
46640 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
46641 rather than calling ENV->WRITE_HOOK afterwards.
46642 (grub_env_get): Return the result of ENV->READ_HOOK rather than
46643 passing a pointer of a pointer.
46644 (grub_register_variable_hook): Change the types of "read_hook" and
46645 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
46646 respectively.
46647 Allocate the default empty string on the heap, because this string
46648 may be freed later.
46649
46650 * kern/device.c: Include grub/env.h.
46651 (grub_device_set_root): Removed.
46652 (grub_device_get_root): Likewise.
46653 (grub_device_open): Use grub_env_get instead of
46654 grub_device_get_root.
46655
46656 * include/grub/env.h (grub_env_read_hook_t): New type.
46657 (grub_env_write_hook_t): Likewise.
46658 (grub_env_var): Change the types of "read_hook" and "write_hook"
46659 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
46660 (grub_register_variable_hook): Likewise.
46661
46662 * include/grub/device.h (grub_device_set_root): Removed.
46663 (grub_device_set_root): Likewise.
46664
46665 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
46666 make sure that DIRNAME terminates with '/', so that
46667 grub_fat_find_dir will fail if PATH is not a directory.
46668
46669 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
46670 from DIRNAME.
46671 Use the qualifier auto for print_files and print_files_long.
46672 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
46673 as a regular file.
46674 Put a newline only if there is no error.
46675 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
46676 used.
46677
896f0afd 466782005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46679
46680 * kern/partition.c (grub_partition_probe): Initialize PART to
46681 NULL. Otherwise, when no partition map is registered, this returns
46682 a garbage.
46683
b28b81b2 466842005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
46685
46686 * partmap/apple.c (apple_partition_map_iterate): Check if POS
46687 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
46688 valid.
46689
5f3607e0 466902005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
46691
46692 * commands/ls.c (grub_ls_list_disks): Print the filesystem
46693 information on each device, if it does not have partitions. Print
46694 "Device" instead of "Disk", because this function is not specific
46695 to disk devices.
46696
46697 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
46698 static to ensure that it is put on the memory rather than a
46699 register.
46700
502c87e8 467012005-07-17 Yoshinori Okuji <okuji@enbug.org>
46702
46703 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
46704 (grub_cat_init): Likewise.
46705 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
46706 (options): Likewise.
46707 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
46708 (grub_configfile_init): Likewise.
46709 * font/manager.c (GRUB_MOD_INIT): Likewise.
46710 * commands/help.c (GRUB_MOD_INIT): Likewise.
46711 (grub_help_init): Likewise.
46712 * normal/command.c (grub_command_init): Likewise.
46713 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
46714 * disk/loopback.c (grub_loop_init): Likewise.
46715 (GRUB_MOD_INIT): Likewise.
46716 * commands/ls.c (grub_ls_init): Likewise.
46717 (GRUB_MOD_INIT): Likewise.
46718 (options): Likewise.
46719 * commands/boot.c (grub_boot_init): Likewise.
46720 (GRUB_MOD_INIT): Likewise.
46721 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
46722 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
46723 (GRUB_MOD_INIT): Likewise.
46724 * commands/cmp.c (grub_cmp_init): Likewise.
46725 (GRUB_MOD_INIT): Likewise.
46726
46727 * normal/arg.c: Use <> instead of "" to include header files.
46728 (SHORT_ARG_HELP): New macro.
46729 (SHORT_ARG_USAGE): Likewise.
46730 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
46731 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
46732 descriptions.
46733 (find_short): Check if C is 'h' or 'u' explicitly.
46734 (grub_arg_show_help): Use space characters instead of tabs. Treat
46735 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
46736 are shown with --help and --usage only if they are not used for
46737 the command itself.
46738 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
46739 'h' and 'u'.
46740
46741 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
46742 const into "longarg". Change the type of "shortarg" to int.
46743
f806d18e 467442005-07-17 Yoshinori Okuji <okuji@enbug.org>
46745
46746 * boot/i386/pc/boot.S (boot_drive_check): New label.
46747
46748 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
46749 macro.
46750
46751 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
46752 which do not pass a boot drive correctly. Copied from GRUB Legacy.
46753
e293232b 467542005-07-17 Yoshinori Okuji <okuji@enbug.org>
46755
46756 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
46757 When turning off Gate A20, skip the check and return immediately,
46758 because this is not fatal usually.
46759
ebedfd00 467602005-07-17 Yoshinori Okuji <okuji@enbug.org>
46761
46762 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
46763 be 0x7C00 instead of 0x8000.
46764
46765 * boot/i386/pc/pxeboot.S: Rewritten.
46766
46767 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
46768 EXT_C.
46769 (gate_a20_check_state): Read a byte from 0x108000. Invert the
46770 result.
46771
654fc59f 467722005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
46773
46774 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
46775 robustness. This routine now supports a BIOS call and System
46776 Control Port A to modify the gate A20.
46777
46778 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46779 Increased to 0x440.
46780
09f9923f 467812005-07-12 Hollis Blanchard <hollis@penguinppc.org>
46782
46783 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
46784 device path and resulting ihandle.
46785 (grub_ofdisk_close): dprintf the ihandle being closed.
46786 (grub_ofdisk_read): dprintf function parameters.
46787 * kern/mm.c (grub_mm_init_region): Likewise.
46788 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
46789 (grub_linux_boot): dprintf the Linux entry point, initrd address and
46790 size, and boot arguments.
46791 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
46792 before loading into memory.
46793 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
46794 before loading into memory.
46795
7ef504d8 467962005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
46797
46798 * kern/mm.c: Added much documentation.
46799 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
46800 8, set to 5 instead of 8.
46801
e0f050c2 468022005-07-10 Yoshinori Okuji <okuji@enbug.org>
46803
46804 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
46805
46806 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
46807 (grub_mkdevicemap_SOURCES): New variable.
46808
46809 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
46810 lib/device.c of GRUB Legacy.
46811
7224189a 468122005-07-10 Yoshinori Okuji <okuji@enbug.org>
46813
46814 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
46815 instead of PATH is NULL.
46816
68c864eb 468172005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
46818
46819 * commands/cmp.c (BUFFER_SIZE): New macro.
46820 (grub_cmd_cmp): Close the right file at the right time. Compare
46821 only data just read. Don't report files of different size as
46822 identical. Dynamically allocate buffers. Move variable
46823 declarations at the beginning of function.
46824
e6f3e614 468252005-07-09 Yoshinori Okuji <okuji@enbug.org>
46826
46827 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46828 reverse.
46829
f8f1559a 468302004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46831
46832 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46833 when backspace is pressed at beginning of line.
46834
39c9d41d 468352005-07-03 Yoshinori Okuji <okuji@enbug.org>
46836
46837 * DISTLIST: Added genfslist.sh.
46838
46839 * normal/main.c (fs_module_list): New variable.
46840 (autoload_fs_module): New function.
46841 (read_fs_list): Likewise.
46842 (grub_normal_execute): Call read_fs_list.
46843
46844 * kern/fs.c (grub_fs_autoload_hook): New variable.
46845 (grub_fs_probe): Added support for auto-loading.
46846
46847 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46848 (grub_fs_module_list_t): New type.
46849
46850 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46851 (grub_fs_autoload_hook): New prototype.
46852
46853 * genfslist.sh: New file.
f19dbdb7 46854
39c9d41d 46855 * genmk.rb: Added a rule to generate a filesystem list.
46856
121c1d83 468572005-06-30 Marco Gerards <metgerards@student.han.nl>
46858
46859 * configure.ac: Fix the test for cross-compiling.
46860
46861 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46862 define GRUB_UTIL anymore.
46863
46864 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
46865 so this function works on other systems than just big endian.
46866 (load_modules): Likewise.
46867 (add_segments): Likewise.
46868
e75d76e1 468692005-06-23 Hollis Blanchard <hollis@penguinppc.org>
46870
46871 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
46872 contains `l' modifier, get a long from va_arg().
46873
50b5a0a7 468742005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
46875
46876 * kern/mm.c (grub_free): If the next free block which is being
46877 merged is the first free block, set the first block to the block
46878 being freed.
46879 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46880
89371b20 468812005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46882
46883 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46884 `grub_ieee1275_chosen'.
46885
168d6e58 468862005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46887
46888 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46889 (grub_ieee1275_chosen): New variable.
46890 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46891 `chosen'.
46892 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46893 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46894 Rename first argument to `phandle' for consistency.
46895 (grub_ieee1275_get_property_length): Likewise.
46896 (grub_ieee1275_next_property): Likewise. Change type of first argument
46897 to grub_ieee1275_phandle_t.
46898 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46899 Move export next to declaration.
46900 (grub_ieee1275_chosen): New variable.
46901 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46902 Correct cosmetic typo.
46903 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46904 `grub_ieee1275_chosen'.
46905 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46906 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46907 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46908 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46909 `grub_ieee1275_chosen'.
46910
ca5baa3f 469112005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46912
46913 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46914 /chosen/bootargs.
46915 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46916 /chosen/bootargs as "variable=value" pairs.
46917
708b345f 469182005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46919
46920 * include/grub/misc.h (grub_dprintf): New macro.
46921 (grub_real_dprintf): New prototype.
46922 (grub_strword): Likewise.
46923 (grub_iswordseparator): Likewise.
46924 * kern/misc.c (grub_real_dprintf): New function.
46925 (grub_strword): Likewise.
46926 (grub_iswordseparator): Likewise.
46927
f4c5e67c 469282005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46929
46930 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46931 (roundup): Remove macro.
46932 (grub_ieee1275_flags): Make static.
46933 (grub_ieee1275_realmode): Remove.
46934 (grub_ieee1275_test_flag): New function.
46935 (grub_ieee1275_set_flag): Likewise.
46936 (find_options): Rename to `grub_ieee1275_find_options'; update
46937 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46938 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46939 (cmain): New prototype.
46940 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46941 `grub_ieee1275_flags' directly.
46942 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46943 machine/biosdisk.h.
46944 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46945 Don't include grub/machine/init.h.
46946 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46947 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46948 Remove prototype.
46949 (grub_ieee1275_realmode): Likewise.
46950 (grub_ieee1275_flag): New enum.
46951 (grub_ieee1275_test_flag): New prototype.
46952 (grub_ieee1275_set_flag): New prototype.
46953 * include/grub/powerpc/ieee1275/init.h: Remove file.
46954 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46955 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46956 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46957 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46958 comment.
46959 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46960 `grub_ieee1275_test_flag'.
46961 (grub_ieee1275_encode_devname): Likewise.
46962
ed16607e 469632005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46964
46965 * include/grub/powerpc/ieee1275/ieee1275.h
46966 (grub_ieee1275_encode_devname): New prototype.
46967 (grub_ieee1275_get_filename): Likewise.
46968 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46969 function.
46970 (grub_set_prefix): Likewise.
46971 (grub_machine_init): Call grub_set_prefix.
46972 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46973 (grub_parse_type): New enum.
46974 (grub_ieee1275_get_devargs): New function.
46975 (grub_ieee1275_get_devname): Likewise.
46976 (grub_ieee1275_parse_args): Likewise.
46977 (grub_ieee1275_get_filename): Likewise.
46978 (grub_ieee1275_encode_devname): Likewise.
46979
be369920 469802005-03-30 Marco Gerards <metgerards@student.han.nl>
46981
46982 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46983 `grub_loader_unset'.
46984
a5ce3a4a 469852005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46986
46987 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46988 instead of grub_ieee1275_interpret.
46989 (grub_halt_init): New function.
46990 (grub_halt_fini): Likewise.
46991 (GRUB_MOD_INIT): Correct message grammar.
46992 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46993 instead of grub_ieee1275_interpret.
46994 (grub_reboot_init): New function.
46995 (grub_reboot_fini): Likewise.
46996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46997 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46998 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46999 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
47000 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
47001 function.
47002 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
47003 Add prototype.
47004 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
47005 prototype.
47006 (grub_halt): Likewise.
47007 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
47008 (cmain): Remove __attribute__((unused)).
47009 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
47010 (grub_heap_len): Likewise.
47011 (grub_machine_fini): New function.
47012 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
47013 (grub_halt): Likewise.
47014 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
47015 function.
47016 * util/powerpc/ieee1275/misc.c: New file.
47017
0058f771 470182005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47019
47020 * DISTLIST: New file.
47021 * gendistlist.sh: Likewise.
f19dbdb7 47022
0058f771 47023 * Makefile.in (COMMON_DISTFILES): Removed.
47024 (BOOT_DISTFILES): Likewise.
47025 (CONF_DISTFILES): Likewise.
47026 (DISK_DISTFILES): Likewise.
47027 (FS_DISTFILES): Likewise.
47028 (INCLUDE_DISTFILES): Likewise.
47029 (KERN_DISTFILES): Likewise.
47030 (LOADER_DISTFILES): Likewise.
47031 (TERM_DISTFILES): Likewise.
47032 (UTIL_DISTFILES): Likewise.
47033 (DISTFILES): Likewise.
47034 (uninstall): Uninstall files in $(pkgdata_DATA).
47035 (DISTLIST): New target.
47036 (distdir): Use the contents of the file DISTLIST to get a list of
47037 distributed files.
47038
46b3b8a5 470392005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47040
47041 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47042 descriptor. This is ported from GRUB Legacy.
47043
47044 * gencmdlist.sh: Added an extra semicolon to make it work with
47045 old sed versions. Reported by Robert Bihlmeyer
47046 <robbe@orcus.priv.at>.
47047
5822ff87 470482005-03-08 Yoshinori Okuji <okuji@enbug.org>
47049
47050 Automatic loading of commands is supported.
f19dbdb7 47051
5822ff87 47052 * normal/main.c (read_command_list): New function.
47053 (grub_normal_execute): Call read_command_list.
47054
47055 * normal/command.c (grub_register_command): Return zero or CMD.
47056 Allocate CMD->NAME from the heap.
47057 Initialize CMD->MODULE_NAME to zero.
47058 Find the same name as well. If the same command is found and it is
47059 a dummy command, overwrite members. If it is not a dummy command,
47060 return zero.
47061 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47062 (grub_command_find): If a dummy command is found, load a module
47063 and retry to find a command only once.
47064
47065 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47066 make sure that each command is loaded.
47067
47068 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47069 macro.
47070 (struct grub_command): Remove const from the member `name'.
47071 Add a new member `module_name'.
47072 (grub_register_command): Return grub_command_t.
47073
47074 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47075 sure that each command is loaded.
47076
47077 * genmk.rb (PModule::rule): Specify a module name without the
47078 suffix ".mod" to gencmdlist.sh.
47079
7b1f4b57 470802005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47081
47082 * gencmdlist.sh: New file.
f19dbdb7 47083
7b1f4b57 47084 * genmk.rb (PModule::rule): Generate a rule for a command list.
47085 Clean command.lst.
47086 Generate command.lst from $(COMMANDFILES).
47087
47088 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47089 (DATA): Added $(pkgdata_DATA).
47090 (install-local): Install files in $(pkgdata_DATA).
47091
062aaf39 470922005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47093
47094 * term/i386/pc/vga.c (debug_command): Removed.
47095 (GRUB_MOD_INIT): Do not register the command "debug".
47096
47097 From Hollis Blanchard:
47098 * commands/configfile.c: New file.
47099 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47100 commands/configfile.c.
47101 (pkgdata_MODULES): Added configfile.mod.
47102 (configfile_mod_SOURCES): New variable.
47103 (configfile_mod_CFLAGS): Likewise.
47104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47105 commands/configfile.c.
47106 (pkgdata_MODULES): Added configfile.mod.
47107 (configfile_mod_SOURCES): New variable.
47108 (configfile_mod_CFLAGS): Likewise.
47109 * util/grub-emu.c (main): Call grub_configfile_init and
47110 grub_configfile_fini.
47111 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47112 prototype.
47113 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 47114
cee01aa6 471152005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47116
47117 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47118 address.
47119
47120 * commands/help.c (grub_cmd_help): Do not print newlines after
47121 the last command in print_command_help.
47122
93f3a1d8 471232005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47124
47125 * commands/default.h: New file.
47126 * commands/timeout.h: Likewise.
47127 * normal/context.c: Likewise.
f19dbdb7 47128
93f3a1d8 47129 * util/misc.c: Do not include sys/times.h.
47130 Include sys/time.h and grub/machine/time.h.
47131 (grub_get_rtc): Rewritten with gettimeofday.
47132
47133 * util/grub-emu.c (main): Call grub_default_init and
47134 grub_timeout_init before grub_normal_init, and call
47135 grub_timeout_fini and grub_default_fini after grub_main.
47136
47137 * util/console.c (grub_ncurses_checkkey): Return the read
47138 character or -1.
47139
47140 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47141 timeouts.
47142
47143 * normal/main.c (read_config_file): Push MENU. If this fails,
47144 print an error and wait for a user input.
47145 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47146 If a menu is empty or an error occurs, pop MENU.
47147 (grub_normal_execute): Pop and free MENU after grub_menu_run
47148 returns.
47149
47150 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47151
47152 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47153 include time.h.
47154 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47155 without GRUB_UTIL.
47156 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47157 time.h.
47158 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47159 without GRUB_UTIL.
47160
47161 * include/grub/normal.h (struct grub_menu_list): New struct.
47162 (grub_menu_list_t): New type.
47163 (struct grub_context): New struct.
47164 (grub_context_t): New type.
47165 (grub_register_command): Got rid of EXPORT_FUNC.
47166 (grub_unregister_command): Likewise.
47167 (grub_context_get): New prototype.
47168 (grub_context_get_current_menu): Likewise.
47169 (grub_context_push_menu): Likewise.
47170 (grub_context_pop_menu): Likewise.
47171 [GRUB_UTIL] (grub_default_init): Likewise.
47172 [GRUB_UTIL] (grub_default_fini): Likewise.
47173 [GRUB_UTIL] (grub_timeout_init): Likewise.
47174 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47175
47176 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47177 commands/timeout.c and normal/context.c.
47178 (pkgdata_MODULES): Added default.mod and timeout.mod.
47179 (normal_mod_SOURCES): Added normal/context.c.
47180 (default_mod_SOURCES): New variable.
47181 (default_mod_CFLAGS): Likewise.
47182 (timeout_mod_SOURCES): Likewise.
47183 (timeout_mod_CFLAGS): Likewise.
47184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47185 conf/i386-pc.rmk.
47186 (pkgdata_MODULES): Added default.mod and timeout.mod.
47187 (normal_mod_SOURCES): Added normal/context.c.
47188 (default_mod_SOURCES): New variable.
47189 (default_mod_CFLAGS): Likewise.
47190 (timeout_mod_SOURCES): Likewise.
47191 (timeout_mod_CFLAGS): Likewise.
47192
47193 * Makefile.in (all-local): Added $(MKFILES).
47194
4ed2e1dd 471952005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47196
47197 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47198 (grub_emu_SOURCES): Likewise.
47199 (pkgdata_MODULES): Add `sun.mod'.
47200 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47202 `partmap/sun.c'.
47203 (pkgdata_MODULES): Add `sun.mod'.
47204 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47205 * include/grub/partition.h (grub_sun_partition_map_init): New
47206 prototype.
47207 (grub_sun_partition_map_fini): Likewise.
47208 * partmap/sun.c: New file.
47209 * util/grub-emu.c (main): Initialize and de-initialize the sun
47210 partitionmap support.
47211
4d4e372e 472122005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47213
47214 This implements an Emacs-like menu entry editor.
f19dbdb7 47215
4d4e372e 47216 * normal/menu_entry.c: New file.
f19dbdb7 47217
4d4e372e 47218 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47219 characters to ASCII.
47220 (saved_char): New variable.
47221 (grub_ncurses_checkkey): Rewritten completely.
47222 (grub_ncurses_getkey): Likewise.
47223 (grub_ncurses_init): Call raw instead of cbreak.
47224
47225 * normal/menu.c (print_entry): Do not put a space.
47226 (init_page): Renamed to ...
47227 (grub_menu_init_page): ... this. All callers changed.
47228 (edit_menu_entry): Removed.
47229 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47230
47231 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47232
47233 * kern/misc.c (grub_vprintf): Call grub_refresh.
47234
47235 * normal/menu.c (DISP_LEFT): Renamed to ...
47236 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47237 * normal/menu.c (DISP_UP): Renamed to ...
47238 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47239 * normal/menu.c (DISP_RIGHT): Renamed to ...
47240 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47241 * normal/menu.c (DISP_DOWN): Renamed to ...
47242 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47243 * normal/menu.c (DISP_HLINE): Renamed to ...
47244 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47245 * normal/menu.c (DISP_VLINE): Renamed to ...
47246 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47247 * normal/menu.c (DISP_UL): Renamed to ...
47248 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47249 * normal/menu.c (DISP_UR): Renamed to ...
47250 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47251 * normal/menu.c (DISP_LL): Renamed to ...
47252 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47253 * normal/menu.c (DISP_LR): Renamed to ...
47254 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47255 * normal/menu.c (TERM_WIDTH): Renamed to ...
47256 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47257 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47258 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47259 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47260 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47261 * normal/menu.c (TERM_MARGIN): Renamed to ...
47262 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47263 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47264 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47265 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47266 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47267 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47268 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47269 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47270 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47271 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47272 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47273 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47274 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47275 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47276 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47277 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47278 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47279 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47280 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47281 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47282 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47283 All callers changed.
47284
47285 * include/grub/normal.h: New prototype.
47286
47287 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47288 normal/menu_entry.c.
47289 (normal_mod_SOURCES): Likewise.
47290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47291 (normal_mod_SOURCES): Likewise.
47292
e6b92c8a 472932005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47294
47295 * include/grub/normal.h (grub_halt_init): New prototype.
47296 (grub_halt_fini): Likewise.
47297 (grub_reboot_init): Likewise.
47298 (grub_reboot_fini): Likewise.
47299
47300 * util/grub-emu.c: Include signal.h.
47301 (main_env): New global variable.
47302 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
47303 catch C-c.
47304 (grub_machine_fini): New function.
47305 (main): Call grub_halt_init and grub_reboot_init before
47306 grub_main, and grub_reboot_fini and grub_halt_fini after it.
47307 Call setjmp with MAIN_ENV to go back afterwards.
47308 Call grub_machine_fini right before return.
47309
47310 * include/grub/util/misc.h: Include setjmp.h.
47311 (main_env): New prototype.
47312
47313 * include/grub/kernel.h (grub_machine_fini): New prototype.
47314 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
47315 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
47316
47317 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
47318 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
47319 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 47320
e6b92c8a 47321 * util/i386/pc/misc.c: New file.
f19dbdb7 47322
e6b92c8a 47323 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47324 util/i386/pc/misc.c, commands/i386/pc/halt.c and
47325 commands/i386/pc/reboot.c.
47326
c642636f 473272005-02-14 Guillem Jover <guillem@hadrons.org>
47328
47329 * include/grub/dl.h (grub_dl_check_header): New prototype.
47330 (grub_arch_dl_check_header): Change return type to grub_err_t,
47331 remove size parameter and export function. Update all callers.
47332 * kern/dl.c (grub_dl_check_header): New function.
47333 (grub_dl_load_core): Use `grub_dl_check_header' instead of
47334 `grub_arch_dl_check_header'. Check ELF type. Check if sections
47335 are inside the core.
47336 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
47337 independent ELF header checks.
47338 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47339 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
47340 `grub_dl_check_header' instead of explicit checks. Check for the
47341 ELF type.
47342 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
47343 `grub_dl_check_header' instead of explicit checks. Remove arch
47344 specific ELF header checks.
47345
e6b92c8a 47346 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
47347 argument SIZE.
47348
5eabe94b 473492005-02-13 Hollis Blanchard <hollis@penguinppc.org>
47350
47351 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
47352 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
47353
1b14a681 473542005-02-12 Hollis Blanchard <hollis@penguinppc.org>
47355
47356 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 47357 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 47358 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 47359 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 47360 * partmap/amiga.c (amiga_partition_map_iterate): Return
47361 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
47362 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47363
aca108aa 473642005-02-01 Guillem Jover <guillem@hadrons.org>
47365
47366 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
47367 help info.
47368
c9f9c556 473692005-01-31 Marco Gerards <metgerards@student.han.nl>
47370
47371 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
47372 Removed prototype.
47373 (grub_rescue_cmd_linux): New prototype.
47374 (grub_rescue_cmd_initrd): Likewise.
47375 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
47376 `bi_rec'.
47377 (grub_linux_release_mem): Release the memory for the initrd.
47378 (grub_load_linux): Renamed from this...
47379 (grub_rescue_cmd_linux): ...To this. Changed all callers.
47380 Changed `entry' not to be static. Loop over memory regions to
47381 find another one when the default fails.
47382 (grub_rescue_cmd_initrd): New function.
47383 (grub_linux_init): Remove function.
47384 (grub_linux_fini): Likewise.
47385 (GRUB_MOD_INIT): Register `initrd'.
47386 (GRUB_MOD_FINI): Unregister `initrd'.
47387 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
47388 Function removed.
47389 (grub_linux_normal_fini): Likewise.
47390 (GRUB_MOD_INIT): Register `initrd'.
47391 (GRUB_MOD_FINI): Unregister `initrd'.
47392
990cf3aa 473932005-01-31 Marco Gerards <metgerards@student.han.nl>
47394
47395 * commands/help.c: New file.
47396 * normal/arg.c (show_help): Renamed to...
47397 (grub_arg_show_help): ... this.
47398 * commands/i386/pc/halt.c: New file.
47399 * commands/i386/pc/reboot.c: Likewise.
47400 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
47401 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
47402 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
47403 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
47404 variables.
47405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47406 `commands/help.c'.
47407 (pkgdata_MODULES): Add `help.mod'.
47408 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
47409 * grub/i386/pc/init.h (grub_reboot): New prototype.
47410 (grub_halt): Likewise.
47411 * include/grub/normal.h (grub_arg_show_help): New prototype.
47412 (grub_help_init): Likewise.
47413 (grub_help_fini): Likewise.
47414 * util/grub-emu.c (main): Initialize and deinitialize the help
47415 command.
47416
47417 * normal/cmdline.c (grub_cmdline_get): Doc fix.
47418
47419 * normal/command.c (grub_command_init): Fixed the description of
47420 the `set' and `unset' commands.
47421
474222005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 47423
47424 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
47425 function.
47426 * commands/ieee1275/halt.c: New file.
47427 * commands/ieee1275/reboot.c: Likewise.
47428 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
47429 `__attribute__ ((unused))'. Some GCS related fixed.
47430 (grub_suspend_init) [GRUB_UTIL]: Function removed.
47431 (grub_suspend_fini): Likewise.
47432 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
47433 and `halt.mod'.
47434 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
47435 (halt_mod_CFLAGS): New variables.
47436 * include/grub/powerpc/ieee1275/ieee1275.h
47437 (grub_ieee1275_interpret): New prototype.
47438
1ab09cc7 474392005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
47440
47441 * include/grub/misc.h (memmove): New prototype.
47442 (memcpy): Likewise.
47443
8b8cbdb2 474442005-01-22 Hollis Blanchard <hollis@penguinppc.org>
47445
47446 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
47447 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
47448
e3741a27 474492005-01-22 Marco Gerards <metgerards@student.han.nl>
47450
47451 * kern/misc.c (grub_strndup): Function rewritten.
47452
776bd780 474532005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
47454
47455 * normal/menu.c (TERM_WIDTH): Macro redefined.
47456 (TERM_TOP_BORDER_Y): Likewise.
47457 (draw_border): Replaced while-loop by a for-loop. Make the number
47458 of lines consistent with the number of lines displayed in
47459 print_entries. Added a margin below the rectangle.
47460 (print_entry): Make the entry fit in the rectangle.
47461 (print_entries): Display the scroll arrows next to the right
47462 border.
47463
78026bce 474642005-01-21 Marco Gerards <metgerards@student.han.nl>
47465
47466 * fs/minix.c (grub_minix_find_file): Reserve more space for
47467 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
47468 `grub_strncpy' to copy `path' into it.
47469
67bbaf0f 474702005-01-21 Marco Gerards <metgerards@student.han.nl>
47471
47472 Add the loopback device, a device via which files can be accessed
47473 as devices.
f19dbdb7 47474
67bbaf0f 47475 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
47476 (pkgdata_MODULES): Add loopback.mod.
47477 (loopback_mod_SOURCES): New variable.
47478 (loopback_mod_CFLAGS): Likewise.
47479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47480 `disk/loopback.c'.
47481 (pkgdata_MODULES): Add loopback.mod.
47482 (loopback_mod_SOURCES): New variable.
47483 (loopback_mod_CFLAGS): Likewise.
47484 * disk/loopback.c: new file.
47485 * include/grub/normal.h (grub_loop_init): New prototype.
47486 (grub_loop_fini): New prototype.
47487 * util/grub-emu.c (main): Initialize and de-initialize loopback
47488 support.
47489 * include/grub/disk.h (grub_disk_dev_id): Add
47490 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
47491
6f1c18bd 474922005-01-20 Hollis Blanchard <hollis@penguinppc.org>
47493
47494 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
47495 function.
47496 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
47497 (suspend_mod_SOURCES): New variable.
47498 (suspend_mod_CFLAGS): Likewise.
47499 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
47500 New prototype.
47501 * commands/ieee1275/suspend.c: New file.
47502
b38551da 475032005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47504
47505 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 47506 ((unused))' to `__attribute__ ((used))'.
b38551da 47507 (GRUB_MOD_FINI): Likewise.
47508 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
47509 * genmk.rb (PModule): Assign space to common symbols when linking
47510 modules.
47511
777aff39 475122005-01-20 Marco Gerards <metgerards@student.han.nl>
47513
47514 * include/grub/mm.h (grub_mm_init_region): Change the type of the
47515 `unsigned' arguments to `grub_size_t'.
47516 (grub_malloc): Likewise.
47517 (grub_realloc): Likewise.
47518 (grub_memalign): Likewise.
47519 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
47520 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47521 * util/misc.c (grub_malloc): Likewise.
47522 (grub_realloc): Likewise.
47523 * kern/mm.c (get_header_from_pointer): Change the casts to
47524 `unsigned' into a cast to `grub_size_t'.
47525
47526 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
47527 point to `currnode' when `currnode' is changed.
47528
47529 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
47530 Schottelius <nico-linux@schottelius.org>.
47531
d0ff18e1 475322005-01-09 Hollis Blanchard <hollis@penguinppc.org>
47533
47534 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
47535 (note_path): Remove variable.
47536 (GRUB_IEEE1275_NOTE_NAME): New macro.
47537 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
47538 (grub_ieee1275_note_hdr): New structure.
47539 (grub_ieee1275_note_desc): Likewise.
47540 (grub_ieee1275_note): Likewise.
47541 (load_note): Remove `dir' argument. All callers updated. Remove
47542 `note_img' and `path'. Do not load a file from `note_path'.
47543 Initialize a struct grub_ieee1275_note and write that to `out'.
47544 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
47545
4ca7004c 475462005-01-05 Marco Gerards <metgerards@student.han.nl>
47547
47548 * util/misc.c (grub_util_read_image): Revert last change. It
47549 called `grub_util_read_at', which seeks from the beginning of the
47550 file.
47551
0b412211 475522005-01-04 Hollis Blanchard <hollis@penguinppc.org>
47553
47554 * TODO: Add note about endianness in grub-mkimage.
47555 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
47556 section.
47557 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
47558 (grub_mkimage_SOURCES): New target.
47559 * include/grub/kernel.h (grub_start_addr): Remove variable.
47560 (grub_end_addr): Likewise.
47561 (grub_total_module_size): Likewise.
47562 (grub_kernel_image_size): Likewise.
47563 (GRUB_MODULE_MAGIC): New constant.
47564 (grub_module_info): New structure.
47565 (grub_arch_modules_addr): New prototype.
47566 (grub_get_end_addr): Remove prototype.
47567 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
47568 * include/grub/powerpc/ieee1275/kernel.h: New file.
47569 * include/grub/util/misc.h (grub_util_get_fp_size): New
47570 prototype.
47571 (grub_util_read_at): Likewise.
47572 (grub_util_write_image_at): Likewise.
47573 * kern/main.c (grub_get_end_addr): Remove function.
47574 (grub_load_modules): Call grub_arch_modules_addr instead of using
47575 grub_end_addr. Look for a grub_module_info struct in memory. Use
47576 the grub_module_info fields instead of calling grub_get_end_addr
47577 as loop conditions. Move grub_add_unused_region code here.
47578 (grub_add_unused_region): Remove function.
47579 * kern/i386/pc/init.c: Include grub/cache.h.
47580 (grub_machine_init): Remove call to grub_get_end_addr. Remove
47581 one call to add_mem_region.
47582 (grub_arch_modules_addr): New function.
47583 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
47584 (grub_total_module_size): Likewise.
47585 Include grub/machine/kernel.h.
47586 (grub_arch_modules_addr): New function.
47587 * util/grub-emu.c (grub_end_addr): Remove variable.
47588 (grub_total_module_size): Likewise.
47589 (grub_arch_modules_addr): New function.
47590 * util/misc.c: Include unistd.h.
47591 (grub_util_get_fp_size): New function.
47592 (grub_util_read_at): Likewise.
47593 (grub_util_write_image_at): Likewise.
47594 (grub_util_read_image): Call grub_util_read_at.
47595 (grub_util_write_image): Call grub_util_write_image_at.
47596 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
47597 additional memory in kernel_img for a struct grub_module_info.
47598 Fill in that grub_module_info.
47599 * util/powerpc/ieee1275/grub-mkimage.c: New file.
47600
458786f8 476012005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47602
47603 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
47604 New function.
47605 * include/grub/powerpc/ieee1275/ieee1275.h
47606 (grub_ieee1275_milliseconds): New prototype.
47607 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
47608 Change to 1000.
47609 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
47610 grub_ieee1275_milliseconds.
47611
ac507d1b 476122005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47613
47614 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
47615 variable.
47616 (find_options): New function.
47617 (cmain): Call find_options.
47618 * include/grub/powerpc/ieee1275/ieee1275.h
47619 (grub_ieee1275_realmode): New extern variable.
47620 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
47621 grub_map if grub_ieee1275_realmode is false.
47622
6b8fd1c4 476232004-12-29 Marco Gerards <metgerards@student.han.nl>
47624
47625 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
47626 lines are inserted and make it work like readline. Reported by
47627 Vincent Pelletier <subdino2004@yahoo.fr>.
47628
8514a1e0 476292004-12-28 Marco Gerards <metgerards@student.han.nl>
47630
47631 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
47632
47633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
47634 `kern/powerpc/cache.S'.
47635
924b6140 476362004-12-27 Marco Gerards <metgerards@student.han.nl>
47637
47638 * genmk.rb: Handle the `Program' class in the main loop. Written
47639 by Johan Rydberg <jrydberg@gnu.org>.
47640 (Program): New class.
47641 (programs): New variable.
47642 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
47643 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
47644 instead of "grub/kernel.h". Include <grub/machine/init.h>.
47645 (help_arch): Function removed.
47646 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
47647 `powerpc/libgcc.h' and `loader.h'.
47648 (pkgdata_PROGRAMS): New variable.
47649 (sbin_UTILITIES): Variable removed.
47650 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
47651 (grubof_SOURCES): Variable re-defined so it only includes the
47652 core functionality.
47653 (grubof_CFLAGS): Remove `-DGRUBOF'.
47654 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
47655 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
47656 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
47657 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
47658 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
47659 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
47660 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
47661 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
47662 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
47663 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
47664 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47665 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
47666 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
47667 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
47668 (pc_mod_CFLAGS): New variables.
47669 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
47670 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
47671 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
47672 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
47673 Moved from here...
47674 * include/grub/i386/pc/init.h (grub_os_area_addr)
47675 (rub_os_area_size): ... to here.
47676 * include/grub/powerpc/ieee1275/ieee1275.h
47677 (grub_ieee1275_entry_fn): Export symbol.
47678 * include/grub/powerpc/ieee1275/init.h: New file.
47679 * include/grub/powerpc/libgcc.h: Likewise.
47680 * include/grub/cache.h: Likewise.
47681 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
47682 <hollis@penguinppc.org>.
47683 * kern/dl.c: Include <grub/cache.h>.
47684 (grub_dl_flush_cache): New function.
47685 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
47686 for this module.
47687 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
47688 (grub_console_init): Removed prototypes.
47689 (grub_machine_init): Don't initialize the modules anymore.
47690 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
47691 static.
47692 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
47693 Macro undef removed.
47694 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
47695 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
47696 relocation `R_PPC_REL32'. Return an error when the relocation is
47697 unknown.
47698 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
47699 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
47700 * util/misc.c (grub_arch_sync_caches): Likewise.
47701
e4b47e0c 477022004-12-19 Marco Gerards <metgerards@student.han.nl>
47703
47704 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
47705 `symlist.c', add `grubof_symlist.c'.
47706 (symlist.c): Variable removed.
47707 (grubof_HEADERS): Variable added.
47708 (grubof_symlist.c): New target.
47709 (kernel_syms.lst): Use `grubof_HEADERS' instead of
47710 `kernel_img_HEADERS'.
47711 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
47712 * kern/powerpc/dl.c: New file.
47713 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
47714 Function removed.
47715 (grub_arch_dl_relocate_symbols): Likewise.
47716 (grub_register_exported_symbols): Likewise.
47717
4ceb3636 477182004-12-13 Marco Gerards <metgerards@student.han.nl>
47719
47720 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
47721 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
47722 to fail instead. Reported by Vincent Pelletier
47723 <subdino2004@yahoo.fr>.
47724
47725 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
47726 it is not allocated. Reported by Vincent Pelletier
47727 <subdino2004@yahoo.fr>.
47728
47729 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
47730 output so the output looks better.
f19dbdb7 47731
3f1578fe 477322004-12-04 Marco Gerards <metgerards@student.han.nl>
47733
47734 Modulize the partition map support and add support for the amiga
47735 partition map.
f19dbdb7 47736
3f1578fe 47737 * commands/ls.c: Include <grub/partition.h> instead of
47738 <grub/machine/partition.h>.
47739 * kern/disk.c: Likewise.
47740 * kern/rescue.c: Likewise.
47741 * loader/i386/pc/chainloader.c: Likewise.
47742 * normal/cmdline.c: Likewise.
47743 * kern/powerpc/ieee1275/init.c: Likewise.
47744 (grub_machine_init): Call `grub_pc_partition_map_init',
47745 `grub_amiga_partition_map_init' and
47746 `grub_apple_partition_map_init'.
47747 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
47748 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
47749 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
47750 `partition.h' and `pc_partition.h'.
47751 (grub_setup_SOURCES): Remove
47752 `disk/i386/pc/partition.c'. Add `kern/partition.c',
47753 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47754 (grub_emu_SOURCES): Likewise.
47755 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
47756 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
47757 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
47758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47759 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
47760 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47761 (grubof_SOURCES): Likewise.
47762 * disk/i386/pc/partition.c: File removed.
47763 * disk/powerpc/ieee1275/partition.c: Likewise.
47764 * include/grub/powerpc/ieee1275/partition.h: Likewise.
47765 * include/grub/i386/pc/partition.h: Likewise.
47766 * kern/partition.c: New file.
47767 * partmap/amiga.c: Likewise.
47768 * partmap/apple.c: Likewise.
47769 * partmap/pc.c: Likewise.
47770 * include/grub/partition.h: Likewise..
47771 * include/grub/pc_partition.h: Likewise.
47772 * util/grub-emu.c: Include <grub/partition.h> instead of
47773 <grub/machine/partition.h>.
47774 (main): Call `grub_pc_partition_map_init',
47775 `grub_amiga_partition_map_init' and
47776 `grub_apple_partition_map_init' and deinitialize afterwards.
47777 * util/i386/pc/biosdisk.c: Include `#include
47778 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47779 `<grub/machine/partition.h>'.
47780 * util/i386/pc/grub-setup.c: Likewise.
47781 * util/i386/pc/biosdisk.c: Likewise.
47782 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
47783 partition information in case of a PC partition.
47784 * util/i386/pc/grub-setup.c: Include `#include
47785 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47786 `<grub/machine/partition.h>'.
47787 (setup): Only access the PC specific partition information in case
47788 of a PC partition.
47789
0ef4ced9 477902004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47791
0ef4ced9 47792 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
47793 (grub_longjmp): Likewise.
47794 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
47795 20.
47796 * normal/powerpc/setjmp.S: New file.
47797 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47798 `normal/powerpc/setjmp.S'.
47799 (grubof_CFLAGS): Add `-DGRUBOF'.
47800 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
47801 [GRUB_UTIL && !GRUBOF].
f19dbdb7 47802
19950e29 478032004-11-16 Marco Gerards <metgerards@student.han.nl>
47804
47805 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
47806 property named `name'. Correctly handle the error returned by
47807 `grub_ieee1275_finddevice' if a device can not be opened.
47808
a2fea427 478092004-11-02 Hollis Blanchard <hollis@penguinppc.org>
47810
47811 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
47812 `actual' for negativity.
47813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47814 kern/fshelp.c.
47815
41ea0ea3 478162004-11-01 Marco Gerards <metgerards@student.han.nl>
47817
47818 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
47819 (PAGE_OFFSET): New macro.
47820 (CRTC_ADDR_PORT): Likewise.
47821 (CRTC_DATA_PORT): Likewise.
47822 (START_ADDR_HIGH_REGISTER): Likewise.
47823 (START_ADDR_LOW_REGISTER): Likewise.
47824 (GRAPHICS_ADDR_PORT): Likewise.
47825 (GRAPHICS_DATA_PORT): Likewise.
47826 (READ_MAP_REGISTER): Likewise.
47827 (INPUT_STATUS1_REGISTER): Likewise.
47828 (INPUT_STATUS1_VERTR_BIT): Likewise.
47829 (page): New variable.
47830 (wait_vretrace): New function.
47831 (set_read_map): Likewise.
47832 (set_start_address): Likewise.
47833 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47834 the right page.
47835 (check_vga_mem): Take the page into account.
47836 (write_char): Likewise.
47837 (write_cursor): Likewise.
47838 (scroll_up): Likewise. Copy the page to the page that is not
47839 shown and switch between both pages.
47840 (grub_vga_putchar): Fix off by one error.
47841 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47842 account.
47843
ad0bd20b 478442004-11-01 Marco Gerards <metgerards@student.han.nl>
47845
47846 Add support for iso9660 (including rockridge).
f19dbdb7 47847
ad0bd20b 47848 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47849 (iso9660_mod_SOURCES): New variable.
47850 (iso9660_mod_CFLAGS): Likewise.
47851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47852 * include/grub/fs.h (grub_iso9660_init): New prototype.
47853 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47854 * fs/iso9660.c: New file.
47855
47856 * include/grub/misc.h (grub_strncat): New prototype.
47857 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47858
ad0bd20b 47859 * fs/hfs.c (grub_hfs_mount): Translate the error
47860 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47861 * fs/jfs.c (grub_jfs_mount): Likewise.
47862 * fs/ufs.c (grub_ufs_mount): Likewise.
47863
a5477a59 478642004-10-28 Hollis Blanchard <hollis@penguinppc.org>
47865
47866 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
47867 which initialized BAT registers.
47868 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
47869 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47870 Move from here...
47871 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
47872 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47873 ... to here.
47874 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
47875 (grub_mapclaim): Likewise.
47876 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
47877 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47878 hand.
47879
9304c1f8 478802004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47881
47882 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47883 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47884 -ffreestanding and -msoft-float.
47885
86f4ae25 478862004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47887
47888 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47889 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47890 set in grub_ieee1275_flags.
47891
38912228 478922004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47893
47894 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47895 prototype.
47896 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47897 grub_console_init first.
47898 Change the memory range used for grub_ieee1275_claim and
47899 grub_mm_init_region.
47900 Print an error message if the claim fails.
47901 Include <grub/misc.h>.
47902
d1923dc8 479032004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47904
47905 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47906 Call grub_children_iterate for device nodes of type `scsi',
47907 `ide', or `ata'.
47908 (grub_ofdisk_open): Remove manual device alias resolution.
47909 Fix memory leak when device cannot be opened.
f19dbdb7 47910 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47911 (grub_children_iterate): New prototype.
47912 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47913 New function.
47914 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47915 Return -1 if args.size was -1.
47916
4512e4f3 479172004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47918
47919 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47920 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47921 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47922 Open Firmware's memory for it; claim memory from _start to _end.
47923 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47924 (_end): New extern.
47925 (_start): Zero BSS from __bss_start to _end.
47926 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47927 New extern.
47928 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47929
4d61feb0 479302004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47931
ad0bd20b 47932 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47933 -1 if args.base was -1.
4d61feb0 47934
026fa2f9 479352004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47936
47937 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47938 escape sequence instead of a literal ^L. Also call
47939 grub_ofconsole_gotoxy.
47940
9f2220ef 479412004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47942
47943 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47944 void * arguments to grub_addr_t. All callers updated. Also make
47945 the `result' argument optional.
47946 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47947 All callers updated.
47948
8a572cd7 479492004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47950
47951 * commands/ls.c (grub_ls_list_files): Use the string following the
47952 initial ')', if present, as the filesystem path.
47953 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47954
47955 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47956
18aa81f2 479572004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47958
47959 Make the source code of the menu interface more readable.
f19dbdb7 47960
18aa81f2 47961 * normal/menu.c: Include grub/mm.h.
47962 (TERM_WIDTH): New macro.
47963 (TERM_HEIGHT): Likewise.
47964 (TERM_INFO_HEIGHT): Likewise.
47965 (TERM_MARGIN): Likewise.
47966 (TERM_SCROLL_WIDTH): Likewise.
47967 (TERM_TOP_BORDER_Y): Likewise.
47968 (TERM_LEFT_BORDER_X): Likewise.
47969 (TERM_BORDER_WIDTH): Likewise.
47970 (TERM_MESSAGE_HEIGHT): Likewise.
47971 (TERM_BORDER_HEIGHT): Likewise.
47972 (TERM_NUM_ENTRIES): Likewise.
47973 (TERM_FIRST_ENTRY_Y): Likewise.
47974 (TERM_ENTRY_WIDTH): Likewise.
47975 (TERM_CURSOR_X): Likewise.
47976 (draw_border): Use macros instead of magic numbers.
47977 (print_entry): Likewise.
47978 (print_entries): Likewise.
47979 (run_menu): Likewise. Also, handle the key 'e'.
47980 (run_menu_entry): Ignore empty command lines.
47981 (print_message): Added a new argument EDIT. If EDIT is true,
47982 print a different message.
47983 (init_page): Likewise.
47984 (edit_menu_entry): New function. Not implemented yet.
47985
b47efe30 479862004-09-17 Marco Gerards <metgerards@student.han.nl>
47987
47988 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47989 can be loaded from normal mode.
f19dbdb7 47990
b47efe30 47991 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47992 `multiboot.mod'.
47993 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47994 (multiboot_mod_CFLAGS): New variables.
47995 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47996 * loader/i386/pc/multiboot_normal.c: Likewise.
47997
b47efe30 47998 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47999 attribute `unused'.
f19dbdb7 48000
b47efe30 48001 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
48002 `fdiro' to read the mode information from instead of `diro'.
48003
48004 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
48005 looking up a symlink.
48006
48007 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
48008 macro.
48009 * normal/command.c (grub_command_execute): Don't parse the
48010 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
48011 flags of the command.
48012
48013 * normal/menu.c (grub_menu_run): Fix typo.
48014
da75ac71 480152004-09-14 Hollis Blanchard <hollis@penguinppc.org>
48016
48017 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48018
48019 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48020 `y + 1' instead of `y - 1'.
48021
48022 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 48023
062b24c2 480242004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48025
48026 From Hollis Blanchard <hollis@penguinppc.org>:
48027 * kern/misc.c (memmove): New alias for grub_memmove.
48028 (memcmp): New alias for grub_memcmp.
48029 (memset): New alias for grub_memset.
f19dbdb7 48030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 48031 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 48032 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 48033 (grub_ieee1275_get_property): Likewise.
f19dbdb7 48034
8ddad845 480352004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48036
48037 Added normal mode command `chainloader' as module chain.mod, which
48038 depends on normal.mod and _chain.mod.
f19dbdb7 48039
8ddad845 48040 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48041 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48042 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48043 Deleted prototype.
48044 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48045 but arguments parsing moved to ...
48046 (grub_chainloader_cmd): ... here. New function.
48047 * include/grub/i386/pc/chainloader.h: New file.
48048 * loader/i386/pc/chainloader_normal.c: Likewise.
48049
2c1f4ce3 480502004-09-11 Marco Gerards <metgerards@student.han.nl>
48051
48052 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48053 (grub_mkimage_LDFLAGS): Likewise.
48054 (grub_emu_SOURCES): Likewise.
48055 (kernel_img_HEADERS): Added fshelp.h.
48056 * fs/ext2.c: Include <grub/fshelp.h>.
48057 (FILETYPE_REG): New macro.
48058 (FILETYPE_INO_REG): Likewise.
48059 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48060 Changed all users.
48061 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48062 all users.
48063 (grub_fshelp_node): New struct.
48064 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48065 to a pointer.
48066 (grub_ext2_get_file_block): Removed function.
48067 (grub_ext2_read_block): New function.
48068 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48069 This function was written.
48070 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48071 (grub_ext2_find_file): Removed function.
48072 (grub_ext2_read_symlink): New function.
48073 (grub_ext2_iterate_dir): Likewise.
48074 (grub_ext2_open): Rewritten.
48075 (grub_ext2_dir): Rewritten.
48076 * include/grub/fshelp.h: New file.
48077 * fs/fshelp.c: Likewise.
48078
3c52136a 480792004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48080
48081 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48082 (print_message): Add a missing newline.
48083 (run_menu): Added timeout support.
48084 (run_menu_entry): New local function.
48085 (grub_menu_run): Added support for booting.
48086
48087 * kern/loader.c (grub_loader_is_loaded): New function.
48088
48089 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48090 (grub_get_rtc): Exported.
48091
48092 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48093 (grub_get_rtc): Exported.
48094
48095 * include/grub/normal.h (struct grub_command_list): Remove
48096 constant from the member `command'.
48097
48098 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48099
48100 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48101
48102 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48103
aa033560 481042004-08-28 Marco Gerards <metgerards@student.han.nl>
48105
48106 Add support for the JFS filesystem.
48107
48108 * fs/jfs.c: New file.
48109 * include/grub/fs.h (grub_jfs_init): New prototype.
48110 (grub_jfs_fini): New prototype.
48111 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48112 (grub_emu_SOURCES): Likewise.
48113 (pkgdata_MODULES): Add jfs.mod.
48114 (jfs_mod_SOURCES): New variable.
48115 (jfs_mod_CFLAGS): Likewise.
48116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48117 (grubof_SOURCES): Likewise.
48118 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48119
48120 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48121 endian to the host endian.
48122 (grub_fat_utf16_to_utf8): Move function from there...
48123 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 48124 the endianness of the source string anymore.
aa033560 48125 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48126
94bc45af 481272004-08-24 Marco Gerards <metgerards@student.han.nl>
48128
48129 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48130 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48131 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48132 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 48133
94bc45af 48134 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48135 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48136 for `node_found' and `it_dir'.
48137 (grub_hfs_dir): Add prototype for `dir_hook'.
48138
48139 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48140 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48141 and `indir32' to silence a gcc warning.
48142
48143 * include/grub/fs.h (grub_hfs_init): New prototype.
48144 (grub_hfs_fini): Likewise.
f19dbdb7 48145
48146
97543f08 481472004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48148
48149 Each disk device has its own id now. This is useful to make use
48150 of multiple disk devices.
f19dbdb7 48151
97543f08 48152 * include/grub/disk.h (grub_disk_dev_id): New enum.
48153 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48154 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48155
48156 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48157 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48158
48159 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48160 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48161
48162 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48163 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48164
48165 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48166 "id" which is used by the cache manager.
48167
48168 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48169 of just "GRUB".
48170
64372eb4 481712004-08-18 Marco Gerards <metgerards@student.han.nl>
48172
48173 * fs/hfs.c: New file.
48174 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48175 (grub_emu_SOURCES): Likewise.
48176 (pkgdata_MODULES): Add hfs.mod.
48177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48178 (grubof_SOURCES): Likewise.
48179 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48180
48181 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48182 * kern/misc.c (grub_strncasecmp): Add function.
48183
cc61b58f 481842004-08-14 Marco Gerards <metgerards@student.han.nl>
48185
48186 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48187 with parentheses.
48188
48189 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48190 (grub_ext2_dir): In case the directory entry type is unknown, read
48191 it from the inode.
48192
0ef123f6 481932004-08-02 Peter Bruin <pjbruin@dds.nl>
48194
48195 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48196 grub_load_linux instead of grub_rescue_cmd_linux as second
48197 argument of grub_rescue_register_command.
48198
48199 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48200
a447c5df 482012004-07-27 Marco Gerards <metgerards@student.han.nl>
48202
48203 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48204 function.
48205 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48207 `loader/powerpc/ieee1275/linux.c',
48208 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48209 * include/grub/powerpc/ieee1275/ieee1275.h
48210 (grub_ieee1275_release): New prototype.
48211 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48212 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48213 normal, boot, linux and linux_normal.
48214 * loader/powerpc/ieee1275/linux.c: New file.
48215 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48216
5a9e3546 482172004-07-12 Marco Gerards <metgerards@student.han.nl>
48218
48219 * normal/arg.c (grub_arg_parse): Correct error handling after
48220 reallocating the argumentlist (check if `argl' is not null instead
48221 of checking if `args' is not null).
48222 * kern/mm.c (grub_realloc): Return the same pointer when using the
48223 same region, instead of returning the header address.
48224
e15199cb 482252004-07-11 Marco Gerards <metgerards@student.han.nl>
48226
48227 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48228 one block instead of two when looking for the initial partition.
48229 (grub_partition_probe): Initialize the local variable `p' with 0.
48230 Use base 10 for the grub_strtoul call.
48231 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48232 need for one local variable.
48233 (grub_strtoul): Don't add the new value to `num', instead of that
48234 just assign it.
48235
020616c2 482362004-07-11 Marco Gerards <metgerards@student.han.nl>
48237
48238 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48239 (pxeboot_img_SOURCES): New variable.
48240 (pxeboot_img_ASFLAGS): Likewise.
48241 (pxeboot_img_LDFLAGS): Likewise.
48242 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48243 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48244 <lode_leroy@hotmail.com>.
48245
6c51eb64 482462004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48247
48248 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48249 there was no input.
48250
cfb12aff 482512004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48252
48253 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48254 the history buffer logic.
48255
6eabba74 482562004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48257
48258 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48259 (FILETYPE_INO_SYMLINK): New macros.
48260 (grub_ext2_find_file): Check if the node is a directory using the
48261 inode stat information instead of using the filetype in the
48262 dirent. Exclude the first character of an absolute symlink.
48263 (grub_ext2_dir): Mask out the filetype part of the mode member of
48264 the inode.
48265
66e19ef8 482662004-05-24 Marco Gerards <metgerards@student.han.nl>
48267
48268 Add support for UFS version 1 and 2. Add support for the minix
48269 filesystem version 1 and 2, both the variants with 14 and 30 long
48270 filenames.
f19dbdb7 48271
66e19ef8 48272 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48273 fs/minix.c.
48274 (grub_emu_SOURCES): Likewise.
48275 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48276 (ufs_mod_SOURCES): New variable.
48277 (ufs_mod_CFLAGS): Likewise.
48278 (minix_mod_SOURCES): Likewise.
48279 (minix_mod_CFLAGS): Likewise.
48280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48281 fs/minix.c.
48282 (grubof_SOURCES): Likewise.
48283 * fs/ufs.c: New file.
48284 * fs/minix.c: New file.
48285 * include/grub/fs.h (grub_ufs_init): New prototype.
48286 (grub_ufs_fini): Likewise.
48287 (grub_minix_init): Likewise.
48288 (grub_minix_fini): Likewise.
48289 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48290 minix fs.
48291
cc2e748a 482922004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48293
48294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48295 commands/ls.c, commands/terminal.c, commands/boot.c,
48296 commands/cmp.c and commands/cat.c.
48297 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48298
48299 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48300 "env.h"
48301
4b13b216 483022004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48303
48304 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
48305 and grub_, respectively. Because the conversion is trivial and
48306 mechanical, I omit the details here. Please refer to the CVS
48307 if you need more information.
48308
6a142551 483092004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48310
48311 * include/pupa: Renamed to ...
48312 * include/grub: ... this.
48313 * util/i386/pc/pupa-mkimage.c: Renamed to ...
48314 * util/i386/pc/grub-mkimage.c: ... this.
48315 * util/i386/pc/pupa-setup.c: Renamed to ...
48316 * util/i386/pc/grub-setup.c: ... this.
48317 * util/pupa-emu.c: Renamed to ...
48318 * util/grub-emu.c: ... this.
48319
e56cdf21 483202004-03-29 Marco Gerards <metgerards@student.han.nl>
48321
48322 Add support for the newworld apple macintosh (PPC). This has been
48323 tested on the powerbook 2000 only. It only adds support for
48324 generic ieee1275 functions, console and disk support. This should
48325 be easy to port to other architectures with support for Open
48326 Firmware.
f19dbdb7 48327
e56cdf21 48328 * configure.ac: Accept the powerpc as host_cpu. In the case of
48329 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
48330 specific tests are only executed while building for the i386.
48331 Inverse test for crosscompile.
48332 * genmk.rb (Utility): Allow assembler files.
48333 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
48334 * conf/powerpc-ieee1275.rmk: New file.
48335 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
48336 * disk/powerpc/ieee1275/partition.c: Likewise.
48337 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
48338 * include/pupa/powerpc/ieee1275/console.h: Likewise.
48339 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
48340 * include/pupa/powerpc/ieee1275/time.h: Likewise.
48341 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
48342 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
48343 * include/pupa/powerpc/ieee1275/loader.h
48344 * include/pupa/powerpc/setjmp.h: Likewise.
48345 * include/pupa/powerpc/types.h: Likewise.
48346 * kern/powerpc/ieee1275/init.c: Likewise.
48347 * kern/powerpc/ieee1275/openfw.c: Likewise.
48348 * term/powerpc/ieee1275/ofconsole.c: Likewise.
48349
48350 These files were written by Johan Rydberg
48351 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 48352
e56cdf21 48353 * boot/powerpc/ieee1275/cmain.c: New file.
48354 * boot/powerpc/ieee1275/crt0.S: Likewise.
48355 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
48356 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
48357
8c8cc205 483582004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
48359
48360 * Makefile.in: Update copyright.
48361 * genmodsrc.sh: Likewise.
48362 * gensymlist.sh: Likewise.
48363 * term/i386/pc/vga.c: Indent correctly.
48364
48365 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
48366 bugreporting address.
48367 * util/i386/pc/pupa-setup.c (usage): Likewise,
48368 (main): Call pupa_ext2_init and pupa_ext2_fini.
48369
f19dbdb7 48370 * fs/fat.c (log2): Renamed to ...
8c8cc205 48371 (fat_log2): ... this.
48372 All callers changed.
48373 * kern/misc.c (memcpy): Alias to pupa_memmove.
48374 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
48375 lvalue cast.
48376 * util/console.c (pupa_ncurses_fini): Return 0.
48377
48378 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
48379 Move fail label here.
48380 [__GNU__]: Don't warn when using stat.
48381 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
48382 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
48383 long int. Use strtol instead of strtoul.
f19dbdb7 48384
db1771cf 483852004-03-14 Marco Gerards <metgerards@student.han.nl>
48386
48387 * commands/boot.c: New file.
48388 * commands/cat.c: Likewise.
48389 * commands/cmp.c: Likewise.
48390 * commands/ls.c: Likewise.
48391 * commands/terminal.c: Likewise.
48392 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
48393 (pupa_register_command): Changed interface to match the new
48394 argument parser.
48395 (pupa_command_execute): Changed (almost rewritten) so it uses
48396 pupa_split_command. Added support for setting variables using the
48397 syntax `foo=bar'.
48398 (rescue_command): Changed to work with the new argument parser.
48399 (terminal_command): Moved from here to commands/terminal.c.
48400 (set_command): New function.
48401 (unset_command): New function.
48402 (insmod_command): New function.
48403 (rmmod_command): New function.
48404 (lsmod_command): New function.
48405 (pupa_command_init): Don't initialize the command terminal
48406 anymore. Initialize the commands set, unset, insmod, rmmod and
48407 lsmod.
48408 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
48409 (kernel_img_HEADERS): Add arg.h and env.h.
48410 (pupa_mkimage_LDFLAGS): Add kern/env.c.
48411 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
48412 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
48413 normal/arg.c.
48414 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
48415 terminal.mod.
48416 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
48417 (boot_mod_SOURCES): New variable.
48418 (terminal_mod_SOURCES): Likewise.
48419 (ls_mod_SOURCES): Likewise.
48420 (cmp_mod_SOURCES): Likewise.
48421 (cat_mod_SOURCES): Likewise.
48422
48423 * normal/arg.c: New file.
48424 * kern/env.c: Likewise.
48425 * include/pupa/arg.h: Likewise.
48426 * include/pupa/env.h: Likewise.
48427 * font/manager.c (font_command): Changed to match argument parsing
48428 interface changes.
48429 (PUPA_MOD_INIT): Likewise.
48430 * hello/hello.c (pupa_cmd_hello): Likewise.
48431 (PUPA_MOD_INIT): Likewise.
48432 * include/pupa/disk.h: Include <pupa/device.h>.
48433 (pupa_print_partinfo): New prototype.
48434 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
48435 (pupa_dl_get_prefix): Likewise.
48436 * include/pupa/misc.h: Include <pupa/err.h>.
48437 (pupa_isgraph): New prototype.
48438 (pupa_isdigit): Likewise.
48439 (pupa_split_cmdline): Likewise.
48440 * include/pupa/normal.h: Include <pupa/arg.h>.
48441 (pupa_command): Changed the prototype of the member `func' to
48442 match the argument parsing interface. Added member `options'.
48443 (pupa_register_command): Updated to match function.
48444 (pupa_arg_parse): New prototype.
48445 (pupa_hello_init) [PUPA_UTIL]: New prototype.
48446 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
48447 (pupa_ls_init) [PUPA_UTIL]: Likewise.
48448 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
48449 (pupa_cat_init) [PUPA_UTIL]: Likewise.
48450 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
48451 (pupa_boot_init) [PUPA_UTIL]: Likewise.
48452 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
48453 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
48454 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
48455 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
48456 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
48457 * kern/disk.c: Include <pupa/file.h>.
48458 (pupa_print_partinfo): New function.
48459 * kern/dl.c: Include <pupa/env.h>.
48460 (pupa_dl_dir): Variable removed.
48461 (pupa_dl_load): Use the environment variable `prefix' instead of
48462 the variable pupa_dl_dir.
48463 (pupa_dl_set_prefix): Function removed.
48464 (pupa_dl_get_prefix): Likewise.
48465 * kern/i386/pc/init.c: Include <pupa/env.h>.
48466 (pupa_machine_init): Use the environment variable `prefix' instead of
48467 using pupa_dl_set_prefix to set the prefix.
48468 * kern/main.c: Include <pupa/env.h>.
48469 (pupa_set_root_dev): Use the environment variable `prefix' instead of
48470 using pupa_dl_get_prefix to get the prefix.
48471 * kern/misc.c: Include <pupa/env.h>.
48472 (pupa_isdigit): New function.
48473 (pupa_isgraph): Likewise.
48474 (pupa_ftoa): Likewise.
48475 (pupa_vsprintf): Added support for printing values of the type
48476 `double'. Make it possible to format variable output when using
48477 formatting like `%1.2%f'.
48478 (pupa_split_cmdline): New function.
48479 * kern/rescue.c: Include <pupa/env.h>.
48480 (next_word): Removed function.
48481 (pupa_rescue_cmd_prefix): Likewise.
48482 (pupa_rescue_cmd_set): New function.
48483 (pupa_rescue_cmd_unset): New function.
48484 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
48485 split the command line instead of splitting it here. Added
48486 support for setting variables using the syntax `foo=bar'. Don't
48487 initialize the prefix command anymore. Initialized the set and
48488 unset commands.
48489 * normal/cmdline.c: Include <pupa/env.h>.
48490 (pupa_tab_complete): Added prototypes for print_simple_completion,
48491 print_partition_completion, add_completion, iterate_commands,
48492 iterate_dev, iterate_part and iterate_dir. Moved code to print
48493 partition information from here to kern/disk.c.
fe6b695a 48494 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 48495 * normal/main.c: Include <pupa/env.h>.
48496 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
48497 instead of using pupa_dl_get_prefix to get the prefix.
48498 * term/i386/pc/vga.c: Include <pupa/arg.h>.
48499 (check_vga_mem): Cast pointers to `void *' to silence a gcc
48500 warning.
48501 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
48502 (pupa_vga_setcolor): Declare unused variables with `__attribute__
48503 ((unused))' to silence a gcc warning.
48504 (pupa_vga_setcolor): Likewise.
48505 (debug_command): Changed to match argument parsing
48506 interface changes.
48507 * util/pupa-emu.c: Include <pupa/env.h>.
48508 (options): Added 0's for unused fields to silence a gcc warning.
48509 (argp): Likewise.
48510 (main): Use the environment variable `prefix' instead of using
48511 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
48512 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
48513 and terminal.
48514
48515 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
48516 * util/misc.c: Include <malloc.h>.
48517 (pupa_malloc): Rewritten so errors are correctly reported.
48518 (pupa_realloc): Likewise.
48519 (pupa_memalign): Likewise.
48520 (pupa_mm_init_region): Declare unused variables with
48521 `__attribute__ ((unused))' to silence a gcc warning.
48522 * normal/i386/setjmp.S: Remove tab at the end of the file to
48523 silence a gcc warning.
48524 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
48525 variables with `__attribute__ ((unused))' to silence a gcc
48526 warning.
48527 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
48528 local variable i unsigned to silence a gcc warning.
48529
48530 * kern/term.c: Include <pupa/misc.h>.
48531 (pupa_more_lines): New variable.
48532 (pupa_more): Likewise.
48533 (pupa_putcode): When the pager is active pause at the end of every
48534 screen.
48535 (pupa_set_more): New function.
48536 * include/pupa/term.h (pupa_set_more): New prototype.
48537
48538
3b1139cb 485392004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
48540
48541 Now this project is GRUB 2 rather than PUPA. The location of
48542 the CVS repository was moved to GRUB's.
f19dbdb7 48543
3b1139cb 48544 * configure.ac: Use bug-grub as the reporting address.
48545 Use GRUB instead of PUPA.
48546 Change the version number to 1.90.
48547
8367695c 485482004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
48549
48550 * genkernsyms.sh: Updated copyright information.
48551 * genmk.rb: Likewise.
48552 * genmodsrc.sh: Likewise.
48553 * gensymlist.sh: Likewise.
48554 * boot/i386/pc/boot.S: Likewise.
48555 * boot/i386/pc/diskboot.S: Likewise.
48556 * disk/i386/pc/biosdisk.c: Likewise.
48557 * disk/i386/pc/partition.c: Likewise.
48558 * font/manager.c: Likewise.
48559 * fs/ext2.c: Likewise.
48560 * fs/fat.c: Likewise.
48561 * include/pupa/boot.h: Likewise.
48562 * include/pupa/device.h: Likewise.
48563 * include/pupa/disk.h: Likewise.
48564 * include/pupa/dl.h: Likewise.
48565 * include/pupa/elf.h: Likewise.
48566 * include/pupa/err.h: Likewise.
48567 * include/pupa/file.h: Likewise.
48568 * include/pupa/font.h: Likewise.
48569 * include/pupa/fs.h: Likewise.
48570 * include/pupa/kernel.h: Likewise.
48571 * include/pupa/loader.h: Likewise.
48572 * include/pupa/misc.h: Likewise.
48573 * include/pupa/mm.h: Likewise.
48574 * include/pupa/net.h: Likewise.
48575 * include/pupa/normal.h: Likewise.
48576 * include/pupa/rescue.h: Likewise.
48577 * include/pupa/setjmp.h: Likewise.
48578 * include/pupa/symbol.h: Likewise.
48579 * include/pupa/term.h: Likewise.
48580 * include/pupa/types.h: Likewise.
48581 * include/pupa/i386/setjmp.h: Likewise.
48582 * include/pupa/i386/types.h: Likewise.
48583 * include/pupa/i386/pc/biosdisk.h: Likewise.
48584 * include/pupa/i386/pc/boot.h: Likewise.
48585 * include/pupa/i386/pc/console.h: Likewise.
48586 * include/pupa/i386/pc/init.h: Likewise.
48587 * include/pupa/i386/pc/kernel.h: Likewise.
48588 * include/pupa/i386/pc/linux.h: Likewise.
48589 * include/pupa/i386/pc/loader.h: Likewise.
48590 * include/pupa/i386/pc/memory.h: Likewise.
48591 * include/pupa/i386/pc/multiboot.h: Likewise.
48592 * include/pupa/i386/pc/partition.h: Likewise.
48593 * include/pupa/i386/pc/time.h: Likewise.
48594 * include/pupa/i386/pc/vga.h: Likewise.
48595 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
48596 * include/pupa/util/getroot.h: Likewise.
48597 * include/pupa/util/misc.h: Likewise.
48598 * include/pupa/util/resolve.h: Likewise.
48599 * kern/device.c: Likewise.
48600 * kern/disk.c: Likewise.
48601 * kern/dl.c: Likewise.
48602 * kern/err.c: Likewise.
48603 * kern/file.c: Likewise.
48604 * kern/fs.c: Likewise.
48605 * kern/loader.c: Likewise.
48606 * kern/main.c: Likewise.
48607 * kern/misc.c: Likewise.
48608 * kern/mm.c: Likewise.
48609 * kern/rescue.c: Likewise.
48610 * kern/term.c: Likewise.
48611 * kern/i386/dl.c: Likewise.
48612 * kern/i386/pc/init.c: Likewise.
48613 * kern/i386/pc/lzo1x.S: Likewise.
48614 * kern/i386/pc/startup.S: Likewise.
48615 * loader/i386/pc/chainloader.c: Likewise.
48616 * loader/i386/pc/linux.c: Likewise.
48617 * loader/i386/pc/multiboot.c: Likewise.
48618 * normal/cmdline.c: Likewise.
48619 * normal/command.c: Likewise.
48620 * normal/main.c: Likewise.
48621 * normal/menu.c: Likewise.
48622 * normal/i386/setjmp.S: Likewise.
48623 * term/i386/pc/console.c: Likewise.
48624 * term/i386/pc/vga.c: Likewise.
48625 * util/console.c: Likewise.
48626 * util/genmoddep.c: Likewise.
48627 * util/misc.c: Likewise.
48628 * util/pupa-emu.c: Likewise.
48629 * util/resolve.c: Likewise.
48630 * util/unifont2pff.rb: Likewise.
48631 * util/i386/pc/biosdisk.c: Likewise.
48632 * util/i386/pc/getroot.c: Likewise.
48633 * util/i386/pc/pupa-mkimage.c: Likewise.
48634 * util/i386/pc/pupa-setup.c: Likewise.
48635
e6eced71 486362004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
48637
48638 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
48639 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
48640 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
48641 reading and reset it after reading.
48642 (pupa_ext2_close): Return PUPA_ERR_NONE.
48643
48644 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
48645 Correct value.
48646 (struct linux_kernel_header): Add kernel_version and
48647 initrd_addr_max.
48648 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
48649 pupa_file_read succeeds.
48650 (pupa_rescue_cmd_initrd): Implement.
48651
5aded270 486522003-12-03 Marco Gerards <metgerards@student.han.nl>
48653
48654 * fs/ext2.c (pupa_ext2_label): New function.
48655 (pupa_ext2_fs): Added label.
48656 * fs/fat.c (pupa_fat_label): New function.
48657 (pupa_fat_fs): Added label.
48658 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
48659
48660 * kern/misc.c (pupa_strndup): New function.
48661 * include/pupa/misc.h (pupa_strndup): New prototype.
48662
48663 * include/pupa/normal.h: Include <pupa/err.h>.
48664 (pupa_set_history): New prototype.
48665 (pupa_iterate_commands): New prototype.
48666 * normal/cmdline.c: Include <pupa/machine/partition.h>,
48667 <pupa/disk.h>, <pupa/file.h>.
48668 (hist_size): New variable.
48669 (hist_lines): Likewise.
48670 (hist_end): Likewise.
48671 (hist_used): Likewise.
48672 (pupa_set_history): New function.
48673 (pupa_history_get): Likewise.
48674 (pupa_history_add): Likewise.
48675 (pupa_history_replace): Likewise.
48676 (pupa_tab_complete): Likewise.
48677 (pupa_cmdline_run): Added tab completion and history buffer. Tab
48678 completion shows partitionnames while completing partitions, this
48679 feature was suggested by Jeff Bailey.
48680 * normal/command.c (pupa_iterate_commands): New function.
48681 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
48682 (pupa_normal_init): Initialize history buffer.
48683 (PUPA_MOD_INIT): Likewise.
48684 (pupa_normal_fini): Free the history buffer.
48685 (PUPA_MOD_FINI): Likewise.
48686
48687 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
48688 key.
48689
48690 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
48691 * configure.ac [i386]: Check for regparam bug.
48692 (NESTED_FUNC_ATTR) [! i386]: Defined.
48693
1f7315a3 486942003-11-17 Marco Gerards <metgerards@student.han.nl>
48695
48696 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
48697 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
48698 (pupa_emu_SOURCES): New variable.
48699 (pupa_emu_LDFLAGS): Likewise.
48700 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
48701 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
48702 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
48703 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48704 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
48705 (pupa_jmp_buf): New typedef.
48706 (pupa_setjmp) [PUPA_UTIL]: New macro.
48707 (pupa_longjmp) [PUPA_UTIL]: Likewise.
48708 * include/pupa/term.h (struct pupa_term): New member `refresh'.
48709 (pupa_refresh): New prototype.
48710 * include/pupa/util/getroot.h: New file.
48711 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
48712 it.
48713 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
48714 (pupa_rescue_cmd_cat): Likewise.
48715 (pupa_rescue_cmd_ls): Likewise.
48716 (pupa_rescue_cmd_testload): Likewise.
48717 (pupa_rescue_cmd_lsmod): Likewise.
48718 * normal/cmdline.c (pupa_cmdline_get): Likewise.
48719 * normal/menu.c (run_menu): Likewise.
48720 * kern/term.c (pupa_cls): Likewise.
48721 (pupa_refresh): New function.
48722 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
48723 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48724 * util/console.c: New file.
f19dbdb7 48725
1f7315a3 48726 * util/i386/pc/getroot.c: New file.
48727 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
48728 (pupa_putchar): New function.
48729 (pupa_refresh): Likewise.
48730 (xgetcwd): Function moved to ...
48731 (strip_extra_slashes): Likewise.
48732 (get_prefix): Likewise.
f19dbdb7 48733 * util/i386/pc/getroot.c: ... here.
1f7315a3 48734 (find_root_device): Function moved and renamed to...
48735 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
48736 Changed all callers.
48737 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
48738 and renamed to...
48739 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
48740 Changed all callers.
48741 * util/misc.c (pupa_memalign): New function.
48742 (pupa_mm_init_region): Likewise.
48743 (pupa_register_exported_symbols): Likewise.
48744 (pupa_putchar): Function removed.
48745 * util/pupa-emu.c: New file.
48746
9a5c1ade 487472003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
48748
48749 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
48750 (_multiboot_mod_SOURCES): New variable.
48751 (_multiboot_mod_CFLAGS): Likewise.
48752 * loader/i386/pc/multiboot.c: New file.
48753 * include/pupa/i386/pc/multiboot.h: Likewise.
48754 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
48755 (pupa_multiboot_real_boot): New function.
48756 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
48757 (pupa_multiboot_real_boot): New prototype.
48758 (pupa_rescue_cmd_multiboot): Likewise
48759 (pupa_rescue_cmd_module): Likewise.
48760
48761 * kern/loader.c (pupa_loader_set): Continue when
48762 pupa_loader_unload_func() fails.
48763 (pupa_loader_unset): New function.
48764 * include/pupa/loader.h (pupa_loader_unset): New prototype.
48765
48766 * kern/misc.c (pupa_stpcpy): New function.
48767 * include/pupa/misc.h (pupa_stpcpy): New prototype.
48768
8e72a9c0 487692003-11-12 Marco Gerards <metgerards@student.han.nl>
48770
48771 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
48772 for available extensions.
48773
48774 * include/pupa/i386/pc/time.h: New file.
48775 * kern/disk.c: Include <pupa/machine/time.h>.
48776 (PUPA_CACHE_TIMEOUT): New macro.
48777 (pupa_last_time): New variable.
48778 (pupa_disk_open): Flush the cache when there was a timeout.
48779 (pupa_disk_close): Reset the timer.
48780 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
48781 pupa_currticks.
48782 * util/misc.c: Include <sys/times.h>
48783 (pupa_get_rtc): New function.
48784
c4adbd32 487852003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48786
48787 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
48788 as blocks.
48789 (pupa_ext2_get_file_block): Use blocks member.
48790
48791 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
48792 first block. Return -1 instead of pupa_errno on error.
48793
bfd30f06 487942003-10-27 Marco Gerards <metgerards@student.han.nl>
48795
48796 * README: In the pupa-mkimage example use _chain instead of chain
48797 and ext2 instead of fat.
48798 * TODO: Replace ext2fs with jfs as an example. Add an item for
48799 adding journal playback for ext2fs.
48800 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
48801 (pkgdata_MODULES): Added ext2.mod.
48802 (ext2_mod_SOURCES): New variable.
48803 (ext2_mod_CFLAGS): Likewise.
48804 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
48805 * include/pupa/misc.h (pupa_strncpy): New prototype.
48806 (pupa_strcat): Likewise.
48807 (pupa_strncmp): Likewise.
48808 * kern/misc.c (pupa_strcat): Enable function.
48809 (pupa_strncpy): New function.
48810 (pupa_strncmp): Likewise.
48811 * fs/ext2.c: New file.
f19dbdb7 48812
bfd30f06 48813 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
48814 when the read failed before retrying.
48815 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
48816 (_FILE_OFFSET_BITS): Likewise.
48817 * configure.ac: Added AC_SYS_LARGEFILE.
48818
98d15063 488192003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48820
48821 * genmk.rb (PModule#rule): Make sure to get only symbol names
48822 from the output of nm.
59cad637 48823 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 48824
18d9c7cd 488252003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48826
48827 I forgot to check in these changes for a long time. This adds
48828 incomplete support for VGA console, and this is still very
48829 buggy. Also, a lot of consideration is required for I18N,
48830 UNICODE, and VGA font issues. Therefore, assume that this is
48831 such that "better than nothing".
f19dbdb7 48832
18d9c7cd 48833 * font/manager.c: New file.
48834 * include/pupa/font.h: Likewise.
48835 * include/pupa/i386/pc/vga.h: Likewise.
48836 * term/i386/pc/vga.c: Likewise.
48837 * util/unifont2pff.rb: Likewise.
48838
48839 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48840 (pkgdata_MODULES): Added vga.mod and font.mod.
48841 (vga_mod_SOURCES): New variables.
48842 (vga_mod_CFLAGS): Likewise.
48843 (font_mod_SOURCES): Likewise.
48844 (font_mod_CFLAGS): Likewise.
48845
48846 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48847
48848 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48849 (struct pupa_term): Added init and fini.
18d9c7cd 48850 Changed the argument of putchar to pupa_uint32_t.
48851
48852 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48853 (pupa_console_real_putchar): New prototype.
48854 (pupa_console_putchar): Removed.
48855 (pupa_console_checkkey): Exported.
48856 (pupa_console_getkey): Likewise.
48857
48858 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48859 characters.
48860
48861 * kern/term.c (pupa_term_set_current): Rewritten.
48862 (pupa_putchar): Likewise.
48863 (pupa_putcode): New function.
48864
48865 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
48866 (pupa_console_real_putchar): ... this.
48867 (pupa_vga_set_mode): New function.
48868 (pupa_vga_get_font): Likewise.
48869
48870 * normal/command.c: Include pupa/term.h.
48871 (terminal_command): New function.
48872 (pupa_command_init): Register the command "terminal".
48873
48874 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
48875 (DISP_UP): Likewise.
48876 (DISP_RIGHT): Likewise.
48877 (DISP_DOWN): Likewise.
48878 (DISP_HLINE): Likewise.
48879 (DISP_VLINE): Likewise.
48880 (DISP_UL): Likewise.
48881 (DISP_UR): Likewise.
48882 (DISP_LL): Likewise.
48883 (DISP_LR): Likewise.
48884
48885 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48886
977329f5 488872003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48888
48889 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48890 FIX. Reverse the path_list.
48891
48892 * include/pupa/normal.h: Export pupa_register_command and
48893 pupa_unregister_command.
48894
48895 * hello/hello.c (pupa_cmd_hello): New module.
48896 * conf/i386-pc.rmk: Added hello.mod.
48897
1f5ab428 488982003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48899
48900 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48901
1f5ab428 48902 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48903 (compress_kernel): New variable.
48904 (generate_image): Heavily modified to support compressing a
48905 large part of the core image.
48906
48907 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48908 leak.
48909 (pupa_util_load_image): New function.
48910
48911 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48912 (pupa_compressed_size): New variable.
48913 (codestart): Enable Gate A20 here.
48914 Decompress the compressed part of the core image.
48915 Rearrange the code to put functions and variables which are
48916 required for initialization in the non-compressed part.
48917 Include lzo1x.S.
48918
48919 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48920 here.
48921
48922 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48923
f19dbdb7 48924 * include/pupa/i386/pc/kernel.h
1f5ab428 48925 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48926 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48927 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48928 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48929 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48930
48931 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48932
48933 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48934 (Utility#rule): Likewise.
48935
48936 * configure.ac: Check if LZO is available.
48937
ce5bf700 489382003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48939
48940 * include/pupa/normal.h: New file.
48941 * include/pupa/setjmp.h: Likewise.
48942 * include/pupa/i386/setjmp.h: Likewise.
48943 * normal/cmdline.c: Likewise.
48944 * normal/command.c: Likewise.
48945 * normal/main.c: Likewise.
48946 * normal/menu.c: Likewise.
48947 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48948
ce5bf700 48949 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48950 (pupa_rescue_cmd_initrd): Likewise.
48951
48952 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48953 Likewise.
48954
48955 * kern/i386/pc/startup.S (translation_table): New variable.
48956 (translate_keycode): New function.
48957 (pupa_console_getkey): Call translate_keycode.
48958
48959 * kern/rescue.c (attempt_normal_mode): New function.
48960 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48961 it failed, print a message.
48962
48963 * kern/mm.c (pupa_real_malloc): Print more information when a
48964 free magic is broken.
48965 (pupa_free): If the first free header is not free actually, set
48966 it to P.
48967
48968 * kern/main.c (pupa_load_normal_mode): Just load the module
48969 "normal".
48970 (pupa_main): Don't print the message
48971 "Entering into rescue mode..." here.
48972
48973 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48974 Declared.
48975 (pupa_rescue_cmd_initrd): Likewise.
48976 (pupa_rescue_cmd_initrd): Likewise.
48977
48978 * include/pupa/symbol.h (FUNCTION): Specify the type.
48979 (VARIABLE): Likewise.
48980
48981 * include/pupa/err.h (pupa_err_t): Added
48982 PUPA_ERR_UNKNOWN_COMMAND.
48983
48984 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48985 (pupa_dl_get_prefix): Likewise.
48986
48987 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48988 Added _chain.mod and _linux.mod instead of chain.mod and
48989 linux.mod.
48990 (chain_mod_SOURCES): Renamed to ...
48991 (_chain_mod_SOURCES): ... this.
48992 (chain_mod_CFLAGS): Renamed to ...
48993 (_chain_mod_CFLAGS): ... this.
48994 (linux_mod_SOURCES): Renamed to ...
48995 (_linux_mod_SOURCES): ... this.
48996 (linux_mod_CFLAGS): Renamed to ...
48997 (_linux_mod_CFLAGS): ... this.
48998 (normal_mod_SOURCES): New variable.
48999 (normal_mod_CFLAGS): Likewise.
49000 (normal_mod_ASFLAGS): Likewise.
49001
490022003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
49003
49004 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
49005 possible.
49006
fe6b695a 49007 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 49008 recursively.
49009 (pupa_dl_unref): Unrefer depending modules recursively.
49010 Don't call pupa_dl_unload implicitly, because PUPA can crash if
49011 a module is unloaded before one depending on that module is
49012 unloaded.
49013 (pupa_dl_unload): Unload depending modules explicitly,
49014 if possible.
49015
c04da074 490162003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49017
49018 * include/pupa/i386/pc/linux.h: New file.
49019 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 49020
c04da074 49021 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49022 Removed.
49023 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49024 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49025 of PUPA_CHAINLOADER_BOOT_SECTOR.
49026
49027 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49028 (pupa_linux_prot_size): New variable.
49029 (pupa_linux_tmp_addr): Likewise.
49030 (pupa_linux_real_addr): Likewise.
49031 (pupa_linux_boot_zimage): New function.
49032 (pupa_linux_boot_bzimage): Likewise.
49033
49034 * kern/i386/pc/init.c (struct mem_region): New structure.
49035 (MAX_REGIONS): New macro.
49036 (mem_regions): New variable.
49037 (num_regions): Likewise.
49038 (pupa_os_area_addr): Likewise.
49039 (pupa_os_area_size): Likewise.
49040 (pupa_lower_mem): Likewise.
49041 (pupa_upper_mem): Likewise.
49042 (add_mem_region): New function.
49043 (compact_mem_regions): Likewise.
49044 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49045 the size of the conventional memory and that of so-called upper
49046 memory (before the first memory hole).
49047 Instead of adding each found region to free memory, use
49048 add_mem_region and add them after removing overlaps.
49049 Also, add only 1/4 of the upper memory to free memory. The rest
49050 is used for loading OS images. Maybe this is ad hoc, but this
49051 makes it much easier to relocate OS images when booting.
49052
49053 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49054 (pupa_enter_rescue_mode): Don't register initrd and module.
49055
49056 * kern/mm.c: Include pupa/dl.h.
49057
49058 * kern/main.c: Include pupa/file.h and pupa/device.h.
49059
49060 * kern/loader.c (pupa_loader_load_module_func): Removed.
49061 (pupa_loader_load_module): Likewise.
49062
49063 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49064 ``.o''.
49065
49066 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49067 (pupa_linux_tmp_addr): Likewise.
49068 (pupa_linux_real_addr): Likewise.
49069 (pupa_linux_boot_zimage): Likewise.
49070 (pupa_linux_boot_bzimage): Likewise.
49071
49072 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49073 (pupa_upper_mem): Likewise.
49074 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49075 module is too dangerous.
49076
49077 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49078 (pupa_os_area_size): Likewise.
49079 (pupa_loader_set): Remove the first argument. Loader doesn't
49080 manage modules or initrd any longer.
49081 (pupa_loader_load_module): Removed.
49082
49083 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49084 (linux_mod_SOURCES): New variable.
49085 (linux_mod_CFLAGS): Likewise.
49086
a13f9237 490872003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49088
49089 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49090 the length of a blocklist correctly.
49091
49092 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49093 Use ioctl only if the OS file is a block device.
49094 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49095 not very useful for normal files.
49096
49097 * kern/main.c (pupa_set_root_dev): New function.
49098 (pupa_load_normal_mode): Likewise.
49099 (pupa_main): Call those above.
49100
49101 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49102 pupa_uint16_t.
49103
49104 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49105
a5ffe966 491062003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49107
49108 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49109 (setup): Configure the installed partition information and the
49110 dl prefix.
49111
49112 * loader/i386/pc/chainloader.c (my_mod): New variable.
49113 (pupa_chainloader_unload): New function.
49114 (pupa_rescue_cmd_chainloader): Refer itself.
49115 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49116
49117 * kern/i386/pc/startup.S (install_partition): Removed.
49118 (version_string): Likewise.
49119 (config_file): Likewise.
49120 (pupa_install_dos_part): New variable.
49121 (pupa_install_bsd_part): Likewise.
49122 (pupa_prefix): Likewise.
49123 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49124
49125 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49126 and pupa/misc.h.
49127 (make_install_device): New function.
49128 (pupa_machine_init): Set the dl prefix.
49129
49130 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49131 (buf): Renamed to ...
49132 (linebuf): ... this.
49133 (pupa_rescue_cmd_prefix): New function.
49134 (pupa_rescue_cmd_insmod): Likewise.
49135 (pupa_rescue_cmd_rmmod): Likewise.
49136 (pupa_rescue_cmd_lsmod): Likewise.
49137 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49138 rmmod and lsmod.
49139
49140 * kern/mm.c (pupa_memalign): If failed even after invalidating
49141 disk caches, unload unneeded modules and retry.
49142
49143 * kern/misc.c (pupa_memmove): New function.
49144 (pupa_memcpy): Removed.
49145 (pupa_strcpy): New function.
49146 (pupa_itoa): Made static.
49147
49148 * kern/dl.c (pupa_dl_iterate): New function.
49149 (pupa_dl_ref): Likewise.
49150 (pupa_dl_unref): Likewise.
49151 (pupa_dl_unload): Return if succeeded or not.
49152 (pupa_dl_unload_unneeded): New function.
49153 (pupa_dl_unload_all): Likewise.
49154 (pupa_dl_init): Renamed to ...
49155 (pupa_dl_set_prefix): ... this.
49156 (pupa_dl_get_prefix): New function.
49157
49158 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49159 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49160 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49161 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49162 (pupa_install_dos_part): Declared.
49163 (pupa_install_bsd_part): Likewise.
49164 (pupa_prefix): Likewise.
49165 (pupa_boot_drive): Likewise.
49166
49167 * include/pupa/types.h: Fix a typo.
49168
49169 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49170 pupa_memmove.
49171 (pupa_memmove): Declared.
49172 (pupa_strcpy): Likewise.
49173
49174 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49175 pupa_mod_init takes one argument, its own module.
49176 (pupa_dl_unload_unneeded): Declared.
49177 (pupa_dl_unload_all): Likewise.
49178 (pupa_dl_ref): Likewise.
49179 (pupa_dl_unref): Likewise.
49180 (pupa_dl_iterate): Likewise.
49181 (pupa_dl_init): Renamed to ...
49182 (pupa_dl_set_prefix): ... this.
49183 (pupa_dl_get_prefix): Declared.
49184
49185 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 49186 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 49187 unloaded.
49188 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49189 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49190
49191 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49192 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49193
012d7999 491942003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49195
49196 * util/i386/pc/pupa-setup.c (setup): Define the internal
49197 function find_first_partition_start at the top level, because GCC
49198 3.0.x cannot compile internal functions in deeper scopes
49199 correctly.
49200 (find_root_device): Use lstat instead of stat.
49201 Don't follow symbolic links.
49202 Fix the path-constructing code.
49203
49204 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49205 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49206 by a BLKGETSIZE ioctl first, because block devices don't fill
49207 the member st_mode of the structure stat on Linux.
49208 [__linux__] (linux_find_partition): Use a temporary buffer
49209 REAL_DEV for the working space. Copy it to DEV before returning.
49210 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49211 buffer cache consistent.
49212 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49213 strncmp. The previous value was merely wrong.
49214 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49215
49216 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49217 FAT size is 12. The previous value was merely wrong.
49218
49219 * kern/main.c (pupa_main): Don't split the starting message from
49220 newlines.
49221
49222 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49223 LF, because BIOS goes crazy about character attributes in this
49224 case.
49225
1cc73a62 492262003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49227
49228 * include/i386/pc/util/biosdisk.h: New file.
49229 * util/i386/pc/biosdisk.c: Likewise.
49230 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 49231
1cc73a62 49232 * Makefile.in (INCLUDE_DISTFILES): Added
49233 include/pupa/i386/pc/util/biosdisk.h.
49234 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49235 directory util/i386/pc.
49236 (install-local): Added a rule for sbin_UTILITIES.
49237 (uninstall): Likewise.
49238
49239 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49240
49241 * util/misc.c (xrealloc): New function.
49242 (pupa_malloc): Likewise.
49243 (pupa_free): Likewise.
49244 (pupa_realloc): Likewise.
49245 (pupa_stop): Likewise.
49246 (pupa_putchar): Likewise.
49247
49248 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49249
49250 * include/pupa/util/misc.h (xrealloc): Declared.
49251
49252 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49253 macro.
49254 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49255 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49256
49257 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49258 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49259
49260 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49261 way should be implemented.
49262 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49263
49264 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49265 the size of NAME for safety.
49266 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49267 0x88.
49268
49269 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49270 (pupa_setup_SOURCES): Likewise.
49271
49272 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49273
08b70fe8 492742002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49275
49276 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49277 bunch of pushl's from pusha, because this destroys the return
49278 value.
49279
62ddcc8f 492802002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49281
49282 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49283 This means that any missing prototypes could be fatal. Also, you
49284 must take care when writing assembly code. See the comments at
49285 the beginning of startup.S, for more details.
f19dbdb7 49286
62ddcc8f 49287 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49288 compilation mechanism.
49289 (pupa_chainloader_real_boot): Likewise.
49290 (pupa_biosdisk_rw_int13_extensions): Likewise.
49291 (pupa_biosdisk_rw_standard): Likewise.
49292 (pupa_biosdisk_check_int13_extensions): Likewise.
49293 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49294 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49295 (pupa_get_memsize): Likewise.
49296 (pupa_get_mmap_entry): Likewise.
49297 (pupa_console_putchar): Likewise.
49298 (pupa_console_setcursor): Likewise.
49299 (pupa_getrtsecs): Use pushl instead of push.
49300
49301 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49302 memory instead of the stack for a mmap entry, because some
49303 BIOSes may ignore the maximum size and overflow.
49304
49305 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
49306
49307 * genmk.rb (PModule#rule): Compile automatically generated
49308 sources with module-specific CFLAGS as well as other sources.
49309
9962ed99 493102002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49311
49312 * configure.ac: Check ld.
49313 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
49314 respectively, before checking endianness and sizes.
49315
49316 * Makefile.in (LD): New variable.
f19dbdb7 49317
abdfc3c5 493182002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49319
49320 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
49321
6a161fa9 493222002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49323
49324 * Changelog: New file.
49325