]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/bus/usb/usbhub.c: Fix recheck logic.
[grub2.git] / ChangeLog
CommitLineData
efa8640a
VS
12013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
4
6f80a7b2
VS
52013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
8 not filling whole 8x16 space.
9
a2371e19
VS
102013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
13
64fce2d8
VS
142013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * configure.ac: Indicate which liblzma is used if any.
17
eb272d84
PW
182013-06-21 Paul Wise <pabs3@bonedaddy.net>
192013-06-21 Craig Sanders <savannah@taz.net.au>
20
21 * util/grub-reboot.in: Document submenu usage.
22
a9e5abee
CW
232013-06-25 Colin Watson <cjwatson@ubuntu.com>
24
25 * .bzrignore: Update with a number of new test-related files.
26
e639c204
CW
272013-06-25 Colin Watson <cjwatson@ubuntu.com>
28
29 * util/grub-script-check.c: Fail on scripts containing no
30 commands, to guard against corrupted grub-mkconfig setups that
31 produce no useful output.
32 * tests/grub_script_no_commands.in: New test.
33 * Makefile.util.def (grub_script_no_commands): Add.
34 Reported by Hans Putter. Fixes Debian bug #713886.
35
a4c89b17
AB
362013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
37
38 * grub-core/disk/diskfilter.c: Forgot to remove comment
39 from previous commit.
40
5b06b53c
AB
412013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
42
43 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
44 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
45
702da5c9
AB
462013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
47
48 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
49
aa62a5b7
AB
502013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
51
52 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
53 rescan diskfilter devices until nothing new is found.
54
4aa237c8
VS
552013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
56
57 Fix casts when compiling coreboot-specific code for 64-bit EFI.
58
93d8479b
VS
592013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
60
61 Don't try to detect cbfs on *-emu.
62
837222cc
VS
632013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * grub-core/term/gfxterm.c: USe right background color when scrolling.
66
99c971af
VS
672013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
68
69 Add support for processed coreboot payload chainloading.
70
e6930a45
VS
712013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
72
73 Enable coreboot information commands even when not loaded as
74 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
75
5027af38
VS
762013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
77
78 Support for cbfs. Also factor out the part which is common
79 for all archives to a separate module. This splits tar from cpio
80 as they are very different but keeps cpio, cpio_be, odc and newc
81 together since they're very similar.
82
a5b55c4b
DM
832013-06-15 David Michael <fedora.dm0@gmail.com>
84
85 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
86 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
87
0301a8b3
VS
882013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * tests/grub_script_eval.in: Really add the eval test.
91
3d84cb17
VS
922013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
93
94 Move flavour-specific parts out of common cpio.c file and
95 rename remaining to cpio_common.c
96
593e430c
AB
972013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
98
99 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
100 off new function grub_script_execute_new_scope. Change callers to use
101 either of them as appropriate.
102 * grub-core/commands/eval.c: New command eval.
103 * docs/grub.texi (Commands): Document it.
104
63c29849
AB
1052013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
106
107 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
108 to fetch values when listing.
109
cc284112
AB
1102013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
111
112 Fix make dist on non-pc.
113
1142013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
115
116 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
117 without a device name.
118
69544d1e
VS
1192013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
120
121 Remove enable_executable_check as it's not needed anymore.
122 Reported by: dougray.
123
96dbe648
VS
1242013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
127 ambigouos RAID before discovering RAIDs on top of it.
128 Reported by: bodom.
129
ccfc0bdb
VS
1302013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
131
132 Fix typo (failback vs fallback).
133
f2587088
AB
1342013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
135
136 * util/grub.d/30_os-prober.in: Add support for probing EFI
137 System Partition (as of os-prober 1.58).
138
cec5cf0c
VS
1392013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
140
141 * configure.ac: Add yet another path to unifont. For parabola.
142
e40b4596
JT
1432013-05-30 Josh Triplett <josh@joshtriplett.org>
144
145 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
146 handling to copy the killed characters to the kill buffer as
147 UCS4 stored as grub_uint32_t rather than as 8-bit characters
148 stored as char. Eliminates UCS4 truncation and corruption
149 observed when killing characters with Ctrl-u and yanking them
150 back with Ctrl-y.
151
fc4c4fdd
VS
1522013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
153
154 Detach optional parts of gfxterm and integrate in with coreboot init.
155
6570b205
VS
1562013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
157
158 Move blit and fill dispatcher to appropriate files to decrease export
159 and relocation overhead.
160
b8323067
VS
1612013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/font/font.c, include/grub/font.h: Inline simple font
164 functions.
165
3cc1878f
VS
1662013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/Makefile.am: Fix compilation problem with some
169 automake versions.
170
4b80e43c
VS
1712013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
172
173 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
174
57e0c20c
VS
1752013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
178 automake versions.
179
4fd42c53
VS
1802013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
183 SSDT.
184
1e908b34
RS
1852013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
186
187 * grub-core/partmap/dfly.c: New partition map.
188
1359e474
VS
1892013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
192 checking.
193 Reported by: Francesco Lavra.
194
17806392
AB
1952013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
196
197 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
198 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
199 false conditions.
200 * conf/Makefile.common: define dist_grubconf_DATA
201
cdce14fa
VS
2022013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
203
204 Progressively skip menu elements on small terminals rather
205 than crashing.
206
c8d6cc3c
VS
2072013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
208
209 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
210 to avoid losing last column.
211
a73b31ce
VS
2122013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * po/exclude.pot: Add missing string "%C".
215
1202c764
VS
2162013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
219 after the test.
220
50268344
VS
2212013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * util/grub-install.in: Gettextize "Not found" message.
224
62b15edf
VS
2252013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
226
227 Fix distfiles list.
228 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
229
2302013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
231
232 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
233 present.
234 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
235
709ad61b
VS
2362013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
239
d128901a
VS
2402013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
243 attribute since structure is not necessarily aligned.
244
34b22f5c
AB
2452013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
246
247 * docs/grub.texi (Device syntax): Clarify description of network
248 drives.
249
0f7e980b
VS
2502013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
251
252 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
253 for vasprintf presence.
254
30b03dc2
VS
2552013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * util/grub-install.in: Handle efibootmgr presence check.
258 Reported by: Leif Lindholm.
259
0dc11c08
VS
2602013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
263 new strings to translate.
264
f8024c3f
VS
2652013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
268 yet another string (pun intended) to translate.
269
b4c1da62
VS
2702013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * po/POTFILES-shell.in: Autogenerate it.
273
0ef7478b
VS
2742013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
277
8200fa15
VS
2782013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
281 misnomer.
282
091945b2
AB
2832013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
284
285 * docs/grub.texi (Network): Add description of net_default_interface,
286 net_default_ip and net_default_mac. Rewrite variables description
287 to emphasize that they are per-interface.
288
0e7b2e32
VS
2892013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
290
291 New test: cmdline and cat.
292
16f7c8f6
VS
2932013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * grub-core/commands/cat.c: Show UTF-8 characters.
296
3e912fda
VS
2972013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
298
299 * conf/Makefile.common: Poison float and double on non-emu.
300
ee0220bc
VS
3012013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * configure.ac: Don't disable extended registers on emu.
304
89e0240c
VS
3052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
306
307 * configure.ac: Don't use extended registers on x86_64.
308 Reported by: Peter Jones.
309
e56d9637
VS
3102013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/term/efi/console.c: Fix compile error.
313
8098f655
VS
3142013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
315
316 Compressed HFS+ support.
317
16940e07
VS
3182013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
321 pixel".
322
c5dbc13d
VS
3232013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
324
325 Menu color test.
326
011f8ae8
VS
3272013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * grub-core/tests/setjmp_test.c: New test.
330
2aa072d7
VS
3312013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
332
333 New variables 'net_default_*' to determine MAC/IP of default interface.
334
43fe02cb
VS
3352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * tests/gettext_strings_test.in: A test to check for strings not
338 marked for translation.
339
bed06142
VS
3402013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
341
342 * autogen.sh: Exclude unused libgcrypt files from translation.
343
fb2666b5
VS
3442013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
345
346 Simplify few strings.
347
d22840ec
VS
3482013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
349
350 Mark few forgotten strings for translation.
351
e34092fd
VS
3522013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
355 rather than printf.
356
47cf82b4
VS
3572013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
360 rather than printf.
361 * grub-core/video/readers/tga.c: Likewise.
362
1eed0e6e
VS
3632013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
364
365 * tests/priority_queue_unit_test.cc: New test.
366
c5b7697b
VS
3672013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
370 than printf.
371
5945c2f8
AB
3722013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
373
374 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
375 variable for one time boot menu entry.
376
fa292343
B
3772013-05-05 Bean <bean123ch@gmail.com>
378
379 * grub-core/commands/testspeed.c: New command testspeed.
380
310d4214
VS
3812013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
382
383 Factor-out human-size printing.
384
85002bf3
VS
3852013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
386
387 Agglomerate more mallocs to speed-up gfxterm.
388
22b06e96
VS
3892013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
390
391 Speed-up gfxterm by slightly agglomerating mallocs.
392
b7c036bc
VS
3932013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
394
395 More video checks.
396
92323d1f
VS
3972013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
398
399 Speed-up gfxterm by saving intermediate results in index+alpha
400 format.
401
0fb356a3
VS
4022013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
405 test.
406
44dea3f9
VS
4072013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
408
409 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
410 line of timeout as it may contain the rest of long line.
411
14af86e4
VS
4122013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
413
414 * grub-core/normal/main.c: Fix freed memory dereference.
415
03f7c8c3
VS
4162013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
417
418 Fix several memory leaks.
419
c686014c
VS
4202013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
423
0788a695
VS
4242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
427
daf01d61
VS
4282013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
429
430 Fix test -a and -o precedence.
431 Reported by: adrian15.
432
82ae74d7
VS
4332013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
434
435 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
436
8cec7bd4
AB
4372013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
438
439 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
440 and add it as source to functional_test module.
441
aa73d688
VS
4422013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
445
c104b6f9
VS
4462013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
447
448 New series of tests for gfxterm and gfxmenu.
449
7391c4d5
VS
4502013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
453 the theme path relative to $prefix/themes.
454
cff50118
VS
4552013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
458 Fix order bug.
459 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
460
7c332bdc
VS
4612013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
464 descriptor.
465
a4f9a5ff
VS
4662013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
469 grub_gfxmenu_timeout_notifications.
470 (grub_gfxmenu_view_destroy): Likewise.
471
b5a2114d
VS
4722013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
475
a8905e8a
VS
4762013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
477
478 Several fixes to ieee1275 and big-endian video.
479
813c1622
VS
4802013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
481
482 Add missing exports on mips.
483
3f3e7326
VS
4842013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
487 if no unifont is found.
488 Restore original keyboard.
489
095accd1
VS
4902013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
493 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
494
50361660
VS
4952013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
496
497 First automated video test (running videotest and comparing results)
498
cd0f6eec
VS
4992013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
502 instead of 2 to have full RGB/CMY test pattern.
503
3f9634e5
VS
5042013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
505
506 Add few more tests.
507
583e5b64
VS
5082013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * include/grub/arc/arc.h: Account for missing "other" peripheral on
511 ARCS. All users updated.
512
aa7bcb99
VS
5132013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
516
95ef1a54
VS
5172013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/partmap/amiga.c: Fix size of checksummed block.
520
46546fc5
VS
5212013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
524 Reported by: qwertial.
525
3476e0ef
VT
5262013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
527
528 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
529 with syntax "XXX deg"/"XXX °".
530
96f33fed
VS
5312013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
532
533 Make PCI init in i386-qemu port more robust.
534
5352013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
536
537 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
538 cached view is reused.
539 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
540 open boot menus.
541
c53b4e67
VS
5422013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
543
544 Unify more code in grub-install_header.
545
f7457fb2
VS
5462013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
547
548 Add few new tests.
549
e2f27a8c
VS
5502013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
551
552 Enforce disabling of firmware disk drivers when native drivers kick in.
553
ef9d8cd5
VS
5542013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * grub-core/commands/nativedisk.c: Customize the list of modules on
557 platform. Don't try to search for disks already using native drivers.
558
f7bf6c31
VS
5592013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
562 platforms.
563
bdc4add8
VS
5642013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
567 handling of variables containing backslash.
568
e9e46c9a
VS
5692013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
570
571 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
572 dereference.
573 Reported by: qwertial.
574
0e90dee8
VS
5752013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
578
e0aacf24
VS
5792013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
582 dereference.
583 Reported by: qwertial.
584
3c0003c3
VS
5852013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * docs/grub.texi: Add a comment about usefullness of nativedisk.
588
adb7d667
VS
5892013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
592
7cd0df84
VS
5932013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
594
595 New command `nativedisk'.
596
02adbb93
VS
5972013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
600 * grub-core/loader/i386/bsd.c: Likewise.
601
9fb0fd4f
VS
6022013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
605
bd69257a
VS
6062013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
609 grub_get_unaligned16 rather than shifts.
610
178c2764
VS
6112013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
612
613 * grub-core/kern/file.c: Use const char * rather than casting to
614 non-const.
615
eadfad24
VS
6162013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
617
618 * grub-core/commands/probe.c: Add missing grub_device_close.
619
9f73ebd4
VS
6202013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * INSTALL: Document linguas.sh.
623
965fa829
VS
6242013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
625
626 Remove POTFILES.in and regenerate it in autogen.sh.
627
d417ddc4
VS
6282013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Move --directory/--override-directorry to grub-install_header and unify.
631
f97ec546
VS
6322013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
633
634 * grub-core/term/morse.c: Macroify dih and dah.
635
b2d7470c
PFS
6362013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
637
638 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
639
141e2a78
VS
6402013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/term/ns8250.c: Systematically probe ports by writing
643 to SR before using them.
644
1dd70ebd
PFS
6452013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
646
647 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
648 disks.
649 (check_sas): Get sas_adress info.
650
c796a107
VS
6512013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
654 ports.
655
43168646
LD
6562013-04-27 Leon Drugi <eyak>
657
658 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
659 BSS clearing.
660
e7b8fd08
VS
6612013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
662
663 Core compression test.
664
17f9fd29
VS
6652013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
666
667 Implement grub_machine_get_bootlocation for ARC.
668
dc2a6c8b
VS
6692013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
670
671 Improve AHCI detection and command issuing.
672
f25a2ba6
VS
6732013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
674
675 Fix pseries test.
676
a6393224
VS
6772013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
678
679 Make 'make check' work on emu.
680
db99fbe8
VS
6812013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
682
683 Replace libcurses with our own vt100 handling for the ease of testing
684 and decreasing prerequisites.
685
b24ca7cd
VS
6862013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
687
688 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
689
63314aa4
VS
6902013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
693 compile when not needed.
694
c1b00fff
VS
6952013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
696
697 * tests/pseries_test.in: New test.
698
f93e89ef
VS
6992013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
700
701 Add test to check that different boot mediums work.
702
c4b456d3
VS
7032013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
706 ofw limited ISO support.
707
5fe67f39
VS
7082013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * configure.ac: Fix loongson conditional.
711
7f63a64f
VS
7122013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
713
714 Enable mipsel-arc.
715
b04b5990
VS
7162013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
717
718 Add serial on ARC platform.
719
88d2f302
VS
7202013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
723 commit.
724
86eb23bc
VS
7252013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * tests/partmap_test.in: Add missing double semicolon.
728
eec3bb75
VS
7292013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * util/grub-mkrescue.in: Fix loongson filename.
732
e0810df3
VS
7332013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * util/grub-mkrescue.in: Move all files that don't have a location
736 set in stone under /boot/grub. Use ISO hard links rather than copies
737 to save some space.
738
65a6b30b
VS
7392013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
742 bogus SLOF values.
743
6aff0107
VS
7442013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Make check work on mips-arc.
747
5e013e56
VS
7482013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * util/grub-mkrescue.in: Alias sashARCS as sash.
751
d1989e2e
VS
7522013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
755 it's serial.
756
1a25e72c
VS
7572013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * util/grub-install.in: Fix target fo qemu_mips.
760 Fix extension on EFI.
761
a59a9826
VS
7622013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
765 in front of chosen entry to mark it even if highlighting is lost.
766
1a40f80c
VS
7672013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
770 gfxpayload=keep if cbfb is active.
771
e343549c
VS
7722013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
775
45fbd9a2
VS
7762013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
777
778 Add missing video ids to coreboot and ieee1275 video.
779
ab1440bd
VS
7802013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * util/grub-mkrescue.in: Add mips-arc support.
783
cdeb8324
VS
7842013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
787
8528c879
VS
7882013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
789
790 Move mips-arc link address. Previous link address was chosen
791 in belief that RAM on SGI platforms grows down while in fact it
792 grows up from an unusual base.
793
17fca573
VS
7942013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
797 Fix a type which prevented CD-ROM and floppy boot.
798
d178788e
VS
7992013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
800
801 Support coreboot framebuffer.
802
803 * grub-core/video/i386/coreboot/cbfb.c: New file.
804
fe4c3e7e
VS
8052013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
806
807 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
808 detecting too small regions.
809
ec2dd179
VS
8102013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
811
812 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
813
872dac83
VS
8142013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
817 Remove dprintf.
818 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
819
90ec4b7f
VS
8202013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
823 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
824 * grub-core/loader/powerpc/ieee1275/linux.c
825 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
826
f32555dd
VS
8272013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
828
829 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
830 Look for /boot-rom as well as /rom/boot-rom.
831
38649799
VS
8322013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
835 handling when creating text_layer failed.
836 * grub-core/video/video.c (grub_video_create_render_target):
837 Set result to 0 on error.
838 (grub_video_delete_render_target): Do not dereference NULL.
839
aeace7f7
VS
8402013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
843 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
844 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
845 (grub_linux_load64): Mask out 2 high bits.
846
4eafa175
AB
8472013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
848
849 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
850 more place.
851
daaa64bd
VS
8522013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Add support for pseries and other bootinfo machines to grub-mkrescue.
855
856 Tested by: Paulo Flabiano Smorigo.
857
d0d2daa6
VS
8582013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * util/grub-mkrescue.in: Add GPT for EFI boot.
861
b193e100
VS
8622013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
865 It improves performance in qemu.
866
a0f8f3ac
VS
8672013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * build-aux/snippet: Add missing gnulib files.
870
284df0e2
AB
8712013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
872
873 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
874
740201f3
AB
8752013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
876
877 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
878
a7e03923
PJ
8792013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
8802013-04-15 Peter Jones <pjones@redhat.com>
881
882 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
883 sectors.
884 Based on patch by Peter Jones.
885
25fc51a8
VS
8862013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
887
888 Fix DMRAID partition handling.
889
88017d47
VS
8902013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * tests/grub_cmd_date.in: Skip on sparc64.
893
fa7d914e
VS
8942013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
897 firmware error messages.
898
cbe57a48
VS
8992013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
902 source and destination differ.
903
21aecce0
VS
9042013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
907 detection.
908
25092d29
VS
9092013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
912 match config-util.h to avoid warnings and increase compatibility.
913
79451522 9142013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 9152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
916
917 Add option to compress files on install/image creation.
918
78b7d77b
VS
9192013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * docs/grub-dev.texi: Rearrange menu to match the section order.
922 Reported by: Bryan Hundven.
923
cc2fa5ec
VS
9242013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
927
b49fe879
VS
9282013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
929
930 Move GRUB out of system area when using xorriso 1.2.9 or later.
931
5351da81
VS
9322013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * tests/grub_cmd_date.in: Add missing exit 1.
935
c9d586ea
VS
9362013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * tests/partmap_test.in: Skip on sparc64.
939
3f729741
VS
9402013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
941
942 Support grub-shell on sparc64.
943
8ca86b3a
VS
9442013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
945
946 Support mkrescue on sparc64.
947
aa1af9bb
VS
9482013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
949
950 Allow IEEE1275 ports on path even if it wasn't detected automatically.
951 Needed on OpenBIOS due to incomplete device tree.
952
ac4fea79
VS
9532013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
956 would be otherwise excluded.
957
9582013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
959
960 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
961 Inline name defines used only once.
962
fe22b071
VS
9632013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Fix memory leaks in ofnet.
966 Reported by: Francesco Lavra.
967
9d21381b
VS
9682013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * docs/man/grub-glue-efi.h2m: Add missing file.
971
07aec23c
VS
9722013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
975
67ab8353
VS
9762013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
977
978 Better support Apple Intel Macs on CD.
979
ba44ca6d
VS
9802013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
981
982 Replace stpcpy with grub_stpcpy in tools.
983
bbdd6305
VS
9842013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
985
986 Handle Japanese special keys.
987 Reported by: Hiroyuki YAMAMORI.
988 Codes supplied by: Hiroyuki YAMAMORI.
989
8573d302
VS
9902013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * util/grub-mkimage.c: Document memdisk implying --prefix.
993
d70dbab7
VS
9942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
997 much we can do about it anyway.
998
51a4c3e3
AN
9992013-04-12 Aleš Nesrsta <starous@volny.cz>
1000
1001 Fix handling of split transfers.
1002
92c8f58d
VS
10032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/net/http.c: Fix bad free.
1006
b7d17a49
VS
10072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1010 than buffer size.
1011
a3d566d4
VS
10122013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1015
a936af56
VS
10162013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * tests/util/grub-shell.in: Fix it on powerpc.
1019
51212234
VS
10202013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 Turn off QEMU ACPI-way since new releases don't have shutdown port
1023 anymore.
1024
a21eec9e
VS
10252013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * docs/grub.texi: Update coreboot status info.
1028
e3734b84
VS
10292013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * tests/grub_cmd_date.in: New test for datetime.
1032
f9d40055
VS
10332013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * tests/partmap_test.in: Fix missing qemudisk setting.
1036
dbc56d8f
VS
10372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Support i386-ieee1275 grub-mkrescue and make check on it.
1040
a79b8a15
VS
10412013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1044 feature for it.
1045
48f39bb4
VS
10462013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1049 GRUB_CMDLINE_XEN_DEFAULT.
1050 Reported by: Marc Warne (GigaTux) <gigatux>
1051
053cfcdd
VS
10522013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 Import new gnulib.
1055
93cd84df
VS
10562013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 Use ACPI shutdown intests as traditional port was removed.
1059
f4b1fa4f
AB
10602013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1061
1062 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1063 distinction.
1064
49818a59
VS
10652013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1068 Fix few warining messages and leaks while on it.
1069
9277a306
AB
10702013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1071
1072 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1073 links under grub-core/lib/libgcrypt-grub/mpi.
1074
d5e2a158
VS
10752013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 Fix ia64-efi image generation on big-endian machines. Deduplicate
1078 some code while on it.
1079 Reported by: Leif Lindholm.
1080
18866643
AB
10812013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1082
1083 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1084 as extra_dist.
1085
ca53deb8
AB
10862013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1087
1088 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1089
d4c4b8e1
BH
10902013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1091
1092 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1093 texinfo-5.1.
1094
47043f95
VS
10952013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * grub-core/normal/term.c: Few more fixes for menu entry editor
1098 rendering.
1099 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1100
a3216068
VS
11012013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * grub-core/normal/term.c: Few more fixes for menu entry editor
1104 rendering.
1105 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1106
21026747
AB
11072013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1108
1109 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1110 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1111
59624ca8
AB
11122013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1113
1114 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1115 instead of hardcoding grub.mo.
1116
1f44478c
FN
11172013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1118
1119 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1120
eeada7b1
VS
11212013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1124 grub-core/disk/geli.c.
1125
132867de
VS
11262013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * util/grub-mkfont.c: Prefer enum to #define.
1129
de73de17
VS
11302013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1133
1865baa7
VS
11342013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1137
ce7d92a9
VS
11382013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1141
52eab656
VS
11422013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1145
98b23b95
VS
11462013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * include/grub/bsdlabel.h: Use enums.
1149
0467a5dd
VS
11502013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 Move GRUB_CHAR_BIT to types.h.
1153
16cc9f03
AB
11542013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1155
1156 * docs/grub.texi: Document more user commands.
1157
3152aecb
AB
11582013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1159
1160 * docs/grub.texi: Document menuentry --id option.
1161
c506fc30
FL
11622013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1163
1164 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1165
aa428238
VS
11662013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Unify file copying setup across different install scripts. Add
1169 options for performing partial install.
1170
efe0cdda
PJ
11712013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11722013-04-04 Peter Jones <pjones@redhat.com>
1173
1174 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1175
f75835bd
VS
11762013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 Use TSC as a possible time source on i386-ieee1275.
1179
2cd5ce6c
VS
11802013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1183 Init err.
1184
c9625630
VS
11852013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * util/grub-setup.c (setup): Handle some corner cases.
1188
be008941
VS
11892013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1192
1a78d573
VS
11932013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/commands/verify.c: Save verified file to avoid it being
1196 tampered with after verification was done.
1197
db8ff59f
VS
11982013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1201 reported width by one to compensate for curesor algorithm problem.
1202
91bf46b1
VS
12032013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 Fix screen corruption in menu entry editor and simplify the code
1206 flow while on it.
1207
a7b1d693
AB
12082013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1209
1210 * util/grub-mount.c (fuse_init): Return error if fuse_main
1211 failed.
1212
31df9ad8
FL
12132013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1214
1215 * include/grub/elf.h: Add missing ARM relocation codes and fix
1216 existing ones.
1217
07f392eb
VT
12182013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1219
1220 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1221
9efd73ec 12222013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
12232013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1226 into account when calculating radius.
1227
12282013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
1229
1230 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1231
4985ddaa
VT
12322013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1233
1234 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1235
8c3635ff
RS
12362013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1237
1238 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1239 missing closing bracket.
1240
74a35e69
RS
12412013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1242
1243 * INSTALL: Mention xorriso requirement.
1244
40f1c000
AB
12452013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1246
1247 * grub-core/commands/verify.c: Fix hash algorithms values for
1248 the first three hashes - they start with 1, not with 0.
1249
e75fdee4
VS
12502013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1253 Try terminating EFI services several times due to quirks in some
1254 implementations.
1255
33028f4c
CW
12562013-03-26 Colin Watson <cjwatson@ubuntu.com>
1257
1258 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1259 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1260 BankField extended opcodes.
1261 (get_sleep_type): Add minimal scope handling (just enough to
1262 handle setting the scope to the root path).
1263 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1264 * include/grub/acpi.h: Add enumeration values for Event, Device,
1265 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1266
33871a10
VT
12672013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1268
1269 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1270 memory leak.
1271
8990963a
VS
12722013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/disk/ahci.c: Give more time for AHCI request.
1275
daae8f9e
VS
12762013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1279 command.
1280
6a7fb94b
VS
12812013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 Replace the region at 0 from coreboot tables to available in BSD
1284 memory map.
1285
ff99babd
VS
12862013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
1289 non-BIOS platforms.
1290
30d6b1b2
VS
12912013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
1294 platforms.
1295
6ccd0b31
VS
12962013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1299 handling of multi-device filesystems.
1300
23c9cc04
VS
13012013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
1304 platforms.
1305
ce50dbd7
VS
13062013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 Add new 'proc' filesystem framework and put luks_script into it.
1309
d975e8d5
VS
13102013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
1313 and qemu.
1314
e73ba5e8
VS
13152013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
1318
92750e4c
VS
13192013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 Add ability to generate newc additions on runtime.
1322
0ec45a68
VS
13232013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
1326 description.
1327
320abd43
VS
13282013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * po/POTFILES.in: Regenerate.
1331
d7a6506e
VS
13322013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * grub-core/commands/verify.c (hashes): Add several hashes
1335 from the spec.
1336
8fe05def
VS
13372013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Slight improve in USB-related boot-time checkpoints.
1340
524e2766
VS
13412013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * grub-core/commands/boottime.c: Fix copyright header.
1344
cc19857a
VS
13452013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
1348 coreboot tables content. Support for cbmemc.
1349
ef8810e9
VS
13502013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 Fix a conflict between ports structures with 2 controllers of
1353 same kind.
1354
e9dabdfa
VS
13552013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * include/grub/boottime.h: Add missing file.
1358
f6df57d2
VS
13592013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Initialize USB ports in parallel to speed-up boot.
1362
d745dda7
VS
13632013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 Fix USB devices not being detected when requested
1366 due to delayed attach.
1367
e5a2dd7b
VS
13682013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1369
e744219b
VS
1370 Implement boot time analysis framework.
1371
13722013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
1375 descriptor to just receive it as argument rather than endpoint
1376 address.
1377
5dd6f587
VS
13782013-03-19 Aleš Nesrsta <starous@volny.cz>
1379
1380 Better estimate the maximum USB transfer size.
1381
2f1071d5
VS
13822013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 Resend a packet if we got the wrong buffer in status.
1385
46ecfc49
VS
13862013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
1389 multiplication rather than division.
1390
ea811130
VS
13912013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
1394 than divisions.
1395
d2789cf0
VS
13962013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
1399 operations to have intended shifts and not divisions.
1400
a9c94590
VS
14012013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
1404 intended shifts rather than division.
1405
84cfe81b
VS
14062013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
1409 computation for some years before epoch. Avode confusing division
1410 while on it.
1411
21344ef6
VS
14122013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 * grub-core/video/i386/pc/vbe.c
1415 (grub_video_vbe_print_adapter_specific_info): Replace division by
1416 shifts.
1417
3f2b4d1a
VS
14182013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 Adjust types in gdb module to have intended unsigned shifts rather than
1421 signed divisions.
1422
3dac5878
VS
14232013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
1426 maximum size is 4G - 1 on hfs
1427
5341c0fb
VS
14282013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
1431
fc3ff2a2
VS
14322013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
1435 function.
1436
81455e8e
AB
14372013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
1438
1439 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
1440 causing gcc error with gcc 4.7.1.
1441
efd4f117
NZ
14422013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1443
1444 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
1445 dereference null pointer. While the code is technically correct, gcc
1446 may eliminate a null check if pointer is already dereferenced.
1447
e11645f4
NZ
14482013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1449
1450 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
1451 OOM check.
1452 * grub-core/normal/term.c (read_terminal_list): Likewise.
1453
77468368
VS
14542013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 Lift up core size limits on some platforms. Fix potential memory
1457 corruption with big core on small memory systems. Document remaining
1458 limits.
1459
f6b58fe5
VS
14602013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
1463 gotoxy to 0,0.
1464
19ce697d
VS
14652013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 Remove all trampoline support. Add -Wtrampolines when
1468 present. Remove symbols used for trampolines to make
1469 link fail if trampolines are present.
1470
73b5d90f
VS
14712013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
1474 append out of its parent.
1475
cb758e96
VS
14762013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
1479 parent.
1480
3188131f
VS
14812013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
1484 all vars to a macro. All users updated.
1485
e42b2514
VS
14862013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/disk/ieee1275/nand.c: Fix compilation on
1489 i386-ieee1275.
1490
83e1a1a1
VS
14912013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
1494
1d5a880f
VS
14952013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
1498
6e4146c4
VS
14992013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 Move to more hookless approach in IEEE1275 devices handling.
1502
99fcda8a
VS
15032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/kern/term.c (grub_term_normal_color),
1506 (grub_term_highlight_color): Add back lost defaults.
1507
73bf57e2
VS
15082013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 Make elfload not use hooks. Opt for flags and iterators instead.
1511
7f8c105f
VS
15122013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
1515 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
1516
396d4091
VS
15172013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/script/execute.c (gettext_append): Remove nested functions.
1520
15212013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
1524 hook pass-through parameter. All users updated and unnested.
1525
74a27421
VS
15262013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
1529 out of its parent.
1530
b46d4213
VS
15312013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * grub-core/fs/hfs.c: Remove nested functions.
1534
e114c3cc
VS
15352013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
1538 the context through.
1539 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
1540
f9b7d780
VS
15412013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * util/grub-editenv.c (list_variables): Move print_var out of its
1544 parent.
1545
ca9c2608
VS
15462013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
1549 function.
1550
5d983f5f
VS
15512013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * grub-core/gentrigtables.c: Make tables const.
1554
3056d3e7
VS
15552013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 Remove nested functions from videoinfo iterators.
1558
e2303774
VS
15592013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
1562 for 64-bit platforms.
1563
f42e3a2f
VS
15642013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
1567 a FOR_CHILDREN macro.
1568
be174e5e
VS
15692013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
1572 platform from firmware path.
1573
0789b672
VS
15742013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 Enable linux16 on non-BIOS systems for i.a. memtest.
1577
1578 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
1579 correctly.
1580 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
1581
005a9c32
VS
15822013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
1585 Fix end of table condition.
1586
ff2b3cd9
VS
15872013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
1590 out of its parent.
1591
4fc40ff8
VS
15922013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/fs/jfs.c: Remove nested functions.
1595
be42d97a
VS
15962013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/fs/minix.c: Remove nested functions.
1599
99373ce4
VS
16002013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * grub-core/fs/iso9660.c: Remove nested functions.
1603
5aec2afe
VS
16042013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
1607 of parent function.
1608
6c69e691
VS
16092013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * util/grub-fstest.c: Remove nested functions.
1612
43c91882
VS
16132013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/loader/machoXX.c: Remove nested functions.
1616
4eb8b756
CW
16172013-02-27 Colin Watson <cjwatson@ubuntu.com>
1618
1619 Remove nested functions from disk and file read hooks.
1620
1621 * include/grub/disk.h (grub_disk_read_hook_t): New type.
1622 (struct grub_disk): Add read_hook_data member.
1623 * include/grub/file.h (struct grub_file): Likewise.
1624 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
1625 argument.
1626
1627 Update all callers.
1628
df6da5a5
AB
16292012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
1630
1631 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
1632 Fix off by one error in enumerating extended partitions.
1633
21aecde5
AB
16342013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
1635
1636 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
1637 memory leak if device name is not found.
1638
f1a19118
AB
16392013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1640
1641 * grub-core/normal/menu_entry.c (update_screen): remove
1642 unused variable `off' which caused scroll down arrow to be always shown.
1643
958bfd20
AB
16442013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1645
1646 * grub-core/normal/menu_entry.c (insert_string): fix off by one
1647 access to unallocated memory.
1648
b7b78edb
AB
16492013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1650
1651 * Makefile.util.def: Add partmap/msdos.c to common library.
1652 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
1653 * grub-core/disk/ldm.c: Check for existence of
1654 GRUB_PC_PARTITION_TYPE_LDM.
1655
28d468d6
VS
16562013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
1659 sizes and display sector size.
1660
d55ffb02
VS
16612013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 Implement new command cmosdump.
1664
b5ea6ce0
VS
16652013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1666
1667 Support Openfirmware disks with non-512B sectors.
1668
1669 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
1670 size of the disk.
1671 * (grub_ofdisk_get_block_size): New function.
1672 * (grub_ofdisk_prepare): Use the correct block size.
1673 * (grub_ofdisk_read): Likewise.
1674 * (grub_ofdisk_write): Likewise.
1675 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
1676 New proto.
1677
cc0e476f
VS
16782013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
1681
c5dbdc33
VS
16822013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
1685 on first error.
1686
3f078c0f
VS
16872013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
1690 freeing it.
1691
66a93674
VS
16922013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 Implement USBDebug (full USB stack variant).
1695
c9f0c134
VS
16962013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
1699 unless they have unexpected values.
1700
cfe1288b
VS
17012013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
1704 grub_print_error.
1705
e42b9969
VS
17062013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
1709 zero-out of port structure.
1710
cf94fd62
VS
17112013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
1714 of extended attributes.
1715
f81ef4b5
AB
17162013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
1717
1718 * util/grub-install.in: change misleading comment about
1719 device.map creation
1720
af18fdb4
VS
17212013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
1724 when menu highlight color isn't set.
1725
08bcec50
M
17262013-01-27 C. Masloch <pushbx@38.de>
1727
1728 Improve FreeDOS direct loading support compatibility.
1729
1730 * include/grub/i386/relocator.h (grub_relocator16_state):
1731 New member ebp.
1732 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
1733 variable.
1734 (grub_relocator16_boot): Handle %ebp.
1735 * grub-core/lib/i386/relocator16.S: Likewise.
1736 * grub-core/loader/i386/pc/freedos.c:
1737 Load BPB to pass kernel which partition to load from.
1738 Check that kernel file is not too large.
1739 Set register dl to BIOS unit number as well.
1740
7782b8a6
CW
17412013-01-22 Colin Watson <cjwatson@ubuntu.com>
1742
1743 * util/grub-reboot.in (usage): Document the need for
1744 GRUB_DEFAULT=saved.
1745 * util/grub-set-default.in (usage): Likewise.
1746 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
1747
e661c180
VS
17482013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
1751 than defining WORDS_BIGENDIAN manually.
1752
1c22ca9a
VS
17532013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
1756 invariants.
1757
d44892fe
CW
17582013-01-21 Colin Watson <cjwatson@ubuntu.com>
1759
1760 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
1761 nested.
1762 (blit_comb: add_device_width): Likewise.
1763
5fdbaed1
CW
17642013-01-21 Colin Watson <cjwatson@ubuntu.com>
1765
1766 Remove nested functions from USB iterators.
1767
1768 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
1769 (grub_usb_controller_iterate_hook_t): Likewise.
1770 (grub_usb_iterate): Add hook_data argument.
1771 (grub_usb_controller_iterate): Likewise.
1772 (struct grub_usb_controller_dev.iterate): Likewise.
1773
1774 Update all implementations and callers.
1775
4250985a
VS
17762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
1779 margin when not needed.
1780
7d8848f3
VS
17812013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1782
bc136973 1783 Make color variables global instead of it being per-terminal.
7d8848f3
VS
1784
17852013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1786
bc136973
VS
1787 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
1788 asterisk.
7d8848f3 1789
ed12a003
CW
17902013-01-21 Colin Watson <cjwatson@ubuntu.com>
1791
1792 Fix powerpc and sparc64 build failures caused by un-nesting memory
1793 map iterators.
1794
6a0db449
CW
17952013-01-21 Colin Watson <cjwatson@ubuntu.com>
1796
1797 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
1798 parameter declarations.
1799
ccd86b21
VS
18002013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
1803
822b726b
VS
18042013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 Improve spkmomdem reliability by adding a separator between bytes.
1807
115c2cc1
CW
18082013-01-21 Colin Watson <cjwatson@ubuntu.com>
1809
1810 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1811 an Acer registration utility with several sightings in the wild.
1812 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1813
fc524edf
CW
18142013-01-21 Colin Watson <cjwatson@ubuntu.com>
1815
1816 Remove nested functions from filesystem directory iterators.
1817
1818 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1819 (struct grub_fs.dir): Add hook_data argument.
1820
1821 Update all implementations and callers.
1822
53d3e4e3
CW
18232013-01-21 Colin Watson <cjwatson@ubuntu.com>
1824
1825 * docs/grub.texi (Multi-boot manual config): Fix typo for
1826 "recommended".
1827
c821711f
LL
18282013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1829
1830 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1831 until after its use in generate_image.
1832
6a0debbd
CW
18332013-01-20 Colin Watson <cjwatson@ubuntu.com>
1834
1835 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1836 initrd size to addr_min, since the initrd will be allocated after
1837 this address.
1838
f41e08db
AB
18392013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1840
1841 * conf/Makefile.common: Fix autogen rules to pass definition
1842 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1843
77529e0f
LL
18442013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1845
1846 * include/grub/elf.h: Update ARM definitions based on binutils.
1847
b879aa7b
VS
18482013-01-20 Aleš Nesrsta <starous@volny.cz>
1849
1850 Split long USB transfers into short ones.
1851
8eb8284d
AB
18522013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1853
1854 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
1855 is interrupted by ESC.
1856
08dad2dc
VS
18572013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * util/grub-script-check.c (main): Uniform the error message.
1860
6c724b85
CW
18612013-01-20 Colin Watson <cjwatson@ubuntu.com>
1862
1863 Remove nested functions from ELF iterators.
1864
25239370
CW
18652013-01-20 Colin Watson <cjwatson@ubuntu.com>
1866
1867 Remove nested functions from device iterators.
1868
1869 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1870 (grub_arc_iterate_devs): Add hook_data argument.
1871 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1872 (struct grub_ata_dev.iterate): Add hook_data argument.
1873 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1874 (grub_device_iterate): Add hook_data argument.
1875 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1876 (struct grub_disk_dev.iterate): Add hook_data argument.
1877 (grub_disk_dev_iterate): Likewise.
1878 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1879 Likewise.
1880 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1881 Likewise.
1882 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1883 type.
1884 (struct grub_partition_map.iterate): Add hook_data argument.
1885 (grub_partition_iterate): Likewise.
1886 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1887 (struct grub_scsi_dev.iterate): Add hook_data argument.
1888
1889 Update all callers.
1890
6c0314d6
CW
18912013-01-20 Colin Watson <cjwatson@ubuntu.com>
1892
1893 Fix typos for "developer" and "development".
1894
600dc5f1
VS
18952013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 Add license header to spkmodem-recv.c.
1898
17334a6b
VS
18992013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 Rewrite spkmodem to use PIT for timing. Double the speed.
1902
7d462559
VS
19032013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 Add new command pcidump.
1906
b78d6c32
VS
19072013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 New terminal outputs using serial: morse and spkmodem.
1910
34f71cb8
VS
19112013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 Improve bidi handling in entry editor.
1914
4542e71b
VS
19152013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1918 argument to prevent name collision.
1919
09fd6d82
CW
19202013-01-15 Colin Watson <cjwatson@ubuntu.com>
1921
1922 Remove nested functions from script reading and parsing.
1923
1924 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1925 getline_data argument, passed to getline.
1926 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1927 getline_data argument, passed to grub_parser_split_cmdline.
1928 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1929 lexerstate->getline_data to lexerstate->getline.
1930 (grub_script_lexer_init): Add getline_data argument, saved in
1931 lexerstate->getline_data.
1932 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1933 argument, passed to grub_script_parse.
1934 * grub-core/script/script.c (grub_script_parse): Add getline_data
1935 argument, passed to grub_script_lexer_init.
1936 * include/grub/parser.h (grub_parser_split_cmdline): Update
1937 prototype. Update all callers to pass appropriate getline data.
1938 (struct grub_parser.parse_line): Likewise.
1939 (grub_rescue_parse_line): Likewise.
1940 * include/grub/reader.h (grub_reader_getline_t): Add void *
1941 argument.
1942 * include/grub/script_sh.h (struct grub_lexer_param): Add
1943 getline_data member.
1944 (grub_script_parse): Update prototype. Update all callers to pass
1945 appropriate getline data.
1946 (grub_script_lexer_init): Likewise.
1947 (grub_normal_parse_line): Likewise.
1948
1949 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1950 data argument.
1951 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1952 static instead of nested. Rename to ...
1953 (grub_parser_execute_getline): ... this.
1954 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1955 data argument.
1956 * grub-core/normal/main.c (read_config_file: getline): Make static
1957 instead of nested. Rename to ...
1958 (read_config_file_getline): ... this.
1959 (grub_normal_read_line): Add unused data argument.
1960 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1961 getline): Make static instead of nested. Rename to ...
1962 (grub_script_execute_sourcecode_getline): ... this.
1963 * util/grub-script-check.c (main: get_config_line): Make static
1964 instead of nested.
1965
d0d4b8a0
CW
19662013-01-15 Colin Watson <cjwatson@ubuntu.com>
1967
1968 Remove nested functions from memory map iterators.
1969
1970 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1971 argument, passed to hook.
1972 * grub-core/kern/i386/coreboot/mmap.c
1973 (grub_linuxbios_table_iterate): Likewise.
1974 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1975 instead of nested.
1976 (grub_machine_mmap_iterate): Add hook_data argument.
1977 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1978 Add hook_data argument, passed to hook.
1979 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1980 Likewise.
1981 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1982 Likewise.
1983 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
1984 Likewise.
1985 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
1986 Likewise.
1987 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
1988 Likewise.
1989 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
1990 Likewise.
1991 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
1992 (grub_machine_mmap_iterate): Likewise.
1993 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
1994 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
1995 prototype.
1996 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
1997 Remove NESTED_FUNC_ATTR from here and from all users.
1998 (grub_mmap_iterate): Update prototype.
1999 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2000 pass appropriate hook data.
2001 (grub_machine_mmap_iterate): Likewise.
2002
2003 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2004 static instead of nested.
2005 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2006 Rename to ...
2007 (lsmmap_hook): ... this.
2008 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2009 Likewise.
2010 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2011 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2012 heap_init): Likewise.
2013 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2014 Rename to ...
2015 (mmap_iterate_hook): ... this.
2016 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2017 Likewise.
2018 * grub-core/lib/ieee1275/relocator.c
2019 (grub_relocator_firmware_get_max_events: count): Likewise.
2020 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2021 to ...
2022 (grub_relocator_firmware_fill_events_iter): ... this.
2023 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2024 hook): Likewise. Rename to ...
2025 (grub_relocator_alloc_chunk_align_iter): ... this.
2026 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2027 Rename to ...
2028 (generate_e820_mmap_iter): ... this.
2029 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2030 Rename to ...
2031 (count_hook): ... this.
2032 (grub_linux_boot: hook): Likewise. Rename to ...
2033 (grub_linux_boot_mmap_find): ... this.
2034 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2035 (grub_linux_boot_mmap_fill): ... this.
2036 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2037 hook): Likewise. Rename to ...
2038 (grub_fill_multiboot_mmap_iter): ... this.
2039 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2040 hook): Likewise. Rename to ...
2041 (count_hook): ... this.
2042 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2043 hook): Likewise. Rename to ...
2044 (grub_fill_multiboot_mmap_iter): ... this.
2045 * grub-core/loader/powerpc/ieee1275/linux.c
2046 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2047 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2048 Likewise. Rename to ...
2049 (alloc_phys_choose): ... this.
2050 (determine_phys_base: get_physbase): Likewise.
2051 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2052 find_hook): Likewise.
2053 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2054 (malloc_hook: count_hook): Likewise.
2055 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2056 Likewise. Rename to ...
2057 (lower_hook): ... this.
2058 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2059 (upper_hook): ... this.
2060 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2061 (post64_hook): ... this.
2062 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2063 Likewise. Rename to ...
2064 (lower_hook): ... this.
2065 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2066 (upper_hook): ... this.
2067 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2068 (grub_mmap_iterate: fill_hook): Likewise.
2069 (fill_mask): Pass addr and mask within a single struct.
2070 (grub_cmd_badram: hook): Make static instead of nested. Rename
2071 to ...
2072 (badram_iter): ... this.
2073 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2074 (cutmem_iter): ... this.
2075
22099030
VS
20762013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2077
2078 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2079 delimit path in strings using quotes.
2080 * util/getroot.c (grub_guess_root_devices): Likewise.
2081 (grub_make_system_path_relative_to_its_root): Likewise.
2082 * util/grub-probe.c (probe): Likewise.
2083 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2084 (xrealpath): Likewise.
2085
4a9950ec
VS
20862013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 Fix compilation with older compilers.
2089
2090 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2091 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2092 declarations.
2093 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2094 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2095 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2096 identifier with b.
2097 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2098 * include/grub/crypto.h: Add type defines.
2099 * util/import_gcrypth.sed: Remove duplicate type defines.
2100
adcc6020
VS
21012013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 New command list_trusted.
2104
2105 * grub-core/commands/verify.c (grub_cmd_list): New function.
2106
a4528937
CW
21072013-01-13 Colin Watson <cjwatson@ubuntu.com>
2108
2109 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2110 info message.
2111
ca3a7446
CW
21122013-01-13 Colin Watson <cjwatson@ubuntu.com>
2113
2114 Remove nested functions from PCI iterators.
2115
2116 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2117 passed to hook. Update all callers to pass appropriate hook data.
2118 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2119 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2120 Remove NESTED_FUNC_ATTR from here and from all users.
2121 (grub_pci_iterate): Update prototype.
2122 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2123 instead of nested. Rename to ...
2124 (grub_cs5536_find_iter): ... this.
2125 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2126 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2127 Likewise.
2128 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2129 Likewise.
2130 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2131 Likewise.
2132 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2133 Likewise.
2134 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2135 * grub-core/video/radeon_fuloong2e.c
2136 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2137 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2138 find_card): Likewise.
2139 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2140 Likewise.
2141
f8e98fee
VS
21422013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/commands/verify.c: Mark messages for translating.
2145
055b36b6
VS
21462013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2149 fatal.
2150
f7ff879b
VS
21512013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2154 fatal.
2155
21562013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
2157
2158 * autogen.sh: Do not try to delete nonexistant files.
2159 * util/import_gcrypth.sed: Add some missing header removals.
2160
01323d49
CW
21612013-01-12 Colin Watson <cjwatson@ubuntu.com>
2162
2163 Clean up dangling references to grub-setup.
2164 Fixes Ubuntu bug #1082045.
2165
2166 * docs/grub.texi (Images): Refer generally to grub-install rather
2167 than directly to grub-setup.
2168 (Installing GRUB using grub-install): Remove direct reference to
2169 grub-setup.
2170 (Device map) Likewise.
2171 (Invoking grub-install): Likewise.
2172 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2173 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2174 * util/grub-install.in (usage): Likewise.
2175
2176 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2177 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2178 grub-setup.
2179 * configure.ac: Remove grub_setup output variable.
2180
2181 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2182 to grub-bios-setup.
2183 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2184 grub-setup to grub-sparc64-setup.
2185
5e3b8dcb
VS
21862013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 Import gcrypt public-key cryptography and implement signature checking.
2189
535714bd
VS
21902013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * grub-core/fs/ntfs.c: Ue more appropriate types.
2193 * grub-core/fs/ntfscomp.c: Likewise.
2194 * include/grub/ntfs.h: Likewise.
2195
3e4f3566
VS
21962013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Support Apple FAT binaries on non-Apple platforms.
2199
2200 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2201 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2202 Likewise.
2203 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2204 Apple FAT binaries.
2205
4dedb13f
VS
22062013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2209 sector devices.
2210
f8861eaf
CW
22112013-01-07 Colin Watson <cjwatson@ubuntu.com>
2212
2213 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2214 explicitly zeroing elements.
2215 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2216 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2217 of elements in a structure already allocated using grub_zalloc.
2218 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2219
86065b0a
CW
22202013-01-07 Colin Watson <cjwatson@ubuntu.com>
2221
2222 * docs/grub.texi (grub_cpu): New subsection.
2223 (grub_platform): Likewise.
2224
c6f1e92f
VS
22252013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2228
f797ec85
VS
22292013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2232 divisions.
2233
033d0b4b
VS
22342013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2237 * grub-core/fs/ntfscomp.c: Likewise.
2238 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2239 (grub_ntfs_comp): Likewise.
2240
21d1b9a0
VS
22412013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2244 Rename to ...
2245 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2246 of groups_per_block. All users updated.
2247
10ca8645
VS
22482013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2251 grub_error properly.
2252 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2253 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2254
a4c3ed4c
VS
22552013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2258 always in /boot/zfs.
2259 Reported by: Yuta Satoh.
2260
0b716507
YS
22612013-01-03 Yuta Satoh <nigoro>
2262
2263 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2264 ${grub_probe}
2265
00c05e22
VS
22662013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * configure.ac: Extend -Wno-trampolines to host.
2269
dadddb76
VS
22702013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2273 entry->len = 0.
2274
54ce53ca
CW
22752013-01-03 Colin Watson <cjwatson@ubuntu.com>
2276
2277 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2278 (Invoking grub-script-check): Likewise.
2279
8912efca
CW
22802013-01-03 Colin Watson <cjwatson@ubuntu.com>
2281
2282 * docs/grub.texi (Invoking grub-mount): New section.
2283 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2284
c3fc8394
CW
22852013-01-02 Colin Watson <cjwatson@ubuntu.com>
2286
2287 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
2288 test failures, so that a failing unit test correctly causes 'make
2289 check' to fail.
2290
45d26abb
CW
22912013-01-02 Colin Watson <cjwatson@ubuntu.com>
2292
2293 Fix failing printf test.
2294
2295 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
2296 '$' in the correct order when collecting type information.
2297
971dd2c6
CW
22982013-01-02 Colin Watson <cjwatson@ubuntu.com>
2299
2300 * docs/grub.texi (configfile): Explain environment variable
2301 handling.
2302 (source): New section.
2303 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
2304
5c67ea6c
CW
23052012-12-31 Colin Watson <cjwatson@ubuntu.com>
2306
2307 Remove several trivially-unnecessary uses of nested functions.
2308
2309 * grub-core/commands/i386/pc/sendkey.c
2310 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
2311 instead of nested.
2312 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
2313 Rename to ...
2314 (legacy_file_getline): ... this.
2315 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
2316 Likewise.
2317 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
2318 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
2319 to ...
2320 (probe_dummy_iter): ... this.
2321 * grub-core/kern/i386/coreboot/mmap.c
2322 (grub_linuxbios_table_iterate: check_signature): Likewise.
2323 * grub-core/kern/parser.c (grub_parser_split_cmdline:
2324 check_varstate): Likewise. Mark inline.
2325 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
2326 an additional parameter.
2327 (find_long: fnd_long): Likewise. Pass two additional parameters.
2328 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
2329 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
2330 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
2331 Likewise. Rename to ...
2332 (grub_cmos_find_port_iter): ... this.
2333 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
2334 Rename to ...
2335 (find_rtc_iter): ... this.
2336
2337 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
2338 function directly into the function body, since it is only called
2339 once.
2340
33a68ac6
CW
23412012-12-30 Colin Watson <cjwatson@ubuntu.com>
2342
2343 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
2344 __attribute__ ((unused)).
2345 * grub-core/video/bochs.c (find_card): Likewise.
2346 * grub-core/video/cirrus.c (find_card): Likewise.
2347 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
2348 * grub-core/video/sis315pro.c (find_card): Likewise.
2349 * grub-core/video/sm712.c (find_card): Likewise.
2350
608b647a
CW
23512012-12-28 Colin Watson <cjwatson@ubuntu.com>
2352
2353 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
2354 Fixes Savannah bug #37821.
2355
fd49ceb3
CW
23562012-12-28 Colin Watson <cjwatson@ubuntu.com>
2357
2358 Apply program name transformations at build-time rather than at
2359 run-time. Fixes Debian bug #696465.
2360
2361 * acinclude.m4 (grub_TRANSFORM): New macro.
2362 * configure.ac: Create output variables with transformed names for
2363 most programs.
2364 * util/bash-completion.d/grub-completion.bash.in: Use
2365 pre-transformed variables for program names.
2366 * util/grub-install.in: Likewise.
2367 * util/grub-kbdcomp.in: Likewise.
2368 * util/grub-mkconfig.in: Likewise.
2369 * util/grub-mkconfig_lib.in: Likewise.
2370 * util/grub-mknetdir.in: Likewise.
2371 * util/grub-mkrescue.in: Likewise.
2372 * util/grub-mkstandalone.in: Likewise.
2373 * util/grub-reboot.in: Likewise.
2374 * util/grub-set-default.in: Likewise.
2375 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2376 * tests/util/grub-shell-tester.in: Remove unused assignment.
2377 * tests/util/grub-shell.in: Likewise.
2378 * util/grub.d/00_header.in: Likewise.
2379
7024b3c0
CW
23802012-12-28 Colin Watson <cjwatson@ubuntu.com>
2381
2382 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
2383
2384 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
2385 HAVE_RAW_DECL_GETS.
2386 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
2387
e3501b13
VS
23882012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
2391 Reported by: Eriks Latosheks <foresterlv>.
2392
b40c88a9
VS
23932012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 * docs/grub.texi (Network): Update instructions on generating netboot
2396 image.
2397
ce96d01c
VS
23982012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
2401 around device name if necessarry.
2402
0f596201
PFS
24032012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2404
2405 * util/grub-install.in: Follow the symbolic link parameter added
2406 to the file command.
2407
600d5bdb
AB
24082012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
2409
2410 * util/grub-install.in: Remove stale TODO.
2411
64ebd2f4
PFS
24122012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2413
2414 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
2415 dynamic allocation for the bootpath buffer.
2416
74b2fe3e
DTB
24172012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
2418
2419 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
2420 window too small.
2421
969b804f
VS
24222012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
2425 argument rather than font name. All users updated.
2426 (grub_gfxterm_set_window): Likewise.
2427
b9f5ebd6
VT
24282012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2429
2430 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
2431 from working.
2432
258f43b7
VS
24332012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * util/getroot.c (convert_system_partition_to_system_disk): Support
2436 nbd disks.
2437
cc1ce5f9
VS
24382012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
2441 infinite loop on corrupted FS.
2442
e77a16ca
VS
24432012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 Fix big-endian mtime.
2446
2447 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
2448 together sec and usec.
2449 (grub_ufs_dir): Use correct byteswapping for UFS time.
2450
d9c48c7b
VS
24512012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 Support big-endian UFS1.
2454
2455 * Makefile.util.def (libgrubmods): Add ufs_be.c
2456 * grub-core/Makefile.core.def (ufs1_be): New module.
2457 * grub-core/fs/ufs_be.c: New file.
2458 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
2459 the file.
2460
2f9f40ba
LL
24612012-11-28 Leif Lindholm <leif.lindholm@arm.com>
2462
2463 * include/grub/types.h: Fix functionality unaffecting typo in
2464 GRUB_TARGET_WORDSIZE conditional macro.
2465
48ff0889
PFS
24662012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2467
2468 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
2469
03711240
GS
24702012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2471
2472 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
2473 that /netbsd appears first (when it exists).
2474
a31b11bd
CJ
24752012-10-12 Christoph Junghans <ottxor@gentoo.org>
2476
2477 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
2478 Fixes Savannah bug #37558.
2479
e8a5d5d4
CW
24802012-10-12 Colin Watson <cjwatson@ubuntu.com>
2481
2482 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
2483 description of extract_entries_configfile.
2484
24852012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
2486
2487 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
2488 preferred_address.
2489 (grub_cmd_linux): Likewise.
2490 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
2491 preferred_lifetime. Update all users.
2492
288c757d
CW
24932012-09-26 Colin Watson <cjwatson@ubuntu.com>
2494
2495 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
2496 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
2497
0d35da3f
CW
24982012-09-26 Colin Watson <cjwatson@ubuntu.com>
2499
2500 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
2501 errors from grub-probe to /dev/null, not stdout.
2502
b78c3127
VS
25032012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
2506 sector 1.
2507
473959f0
CW
25082012-09-24 Colin Watson <cjwatson@ubuntu.com>
2509
2510 * util/grub-install.in: Make the error message if $source_dir
2511 doesn't exist more useful.
2512
794c8c33
CW
25132012-09-22 Colin Watson <cjwatson@ubuntu.com>
2514
2515 Fix grub-emu build on FreeBSD.
2516
2517 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
2518 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
2519 headers on Linux.
2520 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
2521 implementation is currently Linux-specific.
2522 * util/getroot.c (exec_pipe): Define only on Linux or when either
2523 libzfs or libnvpair is unavailable.
2524 (find_root_devices_from_poolname): Remove unused path variable.
2525
86d08fdb
CW
25262012-09-19 Colin Watson <cjwatson@ubuntu.com>
2527
2528 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
2529 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
2530 should fit before end == 63.
2531
735abf54
CW
25322012-09-19 Colin Watson <cjwatson@ubuntu.com>
2533
2534 * util/grub-setup.c (write_rootdev): Remove unused core_img
2535 parameter. Update all callers.
2536 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
2537 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
2538 GRUB_SETUP_BIOS.
2539
140acd3c
VS
25402012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * util/grub-mkconfig_lib.in (grub_tab): New variable.
2543 (grub_add_tab): New function.
2544 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
2545 * util/grub.d/10_illumos.in: Likewise.
2546 * util/grub.d/10_kfreebsd.in: Likewise.
2547 * util/grub.d/10_linux.in: Likewise.
2548 * util/grub.d/10_netbsd.in: Likewise.
2549 * util/grub.d/10_windows.in: Likewise.
2550 * util/grub.d/10_xnu.in: Likewise.
2551 * util/grub.d/20_linux_xen.in: Likewise.
2552 * util/grub.d/30_os-prober.in: Likewise.
2553
7ddffdad
VS
25542012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2557 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
2558 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
2559 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
2560 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
2561 ieee1275-nocursor.
2562 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2563 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
2564
4e092454
VS
25652012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
2568 le-conversion.
2569 Reported by: BURETTE, Bernard.
2570
735abf54 25712012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
2572
2573 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
2574 from comment.
2575
dfd39dbd
CW
25762012-09-14 Colin Watson <cjwatson@ubuntu.com>
2577
2578 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
2579 IEEE1275 machines. Fixes powerpc-emu compilation.
2580 * include/grub/terminfo.h: Likewise.
2581
3bfa763c
VS
25822012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
2585 a const pointer.
2586 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
2587 const pointer.
2588 (efiemu_set_variable): Make vendor_guid a const pointer.
2589
250e475b
VS
25902012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Don't require grub-mkconfig_lib to generate manpages for programs.
2593
2594 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
2595 dependencies, don't add grub-mkconfig_lib.
2596 (program): Pass empty adddeps.
2597 (script): Pass grub-mkconfig_lib as adddeps.
2598
592fd0e4
VS
25992012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
2602 * util/getroot.c (grub_find_device): Likewise.
2603 (get_mdadm_uuid): Likewise.
2604 (grub_util_is_imsm): Likewise.
2605 (grub_util_pull_device): Likewise.
2606 * util/grub-probe.c (probe): Likewise.
2607
801a3027
BG
26082012-09-10 Benoit Gschwind <gschwind>
2609
2610 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
2611 (devs): Add devpath_8.
2612
c5052c81
PJ
26132012-09-08 Peter Jones <pjones@redhat.com>
2614
2615 * grub-core/Makefile.core.def (efifwsetup): New module.
2616 * grub-core/commands/efi/efifwsetup.c: New file.
2617 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
2618 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
2619 New define.
2620 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
2621
8e832f71
JS
26222012-09-05 Jiri Slaby <jslaby@suse.cz>
2623
2624 * configure.ac: Add SuSe path.
2625
f0f55752
CW
26262012-09-05 Colin Watson <cjwatson@ubuntu.com>
2627
2628 * NEWS: Fix typo.
2629
ecadc4c2
CW
26302012-09-05 Colin Watson <cjwatson@ubuntu.com>
2631
2632 * util/import_gcry.py: Sort cipher_files, to make build system
2633 generation more deterministic.
2634
64498f25
VS
26352012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
2638 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
2639 (grub_set_datetime): Likewise.
2640
9cc836a2
VS
26412012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
2644 warnings.
2645
bcfcea01
VS
26462012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
2649
a4099485
VS
26502012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
2653
265c162a
CW
26542012-09-04 Colin Watson <cjwatson@ubuntu.com>
2655
2656 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
2657 required for checkouts from bzr, but it may be useful for users or
2658 distributors wishing to update translations against a tarball
2659 distribution, and it can be helpful for the tarball to be a superset
2660 of what's in bzr.
2661
3d171e95
CW
26622012-09-04 Colin Watson <cjwatson@ubuntu.com>
2663
2664 * Makefile.am (EXTRA_DIST): Add
2665 grub-core/tests/boot/linux.init-mips.S,
2666 grub-core/tests/boot/linux.init-ppc.S, and
2667 grub-core/tests/boot/linux-ppc.cfg.
2668
f2c2503e
CW
26692012-09-04 Colin Watson <cjwatson@ubuntu.com>
2670
2671 * grub-core/mmap/mips/loongson: Remove empty directory.
2672
26732012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
2674
2675 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
2676 gone.
2677
ab2163d5
CW
26782012-09-04 Colin Watson <cjwatson@ubuntu.com>
2679
2680 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
2681 grub-sparc64-setup.
2682
ce938140
GS
26832012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2684
2685 * configure.ac: Strengthen the test for working -nostdinc -isystem.
2686
529f58a5
GS
26872012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2688
2689 * po/POTFILES.in: Regenerated.
2690
16cf79e9
GS
26912012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2692
2693 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
2694 (NetBSD): New subsection.
2695
39b27f1e 26962012-07-22 Ales Nesrsta <starous@volny.cz>
2697
2698 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
2699 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
2700
a885261b
VS
27012012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
2704 * util/grub.d/10_hurd.in: Add missing quoting.
2705 * util/grub.d/10_illumos.in: Likewise.
2706 * util/grub.d/10_kfreebsd.in: Likewise.
2707 * util/grub.d/10_linux.in: Likewise.
2708 * util/grub.d/20_linux_xen.in: Likewise.
2709
7bd29c01
VS
27102012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 New command `lsefi'.
2713
2714 * grub-core/Makefile.core.def (lsefi): New module.
2715 * grub-core/commands/efi/lsefi.c: New file.
2716 * include/grub/efi/api.h: Add more GUIDs.
2717
ac625d8f
VS
27182012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
2721 (grub_bsd_elf32_hook): Likewise.
2722 (grub_bsd_elf64_size_hook): Likewise.
2723 (grub_bsd_elf64_hook): Likewise.
2724 (grub_bsd_load_elf): Likewise.
2725
e73bb801
VS
27262012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
2729 if hash function is unavailable.
2730 (dec_stream_header): Likewise.
2731
e81db8b5
VS
27322012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
2735 filter state.
2736
d187a1c3
VS
27372012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 Fix coreboot compilation.
2740
2741 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
2742 (grub_vga_text_init_real): ... this.
2743 (grub_vga_text_fini): Rename to ...
2744 (grub_vga_text_fini_real): ... this.
2745
91a05f64
VS
27462012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
2749
6af96df7
VS
27502012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/lib/legacy_parse.c: Support clear and testload.
2753
4d569e12
VS
27542012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
2757
073b57bb
VS
27582012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * grub-core/fs/ext2.c: Experimental support for 64-bit.
2761
a706f4cc
VS
27622012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 * grub-core/net/tftp.c (ack): Fix endianness problem.
2765 (tftp_receive): Likewise.
2766 Reported by: Michael Davidsaver.
2767
e7850aa9
VS
27682012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * gentpl.py: Make mans depend on grub-mkconfig_lib.
2771
27722012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
2775 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
2776 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
2777
35692881
VS
27782012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
2781 efi_mmap_size.
2782 Reported by: Stuart Hayes.
2783
c35fc5bd
VS
27842012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
2787
2788 * grub-core/Makefile.core.def (mda_text): New module.
2789 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
2790 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
2791 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
2792 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
2793 here.
2794 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
2795 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
2796 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
2797 here.
2798 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
2799 to ..
2800 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
2801 ... here
2802 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
2803 here.
2804 * grub-core/term/i386/vga_common.c: Removed.
2805 * include/grub/i386/vga_common.h: Likewise.
2806 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
2807 (grub_vga_cr_bw_read): Likewise.
2808 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2809 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2810 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2811 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2812 grub_vga_cr_read/grub_vga_cr_write.
2813 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2814
5f91f701
VS
28152012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * configure.ac: Bump version to 2.00.
2818 * grub-core/normal/main.c (features): Add feature_200_final.
2819
0c4f85f6
VS
28202012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
28212012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2822
2823 * NEWS: Fix unclarity and language mistakes.
2824
f923ad22
VS
28252012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2828 additional size to 3 pages.
2829 Reported by: Stuart Hayes.
2830
d22029ba
VS
28312012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * NEWS: Add 2.00 entry.
2834
58eee08f
VS
28352012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2838 put explicit "/" for empty path.
2839 (wildcard_expand): Improve dprintf.
2840
c59bdff7
VS
28412012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2844 it's equal to currnode. This can happen with "" symlink.
2845
5e6a440a
YB
28462012-06-27 Yves Blusseau <blusseau@zetam.org>
2847
2848 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
2849 echo shell command by printf command.
2850
73a68bcb
VS
28512012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2852
2853 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
2854 the value returned by firmware is the maximal position, not diumension.
2855 (grub_terminfo_output_state): Use a more sane fallback.
2856
392a603b
VS
28572012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
2860
42d0867f
VS
28612012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2864 frequency to 150 MHz.
2865
489509f4
VS
28662012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 Apple fixes.
2869
2870 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2871 __APPLE_
2872 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2873 definition.
2874 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2875
9f3fc883
VS
28762012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 Handle slash in HFS label.
2879
2880 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2881 (grub_hfs_dir): Tanslate slash.
2882 (grub_hfs_label): Don't translate slash.
2883
54853fd7
VS
28842012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2885
2886 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2887 network protocol listing since it introduces problematic dependency on
2888 net module.
2889
4dc02ddf
VS
28902012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2891
2892 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2893
c50c867d
VS
28942012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 Init video early on yeeloong to avoid being rebooted by watchdog.
2897
2898 * grub-core/Makefile.am (gensm712): New target.
2899 (sm712_start.S): Likewise.
2900 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2901 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2902 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2903 description.
2904 * include/grub/vga.h: Move registry definitions to...
2905 * include/grub/vgaregs.h: ... here.
2906
5f92c8a1
VS
29072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2910 signedness.
2911
e9e6f111
VS
29122012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2915 platforms with firmware disk drivers in the core.
2916
754ad9eb
VS
29172012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2920 informative verbose message.
2921 (read_lv): Handle 64-bit segment size.
2922
315654c2
VS
29232012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2926
fb022c79
VS
29272012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2930 character but still remove trainling spaces.
2931 (grub_fat_label): Ignore archive flag.
2932
8645f72c
VS
29332012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2936 cast between linux_kernel_header and linux_kernel_params.
2937
36498496
VS
29382012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2941 type for size.
2942 (grub_raid6_recover_func_t): Likewise.
2943 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2944 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2945
0b5ea6b8
VS
29462012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2949
650cfcfe
GS
29502012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2951
2952 Fix overflow.
2953
2954 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2955 [__NetBSD__]: Add explicit cast before bitshift.
2956
8a4d6a44
VS
29572012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2958
2959 * configure.ac: Bump to 2.00~rc1.
2960
2fb97ed3
VS
29612012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2964 half of $a0.
2965
1fa097dc
VS
29662012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
29672012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2968
2969 * docs/grub.texi: Fix search syntax.
2970 (Multi-boot manual config): Put msdos rather than GPT example.
2971 Grammar corrections.
2972
c890ba78
VS
29732012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2976
0f92dca7
VS
29772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2980
3988c4a0
VS
29812012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
2984 message on double free. Put the value of magic in case of mismatch.
2985
9e86d4c5
VS
29862012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 Speed-up video on yeeloong.
2989
2990 * grub-core/video/sm712.c (framebuffer): Remove render_target and
2991 add cached_ptr.
2992 (grub_video_sm712_video_fini): Unmap cached_ptr.
2993 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
2994 (grub_video_sm712_set_active_render_target): Removed.
2995 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2996 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
2997 sync caches.
2998
ed24c312
VS
29992012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 Avoid flushing the same line multiple times on loongson.
3002
3003 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3004 Step in 32 bytes and not 1 byte.
3005 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3006 Likewise.
3007
d1718e7d
VS
30082012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3011 subvolumes.
3012
982f1909
VS
30132012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 Implement flow control for http.
3016
3017 * grub-core/net/http.c (parse_line): Handle response 206.
3018 (http_receive): Stall if too many packets are in the queue.
3019 (http_establish): Fix range header.
3020 (http_seek): Fix double free.
3021 (http_close): Likewise.
3022 (http_packets_pulled): New function.
3023 (grub_http_protocol): Set http_seek
3024 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3025 (ack_real): Set window depending on i_stall.
3026 (grub_net_send_tcp_packet): Likewise.
3027 (grub_net_tcp_stall): New function.
3028 (grub_net_tcp_unstall): Likewise.
3029 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3030 (grub_net_tcp_unstall): Likewise.
3031
bd407d6e
VS
30322012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3035
c7564b8e
VS
30362012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3039
a3706162
VS
30402012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3041
3042 * tests/util/grub-shell.in: Fix a typo.
3043
b27069e0
VS
30442012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 Implement flow control for tftp.
3047
3048 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3049 packets but stop only if stop condition is satisfied.
3050 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3051 `stall' instead of `eof' as stop condition.
3052 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3053 (http_err): Likewise.
3054 * grub-core/net/tftp.c (ack): Replace the first argument with data
3055 instead of socket.
3056 (tftp_receive): Stall if too many packets are in wait queue.
3057 (tftp_packets_pulled): New function.
3058 (grub_tftp_protocol): Set packets_pulled.
3059 * include/grub/net.h (grub_net_packets): New field count.
3060 (grub_net_put_packet): Increment count.
3061 (grub_net_remove_packet): Likewise.
3062 (grub_net_app_protocol): New field `packets_pulled'.
3063 (grub_net): New field `stall'.
3064
6b9cfac6
VS
30652012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3068 sync part to handle them.
3069
f35abd81
VS
30702012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3073 * grub-core/net/drivers/ieee1275/ofnet.c
3074 (grub_ieee1275_net_config_real): Likewise.
3075
0e7ec820
VS
30762012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3079 the direct route for server/gateway.
3080
9d611a31
VS
30812012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3084 IP address to server name since we may not hame the DNS.
3085
418f45ab
VS
30862012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3089 freeing random buffer on failure.
3090 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3091
44a0efc1
VS
30922012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3095
531e2241
VS
30962012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3099 reserved bytes.
3100 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3101 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3102 Handle malloc error correctly.
3103
cde393c9
VS
31042012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3107 blocks.
3108
538478d0
VS
31092012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3112 increment.
3113
9b55efe0
VS
31142012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3117 none is explicitly specified.
3118
9eb832c3
VS
31192012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3122 while reallocating.
3123
d6b7c7c9
VS
31242012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 Respect netmask from bootp/dhcp.
3127
3128 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3129 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3130 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3131 into ...
3132 (grub_net_add_ipv4_local): ... this.
3133 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3134 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3135 (grub_net_add_ipv4_local): New proto.
3136
67caf9eb
VS
31372012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3140 determining EFI memory map size.
3141
43657558
VS
31422012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3145
eb6d0dd3
VS
31462012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3149 when looking for partition separator.
3150
31230544
VS
31512012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3154 Escape commas.
3155
918a2517
VS
31562012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 Restructure FAT driver to avoid hook in label reading as it hits a
3159 GCC bug.
3160
3161 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3162 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3163 (grub_fat_iterate_dir): Split into ...
3164 (grub_fat_iterate_init): ... this, ...
3165 (grub_fat_iterate_fini): ... this, ...
3166 (grub_fat_iterate_dir_next): ... and this. All users updated.
3167
9f1d654e
VS
31682012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3171 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3172 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3173 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3174 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3175 New fields last_key and last_key_time.
3176 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3177 extended key-esc into extended key-extended key.
3178
52f0f643
VS
31792012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 Avoid unnecessary memcpy of whole video buffer.
3182
3183 * grub-core/video/fb/video_fb.c (dirty): New struct.
3184 (framebuffer): Add members current_dirty and previous_dirty.
3185 (dirty): New function.
3186 (grub_video_fb_fill_rect): Update dirty.
3187 (common_blitter): Likewise.
3188 (grub_video_fb_scroll): Likewise.
3189 (doublebuf_blit_update_screen): Copy only dirty part.
3190 (doublebuf_pageflipping_update_screen): Likewise.
3191 (grub_video_fb_doublebuf_blit_init): Init dirty.
3192 (doublebuf_pageflipping_init): Likewise.
3193 (grub_video_fb_setup): Likewise.
3194
e169a180
VS
31952012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3198 poll rate.
3199
48556879
VS
32002012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 Fix wildcard regexp dot and other special characters handling.
3203 Reported by: Robert Mabee.
3204
3205 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3206 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3207 (split_path): Trigger expansion on '?'.
3208 (unescape): New function.
3209 (wildcard_expand): Unescape parts copied without globbing.
3210 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3211 (grub_script_arglist_to_argv): Don't unescape expansions.
3212
0494408e
VS
32132012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * include/grub/net.h (grub_net_card): New member txbufsize.
3216 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3217 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3218 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3219 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3220 txbufsize.
3221 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3222 compatible property to check for macs. Set
3223 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3224 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3225 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3226 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3227 (send_card_buffer): Use txbuf.
3228 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3229 nested function out of the parent while on it.
3230
cc35fe8f
VS
32312012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3232
3233 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3234 presence check.
3235 (grub_ieee1275_net_config_real): Fix config pointer.
3236
970a0a09
VS
32372012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3240 filename parsing to non-block devices.
3241
3e19bf87
VS
32422012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3245
c62d1a0c
VS
32462012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3249 All users updated.
3250
ef76bec3
VS
32512012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3254 UUID search command even if hints probing failed.
3255
32562012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
3257
3258 * po/POTFILES.in: Regenerated.
3259
70aaf305
VS
32602012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 Speed-up video on fuloong.
3263
3264 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3265 New function.
3266 (grub_pci_device_unmap_range): Handle non-cached address.
3267 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3268 add direct_ptr.
3269 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3270 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3271 (grub_video_sis315pro_set_active_render_target): Removed.
3272 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3273 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3274 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3275 sync caches.
3276 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3277 New proto.
3278
10400f0b
VS
32792012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 * docs/grub.texi (Multi-boot manual config): New section.
3282
ba67e2c6
VS
32832012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 Avoid slow read-back from VRAM.
3286
3287 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3288 Move from here ...
3289 * grub-core/video/fb/video_fb.c
3290 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
3291 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
3292 (front_target): Remove front_target. Add pages.
3293 (grub_video_fb_init): Skip setting front_pages.
3294 (grub_video_fb_fini): Likewise.
3295 (doublebuf_blit_update_screen): Use pages.
3296 (grub_video_fb_doublebuf_blit_init): Likewise.
3297 (doublebuf_pageflipping_init): Allocate offscreen buffer.
3298 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
3299 (grub_video_fb_setup): Prefer doublebuffing.
3300
377c98cb
VS
33012012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
3304 gzio.
3305
eac49cff
VS
33062012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 Add loongson tests.
3309
3310 * tests/util/grub-shell.in: Handle loongson.
3311 * tests/partmap_test.in: Add loongson to the list of platform using ATA
3312 drivers.
3313 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
3314 Reboot instead of shutdown if REBOOT is defined.
3315
0321415e
VS
33162012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
3319 sized ports since unlike on real hardware qemu supports only 32-bit
3320 regs.
3321
3f2bdd8f
VS
33222012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * Makefile.util.def (grub-mkrescue): Enable on loongson.
3325 * util/grub-mkrescue.in: Handle loongson.
3326
29a049c9
VS
33272012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
3330 Set is_part appropriately.
3331 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
3332 names. Canonicalize partition without full disk.
3333
4abde346
VS
33342012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 Revert usb-quiesce since it's wrong.
3337
3338 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
3339 (grub_ofdisk_init): Don't do quiesce.
3340
61f1d93b
VS
33412012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
3344 PowerMac workaround to Xserves as well.
3345 Information supplied by: Benjamin Herrenschmidt.
3346
a09eb541
VS
33472012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 Don't assume that beginning address is also the entry point on ppc.
3350
3351 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
3352 (grub_linux_boot): Use linux_entry.
3353 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
3354 (grub_linux_load64): Likewise.
3355
505b3c9b
VS
33562012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
3359
cbe0b4ef
VS
33602012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
3363 needlessly lose the console.
3364
3006e981
VS
33652012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
3368 space.
3369
4e5a96b0
VS
33702012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3371
7da036bb
VS
3372 Remove non-functional EFI grub_get_rtc. Put a better fatal message
3373 than current grub_get_rtc() not implemented when booted with
3374 coreboot without TSC.
3375
3376 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
3377 Add machine/time.h to kernel headers on loongson.
3378 * grub-core/Makefile.core.def (kernel): Remove
3379 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
3380 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
3381 (grub_get_rtc): Likewise.
3382 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
3383 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
3384 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
3385 * grub-core/kern/i386/tsc.c (grub_tsc_init)
3386 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
3387 rather than installing known non-working time source.
3388 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
3389 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
3390 * include/grub/time.h: Don't include machine/time.h.
3391 * include/grub/efi/time.h: Removed.
3392 * include/grub/i386/efi/time.h: Likewise.
3393 * include/grub/i386/ieee1275/time.h: Likewise.
3394 * include/grub/powerpc/ieee1275/time.h: Likewise.
3395 * include/grub/sparc64/ieee1275/time.h: Likewise.
3396 * include/grub/x86_64/efi/time.h: Likewise.
3397
33982012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
3401
3402 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
3403 value.
3404 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
3405 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
3406 with dotless variants when any combining above is present.
3407
5561c22d
VS
34082012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
3411 text and not binary.
3412
96f7e60e
VS
34132012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 Stop polling as soon as we have the packet we were waiting for.
3416
3417 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
3418 All users updated.
3419 * grub-core/net/arp.c (have_pending): New var.
3420 (pending_req): Likewise.
3421 (grub_net_arp_send_request): Fill pending_req and use have_pending as
3422 stop indicator.
3423 (grub_net_arp_receive): Set have_pending.
3424 * grub-core/net/dns.c (recv_data): New field stop.
3425 (recv_hook): Set stop.
3426 (grub_net_dns_lookup): Init stop and use as stop condition.
3427 * grub-core/net/http.c (http_establish): Use headers_recv as stop
3428 condition.
3429 * grub-core/net/net.c (grub_net_poll_cards): New argument
3430 stop_condition. Stop when it goes true.
3431 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
3432 indicator.
3433 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
3434
3e747239
VS
34352012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 Keep TX and RX buffers on EFI rather than always allocate new ones.
3438
3439 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
3440 card. All users updated.
3441 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
3442 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
3443 (get_card_packet): Likewise.
3444 (grub_efinet_findcards): Init new fields.
3445
f695e99a
VS
34462012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
3449 compilation error on sparc64.
3450
9e5e66d1
VS
34512012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 Use ITC on IA64 rather than broken routine based on daytime.
3454
3455 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
3456 ia64.
3457 (grub_get_rtc) [__ia64__]: Likewise.
3458 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
3459 (get_itc): New function.
3460 (grub_rtc_get_time_ms): Likewise.
3461 (grub_machine_init): Calibrate ITC.
3462 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
3463 Keep only on non-ia64. Don't export since it's broken and used only
3464 if TSC is unavailable.
3465
a1767404
VS
34662012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
3469 even if it's used.
3470 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
3471 Skip if parent is unused.
3472
34b2bced
VS
34732012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
3476
5e619f40
VS
34772012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Fix wildcard escaping.
3480
3481 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
3482 * grub-core/script/execute.c (wildcard_escape): .. to here.
3483 Don't escape dot.
3484 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
3485 * grub-core/script/execute.c (wildcard_unescape): .. to here.
3486 Don't escape dot.
3487 * grub-core/script/execute.c (gettext_append): Always escape.
3488 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
3489 * grub-core/script/yylex.l: Don't cut away the escaping.
3490 * tests/grub_script_echo1.in: Add tests with wildcard.
3491
c8ca5855
VS
34922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
3495 (ftdi_hw_configure): Likewise.
3496 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
3497 define.
3498 (real_config): Handle 1.5 stop bits.
3499 (pl2303_hw_configure): Likewise.
3500
7183452c
VS
35012012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * Makefile.am: Add ppc linux bootcheck.
3504 * grub-core/tests/boot/linux-ppc.cfg: New file.
3505 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
3506
f57c84cd
VS
35072012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * tests/grub_script_expansion.in: Skip network protocols.
3510
ecfc6207
VS
35112012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
3514
8d03d284
VS
35152012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
3518 --rom-directory.
3519 Add -graft-points.
3520
61c42af0
VS
35212012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 ESCC serial driver for conducting sautomated tests in qemu.
3524 Not tested on real hardware.
3525
3526 * include/grub/serial.h (grub_serial_port): New field escc_desc.
3527 * grub-core/term/ieee1275/escc.c: New file.
3528 * grub-core/Makefile.core.def (escc): New module.
3529
08fd1291
VS
35302012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
3533 invalid on error.
3534 (serial_hw_fetch): Don't read invalid handle.
3535 (serial_hw_put): Don't write into invalid handle.
3536
08dafeea
VS
35372012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 Add a 1.5 stop bits value.
3540
3541 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
3542 * include/grub/serial.h (grub_serial_stop_bits_t): Add
3543 GRUB_SERIAL_STOP_BITS_1_5.
3544
9068fdcf
VS
35452012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
3548 value rather than let it uninited.
3549
f4d5820f
VS
35502012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/commands/wildcard.c (+check_file): New function.
3553 (wildcard_expand): Don't expand to non-existing files, expand with
3554 suffix and not attempt to expand if not needed.
3555
3d2de9a7
VS
35562012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
3559 out of partitions containing other partitions.
3560
c5c81ff9
VS
35612012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
3564 on some qemu versions with GRUB.
3565
3566 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
3567 define.
3568 (grub_openbsd_bootarg_pcibios): New struct.
3569 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
3570 Add PCIINFO.
3571
08a14e0b
VS
35722012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * tests/util/grub-shell.in: Trim firmware output on EFI.
3575
cede3ca3
VS
35762012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
3579 and coreboot since it's already in kernel.
3580
558d3a60
VS
35812012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
3584 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3585 to here. New return value start. All users updated.
3586 Recursively scan linear mappings.
3587 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
3588 proto.
3589 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3590 Use grub_util_get_dm_node_linear_info.
3591 * util/getroot.c (convert_system_partition_to_system_disk): Use
3592 grub_util_info rather than grub_dprintf.
3593 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
3594
60fde14d
VS
35952012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
3598
3599 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
3600 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
3601
24bd8838
VS
36022012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * include/grub/types.h (grub_set_unaligned64): New function.
3605 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
3606 (setup): Likewise.
3607
7bc06a49
VS
36082012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
3611 (grub_ofdisk_fini): Quiesce USB devices.
3612
49cea015
VS
36132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
3616 caches.
3617
8dcbe03b
VS
36182012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
3621
5b258735
VS
36222012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 * grub-core/disk/pata.c (grub_pata_pio_read)
3625 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
3626 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
3627
37ba07eb
VS
36282012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 Extend automated tests to qemu-mips.
3631
3632 * Makefile.am: reorganise tests and enable qemu-mips.
3633 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
3634 * grub-core/tests/boot/linux.init-mips.S: New file.
3635 * tests/partmap_test.in: Handle ata0 disks.
3636 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
3637 non-pc i386.
3638
070038f8
VS
36392012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3640
3641 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
3642 ia64.
3643 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
3644 quotes while on it.
3645
004be2cd
VS
36462012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
3649 (grub_halt): Likewise.
3650 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
3651
b1622487
VS
36522012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * grub-core/term/serial.c (grub_serial_register)
3655 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
3656 the behaviour in line with x86 platforms.
3657
b7b4ab33
VS
36582012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
3661 (grub_ata_strncpy): Likewise.
3662 (grub_ata_identify): Add missing byteswaps.
3663
5e3535ae
VS
36642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
3667 byte-swap.
3668 (screen_read_char): Likewise.
3669 (grub_vga_text_cls): Likewise.
3670
c21b17e6
VS
36712012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
3674 filenames.
3675 (make_file_path): Likewise.
3676
bf293dec
VS
36772012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
3680 machines.
3681 Tested by: Paulo Flabiano Smorigo.
3682 Crucial information about API supplied by: Coleen <Last name unknown>.
3683 Reviewed by: Coleen <Last name unknown>.
3684
81f6ef0e
VS
36852012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * util/grub-mkimage.c: Disable -Wcast-align.
3688
7284143a
VS
36892012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
3692 as they are fatal.
3693
b99f3e00
VS
36942012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
3697
944f752d
VS
36982012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * util/grub-probe.c (escape_of_path): Fix double free.
3701
6cce6f38
VS
37022012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/commands/videoinfo.c (hook): Show pitch.
3705
1e1eb50e
VS
37062012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * util/grub.d/20_linux_xen.in: Skip xen-syms.
3709
1c715b5a
VS
37102012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
3713 (probe): Add ieee1275 to OFW devices.
3714
007ae52d
VS
37152012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
3718
4557a36d
VS
37192012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 Handle IBM OFW path.
3722
3723 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
3724 available.
3725 (of_path_of_scsi): Handle vdevice.
3726
efbeefe9
VS
37272012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
3730 Allocate in multiples of 16 to avoid adding a few bytes free region the
3731 windows bugs upon.
3732
15a940bb
VS
37332012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
3736 Allocate in multiples of 16 to avoid adding a few bytes free region the
3737 windows bugs upon.
3738 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
3739
6e5efd60
VS
37402012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
3743 resolutions.
3744 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
3745 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
3746
0d3d137e
IS
37472012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
3748
3749 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
3750
45dbe300
VS
37512012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
3754 resulted in \\ at the end of the line.
3755
6d8db947
VS
37562012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
3759 (grub_parser_cmdline_state): Likewise.
3760 (grub_parser_split_cmdline): Likewise.
3761
de89d338
VS
37622012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
3765 /dev/root and /dev/dm-*.
3766
00d41dee
VS
37672012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
3770 fix partially stale display.
3771
f95d1f11
VS
37722012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/normal/menu_entry.c (backward_char): Use right line for
3775 substraction.
3776
6297e197
VS
37772012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
3780 Fix MBR remapping workaround.
3781 (grub_util_biosdisk_read) [__linux__]: Likewise.
3782
8a7ecad3
VS
37832012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * util/grub-install.in: Check for ieee1275 and not ieee1276.
3786
2b34f944
VS
37872012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * configure.ac: Bump to beta6.
3790
684aef11
CW
37912012-05-31 Christer Weinigel <christer@weinigel.se>
3792
3793 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
3794
05b0bb91
VS
37952012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
3798 (grub_cmd_linux): Likewise.
3799
bda36bfa
CW
38002012-05-31 Christer Weinigel <christer@weinigel.se>
3801
3802 Fix EHCI low-speed.
3803
3804 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
3805 (GRUB_EHCI_MULT_TWO): Likewise.
3806 (GRUB_EHCI_MULT_THREE): Likewise.
3807 (GRUB_EHCI_CMASK_MASK): New enum value.
3808 (GRUB_EHCI_SMASK_MASK): Likewise.
3809 (GRUB_EHCI_CMASK_OFF): Likewise.
3810 (GRUB_EHCI_SMASK_OFF): Likewise.
3811 (grub_ehci_pci_iter): Enable periodic schedule.
3812 (grub_ehci_parse_notrun): Likewise.
3813 (grub_ehci_restore_hw): Likewise.
3814 (grub_ehci_setup_qh): Set flags for low speed transfers.
3815 (grub_ehci_find_qh): Use periodic list for low speed.
3816 (grub_ehci_setup_transfer): Check periodic queue as well.
3817 (grub_ehci_check_transfer): Likewise.
3818 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3819
e12bcb1c
PFS
38202012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3821
3822 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3823 parameter is used.
3824
bcc75fb3
PJ
38252012-05-31 Peter Jones <pjones@redhat.com>
3826
3827 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3828 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3829 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3830
f19cb95e
VS
38312012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3834 uninited variable. Allocate at least setup_sects.
3835
a4e5ca80
VS
38362012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 Fix handling of EFI with big memory maps.
3839
3840 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3841 (real_mode_mem): Likewise.
3842 (real_mode_target): Likewise.
3843 (real_mode_pages): Likewise.
3844 (prot_mode_pages): Likewise.
3845 (linux_params): New var.
3846 (linux_cmdline): Likewise.
3847 (free_pages): Don't set real mode variables.
3848 (allocate_pages): Don't allocate real mode memory.
3849 (grub_e820_add_region): Remove the limit.
3850 (grub_linux_boot): Allocate and copy real mode memory.
3851 (grub_linux_unload): Free linux_cmdline.
3852 (grub_cmd_linux): Use temporary storage for parameters.
3853 (grub_cmd_initrd): Likewise.
3854 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
3855 (linux_kernel_params): Make it 1K big.
3856
ddb73558
VS
38572012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * Makefile.util.def: Remove -Wno-format.
3860 * grub-core/Makefile.core.def: Likewise.
3861
1c4afb60
VS
38622012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3863
3864 * tests/cmp_unit_test.c: Add missing failure message.
3865 * tests/example_unit_test.c: Likewise.
3866 * tests/printf_unit_test.c: Likewise.
3867
941e3a6d
VS
38682012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3871 relaxation of protective MBR requirements.
3872
b105df76
VS
38732012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * configure.ac: Add condition for COND_HOST_XNU.
3876 * Makefile.util.def (10_xnu): New script.
3877 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3878
84e1569e
VS
38792012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3882 objconv bug.
3883
130c0f77
VS
38842012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3887 Binary on other platforms stays identical.
3888
6fd0b143
VS
38892012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3892 Apple.
3893
0af1751d
VS
38942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3897
176d5f7d
VS
38982012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3901 rather than defining size_t ourselves to avoid conflict.
3902
7de5e20a
VS
39032012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3906 initialisation to avoid __bzero reference.
3907
f7143efe
VS
39082012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3911 version.
3912 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3913 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3914 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3915 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3916 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3917
e6ad0555
VS
39182012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3921 * grub-core/kern/misc.c: Likewise.
3922 * grub-core/loader/i386/xnu.c: Likewise.
3923 * include/grub/i386/tsc.h: Likewise.
3924 * include/grub/symbol.h: Likewise.
3925
4a5a3c4a
VS
39262012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3929 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3930 on older compiler.
3931
037f6d90
VS
39322012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3935 Implement Apple flavour.
3936 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3937
f7194551
VS
39382012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3941 (memmove) [__APPLE__]: Likewise.
3942 (memcpy) [__APPLE__]: Likewise.
3943 (memset) [__APPLE__]: Likewise.
3944 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3945 (memmove) [__APPLE__]: Likewise.
3946 (memcpy) [__APPLE__]: Likewise.
3947 (memset) [__APPLE__]: Likewise.
3948
85a730ca
VS
39492012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3952 dependency discard.
3953
40e80b94
VS
39542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * grub-core/normal/main.c (read_config_file): Provide config_file and
3957 config_directory.
3958 * util/grub.d/41_custom.in: Use config_directoy when available.
3959
9da59c32
VS
39602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3963 (grub_bfs_dir): Likewise.
3964
2787ae53
PJ
39652012-05-27 Peter Jones <pjones@redhat.com>
3966
3967 The old code gives arguments to a printf function which can't work
3968 correctly, and the compiler complains.
3969
3970 * grub-core/tests/example_functional_test.c (example_test): Add
3971 missing text.
3972 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3973 * include/grub/test.h (grub_test_assert_helper): New declaration.
3974 (grub_test_assert): Use grub_test_assert_helper.
3975
526ef13d
VS
39762012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3977
3978 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3979 (exfctest): ... this to avoid overlong filenames.
3980 All users updated.
3981
20dd511c
VS
39822012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3983
3984 Handle "." and ".." on squashfs.
3985
3986 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
3987 Make inode numbers into stack.
3988 (grub_squash_read_symlink): Use stack.
3989 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
3990 (make_root_node): Fill stack.
3991 (grub_squash_open): Use stack.
3992
1d80c62a
VS
39932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
3996 freeing.
3997
d336f652
VS
39982012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4001 stderr on test calls.
4002
8b43f587
VS
40032012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4006
80a3dc3f
VS
40072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4010
47e297d4
VS
40112012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4014 "..".
4015
df042ccb
VS
40162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4019 (grub_hfsplus_iterate_dir): Add "." and "..".
4020
fc977f48
VS
40212012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4024 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4025
f3250e5f
VS
40262012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4029 (find_path): Handle "." and "..".
4030
fd8ed4c5
VS
40312012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4034 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4035 (grub_affs_iterate_dir): Handle hardlinks.
4036
4ce776d2
MG
40372012-05-26 Matthew Garrett <mjg@redhat.com>
4038
4039 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4040 (grub_efi_console_fini): Likewise.
4041 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4042 (grub_video_gop_fill_mode_info): Rename to ...
4043 (grub_video_gop_fill_real_mode_info): ... this.
4044 (grub_video_gop_fill_mode_info): New function.
4045 (grub_video_gop_setup): Setup double framebuffer.
4046 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4047 Free offscreen.
4048 (grub_video_gop_swap_buffers): Copy framebuffer.
4049 (grub_video_gop_fini): Free offscreen buffer.
4050 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4051 New enum.
4052 (grub_efi_gop_blt_pixel): New struct.
4053
683031ba
VS
40542012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * gentpl.py: Remove error disabling for objconv.
4057
c2deb798
VS
40582012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * configure.ac: Remove -Wunitialized as it's not available on older
4061 compilers.
4062
40632012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
4064
4065 Fix extent overflow comparator.
4066
4067 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4068 (grub_hfsplus_read_block): Set type.
4069 (grub_hfsplus_cmp_extkey): Compare type.
4070
d6b1fd36
VS
40712012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4074
0a9aa0f6
VS
40752012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4078 than 0.
4079
8360e159
VS
40802012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4083 (dejavu_bold_14.pf2): New target.
4084
501b9e4b
VS
40852012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * configure.ac: Fix djvu font detection.
4088
7026b0e2
VS
40892012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4092 ext* instead of ext2.
4093
c2a51ade
VS
40942012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4097 name with \0.
4098
8f803a5d
JU
40992012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4100
4101 * docs/grub-dev.texi: Remove dot from .png.
4102
13c6353f
VS
41032012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4106 protective entry in any slot.
4107 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4108 if protective entry is found in any slot.
4109
4110 Protective entry in non-first slot make no sense but is a widespread
4111 brain damage.
4112
4cf6be1b
VS
41132012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4116
937d1c44
VS
41172012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4120 with old reiserfs.
4121 (grub_reiserfs_open): Don't free root.
4122
021d90ec
VS
41232012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4126 after freeing for safety.
4127
967b2b64
VS
41282012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4129
4130 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4131 Reported by: Jordan Uggla.
4132
34274d02
JU
41332012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4134
967b2b64
VS
4135 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4136 actual implementation. Specifically, clarify that the grub menu will
4137 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4138 passed.
34274d02 4139
dcaaae9d
BH
41402012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4141
4142 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4143 of r0.
4144
7086ad52
VS
41452012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 Remove unjustified hard dependency of normal.mod on gfxterm.
4148
4149 * include/grub/term.h (grub_term_output): New member fullscreen.
4150 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4151 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4152 (grub_gfxterm): Set .fullscreen.
4153 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4154 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4155
37ed2c9b
VS
41562012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4159 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 4160 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 4161
a4469c88
VS
41622012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4165
4e461486
VS
41662012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4169 a bad FS.
4170
aa78f5c4
VS
41712012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4174 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4175
197626b5
VS
41762012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4179 (grub_jfs_mount): Fill caseins.
4180 (grub_jfs_find_file): Respect caseins.
4181
8ad3f28c
VS
41822012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4185 through UTF-16.
4186
0c6c324e
VS
41872012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4190 New argument origpath. All users updated.
4191
c6666ba6
VS
41922012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4195 (read_attr): Ensure that we read start of possibly compressed block.
4196
e28e5fe5
VS
41972012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4200 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4201 All users updated.
4202
5fc23ab2
VS
42032012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4204
4205 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4206 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4207 (dejavu.pf2): Replace with ...
4208 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4209 this.
4210
79dbc21c
VS
42112012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4212
4213 * util/grub.d/20_linux_xen.in: Add missing line.
4214
d2fcfb0c
VS
42152012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4218 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4219 (grub_utf16_to_utf8): Likewise.
4220
5560e9d6
VS
42212012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4224 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4225 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4226 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4227 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4228 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4229
42302012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
4231
4232 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4233 a bad FS.
4234
5560e9d6 42352012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
4236
4237 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4238 (grub_udf_read_symlink): Handle read_string failure.
4239
5eae3175
VS
42402012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4243 comment.
4244
c1ad82db
VS
42452012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 Fix handling of UDF symlinks.
4248
4249 * grub-core/fs/udf.c (read_string): New argument outbuf.
4250 All users updated.
4251 (grub_ufs_read_symlink): Rename to ...
4252 (grub_udf_read_symlink): ... this. All users updated.
4253 Handle symlinks with more than one component.
4254
33eca6e0
VS
42552012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4258 symlinks. Replace leading colon with a slash.
4259
57f4a70b
VS
42602012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4263 filename.
4264
38c8ee20
VS
42652012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4268 match in inner node.
4269
2e57f28f
VS
42702012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4273 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4274 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4275 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4276 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4277 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4278 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4279 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4280 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4281
fe8c2f11
VS
42822012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 Use grub-probe and not cmp to check that disk is empty.
4285
4286 * util/grub-install.in: Use grub-probe for zero-check.
4287 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
4288 (probe): Handle PRINT_ZERO_CHECK.
4289 (argp_parser): Handle -t zero_check.
4290
42912012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
4292
4293 Flush block cache on adding disk to device map.
4294
4295 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
4296 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
4297 adding.
4298 (read_device_map): Likewise.
4299 (open_device): Flush on opening.
4300
690434e8
VS
43012012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
4304 (handle_symlink): Fix off-by-one error.
4305 Canonicalize the target.
4306 (grub_cpio_dir): Canonicalize the name.
4307 Fix memory leak.
4308 Set directory.
4309 (grub_cpio_open): Canonicalize the name.
4310
742d2be6
VS
43112012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
4314 handling.
4315
3244fe96
VS
43162012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
4319 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
4320
8aeb1837
VS
43212012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
4324 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 4325 All users updated.
8aeb1837 4326
9133fd05
VS
43272012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
4330 counterpart.
4331
6d521c5b
VS
43322012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 Fix UFS1 big file support.
4335
4336 * grub-core/fs/ufs.c (INODE): Removed.
4337 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
4338 64-bit.
4339 (INODE_MODE): Simplify.
4340 (grub_ufs_inode): Use uint64_t for size and not int64_t.
4341 (grub_ufs_lookup_symlink): Don't use INODE.
4342
21b82e17
VS
43432012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 Fix minixfs with non-power-of-two blocks since it's supported by minix.
4346
4347 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
4348 (grub_minix_data): Replace log_block_size with block_size.
4349 (grub_minix_read_file): Use block_size but avoid 64-bit division.
4350 (grub_minix_mount): Fill block_size.
4351
43522012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
4353
4354 * configure.ac: Bump to beta5.
4355
f417ed04
VS
43562012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 Fix wrapped HFS+ handling.
4359
4360 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
4361 blocks_start. All users updated.
4362 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
4363 wrapping offset.
4364 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
4365
607d282b
VS
43662012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 Fix long symlinks on reiserfs.
4369
4370 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
4371 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
4372 (grub_reiserfs_iterate_dir): Save size for non-directories.
4373 (grub_reiserfs_open): Don't reread stat block as we already know the
4374 size.
4375 (grub_reiserfs_read): Split into...
4376 (grub_reiserfs_read_real): ... and ...
4377 (grub_reiserfs_read): ...this.
4378
ae16024d
VS
43792012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 Fix non-indexed JFS.
4382
4383 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
4384 (grub_jfs_data): New field namecomponentlen.
4385 (grub_jfs_mount): Fill namecomponentlen.
4386 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
4387
eea1e26e
VS
43882012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
4391 * tests/grub_script_echo1.in: Add tests.
4392
df760f77
VS
43932012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * util/grub-install.in: Ignore empty devicetree directory.
4396
5efb817d
B
43972012-05-08 Bean <bean123ch@gmail.com>
4398
4399 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
4400 All users updated.
4401 (free_rsm): Free header as well.
4402 (free_old_fragments): Fix memory leak.
4403 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
4404 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
4405 (destroy_pq): Likewise.
4406 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
4407
668ea6d2
VS
44082012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
4411 resulting hash as a precaution.
4412
1739b1fe
VS
44132012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
4416 '_' in variable names.
4417 * grub-core/net/net.c (grub_net_network_level_interface_register):
4418 Likewise.
4419
6ae485aa
VS
44202012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 Fix AFFS with non-512B blocks.
4423
4424 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
4425 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
4426 (grub_affs_data): Replace blocksize with log_blocksize.
4427 (grub_affs_read_block): Fix non-512B blocks.
4428 (grub_affs_read_symlink): Likewise.
4429 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
4430 (grub_affs_read): Fix non-512B blocks.
4431 (grub_affs_label): Likewise.
4432 (grub_affs_mtime): Likewise.
4433 (grub_affs_mount): Fix block detection routine.
4434
d20fab84
VS
44352012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4436
4437 Add filesystem mtime to AFFS.
4438
4439 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
4440 (aftime2ctime): New function.
4441 (grub_affs_dir): Use aftime2ctime.
4442 (grub_affs_label): Fix return value.
4443 (grub_affs_mtime): New function.
4444 (grub_affs_fs): Add mtime.
4445
e87b10f5
VS
44462012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
4449 UTF-8.
4450
7dceec9b
VS
44512012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
4454 UTF-8.
4455
2f48221f
VS
44562012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
4459
dacd85cf
VS
44602012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
4463 flags.
4464 (FLAGS_CASE_SENSITIVE): New enum value.
4465 (cache_entry): New struct.
4466 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
4467 cache_size and cache.
4468 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
4469 Add log_blocksize and fshelp_flags.
4470 (grub_sfs_read_extent): Handle non-512 blocks.
4471 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
4472 (grub_sfs_read_file): Handle non-512 blocks.
4473 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
4474 fshelp_flags.
4475 (grub_sfs_read_symlink): Handle non-512 blocks.
4476 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
4477 (grub_sfs_dir): Free cache.
4478 (grub_sfs_close): Likewise.
4479
24e9a854
VS
44802012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
4483 filesystems.
4484
62ace64d
VS
44852012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
4488
83b2e89c
VS
44892012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
4492
75ccaea3
VS
44932012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
4496 (grub_sfs_read_extent): Likewise.
4497 (grub_sfs_read_block): Likewise.
4498 (grub_sfs_mount): Likewise.
4499 (grub_sfs_iterate_dir): Likewise.
4500 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
4501 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
4502
1b8463f2
VS
45032012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 Fix errors on compressed NTFS with 512B clusters.
4506
4507 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
4508 types.
4509 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
4510 not 0.
4511 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
4512 Relax check for inline extents.
4513 (ntfscomp): Return correct -1 on error and not 0.
4514
4f8e368f
VS
45152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * util/grub-install.in: Fix handling of prefix containing spaces.
4518
6f5d5ee8
VS
45192012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
4522 (grub_squash_read_data): Fix offset byte-swapping.
4523
ce41ab7a
VS
45242012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
4527 per common usage and preffered in several parts of code.
4528 (grub_memcmp): Likewise.
4529 (grub_strncmp): Likewise.
4530 * include/grub/misc.h (grub_strcasecmp): Likewise.
4531 (grub_strncasecmp): Likewise.
4532 * Makefile.util.def (cmp_test): New test.
4533 (grub_script_strcmp): Likewise.
4534 * tests/cmp_unit_test.c: New file.
4535 * tests/grub_script_strcmp.in: Likewise.
4536 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
4537
49717bf4
VS
45382012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * include/grub/pci.h: Move enums into no-asm part.
4541
0a308f64
VS
45422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
4545
1796965f
ST
45462012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4547
4548 * util/getroot.c (find_hurd_root_device): Try to make error message
4549 and comments to translators clearer.
4550
4e9b2819
VS
45512012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
4554
076aeb50
VS
45552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
4558 btrfs.
4559
19424d94
VS
45602012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 * docs/grub.cfg: Update.
4563
ebb73076
VS
45642012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * docs/grub.texi (PXE): Remove not present variables.
4567
9a1b669c
VS
45682012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * grub-core/net/net.c (defserver_set_env): New function.
4571 (defserver_get_env): Likewise.
4572 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
4573
d38bf7d3
VS
45742012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
4577 entries.
4578
45792012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
4580
4581 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
4582 * grub-core/kern/emu/hostdisk.c: Likewise.
4583
e5e4ca48
ST
45842012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4585
4586 Handle hurd userspace partitions.
4587
4588 * util/getroot.c (find_hurd_root_device): New function.
4589 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
4590
56bb5dd5
VS
45912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
4594 names.
4595 Reported by: Bastian Blank.
4596
9e8bc27a
VS
45972012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
4600 crossing page boundary.
4601
aa01499d
VS
46022012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Fix B-tree search in BFS, especially in presence of non-ASCII
4605 characters.
4606
4607 * grub-core/fs/bfs.c (bfs_strcmp): New function.
4608 (find_in_b_tree): Use standard bsearch + btree algorithm.
4609
57006035
VS
46102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
4613 and so on.
4614
9d34bb85
MG
46152012-05-03 Matthew Garrett <mjg@redhat.com>
46162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 Suspend broadcom cards in order to stop their DMA.
4619
4620 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
4621 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
4622 (pci): Don't build on x86 EFI.
4623 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
4624 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
4625 New function.
4626 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
4627 stop_broadcom if running on EFI.
4628 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
4629 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
4630 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
4631 (grub_pci_find_capability): New proto.
4632
01aab997
VS
46332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * docs/grub.texi: Remove dot from the extension as it apparently
4636 doesn't work with some makeinfo versions.
4637
fbd8dca6
VS
46382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
4641 with GRUB expectance.
4642
dab797f4
VS
46432012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
4646
1516bfb4
VS
46472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
4650 zero after directory block since last entry may be not 0-terminated if
4651 it ends on block boundary. Use continue instead of if spanning whole
4652 loop.
4653
a3a0eace
VS
46542012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 Support 4K sectors UDF inline files.
4657
4658 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
4659 (grub_udf_extended_file_entry): Likewise.
4660 (grub_fshelp_node): Name the anonymous union. Put block at the end.
4661 All users updated.
4662 (get_fshelp_size): New function.
4663 (grub_udf_read_icb): Read whole block.
4664 (grub_udf_iterate_dir): Likewise.
4665 (grub_udf_dir): Likewise.
4666 (grub_udf_open): Likewise.
4667
c82f16c1
VS
46682012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
4671
59fd2aac
VS
46722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
4675 inline symlinks in addition to workaround.
4676
3b4afb4d
VS
46772012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
4680
f45c794a
VS
46812012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
4684
f25cecbd
VS
46852012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
4688
bb9a34e8
VS
46892012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 Fix reiserfs big seek times.
4692
4693 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
4694 exact. All users updated.
4695 (grub_reiserfs_read): Use nearest btree search for seeking.
4696 Fix return value on error.
4697
dc478aea
VS
46982012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
4701 entries.
4702 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
4703 * docs/grub.texi: Update menuentry description.
4704
8db10f47
VS
47052012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
4708 crash when embedding onto filesystem.
4709
bcb288ed
VS
47102012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
4713 name.
4714
a626fdd7
VS
47152012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
4718
b2f68477
VS
47192012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
4722 commit.
4723
ba15b2af
B
47242012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
47252012-05-01 Bean <bean123ch@gmail.com>
4726
4727 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
4728
a188012e
VS
47292012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
4732 Special behaviour for len = 0 to read whole file isn't used anywhere and
4733 can cause buffer ovewrflows in several places.
4734
f0a53ed2
VS
47352012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
4738
5ed554f0
VS
47392012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 Handle RAIDZ on non-512B sectors.
4742
4743 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
4744 max_children_ashift.
4745 (fill_vdev_info_real): Fill max_children_ashift.
4746 (read_device): Use max_children_ashift.
4747
ddc58357
VS
47482012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
4751
e3282399
VS
47522012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
4755 disk names.
4756 * docs/grub.texi: Update device.map parts.
4757
ee618bd4
VS
47582012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 Don't scan into non-diskfilter devices having diskfilter names.
4761
4762 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
4763 (scan_disk): New argument accept_diskfilter. Fix recursion depth
4764 handling.
4765 (scan_disk_hook): New function.
4766
bdf88864
B
47672012-04-29 Bean <bean123ch@gmail.com>
4768
4769 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
4770 allocation.
4771
32745f51
MK
47722012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
4773
4774 * configure.ac: Detect starfield theme font path
4775 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
4776
bc95c8c0
VS
47772012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
4780 geometry on serial consoles.
4781
147fbcab
VS
47822012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
4785 because of network consoles.
4786
0f42c889
VS
47872012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
4790 handling.
4791
4a3594c9
VS
47922012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
4795 falls on Q syndrom.
4796
5cb53879
VS
47972012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
4800 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
4801
b282dfe5
VS
48022012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
4805 Allocate at lest 8192 for temporary buffer as required for lzo.
4806
daa59f47
VS
48072012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4810 to cluster_bits, since it's already added in.
4811 (grub_fat_read_data): Likewise.
4812
986748ce
VS
48132012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4816 as long as cluster size is multiple of 512 bytes.
4817
a20f6ad0
VS
48182012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * util/grub-mkrescue.in: Fix locale directory.
4821
385f9abb
VS
48222012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 * grub-core/kern/emu/hostdisk.c (map): Make static.
4825
1c557d30
B
48262012-04-23 Bean <bean123ch@gmail.com>
4827
4828 * util/grub-fstest.c (fstest): Add missing break.
4829
524b5d3a
ST
48302012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4831
4832 Fix hurd build.
4833
4834 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4835 not define nr variable.
fe4824e9 4836 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4837 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4838 grub_find_device): Do not define.
524b5d3a 4839
9a06490c
VS
48402012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 Fix kfreebsd compile and behaviour.
4843
4844 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4845 format-security.
4846 * util/getroot.c: Fix wait.h include.
4847 (grub_guess_root_devices): Error if grub_find_device fails.
4848 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
4849 (grub_util_get_dev_abstraction): Likewise.
4850 (grub_util_pull_device): Likewise.
4851 (grub_util_get_grub_dev): Likewise.
4852 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
4853
48143d96
VS
48542012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 Fix and unify wholedisk detection.
4857
4858 * util/getroot.c (convert_system_partition_to_system_disk): New argument
4859 is_part. All users updated.
4860 (device_is_wholedisk): Removed.
4861 (grub_util_biosdisk_get_grub_dev): Use is_part.
4862
ebbd24f3
VS
48632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4866 mode.
4867
56f7aa1e
VS
48682012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * configure.ac: Bump to beta4.
4871
9c815e01
VS
48722012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4875 --fs-uuid --set UUID syntax.
4876
59e2651a
VS
48772012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4880 disunification.
4881
54e03cfc
VS
48822012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4885
81092a75
MK
48862012-04-18 Mads Kiilerich <mads@kiilerich.com>
4887
4888 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4889
f8315e14
MG
48902012-04-18 Mike Gilbert <floppym@gentoo.org>
4891
4892 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4893
1501ac21
B
48942012-04-18 Bean <bean123ch@gmail.com>
4895
4896 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4897 place.
4898
cb7f944e
VS
48992012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4902 users updated.
4903 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4904 corresponding to GRUB partitions.
4905 (grub_util_biosdisk_write): Likewise.
4906
b72d44a1
VS
49072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 Scan mdraid before LVM.
4910
4911 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4912 (grub_diskfilter_register_front): ... this.
4913 (grub_diskfilter_register_back): New function.
4914 All users of grub_diskfilter_register updated.
4915
33d918b8
VS
49162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * util/grub-install.in: Fix an automatic target detection bug.
4919
c6ca973d
VS
49202012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * util/grub-install.in: New option --efi-directory.
4923
b41be562
VS
49242012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4927 boot services if we have no other choice.
4928
49292012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4932 document it.
4933 * tests/util/grub-shell.in: Update to --directory.
4934
e0595a73
VS
49352012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4938
4ed80652
VS
49392012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4942 (grub_minix_read_file): Likewise.
4943 (grub_minix_read_inode): Likewise.
4944 (grub_minix_find_file): Likewise.
4945 (grub_minix_dir): Likewise.
4946
56008077
VS
49472012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * util/grub-setup.c (setup): Fix partition handling and blocklist
4950 check.
4951
ee520775
VS
49522012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4955 redundant buggy overlap check.
4956
16fc9293
VS
49572012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4960 and grub-mknetdir.
4961
9bab65c4
VS
49622012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4965 kh.loadflags on pre-2.00 kernels.
4966
3c491b47
VS
49672012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 Terminate UNDI and PXE before launching the payload to avoid problems
4970 with DMA.
4971
4972 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4973 (grub_loader_flags): ... this. All users updated.
4974 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4975 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4976 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4977 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4978 function.
4979 (grub_pxe_restore): Likewise.
4980 (fini_hnd): New var.
4981 (GRUB_MOD_INIT): Register shutdown hook.
4982 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
4983 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
4984 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
4985 (grub_loader_set): Rename second argument to flags.
4986
851ffada
VS
49872012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
4990 written bytes.
4991 (grub_get_num_of_utf8_bytes): New function.
4992 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
4993 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
4994 executing it.
4995 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
4996 (grub_ucs4_to_utf8): Change return type.
4997
491c57a8
VS
49982012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5001 warning.
851ffada
VS
5002 * grub-core/fs/bfs.c (hop_level): Likewise.
5003 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 5004
756773df
VS
50052012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/lib/adler32.c: Recode due to license unclearness.
5008
fd556a96
VS
50092012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5012 (test_header): Likewise.
5013
9f9d3f69
VS
50142012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 Fix --help formatting.
5017
5018 * util/grub-mkconfig_lib.in (print_option_help): New function.
5019 (grub_fmt): Likewise.
5020 * util/grub-install.in: Use print_option_help and grub_fmt.
5021 * util/grub-kbdcomp.in: Likewise.
5022 * util/grub-mkconfig.in: Likewise.
5023 * util/grub-mknetdir.in: Likewise.
5024 * util/grub-mkrescue.in: Likewise.
5025 * util/grub-mkstandalone.in: Likewise.
5026 * util/grub-reboot.in: Likewise.
5027 * util/grub-set-default.in: Likewise.
5028 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5029
561ec77e
VS
50302012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5031
5032 * linguas.sh: Remove autogenerated *.po.
5033
7ec2b021
VS
50342012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5035
5036 * po/README: Move language fetcing to ...
5037 * linguas.sh: ... here.
5038 * po/README: Point to linguas.sh.
5039
a88f3270
VS
50402012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * po/README: Exclude ko.po due to disclaimer problems.
5043
d61357ce
VS
50442012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5047 len = 0.
5048 (grub_gettext_translate_real): Handle 0th string.
5049 (grub_gettext_translate): Ensure that "" isn't translated.
5050
505e41dc
VS
50512012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5054 TRANSLATORS comment.
5055 (grub_diskfilter_print_partmap): Propagate changing of error into
5056 warning.
5057
e44092db
VS
50582012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5061 to uint64_t to prevent overflow.
5062 (grub_diskfilter_lv): Increase start_extent and extent_count
5063 to uint64_t to prevent overflow.
5064
9b83956a
VS
50652012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * configure.ac: Increase version.
5068
da0d5b3f
VS
50692012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5072
5073 * po/Rules-translit: New file.
5074 * po/arabic.sed: Likewise.
5075 * po/cyrillic.sed: Likewise.
5076 * po/greek.sed: Likewise.
5077 * po/hebrew.sed: Likewise.
5078 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5079 * po/Makefile.in.in: Add extra_dist4.
5080
ac66b453
VS
50812012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5084
5085 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5086 modify names. Introduce MODE_BIGENDIAN.
5087 * grub-core/fs/minix_be.c: New file.
5088 * grub-core/fs/minix2_be.c: Likewise
5089 * grub-core/fs/minix3_be.c: Likewise.
5090 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5091 minix3_be.
5092 * grub-core/Makefile.core.def (minix_be): New module.
5093 (minix2_be): Likewise.
5094 (minix3_be): Likewise.
5095
50962012-04-01 Felix <email@hamburg.de>
5097
5098 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5099 (devs): Add MBP 2011.
5100
0a2d5a82
VS
51012012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5104
d1625889
VS
51052012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/normal/cmdline.c (print_completion): New field
5108 prompt_len.
5109 (grub_cmdline_get): Handle width properly.
5110
6d36a236
VS
51112012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5114
9576977e
VS
51152012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 5118 after 29th of February.
9576977e 5119
d73ff15d
VS
51202012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 Fix exfat endianness handling.
5123
5124 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5125 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5126 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5127 Byte-swap utf16 when necessary.
5128 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5129
bbb39a45
AB
51302012-03-31 Anton Blanchard <anton@samba.org>
51312012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 Fix btrfs endianness handling.
5134
5135 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5136 (lower_bound): Make root uint64_t. Use root in le.
5137 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5138 (find_path): Fix template key init.
5139 (grub_btrfs_dir): Fix mtime byteswap.
5140 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5141
354e0af7
VS
51422012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5145 recursion_depth. Break infinite resursions. All users updated.
5146
4e75f21c
VS
51472012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5150 after free.
5151 Reported by: Peter Jones.
5152
25581802
AB
51532012-03-31 Anton Blanchard <anton@samba.org>
5154
5155 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5156 8 bit values.
5157
08fbf92e
VS
51582012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5159
5160 * util/grub-install.in: Fix nvram call for PreP.
5161
5d1182a6
VS
51622012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5165 the error when some elements are missing into a warning.
5166
3f8cdd90
VS
51672012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5170
51006716
CW
51712012-03-28 Colin Watson <cjwatson@ubuntu.com>
5172
5173 * docs/grub.texi (Invoking grub-probe): New section.
5174 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5175
e1bd676b
VS
51762012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 Fix tab and wide character handling in editor and menu.
5179
5180 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5181 agglomerate control characters with combining marks.
5182 (bidi_line_wrap): Allow break on tab.
5183 (grub_unicode_get_comb_start): New function.
5184 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5185 and tab correctly.
5186 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5187 with a space.
5188 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5189 fixed_tab_size. All users updated.
5190 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5191 (grub_term_getcharwidth): Handle \t.
5192 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5193 and copy.
5194
22e6a774
VS
51952012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 Handle big-endian mdraid.
5198
5199 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5200 * grub-core/Makefile.core.def (mdraid09_be): New module.
5201 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5202 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5203 * grub-core/disk/mdraid_linux_be.c: New file.
5204
3c0eae66
VS
52052012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5208
b6cf74c9
VS
52092012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5212 missing quotes which caused confusion among translators.
5213
83c93b9c
VS
52142012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * util/grub-mkconfig_lib.in: Fix typo.
5217
ac6fd218
VS
52182012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5221 spaces.
5222 * tests/grub_script_leading_whitespace.in: New file.
5223 * Makefile.util.def (grub_script_leading_whitespace): New test.
5224
ba287dd8
VS
52252012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5228 to work.
5229
d2d58d0a
VS
52302012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5231
5232 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5233 starts with control character.
5234
0382d9bb
VS
52352012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5238 overflow.
5239 (grub_gdb_outbuf): Likewise.
5240
d83ff9f9
VS
52412012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5244 zero terminator. Fixes a crash.
5245
2282da4a
VS
52462012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5249 beyond 4 GiB.
5250 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5251 images independently of preffered adderss field.
5252
0ae4f0bd
VS
52532012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5256 * grub-core/commands/regexp.c: Likewise.
5257 * grub-core/loader/i386/linux.c: Likewise.
5258 * grub-core/partmap/msdos.c: Likewise.
5259 * grub-core/script/execute.c: Likewise.
5260 * grub-core/term/gfxterm.c: Likewise.
5261
546fbe9b
VS
52622012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 Add variable parsing in $"..." and fix several mismatches with bash.
5265
5266 * Makefile.util.def (grub_script_gettext): New test.
5267 * grub-core/script/execute.c (parse_string): New function.
5268 (gettext_append): Likewise.
5269 (grub_script_arglist_to_argv): Use gettext_append.
5270 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5271 * tests/grub_script_gettext.in: New file.
5272
9fdb2d7b
VS
52732012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5274
5275 Fix handling of leading spaces in scripts.
5276
5277 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5278 spaces.
5279 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5280 other than skipping \r. All users updated.
5281 * tests/grub_script_echo1.in: Add space-related tests.
5282 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5283
1a1ac4f6
VS
52842012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
5287
b63d89b6
VS
52882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * configure.ac: Bump up the version to beta2.
5291
17f38c0f
VS
52922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 Fix gettext reload bugs (e.g. inability to disable gettext
5295 once enabled).
5296
5297 * grub-core/gettext/gettext.c: Encapsulate all static variables in
5298 main_context and secondary_context. All functions updated.
5299 (grub_gettext_translate): Rename to ...
5300 (grub_gettext_translate_real): ... this. Return NULL on failed
5301 translate.
5302 (grub_gettext_translate): Handle secondary context.
5303 (grub_gettext_delete_list): Close file and zero-out the context.
5304 (grub_mofile_open): Don't call grub_gettext_delete_list.
5305 Don't close file.
5306 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
5307 if locale="" to avoid pointless error message.
5308 (grub_gettext_env_write_lang): Update lang even if load fails.
5309 Handle secondary context.
5310 (grub_gettext_reread_prefix): New function.
5311 (read_main): Likewise.
5312 (read_secondary): Likewise.
5313 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
5314 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
5315 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
5316 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
5317
8e56f870
VS
53182012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * configure.ac: Decrease warning level to avoid spurious warnings and
5321 to be able to compile with GCC 4.2.
5322 * Makefile.util.def: Remove -Wno-error=logical-op.
5323
82f6d455
WB
53242012-03-10 William Bittner <william.bittner@gmail.com>
5325
5326 * util/import_unicode.py: Add missing brackets around string for
5327 python 3 support.
5328
1ecd61a4
VS
53292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 Fix efi chainloader on network root.
5332
5333 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
5334 network devices.
5335 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
5336 New function.
5337
14361ee8
VS
53382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
5341 unused show_text member.
5342 * docs/grub.texi: Document "text" property.
5343
922aabf3
VS
53442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
5347 in dprintf.
5348
ec316771
VS
53492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 Fix IMSM handling on Fedora.
5352
5353 * util/getroot.c (grub_util_is_imsm): New function.
5354 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
5355
0f021838
VS
53562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * Makefile.am: Strip gold section.
5359 * conf/Makefile.common: Likewise.
5360 * gentpl.py: Likewise.
5361 * grub-core/Makefile.core.def: Likewise.
5362 * grub-core/genmod.sh.in: Likewise.
5363
1039c8eb
VS
53642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
5367 * util/grub.d/20_linux_xen.in: Likewise.
5368 Based on Debian patch.
5369
6dd412cd
VS
53702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * util/grub.d/10_linux.in: Fix syntax error resulting in
5373 Richard Laager's patch.
5374 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
5375
3fd8bae5
VS
53762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
5379 dependencies.
5380
7eea1671
RL
53812012-03-10 Richard Laager <rlaager@wiktel.com>
5382
5383 * util/grub.d/10_linux.in: Fix ZFS root passing.
5384
e8e0566b
VS
53852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5388 * grub-core/commands/xnu_uuid.c: Likewise.
5389 * grub-core/loader/efi/appleloader.c: Likewise.
5390 * grub-core/script/execute.c: Likewise.
5391 * grub-core/script/main.c: Likewise.
5392 * util/grub-mkfont.c: Likewise.
5393
1acc5b1f
VS
53942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5395
5396 * util/grub-mkfont.c (options): Use more appropriate "select" that
5397 "set" for face index.
5398
35d70620
VS
53992012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * util/grub-editenv.c (options): Gettextize command summaries.
5402
c9eb96b5
VS
54032012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
5406 "out of memory" error messagge.
5407
1f493136
VS
54082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5409
5410 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
5411 of diskfilter for diskfilter on diskfilter support.
5412
6d790129
VS
54132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5414
5415 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
5416
005f46c9
VS
54172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5418
5419 * util/grub-install.in: Check for themes/starfield/theme.txt and not
5420 themes/starfield.
5421
c8f778a0
VS
54222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
5425
de1e64eb
VS
54262012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
5429
c6d54211
VS
54302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
5433 of error message.
5434
dd390777
VS
54352012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
5438
5fd1c522
VS
54392012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
5442 message.
c6d54211 5443 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 5444
fae01f6c
VS
54452012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
5448 Gettextize.
5449 * util/grub-mount.c (options): Likewise.
5450
292fdaff
VS
54512012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
5454 gettextize.
5455 * grub-core/commands/search_wrap.c (options): Likewise.
5456
ecdbae77
VS
54572012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
5460
52bfedfa
VS
54612012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
5464 size calculation.
5465 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
5466 none is known.
5467
55b20e58
VS
54682012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
5471 "temporary" since it's used in identifier and is limited in space.
5472
fda9d101
VS
54732012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 * po/POTFILES.in: Regenerate. Include *.h since they contain
5476 translatable strings as well.
5477
6a0295e2
VS
54782012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5481 byte-swap on big-endian.
5482 Reported by: Lennart Sorensen
5483
807fb77c
VS
54842012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
5487 (allocate_pages): Improve dprintf.
5488 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
5489 code32_start. Fill code32_start and kernel_alignment in params.
5490 (grub_cmd_initrd): Use prot_init_space.
5491
61ac50ba
VS
54922012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
5495
abdd26dd
VS
54962012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * util/grub-install.in: Add missing dot at the end of sentence.
5499
6e69da9c
VS
55002012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5503 * grub-core/commands/videotest.c: Likewise.
5504 * grub-core/loader/i386/linux.c: Likewise.
5505
4a929343
VS
55062012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
5509 sentence.
5510 Reported by: Milo Casagrande.
5511
bb51c6c6
VS
55122012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
5515 * grub-core/commands/gptsync.c: Likewise.
5516 * grub-core/commands/hashsum.c: Likewise.
5517 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5518 * grub-core/commands/legacycfg.c: Likewise.
5519 * grub-core/io/gzio.c: Likewise.
5520 * grub-core/net/net.c: Likewise.
5521 * grub-core/term/gfxterm.c: Likewise.
5522 * grub-core/term/terminfo.c: Likewise.
5523 * grub-core/tests/test_blockarg.c: Likewise.
5524 * grub-core/video/video.c: Likewise.
5525 * util/grub-install.in: Likewise.
5526 * util/grub-mkfont.c: Likewise.
5527
b2b149cb
VS
55282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
5531
c7c080ad
VS
55322012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 5535 Reported by: David Prévot.
c7c080ad 5536
f2e243c0
VS
55372012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5538
5539 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
5540 description.
5541
09963c76
VS
55422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5543
5544 * util/grub-script-check.c (main): Fix a syntax error message which was
5545 unclear.
5546
a50514a8
VS
55472012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
5550
4650daec
VS
55512012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
5554 messages.
5555
55562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
5557
5558 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
5559 without argument.
5560 * util/grub-mount.c (options): Likewise.
5561
bbc5a342
VS
55622012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
5565
ef292a87
VS
55662012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * grub-core/net/http.c: Add TRANSLATORS comments.
5569 * grub-core/normal/cmdline.c: Likewise.
5570 * grub-core/normal/misc.c: Likewise.
5571 * grub-core/partmap/msdos.c: Likewise.
5572 * grub-core/parttool/msdospart.c: Likewise.
5573 * grub-core/script/execute.c: Likewise.
5574 * grub-core/script/main.c: Likewise.
5575 * grub-core/term/terminfo.c: Likewise.
5576 * grub-core/video/bitmap.c: Likewise.
5577 * util/grub-install.in: Likewise.
5578 * util/grub-mkimage.c: Likewise.
5579 * util/grub-mklayout.c: Likewise.
5580 * util/grub-setup.c: Likewise.
5581
0fc19bd0
VS
55822012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
5585 with similar messages in grub-fstest.
5586
d95862ef
VS
55872012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * util/grub-install.in: Unify "option requires an argument" message
5590 with similar messages in other files.
5591 * util/grub-mkconfig.in: Likewise.
5592
b7308f90
VS
55932012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * util/grub-set-default.in: Replace printf with gettext_printf (the
5596 string in in question is already translated from grub-reboot)
5597
559dc587
VS
55982012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5599
5600 * configure.ac: Bump up the version to beta1.
5601
1a11761f
VS
56022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
5605 case when min_align = 0.
5606
24539abd
VS
56072012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
5610 and fix a case when line_start overflows.
5611
32bd735b
VS
56122012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5613
5614 * util/grub-reboot.in (usage): Mention id posibility.
5615 * util/grub-set-default.in (usage): Likewise.
5616
1a2fd1e6
VS
56172012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
5620 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
5621 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
5622 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
5623 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
5624 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5625 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5626
90eeab76
VS
56272012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * grub-core/commands/menuentry.c (options): Remove
5630 GRUB_ARG_OPTION_REPEATABLE.
5631 Reported by: Andreas Vogel
5632
5ad1be82
AV
56332012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
5634
5635 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
5636
cb055286
HE
56372012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
5638
5639 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
5640 error.
5641
93b1cd79
VS
56422012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 Use sort -V by the idea of Georgi Georgiev.
5645
5646 * util/grub-mkconfig_lib.in (version_sort): New function.
5647 (version_test_numeric): Use version_sort.
5648
0cdc126c
VS
56492012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 Use submenus in grub-mkconfig.
5652
5653 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
5654 * util/grub-mkconfig_lib.in (grub_quote): New function.
5655 (gettext_printf): Use gettext and not gettext_quoted to fix several
5656 messages.
5657 * util/grub.d/10_hurd.in: Use submenus.
5658 * util/grub.d/10_kfreebsd.in: Likewise.
5659 * util/grub.d/10_linux.in: Likewise.
5660 * util/grub.d/10_netbsd.in: Likewise.
5661 * util/grub.d/20_linux_xen.in: Likewise.
5662 * util/grub.d/30_os-prober.in: Likewise.
5663 * util/grub.d/10_illumos.in: Add missing quoting.
5664 * util/grub.d/10_windows.in: Likewise.
5665
d9bef9bc
VS
56662012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 Fix menu title instability bug.
5669
5670 * grub-core/commands/menuentry.c (options): New option --id.
5671 (grub_normal_add_menu_entry): New argument id. All users updated.
5672 (grub_cmd_menuentry): Handle --id.
5673 (grub_menu_init): Accept unknown arguments.
5674 * grub-core/normal/main.c (features): Add feature_menuentry_id and
5675 feature_menuentry_options.
5676 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
5677 saved_entry.
5678 (get_entry_number): Match with id as well.
5679 * include/grub/menu.h (grub_menu_entry): New member id.
5680 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
5681 * util/grub.d/00_header.in: Define menuentry_id_option.
5682 * util/grub.d/10_hurd.in: Define id.
5683 * util/grub.d/10_illumos.in: Likewise.
5684 * util/grub.d/10_kfreebsd.in: Likewise.
5685 * util/grub.d/10_linux.in: Likewise.
5686 * util/grub.d/10_netbsd.in: Likewise.
5687 * util/grub.d/10_windows.in: Likewise.
5688 * util/grub.d/20_linux_xen.in: Likewise.
5689 * util/grub.d/30_os-prober.in: Likewise.
5690
56912012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
5692
5693 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
5694 "scope" with "body".
5695
7c8d0ce7
VS
56962012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
5699 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
5700 prot_size and prot_file_size.
5701
49de079b
VS
57022012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
5705 All users updated. If easily=1 require raid-5/-6 to be full.
5706 (is_node_readable): Likewise.
5707 (scan_devices): Scan incomplete but readable LVs at the end.
5708 (grub_diskfilter_memberlist): Pull missing devices.
5709 (insert_array): Skip scanning until device is complete or scan is
5710 done otherwise.
5711 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
5712 check.
5713 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
5714 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
5715
aff05d45
MG
57162012-03-03 Matthew Garrett <mjg@redhat.com>
57172012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 Avoid EFI boot services when loading Linux.
5720
5721 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
5722 avoid_efi_bootservices. All users updated.
5723 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
5724 argument avoid_efi_bootservices. All users updated.
5725 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
5726 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
5727 align, min_align, relocatable, prefered_address. All users updated.
5728 Allocate avoiding boot services if kernel is relocatable.
5729 (grub_cmd_linux): Check if kernel is relocatable.
5730 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
5731 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
5732 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
5733 avoid_efi_boot_services.
5734 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
5735 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
5736 (linux_kernel_params): Likewise.
5737
3935dde2
MG
57382012-03-03 Matthew Garrett <mjg@redhat.com>
57392012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 Use EDID on EFI.
5742
5743 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
5744 datasize_out.
5745 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
5746 modes. Set gop_handle.
5747 (grub_video_gop_get_edid): New function.
5748 (grub_gop_get_preferred_mode): Likewise.
5749 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
5750 (grub_video_efi_gop_adapter): Set .get_edid.
5751 * include/grub/efi/edid.h: New file.
5752 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
5753
32107ec0
VS
57542012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * util/grub-install.in: Load efivars unconditionally.
5757
e70a2c50
VS
57582012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5759
5760 * po/Rules-piglatin: Change suffix from .po-update-en to
5761 .po-update-en-piglatin.
5762
8f9cace1
VS
57632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 Add a pig farm.
5766
5767 * po/piglatin.sed: New file.
5768 * po/en@piglatin.header: Likewise.
5769 * po/Rules-piglatin: Likewise.
5770 * po/README: Add en@piglatin to autogenerated languages.
5771
8f95d002
VS
57722012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
5775 "Command for ...".
5776 * grub-core/commands/hdparm.c (options): Use "Display" rather than
5777 "Check" since we don't check anything.
5778 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
5779 is 64-bit one.
5780 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
5781 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
5782 (grub_md_sha512_real): Likewise.
5783
805a8dcc
VS
57842012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5785
5786 * grub-core/commands/gptsync.c: Fix typographic quoting.
5787 * grub-core/commands/ieee1275/suspend.c: Likewise.
5788 * grub-core/commands/parttool.c: Likewise.
5789 * grub-core/commands/search_wrap.c: Likewise.
5790 * grub-core/commands/videoinfo.c: Likewise.
5791 * grub-core/gfxmenu/gui_label.c: Likewise.
5792 * grub-core/hello/hello.c: Likewise.
5793 * grub-core/kern/emu/main.c: Likewise.
5794 * grub-core/net/net.c: Likewise.
5795 * grub-core/normal/menu.c: Likewise.
5796 * grub-core/normal/menu_text.c: Likewise.
5797 * grub-core/normal/misc.c: Likewise.
5798 * util/grub-editenv.c: Likewise.
5799 * util/grub-install.in: Likewise.
5800 * util/grub-kbdcomp.in: Likewise.
5801 * util/grub-mkconfig.in: Likewise.
5802 * util/grub-mknetdir.in: Likewise.
5803 * util/grub-mkrescue.in: Likewise.
5804 * util/grub-mkstandalone.in: Likewise.
5805 * util/grub-reboot.in: Likewise.
5806 * util/grub-set-default.in: Likewise.
5807 * util/grub-setup.c: Likewise.
5808 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5809
40211ab8
VS
58102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5813 * grub-core/commands/keystatus.c: Likewise.
5814 * grub-core/commands/loadenv.c: Likewise.
5815 * grub-core/commands/probe.c: Likewise.
5816 * grub-core/commands/regexp.c: Likewise.
5817 * grub-core/commands/true.c: Likewise.
5818 * grub-core/commands/videoinfo.c: Likewise.
5819 * grub-core/disk/cryptodisk.c: Likewise.
5820 * grub-core/disk/ldm.c: Likewise.
5821 * grub-core/disk/loopback.c: Likewise.
5822 * grub-core/disk/luks.c: Likewise.
5823 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5824 * grub-core/kern/disk.c: Likewise.
5825 * grub-core/kern/emu/hostdisk.c: Likewise.
5826
0c7d99c7
VS
58272012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5830 * util/grub-install.in: Add missing quote in the comment.
5831
e7d2559b
VS
58322012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5835 * grub-core/commands/lsmmap.c: Likewise.
5836 * grub-core/commands/minicmd.c: Likewise.
5837 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5838 * grub-core/commands/regexp.c: Likewise.
5839 * grub-core/gdb/gdb.c: Likewise.
5840 * grub-core/term/gfxterm.c: Likewise.
5841 * util/grub-mkconfig.in: Likewise.
5842 * util/grub-mkfont.c: Likewise.
5843 * util/grub-mklayout.c: Likewise.
5844 * util/grub-mknetdir.in: Likewise.
5845 * util/grub-mkrescue.in: Likewise.
5846 * util/grub.d/30_os-prober.in: Likewise.
5847
49ce9e50
VS
58482012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
5851 with "Direct color" and "Packed" with "Packed pixel".
5852 (grub_cmd_videoinfo): Simplify legend.
5853
e4b791fa
VS
58542012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5857 absolutely unclear error message.
5858
fd1265cb
VS
58592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * util/grub-mkstandalone.in: Remove confusing leftover print.
5862
8822a8a0
VS
58632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5866 comments.
5867 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5868 (GRUB_MOD_INIT): Likewise.
5869 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5870 VGA mode.
5871 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5872 comments.
5873 * util/grub-install.in (usage): Likewise.
5874 Spell ID in whole letters.
5875 Add missing ending dot.
5876 Quote variables.
5877 * util/grub-reboot.in: Fix capitalisation.
5878 * util/grub-set-default.in: Likewise.
5879
937fd0cc
VS
58802012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5883 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5884 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5885 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5886 Disable -Werror for -Wdeprecated-declarations.
5887 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5888 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5889 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5890 (grub_util_get_grub_dev): Make luks handling dependent on
5891 HAVE_DEVICE_MAPPER and not __linux__.
5892 (get_win32_path): Fix format security.
5893 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5894 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5895 Don't try grub_find_zpool_from_dir.
5896 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5897 #ifdef-out paresdir.
5898
1bab1ae3
VS
58992012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 * util/grub-pe2elf.c (usage): Add missing noreturn.
5902 (write_section_data): Rename name to shname to avoid shadowing.
5903 (write_symbol_table): Rename name to symname to avoid shadowing.
5904 Fix write_reloc_section call.
5905
ef023e42
VS
59062012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5909 to ensure that it's after the last byte of .text.
5910
48afcb75
VS
59112012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * util/ieee1275/ofpath.c (my_isdigit): New function.
5914 (trailing_digits): Use my_isdigit.
5915 (strip_trailing_digits): Likewise.
5916
88d51eff
VS
59172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5920 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5921
17edc2ba
VS
59222012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * grub-core/kern/i386/pc/startup.S: Define __start.
5925
ad5518d7
VS
59262012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5929 strip already transforms he format.
5930
9e95e1bf
VS
59312012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5934
9cc3ee5c
VS
59352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 * util/grub-install.in: Add missing gettext init.
5938 * util/grub-kbdcomp.in: Likewise.
5939 * util/grub-mkconfig.in: Likewise.
5940 * util/grub-mknetdir.in: Likewise.
5941 * util/grub-mkrescue.in: Likewise.
5942 * util/grub-mkstandalone.in: Likewise.
5943 * util/grub-reboot.in: Likewise.
5944 * util/grub-set-default.in: Likewise.
5945 * util/grub.d/00_header.in: Likewise.
5946 * util/grub.d/10_hurd.in: Likewise.
5947 * util/grub.d/10_windows.in: Likewise.
5948 * util/grub.d/30_os-prober.in: Likewise.
5949 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5950
49e08a06
VS
59512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * po/Rules-swiss: Fix header comment.
5954
3809cb41
AV
59552012-02-29 Andreas Vogel <anvoit>
5956
5957 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5958 resulted in leak of arguments.
5959
fa6ec573
VS
59602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5963 reed_solomon_size const definition instead of computing it since
5964 Apple assembler doesn't support the later.
5965
22899b9c
VS
59662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * gentpl.py (kernel): Rewrite Apple part.
5969
a132afc3
VS
59702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5973
9d742bd4
VS
59742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5977 ELF section gap.
5978 (load_image): Likewise.
5979
f04a9a21
VS
59802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5981
5982 * configure.ac: Fix a typo in previous commit.
5983
46cf439c
VS
59842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 Don't add -Wl,-N on Apple platform.
5987
5988 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
5989 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
5990
c4c48c54
VS
59912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * grub-core/Makefile.core.def (lzma_decompress): Use
5994 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
5995
31a12124
VS
59962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * grub-core/genmod.sh.in: Rewrite the Apple part.
5999
4f3aa1af
VS
60002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6003 comparison.
6004
7bd8b0c7
VS
60052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 * acinclude.m4 (grub_CHECK_PIC): New test.
6008 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6009
97304d7c
VS
60102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6013 to avoid the warning.
6014
fb883812
VS
60152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6018 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6019 after. All users updated.
6020
a121c964
VS
60212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 Use the common size routine in hostfs so we can read disks as well.
6024
6025 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6026 (grub_util_get_fd_size): ... this. Return size in bytes.
6027 All users updated.
6028 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6029 grub_util_get_fd_size.
6030
c66d6410
VS
60312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6034 Add blocksize retrieval.
6035
dfc8aeb0
VS
60362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * configure.ac: Restore CFLAGS after efiemu check.
6039
403e25a5
VS
60402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6043 Apple bug.
6044
382775d1
VS
60452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6048
6fd4e6e4
VS
60492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6052 (grub_cmd_halt): Likewise.
6053
bea359d6
VS
60542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6057 for local arithmetics.
6058 Break %sp init into 2 instructions.
6059 Add 0 byte at the end.
6060
32eb6ee1
VS
60612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6064 before loops.
6065
e8377389
VS
60662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6069 for context.
6070
8cb17de7
VS
60712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * grub-core/disk/ldm.c (make_vg): Init part.name.
6074 (grub_ldm_detect): Silence spurious warning.
6075 (grub_util_is_ldm): Likewise.
6076
595717e6
VS
60772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6080 sane value to avoid a spurious warning.
6081
c4b7e588
VS
60822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6085 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6086
59824957
VS
60872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6090 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6091
70115b99
VS
60922012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6095 hardcoding the relevant info.
6096
56733740
VS
60972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6100 missing const qualifiers.
6101 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6102
43481481
VS
61032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * util/getroot.c [__APPLE__]: Add missing includes.
6106 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6107
3cb38f01
VS
61082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6111
d9dbf11e
VS
61122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6115 avoid conflicts.
6116
0c42a45d
VS
61172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6120
46c34eb0
VS
61212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6124 and grub_file_close call.
6125
99ce1597
VS
61262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 Add LZSS Mach-O support (needed for new xnu kernelcache).
6129
6130 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6131 * grub-core/loader/lzss.c: New file.
6132 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6133 on Mach-O open failure.
6134 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6135 Don't free cmdsXX in uncompressedXX is set.
6136 (grub_macho_file): Init new fields.
6137 New argument is_64bit. All users updated.
6138 Handle compressed. Error out if no suitable architecture is found.
6139 Don't close file.
6140 (grub_macho_open): New argument is_64bit. All users updated.
6141 * grub-core/loader/macho32.c: Add defines for new fields.
6142 * grub-core/loader/macho64.c: Likewise.
6143 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6144 (grub_macho_parse): Handle compressed.
6145 Defer actual processing if compressed.
6146 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6147 "filename". All users updated.
6148 (grub_macho_size): New argument "filename". All users updated.
6149 (grub_macho_get_entry_point): Likewise.
6150 (grub_macho_load): Handle compressed.
6151 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6152 (GRUB_MACHO_LZSS_OFFSET): New define.
6153 (grub_decompress_lzss): New proto.
6154 * include/grub/machoload.h (grub_macho_file): New fields to handle
6155 compressed.
6156 (grub_macho_contains_macho64): Remove proto.
6157 (grub_macho_contains_macho32): Likewise.
6158 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6159
ebd17d6f
VS
61602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6163
2702b4e4
VS
61642012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 Fix make dist.
6167
6168 * Makefile.am (starfield_theme_files): New var.
6169 (starfield_DATA): Use starfield_theme_files.
6170 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6171 Add bootcheck-related files.
6172 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6173 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6174 and font_char_metrics.txt.
6175 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6176 (setjmp): Add lib/ia64/longjmp.S.
6177 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6178 * po/POTFILES.in: Regenerate.
6179 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6180 DISTFILES.common.extra1.
6181 * util/devicemap.c: Removed.
6182 * grub-core/lib/i386/relocator_backward.S: Likewise.
6183 * util/import_gcry.py: Remove unused files. Add extra_dist for
6184 ChangeLog.
6185
cf1adfdf
VS
61862012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6189 grub_gettext_delete_list before changing grub_gettext_max to avoid
6190 running out of array bounds.
6191
61922012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
6193
6194 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6195 grub_vga_text_init/grub_vga_text_fini.
6196
cf1adfdf 61972012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
6198
6199 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6200
541d92e9
VS
62012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * configure.ac: Bump to 2.00~beta0.
6204
7931dddf
VS
62052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6208 missing initialisation.
6209
f1b16fa3
VS
62102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6213
83ddae23
VS
62142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 Support v2 xnu boot arguments.
6217
6218 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6219 New argument fsbfreq_out.
6220 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6221 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6222 be used.
6223 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6224 darwin_version.
6225 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6226 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6227 (grub_xnu_boot_params): Rename to ...
6228 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6229 (grub_xnu_boot_params_v2): New struct.
6230
dc693fe6
VS
62312012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6234 zeroing of CRC field before computing CRC.
6235
5a6e39c2
VS
62362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6237
6238 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6239 Change order of allocations to decrease fragmentation.
6240
6c21f5d7
VS
62412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6244
cfe456dc
CW
62452012-02-27 Colin Watson <cjwatson@ubuntu.com>
6246
6247 Use write-combining MTRR to speed up video with buggy BIOSes.
6248
6249 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6250 (cpuid): New define.
6251 (rdmsr): Likewise.
6252 (wrmsr): Likewise.
6253 (mtrr_base): Likewise.
6254 (mtrr_mask): Likewise.
6255 (grub_vbe_enable_mtrr_entry): New function.
6256 (grub_vbe_enable_mtrr): Likewise.
6257 (grub_vbe_disable_mtrr): Likewise.
6258 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6259 control off to BIOS.
6260 (grub_video_vbe_init): Fill mtrr.
6261 (grub_video_vbe_fini): Disable mtrr.
6262 (grub_video_vbe_get_info_and_fini): Likewise.
6263 (grub_video_vbe_setup): Enable mtrr.
6264
e3c78337
CW
62652012-02-27 Colin Watson <cjwatson@ubuntu.com>
6266
6267 * include/grub/partition.h (grub_partition_map): Change prototype of
6268 embed to take a maximum value for nsectors.
6269 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6270 * include/grub/fs.h (grub_fs): Likewise.
6271 * grub-core/partmap/msdos.c (embed_signatures): New array.
6272 (pc_partition_map_embed): Check for and avoid sectors matching any
6273 of the signatures in embed_signatures, up to max_nsectors.
6274 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6275 returned sector map to max_nsectors.
6276 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6277 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6278 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6279 * util/grub-setup.c (setup): Allow for the embedding area being
6280 split into multiple blocklists. Tell dest_partmap->embed the
6281 maximum number of sectors we care about.
6282
62832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
6286 Specify blocklist_install and reserver_first_sector for all fs.
6287 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
6288 blocklists.
6289
984b973f
VS
62902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6291
6292 * util/grub-install.in: Clarify strings.
6293 Fix source dir check.
6294
f122e0d6
RL
62952012-02-27 Richard Laager <rlaager@wiktel.com>
6296
6297 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
6298 "zfs" and "fuse.zfs" as synonyms.
6299
071114bb
VS
63002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 * configure.ac: Put platform and target_cpu substitutions back since
6303 they are used for directories.
6304
817e6abc
RL
63052012-02-27 Richard Laager <rlaager@wiktel.com>
63062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * util/grub.d/10_linux.in: Add ZFS-related arguments.
6309 * util/grub.d/20_linux_xen.in: Likewise.
6310
897b7419
RL
63112012-02-27 Richard Laager <rlaager@wiktel.com>
6312
6313 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6314 with full paths.
6315
a414bd15
RL
63162012-02-27 Richard Laager <rlaager@wiktel.com>
6317
6318 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
6319 unescape.
6320
30ac48c4
VS
63212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 Don't use insecure popen in getroot.
6324
6325 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
6326 (exec_pipe): ... here.
6327 (find_root_devices_from_poolname): Use exec_pipe.
6328
53f13848
VS
63292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 Remove platform and target_cpu replacement.
6332
6333 * configure.ac: Remove platform and target_cpu substitutions.
6334 * tests/util/grub-shell.in: Use modinfo.
6335 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
6336 explicitly.
6337
90cb2803
VS
63382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 Autodetect platform in grub-install but allow override.
6341
6342 * util/grub-install.in: Autodetect platform. Support --target and
6343 --directory. Read platform from modinfo.sh.
6344
b9136427
VS
63452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 Support btrfs multi-volume probe.
6348
6349 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
6350 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
6351 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
6352 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
6353 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
6354 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
6355 grub_find_root_devices_from_btrfs if on btrfs.
6356
c36e5cd1
VS
63572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 Remove any awareness of *.c util files about target.
6360
6361 * Makefile.util.def (grub-setup): Split to ...
6362 (grub-bios-setup): ... and this.
6363 (grub-sparc64-setup): ... and this.
6364 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
6365 * docs/man/grub-setup.h2m: Split into ...
6366 * docs/man/grub-sparc64-setup.h2m: ... this.
6367 * docs/man/grub-bios-setup.h2m: ... and this.
6368 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
6369 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
6370 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
6371 (grub_target_addr_t): Remove.
6372 (grub_target_size_t): Remove.
6373 (grub_target_ssize_t): Remove.
6374 * util/grub-install.in: Use new grub-*-setup.
6375 * util/grub-mkimagexx.c (Elf_Word): New define.
6376 (Elf_Half): Likewise.
6377 (Elf_Section): Likewise.
6378 (ELF_ST_TYPE): Likewise.
6379 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
6380 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
6381
584b2f8a
VS
63822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 Replace grub_target_addr with more appropriate types.
6385
6386 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
6387 grub_target_addr with grub_addr.
6388 * grub-core/commands/iorw.c (grub_cmd_read): Replace
6389 grub_target_addr with grub_port.
6390 (grub_cmd_write): Likewise.
6391 * grub-core/commands/memrw.c (grub_cmd_read): Replace
6392 grub_target_addr with grub_addr.
6393 (grub_cmd_write): Likewise.
6394 * grub-core/video/efi_uga.c (find_line_len): Likewise.
6395
5a0dc6fb
VS
63962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
6399 const qualifier for vendor_guid.
6400
786aff6e
VS
64012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
6404 const qualifier.
6405 (efiemu_memequal): Likewise.
6406 (find_variable): Likewise.
6407
49017b17
VS
64082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 Fix missing console prototype on qemu-mips.
6411
6412 * include/grub/mips/qemu_mips/console.h: New file.
6413
c5988629
MG
64142012-02-27 Matthew Garrett <mjg@redhat.com>
64152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
6418 * include/grub/efi/efi.h: Likewise.
6419 * include/grub/efi/api.h: Add guid for EFI-specified variables.
6420 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
6421 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
6422 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
6423 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
6424 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
6425
e33f8d69
MG
64262012-02-27 Matthew Garrett <mjg@redhat.com>
6427
6428 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
6429
fb312cd9
VS
64302012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
6433 error.
6434
7134247c
VS
64352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * configure.ac: Remove inappropriate use of program_transform_name
6438 on grubdir and bootdir but allow explicit specification of those
6439 variables.
6440
6a313124
VS
64412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * util/grub-mknetdir.in (grub_prefix): Removed.
6444 (subdir): Use @bootdirname@ and @grubdirname@.
6445
2311c5ca
VS
64462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
6449
7d5d60f7
VS
64502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 * po/POTFILES.in: Regenerated.
6453
8151bc82
VS
64542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 Remove improper use of program_transform_name on pkglibrootdir.
6457
6458 * configure.ac (pkglibrootdir): Removed.
6459 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
6460 * util/grub-mkimage.c: Likewise.
6461
b4a6a533
VS
64622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
6465 warning.
6466
668f304f
VS
64672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * util/grub-install.in: Use file identifier if no UUID is available
6470 or user explicitly prompted for it.
6471
665f2341
NP
64722012-02-27 Navdeep Parhar <nparhar@gmail.com>
6473
6474 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
6475 (freebsd_get_zfs): New function.
6476 (grub_freebsd_boot): Pass zfs UUID.
6477 (grub_cmd_freebsd): Set zfs UUID.
6478
8151bc82 64792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
6480
6481 * conf/Makefile.common (platformdir): Base on pkglibdir and not
6482 pkglibrootdir.
6483
e4c498a1
MG
64842012-02-27 Mike Gilbert <floppym@gentoo.org>
6485
6486 Add configure flag to control libzfs integration.
6487
6488 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
6489
1e9a9a3f
VS
64902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
6493 device.
6494 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
6495 small devices.
6496
036985b8
VS
64972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Remove grub_{modname}_init and grub_{modname}_fini. They should never
6500 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
6501 be used on non-modules.
6502
6503 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
6504 Rename to grub_boot_init.
6505 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
6506 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
6507 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
6508 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
6509 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
6510 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
6511 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
6512 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
6513 includes.
6514 (grub_machine_init): Remove empty inits.
6515 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
6516 includes.
6517 (grub_machine_init): Remove empty inits.
6518 * grub-core/term/arc/console.c: Remove explicit proto.
6519 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
6520 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
6521 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6522 grub_at_keyboard_fini.
6523 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
6524 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
6525 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6526 grub_gfxterm_fini.
6527 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
6528 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
6529 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6530 grub_vgatext_fini.
6531 * grub-core/term/ieee1275/console.c: Remove explicit proto.
6532 * grub-core/term/serial.c (GRUB_MOD_INIT)
6533 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
6534 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6535 grub_serial_fini.
6536 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
6537 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
6538 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6539 grub_terminfo_fini.
6540 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
6541 (GRUB_MOD_FINI): Likewise.
6542 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
6543 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
6544 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6545 grub_video_radeon_fuloong2e_fini.
6546 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
6547 [LOONGSON]: Rename to grub_video_sis315pro_init.
6548 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6549 grub_video_sis315pro_fini.
6550 * grub-core/video/sm712.c (GRUB_MOD_INIT)
6551 [LOONGSON]: Rename to grub_video_sm712_init.
6552 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6553 grub_video_sm712_fini.
6554 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
6555 (grub_at_keyboard_fini): Likewise.
6556 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
6557 Don't declare grub_{modname}_init.
6558 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
6559 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
6560 New proto.
6561 (grub_keylayouts_fini) [!EMU]: Likewise.
6562 * include/grub/serial.h (grub_serial_init) [!EMU]:
6563 New proto.
6564 (grub_serial_fini) [!EMU]: Likewise.
6565 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
6566 New proto.
6567 (grub_terminfo_fini) [!EMU]: Likewise.
6568 * include/grub/video.h (grub_font_init) [!EMU]:
6569 New proto.
6570 (grub_font_fini) [!EMU]: Likewise.
6571 (grub_gfxterm_init) [!EMU]: Likewise.
6572 (grub_gfxterm_fini) [!EMU]: Likewise.
6573 (grub_video_sm712_init) [!EMU]: Likewise.
6574 (grub_video_sm712_fini) [!EMU]: Likewise.
6575 (grub_video_sis315pro_init) [!EMU]: Likewise.
6576 (grub_video_sis315pro_fini) [!EMU]: Likewise.
6577 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
6578 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
6579
d5534665
VS
65802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6581
6582 Make nand a prefix for nand devices.
6583
6584 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
6585
10133b5f
VS
65862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
6589 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
6590
8e307a62
VS
65912012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * include/grub/env.h (grub_env_find): Remove prototype.
6594 * grub-core/kern/env.c (grub_env_find): Make static.
6595 (grub_env_set): Remove useless set.
6596
a4c65f34
VS
65972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 * grub-core/kern/i386/realmode.S: Remove useless align.
6600
d87893d5
VS
66012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * include/grub/dl.h (grub_dl_load_file): Don't export.
6604
50159add
VS
66052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
6608 grub_dprintf.
6609
b2582b84
VS
66102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
6613 grub_errors.
6614 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
6615 not reloading whole superblock but only the part which is really needed.
6616 Remove useless grub_errors.
6617 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
6618 grub_errors.
6619
e2a83395
VS
66202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Don't export grub_get_rtc.
6623
6624 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
6625 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
6626
e7d2a906
VS
66272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
6630
6cf1363b
VS
66312012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 6634 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 6635
eece3349
VS
66362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 Remove prio_list.
6639
6640 * include/grub/list.h (grub_prio_list): Removed.
6641 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
6642 GRUB_COMMAND_PRIO_MASK.
6643 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
6644 GRUB_COMMAND_FLAG_ACTIVE.
6645 (grub_prio_list_insert): Removed.
6646 (grub_prio_list_remove): Likewise.
6647 (GRUB_AS_PRIO_LIST): Likewise.
6648 (GRUB_AS_PRIO_LIST_P): Likewise.
6649 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
6650 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
6651 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
6652 * grub-core/kern/command.c (grub_register_command_prio): Inline
6653 the prio_list code.
6654 (grub_unregister_command): Likewise.
6655
94f064b4
VS
66562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 Fix interrupt mixup from previous commit.
6659
6660 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
6661 (grub_realidt): New var.
6662 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
6663 Load idt.
6664 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
6665 New declaration.
6666 (grub_relocator16_boot): Set grub_relocator16_idt.
6667 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
6668 (LOCAL(realidt)): ... this.
6669 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
6670 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
6671 (grub_realidt): New variable.
6672
27317084
VS
66732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
6676 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
6677 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
6678 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
6679 Gettextize.
6680 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
6681 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
6682 * po/POTFILES.in: Regenerate.
6683
47b40053
VS
66842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
6687 errors.
6688
2b343101
VS
66892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6690
6691 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
6692 \0.
6693 (add_length): Likewise.
6694
ff27c3dd
LK
66952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
66962012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
6697
6698 GDB serial and backtrace support.
6699
6700 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
6701 (prot_to_real): Likewise.
6702 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
6703 * grub-core/Makefile.core.def (backtrace): New module.
6704 (gdb): Likewise.
6705 * grub-core/gdb/cstub.c: New file.
6706 * grub-core/gdb/gdb.c: Likewise.
6707 * grub-core/gdb/i386/idt.c: Likewise.
6708 * grub-core/gdb/i386/machdep.S: Likewise.
6709 * grub-core/gdb/i386/signal.c: Likewise.
6710 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 6711 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
6712 * include/grub/backtrace.h: Likewise.
6713 * include/grub/gdb.h: Likewise.
6714 * include/grub/i386/gdb.h: Likewise.
6715
67162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
6717
6718 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
6719 New function.
6720 (add_length): Likewise.
6721 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
6722 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
6723 proto.
6724 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
6725 __argp_get_display_len.
6726
ff27c3dd 67272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
6728
6729 $"..." support in scripts.
6730
6731 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
6732 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
6733 * grub-core/script/yylex.l: Likewise.
6734 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
6735 value.
6736
ff27c3dd 67372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
6738
6739 * gentpl.py: Remove obsolete pkglib_DATA handling.
6740
ff27c3dd 67412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
6742
6743 Don't transform PACKAGE_TARNAME following a discussion on autoconf
6744 mailing list.
6745
6746 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
6747 * util/grub-kbdcomp.in: Likewise.
6748 * util/grub-mkconfig.in: Likewise.
6749 * util/grub-mkconfig_lib.in: Likewise.
6750 * util/grub-mknetdir.in: Likewise.
6751 * util/grub-mkrescue.in: Likewise.
6752 * util/grub-mkstandalone.in: Likewise.
6753 * util/grub-reboot.in: Likewise.
6754 * util/grub-set-default.in: Likewise.
6755 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6756
ff27c3dd 67572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
6758
6759 Remove GRUB_PREFIX.
6760
6761 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
6762 * util/grub.d/00_header.in: Compute prefix in the only place it's still
6763 used for backward compatibility.
6764
ff27c3dd 67652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
6766
6767 Add new all_video module.
6768
6769 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
6770 * grub-core/Makefile.core.def (all_video): New module.
6771 * grub-core/genmoddep.awk: Generate dependency of all_video from
6772 video.lst.
6773 * grub-core/lib/fake_module.c: New file.
6774 * grub-core/normal/main.c (features): Add feature_all_video_module.
6775 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
6776 don't do explicit search again.
47454da5 6777 insmod all_video in load_video if available.
22c7ce85 6778
ff27c3dd 67792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
6780
6781 Another round of string clarification and adding TRANSLATORS comments.
6782
ff27c3dd 67832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
6784
6785 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
6786
ff27c3dd 67872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
6788
6789 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
6790 to grub_ssize_t.
6791 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
6792 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
6793
ff27c3dd 67942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
6795
6796 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
6797 trailing newline implicitly. All users updated.
6798
ff27c3dd 67992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
6800
6801 Implement serial on IEEE1275 and EFI.
6802
6803 * docs/grub.texi (Platform-specific limitations): Fix the columen video
6804 on emu. Mention arc and emu as the only platforms without serial
6805 support.
6806 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
6807 ieee1275 platforms.
6808 * grub-core/term/efi/serial.c: New file.
6809 * grub-core/term/ieee1275/serial.c: Likewise.
6810 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6811 specification if no ns8250 driver is available.
6812 (grub_cmd_serial): Likewise.
6813 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6814 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6815 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6816 (grub_efi_parity_type_t): New type.
6817 (grub_efi_stop_bits_t): Likewise.
6818 (grub_efi_serial_io_interface): New struct.
6819 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6820 available for all interfaces.
6821 Add EFI and IEEE1275 fields.
6822 (grub_ofserial_init): New proto.
6823 (grub_efiserial_init): Likeiwse.
6824 * util/grub.d/00_header.in: Don't check for the presence of serial
6825 module.
6826
ff27c3dd 68272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6828
6829 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6830 name as if it was an alias.
6831
114076ef
VS
68322012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6833
6834 * grub-core/commands/lsacpi.c (options): Fix typo.
6835
6a656b0e
VS
68362012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 Convert grub-emu to argp.
6839
6840 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6841 emu.
6842 * util/argp_common.c: Rename to ...
6843 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6844 Add missing includes.
6845 * grub-core/kern/emu/main.c: Convert to argp.
6846 * po/POTFILES.in: Regenerate.
6847 * util/grub-install.in (usage): Make first letter lowcase in messages
6848 for uniformity.
6849 * util/grub-setup.c (options): Likewise.
6850
1e3f8ae8
VS
68512012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
6854 Put back accidently commented-out code.
6855
ed167a80
VS
68562012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
6859 loop check using Brent algorithm.
6860 (grub_hfsplus_btree_search): Likewise.
6861
6753c0ec
VS
68622012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 * util/grub-install.in: Fix usage of wrong device for PreP install.
6865
4e27343f
VS
68662012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * conf/Makefile.common (CFLAGS_GNULIB): Add
6869 -Wno-unsafe-loop-optimizations.
6870 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6871 on tools.
6872 * grub-core/commands/legacycfg.c: Add pragma to skip
6873 -Wunsafe-loop-optimizations.
6874 (check_password_md5_real): Fix loop counter type.
6875 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6876 reading.
6877 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6878 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6879 loop condition.
6880 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6881 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6882 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6883 condition.
6884 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6885 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6886 avoid possible infinite loops.
6887 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6888 and -Wunsafe-loop-optimizations.
6889 * grub-core/script/yylex.l: Likewise.
6890 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6891 (print_glyphs): Avoid infinite loops.
6892 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6893
697f18b0
GS
68942012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6895
6896 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6897 to avoid infinite loop.
6898 (disp_acpi_rsdt_table): Likewise.
6899
274416e8
VS
69002012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/font/font.c (grub_font_load): Add support for default
6903 path for fonts ($prefix/fonts).
6904 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6905 for checking if string is a path.
6906 * grub-core/normal/main.c (features): Add feature_default_font_path.
6907 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6908 * util/grub.d/00_header.in: Use default directory if possible.
6909 * util/grub-install.in: Install unicode.pf2.
6910
b3e08622
VS
69112012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6914 * po/Rules-swiss: New file.
6915 * po/swiss.sed: Likewise.
6916
fe42ce09
VS
69172012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * grub-core/fs/btrfs.c (find_device): Fix typos.
6920 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6921 * util/grub-mkrelpath.c (argp_parser): Likewise.
6922 Reported by: Yuri Chornoivan.
6923
72f1d065
DO
69242012-02-23 Dalet Omega <daletomega@gmail.com>
6925
6926 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6927 for usual informative messages.
6928
c5884973
DO
69292012-02-23 Dalet Omega <daletomega@gmail.com>
6930
6931 Starfield theme.
6932
6933 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6934 * conf/Makefile.common: Define starfielddir.
6935 * configure.ac: Configure starfield.
6936 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6937 * themes/starfield/README: Likewise.
6938 * themes/starfield/blob_w.png: Likewise.
6939 * themes/starfield/boot_menu_c.png: Likewise.
6940 * themes/starfield/boot_menu_e.png: Likewise.
6941 * themes/starfield/boot_menu_n.png: Likewise.
6942 * themes/starfield/boot_menu_ne.png: Likewise.
6943 * themes/starfield/boot_menu_nw.png: Likewise.
6944 * themes/starfield/boot_menu_s.png: Likewise.
6945 * themes/starfield/boot_menu_se.png: Likewise.
6946 * themes/starfield/boot_menu_sw.png: Likewise.
6947 * themes/starfield/boot_menu_w.png: Likewise.
6948 * themes/starfield/slider_c.png: Likewise.
6949 * themes/starfield/slider_n.png: Likewise.
6950 * themes/starfield/slider_s.png: Likewise.
6951 * themes/starfield/src/blob_nw.xcf: Likewise.
6952 * themes/starfield/src/bootmenu/: Likewise.
6953 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6954 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6955 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6956 * themes/starfield/src/slider_c.xcf: Likewise.
6957 * themes/starfield/src/slider_n.xcf: Likewise.
6958 * themes/starfield/src/slider_s.xcf: Likewise.
6959 * themes/starfield/src/terminalbox/: Likewise.
6960 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6961 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6962 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6963 * themes/starfield/starfield.png: Likewise.
6964 * themes/starfield/terminal_box_c.png: Likewise.
6965 * themes/starfield/terminal_box_e.png: Likewise.
6966 * themes/starfield/terminal_box_n.png: Likewise.
6967 * themes/starfield/terminal_box_ne.png: Likewise.
6968 * themes/starfield/terminal_box_nw.png: Likewise.
6969 * themes/starfield/terminal_box_s.png: Likewise.
6970 * themes/starfield/terminal_box_se.png: Likewise.
6971 * themes/starfield/terminal_box_sw.png: Likewise.
6972 * themes/starfield/terminal_box_w.png: Likewise.
6973 * themes/starfield/theme.txt: Likewise.
6974
17d73325
VS
69752012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 * util/grub.d/00_header.in: Add missing export theme.
6978
dbebaf92
VS
69792012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6982 already included.
6983 Reported by: Eren D.
6984
3d68bffb
VS
69852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * conf/Makefile.common (grubdatadir): Removed.
6988 (Makefile.am): Move eveything grubdata to pkgdata.
6989
4b59234d
VS
69902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 * grub-core/commands/acpihalt.c (get_sleep_type):
6993 Remove unused variable.
6994
463dcadc
VS
69952012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
6998 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
6999 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7000 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7001 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7002 i18n with gettext no-op.
7003 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7004 GRUB_ACPI_OPCODE_STRING_CONST.
7005 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7006 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7007
e5b90c82
VS
70082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * po/POTFILES.in: Regenerate.
7011
2a704ca9
VS
70122012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7015 -Wno-error=missing-noreturn.
7016
84f9d341
VS
70172012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7020 condition to avoid possibly infinite loops.
7021 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7022 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7023
d46683f9
VS
70242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7027 condition to avoid possibly infinite loops.
7028
c44866b2
VS
70292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7032 on show_error.
7033
96790539
VS
70342012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7037
1ba7e295
VS
70382012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7041
21ffe8f1
VS
70422012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 * util/bin2h.c (usage): Add missing attribute noreturn.
7045
0ccb6b3c
VS
70462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7049 if the size isn't divisible by 512.
7050
b00d7fb6
VS
70512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 Make list_push and list_remove functions rather than inline functions
7054 to decrease size and avoid aliasing violations.
7055
7056 * include/grub/list.h (grub_list_push): Move to ...
7057 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7058 * include/grub/list.h (grub_list_remove): Move to ...
7059 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7060
9d369087
VS
70612012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7062
7063 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7064 and -Wunused-result.
7065
af0250d9
VS
70662012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7069 Reported by: Seth Goldberg
7070
aad32b14
VS
70712012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7074
ac96441c
ST
70752012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7076
7077 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7078 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7079 command line.
7080 * docs/grub.texi (Simple configuration): Document
7081 GRUB_CMDLINE_GNUMACH.
7082
70832012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
7084
7085 * conf/Makefile.common (platform_SCRIPTS): New variable.
7086 (platform_PROGRAMS): Likewise.
7087 * gentpl.py: Mark *,module and *.image for install.
7088 * grub-core/gdb_grub.in: Add a notice of expected environment.
7089 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7090 (gmodule.pl): Likewise.
7091
ac96441c 70922012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
7093
7094 Replace grub_checkkey with grub_getkey_noblock.
7095
7096 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7097 (grub_getkey_noblock): ... this. All users updated.
7098
ac96441c 70992012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
7100
7101 * grub-core/kern/emu/console.c: Move to ...
7102 * grub-core/term/emu/console.c: ...here.
7103 (grub_ncurses_getkey): Fix return value if no key is detected.
7104
e51b5666
VS
71052012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7108 (grub_unit_test_fini): Likewise.
7109 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7110
71112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * include/grub/test.h (GRUB_UNIT_TEST)
7114
d9a62292
VS
71152012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7118 Better error handling.
7119 (grub_script_return): Likewise.
7120 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7121
77c9182f
VS
71222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7125 rimplicit redifinition.
7126
edb13cf9
VS
71272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7130 GRUB.
7131
a9e9dc7c
VS
71322012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7135 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7136 prompt here.
7137
b4ba8e02
VS
71382012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7141 as GRUB_ERR_BUG. Don't malloc if no device is available.
7142
dded5540
VS
71432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7146 Mark calling with invalid term as GRUB_ERR_BUG.
7147
0cf69874
VS
71482012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7151 packets rather than raising an error.
7152
59bfe502
VS
71532012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7156 in if.
7157
db5fc596
VS
71582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7161 diagnostic to dprintf.
7162 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7163
e4b7f404
VS
71642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7167 device name.
7168
e7b02f9e
VS
71692012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7170
7171 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7172 (grub_ntfs_iterate_dir): Likewise.
7173
0331e102
VS
71742012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 Efiemu stylistic fixes and gettext.
7177
7178 * grub-core/efiemu/i386/loadcore32.c
7179 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7180 * grub-core/efiemu/i386/loadcore64.c
7181 (grub_arch_efiemu_relocate_symbols64): Likewise.
7182 * grub-core/efiemu/i386/pc/cfgtables.c
7183 (grub_machine_efiemu_init_tables): Likewise.
7184 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7185 (grub_efiemu_loadcore_initXX): Add a filename argument.
7186 All users updated.
7187 Improved error message.
7188 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7189 Add a filename argument.
7190 All users updated.
7191 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7192 Reclassify double relocation as GRUB_ERR_BUG.
7193
306fc074
VS
71942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7197 handling.
7198
794d8ef2
VS
71992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7202 on partition.
7203
72042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
7205
7206 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7207
794d8ef2 72082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
7209
7210 Improve string. Gettextize.
7211
78dde88e
VS
72122012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7215 utils.
7216 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7217
4786a90f
VS
72182012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7221 [GRUB_UTIL]: New function.
7222 (insert_array) [GRUB_UTIL]: Store partmaps.
7223 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7224 partmaps.
7225 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7226 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7227 (probe_abstraction): Print diskfilter and not raid.
7228 Reported by: Lennart Sorensen
7229
0b6225bd
VS
72302012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7233 * util/grub-mkimagexx.c (MASK3): New define.
7234 (add_value_to_slot_20b): Use MASK3.
7235 (add_value_to_slot_21): Likewise.
7236 (relocate_addresses): Fix format specification.
7237 (load_image): Explicitly init symtab_section.
7238
b055f8f6
VS
72392012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7242 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7243
b77c2fb7
VS
72442012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7247 on powerpc.
7248 Reported by: Lennart Sorensen
7249
e3ec28ab
VS
72502012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 * gentpl.py: Add missing license header.
7253 * docs/grub.texi: Update copyright year.
7254
c8d9ead6
GS
72552012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7256
7257 Source grub-mkconfig_lib from the build directory at build time.
7258 Suggested by: Vladimir Serbinenko.
7259
7260 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7261 * util/grub-install.in: Define pkgdatadir if not already set, and source
7262 grub-mkconfig_lib from there.
7263 * util/grub-kbdcomp.in: Likewise.
7264 * util/grub-mkconfig.in: Likewise.
7265 * util/grub-mknetdir.in: Likewise.
7266 * util/grub-mkrescue.in: Likewise.
7267 * util/grub-mkstandalone.in: Likewise.
7268 * util/grub-reboot.in: Likewise.
7269 * util/grub-set-default.in: Likewise.
7270 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7271
ebcecdf1
VS
72722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 Increase warning level.
7275
7276 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7277 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7278 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7279 (TARGET_CFLAGS): Likewise.
7280 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7281 * grub-core/Makefile.core.def (decompressor_xz): Add
7282 -Wno-unreachable-code.
7283 (normal): Add -Wno-redundant-decls.
7284 (xzio): Add -Wno-unreachable-code.
7285 (lzopio): Add -Wno-redundant-decls -Wno-error.
7286 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
7287 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
7288 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
7289 * grub-core/kern/dl.c: Add exception to -Wcast-align.
7290 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
7291 * grub-core/kern/i386/coreboot/init.c: Add exception to
7292 -Wsuggest-attribute=noreturn.
7293 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
7294 * grub-core/kern/ia64/dl_helper.c: Likewise.
7295 * grub-core/kern/mips/dl.c: Likewise.
7296 * grub-core/kern/sparc64/dl.c: Likewise.
7297 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
7298 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
7299 (memcmp): Likewise.
7300 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
7301 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
7302 * grub-core/loader/mips/linux.c: Likewise.
7303 * grub-core/loader/multiboot_elfxx.c: Likewise.
7304 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
7305 * grub-core/video/sm712.c: Add exception to -Wcast-align.
7306 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
7307 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
7308 fixme.
7309 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7310 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
7311 Fix prototype.
7312
37bb97fe
VS
73132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
7316 address.
7317
29a3550b
VS
73182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7321 Avoid improper use of strings.
7322 (grub_cmd_legacy_initrdnounzip): Likewise.
7323
dfdffd0d
VS
73242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * include/grub/emu/misc.h (grub_util_warn): Add missing format
7327 attribute.
7328 (grub_util_info): Likewise.
7329 (grub_util_error): Likewise.
7330
102fae4a
VS
73312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
7334 * util/grub-fstest.c (fstest): Likewise.
7335
7e94d044
VS
73362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
7339 (grub_md_sha512_real): Likewise.
7340 (grub_util_get_geli_uuid): Likewise.
7341 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
7342 (grub_util_biosdisk_open): Fix format specification.
7343 Respect format security.
7344 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
7345 (xrealloc): Likewise.
7346 (xasprintf): Likewise.
7347
5ebd9769
VS
73482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * util/import_gcry.py: Include grub/crypto.h in init.c.
7351
495fc8c1
VS
73522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
7355 (generate_image): Make prefix a const char *.
7356 Fix format specifications. Respect format security.
7357 Avoid void * arithmetics.
7358 Avoid shadowing.
7359 (argp_parser): Remove unused variable. Respect format security.
7360 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
7361 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
7362 (count_funcs): Remove unused variable.
7363 (relocate_addresses): Fix format specification.
7364 Disable x86-64 with elf32. Remove unused variables.
7365 (add_fixup_entry): Avoid shadowing.
7366 (make_reloc_section): Fix format specification.
7367 Use assert.
7368 (locate_sections): Fix format specifications.
7369 (load_image): Avoid shadowing.
7370
043c2ea3
VS
73712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
7374 Fix format specifications. Respect format security.
7375 Don't translate already translated grub_errmsg.
7376 (argp_parser): Remove unused variable
7377
3ec65a81
VS
73782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
7381
a4d9fe4a
VS
73822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
7385 (main): Likewise. Use xmalloc. Respect format security.
7386
15b81d49
VS
73872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
7390 a const char *.
7391 (argp_parser): Remove unused variable.
7392
31731fc0
VS
73932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7394
7395 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
7396 (add_pixel): Make static.
7397 (add_font): Likewise.
7398 (write_string_section): Make name and str a const char *.
7399 (write_be16_section): Make name a const char *.
7400 (print_glyphs): Make static.
7401 (write_font_ascii_bitmap): Likewise.
7402 (write_font_width_spec): Likewise.
7403 (write_font_pf2): Likewise.
7404 (argp_parser): Remove unused variable.
7405 Respect format security.
7406 (main): Avoid shadowing. Respect format security.
7407
0809527b
VS
74082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * util/grub-editenv.c (argp_parser): Make static.
7411 (create_envblk_file): Use xmalloc.
7412 (open_envblk_file): Likewise.
7413 Resepect format security.
7414 (set_variables): Respect format security.
7415
45b0c8b7
VS
74162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 * util/getroot.c (grub_find_device): Respect format security.
7419 (get_mdadm_uuid): Remove unused variable.
7420 (grub_util_pull_device): Dont call gettext on already translated
7421 grub_errmsg.
7422 (find_system_device): Remove unused variable.
7423 (grub_util_get_grub_dev): Likewise.
7424 (grub_make_system_path_relative_to_its_root): Respect format security.
7425
1b024b4e
VS
74262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * util/grub-fstest.c (execute_command): Make first argument
7429 a const char *.
7430 (read_file): Avoid shadowing.
7431 Reuse underlying error message if device open fails.
7432 (cmd_cmp): Respect format security.
7433 (root): Make const char *.
7434 (fstest): Remove args argument and use global copy.
7435 Respect format security.
7436 (argp_parser): Make static.
7437 (main): Make default_root const char *.
7438
5d1d4e28
VS
74392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * util/grub-mount.c (root): Make const char *.
7442 (execute_command): Make first argument a const char *.
7443 (fuse_init): Respect format security.
7444 (argp_parser): Make static. Remove unused variable.
7445 (main): Make default_root a const char *.
7446 Respect format security.
7447
36eb7379
VS
74482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * util/grub-probe.c (probe): Don't call gettext on already translated
7451 grub_errmsg.
7452 Remove unused variables.
7453 (argp_parser): Remove unused variable.
7454
76fb2ea9
VS
74552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * util/grub-script-check.c (argp_parser): Remove unused variable.
7458 (main): Rename read to curread to avoid shadowing.
7459
56c98584
VS
74602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * util/misc.c (grub_util_write_image_at): Fix format specification.
7463 (grub_util_write_image): Likewise.
7464 (grub_script_execute_argument_to_string): Removed (unused).
7465 (grub_script_execute_menuentry): Likewise.
7466 (grub_putchar): Likewise.
7467
164ebb48
VS
74682012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
7471 (FUNCTION) [GRUB_UTIL]: Likewise.
7472 (VARIABLE) [GRUB_UTIL]: Likewise.
7473
44318d61
VS
74742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
7477 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
7478
31a26002
VS
74792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
7482 buffer.
7483
74842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
7487 (LzmaEnc_SaveState): Removed (unused).
7488 (LzmaEnc_RestoreState): Likewise.
7489 (LzmaEnc_InitPriceTables): Made static.
7490 (LzmaEnc_Construct): Likewise.
7491 (LzmaEnc_FreeLits): Likewise.
7492 (LzmaEnc_Destruct): Likewise.
7493 (LzmaEnc_Init): Likewise.
7494 (LzmaEnc_InitPrices): Likewise.
7495 (LzmaEnc_Finish): Likewise.
7496 (LzmaEnc_PrepareForLzma2): Removed (unused).
7497 (LzmaEnc_MemPrepare): Likewise.
7498 (LzmaEnc_GetNumAvailableBytes): Likewise.
7499 (LzmaEnc_GetCurBuf): Likewise.
7500 (LzmaEnc_CodeOneMemBlock): Likewise.
7501
6fa67967
VS
75022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
7505 (grub_util_ldm_embed): Likewise.
7506
9a7428e6
VS
75072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * util/grub-editenv.c (print_var): Rename name to varname to
7510 avoid shadowing.
7511 (main): Rename index to curindex to avoid shadowing.
31a26002 7512 Make filename a const char *.
9a7428e6 7513
4f96abd1
VS
75142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7517 to arg_getline to avoid shadowing.
7518
44d10dad
VS
75192012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
7522 disk_ to avoid shadowing.
7523
340ba63e
VS
75242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
7527 curindex to avoid shadowing.
7528 Make static.
7529 (MatchFinder_GetNumAvailableBytes): Make static.
7530
22965bce
VS
75312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
7534 avoid shadowing.
7535
7b5784d4
VS
75362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
7539 argument from encrypt to do_encrypt to avoid shadowing.
7540
6f48ca01
VS
75412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
7544 incorrect nesting of #if's.
7545
a4ea2dff
VS
75462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
7549 checks which are always false on some platforms.
7550 (grub_cmd_lsacpi): Likewise.
7551 * grub-core/kern/misc.c (grub_strtoul): Likewise.
7552 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
7553 Likewise.
7554
def9fc1b
VS
75552012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7556
7557 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
7558 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
7559
a67b2a04
VS
75602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
7563 re_dfa_t to avoid breaking alignment invariants.
7564 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
7565 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
7566
44c6828d
VS
75672012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7568
7569 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
7570 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
7571
bebe0dd0
VS
75722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
7575 Fix declaration.
7576
a9cdb3cf
VS
75772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7578
7579 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
7580 conserve alignment invariants.
7581 (grub_ehci_ehcc_read16): Likewise.
7582 (grub_ehci_oper_read32): Likewise.
7583 (grub_ehci_oper_write32): Likewise.
7584 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7585 Conserve alignment invariants.
7586
ccc3b1b8
VS
75872012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7588
7589 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
7590 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
7591 declarations.
7592
987fbd95
VS
75932012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
7596 Remove unused variable.
7597
0df363f3
VS
75982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
7601 Remove set in if.
7602
b2c0c4a6
VS
76032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * include/grub/net.h: Remove double declarations.
7606
690c531f
VS
76072012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 Remove "payload" command in ia64 Linux loader since I couldn't
7610 find any evidence of it being used for anything.
7611 Replace "relocate" command with an environment variable
7612
7613 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
7614 fields.
7615 (ia64_boot_payload): Removed.
7616 (last_payload): Likewise.
7617 (RELOCATE_OFF): Likewise.
7618 (RELOCATE_ON): Likewise.
7619 (RELOCATE_FORCE): Likewise.
7620 (relocate): Likewise.
7621 (free_pages): Don't free payloads.
7622 (grub_load_elf64): Use common error messages.
7623 Use "linux_relocate" variable.
7624 Increase the space after boot_params.
7625 (grub_cmd_payload): Removed.
7626 (grub_cmd_relocate): Likewise.
7627 (grub_cmd_fpswa): Improve messages.
7628 (cmd_payload): Removed.
7629 (cmd_relocate): Likewise.
7630 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
7631 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
7632
01783768
VS
76332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 Convert UHCI to DMA framework.
7636
7637 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
7638 (grub_uhci_pci_iter): Fill new members
7639 (grub_alloc_td): Use P2V and V2P functions.
7640 (grub_free_queue): Likewise.
7641 (grub_alloc_qh): Likewise.
7642 (grub_uhci_setup_transfer): Likewise.
7643 (grub_uhci_check_transfer): Likewise.
7644
43206939
VS
76452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
7648 Remove assignment in if while on it.
7649
571e140e
VS
76502012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * util/grub-mkstandalone.in: Fix modules directory.
7653
a9d96eeb
VS
76542012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
7657 on i386-pc target.
7658 (argp_parser): Accept "auto" as compression specification.
7659
e4e37e8d
VS
76602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 Fix `help' with unloaded modules.
7663
7664 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
7665 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
7666 (grub_dyncmd_dispatcher): Small stylistic fix.
7667 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
7668 explicit help is requested.
7669
e1ea3ade
VS
76702012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
7673 Explicitly init restart while on it.
7674
27556881
VS
76752012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
7678 uninited variable.
7679
d65f6b36
VS
76802012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * util/grub-mknetdir.in: Use . rather than source for POSIX
7683 compatibility.
7684
0a1e473c
VS
76852012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
7688
ce6647c8
VS
76892012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
7692 variable.
7693
66747894
VS
76942012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
7697 without quotes.
7698
71645f6e
VS
76992012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
7702
0e1c1f61
VS
77032012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
7706 iteration of partitions.
7707
9c4b5c13
VS
77082012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 Improve gettext support. Stylistic fixes and error handling fixes while
7711 on it.
7712
215c90cb
VS
77132012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
7716 part. Instead setup the correct stack in RM.
7717 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
7718 for stack.
7719 * include/grub/i386/relocator_private.h: New file.
7720
b5c1f9bf
VS
77212012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
7724 argument.
7725 * util/grub-fstest.c (options): Add missing DEVICE part.
7726
b525fd83
VS
77272012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Clarify and unify messages.
7730
7731 * grub-core/commands/hashsum.c (options): Unify messages.
7732 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
7733 literal-only message as translatable.
7734 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
7735 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
7736 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
7737 commands.
7738 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
7739 key, not the key used to unlock. Clarify what it's used for.
7740 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
7741 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
7742 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
7743 * util/grub-editenv.c (options): Unify "verbose" message.
7744 * util/grub-fstest.c (read_file): Unify error message.
7745 (fstest): Add quotes around commands.
7746 (options): Unify "verbose" message.
7747 * util/grub-install.in: Add quotes around variable name.
7748 * util/grub-kbdcomp.in: Unify error message.
7749 * util/grub-mkfont.c (main): Likewise.
7750 * util/grub-mkrescue.in: Likewise.
7751 * util/grub-mklayout.c (options): Unify "verbose" message.
7752 * util/grub-mkstandalone.in: Unify help and verbose messages.
7753 * util/grub-mount.c (options): Unify "verbose" message.
7754 * util/grub-probe.c (options): Likewise.
7755 * util/grub-script-check.c (options): Likewise.
7756 * util/grub-setup.c (setup): Unify no-terminator message.
7757 (options): Use DEVICE and not DEV.
7758 Unify "verbose" message.
7759 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
7760
0ae70393
VS
77612012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 Improve and unify messages.
7764
7765 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
7766 name. All users updated.
7767 Print filename in error.
7768 (read_device_map): Print filename in error.
7769 * util/getroot.c (grub_guess_root_devices): Print filename in error.
7770 (grub_util_get_os_disk): Likewise.
7771 (grub_util_biosdisk_get_grub_dev): Likewise.
7772 (grub_util_check_block_device): Likewise.
7773 (grub_util_check_char_device): Likewise.
7774 (grub_make_system_path_relative_to_its_root): Likewise.
7775 * util/grub-editenv.c (create_envblk_file): Likewise.
7776 (open_envblk_file): Likewise.
7777 (write_envblk): Likewise.
7778 * util/grub-fstest.c (cmd_cp): Likewise.
7779 (cmd_cat): Likewise.
7780 (cmd_cmp): Likewise.
7781 * util/grub-menulst2cfg.c (main): Likewise.
7782 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
7783 (write_font_width_spec): Likewise.
7784 (write_font_pf2): Likewise.
7785 * util/grub-mkimage.c (generate_image): New argument outname.
7786 All users updated.
7787 Remove unreacheable message.
7788 (options): Unify messages.
7789 (help_filter): Likewise.
7790 * util/grub-mklayout.c (usage): Removed (unused).
7791 (main): Print filename in error.
7792 * util/grub-mkrescue.in: Fix wrong quoting.
7793 * util/grub-setup.c (setup): Print filename in error.
7794 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
7795 (check_sas): Likewise.
7796 * util/misc.c (grub_util_get_fp_size): Removed.
7797 (grub_util_get_image_size): Print filename in error.
7798 (grub_util_read_at): Removed.
7799 (grub_util_read_image): Print filename in error.
7800 (grub_util_load_image): Likewise.
7801 (grub_util_write_image_at): New argument filename. All users updated.
7802 Print filename in error.
7803 (grub_util_write_image): New argument filename. All users updated.
7804 Print filename in error.
7805 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
7806 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
7807
0a96117d
VS
78082012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * grub-core/Makefile.core.def (pxechain): New module.
7811 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7812 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7813 function.
7814 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7815 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7816
aca002f7
VS
78172012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7820 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7821 * include/grub/err.h (grub_error_saved): New struct.
7822 (grub_errmsg): Make array size explicit.
7823 * include/grub/misc.h (grub_error_save): New function.
7824 (grub_error_load): Likewise.
7825 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7826 (grub_error_push): Update `errno' member name.
7827 (grub_error_pop): Likewise
7828 * grub-core/net/tftp.c (tftp_data): New member save_err.
7829 (tftp_receive): Save error.
7830 (tftp_open): Restore error.
7831
a51dab13
VS
78322012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7835 to real mode down to execute A20-related code in protected mode as
7836 intended.
7837
eb6e6649
GS
78382012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7839
7840 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7841 NULL when the argument `level' has an unexpected value.
7842
92cd0f6e
VS
78432012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7844
7845 Move platform-dependent files from $prefix to $prefix/$platform.
7846
7847 * config.h.in (GRUB_TARGET_CPU): New definition.
7848 (GRUB_PLATFORM): Likewise.
7849 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
7850 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
7851 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7852 * grub-core/kern/dl.c (grub_dl_load): Likewise.
7853 * grub-core/normal/autofs.c (read_fs_list): Likewise.
7854 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
7855 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
7856 * grub-core/normal/term.c (read_terminal_list): Likewise.
7857 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
7858 $prefix/locale.
7859 (grub_gettext_init_ext): Likewise.
7860 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7861 grub_platform.
7862 * util/grub-install.in: Update directories.
7863 * util/grub-mknetdir.in: Likewise.
7864 * util/grub-mkrescue.in: Likewise.
7865
db606889
VS
78662012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7867
7868 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7869 grub_error framework. All users updated.
7870
c39992a4
VS
78712012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7872
7873 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7874 lists (by always binsearching), improve caching (cache strings
7875 used for binsearch, not only results), improve
7876 maintainability (by using more structured binary search) and correct
7877 error handling.
7878
1e5ec32f
VS
78792012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7880
7881 * grub-core/script/execute.c (grub_script_return): Fix warning.
7882
ac576cde
VS
78832012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 * grub-core/script/execute.c (grub_script_return): Fix potential
7886 NULL-dereference.
7887 Reported by: Jim Meyering.
7888
498453f6
VS
78892012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7890
7891 * po/POTFILES.in: Regenerate.
7892 * util/grub-install.in: Gettextize the strings missed in first pass.
7893
8be63f2e
VS
78942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 * Makefile.util.def (grub-mkdevicemap): Removed.
7897 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7898 * include/grub/util/deviceiter.h: Removed.
7899 * util/deviceiter.c: Likewise.
7900 * util/getroot.c (grub_util_get_os_disk): New function.
7901 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7902 replacement for EFI.
7903 * util/grub-mkdevicemap.c: Removed.
7904 * util/grub-probe.c (probe): Handle PRINT_DISK.
7905 (argp_parser): Handle -t disk.
7906
8e1e4e39
VS
79072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * util/grub-mkfont.c: Migrate to argp.
7910 * util/grub-mklayout.c: Likewise.
7911 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7912 * util/grub-mkrelpath.c: Likewise.
7913 * util/grub-probe.c: Likewise.
7914 * util/grub-script-check.c: Likewise.
7915
4459819a
VS
79162012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 * util/grub-reboot.in: Add missing datarootdir.
7919 Add missing newline.
7920 * util/grub-set-default.in: Add missing datarootdir.
7921 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7922 * util/grub-mkrescue.in: Likewise.
7923
f65741c7
VS
79242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7927
c1a33466
VS
79282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * util/grub-kbdcomp.in: Add decent help and gettextize.
7931 * docs/man/grub-kbdcomp.h2m: New file.
7932
c76899a0
VS
79332012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 Migrate grub-mkimage.c to argp.
7936
7937 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7938 (grub-setup): Likewise.
7939 * util/grub-setup.c (print_version): Move to ...
7940 * util/argp_common.c (print_version): ... here.
7941 * util/grub-setup.c (argp_program_version_hook): Move to ...
7942 * util/argp_common.c (argp_program_version_hook): ... here.
7943 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7944 safety.
7945 * util/grub-mkimage.c (main): Migrate to argp.
7946
57db0757
VS
79472012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7948
7949 * util/grub-mkrescue.in: Use same message as
7950 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7951 for better translations.
7952
18534ad9
VS
79532012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7956 options with generic grub-mkrescue.in with the goal of future
7957 merge.
7958
c84ba308
VS
79592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7960
7961 * grub-core/kern/mm.c: Add missing include of i18n.h
7962 * grub-core/lib/relocator.c: Likewise.
7963
347998c2
VS
79642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7967 error.
7968 (allocate_pages): Check return value.
7969 Replace fatal with error.
7970 (grub_linux_boot): Replace printf with dprintf.
7971 Check find_mmap_size return value.
7972 Replace fatal with error.
7973 Don't call grub_machine_fini.
7974 (grub_load_elf64): Replace printf with dprintf.
7975 (grub_cmd_linux): Likewise.
7976 (grub_cmd_initrd): Likewise.
7977 (grub_cmd_payload): Likewise.
7978
c779226e
VS
79792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7980
7981 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7982 message.
7983 * grub-core/video/radeon_fuloong2e.c
7984 (grub_video_radeon_fuloong2e_setup): Likewise.
7985 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
7986 * grub-core/video/video.c (grub_video_set_mode): Don't override
7987 standard out of memory message.
7988
dc87d45a
GS
79892012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7990
7991 NetBSD disk wedge support.
7992
7993 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
7994 [__NetBSD__]: Handle NetBSD disk wedges.
7995 * util/getroot.c (convert_system_partition_to_system_disk)
7996 [__NetBSD__]: Likewise.
7997
055f856f
MW
79982012-02-03 Mark Wooding <mdw@distorted.org.uk>
7999
8000 * util/grub-mkconfig.in: Use umask rather than chmod to create
8001 grub.cfg.new to avoid insecure grub.cfg.
8002
4a9f8346
VS
80032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * grub-core/commands/ls.c: Gettextize.
8006 * grub-core/commands/setpci.c: Likewise.
8007 * grub-core/commands/videotest.c: Likewise.
8008 * grub-core/disk/geli.c: Likewise.
8009 * grub-core/kern/mm.c: Likewise.
8010 * grub-core/lib/relocator.c: Likewise.
8011 * grub-core/loader/efi/appleloader.c: Likewise.
8012 * grub-core/loader/i386/xnu.c: Likewise.
8013 * grub-core/loader/ia64/efi/linux.c: Likewise.
8014 * grub-core/loader/xnu.c: Likewise.
8015 * grub-core/net/dns.c: Likewise.
8016 * grub-core/net/net.c: Likewise.
8017 * grub-core/script/lexer.c: Likewise.
8018 * grub-core/script/parser.y: Likewise.
8019 * grub-core/script/yylex.l: Likewise.
8020 * util/getroot.c: Likewise.
8021 * util/grub-setup.c: Likewise.
8022
a646a366
VS
80232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8026 number.
8027
54e2be26
VS
80282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8031
f7c71e68
VS
80322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8033
8034 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8035 macro.
8036 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8037 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8038
a32d5c71
VS
80392012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8042 * util/grub-install.in: Gettextize.
8043 * util/grub-mkconfig.in: Likewise.
8044 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8045 if not available.
8046 (grub_warn): Gettextize.
8047 * util/grub-mknetdir.in: Gettextize.
8048 * util/grub-mkrescue.in: Likewise.
8049 * util/grub-mkstandalone.in: Likewise.
8050 * util/grub-reboot.in: Likewise.
8051 * util/grub-set-default.in: Likewise.
8052 * util/grub.d/00_header.in: Likewise.
8053 * util/grub.d/10_hurd.in: Likewise.
8054 * util/grub.d/10_kfreebsd.in: Likewise.
8055 * util/grub.d/10_linux.in: Likewise.
8056 * util/grub.d/10_netbsd.in: Likewise.
8057 * util/grub.d/10_windows.in: Likewise.
8058 * util/grub.d/20_linux_xen.in: Likewise.
8059 * util/grub.d/30_os-prober.in: Likewise.
8060 * po/POTFILES-shell.in: Regenerate.
8061
69edd81a
RL
80622012-02-03 Richard Laager <rlaager@wiktel.com>
8063
8064 * util/grub-mkimage.c (main): Fix format-security warning.
8065 * util/grub-mkrelpath.c (main): Likewise.
8066 * util/grub-probe.c (main): Likewise.
8067
65f08dbf
RL
80682012-02-03 Richard Laager <rlaager@wiktel.com>
8069
8070 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8071 failure.
8072 Put back lost PRINT_DRIVE.
8073
e9084abe
RL
80742012-02-03 Richard Laager <rlaager@wiktel.com>
8075
8076 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8077 (grub_guess_root_devices): Replace strlen with sizeof.
8078 Avoid crash.
8079 (find_root_devices_from_poolname): Remove unused variable.
8080 Handle raidzN.
8081
cf5f7ee7
VS
80822012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 Support install on multi-device filesystems.
8085
8086 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8087 (grub_guess_root_devices): ...this. Return char **. All users updated.
8088 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8089 Removed.
8090 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8091 (find_root_devices_from_poolname): ... here.
8092 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8093 Support zfs-fuse.
8094 (grub_guess_root_device): Rename to ...
8095 (grub_guess_root_devices): ... this. Return char **. All users updated.
8096 * util/grub-install.in: Handle multi-device filesystems.
8097 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8098 argument. All users updated.
8099 Handle multi-device filesystems.
8100 Use 'delim' as separator.
8101 Remove device check to allow filesystems on file.
8102 (main): Support -0 argument. Handle multi-device.
8103 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8104 Fix a cross-device check while on it.
8105 (arguments): Remove root_dev.
8106 (argp_parser): Remove -r.
8107 (main): Remove root_dev.
8108
2f53a9ed
VS
81092012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8110
8111 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8112
17e1d934
VS
81132012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8116 symbol.
8117 Reported by: NODA, Kai <nodakai>.
8118
d3e3fab5
VS
81192012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 Fix ehci on amd64.
8122
8123 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8124 pointers.
8125 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8126 (grub_ehci_setup_qh): Likewise.
8127 (grub_ehci_find_qh): Likewise.
8128 (grub_ehci_transaction): Likewise.
8129 (grub_ehci_setup_transfer): Likewise.
8130 (grub_ehci_check_transfer): Likewise.
8131 (grub_ehci_portstatus): Likewise.
8132 (grub_ehci_detect_dev): Likewise.
8133 (grub_ehci_transfer_controller_data): New field td_last_phys.
8134 (grub_ehci_setup_transfer): Fill td_last_phys.
8135 (grub_ehci_check_transfer): Use td_last_phys.
8136
3008675b
SG
81372012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8138
8139 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8140 if no submenu is present.
8141
fc9b5652
AN
81422012-02-01 Aleš Nesrsta <starous@volny.cz>
8143
8144 CBI support.
8145
8146 * include/grub/usb.h (grub_usbms_protocol_t): New values
8147 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8148 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8149 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8150 (grub_usbms_dev): Add subclass, protocol and intrpt.
8151 Remove in_maxsz and out_maxsz.
8152 (grub_usbms_reset): Rename to ...
8153 (grub_usbms_bo_reset): .. this.
8154 (grub_usbms_cbi_cmd): New function.
8155 (grub_usbms_cbi_reset): Likewise.
8156 (grub_usbms_reset): Likewise.
8157 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8158 (grub_usbms_transfer): Rename to ...
8159 (grub_usbms_transfer_bo): ... this.
8160 (grub_usbms_transfer_cbi): Likewise.
8161 (grub_usbms_transfer): Likewise.
8162
a2b81d53
AN
81632012-02-01 Aleš Nesrsta <starous@volny.cz>
81642012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8167 the support for the CS5536 modification thereos and few bugfixes.
8168
8169 * grub-core/Makefile.core.def (ehci): New module.
8170 * grub-core/bus/usb/ehci.c: New file.
8171 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8172 port and hubaddr. All users updated.
8173 Save port and hubaddr into dev structure.
8174 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8175 define.
8176 * include/grub/pci.h (grub_dma_phys2virt): New function.
8177 (grub_dma_virt2phys): Likewise.
8178 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8179
b1d51f02
VS
81802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8183 check as some mkfs implementations omit it.
8184
fc694106
VS
81852012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8188
6c0920e3
VS
81892012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8192 Add new member volname2.
8193 (grub_jfs_label): Use volname2 if available.
8194
d1a46f9a
VS
81952012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8198 over last_mounted as seen in image generated by mkfs.nilfs2.
8199 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8200
dec8ed14
VS
82012012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8204 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8205 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8206
7397c69b
VS
82072012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8208
8209 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8210 over the sector.
8211
b3fe42ad
VS
82122012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8215 subvolume name (by removing a bogus and useless check).
8216
10476bb0
VS
82172012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8218
8219 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8220 sizeof while on it.
8221
9c08ad87
VS
82222012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8225 (grub_scsi_read_capacity10): ... this.
8226 (grub_scsi_read_capacity16): New function.
8227 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8228 0xffffffff.
8229 Fix off-by-one error.
8230 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8231 64-bit unsigned.
8232 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8233 (grub_scsi_read_capacity10): ... this.
8234 (grub_scsi_read_capacity_data): Rename to ...
8235 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8236 (grub_scsi_read_capacity16): New struct.
8237 (grub_scsi_read_capacity16_data): Likewise.
8238 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8239 grub_scsi_cmd_read_capacity10.
8240 New command grub_scsi_cmd_read_capacity16.
8241
bc8d0f45
VS
82422012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8243
8244 SCSI >2TiB support.
8245
8246 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8247 (grub_scsi_write16): Likewise.
8248 (grub_scsi_read): Use read16 when necessary.
8249 (grub_scsi_write): Likewise.
8250 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8251 (grub_scsi_write16): Likewise.
8252 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8253
cc774926
VS
82542012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 SCSI write support (for usbms mainly).
8257
8258 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8259 a const pointer.
8260 (grub_scsi_write): Implement.
8261 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8262
67639fd7
VS
82632012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8266 variable.
8267
9079d3ed
VS
82682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8271
c6a6f204
VS
82722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * po/POTFILES.in: Regenerate.
8275
ecbf8cd1
VS
82762012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8279 with grub_printf to avoid unnecessary fatal failure.
8280
0b3b3b38
VS
82812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8284 (INT_MAX): Likewise.
8285 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
8286 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
8287 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
8288 (strcpy): Likewise.
8289 (strstr): Likewise.
8290 (strchr): Likewise.
8291 (strncpy): Likewise.
8292 (strcat): Likewise.
8293 (strncat): Likewise.
8294 (strcoll): Likewise.
8295 * include/grub/types.h (GRUB_SHRT_MAX): New define.
8296 (GRUB_INT_MAX): Likewise.
8297
db7337a3
VS
82982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
8301 unexpected error.
8302 (optimize_utf8): Likewise.
8303 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
8304
f37c87e1
VS
83052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 * grub-core/boot/i386/pc/lnxboot.S: Use
8308 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
8309 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
8310 location.
8311 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
8312 definition.
8313 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
8314
63fe43f3
VS
83152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
8318 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
8319 now to avoid double free.
8320 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
8321 hostdisk.
8322 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
8323 * util/grub-probe.c (escape_of_path): Always return a new copy.
8324 (print_full_name): Escape path.
8325 (probe): Don't call grub_util_devname_to_ofpath on NULL.
8326 Fix hints on abstractions.
8327
ebe2c961
VS
83282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
8331 Don't add "root" line if no compatibility hont is available.
8332 Suggested by: Seth Goldberg.
8333
2b5336a2
VS
83342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
8337 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
8338 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
8339 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
8340
74310bd8
VS
83412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
8344
c30582ba
VS
83452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * util/grub-pe2elf.c (ehdr): Make static.
8348 (shdr): Likewise.
8349 (num_sections): Likewise.
8350 (offset): Likewise.
8351
5f47782c
VS
83522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 Eliminate ofpath limits and possible overflows.
8355
8356 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
8357 (OF_PATH_MAX): Removed.
8358 (MAX_DISK_CAT): New const.
8359 (find_obppath): Use allocated rather than preallocated buffer.
8360 Return result. Argument of_path removed. All users updated.
8361 Add missing fdstat.
8362 (xrealpath): New function.
8363 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
8364 Allocate rather than use preallocated buffer. All users updated.
8365 (__of_path_common): Use allocated rather than preallocatecd buffer.
8366 Return result. Argument of_path removed. All users updated.
8367 (vendor_is_ATA): Read only needed part form the file.
8368 (check_sas): Allocate depending on contents rather than fixed.
8369 (main) [STANDALONE]: Handle NULL result.
8370
f990cbf9
VS
83712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * grub-core/normal/completion.c (iterate_dev): Close the disk.
8374
9c6e84b8
VS
83752012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 Cryptodisk write support.
8378
8379 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
8380 (grub_cryptodisk_decrypt): Moved logic to ...
8381 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
8382 (grub_cryptodisk_write): Implement.
8383 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
8384 (grub_util_fd_write): ... this. Make global.
8385 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
8386
87cf9744
VS
83872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8388
8389 * include/grub/list.h (grub_list_remove): Don't crash if element is
8390 removed twice.
8391
ca8c0baf
VS
83922012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 Rename ofconsole to console.
8395
8396 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
8397 as sysnonym to console.
8398 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
8399 * grub-core/term/ieee1275/console.c: ... this. All users updated.
8400 Rename grub_ofconsole_ to grub_console_. All users updated
8401 (grub_console_term_output): Rename "ofconsole" to "console".
8402 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
8403 as "console".
8404
64c8b8f6
VS
84052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
8408 handling.
8409 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
8410 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
8411 GRUB_DISK_DEVICE_FILE_ID.
8412
f6c434d5
VS
84132012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
8416 and improve performance.
8417
5858b42d
VS
84182012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
8421 missing ieee1275/ prefix on whole disk.
8422
4ed3c26b
VS
84232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
8426 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
8427
df71143e
VS
84282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
8431
076e7c0f
VS
84322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 Merge common RAID and LVM logic to an abstract diskfilter.
8435 Add LDM support using the same framework.
8436
8437 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
8438 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
8439 (libgrubmods): Remove grub-core/disk/raid.c and
8440 grub-core/partmap/gpt.c.
8441 * grub-core/Makefile.core.def (ldm): New module.
8442 (raid): Renamed to diskfilter. All users updated.
8443 * grub-core/disk/raid.c: Moved to ...
8444 * grub-core/disk/diskfilter.c: ... here.
8445 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
8446 (lv_num): New var.
8447 (find_array): Renamed to ...
8448 (find_lv): ... this. Support multi-LV. Skip nameless LVs
8449 (grub_is_array_readable): Renamed to ...
8450 (grub_is_lv_readable): ... this. Support multinode hierarchy.
8451 (insert_array): New argument id.
8452 (is_node_readable): New function.
8453 (scan_device): Rename to ...
8454 (scan_disk): .. this. Restrict to one disk.
8455 (scan_devices): New function.
8456 (grub_diskfilter_iterate): Support multi-LV.
8457 Skip invisible and nameless LVs.
8458 (grub_diskfilter_memberlist): Support multi-LV.
8459 (grub_diskfilter_read_node): New function.
8460 (grub_raid_read): Most of logic moved to ...
8461 (read_segment): ... here
8462 (read_lv): New function.
8463 (grub_diskfilter_get_vg_by_uuid): New function.
8464 (grub_diskfilter_make_raid): Likewise.
8465 * grub-core/disk/ldm.c: New file.
8466 * grub-core/disk/lvm.c (vg_list): Removed.
8467 (lv_count): Likewise.
8468 (scan_depth): Likewise.
8469 (is_lv_readable): Likewise.
8470 (grub_lvm_getvalue): Advance pointer past the number.
8471 (find_lv): Removed.
8472 (do_lvm_scan): Refactored into ...
8473 (grub_lvm_detect): ... this. Support raid.
8474 (grub_lvm_iterate): Removed.
8475 (grub_lvm_memberlist): Likewise.
8476 (grub_lvm_open): Likewise.
8477 (grub_lvm_close): Likewise.
8478 (read_lv): Likewise.
8479 (read_node): Likewise.
8480 (is_node_readable): Likewise.
8481 (is_lv_readable): Likewise.
8482 (grub_lvm_read): Likewise.
8483 (grub_lvm_write): Likewise.
8484 (grub_lvm_dev): Use diskfilter
8485 (GRUB_MOD_INIT): Likewise.
8486 (GRUB_MOD_FINI): Likewise.
8487 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
8488 new interface.
8489 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
8490 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8491 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
8492 grub_diskfilter_read_node.
8493 Fix a bug with xor.
8494 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
8495 grub_diskfilter_read_node.
8496 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
8497 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
8498 (grub_disk_dev_iterate): Move from here...
8499 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
8500 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8501 Make global.
8502 (grub_hostdisk_find_partition_start): Likewise.
8503 (grub_hostdisk_os_dev_to_grub_drive): New function.
8504 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
8505 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
8506 * util/getroot.c (make_device_name): ... here.
8507 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8508 Move to ...
8509 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
8510 * grub-core/kern/emu/hostdisk.c
8511 (convert_system_partition_to_system_disk): Move to ...
8512 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
8513 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
8514 * util/getroot.c (device_is_wholedisk): ... here.
8515 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
8516 * util/getroot.c (find_system_device): ... here.
8517 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
8518 Move to ...
8519 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
8520 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8521 Move to ...
8522 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
8523 Handle LDM.
8524 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
8525 Move to ...
8526 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
8527 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
8528 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
8529 DISKFILTER.
8530 * include/grub/raid.h: Renamed to ...
8531 * include/grub/diskfilter.h: ... this.
8532 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
8533 (GRUB_RAID_LAYOUT_*): Make into array.
8534 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
8535 (grub_diskfilter_vg): New struct.
8536 (grub_diskfilter_pv_id): Likewise.
8537 (grub_raid_member): Removed.
8538 (grub_raid_array): Likewise.
8539 (grub_diskfilter_pv): New struct.
8540 (grub_diskfilter_lv): Likewise.
8541 (grub_diskfilter_segment): Likewise.
8542 (grub_diskfilter_node): Likewise.
8543 (grub_diskfilter_get_vg_by_uuid): New proto.
8544 (grub_raid_register): Inline.
8545 (grub_diskfilter_unregister): Likewise.
8546 (grub_diskfilter_make_raid): New proto.
8547 (grub_diskfilter_vg_register): Likewise.
8548 (grub_diskfilter_read_node): Likewise.
8549 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
8550 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
8551 (grub_util_is_ldm): Likewise.
8552 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
8553 (grub_hostdisk_find_partition_start): Likewise.
8554 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
8555 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
8556 New definition.
8557 (grub_gpt_partition_map_iterate): New proto.
8558 * include/grub/lvm.h (grub_lvm_vg): Removed.
8559 (grub_lvm_pv): Likewise.
8560 (grub_lvm_lv): Likewise.
8561 (grub_lvm_segment): Likewise.
8562 (grub_lvm_node): Likewise.
8563 * util/getroot.c [...]
8564 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
8565 (probe_abstraction): Likewise.
8566 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
8567 (main): Remove dead logic.
8568
8a7f9b9c
VS
85692012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 Simplify root device discover and don't fail when trying to open
8572 incorrect devices.
8573
8574 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
8575 function.
8576 (get_diskname_from_path): Likewise.
8577 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
8578 of iterating.
8579
30545b85
VS
85802012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
8583
28ea58cf
VS
85842012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
8587 pastthe end.
8588
692dabca
VS
85892012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 * util/grub-install.in: Add missing \.
8592 Reported by: gentoofan
8593
f6e4ea70
VS
85942012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
8597 (direct_read): Use correct compressed size.
8598 (grub_squash_read_data): Likewise.
8599
86002012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
8601
8602 * docs/grub.texi (Platform limitations): New section.
8603 (Platform-specific operations): Likewise.
8604 * docs/grub-dev.texi (Porting): Likewise.
8605
76261110
VS
86062012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 IEEE1275 disk write support.
8609
8610 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
8611 const void *.
8612 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
8613 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
8614 and seek loginc to ...
8615 (grub_ofdisk_prepare): ... here.
8616 (grub_ofdisk_write): Implement.
8617
fc36d603
VS
86182012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 ARC disk write support.
8621
8622 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
8623 (reopen): New argument writable. All users updated.
8624 Handle required access mode.
8625 (grub_arcdisk_write): Implement.
8626 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
8627 (grub_arc_firmware_vector): Make buffer to write a const buffer.
8628
e06c2e7a
VS
86292012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
8632 (read_sblock): Don't attempt to read superblocks outside the disk size.
8633
ff447958
VS
86342012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
8637 first superblock to find the second one when possible.
8638
9e88df39
VS
86392012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * util/grub-install.in: Fix an ARC bug.
8642 Print a warning if no platform-specific setup is available.
8643
bb26e4ff
VS
86442012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 Use static allocation rather than scratch pointer in reed_solomon.
8647 It decreases its size significantly and avoids a variable in .text.
8648
8649 * grub-core/lib/reed_solomon.c (scratch): Removed.
8650 (chosenstat): New const or static array.
8651 (sigma): Likewise.
8652 (errpot): Likewise.
8653 (errpos): Likewise.
8654 (sy): Likewise.
8655 (mstat): Likewise.
8656 (errvals): Likewise.
8657 (eqstat): Likewise.
8658 (pol_evaluate): Replace x with log_x argument. All users updated.
8659 (syndroms): Removed.
8660 (gauss_solve): Use statically allocated arrays.
8661 (rs_recover): Likewise.
8662 Calculate syndroms directly.
8663 (decode_block): Use statically allocated arrays.
8664 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
8665 (main) [TEST]: Allow -DTEST -DSTANDALONE.
8666
2e13ede5
VS
86672012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 Eliminate fixed limit on reed solomon decoder length.
8670
8671 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
8672 rather than hardcoding the address.
8673 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
8674 no_reed_solomon_length.
8675 Move gate_a20 to no-reed-solomon part.
8676 Don't force a particular size of no reed-solomon part.
8677 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8678 Removed.
8679 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
8680 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
8681
f8a9ab12
VS
86822012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/commands/wildcard.c (match_files): Handle filenames
8685 without explicit device.
8686 (wildcard_expand): Don't add explicit device if not already present.
8687 * tests/grub_script_echo1.in: Add a new expansion test.
8688
87edb894
VS
86892012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 Replace single-linked with double-linked lists. It results in more
8692 compact and more efficient code.
8693
8694 * grub-core/kern/list.c (grub_list_push): Moved from here ...
8695 * include/grub/list.h (grub_list_push): ... to here. Set prev.
8696 (grub_list_remove): Moved from here ...
8697 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
8698 (grub_prio_list_insert): Set prev.
8699 * include/grub/list.h (grub_list): Add prev. All users updated.
8700
48b391e9
VS
87012012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 Handle newer autotools. Add some missing quotes while on it.
8704
8705 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
8706 (pkglib_DATA): Move grub-mkconfig_lib from here ...
8707 (pkgdata_DATA): ... here.
8708 * Makefile.util.def (update-grub_lib): Removed.
8709 * conf/Makefile.common (pkglib_DATA): Removed.
8710 (pkglib_SCRIPTS): Likewise.
8711 (pkgdata_DATA): New variable.
8712 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
8713 needed.
8714 Add missing quotes.
8715 Remove unused variable while on it.
8716 * tests/util/grub-shell.in: Likewise.
8717 * util/grub-install.in: Likewise.
8718 * util/grub-mkconfig.in: Likewise.
8719 * util/grub-mknetdir.in: Likewise.
8720 * util/grub-mkrescue.in: Likewise.
8721 * util/grub-mkstandalone.in: Likewise.
8722 * util/grub.d/00_header.in: Likewise.
8723 * util/grub.d/10_hurd.in: Likewise.
8724 * util/grub.d/10_illumos.in: Likewise.
8725 * util/grub.d/10_kfreebsd.in: Likewise.
8726 * util/grub.d/10_linux.in: Likewise.
8727 * util/grub.d/10_netbsd.in: Likewise.
8728 * util/grub.d/10_windows.in: Likewise.
8729 * util/grub.d/20_linux_xen.in: Likewise.
8730 * util/grub.d/30_os-prober.in: Likewise.
8731 * util/update-grub_lib.in: Removed.
8732
87332012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
8734
8735 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
8736 a workaround for intel problem.
8737
66832792
PRP
87382012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
87392012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
87402012-01-23 pfsmorigo
8741
8742 * util/grub-install.in: Support dd'in into PreP partition.
8743 * util/grub-probe.c (probe): Support discovering partition type.
8744 (main): Support -t msdos_parttype.
8745
7816a17e
VS
87462012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
8749 infinite recursion using counter.
8750 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
8751 init to skip it if the magic check fails.
8752 (dec_stream_header): Init s->crc32.
8753
8f9d3a8c
ZB
87542012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
87552012-01-22 Zachary Bedell <pendorbound@gmail.com>
87562012-01-22 Richard Laager <rlaager@wiktel.com>
8757
8758 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
8759 All users updated.
8760 (find_bestub): Determine correct size.
8761 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
8762 (scan_disk): Align the size down.
8763 Call check pool before find_bestub to have ashift.
8764
b055dd32
VS
87652012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
8768 dprintf in no-malloc zone.
8769
d779e9bd
ML
87702012-01-22 Mario Limonciello <mario_limonciello@dell.com>
8771
8772 * configure.ac: Add back in test for limits.h.
8773
b508af69
VS
87742012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 Support 4K-sector NTFS.
8777
8778 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
8779 (grub_ntfs_data): Remove blocksize.
8780 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
8781 Remove data argument. All users updated.
8782
dad9c8b5
VS
87832012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
8786 being in .text to avoid dprel references.
8787 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
8788 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
8789 (grub_arch_highmemsize): Likewise.
8790 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
8791 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
8792 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
8793
d43a777e
VS
87942012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
8797
8798 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
8799 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
8800
34e4208f
VS
88012012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8802
8803 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
8804 GRUB_UTIL.
8805 (grub_set_datetime_cmos): Likewise.
8806
3ec0fc1c
VS
88072012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 Make XZ compression parameters dependent on target and not host CPU.
8810
8811 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8812 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8813
22489834
VS
88142012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8817 set but not used variable.
8818
8502fbca
VS
88192012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8822 created when no uuid support is compiled into mkfs.reiser.
8823
76df2068
VS
88242012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8827 (utf8_to_macroman): Do the opposite.
8828 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8829
64e3f8f6
VS
88302012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8831
8832 * configure.ac: Refise build qemu_mips w/o unifont.
8833
9c271078
VS
88342012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 Eliminate grub_min/grub_max prone to overflow usage.
8837
8838 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8839 (poll_nonroot_hub): Likewise.
8840 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8841 (grub_affs_label): Likewise.
8842 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8843 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8844 (grub_hfs_label): Likewise.
8845 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
8846 * grub-core/fs/zfs/zfs.c (MIN): Remove.
8847 (zap_leaf_array_equal): Use grub_size. Remove MIN.
8848 (zap_leaf_array_get): Likewise.
8849 (dnode_get_path): Likewise.
8850 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
8851 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
8852 * grub-core/script/execute.c (grub_script_break): Likewise.
8853 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
8854 grub_max.
8855 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
8856 * include/grub/misc.h (grub_min): Removed.
8857 (grub_max): Likewise.
8858
80662dbc
VS
88592012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8860
8861 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8862 direct.inode = 0.
8863
e6da1467
VS
88642012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8867
b1ac4cb1
VS
88682012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8871
b4bf7c3b
VS
88722012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8875 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8876
8ee1101a
VS
88772012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8880 rather than a hack for grub_strncasemap.
8881
88822012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 Support multiple initrds
8885 Note: part of this was accidently committed in r3739.
8886
8887 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8888 initrd.
8889 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8890 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8891 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8892 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8893 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8894
4d1e2bc9
VS
88952012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8898 disks with unknown size.
8899 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8900
75b49ebe
VS
89012012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 Remove defines pertaining to arbitrary limits not affecting GRUB
8904 anymore.
8905
8906 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8907 (EXT2_MAX_SYMLINKCNT): Likewise.
8908 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8909 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8910 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8911 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8912 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8913 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8914 (DN_MAX_OBJECT_SHIFT): Likewise.
8915 (DN_MAX_OFFSET_SHIFT): Likewise.
8916 (DN_MAX_OBJECT): Likewise.
8917 (DNODES_PER_LEVEL_SHIFT): Likewise.
8918 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8919 (SPA_MAXBLOCKSIZE): Likewise.
8920 (SPA_BLOCKSIZES): Likewise.
8921 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8922 (MZAP_MAX_BLKSZ): Likewise.
8923
74a1dce7
VS
89242012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8927 handle NULL appropriately.
8928 Remove MIN.
8929
30c7d3ce
VS
89302012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 Fix efiemu.
8933
8934 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8935 cpu/types.h.
8936 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8937 * configure.ac: Fix efiemu check.
8938
3c76ea0c
VS
89392012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8942 grub_probe.
8943 Reported by: adamwill
8944
7e532280
SG
89452012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8946
8947 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8948
30492374
VS
89492012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 Fix handling of wide characters in gfxterm.
8952
8953 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8954 (clear_char): Likewise.
8955 (paint_char): Skip code == NULL chars.
8956 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8957
e70cb72f
VS
89582012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * grub-core/normal/charset.c: Move comment to right place.
8961
5c827cf9
VS
89622012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8965 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8966 (grub_affs_mount): Revert the correct version checking.
8967
53603892
VS
89682012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * docs/grub.texi (Unicode): Mention several other unsupported features.
8971
ff094b9b
VS
89722011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8975 case statements as compile-time one.
8976 (direct_read): Prevent spurious warnings.
8977 (grub_squash_read_data): Likewise.
8978
c029da8a
VS
89792011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 Various squash4 fixes and LZO and XZ support.
8982
8983 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
8984 Add xzembed source files.
8985 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
8986 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
8987 (grub_squash_inode): New subtype long_dir.
8988 (SQUASH_TYPE_LONG_DIR): New inode type.
8989 (COMPRESSION): New enum.
8990 (XZBUFSIZ): New const.
8991 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
8992 (read_chunk): Use data->decompress.
8993 (zlib_decompress): New function.
8994 (lzo_decompress): Likewise.
8995 (xz_decompress): Likewise.
8996 (squash_mount): Set new data fields.
8997 (grub_squash_iterate_dir): Handle long dir.
8998 (squash_unmount): Free xzdec and xzbuf.
8999 (grub_squash_open): Check ino type.
9000 (direct_read): Stylistic fixes. Use data->decompress.
9001 (grub_squash_read_data): Likewise.
9002 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9003 (get_byte): Likewise.
9004 (grub_zlib_disk_read): Removed.
9005 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9006 (GRUB_POSIX_BOOL_DEFINED): New define.
9007 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9008 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9009 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9010 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9011
7a45a539
VS
90122011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 Don't override more informative errors.
9015
9016 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9017 * grub-core/font/font.c (open_section): Likewise.
9018 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9019 filename. Don't override errors.
9020 (grub_cmd_openbsd_ramdisk): Don't override errors.
9021 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9022 (grub_cmd_initrd): Likewise.
9023 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9024 (grub_cmd_initrd): Likewise.
9025 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9026 (grub_cmd_linux): Likewise.
9027 (grub_cmd_initrd): Likewise.
9028 (grub_cmd_payload): Likewise.
9029 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9030 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9031 (grub_cmd_module): Likewise.
9032 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9033 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9034 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9035 (grub_cmd_xnu_mkext): Likewise.
9036 (grub_cmd_xnu_ramdisk): Likewise.
9037 (grub_xnu_check_os_bundle_required): Likewise.
9038 (grub_xnu_load_kext_from_dir): Likewise.
9039 (grub_cmd_xnu_kextdir): Likewise.
9040 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9041
b2d004db
VS
90422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9045 as 1024 in block size field. Found on one of my test images.
9046 Small optimisation while on it.
9047
ec000eac
VS
90482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9051 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9052 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9053 performance fixes while on it.
9054 (grub_sfs_close): Fix memory leak while on it.
9055 (grub_sfs_label): Convert Latin1 to UTF-8.
9056
f50e1165
VS
90572011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9060 space to avoid overflows.
9061 (grub_hfs_label): Convert from macroman to UTF-8.
9062
2ae254de
VS
90632011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9066
0108f491
VS
90672011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9070
f45f5f89
VS
90712011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 * unicode: Import Unicode 6.0 data.
9074
4d8c4765
VS
90752011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9076
63fa8ef9
VS
9077 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9078 outside of range.
9079
90802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
9083
9084 * include/grub/charset.h (grub_getend): New function.
9085 * grub-core/script/function.c (grub_script_function_find): Use
9086 grub_getend.
9087 * grub-core/normal/completion.c (add_completion): Likewise.
9088
f3cb4a4e
VS
90892011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9092 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9093 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9094 (GRUB_UNICODE_TAG_END): Likewise.
9095 (GRUB_UNICODE_LAST_VALID): Likewise.
9096
5da8dbc5
VS
90972011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9100 len and make it smaller. All users updated.
9101 * util/import_unicode.py: Put length and not end character.
9102 Check length.
9103
8569f13d
VS
91042011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 Make better Unicode-compliant and unify some UTF-8 code pathes.
9107
9108 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9109 valid character.
9110 (grub_is_valid_utf8): Use grub_utf8_process.
9111 Check resulting code range.
9112 (grub_utf8_to_ucs4): Use grub_utf8_process.
9113 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9114 valid character.
9115
cc4fddf5
VS
91162011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9119
bbc47747
VS
91202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9121
9122 * docs/grub.texi (Filesystems): Mention AFS.
9123
f63d6bf4
VS
91242011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 * docs/grub.texi (Filesystems): Clarify restrictions.
9127 (Regexp): Mention non-Unicode regexp behaviour.
9128 (Other): Mention non-Unicode matching behaviour.
9129
74bbf0db
VS
91302011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9131
f63d6bf4 9132 Make HFS implementation use MacRoman.
74bbf0db
VS
9133
9134 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9135 (macroman): New const array.
9136 (macroman_to_utf8): New function.
9137 (utf8_to_macroman): Likewise.
9138 (grub_hfs_find_dir): Use utf8_to_macroman.
9139 (grub_hfs_dir): Use macroman_to_utf8.
9140 Set case_insensitive.
9141
4ea0316e
VS
91422011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9145
d3c13cbd
VS
91462011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 Integrate hints into autogeneration scripts.
9149
9150 * docs/grub.texi (Filesystems): Add a hostdisk example.
9151 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9152 (grub-probe): Add ofpath.
9153 * gentpl.py: Remove group nosparc64.
9154 * grub-core/commands/search.c (cache_entry): New struct.
9155 (cache): New var.
9156 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9157 * grub-core/commands/search_wrap.c (options): Add platform-specific
9158 hint options.
9159 (grub_cmd_search): Handle platform-specific hints.
9160 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9161 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9162 (grub_util_biosdisk_data): Likewise.
9163 (grub_util_biosdisk_open): Set device_map.
9164 (read_device_map): Handle "" as indication of no map.
9165 Set device_map.
9166 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9167 (grub_util_biosdisk_get_compatibility_hint): New function.
9168 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9169 * include/grub/emu/hostdisk.h
9170 (grub_util_biosdisk_get_compatibility_hint): New proto.
9171 * util/grub-install.in: Don't call grub-mkdevicemap.
9172 Add platform-specific hint to load.cfg.
9173 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9174 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9175 hints. Set root preliminary to compatibility hint, not to OS name.
9176 * util/grub-probe.c (PRINT_*): Add hints.
9177 (print): Make static.
9178 (escape_of_path): New function.
9179 (guess_bios_drive): Likewise.
9180 (guess_efi_drive): Likewise.
9181 (guess_baremetal_drive): Likewise.
9182 (print_full_name): Likewise.
9183 (probe): Handle hints.
9184 (main): Likewise.
9185 * util/ieee1275/devicemap.c: Removed.
9186 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9187 updated.
9188 (grub_util_devname_to_ofpath): Return NULL on failure.
9189
9190 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9191 resource leak.
9192 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9193
9194 * po/POTFILES.in: Regenerated.
9195
9196 Allow purely long options
9197
9198 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9199 (SHORT_ARG_USAGE): Likewise.
9200 (grub_arg_show_help): Compare opt with help_options.
9201 (parse_option): Receive opt as argument. If makes big simplificatons.
9202 All users updated
9203
00ce2df3
VS
92042011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9207 Restructure to avoid warning.
9208
e77e325f
VS
92092011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * util/grub-install.in: Account for possible escaped comma in device
9212 name.
9213
165099ea
VS
92142011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9217 channel.
9218
ce4a999d
VS
92192011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9222 allocation and zero-setting.
9223 (grub_ieee1275_get_devname): Check that alias is complete.
9224
379586ad
VS
92252011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9228 unaligned segments.
9229
9197b0ad
VS
92302011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9233 prefix.
9234 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9235 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9236 Add ieee1275 prefix.
9237
edddb7f9
VS
92382011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * docs/grub.texi (Filesystems): Update.
9241
a1a8b1b9
VS
92422011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Support odc, newc and bigendian cpio formats.
9245
9246 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9247 * grub-core/Makefile.core.def (newc): New module.
9248 (odc): Likewise.
9249 (cpio_be): Likewise.
9250 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9251 (MAGIC): Likewise.
9252 (MAGIC2): Likewise.
9253 (head) [MODE_ODC]: Adapt for the format.
9254 (head) [MODE_NEWC]: Likewise.
9255 (head) [!MODE_*]: Write fields of interest as arrays.
9256 (MAGIC_USTAR): Removed.
9257 (read_number) [MODE_NEWC]: Change to hex.
9258 (read_number) [!MODE_*]: Parse binary arrays.
9259 (grub_cpio_find_file): Factor out the code for better structure and
9260 always use read_number.
9261 (grub_cpio_mount): Use MAGIC and MAGIC2.
9262 (grub_cpio_dir): Exit on first hook non-0 return.
9263 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9264 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9265 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9266 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9267 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9268 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9269 * grub-core/fs/newc.c: New file.
9270 * grub-core/fs/odc.c: Likewise.
9271 * grub-core/fs/cpio_be.c: Likewise.
9272
58eba9ee
VS
92732011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 Fix handling of tar numbers occupying the whole field.
9276
9277 * grub-core/fs/cpio.c (read_number): New function.
9278 (grub_cpio_find_file): Use read_number instead of strtoull.
9279
a54a0e12
VS
92802011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9283 occupying the whole field size.
9284
a6120aca
LA
92852011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
9286
9287 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
9288
a93964ce
VS
92892011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9290
9291 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
9292
3ea1ca46
SG
92932011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
9294
9295 * grub-core/Makefile.core.def (lzma_decompress): Add missing
9296 TARGET_IMG_LDFLAGS.
9297
b87f7ef2
VS
92982011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * util/getroot.c (ESCAPED_PATH_MAX): New define.
9301 (mountinfo_entry): Increase the field size to take escaping into
9302 account.
9303 (find_root_device_from_libzfs): Add one byte to size of strings for
9304 security.
9305
62092395
VS
93062011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
9309 an assert.
9310 * util/grub-setup.c (setup): Likewise.
9311
1f0b1a77
VS
93122011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
9315 _LzmaDecodeA.
9316
8eba9997
VS
93172011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * docs/grub.texi (Internationalisation): New section.
9320
dd0c91e9
VS
93212011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * docs/grub.texi (Loopback booting): New section.
9324
93252011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
9326
9327 * util/grub-mkstandalone.in: Fix minor typo errors.
9328
198e150a
VS
93292011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
9332
9333 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
9334 net/icmp.c and net/icmp6.c.
9335 (http): New module.
9336 (priority_queue): Likewise.
9337 * grub-core/io/bufio.c: Rewritten.
9338 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
9339 TYPE_WITH_CONFIGFILE_OPTION.
9340 (legacy_commands): Add bootp and dhcp.
9341 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
9342 (grub_legacy_parse): Likewise.
9343 * grub-core/lib/priority_queue.c: New file.
9344 * grub-core/net/arp.c: Add missing license header.
9345 (arp_find_entry): Removed.
9346 (arp_find_entry): Likewise.
9347 (grub_net_arp_resolve): Rename to ...
9348 (grub_net_arp_send_request): ...this.
9349 (grub_net_arp_receive): New card argument.
9350 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
9351 Set router and DNS server.
9352 (grub_net_configure_by_dhcp_ack): Handle routing information.
9353 (grub_cmd_bootp): Set checksum.
9354 (grub_bootp_init): Remove net_dhcp.
9355 * grub-core/net/dns.c: New file.
9356 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
9357 completion.
9358 (get_card_packet): Handle allocation.
9359 (grub_efinet_findcards): Set mtu.
9360 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
9361 (get_card_packet): Handle allocation.
9362 (emucard): Set mtu.
9363 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
9364 (GRUB_MOD_INIT): Set mtu.
9365 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
9366 mtu.
9367 (get_card_packet): Handle allocation.
9368 (grub_ofnet_findcards): Set mtu.
9369 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
9370 assert.
9371 (grub_net_recv_ethernet_packet): Handle IPv6.
9372 * grub-core/net/http.c: New file.
9373 * grub-core/net/icmp.c: Likewise.
9374 * grub-core/net/icmp6.c: Likewise.
9375 * grub-core/net/ip.c (ip6addr): New type.
9376 (ip6hdr): Likewise.
9377 (reassemble): Likewise.
9378 (cmp): New function.
9379 (reassembles): New variable.
9380 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
9381 (id): New variable.
9382 (send_fragmented): New function.
9383 (grub_net_send_ip_packet): Rename to ...
9384 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
9385 Handle non-UDP.
9386 (grub_net_recv_ip_packets): Rename to ...
9387 (handle_dgram): ... this. Check checksum. Handle non-UDP.
9388 (free_rsm): New function.
9389 (free_old_fragments): Likewise.
9390 (grub_net_recv_ip4_packets): New function.
9391 (grub_net_send_ip6_packet): Likewise.
9392 (grub_net_send_ip_packet): Likewise.
9393 (grub_net_recv_ip6_packets): Likewise.
9394 (grub_net_recv_ip_packets): Likewise.
9395 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
9396 (LINK_LAYER_CACHE_SIZE): New const.
9397 (link_layer_find_entry): New function.
9398 (grub_net_link_layer_add_address): Likewise.
9399 (grub_net_link_layer_resolve_check): Likewise.
9400 (grub_net_link_layer_resolve): Likewise.
9401 (grub_net_ipv6_get_slaac): Likewise.
9402 (grub_net_ipv6_get_link_local): Likewise.
9403 (grub_cmd_ipv6_autoconf): Likewise.
9404 (parse_ip): Handle one number representation.
9405 (parse_ip6): New functoion.
9406 (match_net): Handle IPv6.
9407 (grub_net_resolve_address): Handle IPv6 and DNS.
9408 (grub_net_resolve_net_address): Handle IPv6.
9409 (route_cmp): New function.
9410 (grub_net_route_address): Find best route.
9411 (grub_net_addr_to_str): Handle IPv6.
9412 (grub_net_addr_cmp): New function.
9413 (grub_net_add_addr): Register local route.
9414 (print_net_address): Handle net address.
9415 (grub_net_poll_cards): Retransmit TCP.
9416 (grub_net_poll_cards_idle_real): Likewise.
9417 (have_ahead): New function.
9418 (grub_net_seek_real): Use underlying seek.
9419 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
9420 * grub-core/net/tcp.c: New file.
9421 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
9422 (cmp): New function.
9423 (ack): Likewise.
9424 (tftp_receive): Handle unordered input.
9425 (destroy_pq): New function.
9426 (tftp_close): Close pq.
9427 * grub-core/net/udp.c: Put missing license header.
9428 (grub_net_udp_socket): New function.
9429 (udp_socket_register): Likewise.
9430 (grub_net_udp_close): Likewise.
9431 (grub_net_recv_udp_packet): Check checksum.
9432 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
9433 * include/grub/misc.h (grub_memchr): New function.
9434 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
9435 (grub_net_card_driver): Return buf in recv.
9436 (grub_net_slaac_mac_list): New struct.
9437 (grub_network_level_protocol_id): Add ipv6.
9438 (grub_net_network_level_addr): Likewise.
9439 (grub_net_network_level_net_addr): Likewise.
9440 (grub_net_app_protocol): Add seek.
9441 (grub_net_socket): Removed.
9442 (grub_net_sockets): Likewise.
9443 (grub_net_socket_register): Likewise.
9444 (grub_net_socket_unregister): Likewise.
9445 (FOR_NET_SOCKETS): Likewise.
9446 (grub_net_add_addr): Add const.
9447 (GRUB_NET_BOOTP_*): New enum.
9448 (grub_net_addr_cmp): New proto.
9449 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
9450 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
9451 (grub_net_hwaddr_to_str): NEw proto.
9452 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
9453 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
9454 (grub_dns_init): New proto.
9455 (grub_dns_fini): Likewise.
9456 (grub_net_tcp_retransmit): Likewise.
9457 (grub_net_link_layer_add_address): Likewise.
9458 (grub_net_link_layer_resolve_check): Likewise.
9459 (grub_net_link_layer_resolve): Likewise.
9460 (grub_net_dns_lookup): Likewise.
9461 (grub_net_add_dns_server): Likewise.
9462 (grub_net_remove_dns_server): Likewise.
9463 (GRUB_NET_TRIES): New const.
9464 (GRUB_NET_INTERVAL): Likewise.
9465 * include/grub/net/arp.h: Mostly rewritten.
9466 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
9467 * include/grub/net/ip.h: Mostly rewritten.
9468 * include/grub/net/netbuff.h: Indent.
9469 * include/grub/net/tcp.h: New file.
9470 * include/grub/net/udp.h: Mostly rewritten.
9471 * include/grub/priority_queue.h: New file.
9472 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
9473 (grub_swap_bytes64_compile_time): Likewise.
9474 (grub_cpu_to_be16_compile_time): Likewise.
9475 (grub_cpu_to_be32_compile_time): Likewise.
9476 (grub_cpu_to_be64_compile_time): Likewise.
9477 (grub_be_to_cpu64_compile_time): Likewise.
9478
215c1800
VS
94792011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
9482 UINT_TO_PTR with cast.
9483
c17e546c
VS
94842011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
9487 don't use them.
9488
ff6b18b6
VS
94892011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
9492 already there.
9493
70ffcc93
VS
94942011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
9497 confusing ipxe.
9498
e5f4d260
VS
94992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
9502 Add missing const attribute.
9503 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
9504 Likewise.
9505 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
9506 Likewise.
9507
8e54b4b7
VS
95082011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
9511 misaligned access.
9512 (serpent_setkey): Likewise.
9513 (serpent_encrypt_internal): Likewise.
9514 (serpent_decrypt_internal): Likewise.
9515 (serpent_encrypt): Don't put an alignment-increasing cast.
9516 (serpent_decrypt): Likewise.
9517 (serpent_test): Likewise.
9518
813c0a2b
VS
95192011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
9522
f2b60fbd
VS
95232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
9526
9527 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
9528 grub_addr_t casts.
9529 (PTR_TO_UINT64): Likewise.
9530 (PTR_TO_UINT32): Likewise.
9531
5ef5c511
VS
95322011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * util/grub-mkimage.c (generate_image): Decrease the higher limit
9535 because of stack.
9536 * util/grub-setup.c (setup): Don't add redundancy past the higher load
9537 limit.
9538
c476e6df
VS
95392011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
9542 text_width > available width a bit more gracefully.
9543
384ad7cc
VS
95442011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
9547 current address calculation.
9548
96f8caf8
VS
95492011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9550
9551 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
9552 stack.
9553 (encode_block): Likewise.
9554
276b7a8b
VS
95552011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
9558 certainety.
9559
e3fd394a
VS
95602011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
9563 non-RS part to avoid RS messing with GDT.
9564 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9565 Increase to suit in realmode routines.
9566
95672011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 * grub-core/kern/i386/realmode.S: Increase alignment.
9570 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
9571
ee9c2e7a
VS
95722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
9575 be deterministic.
9576 (syndroms): Compute 0 syndrom.
9577 (rs_recover): Use 0 syndrom.
9578
7a7f7cc9
VS
95792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
9582
a14b16d1
VS
95832011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
9586 brackets.
9587
9f59e9fc
VS
95882011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9589
ca1b552c
VS
9590 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
9591 account.
9592 (get_top_pad): Likewise.
9593 (get_right_pad): Likewise.
9594 (get_bottom_pad): Likewise.
9595
95962011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 9599
e739d698
VS
96002011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
9603 attribute as the structure isn't guaranteed to be properly aligned.
9604 (grub_efi_pci_device_path): Likewise.
9605 (grub_efi_pccard_device_path): Likewise.
9606 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
9607 specify the size of `memory_type'.
9608 (grub_efi_vendor_device_path): Likewise.
9609 (grub_efi_controller_device_path): Likewise.
9610 (grub_efi_acpi_device_path): Likewise.
9611 (grub_efi_expanded_acpi_device_path): Likewise.
9612 (grub_efi_atapi_device_path): Likewise.
9613 (grub_efi_scsi_device_path): Likewise.
9614 (grub_efi_fibre_channel_device_path): Likewise.
9615 (grub_efi_1394_device_path): Likewise.
9616 (grub_efi_usb_device_path): Likewise.
9617 (grub_efi_usb_class_device_path): Likewise.
9618 (grub_efi_i2o_device_path): Likewise.
9619 (grub_efi_mac_address_device_path): Likewise.
9620 (grub_efi_ipv4_device_path): Likewise.
9621 (grub_efi_ipv6_device_path): Likewise.
9622 (grub_efi_infiniband_device_path): Likewise.
9623 (grub_efi_uart_device_path): Likewise.
9624 (grub_efi_vendor_messaging_device_path): Likewise.
9625 (grub_efi_hard_drive_device_path): Likewise.
9626 (grub_efi_cdrom_device_path): Likewise.
9627 (grub_efi_vendor_media_device_path): Likewise.
9628 (grub_efi_file_path_device_path): Likewise.
9629 (grub_efi_protocol_device_path): Likewise.
9630 (grub_efi_piwg_device_path): Likewise.
9631 (grub_efi_bios_device_path): Likewise.
9632
cb8f88ea
VS
96332011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
9636 (grub_ucs4_to_utf8_alloc): Likewise.
9637 (grub_ucs4_to_utf8): Likewise.
9638 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
9639 (grub_ucs4_to_utf8_alloc): Likewise.
9640
309e5352
VS
96412011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 AFFS never uses unicode.
9644
9645 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
9646 (grub_latin1_to_utf8): New inline function.
9647 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
9648
e7987e1b
VS
96492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
9652 overflow.
9653
efc2616e
VS
96542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
9657 (grub_squash_dirent_header): Likewise.
9658 (read_chunk): Don't double swap.
9659 (grub_squash_iterate_dir): Fix swap sizes.
9660
3c349f5a
VS
96612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
9664
b453412d
VS
96652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
9668 (grub_hfs_iterate_dir): Likewise.
9669
12e9d4d1
VS
96702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 Fix video on platforms where unaligned access is forbidden.
9673 Make several optimisations while on it.
9674
9675 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
9676 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9677 (grub_video_fbblit_replace_32bit_1bit): Likewise.
9678 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9679 Disable.
9680 (grub_video_fbblit_replace_16bit_1bit):
9681 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9682 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9683 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
9684 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
9685 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9686 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9687 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
9688 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
9689 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
9690 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
9691 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
9692 (grub_video_fbblit_replace_index_RGB888): Likewise.
9693 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
9694 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
9695 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
9696 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
9697 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
9698 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9699 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9700 Disable.
9701 (grub_video_fbblit_blend_XXX565_1bit):
9702 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9703 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
9704 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
9705 void *.
9706 * grub-core/video/fb/video_fb.c (common_blitter)
9707 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
9708 (grub_video_fb_create_render_target_from_pointer)
9709 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9710 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
9711 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
9712 definition.
9713 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
9714
ace96609
VS
97152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
9718 HH22 and HM10 relocations.
9719
fd261d73
VS
97202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
9723
e59b7857
VS
97242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
9727 allocation succeeded.
9728
9b4baaa4
VS
97292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
9732 argument a u8 pointer. All users updated.
9733 Handle unaligned buffers.
9734
dc713193
VS
97352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
9738 add_part to workaround compiler bug.
9739
30dd48c2
VS
97402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
9743
0c6087a8
VS
97442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
9747 Reserve alignment invariants.
9748 (grub_multiboot_load): Likewise.
9749 (retrieve_video_parameters): Likewise.
9750 (grub_multiboot_make_mbi): Likewise.
9751
c2e77777
VS
97522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
9755 incorrect pointer.
9756
b70b6d11
VS
97572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
9760 (grub_pata_pio_write): Likewise.
9761
02a2bf83
VS
97622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 Add noreturn attributes and remove unreachable code.
9765
9766 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
9767 code.
9768 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
9769 code. Mark as noreturn.
9770 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
9771 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
9772 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
9773 unreachable code.
9774 * grub-core/kern/main.c (grub_main): Mark as noreturn.
9775 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
9776 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
9777 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
9778 * include/grub/kernel.h (grub_main): Mark as noreturn.
9779 * include/grub/reader.h (grub_rescue_run): Likewise.
9780
2019d09e
VS
97812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
9784 redundant declaration.
9785
d1c501ee
VS
97862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * include/grub/net.h (grub_net_network_level_interfaces): Remove
9789 redundant declaration.
9790 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
9791
61664420
VS
97922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
9795 to ensure alignment.
9796 (grub_hdparm_print_identify): Make argument uint16 * to ensure
9797 alignment. Ensure tmp alignment.
9798 (grub_cmd_hdparm): Ensure buf alignment.
9799 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
9800 to ensure alignment.
9801 (grub_ata_dumpinfo): Ensure text alignment.
9802 (grub_atapi_identify): Preserve alignment invariant.
9803 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
9804
0d51ee20
VS
98052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
9808 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9809 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9810 * include/grub/misc.h (grub_reboot)
9811 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9812 (grub_halt) [__mips__]: Likewise.
9813
753ef8c1
VS
98142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9817 Remove redundant declaration.
9818 (grub_mmap_get_post64): Likewise.
9819 (grub_mmap_get_upper): Likewise.
9820 (grub_mmap_get_lower): Likewise.
9821
85c85365
VS
98222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9825 uint32_t * to ensure alignment.
9826 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9827
a23f2cc4
VS
98282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9829
93018f64
VS
9830 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9831 uint16_t * to ensure alignment.
9832 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9833 alignment.
9834
98352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9836
9837 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9838 to ensure alignment.
9839 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9840
58acccd6
VS
98412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9844 Handle unaligned pointers.
9845 (u32at): Likewise.
9846 (u64at): Likewise.
9847 (fixup): Use byte access instead of v16at.
9848 (find_attr): Fix imporper usage of v32at.
9849 (read_data): Likewise.
9850 (list_file): Handle byte-swapping and unaligned strings.
9851 (grub_ntfs_label): Likewise.
9852
9b05cad7
VS
98532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
9856 as it's not necessarily aligned.
9857
b3950b84
VS
98582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9861 redundant declaration.
9862 (grub_serial_init): Likewise.
9863 (grub_terminfo_init): Likewise.
9864
fcd232b7
VS
98652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9868 function.
9869 (ZAP_HASH_IDX): Likewise.
9870 (ZAP_LEAF_HASH_SHIFT): Likewise.
9871 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9872 (LEAF_HASH): Likewise.
9873 (ZAP_LEAF_NUMCHUNKS): Likewise.
9874 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9875 alignment invariants. Return pointer. All users updated.
9876 (ZAP_LEAF_ENTRY): Make into inline function.
9877 (NBBY): Removed.
9878 (xor): LIkewise.
9879 (xor_out): Use grub_crypto_xor.
9880 (dnode_get_path): Use grub_get_unaligned.
9881 (nvlist_find_value): Likewise.
9882 (grub_zfs_nvlist_lookup_uint64): Likewise.
9883 (grub_zfs_nvlist_lookup_string): Likewise.
9884 (get_nvlist_size): Likewise.
9885 (grub_zfs_open): Likewise.
9886 (fill_fs_info): Likewise.
9887 (grub_zfs_dir): Likewise.
9888 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9889 alignment invariants.
9890 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9891 necessarily aligned.
9892
f138623a
VS
98932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9896
564840dc
VS
98972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9900 arithmetic to conserve alignment invariants.
9901
9b40df20
VS
99022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9905 redundant declaration.
9906 (grub_efiemu_mm_obtain_request): Likewise.
9907 (grub_efiemu_prepare): Likewise.
9908
d1c930f9
VS
99092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9910
9911 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9912 to match types.
9913
4c5f3056
VS
99142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9917 case of aunaligned recptr.
9918 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9919 alignment.
9920 (grub_hfsplus_btree_search): Handle unaligned index.
9921
728cba91
VS
99222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9923
9924 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9925 to get freetag and skip.
9926
eb561f31
VS
99272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9930 array.
9931 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9932 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9933
20993fbb
VS
99342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9937 name for checksum and fix allocation algorithm.
9938
1f313b94
VS
99392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * include/grub/types.h (grub_properly_aligned_t): New type.
9942 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9943 (grub_get_unaligned16): Add explicit casts.
9944 (grub_get_unaligned32): Likewise.
9945 (grub_get_unaligned64): Likewise.
9946 (grub_set_unaligned16): New function.
9947 (grub_set_unaligned32): Likewise.
9948
47ae27ec
VS
99492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9952
78c2cd1c
VS
99532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9954
9955 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9956 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9957 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9958
53072f9b
VS
99592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9962 conditionals.
9963
055dc239
VS
99642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9967 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9968
496bd074
VS
99692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 Unify and improve RAID and crypto xor.
9972
9973 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9974 changed to grub_crypto_xor
9975 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9976 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9977 Use bigger types when possible.
9978
ef6e4335
VS
99792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * grub-core/disk/raid.c (scan_devices): Fix condition.
9982
5d048bf2
VS
99832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
9986 Make name a const ptr.
9987
ee533335
VS
99882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
9991 first argument a const pointer.
9992 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9993 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
9994 proto.
9995 (grub_children_iterate): Likewise.
9996 (grub_machine_mmap_iterate): Remove redundant declaration.
9997
cc8f3668
VS
99982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10001 (grub_cmd_acpi) [!x86]: Disable EBDA.
10002
c5fc563a
VS
100032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 Enable UTF8 in gnulib regexp.
10006
10007 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10008 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10009 (isupper): Use grub_isupper.
10010 (isascii): New inline function.
10011 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10012 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10013 * grub-core/normal/charset.c (grub_utf8_process): New function.
10014 (grub_utf8_to_utf16): Use grub_utf8_process.
10015 (grub_encode_utf8_character): New function.
10016 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10017 * include/grub/charset.h (grub_utf8_process): New declaration.
10018 (grub_encode_utf8_character): Likewise.
10019 * include/grub/misc.h (grub_islower): New inline function.
10020 (grub_isupper): Likewise.
10021 (grub_strchrsub): Moved down to fix the definitions.
10022
0af2346f
VS
100232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10026 specification.
10027
74dbd244
VS
100282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * include/grub/loader.h (grub_loader_register_preboot_hook):
10031 Use struct preboot * and not void * for handle. All users updated.
10032 (grub_loader_unregister_preboot_hook): Likewise.
10033
1bc8f60d
VS
100342011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10035
10036 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10037 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10038 UTF-16-BE. All users updated.
10039 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10040 (grub_hfsplus_iterate_dir): Likewise.
10041 (grub_hfsplus_label): Likewise.
10042
48d6e456
VS
100432011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10046
bf3a3857
VS
100472011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 Add missing const qualifiers.
10050
10051 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10052 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10053 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10054 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10055 (grub_lvm_check_flag): Likewise.
10056 * grub-core/efiemu/i386/coredetect.c
10057 (grub_efiemu_get_default_core_name): Likewise
10058 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10059 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10060 * grub-core/fs/ntfs.c (fixup): Likewise.
10061 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10062 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10063 (fzap_lookup): Likewise.
10064 (zap_lookup): Likewise.
10065 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10066 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10067 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10068 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10069 (grub_freebsd_add_meta_module): Likewise.
10070 (grub_cmd_freebsd_module): Likewise.
10071 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10072 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10073 (grub_xnu_writetree_get_size): Likewise.
10074 (grub_xnu_writetree_toheap_real): Likewise.
10075 (grub_xnu_find_key): Likewise.
10076 (grub_xnu_create_key): Likewise.
10077 (grub_xnu_create_value): Likewise.
10078 (grub_xnu_register_memory): Likewise.
10079 (grub_xnu_check_os_bundle_required): Likewise.
10080 (grub_xnu_scan_dir_for_kexts): Likewise.
10081 (grub_xnu_load_kext_from_dir): Likewise.
10082 * grub-core/normal/color.c (color_list): Likewise.
10083 * grub-core/normal/completion.c (current_word): Likewise.
10084 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10085 * grub-core/term/serial.c (grub_serial_find): Likewise.
10086 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10087 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10088 Likewise.
10089 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10090 (grub_freebsd_add_meta_module): Likewise.
10091 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10092 * include/grub/net.h (grub_net_card_driver): Likewise.
10093 (grub_net_card): Likewise.
10094 (grub_net_app_protocol): Likewise.
10095 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10096 * include/grub/serial.h (grub_serial_find): Likewise.
10097 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10098 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10099 (grub_xnu_create_value): Likewise.
10100 (grub_xnu_find_key): Likewise.
10101 (grub_xnu_scan_dir_for_kexts): Likewise.
10102 (grub_xnu_load_kext_from_dir): Likewise.
10103
10104 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10105 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10106 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10107 Moved from here ...
10108 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10109
112b4837
CW
101102011-11-28 Colin Watson <cjwatson@ubuntu.com>
10111
10112 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10113
49e891ac
VS
101142011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10117 (read_device): Fix size calculation.
10118
fd258e5c
RM
101192011-11-25 Robert Millan <rmh@gnu.org>
10120
10121 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10122 (find_root_device_from_libzfs): Add zpool output parser to be used
10123 as fallback when libzfs isn't available.
10124
78845dc2
SG
101252011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10126
10127 * po/Makefile.in.in: Add missing escape-continuation.
10128
adac5211
VS
101292011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10132
10b64f1c
VS
101332011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10136
bb416954
VS
101372011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10140
bdfe9eeb
VS
101412011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10142
10143 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10144
581ffa8a
VS
101452011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/lib/adler32.c: Add missing license specification.
10148 * grub-core/lib/crc64.c: Likewise.
10149 * grub-core/loader/i386/pc/plan9.c: Likewise.
10150 * grub-core/partmap/plan.c: Likewise.
10151
2536cf64
LK
101522011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10153
10154 Add facility to debug GRUB with gdb under qemu.
10155
10156 * grub-core/gdb_grub.in: New file.
10157 * grub-core/gmodule.pl.in: Likewise.
10158 * grub-core/Makefile.core.def (gmodule.pl): New script.
10159 (gdb_grub): Likewise.
10160
bc108a4a
VS
101612011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10162
10163 * util/grub-mount.c (argp_parser): Accept relative pathes.
10164 * util/grub-fstest.c (argp_parser): Likewise.
10165
111c1778
VS
101662011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 Plan9 support.
10169
10170 * Makefile.util.def (libgrubmods): Add
10171 grub-core/partmap/plan.c.
10172 * docs/grub.texi: Notice Plan9 support.
10173 * grub-core/Makefile.core.def (plan9): New module.
10174 (part_plan): Likewise.
10175 * grub-core/loader/i386/pc/plan9.c: New file.
10176 * grub-core/partmap/plan.c: Likewise.
10177 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10178 define.
10179 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10180 * include/grub/mm.h (grub_extend_alloc): New inline function.
10181
c30be3b6
VS
101822011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 Make Reed-Solomon faster by using power of generator representation of
10185 GF(256)*.
10186
10187 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10188 (gf_double_t): Likewise.
10189 (gf_invert): Removed.
10190 (gf_powx): New array.
10191 (gf_powx_inv): Likewise.
10192 (scratch): Move higher.
10193 (gf_reduce): Removed.
10194 (gf_mul): Use powx.
10195 (gf_invert): Likewise.
10196 (init_inverts): Replaced with ...
10197 (init_powx): ...this. All users updated.
10198 (pol_evaluate): Replace multiplications with additions.
10199 (rs_encode): Likewise.
10200 (gauss_eliminate): Call gf_invert.
10201 (grub_reed_solomon_add_redundancy): Call init_powx.
10202 (grub_reed_solomon_recover): Call init_powx unconditionally.
10203
fa5aeffc
VS
102042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10207
a346b81c
VS
102082011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10211 disk->partiton for safety.
10212
d89ee414
VS
102132011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10216 Fix a memory leak.
10217 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10218
91ee7b6d
VS
102192011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10222
91e5a33d
VS
102232011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10226
9edd7be2
VS
102272011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 Fix spaces handling in proc/self/mountinfo.
10230
10231 * util/getroot.c (unescape): New function.
10232 (grub_find_root_device_from_mountinfo): Use unescape.
10233
ba102053
VS
102342011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 Support ZFS embedding.
10237
10238 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10239 (grub_zfs_fs): Register grub_zfs_embed.
10240
aa94b870
VS
102412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 Fix MIPS compilation.
10244
10245 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10246 * include/grub/offsets.h: Rename decompressor fields from
10247 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10248 * util/grub-mkimage.c (image_targets): Use new names.
10249
5fbdac14
VS
102502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 Defer multiboot device parsing until we're in compressed part.
10253
10254 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10255 bsd_part. setdevice has fallen into disuse.
10256 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10257 (bsd_part): Likewise.
10258 (boot_dev): New variable.
10259 (multiboot_trampoline): Don't parse multiboot device.
10260 Pass multiboot device in %edx.
10261 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10262 grub_boot_device.
10263 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10264 Likewise.
10265 * grub-core/kern/i386/pc/startup.S: Save edx.
10266 (grub_boot_drive): Removed.
10267 (grub_install_dos_part): Likewise.
10268 (grub_install_bsd_part): Likewise.
10269 (grub_boot_device): New variable.
10270 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10271 (grub_install_bsd_part): Likewise.
10272 (grub_boot_drive): Likewise.
10273 (grub_boot_device): New variable.
10274 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10275 Removed.
10276 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10277 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10278 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10279 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10280 * util/grub-install.in: Remove redundant condition.
10281
691cbb58
VS
102822011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 Fix bug introduced by previous commit.
10285
10286 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
10287
60240b8b
VS
102882011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 Use decompressors framework on i386-pc. It increases core size
10291 by 46 bytes but improves compatibility and maintainability.
10292
10293 * grub-core/Makefile.core.def (lzma_decompress): New image.
10294 (kernel): Add i386_pc_ldflags.
10295 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
10296 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
10297 to real_to_prot, prot_to_real and device info.
10298 * include/grub/offsets.h: Renamed decompressor offsets.
10299 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
10300 (image_target_desc): Remove raw_size and rename decompressor fields.
10301 (compress_kernel): Handle lzma.
10302 (generate_image): Handle decompressors on i386-pc.
10303
e9d3421c
VS
103042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * configure.ac: Add -fno-asynchronous-unwind-tables.
10307
2b23074a
VS
103082011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 Move assembly code to C by using intwrap. It increases core size
10311 by 88 bytes but improves compatibility and maintainability.
10312
10313 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
10314 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
10315 ... here. Translated to C.
10316 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
10317 * grub-core/term/i386/pc/console.c (grub_console_getkey):
10318 ... here. Translated to C.
10319 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
10320 * grub-core/term/i386/pc/console.c (grub_console_getxy):
10321 ... here. Translated to C.
10322 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
10323 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
10324 ... here. Translated to C.
10325 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
10326 * grub-core/term/i386/pc/console.c (grub_console_cls):
10327 ... here. Translated to C.
10328 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
10329 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
10330 ... here. Translated to C.
10331 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
10332 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
10333 Translated to C.
10334 * grub-core/term/i386/pc/console.c (int10_9): New function.
10335 (grub_console_putchar): Likewise.
10336 * include/grub/i386/pc/console.h: Removed the not anymore shared
10337 functions.
10338
678f4b67
VS
103392011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 Move grub_chainloader_real_boot out of the kernel.
10342
10343 * grub-core/Makefile.am: Remove machine/loader.h.
10344 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10345 Removed.
10346 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
10347 variable.
10348 (grub_relocator16_keep_a20_enabled): Likewise.
10349 (grub_relocator16_boot): Fill new variables.
10350 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
10351 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
10352 relocator.
10353 (grub_chainloader_unload): Likewise.
10354 (grub_chainloader_cmd): Likewise.
10355 * include/grub/i386/pc/loader.h: Removed.
10356 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
10357 and esi. All initialisers updated.
10358
4626edf6
VS
103592011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
103602011-11-12 Colin Watson <cjwatson@ubuntu.com>
10361
10362 * Makefile.util.def (grub-mount): New util.
10363 * .bzrignore: Add grub-mount.
10364 * configure.ac: Check for fuse and enable grub-mount if available.
10365 * docs/man/grub-mount.h2m: New file.
10366 * util/grub-mount.c: Likewise.
10367
10f0117b
VS
103682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * grub-core/commands/efi/fixvideo.c: Gettextize.
10371 * grub-core/commands/hashsum.c: Likewise.
10372 * grub-core/commands/i386/cmostest.c: Likewise.
10373 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10374 * grub-core/commands/i386/pc/lsapm.c: Likewise.
10375 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10376 * grub-core/commands/lsmmap.c: Likewise.
10377 * grub-core/commands/menuentry.c: Likewise.
10378 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10379 * grub-core/commands/setpci.c: Likewise.
10380 * grub-core/loader/i386/bsd.c: Likewise.
10381 * grub-core/loader/i386/linux.c: Likewise.
10382 * util/getroot.c: Likewise.
10383 * util/grub-editenv.c: Likewise.
10384 * util/grub-fstest.c: Likewise.
10385 * util/grub-mkfont.c: Likewise.
10386 * util/grub-mkimage.c: Likewise.
10387 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10388 * util/grub-pe2elf.c: Likewise.
10389 * util/grub-probe.c: Likewise.
10390 * util/grub-setup.c: Likewise.
10391 * util/ieee1275/ofpath.c: Likewise.
10392 * util/misc.c: Likewise.
10393 * util/raid.c: Likewise.
10394
566f779b
RM
103952011-11-11 Robert Millan <rmh@gnu.org>
10396
10397 * util/getroot.c (grub_util_get_geom_abstraction): Remove
10398 __attribute__((unused)) from `os_dev', which *is* being used.
10399
b50787de
VS
104002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
10403 forgotten define.
10404 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
10405 GRUB_IA64_DL_GOT_ALIGN.
10406 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
10407 GRUB_IA64_DL_TRAMP_ALIGN.
10408
119d11c8
VS
104092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10410
10411 Replace grub_fatal with normal errors in i386 linux loader.
10412
10413 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
10414 (allocate_pages): Check find_efi_mmap_size return value.
10415 (grub_e820_add_region): Return error.
10416 (grub_linux_boot): Check mmap return value.
10417
6e0632e2
VS
104182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10419
10420 * grub-core/commands/acpihalt.c: Gettextized.
10421 * grub-core/commands/cacheinfo.c: Likewise.
10422 * grub-core/commands/cmp.c: Likewise.
10423 * grub-core/commands/efi/loadbios.c: Likewise.
10424 * grub-core/commands/gptsync.c: Likewise.
10425 * grub-core/commands/ieee1275/suspend.c: Likewise.
10426 * grub-core/commands/legacycfg.c: Likewise.
10427 * grub-core/commands/memrw.c: Likewise.
10428 * grub-core/commands/minicmd.c: Likewise.
10429 * grub-core/commands/parttool.c: Likewise.
10430 * grub-core/commands/time.c: Likewise.
10431 * grub-core/commands/videoinfo.c: Likewise.
10432 * grub-core/disk/geli.c: Likewise.
10433 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
10434 * grub-core/disk/luks.c: Likewise.
10435 * grub-core/disk/lvm.c: Likewise.
10436 * grub-core/font/font_cmd.c: Likewise.
10437 * grub-core/fs/zfs/zfscrypt.c: Likewise.
10438 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10439 * grub-core/gfxmenu/view.c: Likewise.
10440 * grub-core/kern/emu/hostdisk.c: Likewise.
10441 * grub-core/kern/emu/main.c: Likewise.
10442 * grub-core/kern/emu/misc.c: Likewise.
10443 * grub-core/kern/emu/mm.c: Likewise.
10444 * grub-core/kern/mips/arc/init.c: Likewise.
10445 * grub-core/kern/mips/loongson/init.c: Likewise.
10446 * grub-core/kern/partition.c: Likewise.
10447 * grub-core/lib/i386/halt.c: Likewise.
10448 * grub-core/lib/mips/arc/reboot.c: Likewise.
10449 * grub-core/lib/mips/loongson/reboot.c: Likewise.
10450 * grub-core/loader/i386/pc/chainloader.c: Likewise.
10451 * grub-core/loader/i386/xnu.c: Likewise.
10452 * grub-core/loader/multiboot.c: Likewise.
10453 * grub-core/net/bootp.c: Likewise.
10454 * grub-core/net/net.c: Likewise.
10455 * grub-core/normal/term.c: Likewise.
10456 * grub-core/partmap/bsdlabel.c: Likewise.
10457 * grub-core/parttool/msdospart.c: Likewise.
10458 * grub-core/term/gfxterm.c: Likewise.
10459 * grub-core/term/terminfo.c: Likewise.
10460 * grub-core/video/i386/pc/vbe.c: Likewise.
10461 * util/grub-menulst2cfg.c: Likewise.
10462 * util/grub-mkdevicemap.c: Likewise.
10463 * util/grub-mklayout.c: Likewise.
10464 * util/grub-mkrelpath.c: Likewise.
10465 * util/grub-script-check.c: Likewise.
10466 * util/ieee1275/grub-ofpathname.c: Likewise.
10467 * util/resolve.c: Likewise.
10468
073aa7a9
VS
104692011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 Support %1$d syntax.
10472
10473 * tests/printf_unit_test.c: New file.
10474 * Makefile.util.def (printf_test): New test.
10475 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
10476
c76b5417
VS
104772011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
10480 fix.
10481
df067ad1
VS
104822011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
10485 dprintf.
10486 * grub-core/font/font.c (grub_font_load): Likewise.
10487
5b289bc5
VS
104882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * util/grub-macho2img.c: Add comment concerning gettext.
10491 * grub-core/lib/legacy_parse.c: Likewise.
10492
c1860f87
VS
104932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
10496 (grub_xvasprintf): Likewise.
10497
d35d0d37
VS
104982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 Add const keyword to grub_env_get and gettextize week days.
10501
10502 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
10503 (grub_read_hook_datetime): Return const char *.
10504 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
10505 updated.
10506 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10507 Mark for gettext.
10508 (grub_get_weekday_name): Return const char *. Call gettext.
10509 * grub-core/script/argv.c (grub_script_argv_append): Receive const
10510 char * and len as the argument. All users updated.
10511 (grub_script_argv_split_append): Receive const char *.
10512 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
10513 * include/grub/env.h (grub_env_get): Likewise.
10514 (grub_env_read_hook_t): Return const char *.
10515 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
10516 (grub_script_argv_split_append): Likewise.
10517
9aed8a71
VS
105182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
10521
067fdf00
VS
105222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
10525 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
10526
a8bd9d39
VS
105272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
10530 Fix prototype.
10531
f7ce5baf
VS
105322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 Fix mips compilation.
10535
10536 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
10537 normal decoder.
10538 (hashes): Use in embed decoder as well (for sizes).
10539 (dec_stream_header): Fix embed decompressor logic.
10540 (dec_stream_footer): Likewise.
10541
9bb182f3
VS
105422011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
10545 an error and not a fatal on unrecognised relocation types.
10546
63a9e6f6
VS
105472011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10550 Issue error rather than printf on unknown arguments.
10551
4c458569
VS
105522011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10553
10554 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
10555 Make buf a const.
10556
e2d22baf
VS
105572011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10558
10559 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
10560 Fix module name.
10561
53dc8590
VS
105622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
10565 leftover debug printf.
10566
6c189294
VS
105672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
10570
f7688369
VS
105712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10572
10573 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
10574 A stylistic fix.
10575
11a775a3
VS
105762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10577
10578 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
10579
33f784e8
SL
105802011-11-10 Shea Levy <slevy@tieronedesign.com>
10581
10582 Allow all modules to perform serial IO
10583
10584 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
10585 * include/grub/serial.h (grub_serial_port_configure): New inline
10586 function.
10587 (grub_serial_port_fetch): Likewise.
10588 (grub_serial_port_put): Likewise.
10589 (grub_serial_port_fini): Likewise.
10590 (grub_serial_find): New proto.
10591
f6276525
VS
105922011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 Put symlink at the end of the node and fix a potential
10595 memory corruption.
10596
10597 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
10598 Make symlink into an array.
10599 (set_rockridge): Set have_symlink and alloc_dirents.
10600 (grub_iso9660_read_symlink): Use new layout.
10601 (grub_iso9660_iterate_dir): Fix memory corruption.
10602 Use new layout.
10603 (grub_iso9660_dir): Set have_symlink.
10604 (grub_iso9660_open): Likewise.
10605
c3591189
VS
106062011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 Remove local keyword.
10609
10610 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
10611 (version_test_gt): Likewise.
10612 (version_find_latest): Likewise.
10613 (gettext_printf): Likewise.
10614 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
10615
cb544caa
VS
106162011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
10619
45bd824d
VS
106202011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 Fix ZFS memory and resource leaks.
10623
10624 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
10625 All users updated.
10626 Free type on exit.
10627 (fill_vdev_info): New parameter inserted. All users updated.
10628 (check_pool_label): Likewise.
10629 (scan_disk): Likewise.
10630 (scan_devices): Close non-inserted disks.
10631 (fzap_iterate): Free l.
10632 (unmount_device): Free children descripto memory.
10633
ad9a2f44
VS
106342011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
10637 argument (access out of bounds).
10638
6b68db81
VS
106392011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
10642 >= 6 drives.
10643
28840fda
VS
106442011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
10647 Fix declaration.
10648
8a5a3a5b
VS
106492011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 Fix several memory leaks.
10652
10653 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
10654 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
10655 (grub_cpio_dir): Likewise.
10656 * grub-core/fs/fat.c (grub_fat_label): Likewise.
10657 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
10658 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
10659 (grub_romfs_label): Likewise.
10660 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
10661 (squash_unmount): New function.
10662 (grub_squash_dir): Fix memory leak.
10663 (grub_squash_open): Likewise.
10664 (grub_squash_read): Likewise.
10665 (grub_squash_mtime): Likewise.
10666 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
10667 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
10668 * util/grub-fstest.c (fstest): Likewise.
10669
57b01250
VS
106702011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
10673 avoid accessing beyond the array.
10674
19e81ba7
VS
106752011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
10678
52b656c0
VS
106792011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 Several AFFS fixes.
10682
10683 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
10684 (GRUB_AFFS_FLAG_FFS): Removed.
10685 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
10686 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
10687 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
10688 (grub_fshelp_node): Make block 32-bit.
10689 Add block_cache and last_block_cache.
10690 (grub_affs_read_block): Fill and use block cache.
10691 (grub_affs_read_file): Removed.
10692 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
10693 boot block.
10694 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
10695 safety.
10696 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
10697 space.
10698 (grub_affs_close): Free block cache.
10699 (grub_affs_read): Use grub_fshelp_read_file directly.
10700
438a746a
VS
107012011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
10704 with no error set.
10705
49a45021
VS
107062011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
10709 used variable.
10710 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10711 Likewise.
10712
3ae17eb8
VS
107132011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
10716
10717 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
10718 byteswap when needed.
10719
27610c38
VS
107202011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 Fix FreeBSD compilation.
10723
10724 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
10725 to avoid circular dependency.
10726 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
10727 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
10728 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
10729
4a19b601
VS
107302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 Fix ZFS crypto error types.
10733
10734 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
10735 (grub_gcm_decrypt): Likewise.
10736 (grub_zfs_load_key_real): Fix error code type. Handle possible error
10737 from PBKDF2.
10738
958ee221
VS
107392011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 Illumos support.
10742
10743 * Makefile.util.def (10_illumos): New script.
10744 * configure.ac: Set COND_HOST_ILLUMOS.
10745 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
10746 Support Illumos calls.
10747 (find_partition_start) [__sun__]: Likewise.
10748 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
10749 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
10750 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
10751 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
10752 device.
10753 * util/grub-probe.c (probe) [__sun__]: Do character check.
10754 * util/grub.d/10_illumos.in: New file.
10755
cac14fb6
VS
107562011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 Support escaped commas in hostdisk.
10759
10760 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
10761 (find_grub_drive): Use unescape_cmp.
10762 (make_device_name): Escape commas.
10763
78e08dc3
VS
107642011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10765
10766 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
10767
9f421dd1
VS
107682011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
10771 variable.
10772
ed64e9e2
VS
107732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10774
10775 Support trampoline jumps on powerpc.
10776
10777 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
10778 __ia64__ path.
10779 (grub_dl_load_segments): Set mod->sz.
10780 (grub_dl_flush_cache): Flush whole space occupied by module, not just
10781 segments.
10782 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
10783 (jump): Likewise.
10784 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
10785 function.
10786 (trampoline): New struct.
10787 (trampoline_template): New const.
10788 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
10789 * include/grub/dl.h (grub_dl): Add sz element.
10790 [__powerpc__]: Follow __ia64__.
10791 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
10792 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
10793 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
10794 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
10795
3084ede4
VS
107962011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 ZFS crypto support.
10799
10800 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
10801 * grub-core/Makefile.core.def (zfscrypt): New module.
10802 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
10803 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
10804 it. All users updated.
10805 (grub_zfs_decrypt): New var.
10806 (grub_zfs_load_key): Likewise.
10807 (zio_checksum_functions): Add SHA256+MAC.
10808 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10809 (zio_read): Handle encrypted blocks.
10810 (zap_verify): Remove incorrect check.
10811 (fzap_iterate): Handle non-standard fzap.
10812 (zap_iterate): Likewise.
10813 (zap_iterate_u64): New function.
10814 (dnode_get_fullpath): Load keys.
10815 * grub-core/fs/zfs/zfscrypt.c: New file.
10816 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10817 (grub_crypto_ecb_encrypt): Make input const.
10818 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10819 (grub_crypto_ecb_encrypt): Make input const.
10820 (GRUB_CIPHER_AES): New macro.
10821 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10822 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10823 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10824 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10825 prefix. All users updated.
10826 (grub_zfs_add_key): New proto.
10827 (grub_zfs_decrypt): Likewise.
10828 (grub_zfs_load_key): Likewise.
10829 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10830 * util/grub-fstest.c (options): Add -K option.
10831 (argp_parser): Likewise.
10832
b632b404
VS
108332011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 Support zle compression on ZFS.
10836
10837 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10838 (decomp_table): Add zle.
10839 * include/grub/zfs/zio.h (zio_compress): Add zle.
10840
c7ba4f69
VS
108412011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 Support BtrFS embedding.
10844
10845 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
10846 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
10847 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
10848 * util/grub-setup.c (setup): Use fs embedding if available.
10849 Add additional sanity check.
10850
455377d9
VS
108512011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * util/grub-install.in: Fix condition for config_opt.
10854
c2fd16ca
VS
108552011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 Support third redundancy strip on raidz3.
10858
10859 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
10860 Return error on singularity. All users updated.
10861 (read_device): Don't stop on 3rd failure on raidz3.
10862
8622923b
VS
108632011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10864
10865 Support case-insensitive ZFS subvolumes.
10866
10867 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10868 All users updated.
10869 (zap_hash): Likewise.
10870 (name_cmp): New function.
10871 (zap_leaf_array_equal): New parameter case_insensitive.
10872 All users updated.
10873 (zap_leaf_lookup): Likewise.
10874 (fzap_lookup): Likewise.
10875 (zap_lookup): Likewise.
10876 (dnode_get_path): New parameter case_insensitive. Retrieve case
10877 sensitiviness of a volume. All users updated.
10878 (dnode_get_fullpath): New parameter case_insensitive.
10879 All users updated.
10880 (grub_zfs_dir): Set info.case_insensitiveness.
10881
95f2e860
VS
108822011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 Support second redundancy strip on raidz(2,3).
10885
10886 * grub-core/fs/zfs/zfs.c (powx): New array.
10887 (powx_inv): Likewise.
10888 (poly): New const.
10889 (xor_out): New function.
10890 (gf_mul): Likewise.
10891 (recovery): Likewise.
10892 (read_device): Use second redundancy strip.
10893
11ee4389
VS
108942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 Use a power of generator representation of GF(256) multiplication group
10897 to save space time and complexity.
10898
10899 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10900 (raid6_table2): Likewise.
10901 (powx): New array.
10902 (powx_inv): Likewise.
10903 (poly): New const.
10904 (grub_raid_block_mul): Replace with ...
10905 (grub_raid_block_mulx): ...this.
10906 (grub_raid6_init_table): Rewritten.
10907 (grub_raid6_recover): Use power of generator representation.
10908
09e2763f
VS
109092011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10910
10911 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10912 for the right device.
10913
8bec9a28
VS
109142011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10917 expected by grub-mkimage and it's more clear since there is no implicit
10918 padding.
10919
dbd3a32e
VS
109202011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10921
10922 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10923 disk.
10924 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10925
182c872a
PMH
109262011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10927
10928 * util/grub-mkrescue.in: Fix handling xorriso option.
10929
1e51cabd
VS
109302011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10931
10932 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10933 NULL.
10934
9cc3581d 109352011-11-03 crocket <crockabiscuit@gmail.com>
10936
10937 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10938
158dc1ea
VS
109392011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 XZ CRC64 and SHA256 support.
10942
10943 * Makefile.util.def (libgrubmods): Add crc64.c.
10944 * grub-core/Makefile.core.def (crc64): New module.
10945 * grub-core/lib/crc64.c: New file.
10946 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10947 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10948 Fix the type.
10949 (MAX_HASH_SIZE): New define.
10950 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10951 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10952 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10953 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10954 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10955 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10956 Handle non-crc32 hashes.
10957 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10958 (dec_stream_header): Handle non-crc32 hashes.
10959 (dec_stream_footer): Likewise.
10960 (dec_block_header): Likewise.
10961 (dec_main): Likewise.
10962 (xz_dec_init): Likewise.
10963 (xz_dec_reset): Likewise.
10964 (xz_dec_end): Likewise.
10965 * util/import_gcry.py: Add CRC64 line.
10966
9d9b3d2f
VS
109672011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10970 as well.
10971
7d0ac931
VS
109722011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10973
10974 Make reiserfs label retrieval similar to other *_label functions.
10975
10976 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10977 (REISERFS_MAX_LABEL_LENGTH): Removed.
10978 (REISERFS_LABEL_OFFSET): Likewise.
10979 (grub_reiserfs_label): Rewritten.
10980
109812011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
10984 field.
10985
cf5ba824
VS
109862011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
10989
17744004
VS
109902011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10991
10992 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
10993 drive failure on both raidz and raidz2.
10994
aca5aefc
VS
109952011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 Fix RAIDZ(2) for >= 5 devices.
10998
10999 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11000 asize argument. All users updated.
11001
ce8ca56e
VS
110022011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 Fix RAIDZ(2).
11005
11006 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11007 (fill_vdev_info_real): Set ashift.
11008 (read_device): Rewrite RAIDZ part based on reverse engineering.
11009
7c01e783
VS
110102011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11013 don't report potentially unavialiable fields in debug output.
11014 (find_path): Fix double-free and memory leak.
11015
ce109e84
VS
110162011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 Read label on UFS1.
11019
11020 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11021 (grub_ufs_fs): Always set .label.
11022
87661123
VS
110232011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 Use shifts in UFS.
11026
11027 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11028 (grub_ufs_data): New field log2_blksz.
11029 (grub_ufs_read_file): Use shifts.
11030 (grub_ufs_mount): Check block size and logarithm it.
11031
46bc1dc2
VS
110322011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11033
11034 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11035 long symlinks.
11036
19ee2987
VS
110372011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 Handle symlinks and long names on tar and cpio.
11040
11041 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11042 (ATTR_FILE): Likewise.
11043 (ATTR_DIR): Likewise.
11044 (ATTR_LNK): Likewise.
11045 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11046 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11047 L and K entries.
11048 (grub_cpio_mount): Zero-fill data.
11049 (handle_symlink): New function.
46bc1dc2
VS
11050 (grub_cpio_dir): Handle symlinks.
11051 (grub_cpio_open): Likewise.
11052 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 11053
c83a08d8
VS
110542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 Fix iso9660 filename limitations and fix memory leaks.
11057
11058 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11059 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11060
45cdd3ea
VS
110612011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 Fix JFS file name length limitations.
11064
11065 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11066 (grub_jfs_diropen): Fix maximum filename length.
11067 (grub_jfs_getent): Fix filename length.
11068 (grub_jfs_lookup_symlink): Fix size checks.
11069
94ef05c2
VS
110702011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11071
11072 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11073 string.
11074
785ab8c7
VS
110752011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11076
eb0b6b45
VS
11077 Leverage BFS implementation to read AFS.
11078
11079 * Makefile.util.def (libgrubmods): Add afs.c.
11080 * grub-core/Makefile.core.def (afs): New module
11081 * grub-core/fs/afs.c: New file.
11082 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11083
110842011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 11087
c4a1628f
VS
110882011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11089
11090 * grub-core/fs/bfs.c: Run indent.
11091
5825b379
VS
110922011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 BFS implementation based on the specification.
11095
11096 * grub-core/fs/bfs.c: New file.
11097 * Makefile.util.def (libgrubmods): Add bfs.c.
11098 * grub-core/Makefile.core.def (bfs): New module.
11099
42b2a706
VS
111002011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 * util/grub-fstest.c (cmd_cp): Clarify error message.
11103 (cmd_cmp): Likewise.
11104
61b99bfc
YB
111052011-10-30 Yves Blusseau <blusseau@zetam.org>
11106
11107 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11108 and befs_be.
11109
faba3d16
VS
111102011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 Remove afs and befs because of copyright problem.
11113
11114 * grub-core/fs/afs.c: Removed.
11115 * grub-core/fs/afs_be.c: Removed.
11116 * grub-core/fs/befs.c: Removed.
11117 * grub-core/fs/befs_be.c: Removed.
11118 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11119 * grub-core/Makefile.core.def (afs): Removed.
11120 (afs_be): Likewise.
11121 (befs): Likewise.
11122 (befs_be): Likewise.
11123
c39224b0
VS
111242011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11125
11126 Prefer rockridge over Joliet.
11127
11128 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11129 to ...
11130 (set_rockridge): ... here.
11131 (grub_iso9660_mount): Check rockridge on the primary label when
11132 discovering. Ignore Joliet if Rockridge is present.
11133
e551115a
VS
111342011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11135
11136 Use shifts in nilfs2.
11137
11138 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11139 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11140 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11141 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11142 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11143 (grub_nilfs2_entries_per_block): Replaced with ...
11144 (grub_nilfs2_log_entries_per_block_log): ... this.
11145 (grub_nilfs2_blocks_per_group): Replaced with ...
11146 (grub_nilfs2_blocks_per_group_log): ... this.
11147 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11148 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11149 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11150 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11151 (grub_nilfs2_palloc_entry_offset): Replaced ...
11152 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11153 (grub_nilfs2_dat_translate): Use shifts.
11154 (grub_nilfs2_read_inode): Likewise.
11155 (GRUB_MOD_INIT): Ensure that logs are correct.
11156
564dd58c
VS
111572011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 Use shifts in minix filesystem.
11160
11161 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11162 (GRUB_MINIX_ZONE2SECT): Likewise.
11163 (grub_minix_data): Replace block_size with log_block_size.
11164 (grub_minix_read_file): Use shifts.
11165 (grub_minix_mount): Check block size and take a logarithm.
11166
ed9ba06d
VS
111672011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 Use shifts in squash4.
11170
11171 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11172 (squash_mount): Check block size and take logarithm.
11173 (direct_read): Use shifts.
11174
ad03fe76
VS
111752011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 Correct befs block counting logic.
11178
11179 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11180 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11181 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11182 (grub_afs_read_inode): Use block_shift.
11183 (RANGE_SHIFT): New definition.
11184 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11185 unexpected conditions, use shifts and appropriate types.
11186 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11187
6563f63d
VS
111882011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11189
11190 * grub-core/disk/raid.c (scan_devices): Check partition.
11191 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11192
5b1ae25f
VS
111932011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11194
11195 Support BFS (befs) UUID.
11196
11197 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11198 (grub_afs_small_data_element_header): New struct.
11199 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11200 (grub_afs_read_attribute) [MODE_BFS]: New function.
11201 (grub_afs_iterate_dir): Allocate for complete inode.
11202 (grub_afs_mount): Likewise.
11203 (grub_afs_uuid) [MODE_BFS]: New function.
11204 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11205
f8d82408
VS
112062011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11209 (zfs_unmount): Fix memory leak.
11210
5773fb64
VS
112112011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11212
11213 Support NTFS reparse points.
11214
11215 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11216 (symlink_descriptor): New struct.
11217 (grub_ntfs_read_symlink): New function.
11218 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11219 (grub_ntfs_open): Likewise.
11220
91c3fdde
VS
112212011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11222
11223 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11224
3be82e10
VS
112252011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 fstest xnu_uuid subcommand.
11228
11229 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11230 grub-core/commands/xnu_uuid.c.
11231 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11232 (fstest): Handle xnu_uuid.
11233 (options): Document xnu_uuid.
11234 (argp_parser): Parse xnu_uuid.
11235
8e32442e
VS
112362011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11239 -l argument. Add newline at the end if printing.
11240 (GRUB_MOD_INIT): Document -l.
11241
52a05075
VS
112422011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11245
1869edb5
VS
112462011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 ZFS multi-device and version 33 support.
11249
11250 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11251 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11252 (grub_zfs_data): Add multidev-ice-related fields.
11253 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11254 (dva_get_offset): Make dva const.
11255 (zfs_fetch_nvlist): New function.
11256 (fill_vdev_info_real): Likewise.
11257 (fill_vdev_info): Likewise.
11258 (check_pool_label): Likewise.
11259 (scan_disk): Likewise.
11260 (scan_devices): Likewise.
11261 (read_device): Likewise.
11262 (read_dva): Likewise.
11263 (zio_read_gang): Use read_dva.
11264 (zio_read_data): Likewise.
11265 (zap_leaf_lookup): Add missing endian conversion.
11266 (zap_verify): Add missing endian conversion. All users updated.
11267 (fzap_lookup): Likewise.
11268 (fzap_iterate): Likewise.
11269 (dnode_get_path): Handle SA bonus.
11270 (nvlist_find_value): Make input const. All users updated.
11271 (unmount_device): New function.
11272 (zfs_unmount): Use unmount_device.
11273 (zfs_mount): Use scan_disk.
11274 (zfs_mtime): New function.
11275 (grub_zfs_open): Handle system attributes.
11276 (fill_fs_info): Likewise.
11277 (grub_zfs_dir): Likewise.
11278 (grub_zfs_fs): Add mtime.
11279 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11280 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11281 (SA_MTIME_OFFSET): Likewise.
11282 (SA_SYMLINK_OFFSET): Likewise.
11283 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11284 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11285 (fstest): Support zfsinfo.
11286 (argp_parser): Likewise.
11287
186b4028
VS
112882011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
11291 error.
11292
112932011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
11294
11295 ZFS fixes.
11296
11297 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
11298 sharing the same block. Iterate over correct number of indices.
11299 (dnode_get_path): Handle symlinks correctly.
11300
c0584900
VS
113012011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11302
11303 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
11304
67e2bd71
VS
113052011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 Read label on HFS+.
11308
11309 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
11310 (grub_hfsplus_btree_search): Fix types.
11311 (grub_hfsplus_label): Implement.
11312
e9cc6b7b
VS
113132011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
11316
19832ddb
VS
113172011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
11320
66b40850
VS
113212011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 Fix symlink handling on iso9660.
11324
11325 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
11326 All users updated.
11327 (grub_iso9660_susp_iterate): Accept zero-size iterate.
11328 (grub_iso9660_read_symlink): Moved most of code ...
11329 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
11330
db821363
VS
113312011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11334 Use union to avoid breaking strict-aliasing rules.
11335
e1211949
VS
113362011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 Support multi-extent iso files.
11339
11340 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
11341 Add node.
11342 (grub_fshelp_node): Revamp. All users updated.
11343 (FLAG_*): New enum.
11344 (read_node): New function.
11345 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
11346 All users updated.
11347 (grub_iso9660_mount): Don't attempt to read sua when there is none.
11348 (get_node_size): New function.
11349 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
11350 entries.
11351 Fix memory leak on . and ..
11352 (grub_iso9660_read): Use read_node.
11353 (grub_iso9660_close): Free node.
11354
d4888031
VS
113552011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 Fix tar 4G limit and handle paths containing dot.
11358
11359 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
11360 (canonicalize): New function.
11361 (grub_cpio_find_file): Use canonicalize. Store offs in
11362 grub_disk_addr_t.
11363 (grub_cpio_dir): Use grub_disk_addr_t.
11364 (grub_cpio_open): Likewise.
11365
9f12e664
VS
113662011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11367
11368 Fix handling of uncompressed blocks on squashfs and break 4G limit.
11369
11370 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
11371 unused flags.
11372 (grub_squash_inode): Add long_file and block_size.
11373 (grub_squash_cache_inode): New struct.
11374 (grub_squash_dirent): Make types into enum.
11375 (SQUASH_TYPE_LONG_REGULAR): New type.
11376 (grub_squash_frag_desc): Add field size.
11377 (SQUASH_BLOCK_FLAGS): New enum.
11378 (grub_squash_data): Use grub_squash_cache_inode.
11379 (grub_fshelp_node): Make ino_chunk 64-bit.
11380 (read_chunk): Minor argument change. All users updated.
11381 (squash_mount): Use correct le_to_cpu.
11382 (grub_squash_open): Handle LONG_REGULAR.
11383 (direct_read): New function.
11384 (grub_squash_read_data): Handle blocks correctly.
11385
9f326fba
VS
113862011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
11389
f4d9b64b
VS
113902011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
11393
5bbd28b8
VS
113942011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11395
11396 Fix 2G limit on ZFS.
11397
11398 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
11399 types.
11400 (uberblock_verify): Likewise.
11401 (dmu_read): Likewise.
11402 (grub_zfs_read): Likewise. Remove invalid cast.
11403
68c72069
VS
114042011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
11407 (grub_jfs_blkno): Fix incorrect shift.
11408 (grub_jfs_read_file): Use more appropriate types.
11409
6e536dc8
VS
114102011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 Support triple indirect on minix2 and minix3.
11413
11414 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
11415 Declare triple_indir_zone.
11416 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
11417 indirect.
11418
e0864e7a
VS
114192011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11420
11421 Minix FS fixes.
11422
11423 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
11424 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
11425 Rename ctime to mtime. All users updated.
11426 (grub_minix_get_file_block): Fix types and double indirect computations.
11427
89481cab
VS
114282011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
11431 if no label is found.
11432 (grub_fat_iterate_dir): Fix file size type.
11433 (grub_fat_iterate_dir): Likewise.
11434
f646e143
VS
114352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
11438 save some space.
11439 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11440 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11441
534d769e
VS
114422011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
11445
e084ba18
VS
114462011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * util/import_gcry.py: Accept space between # and include.
11449
3471ecdf
VS
114502011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
11453
124df5f6
VS
114542011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 Fine grainely disable warnings on lexer. Remove Wno-error on it.
11457
11458 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
11459 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
11460 yylex_strncpy.
11461 * grub-core/script/yylex.l: Add fine-grained #pragma.
11462
4defb8d5
VS
114632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
11466 New inline function.
11467 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
11468 Likewise.
11469 (memset) [GRUB_UTIL]: Likewise.
11470 (memcmp) [GRUB_UTIL]: Likewise.
11471
4e94ae65
VS
114722011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
11475 inline function rather than a define.
11476
18c575e5
VS
114772011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * util/grub-setup.c: Add missing include.
11480
f8bc22a8
VS
114812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * util/ieee1275/grub-ofpathname.c: Add missing include.
11484
3ce69fc9
VS
114852011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
11488 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
11489 Likewise.
11490
d1e293bb
VS
114912011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
11494 grub_memcmp usage.
11495
7a5c54a4
VS
114962011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11497
11498 * util/grub-install.in: Add datarootdir as per automake manual
11499 suggestion.
11500 * util/grub-mknetdir.in: Likewise.
11501
115022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
11503
11504 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
11505 suggestion.
11506 * util/grub.d/10_kfreebsd.in: Likewise.
11507 * util/grub.d/10_linux.in: Likewise.
11508 * util/grub.d/10_netbsd.in: Likewise.
11509 * util/grub.d/10_windows.in: Likewise.
11510 * util/grub.d/20_linux_xen.in: Likewise.
11511
766f7d08
VS
115122011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 Remove redundant grub_kernel_image_size.
11515
11516 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
11517 _edata and _start.
11518 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
11519 the small code. It moves it only by few bytes but simplifies the code.
11520 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
11521 _start.
11522 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
11523 (grub_kernel_image_size): Removed.
11524 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
11525 (grub_kernel_image_size): Removed.
11526 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
11527 compiled with Apple toolchain.
11528 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
11529 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
11530 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
11531 (grub_total_module_size): Likewise.
11532 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
11533 Removed.
11534 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
11535 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
11536 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11537 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
11538 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
11539 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
11540 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
11541 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
11542 Removed.
11543 (grub_total_module_size): Removed.
11544 * util/grub-mkimage.c (image_target_desc): Remove image_size.
11545 (image_targets): Likewise.
11546 Set .compressed_size to no field on sparc.
11547 (generate_image): Remove kernel_image_size handling.
11548
fcf1d672
SJ
115492011-10-19 Szymon Janc <szymon@janc.net.pl>
11550
11551 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
11552 NULL pointer dereference.
11553
de9c615e
VS
115542011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
11557 done with a dedicated section.
11558
11559 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
11560 Ensure the correct position of boot_path.
11561 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
11562 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
11563 other fields.
11564 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
11565 * include/grub/boot.h: Removed. All references removed.
11566 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
11567 Removed.
11568 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
11569
e55599dc
VS
115702011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
11573 name.
11574
36dd20ad
VS
115752011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
11578
f8f72eb8
VS
115792011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11582 Don't add the bogus brackets.
11583
a374751b
VS
115842011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 ExFAT support.
11587
11588 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
11589 * grub-core/Makefile.core.def (exfat): New module.
11590 * grub-core/fs/exfat.c: New file.
11591 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
11592 (GRUB_FAT_ATTR_*): Make into an enum.
11593 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
11594 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
11595 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
11596 (GRUB_FAT_MAXFILE): Removed.
11597 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
11598 (grub_current_fat_bpb_t): New type.
11599 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
11600 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
11601 (grub_fat_dir_node_t): New type.
11602 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
11603 (fat_log2) [MODE_EXFAT]: Removed.
11604 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
11605 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
11606 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
11607 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
11608 (grub_fat_label) [MODE_EXFAT]: New function.
11609 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
11610 reserved_first_sector to 0.
11611
544c2487
VS
116122011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11613
11614 Move grub_reboot out of the kernel.
11615
11616 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
11617 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
11618 * grub-core/lib/efi/reboot.c: ... here.
11619 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
11620 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
11621 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
11622 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
11623 * grub-core/lib/i386/reboot_trampoline.S: ... here.
11624 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
11625 * grub-core/lib/ieee1275/reboot.c: ... here.
11626 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
11627 * grub-core/lib/mips/arc/reboot.c: ... here.
11628 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
11629 * grub-core/lib/mips/loongson/reboot.c: ...here.
11630 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
11631 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
11632 * include/grub/emu/misc.h (grub_reboot): New function declaration.
11633 * include/grub/i386/reboot.h: New file.
11634 * include/grub/mips/loongson/ec.h: Fix includes.
11635 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
11636 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
11637 * grub-core/lib/i386/reboot.c: New file.
11638
a97501d2
VS
116392011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 Make grub_prefix into module to fix the arbitrary limit and save
11642 some space.
11643
11644 * grub-core/kern/emu/main.c (grub_prefix): Removed.
11645 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
11646 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
11647 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
11648 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
11649 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
11650 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
11651 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
11652 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11653 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
11654 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
11655 * include/grub/ia64/efi/kernel.h: Removed.
11656 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
11657 (grub_prefix): Removed.
11658 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
11659 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
11660 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
11661 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
11662 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
11663 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
11664 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
11665 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
11666 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
11667 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
11668 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11669 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11670 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11671 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11672 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
11673 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
11674 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
11675 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11676 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
11677 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
11678 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
11679 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
11680 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
11681 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
11682 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
11683 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
11684 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
11685 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
11686 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
11687 from module.
11688 * util/grub-mkimage.c (image_target_desc): Removed prefix and
11689 prefix_end.
11690 (image_targets): Likewise.
11691 (generate_image): Put prefix as a module.
11692
39705fad
VS
116932011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11694
11695 Replace grub_module_iterate with FOR_MODULES.
11696
11697 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
11698 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
11699 (grub_efi_modules_addr): ...this.
11700 * grub-core/kern/efi/init.c (grub_modbase): New variable.
11701 (grub_efi_init): Set grub_modbase.
11702 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
11703 (grub_modbase): New variable.
11704 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
11705 (grub_modbase): New variable.
11706 (grub_machine_init): Set grub_modbase.
11707 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
11708 (grub_modbase): New variable.
11709 (grub_machine_init): Set grub_modbase.
11710 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
11711 (grub_modbase): New variable.
11712 (grub_machine_init): Set grub_modbase.
11713 * grub-core/kern/main.c (grub_module_iterate): Remove.
11714 (grub_modules_get_end): Use grub_modbase.
11715 (grub_load_modules): Use FOR_MODULES.
11716 (grub_load_config): Likewise.
11717 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
11718 (grub_modbase): New variable.
11719 (grub_machine_init): Set grub_modbase.
11720 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
11721 (grub_modbase): New variable.
11722 (grub_machine_init): Set grub_modbase.
11723 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
11724 Removed.
11725 (grub_modbase): New variable.
11726 (grub_machine_init): Set grub_modbase.
11727 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
11728 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
11729 (grub_module_iterate): Likewise.
11730 (grub_modbase): New variable declaration.
11731 (FOR_MODULES): New macro.
11732
2afb7f6c
VS
117332011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * configure.ac: Check for __ctzdi2 and __ctzsi2.
11736 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
11737
366e34fa
VS
117382011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 Fix few obvious type discrepancies.
11741
11742 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11743 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
11744 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
11745 variable.
11746 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
11747 and connected types.
11748 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
11749 offset.
11750 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
11751 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
11752 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
11753 and connected types.
11754
177b960e
VS
117552011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11756
11757 Fix python 3.x incompatibilities.
11758
11759 * gentpl.py: Put brackets around print strings.
11760 * util/import_gcry.py: Open explicitly as utf-8.
11761 Use in instead of has_key.
11762
3b619ae1
VS
117632011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
11766 (GRUB_XFS_INO_AGBITS): Make into inline function.
11767 (GRUB_XFS_INO_INOINAG): Likewise.
11768 (GRUB_XFS_INO_AG): Likewise.
11769 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11770 (GRUB_XFS_EXTENT_OFFSET): Likewise.
11771 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11772 (GRUB_XFS_EXTENT_SIZE): Likewise.
11773 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
11774 (GRUB_XFS_NEXT_DIRENT): Likewise.
11775 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
11776 (grub_xfs_read_file): Fix offset type.
11777
8bcebcb8
RM
117782011-10-15 Robert Millan <rmh@gnu.org>
11779
11780 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
11781
0017e5ef
RM
117822011-10-15 Robert Millan <rmh@gnu.org>
11783
11784 Fix build problem on FreeBSD and GNU/kFreeBSD.
11785
11786 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
11787
d8919552
VS
117882011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
11791
11792 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
11793 types.
11794 (grub_hfsplus_btree_recoffset): Likewise.
11795 (grub_hfsplus_btree_recptr): Likewise.
11796 (grub_hfsplus_find_block): Likewise.
11797 (grub_hfsplus_btree_search): Likewise.
11798 (grub_hfsplus_read_block): Likewise.
11799 (grub_hfsplus_read_file): Likewise.
11800 (grub_hfsplus_mount): Likewise.
11801 (grub_hfsplus_btree_iterate_node): Likewise.
11802 (grub_hfsplus_btree_search): Likewise.
11803 (grub_hfsplus_iterate_dir): Likewise.
11804 (grub_hfsplus_read): A small code simplification.
11805
c81296b6
VS
118062011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * grub-core/kern/emu/hostdisk.c
11809 (convert_system_partition_to_system_disk): Don't assume that children
11810 of mapper nodes are mapper nodes.
11811
0eb8ffb1
VS
118122011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11815 * include/grub/misc.h (grub_isxdigit): New function.
11816 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11817 switched to grub_isxdigit.
11818 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11819 number starting with a letter.
11820
a98f4a08
RM
118212011-10-09 Robert Millan <rmh@gnu.org>
11822
11823 LVM support for FreeBSD and GNU/kFreeBSD.
11824
11825 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11826 GNU/kFreeBSD.
11827 (LVM_DEV_MAPPER_STRING): Move from here ...
11828 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11829 * util/getroot.c: Include `<grub/util/lvm.h>'.
11830 (grub_util_get_dev_abstraction): Enable
11831 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11832 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11833 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11834 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11835 support it.
11836 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11837 GNU/kFreeBSD.
11838 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11839 when LVM abstraction is required for ${GRUB_DEVICE}.
11840
050e8e90
SJ
118412011-10-06 Szymon Janc <szymon@janc.net.pl>
11842
11843 Add support for LZO compression in GRUB:
11844 - import of minilzo library,
11845 - LZO decompression for btrfs,
11846 - lzop files decompression.
11847
11848 * grub-core/io/lzopio.c: New file.
11849 * grub-core/lib/adler32.c: Likewise.
11850 * grub-core/lib/minilzo/lzoconf.h: Likewise.
11851 * grub-core/lib/minilzo/lzodefs.h: Likewise.
11852 * grub-core/lib/minilzo/minilzo.c: Likewise.
11853 * grub-core/lib/minilzo/minilzo.h: Likewise.
11854 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
11855 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
11856 grub-core/lib/minilzo/minilzo.c to common.
11857 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
11858 cflags in cppflags.
11859 * grub-core/Makefile.core.def (btrfs): Likewise.
11860 * grub-core/Makefile.core.def (lzopio): New module.
11861 (adler32): Likewise.
11862 * grub-core/fs/btrfs.c: Include minilzo.h.
11863 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11864 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11865 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11866 (grub_btrfs_lzo_decompress): New function.
11867 (grub_btrfs_extent_read): Add support for LZO compression type.
11868 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11869 (GRUB_USHRT_MAX): Likewise.
11870 (GRUB_UINT_MAX): Likewise.
11871 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11872 (UINT_MAX): Likewise.
11873 (CHAR_BIT): Likewise.
11874 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11875 grub-core/lib/posix_wrap/limits.h
11876 (UCHAR_MAX): Likewise.
11877 * include/grub/file.h (grub_file_filter_id): New compression filter
11878 GRUB_FILE_FILTER_LZOPIO.
11879 * include/grub/file.h (grub_file_filter_id): Set
11880 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11881 * include/grub/types.h (grub_get_unaligned16): New function.
11882 (grub_get_unaligned32): Likewise.
11883 (grub_get_unaligned64): Likewise.
11884 * util/import_gcry.py (cryptolist): Add adler32.
11885
0eb8ffb1
VS
118862011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11889 in perspective decreases the complexity of build system and fixes
11890 compilation right now.
11891
ce79cc99 118922011-10-01 Ales Nesrsta <starous@volny.cz>
11893
11894 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11895 (fixed problem related to using UHCI with coreboot).
11896
8667a314
BC
118972011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11898
11899 * gentpl.py: Use Autogen macros so that the output template file
11900 (Makefile.tpl) size is reduced.
11901
fc5efcc0
MK
119022011-09-29 Mads Kiilerich <mads@kiilerich.com>
11903
11904 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11905 extra_dist.
11906
d1ab689d
ML
119072011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11908
11909 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11910 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11911
c05de032
ML
119122011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11913
11914 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11915 _fullpath.
11916
cca7ccd8
ML
119172011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11918
11919 Remove extra declaration of sleep for mingw32.
11920
11921 * util/misc.c (sleep) [__MINGW32__]: Removed.
11922 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11923
e0b0dc83
GS
119242011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11925
11926 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11927 type and packname.
11928 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11929 Resurrected.
11930 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11931 (grub_netbsd_btinfo_bootwedge): New struct.
11932 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11933 New function.
11934 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11935
91a1a164
TH
119362011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11937
11938 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11939 loader.
11940
2ded951e
AB
119412011-09-28 Andreas Born <futur.andy@googlemail.com>
11942
11943 Fix incorrect identifiers in bash-completion.
11944
11945 * util/bash-completion.d/grub-completion.bash.in
11946 (_grub_mkpasswd-pbkdf2): Rename to ...
11947 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11948 (_grub_script-check): Rename to ...
11949 (_grub_script_check): ... this. All users updated.
11950
69915030
VS
119512011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11954 Return 0 if disk isn't biosdisk.
11955
20fd15f9
GS
119562011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11957
11958 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11959 on NetBSD.
11960 * Makefile.util.def (grub-fstest): Likewise.
11961
1a7d7db9
GS
119622011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11963
11964 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11965 Get sector size from disk label.
11966
2221ab6c
CW
119672011-09-05 Colin Watson <cjwatson@ubuntu.com>
11968
11969 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11970 */README* as well as README*.
11971 Reported by: Axel Beckert.
11972
ca51c4a0
VS
119732011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11976 case of less than 256 MiB of RAM.
11977
ab80f326
VS
119782011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 * grub-core/commands/wildcard.c (make_regex): Handle @.
11981
4155e697
VS
119822011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11983
11984 * util/grub-install.in: Move cryptodisk logic to appropriate place.
11985
ab178c08
SJ
119862011-08-21 Szymon Janc <szymon@janc.net.pl>
11987
11988 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
11989 AC_LANG_CONFTEST macros.
11990
7dc3c686
SJ
119912011-08-20 Szymon Janc <szymon@janc.net.pl>
11992
11993 Add grub-fstest option to uncompress data for commands.
11994
11995 * util/grub-fstest.c (uncompress): New var.
11996 (options): New option -u.
11997
fe8d4a7b
SJ
119982011-08-20 Szymon Janc <szymon@janc.net.pl>
11999
12000 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12001 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12002
a5219af1
SJ
120032011-08-20 Szymon Janc <szymon@janc.net.pl>
12004
12005 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12006 file type was not recognized correctly (not gzip or corrupted).
12007
f87abff5
VS
120082011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12009
12010 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12011 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12012
d94497ea
VS
120132011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12016 loongson.
12017 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12018 video_radeon_fuloong2e.
12019 * grub-core/video/radeon_fuloong2e.c: New file.
12020 * include/grub/video.h (grub_video_id_t): Add new ID
12021 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12022
0d1fd011
VS
120232011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12026 define.
12027 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12028 that PRID matches the detected subplatform and reset the subplatform
12029 if it doesn't.
12030
84beb0ee
VS
120312011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12034
1227c133
VS
120352011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 Fix PCI iterating on functions >= 4.
12038
12039 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12040 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12041 Removed.
12042 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12043 (grub_pci_read): Fix bitmask.
12044 (grub_pci_read_word): Likewise.
12045 (grub_pci_read_byte): Likewise.
12046 (grub_pci_write): Likewise.
12047 (grub_pci_write_word): Likewise.
12048 (grub_pci_write_byte): Likewise.
12049
9594c689
VS
120502011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12053 can still be specified in TARGET_CFLAGS)
12054
14a2562c
VS
120552011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12056
12057 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12058
12059 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12060 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12061 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12062 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12063 (FULOONG): Rename to ...
12064 (FULOONG2F): ... this. All users updated.
12065 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12066 (machtype_fuloong2f_str): ... this.
12067 (machtype_fuloong2e_str): New string.
12068 Check for machtype_fuloong2e_str.
12069 * grub-core/loader/mips/linux.c (loongson_machtypes)
12070 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12071 * grub-core/term/serial.c (loongson_defserial)
12072 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12073 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12074 loongson_defserial.
12075 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12076 Rename to ...
12077 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12078 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12079 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12080 to IMAGE_FULOONG2F_FLASH. All users updated.
12081 (image_targets): Rename images.
12082 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12083
b526cbb6
SJ
120842011-08-19 Szymon Janc <szymon@janc.net.pl>
12085
12086 Make enable of disk cache statistics code configurable.
12087
12088 * configure.ac: --enable-cache-stats added.
12089 * config.h.in (DISK_CACHE_STATS): New define.
12090 * grub-core/Makefile.core.def (cacheinfo): New command.
12091 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12092 * grub-core/commands/cacheinfo.c: New file.
12093 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12094 moved to cacheinfo.c.
12095 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12096 debug code.
12097 * include/grub/disk.h: Likewise.
12098
fb739ccd
SJ
120992011-08-19 Szymon Janc <szymon@janc.net.pl>
12100
12101 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12102 * grub-core/Makefile.am: Likewise.
12103
2bba8cfd
VS
121042011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12107 non-zero pull.
12108
43526629
VS
121092011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12112 All users updated.
12113 (grub_jfs_lookup_symlink): Use correct starting inode.
12114
5c144cc8
VS
121152011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * util/grub-setup.c (main): Add missing gcry initialisation.
12118
b1257f65
VS
121192011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 Don't accept text modes on EFI when booting Linux.
12122
12123 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12124 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12125
828bc390
ML
121262011-08-15 Mario Limonciello <mario_limonciello@dell.com>
121272011-08-15 Colin Watson <cjwatson@ubuntu.com>
12128
12129 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12130 use of "/path/.." as in grub-install for EFI as well as handling
12131 symlinks correctly.
12132 Fixes Debian bug #637768.
12133
5f60ccac
CW
121342011-08-15 Colin Watson <cjwatson@ubuntu.com>
12135
12136 * util/grub-probe.c: Remove duplicate #include.
12137
6dc212f9
RM
121382011-08-10 Robert Millan <rmh@gnu.org>
12139
12140 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12141
12142 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12143 function.
12144 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12145 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12146
66816d85
RM
121472011-08-03 Robert Millan <rmh@gnu.org>
12148
12149 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12150 la_array as packed.
12151 Reported by: Zachary Bedell
12152
20168fca
CW
121532011-07-26 Colin Watson <cjwatson@ubuntu.com>
12154
12155 * configure.ac: The Loongson port requires grub-mkfont due to its
12156 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12157 be built.
12158
303b6246
CW
121592011-07-26 Colin Watson <cjwatson@ubuntu.com>
12160
12161 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12162 processing arguments (otherwise help2man fails when GRUB has not yet
12163 been installed).
12164
6795300e
VS
121652011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12166
41aa28ea
VS
12167 New script grub-mkstandalone.
12168
12169 * Makefile.util.def (grub-mkstandalone): New script.
12170 * docs/man/grub-mkstandalone.h2m: New file.
12171 * util/grub-mkstandalone.in: Likewise.
12172
121732011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 Support ATA disks with 4K sectors.
6795300e
VS
12176
12177 * include/grub/ata.h (grub_ata): New member log_sector_size.
12178 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12179 (grub_ata_identify): Read sector size.
12180 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12181
92227597
VS
121822011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * util/grub-install.in: Don't use uhci outside of x86.
12185
c77069f5
VS
121862011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * util/grub-mkrescue.in: Add missing quotes.
12189
121902011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
12191
12192 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12193 dereference.
12194
583168a2
VS
121952011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12198
6be1c01f
VS
121992011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * include/grub/video.h: add missing EXPORT_FUND on
12202 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12203
a1167439
VS
122042011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 * include/grub/mips/kernel.h: Fix define conflict.
12207
bf66054f
VS
122082011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12211 all four ways.
12212
8fc4fa45
CW
122132011-07-21 Colin Watson <cjwatson@ubuntu.com>
12214
12215 Preferred resolution detection for VBE.
12216
12217 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12218 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12219 the Flat Panel extension, in line with the X.org VESA driver.
12220 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12221 New function.
12222 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12223 (grub_vbe_bios_read_edid): Likewise.
12224 (grub_vbe_get_preferred_mode): Likewise.
12225 (grub_video_vbe_setup): When the mode is "auto", try to get the
12226 preferred mode from VBE, and use the largest mode that is no larger
12227 than the preferred mode (some BIOSes expose a preferred mode that is
12228 not in their mode list!). If this fails, fall back to 640x480 as a
12229 safe conservative choice.
12230 (grub_video_vbe_get_edid): New function.
12231 (grub_video_vbe_adapter): Add get_edid.
12232 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12233 (struct grub_video_adapter): Add get_edid.
12234 (grub_video_edid_checksum): Add prototype.
12235 (grub_video_edid_preferred_mode): Likewise.
12236 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12237 structure.
12238
12239 * grub-core/commands/videoinfo.c (print_edid): New function.
12240 (grub_cmd_videoinfo): Print EDID if available.
12241
12242 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12243 is more appropriate on a wider range of platforms than 640x480.
12244 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12245 documentation.
12246
ca5572a9
VS
122472011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12248
12249 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12250
e4bcf625
VS
122512011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12252
12253 * po/POTFILES.in: Regenerate.
12254
c4edd548
VS
122552011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12258 incorrect memory usage.
12259
16a2bab0
VS
122602011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12261
12262 * util/grub-install.in: Source grub-mkconfig_lib.
12263
2e418de6
VS
122642011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12265
12266 Remove getroot.c from core on emu platform.
12267
12268 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12269 kern/emu/raid.c.
12270 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12271 useless.
12272 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12273 * util/getroot.c (get_win32_path): ... here.
12274 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12275 * util/getroot.c (fini_libzfs): ... here.
12276 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12277 * util/getroot.c (grub_get_libzfs_handle): ... here.
12278 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12279 Moved from here...
12280 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12281 * grub-core/kern/emu/misc.c
12282 (grub_make_system_path_relative_to_its_root): Moved from here...
12283 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12284 * grub-core/kern/emu/getroot.c: Moved from here ...
12285 * util/getroot.c: ... here. All users updated.
12286 * grub-core/kern/emu/raid.c: Moved from here ...
12287 * util/raid.c: ... here. All users updated.
12288
def9832a
VS
122892011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12290
12291 * po/POTFILES.in: Regenerate.
12292
cd8fe79a
VS
122932011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 Fix compilation on GNU/Linux.
12296
12297 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
12298 Disable geli.
12299 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
12300 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
12301 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
12302
a251b719
VS
123032011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
123042011-07-07 Michael Gorven <michael@gorven.za.net>
123052011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
12306
12307 LUKS and GELI support.
12308
12309 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
12310 grub-core/disk/luks.c, grub-core/disk/geli.c,
12311 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
12312 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
12313 grub-core/lib/arg.c.
12314 (libgrubmods.a): Remove gcrypts cflags and cppflags.
12315 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
12316 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
12317 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
12318 (grub-bin2h): Add libgcry.a.
12319 (grub-mkimage): Likewise.
12320 (grub-mkrelpath): Likewise.
12321 (grub-script-check): Likewise.
12322 (grub-editenv): Likewise.
12323 (grub-mkpasswd-pbkdf2): Likewise.
12324 (grub-pe2elf): Likewise.
12325 (grub-fstest): Likewise.
12326 (grub-mkfont): Likewise.
12327 (grub-mkdevicemap): Likewise.
12328 (grub-probe): Likewise.
12329 (grub-ofpath): Likewise.
12330 (grub-mklayout): Likewise.
12331 (example_unit_test): Likewise.
12332 (grub-menulst2cfg): Likewise.
12333 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
12334 * grub-core/Makefile.core.def (cryptodisk): New module.
12335 (luks): Likewise.
12336 (geli): Likewise.
12337 * grub-core/disk/AFSplitter.c: New file.
12338 * grub-core/disk/cryptodisk.c: Likewise.
12339 * grub-core/disk/geli.c: Likewise.
12340 * grub-core/disk/luks.c: Likewise.
12341 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
12342 grub_util_is_lvm.
12343 (grub_util_get_dm_abstraction): New function.
12344 (grub_util_follow_gpart_up): Likewise.
12345 (grub_util_get_geom_abstraction): Likewise.
12346 (grub_util_get_dev_abstraction): Use new functions.
12347 (grub_util_pull_device): Pull GELI and LUKS.
12348 (grub_util_get_grub_dev): Handle LUKS and GELI.
12349 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
12350 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
12351 (follow_geom_up): Removed.
12352 (grub_util_fd_seek): New function.
12353 (open_device): Use grub_util_fd_seek.
12354 (nread): Rename to ..
12355 (grub_util_fd_read): ... this. All users updated.
12356 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
12357 (grub_crypto_cbc_decrypt): Likewise.
12358 (grub_crypto_hmac_write): Likewise.
12359 (grub_crypto_hmac_buffer): Likewise.
12360 (grub_password_get): Extend to util.
12361 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
12362 New member modname.
12363 (gcry_md_spec) [GRUB_UTIL]: Likewise.
12364 * include/grub/cryptodisk.h: New file.
12365 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
12366 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
12367 LUKS and GELI.
12368 (grub_util_follow_gpart_up): New proto.
12369 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
12370 (grub_util_fd_read): Likewise.
12371 (grub_cryptodisk_cheat_mount): Likewise.
12372 (grub_util_cryptodisk_print_uuid): Likewise.
12373 (grub_util_get_fd_sectors): Likewise.
12374 * util/grub-fstest.c (mount_crypt): New var.
12375 (fstest): Mount crypto if requested.
12376 (options): New option -C.
12377 (argp_parser): Parse -C.
12378 (main): Init and fini gcry.
12379 * util/grub-install.in: Support cryptodisk install.
12380 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
12381 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
12382 cryptodisk.
12383 (prepare_grub_to_access_device): Likewise.
12384 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
12385 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
12386 (probe_cryptodisk_uuid): New function.
12387 (probe_abstraction): Likewise.
12388 (probe): Use new functions.
12389 * util/import_gcry.py: Create Makefile.utilgcry.def.
12390 Add modname member.
12391
9bfdcbbc
VS
123922011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12393
12394 Lazy device scanning.
12395
12396 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
12397 (grub-setup): Remove util/raid.c.
12398 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
12399 * grub-core/disk/lvm.c (scan_depth): New variable.
12400 (grub_lvm_iterate): Rescan if necessary.
12401 (find_lv): New function based on grub_lvm_open.
12402 (grub_lvm_open): Use find_lv. Rescan on error.
12403 (is_node_readable): New function.
12404 (is_lv_readable): Likewise.
12405 (grub_lvm_scan_device): Skip already found disks.
12406 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
12407 Stop if searched device is found and readable.
12408 * grub-core/disk/raid.c (inscnt): New variable.
12409 (scan_depth): Likewise.
12410 (scan_devices): New function based on grub_raid_register. Abort if
12411 looked for device is found.
12412 (grub_raid_iterate): Rescan if needed.
12413 (find_array): NEw function based on -grub_raid_open.
12414 (grub_raid_open): Use find_array and rescan.
12415 (insert_array): Set became_readable_at.
12416 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
12417 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
12418 New function.
12419 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
12420 (grub_util_pull_device): New function.
12421 (grub_util_get_grub_dev): Call grub_util_pull_device.
12422 * util/raid.c: Moved to ..
12423 * grub-core/kern/emu/raid.c: ... here.
12424 (grub_util_raid_getmembers): New parameter "bootable".
12425 All users updated. Support 1.x.
12426 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
12427 All users updated.
12428 * include/grub/disk.h (grub_disk_pull_t): New enum.
12429 (grub_disk_dev): Change iterate prototype.
12430 All users updated.
12431 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
12432 New proto.
12433 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
12434 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
12435 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
12436 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
12437 All users updated.
12438 * include/grub/util/raid.h: Removed.
12439
1c358e59
VS
124402011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 * po/POTFILES.in: Regenerate.
12443
abee94ed
VS
124442011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 Unify sparc init with other ieee1275.
12447
12448 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
12449 instead of kern/sparc64/ieee1275/init.c.
12450 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
12451 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
12452 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
12453 grub/machine/kernel.h.
12454 (grub_ieee1275_original_stack) [__sparc__]: New variable.
12455 (grub_claim_heap) [__sparc__]: Use sparc version.
12456 (grub_machine_init): Moved args parsing to
12457 (grub_parse_cmdline): ...this.
12458 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
12459 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
12460 New definition.
12461 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
12462
12463 Move BOOTP to separate file.
12464
12465 * grub-core/Makefile.core.def (net): Add net/bootp.c.
12466 * grub-core/net/net.c: Move all BOOTP functions to
12467 * grub-core/net/bootp.c: ... here.
12468
12469 Use frame interface on PXE.
12470
12471 * grub-core/Makefile.core.def (pxecmd): Removed.
12472 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
12473 * grub-core/commands/i386/pc/pxecmd.c: Removed.
12474 * grub-core/i386/pc/pxe.c: Moved from here ...
12475 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
12476 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
12477 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
12478
12479 EFI network support.
12480
12481 * grub-core/Makefile.core.def (efinet): New module.
12482 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
12483 here...
12484 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
12485 All users updated.
12486 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
12487 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
12488 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
12489 * grub-core/net/drivers/efi/efinet.c: New file.
12490 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
12491 (grub_efi_net_config): New extern var.
12492
12493 Various cleanups and bugfixes.
12494
12495 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
12496 error.
12497 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
12498 disk declared as partition.
12499 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
12500 leak on failure.
12501 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
12502 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
12503 (grub_debug_zalloc): Likewise.
12504 (grub_debug_realloc): Likewise.
12505 (grub_debug_memalign): Likewise.
12506 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
12507 Check that target is IPv4.
12508 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
12509 local-mac-address as fallback.
12510 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
12511 memory leak.
12512 * grub-core/net/ip.c (ipchksum): Rename to ...
12513 (grub_net_ip_chksum): ... this. All users updated.
12514 (grub_net_recv_ip_packets): Special handling for DHCP.
12515 * util/grub-mkimage.c (generate_image): Zero-out aout header.
12516
12517 Unify prefix handling
12518
12519 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
12520 (grub_machine_get_bootlocation): ... this.
12521 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
12522 (grub_machine_get_bootlocation): ... this.
12523 (grub_prefix): New variable.
12524 (prefix): Removed.
12525 (root_dev): New variable.
12526 (dir): Likewise.
12527 (main): Use new variables.
12528 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
12529 Revamped into ...
12530 (grub_machine_get_bootlocation): ... this.
12531 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
12532 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
12533 (grub_machine_get_bootlocation): ... this.
12534 (grub_machine_set_prefix): Removed.
12535 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
12536 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
12537 Revamped into ...
12538 (grub_machine_get_bootlocation): ... this.
12539 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
12540 (grub_set_prefix_and_root): ... this. All users updated.
12541 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
12542 Revamped into ...
12543 (grub_machine_get_bootlocation): ... this.
12544 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
12545 (grub_machine_get_bootlocation): New proto.
12546 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
12547
12548 Less intrusive and more reliable seek on network implementation.
12549
12550 * grub-core/kern/file.c (grub_file_net_seek): Removed.
12551 (grub_file_seek): Don't call grub_file_net_seek.
12552 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
12553 (grub_net_fs_read_real): .. this.
12554 (grub_net_seek_real): Use net->offset.
12555 (grub_net_fs_read): Seek if necessary.
12556
12557 Unify IEEE1275 netwotk config with the other platforms.
12558
12559 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
12560 New variable.
12561 (grub_machine_get_bootlocation): Support network.
12562 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12563 Support type and device parsing.
12564 (grub_ieee1275_get_device_type): New function.
12565 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
12566 into ...
12567 (grub_ieee1275_net_config_real): ... this.
12568 (grub_ofnet_probecards): Removed.
12569 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
12570 * include/grub/ieee1275/ofnet.h: Removed.
12571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
12572 extern var.
12573 (grub_ieee1275_get_device_type): New function.
12574
12575 Unify network device closing across platforms and make more robust.
12576
12577 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
12578 grub_grubnet_fini.
12579 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
12580 already.
12581 * grub-core/net/net.c (grub_net_network_level_interface_register):
12582 Update num_ifaces.
12583 (grub_net_card_unregister): Close all interfaces.
12584 (receive_packets): Don't poll if no iterfaces are registered.
12585 Open if necessary.
12586 (grub_net_fini_hw): New function.
12587 (grub_net_restore_hw): Likewise.
12588 (fini_hnd): New variable.
12589 (GRUB_MOD_INIT): Register preboot hook.
12590 (GRUB_MOD_FINI): Run and unregister preboot hook.
12591
12592 Poll network cards when idle.
12593
12594 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
12595 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
12596 * grub-core/net/net.c (receive_packets): Save last poll time.
12597 (grub_net_poll_cards_idle_real): New function.
12598 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
12599 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
12600 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
12601
12602 Rename ofnet interfaces.
12603
12604 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
12605 (grub_ofnet_findcards): Use ofnet_%s names.
12606
12607 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
12608
12609 Cleanup socket opening.
12610
12611 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
12612 (grub_net_fs_close): Likewise.
12613 (grub_net_fs_read_real): Use eof member.
12614 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
12615 (+grub_net_udp_close): New inline function.
12616
12617 * include/grub/net/tftp.h: Moved to the top of ...
12618 * grub-core/net/tftp.c: ... here.
12619 * include/grub/net/ip.h: Moved mostly to the top of ...
12620 * grub-core/net/ip.c: ... here.
12621 * include/grub/net/ethernet.h: Moved mostly to the top of ...
12622 * grub-core/net/ethernet.c: ... here.
12623
12624 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
12625
12626 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
12627 FS name.
12628
12629 * include/grub/net/ip.h (ipv4_ini): Removed.
12630 (ipv4_fini): Likewise.
12631
12632 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
12633 (grub_net_send_ip_packets): Likewise.
12634
cf1337aa
VS
126352011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12636
12637 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
12638 grub_read_cmos prototype.
12639
93c06ff9
VS
126402011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12641
12642 VGA text support in qemu-mips
12643
12644 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
12645 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
12646 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
12647 text.
12648 * grub-core/kern/i386/qemu/init.c: Renamed to ...
12649 * grub-core/kern/vga_init.c: ... this.
12650 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
12651 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
12652 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
12653 Adjust.
12654 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
12655 GRUB_MACHINE_PCI_IO_BASE.
12656
748ccabe
VS
126572011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 MIPS qemu flash support.
12660
12661 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
12662 magic.
12663 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
12664 (grub_machine_init): Probe memory if its size isn't known.
12665 * util/grub-mkimage.c (image_targets): Add flash targets.
12666 (generate_image): Handle flash targets.
12667
d7345994
VS
126682011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 MIPS qemu at_keyboard support.
12671
12672 * gentpl.py (videoinkernel): Add qemu-mips.
12673 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
12674 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
12675 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
12676 modules.
12677 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
12678 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
12679 * grub-core/term/serial.c (grub_serial_register)
12680 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
12681
a07a81b3
VS
126822011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12683
12684 CMOS support on sparc.
12685
12686 * gentpl.py (cmos): Add powerpc and sparc.
12687 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
12688 powerpc and sparc.
12689 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
12690 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
12691 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
12692 grub_set_datetime_cmos.
12693 * grub-core/lib/ieee1275/cmos.c: New file.
12694 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
12695 (find_rtc): Set no_ieee1275_rtc on error.
12696 (grub_get_datetime): Call grub_get_datetime_cmos on error.
12697 (grub_set_datetime): Call grub_set_datetime_cmos on error.
12698 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
12699 fail. Move value to argument. All users updated
12700 (grub_cmos_write): Likewise.
12701 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
12702 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
12703 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
12704 grub_get_datetime_cmos and grub_set_datetime_cmos.
12705
77546584
GS
127062011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12707
12708 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
12709 sourcing grub-mkconfig_lib.
12710 * util/update-grub_lib.in: Likewise.
12711 * util/grub.d/00_header.in: Likewise.
12712 * util/grub.d/10_hurd.in: Likewise.
12713 * util/grub.d/10_kfreebsd.in: Likewise.
12714 * util/grub.d/10_linux.in: Likewise.
12715 * util/grub.d/10_netbsd.in: Likewise.
12716 * util/grub.d/10_windows.in: Likewise.
12717 * util/grub.d/20_linux_xen.in: Likewise.
12718 * util/grub.d/30_os-prober.in: Likewise.
12719
54894791
CW
127202011-06-28 Colin Watson <cjwatson@ubuntu.com>
12721
12722 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
12723 default_bg_color rather than black.
12724 (grub_gfxterm_fullscreen): Likewise.
12725 (grub_gfxterm_background_color_cmd): Save new background color in
12726 default_bg_color.
12727
8d5d8444
VS
127282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12729
12730 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
12731
5afeb5bd
VS
127322011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
12735 mismerge.
12736
ba7df45e
VS
127372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 Chainloading on coreboot support.
12740
12741 * grub-core/Makefile.core.def (chain): Add coreboot.
12742 * grub-core/loader/i386/coreboot/chainloader.c: New file.
12743
d0b526b2
VS
127442011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
12747 if it happens.
12748
5ff1d945
VS
127492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 Implement time command.
12752
12753 * grub-core/Makefile.core.def (time): New module.
12754 * grub-core/commands/time.c: New file.
12755 * grub-core/script/parser.y: Remove "time" keyword.
12756 * grub-core/script/yylex.l: Likewise.
12757
5ebaad7e
VS
127582011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
12761
bdea3798
VS
127622011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12763
12764 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
12765 when handling leftovers.
12766
b28c5655
VS
127672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
12770 so that help2man doesn't fail.
12771
b6f945dc
VS
127722011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
12775 type in pointers on sparc64.
12776 (get_card_packet): Likewise.
12777
f9b75e8a
CW
127782011-06-27 Colin Watson <cjwatson@ubuntu.com>
12779
12780 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
12781 with `*'.
12782 (grub_cmd_videoinfo): Fetch current video mode.
12783
1e3d9b86
VS
127842011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
12787 because of underlying system restrictions.
12788
efff4b1c
VS
127892011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
12792 necessary.
12793
9fc9ce37
VS
127942011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 Coreboot video support.
12797
12798 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
12799 (vbe): Likewise.
12800 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
12801 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
12802 here ...
12803 * grub-core/kern/i386/int.S: ... here.
12804 * grub-core/video/i386/pc/vbe.c: Updated includes.
12805 * grub-core/video/i386/pc/vga.c: Likewise.
12806 * include/grub/i386/coreboot/memory.h
12807 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
12808 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12809 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12810 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12811 Disable interrupts.
12812 * include/grub/i386/pc/vga.h: Removed. All users updated.
12813
41bec7fe
VS
128142011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12815
12816 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12817 definitions for dprintf.
12818 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12819
ca80309d
VS
128202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12821
12822 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12823 prototype.
12824 (get_card_packet): Likewise.
12825
9e322ce8
YB
128262011-06-26 Yves Blusseau <blusseau@zetam.org>
12827
12828 Display the path of the file when file is not found
12829
12830 * grub-core/fs/fat.c: Display the filename when file is not found.
12831 * grub-core/fs/fshelp.c: Likewise.
12832 * grub-core/fs/hfs.c: Likewise.
12833 * grub-core/fs/jfs.c: Likewise.
12834 * grub-core/fs/minix.c: Likewise.
12835 * grub-core/fs/ufs.c: Likewise.
12836 * grub-core/fs/btrfs.c: Likewise.
12837 * grub-core/commands/i386/pc/play.c: Likewise.
12838
cbf597af
SJ
128392011-06-26 Szymon Janc <szymon@janc.net.pl>
12840
12841 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12842 pointer checks before calling grub_free().
12843 * grub-core/commands/wildcard.c (match_devices): Likewise.
12844 * grub-core/commands/wildcard.c (match_files): Likewise.
12845 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
12846 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
12847 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
12848 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
12849 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
12850 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
12851 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
12852 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12853 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
12854
6295b32f
P
128552011-06-25 Patrick <p55@mailinator.com>
12856
12857 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
12858
77c0840b
VS
128592011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12862 (grub_pxe_send): Likewise.
12863 (GRUB_MOD_INIT): Fix types.
12864
40ea05de
SJ
128652011-06-24 Szymon Janc <szymon@janc.net.pl>
12866
12867 * grub-core/io/xzio.c: Fix code style issues
12868
90162423
MRA
128692011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
128702011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12871
12872 Network infrastructure.
12873 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12874
12875 * include/grub/net/arp.h: New file.
90162423
MRA
12876 * include/grub/net/device.h: Likewise.
12877 * include/grub/net/ethernet.h: Likewise.
12878 * include/grub/net/ip.h: Likewise.
12879 * include/grub/net/netbuff.h: Likewise.
12880 * include/grub/net/tftp.h: Likewise.
12881 * include/grub/net/udp.h: Likewise.
12882 * include/grub/ieee1275/ofnet.h: Likewise.
12883 * include/grub/emu/export.h: Likewise.
12884 * include/grub/net.h: Likewise.
12885 * grub-core/net/arp.c: Likewise.
12886 * grub-core/net/ethernet.c: Likewise.
12887 * grub-core/net/ip.c: Likewise.
12888 * grub-core/net/udp.c: Likewise.
12889 * grub-core/net/tftp.c: Likewise.
12890 * grub-core/net/netbuff.c: Likewise.
12891 * grub-core/net/net.c: Likewise.
12892 * grub-core/net/drivers/emu/emunet.c: Likewise.
12893 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12894 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12895 export.h.
12896 * grub-core/Makefile.core.def (net): New module.
12897 (tftp): Likewise.
12898 (ofnet): Likewise.
12899 (emunet): Likewise.
12900 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12901 network protocols.
12902 * grub-core/kern/device.c (grub_net_open) : New variable.
12903 (grub_device_open): Handle network device.
12904 (grub_device_close): Likewise.
12905 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12906 (grub_grubnet_fini): Likewise.
12907 (grub_file_seek): Seek in network device.
12908 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12909 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12910 network root.
12911 (grub_machine_fini): Call grub_grubnet_fini.
12912 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12913 network.
12914 (grub_ieee1275_get_aliasdevname): New function.
12915 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12916 Add unofficial Solaris network info.
12917 (grub_multiboot_make_mbi): Likewise.
12918 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12919 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12920 * include/grub/device.h (grub_fs): Removed.
12921 * include/grub/err.h (grub_err_t): Add network-related values.
12922 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12923 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12924 (grub_ieee1275_get_aliasdevname): New proto.
12925 * include/grub/net.h: Rewritten.
423a1849 12926
031f22a0
VS
129272011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12928
12929 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12930 names.
12931
4388ca72
VS
129322011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12935 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12936 it truncates the output.
12937 Reported by: Ximin Luo.
12938
98e2f506
VS
129392011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12942
2a5e94d8
VS
129432011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12946 partmap before abstraction.
12947
535c1910
AK
129482011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12949
12950 * util/grub-mkconfig_lib.in: Add missing quotes.
12951
bc09e1a2
VS
129522011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12955 old method if mountinfo would return /dev/root and /dev/root doesn't
12956 exist.
12957
290766fb
VS
129582011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12959
12960 ZFS zlib support
12961
12962 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12963 (decomp_table): Add zlib entries.
12964 (zio_read): USe 8 bits for compression function rather than 3.
12965 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12966
129672011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12968
12969 * grub-core/disk/ahci.c: Add missing license statements.
12970 * grub-core/fs/romfs.c: Likewise.
12971 * grub-core/lib/ia64/setjmp.S: Likewise.
12972 * grub-core/loader/i386/pc/freedos.c: Likewise.
12973 * grub-core/loader/ia64/efi/linux.c: Likewise.
12974 * grub-core/video/colors.c: Likewise.
12975 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12976
5ab3f48a
VS
129772011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12978
12979 AHCI support.
12980
12981 * grub-core/Makefile.core.def (ata_pthru): Removed.
12982 (ahci): New module.
12983 (pata): Likewise.
12984 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
12985 on unload.
12986 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
12987 readwrite.
12988 (grub_hdparm_do_check_powermode_cmd): Likewise.
12989 (grub_hdparm_do_smart_cmd): Likewise.
12990 (grub_hdparm_set_val_cmd): Likewise.
12991 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
12992 * grub-core/disk/ahci.c: New file.
12993 * grub-core/disk/ata.c: Factor out the low-level part into ...
12994 * grub-core/disk/pata.c: ... here.
12995 * grub-core/disk/ata_pthru.c: Contents moved to ...
12996 * grub-core/disk/pata.c: ... here.
12997 * grub-core/disk/scsi.c (grub_scsi_names): New array.
12998 (grub_scsi_iterate): Use grub_scsi_names.
12999 (grub_scsi_open): Likewise.
13000 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13001 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13002 (grub_ata_regs_t): New struct.
13003 (grub_disk_ata_pass_through_parms): Likewise.
13004 (grub_ata_device): Renamed to ...
13005 (grub_ata): ... this.
13006 (grub_ata_dev): New struct.
13007 Removed all low-level inline functions.
13008 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13009 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13010 iterate hooks and open. All users updated.
13011 * util/grub-install.in: Handle AHCI disk module.
13012
c31dc5f5
SJ
130132011-06-23 Szymon Janc <szymon@janc.net.pl>
13014
13015 Add support for DRI and RSTn markers in JPEG files.
13016
13017 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13018 (JPEG_MARKER_RST0): Likewise.
13019 (JPEG_MARKER_RST1): Likewise.
13020 (JPEG_MARKER_RST2): Likewise.
13021 (JPEG_MARKER_RST3): Likewise.
13022 (JPEG_MARKER_RST4): Likewise.
13023 (JPEG_MARKER_RST5): Likewise.
13024 (JPEG_MARKER_RST6): Likewise.
13025 (JPEG_MARKER_RST7): Likewise.
13026 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13027 (grub_jpeg_decode_dri): New function.
13028 (grub_jpeg_decode_sos): Move image data related part into
13029 grub_jpeg_decode_data function.
13030 (grub_jpeg_decode_data): New function.
13031 (grub_jpeg_reset): New function.
13032 (grub_jpeg_decode_jpeg): Handle new markers.
13033
fe12fd5b
VS
130342011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13035
13036 * util/ieee1275/ofpath.c (check_sas): Close fd.
13037 (main): Free of_path.
13038 Reported by: David Volgyes <dvolgyes>.
13039
03147f46
VS
130402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13043 Reported by: David Volgyes <dvolgyes>.
13044
cad3237f
VS
130452011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13048 file after stat.
13049 Reported by: David Volgyes <dvolgyes>.
13050
13548d26
VS
130512011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13054
13055 Reported by: David Volgyes <dvolgyes>.
13056
e061a1b5
VS
130572011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13060 Prevent memory leak.
13061
1abe47dc
VS
130622011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13065 (main): Close file.
e061a1b5 13066 Reported by: David Volgyes <dvolgyes>.
1abe47dc 13067
fbc62666
VS
130682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13071 to continue if allocation is failed.
13072
13073 Reported by: David Volgyes <dvolgyes>.
13074
e98c83e9
DV
130752011-06-23 David Volgyes <dvolgyes>
13076
13077 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13078 dereference.
13079
a199a8cd
VS
130802011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 Fix spurious warning.
13083
13084 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13085 (acorn_partition_map_find): Use .bin member.
13086
e2d1dba0
VS
130872011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13090 /dev/root as a valid device.
13091
8a5d6919
JM
130922011-06-23 Jim Meyering <meyering@redhat.com>
13093
e2d1dba0
VS
13094 Avoid NULL deref in grub_device_open.
13095
8a5d6919
JM
13096 * grub-core/kern/device.c (grub_device_open): Don't dereference
13097 a NULL pointer upon failed grub_env_get.
13098
f7db6f4a
VS
130992011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 Support non-512B sectors and agglomerate reads.
13102
13103 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13104 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13105 (disk_io_guid): Removed.
13106 (make_devices): Locate solely by BlockIO.
13107 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13108 (grub_efidisk_read): Use read_blocks.
13109 (grub_efidisk_write): Use write_blocks.
13110 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13111 log_sector_size.
13112 (get_safe_sectors): Handle non-512B sectors.
13113 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13114 sectors.
13115 (grub_biosdisk_write): Handle non-512B sectors.
13116 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13117 (grub_scsi_read): Remove special non-512B block handling (now handled
13118 one level up).
13119 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13120 and do sanity checks.
13121 (grub_disk_adjust_range): Handle non-512B sectors.
13122 (transform_sector): New function.
13123 (grub_disk_read_small): Likewise.
13124 (grub_disk_read): Rewritten.
13125 (grub_disk_write): Handle non-512B sectors.
13126 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13127 log_sector_size.
13128 (open_device): Use log_sector_size.
13129 (grub_util_biosdisk_read): Likewise.
13130 (grub_util_biosdisk_write): Likewise.
13131 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13132 non-512B sectors.
13133 (pc_partition_map_embed): Likewise.
13134 * include/grub/disk.h (grub_disk): New field log_sector_size.
13135 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13136 (GRUB_DISK_CACHE_BITS): Increased to 6.
13137 * util/grub-fstest.c (fstest): New command testload.
13138 (argp_parser): Likewise.
13139
881ac815
RM
131402011-06-16 Robert Millan <rmh@gnu.org>
13141
13142 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13143 `ata' driver on kernel of FreeBSD 9.
13144
13145 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13146 (get_ataraid_disk_name): New functions.
13147 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13148 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13149 get_ataraid_disk_name() and get_ada_disk_name().
13150
1e9aef7d
CW
131512011-06-13 Colin Watson <cjwatson@ubuntu.com>
13152
13153 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13154 input format.
13155
351c7c8a
CW
131562011-05-29 Colin Watson <cjwatson@ubuntu.com>
13157
13158 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13159 `ftp.gnu.org' for `alpha.gnu.org'.
13160
6b4e6430
CW
131612011-05-27 Colin Watson <cjwatson@ubuntu.com>
13162
13163 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13164 partitions under /dev/disk/by-id/.
13165
c64db050
CW
131662011-05-27 Colin Watson <cjwatson@ubuntu.com>
13167
13168 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13169 after ten consecutive open failures. Scanning all the way up to
13170 10000 is excessive and can cause serious performance problems in
13171 some configurations.
13172 Fixes Ubuntu bug #787461.
13173
245f4aba
VS
131742011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13177 opening new one.
13178
f767c929
VS
131792011-05-21 Colin Watson <cjwatson@ubuntu.com>
131802011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Don't stat devices unless we have to.
13183
13184 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13185 dir == /dev/mapper.
13186 (grub_guess_root_device): Use already known os_dev if possible.
13187 * grub-core/kern/emu/hostdisk.c
13188 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13189 if device is known to be a dm one.
13190
f35fa3a6
CW
131912011-05-20 Colin Watson <cjwatson@ubuntu.com>
13192
13193 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13194 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13195 Reported by: Pawel Tecza.
13196
9a79fcf2
VS
131972011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13200 (lsefisystab): Likewise.
13201 (lssal): Likewise.
13202 (lsefimmap): Likewise.
13203 (hdparm): Enable on qemu-mips.
13204 (setjmp): Add ia64 nodist.
13205 (serial): Simplify tags.
13206
63e3eea9
CW
132072011-05-18 Colin Watson <cjwatson@ubuntu.com>
13208
13209 * Makefile.util.def (grub-ofpathname): Install manual page.
13210
09728256
CW
132112011-05-18 Colin Watson <cjwatson@ubuntu.com>
13212
13213 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13214
8b63a142
CW
132152011-05-18 Colin Watson <cjwatson@ubuntu.com>
13216
13217 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13218
e775d8ed
VS
132192011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13222 into dprintf.
13223
bf947d36
VS
132242011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 Use full 64-bit division.
13227
13228 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13229 (grub_divmod64): ... this.
13230 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13231 version.
13232
b84f26c5
CW
132332011-05-18 Colin Watson <cjwatson@ubuntu.com>
13234
13235 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13236 `source'.
13237
5626056f
CW
132382011-05-18 Colin Watson <cjwatson@ubuntu.com>
13239
13240 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13241 to avoid accidents when debugging with 'sh -x'.
13242 * grub-core/gensyminfo.sh.in: Likewise.
13243 * tests/example_scripted_test.in: Likewise.
13244 * tests/grub_cmd_regexp.in: Likewise.
13245 * tests/grub_script_blanklines.in: Likewise.
13246 * tests/grub_script_dollar.in: Likewise.
13247 * tests/grub_script_expansion.in: Likewise.
13248 * tests/grub_script_final_semicolon.in: Likewise.
13249 * tests/partmap_test.in: Likewise.
13250 * tests/util/grub-shell-tester.in: Likewise.
13251 * tests/util/grub-shell.in: Likewise.
13252
e2965f4a
CW
132532011-05-18 Colin Watson <cjwatson@ubuntu.com>
13254
13255 Move gfxmenu color handling to video, so that gfxterm can use it
13256 too.
13257
13258 * grub-core/gfxmenu/named_colors.c: Move to ...
13259 * grub-core/video/colors.c: ... here. Rename
13260 grub_gui_get_named_color to grub_video_get_named_color.
13261 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13262 * grub-core/video/colors.c (my_isxdigit): ... here.
13263 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13264 Move to ...
13265 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13266 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13267 to ...
13268 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13269
13270 * include/grub/gui.h (grub_gui_color_t): Move to ...
13271 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13272 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13273 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13274 * include/grub/gui.h (grub_gui_map_color): Move to ...
13275 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13276 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13277 to ...
13278 * include/grub/video.h (grub_video_get_named_color): ... here.
13279 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13280 * include/grub/video.h (grub_video_parse_color): ... here.
13281
13282 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13283 video/colors.c.
13284 (gfxmenu): Remove gfxmenu/named_colors.c.
13285 (video) [videomodules]: Add video/colors.c.
13286
13287 Add a background_color command.
13288
13289 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
13290 function.
13291 (GRUB_MOD_INIT): Register background_color command.
13292 (GRUB_MOD_FINI): Unregister background_color command.
13293 (redraw_screen_rect): Allow blend/replace of text layer to be
13294 controlled independently from whether there is a background bitmap.
13295 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
13296 changing bitmap.
13297
1e4b4390
VS
132982011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13299
26618ff0
VS
13300 Patch BPB in ntldr and chainloader --bpb.
13301
1e4b4390
VS
13302 * grub-core/fs/fat.c: Include grub/fat.h.
13303 (grub_fat_bpb): Moved to ...
13304 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
13305 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
13306 grub/ntfs.h.
13307 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
13308 Moved from here...
13309 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
13310 here.
13311 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
13312 New function.
13313 (grub_chainloader_cmd): Patch BPB if --bpb is given.
13314 (GRUB_MOD_INIT): Show --bpb.
13315 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
13316 * grub-core/normal/main.c (features): New variable.
13317 (GRUB_MOD_INIT): Set feature_* variables.
13318 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
13319 proto.
13320 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
13321
cf02731e
VS
133222011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
13325 for cleanness.
13326
e3a1073f
VS
133272011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13328
13329 FreeDOS direct loading support.
13330
13331 * docs/grub.texi (Supported OS): Add FreeDOS.
13332 * grub-core/Makefile.core.def (freedos): New module.
13333 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
13334 variable.
13335 (grub_relocator16_boot): Handle %ebx.
13336 * grub-core/lib/i386/relocator16.S: Likewise.
13337 * grub-core/loader/i386/pc/freedos.c: New file.
13338
05caa461
VS
133392011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 Long Linux command line support.
13342
13343 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13344 (maximal_cmdline_size): New variable.
13345 (allocate_pages): Use maximal_cmdline_size.
13346 (grub_cmd_linux): Set and use maximal_cmdline_size.
13347 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13348 (allocate_pages): Use maximal_cmdline_size.
13349 (grub_cmd_linux): Set and use maximal_cmdline_size.
13350 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
13351 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
13352 and cmdline_size.
13353
a2491e23
VS
133542011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
133552011-05-18 Colin Watson <cjwatson@ubuntu.com>
13356
13357 Improve devmapper support
13358
13359 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
13360 (grub_util_is_lvm): New function.
13361 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
13362 than lvm if not dmraid.
13363 Handle mapped md nodes.
13364 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
13365 (grub_util_device_is_mapped): ... this. Make always available. All users
13366 updated.
13367 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
13368 (convert_system_partition_to_system_disk): Handle lvm, mpath and
13369 dmraid nodes.
13370 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
13371
6ad6223e
VS
133722011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
13375
13376 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
13377 * grub-core/modinfo.sh.in: New file.
13378 * grub-core/Makefile.core.def (modinfo.sh): New script.
13379 * util/grub-mknetdir.in: Use modinfo.sh.
13380 * util/grub-mkrescue.in: Likewise.
13381
543a8f6e
VS
133822011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13385 Fix potential usage of Elf32 instead of Elf64 when compiling on
13386 32-bit architecture. Add endianness macros while on it.
13387
4959e111
VS
133882011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13389
13390 Use mipsel- rather than mips- in directories involving mipsel ports to
13391 allow both endiannesses coexist.
13392
13393 * configure.ac: proparate target_cpu=mipsel rather than resetting to
13394 mips. All conditions adjusted.
13395 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
13396 variable.
13397 * util/grub-install.in: Adjust conditions to take renaming into account.
13398 * util/grub-mkimage.c (image_targets): Likewise. New target
13399 mips-qemu_mips-elf for bigendian mips.
13400
35341bbc
VS
134012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 Avoid unnecessary copying on MIPS.
13404
13405 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
13406 early if src == dest.
13407 * util/grub-mkimage.c (generate_image): Arange for src == dest if
13408 compression is none.
13409
b772baed
VS
134102011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 Reduce memory footprint on SGI by putting modules before the kernel
13413 as opposed to after.
13414
13415 * grub-core/Makefile.core.def (kernel): Increase linking address.
13416 (none_decompress): Likewise.
13417 (xz_decompress): Likewise.
13418 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
13419 address.
13420 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
13421 layout change.
13422 (grub_arch_modules_addr): New function.
13423 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
13424 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
13425 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
13426 here.
13427 * grub-core/kern/mips/startup.S (total_size): Rename to ...
13428 (grub_total_modules_size): ... this. Make global.
13429 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
13430 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
13431 New definition.
13432 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
13433 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
13434 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
13435 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
13436 * util/grub-mkimage.c (image_target_desc): New flag
13437 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
13438 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
13439 (generate_image): Handle images with modules before kernel.
13440
566a1917
VS
134412011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 Prevent potential loss of memory map by overwrite on qemu-mips.
13444
13445 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13446 Save ram size in $s4.
13447 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
13448 All users changed to grub_arch_memsize.
13449 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
13450 Loongson.
13451 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
13452 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
13453 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
13454 external variable.
13455
5d420cd9
CW
134562011-05-17 Colin Watson <cjwatson@ubuntu.com>
13457
13458 * .bzrignore: Remove grub-dumpbios.
13459
d064b830
CW
134602011-05-17 Colin Watson <cjwatson@ubuntu.com>
13461
13462 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
13463 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
13464 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
13465 existing options which append).
13466 * docs/grub.texi (Simple configuration): Document new options.
13467 Reported by: Ian Jackson. Fixes Debian bug #617538.
13468
3ca2b466
CW
134692011-05-17 Colin Watson <cjwatson@ubuntu.com>
13470
13471 * util/grub-fstest.c (cmd_cat): New function.
13472 (fstest): Handle CMD_CAT.
13473 (options): Add cat.
13474 (argp_parser): Handle cat.
13475
24c9143a
CW
134762011-05-17 Colin Watson <cjwatson@ubuntu.com>
13477
13478 * Makefile.util.def (grub-bin2h): Don't install.
13479 * docs/man/grub-bin2h.h2m: Remove.
13480
90f7ac19
VS
134812011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
13484 place.
13485
8d4a5178
VS
134862011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 Reenable qemu-mips port.
13489
13490 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
13491 Fix small arc bug while on it.
13492 * gentpl.py: Handle qemu_mips.
13493 * grub-core/Makefile.am: Likewise.
13494 * grub-core/Makefile.core.def: Likewise.
13495 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
13496 inappropriate includes.
13497 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
13498 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
13499 * grub-core/kern/main.c (grub_modules_get_end)
13500 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
13501 * grub-core/kern/mips/qemu-mips: Moved to ..
13502 * grub-core/kern/mips/qemu_mips: ... this.
13503 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
13504 (grub_machine_init): Call terminfo_init and serial_init.
13505 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
13506 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13507 New variable.
13508 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
13509 parameter passing.
13510 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
13511 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
13512 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
13513 * include/grub/mips/qemu_mips/cmos.h: New file.
13514 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
13515 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
13516 Removed.
13517 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
13518 Use correct mips-style address.
13519 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
13520 (GRUB_TICKS_PER_SECOND): Removed.
13521 (grub_get_rtc): Likewise.
13522 (grub_cpu_idle): Likewise.
13523 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
13524 New definition.
13525 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
13526 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
13527 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
13528 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
13529 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13530 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13531 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
13532 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
13533
400b9371
VS
135342011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 SGI ARCS port.
13537
13538 * Makefile.util.def (libgrubmods.a): Add dvh.c.
13539 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
13540 platforms.
13541 * configure.ac: New target mips-arc.
13542 * gentpl.py: Likewise.
13543 * grub-core/Makefile.am: Likewise.
13544 * grub-core/Makefile.core.def: Likewise.
13545 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
13546 (none_decompress): Likewise.
13547 (lsdev): New module.
13548 (datetime): Use lib/arc/datetime.c on ARC.
13549 (part_dvh): New module.
13550 * grub-core/commands/arc/lsdev.c: New file.
13551 * grub-core/disk/arc/arcdisk.c: Likewise.
13552 * grub-core/kern/mips/arc/init.c: Likewise.
13553 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
13554 aligned addresses.
13555 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
13556 support.
13557 (grub_arch_dl_relocate_symbols): Likewise.
13558 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
13559 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
13560 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
13561 platforms.
13562 * grub-core/lib/arc/datetime.c: New file.
13563 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
13564 pci.h on non-loongson.
13565 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
13566 (grub_linux_boot): Set unused registers to 0.
13567 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
13568 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
13569 * grub-core/mmap/mips/uppermem.c: ...here.
13570 * grub-core/partmap/dvh.c: New file.
13571 * grub-core/term/arc/console.c: Likewise.
13572 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
13573 (grub_terminfo_set_current): Add terminal "arc".
13574 (grub_terminfo_readkey): Support ARC sequences.
13575 * include/grub/arc/arc.h: New file.
13576 * include/grub/arc/console.h: Likewise.
13577 * include/grub/disk.h (grub_disk_dev_id): Add
13578 GRUB_DISK_DEVICE_ARCDISK_ID.
13579 * include/grub/mips/arc/kernel.h: New file.
13580 * include/grub/mips/arc/memory.h: Likewise.
13581 * include/grub/mips/arc/time.h: Likewise.
13582 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
13583 * include/grub/mips/kernel.h (grub_halt): ... here.
13584 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
13585 here...
13586 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
13587 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
13588 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
13589 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
13590 proto.
13591 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
13592 from here ...
13593 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
13594 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
13595 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
13596 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
13597 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
13598 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
13599 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
13600 (grub_phys_addr_t): Moved from here ...
13601 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
13602 (grub_vtop): Moved from here ...
13603 * include/grub/mips/memory.h (grub_vtop): ... here.
13604 (grub_map_memory): Moved from here ...
13605 * include/grub/mips/memory.h (grub_map_memory): ... here.
13606 (grub_unmap_memory): Moved from here ...
13607 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
13608 (grub_machine_mmap_iterate): Moved from here ...
13609 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
13610 (grub_mmap_get_lower): Moved from here ...
13611 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
13612 (grub_mmap_get_upper): Moved from here ...
13613 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
13614 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13615 here ...
13616 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13617 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
13618 here ...
13619 * include/grub/mips/time.h (grub_get_rtc): ... here.
13620 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13621 here ...
13622 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13623 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
13624 here ...
13625 * include/grub/mips/time.h (grub_cpu_idle): ... here.
13626 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
13627 definition.
13628 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
13629 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
13630 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
13631 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
13632 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13633 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13634 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
13635 (GRUB_MACHINE_LINK_ADDR): Likewise.
13636 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
13637 to 6.
13638 * util/grub-install.in: Run dvhtool on ARC.
13639 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 13640 (generate_image): Handle ECOFF output for mips-arc.
400b9371 13641
c8ecc840
VS
136422011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
13645 blocks.
13646
153a4b55
VS
136472011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
13650 after enabling port.
13651
ff44d107
VS
136522011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 Skip incorrect USB devices.
13655
13656 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
13657 configcnt == 0.
13658 * include/grub/usb.h (grub_usb_err_t): New enum value
13659 GRUB_USB_ERR_BADDEVICE.
13660
638dbe4f
VS
136612011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 Fuloong video init support.
13664
13665 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
13666 well.
13667 (grub_vga_read_arx): New function.
13668 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
13669 definition.
13670 (framebuffer): New members io, mmioptr and mmiobase.
13671 (read_sis_cmd): New function.
13672 (write_sis_cmd): Likewise.
13673 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
13674 rather than 640x400.
13675 * grub-core/video/sis315_init.c: New file.
13676
c3fc520c
VS
136772011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13678
13679 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
13680 non-loongson.
13681 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
13682 to grub_dl_register_symbol.
13683
67b1e5c9
VS
136842011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 Fix compilation errors.
13687
13688 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
13689 potentially unused.
13690 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
13691 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
13692 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
13693 to loongson machines.
13694
b756f75f
VS
136952011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13696
13697 Several FS mtime support.
13698
13699 * grub-core/fs/affs.c (grub_affs_time): New struct.
13700 (grub_affs_file): New field mtime.
13701 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
13702 type. Removed 'size'. New field 'di'. All users updated.
13703 (grub_affs_mount): Simplify checsum checking.
13704 (grub_affs_iterate_dir): New helper grub_affs_create_node.
13705 (grub_affs_dir): Handle mtime.
13706 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
13707 (grub_cpio_dir): Likewise.
13708 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
13709 (grub_hfs_filerec): New field mtime.
13710 (grub_hfs_dir): Handle mtime.
13711 (grub_hfs_mtime): New function.
13712 (grub_hfs_fs): Register grub_hfs_mtime.
13713 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
13714 (grub_iso9660_dir): New field mtime.
13715 (grub_fshelp_node): New field dirent.
13716 (iso9660_to_unixtime): New function.
13717 (iso9660_to_unixtime2): Likewise.
13718 (grub_iso9660_read_symlink): Use node->dirent.
13719 (grub_iso9660_iterate_dir): Likewise.
13720 (grub_iso9660_dir): Set mtime.
13721 (grub_iso9660_mtime): New function.
13722 (grub_iso9660_fs): Register grub_iso9660_mtime.
13723 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
13724 (grub_jfs_inode): New fields atime, ctime and mtime.
13725 (grub_jfs_dir): Set mtime.
13726 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13727 * grub-core/fs/ntfs.c (list_file): Set mtime.
13728 (grub_ntfs_dir): Likewise.
13729 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
13730 (grub_reiserfs_iterate_dir): Set mtime.
13731 (grub_reiserfs_dir): Likewise.
13732 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
13733 (grub_fshelp_node): Likewise.
13734 (grub_sfs_iterate_dir): Set mtime.
13735 (grub_sfs_dir): Likewise.
13736 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
13737 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
13738 (grub_xfs_inode): New fields atime, mtime, ctime.
13739 (grub_xfs_dir): Set mtime.
13740 * include/grub/datetime.h (grub_datetime2unixtime): New function.
13741 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
13742 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
13743
13744 Support UDF symlinks.
13745
13746 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
13747 (grub_ufs_read_symlink): New function. All users updated.
13748
13749 Check amiga partmap checksum.
13750
13751 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
13752 (grub_amiga_partition): Likewise.
13753 (amiga_partition_map_checksum): New function.
13754 (amiga_partition_map_iterate): Check checksum.
13755
5470225d
VS
137562011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13757
13758 ROMFS support.
13759
13760 * Makefile.util.def (libgrubmods.a): Add romfs.
13761 * grub-core/Makefile.core.def (romfs): New module.
13762 * grub-core/fs/romfs.c: New file.
13763
d4680a35
VS
137642011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 Squashfs v4 support.
13767
13768 * Makefile.util.def (libgrubmods.a): Add squash4.
13769 * grub-core/Makefile.core.def (squash4): New module.
13770 * grub-core/fs/squash4.c: New file.
13771 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
13772 disk_input_start, disk_input.
13773 (get_byte): Handle disk_input.
13774 (grub_zlib_disk_read): New function.
13775 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
13776
bcb18e74
FZ
137772011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
137782011-05-15 Feiran Zheng <famcool@gmail.com>
13779
13780 * Makefile.util.def (libgrubmods.a): Add minix3.
13781 * grub-core/Makefile.core.def (minix3): New module.
13782 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
13783 (GRUB_MINIX_BSIZE): Removed.
13784 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
13785 (grub_minix_ino_t): New type.
13786 (grub_minix_le_to_cpu_ino): New macro.
13787 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
13788 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
13789 (grub_minix_data): New field block_size.
13790 (grub_minix_read_file): Handle 64-bit correctly.
13791 * grub-core/fs/minix3.c: New file.
13792
32297d5f
TG
137932011-05-15 Tristan Gingold <gingold@free.fr>
137942011-05-15 Robert Millan <rmh.grub@aybabtu.com>
137952011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 IA64 support.
13798
13799 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
13800 * configure.ac: Add ia64-efi target.
13801 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
13802 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
13803 * gentpl.py: Add ia64_efi platform.
13804 Rename x86_efi to efi and Add ia64-efi. All users updated.
13805 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
13806 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
13807 Remove kern/generic/rtc_get_time_ms.c on EFI.
13808 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13809 kern/ia64/dl_helper.c on ia64-efi.
13810 Add kern/emu/cache.c on emu.
13811 (linux): Use on loader/ia64/efi/linux.c on ia64.
13812 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13813 whether symbol is a function.
13814 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13815 (grub_symbol): New field 'isfunc'.
13816 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13817 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13818 (grub_dl_load_segments): Place all sections into the same region.
13819 [__ia64__]: Create trampolines and got.
13820 [GRUB_MACHINE_EMU]: Call mprotect.
13821 (grub_dl_resolve_symbols): Resolve symbol type as well.
13822 [__ia64__]: Create function descriptors.
13823 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13824 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13825 (grub_get_rtc): New function.
13826 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13827 * grub-core/kern/emu/cache.S: Renamed to ...
13828 * grub-core/kern/emu/cache_s.S: ... this.
13829 [__ia64__]: Add a nop.
13830 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13831 [__ia64__]: New function.
13832 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13833 * grub-core/kern/ia64/dl.c: New file.
13834 * grub-core/kern/ia64/dl_helper.c: Likewise.
13835 * grub-core/kern/ia64/efi/init.c: New file.
13836 * grub-core/kern/ia64/efi/startup.S: Likewise.
13837 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13838 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13839 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13840 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13841 * grub-core/loader/ia64/efi/linux.c: New file.
13842 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13843 (GRUB_MOD_DEP): Likewise.
13844 (grub_dl) [__ia64__]: New fields got and tramp.
13845 (grub_dl): New field 'base'.
13846 (grub_dl_register_symbol): New argument isfunc. All users updated.
13847 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
13848 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
13849 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
13850 (grub_ia64_dl_get_tramp_got_size): New proto.
13851 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
13852 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
13853 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
13854 * include/grub/efi/api.h: Skip call wrappers on ia64.
13855 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
13856 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
13857 * include/grub/elf.h (ELF_ST_INFO): New definition.
13858 * include/grub/ia64/efi/kernel.h: New file.
13859 * include/grub/ia64/efi/memory.h: Likewise.
13860 * include/grub/ia64/efi/time.h: Likewise.
13861 * include/grub/ia64/kernel.h: Likewise.
13862 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13863 * include/grub/ia64/time.h: New file.
13864 * include/grub/ia64/types.h: Likewise.
13865 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13866 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13867 New protos.
13868 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13869 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13870 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13871 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13872 All users updated.
13873 (EFI64_HEADER_SIZE): New definition. All users updated.
13874 (image_targets): Add ia64-efi.
13875 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13876 jumpers_addr. All users updated.
13877 Create function descriptors.
13878 (count_funcs): New function.
13879 (unaligned_uint32): New struct.
13880 (MASK20): New definition.
13881 (MASK19): Likewise.
13882 (MASKF21): Likewise.
13883 (add_value_to_slot_20b): New function.
13884 (add_value_to_slot_21_real): Likewise.
13885 (add_value_to_slot_21): Likewise.
13886 (ia64_kernel_trampoline): New struct.
13887 (nopm): New variable.
13888 (jump): Likewise.
13889 (make_trampoline): New function.
13890 (relocate_addresses): Handle ia64.
13891 (make_reloc_section): Likewise.
13892 (load_image): Likewise.
13893
983b414d
VS
138942011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13897 warning. Move variables before code while on it.
13898
5d063cdc
VS
138992011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 Fuloong support.
13902
13903 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13904 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13905 * grub-core/boot/mips/loongson/fuloong.S: New file.
13906 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13907 Explicitly init CS5536.
13908 [FULOONG]: Don't use serial until CS5536 is available.
13909 Set GPIO based on dumps.
13910 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13911 [FULOONG]: Handle GPIO and memory controller differences.
13912 Parse machine type in $a2.
13913 * grub-core/boot/mips/startup_raw.S: Determine and save the
13914 architecture.
13915 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13916 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13917 init on architecture type.
13918 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13919 SIS315E. Don't init at_keyboard on fuloong.
13920 (grub_halt): Support Fuloong.
13921 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13922 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13923 (loongson_machtypes): New array.
13924 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13925 type.
13926 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13927 config. All users updated. Handle CS5536 serial.
13928 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13929 default port on machine type. Register serial as inactive.
13930 * grub-core/video/sis315pro.c: New file.
13931 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13932 definition.
13933 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13934 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13935 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13936 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13937 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13938 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13939 to ...
13940 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13941 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13942 definition.
13943 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13944 (grub_arch_machine): New extern var.
13945 * include/grub/mips/loongson/serial.h
13946 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13947 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13948 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13949 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13950 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13951 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13952 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13953 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13954 * include/grub/term.h (grub_term_register_input_inactive): New inline
13955 function.
13956 (grub_term_register_output_inactive): Likewise.
13957 * include/grub/video.h (grub_video_driver_id): New value
13958 GRUB_VIDEO_DRIVER_SIS315PRO.
13959 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13960 New field "names". All users updated.
13961 New field value IMAGE_FULOONG_FLASH.
13962 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13963
6ada82d1
JU
139642011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13965
13966 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13967 and add some clarification.
13968
90c571a4
VS
139692011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13970
13971 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13972 platforms if kernel is compressed.
13973
de04eecf
VS
139742011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13975
13976 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13977 unused modules since currently referrence counter isn't reliable and
13978 there isn't much memory to recover there anyway.
13979
57688121
VS
139802011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13981
13982 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
13983 rather than resetting it to allow modules to reference themselves
13984 in init.
13985
3d2c7e35
VS
139862011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
13989 counter on dependencies since grub_dl_unref already handles this.
13990
b25db218
VS
139912011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
13994 on error if not already done.
13995
25a45338
VS
139962011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 Fix few potential memory misusage.
13999
14000 * grub-core/font/font.c (load_font_index): Don't free char_index to
14001 avoid double free.
b25db218
VS
14002 (grub_font_load): Zero-fill font at alloc for safety.
14003 Close file on error.
14004 (free_font): Free bmp_idx.
25a45338 14005
0cac83df
VS
140062011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 * docs/grub.texi (Installation): Fix several outdated claims.
14009
2217a143
VS
140102011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 Handle module_license on windows.
14013
14014 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14015 sections shifted.
14016 (insert_string): Make argument const char * instead of char *.
14017 (write_section_data): Handle long section names.
14018 Handle module_license.
14019
d4de6b01
VS
140202011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14021
14022 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14023 handle class-free menuentries.
14024 (grub_normal_add_menu_entry): Add a check to be sure.
14025
4c2a3b43
VS
140262011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14029 PgUp and PgDown.
14030
85c6210f
VS
140312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14032
14033 * configure.ac: Bump version to 1.99.
14034
36084912
VS
140352011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 Give ATA device a bit more time on first try in order to allow disks
14038 to spin up.
14039
14040 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14041 if dev->present is 1. Reset dev->present on failure.
14042 (grub_ata_device_initialize): Set dev->present to 1.
14043 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14044 (grub_ata_device): New member 'present'.
14045
bda0e219
VS
140462011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-mkimage.c (generate_image): Update hash.
14049
19e1c41b
VS
140502011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14051
14052 Flush caches on DMA memory.
14053
14054 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14055 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14056 (grub_dma_free): Likewise.
14057 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14058
91bbcc0c
VS
140592011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14060
14061 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14062 to avoid asm treating ld and sd as macros.
14063
60ddfad3
VS
140642011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14067 decompressor.
14068
a298aa04
VS
140692011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14070
14071 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14072 grub_decompress_core since later would fail if grub_decompress_core
14073 is too far.
14074
9b44feca
VS
140752011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14078 R_MIPS_JALR since it's used by newer compiler.
14079
56dbe7b4
VS
140802011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14083
52856af2
VS
140842011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14087 file_path to 0 for surety.
14088 (grub_chainloader_boot): Set exit_data to NULL.
14089 Unset the loader once done.
14090 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14091
9c9bfc6d
VS
140922011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14095 unknown key into a dprintf.
14096
dd94a3df
VS
140972011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14100 on first non-existant partition.
14101
fa68d99c
VS
141022011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14105 openning fails.
14106 Reported by: Mark Korenberg.
14107
157effb7
VS
141082011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14111 overflow.
14112
ea75312f
VS
141132011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14116 before closing to ensure that it will be readable by grub-setup.
14117
072b5d31
VS
141182011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14119
14120 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14121 (devpath_1): Use MAKE_PIWG_PATH.
14122 (devpath_2): Likewise.
14123 (devpath_3): Likewise.
14124 (devpath_4): Likewise.
14125 (devpath_5): Likewise.
14126 (devpath_6): Likewise.
14127
14128 The appleldr.mod was checked that to be binary identical to previous
14129 version.
14130
7fae0051
Z
141312011-05-05 Zach <mikezackles>
14132
14133 Support 2010 Macbooks.
14134
14135 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14136 (devs): Add devpath_6.
14137
7c515bee
VS
141382011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14139
14140 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14141 /dev/random. /dev/urandom is good enough for our purposes (salting).
14142
ed660bd8
VS
141432011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14146
ee5614b7
VS
141472011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14150 hexadecimal.
14151
664889a6
VS
141522011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14155 and not 0 on failure.
14156
bd405bbc
CW
141572011-05-03 Colin Watson <cjwatson@ubuntu.com>
14158
14159 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14160 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14161 disk; otherwise grub_fs_probe will not fall back to the next
14162 filesystem.
14163 (grub_pxefs_open): Likewise, for consistency.
14164 Reported and tested by: Ezekiel Grave.
14165
4ebff753
CW
141662011-05-03 Colin Watson <cjwatson@ubuntu.com>
14167
14168 * tests/partmap_test.in: Don't hardcode path to parted.
14169 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14170
8f942553
CW
141712011-05-01 Colin Watson <cjwatson@ubuntu.com>
14172
14173 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14174 of `ls' to find out which devices are available.
14175
3c62402d
VS
141762011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14179 than source address for efi mmap buffer.
14180
723f63f2
VS
141812011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14184 wrong action on non-detecting the magic.
14185
68797f92
VS
141862011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14187
14188 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14189 already supplied by another part of the module (fixes compilation on
14190 FreeBSD).
14191
6be8715d
VS
141922011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14195 match the one used by mdadm.
14196
e91dba5b
CW
141972011-04-21 Colin Watson <cjwatson@ubuntu.com>
14198
14199 * po/README: Add instructions for creating po/LINGUAS.
14200
c85140b3
CW
142012011-04-21 Colin Watson <cjwatson@ubuntu.com>
14202
14203 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14204 #551428.
14205
14206 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14207 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14208 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14209 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14210 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14211 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14212 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14213 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14214 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14215 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14216 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14217 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14218 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14219 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14220 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14221 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14222 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14223 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14224 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14225 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14226 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14227 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14228
92051871
CW
142292011-04-21 Colin Watson <cjwatson@ubuntu.com>
14230
14231 * grub-core/kern/emu/getroot.c
14232 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14233 test that was incorrectly reintroduced in r3214.
14234 Reported by: Ian Dall. Fixes Savannah bug #33133.
14235
b13f79a4
CW
142362011-04-21 Colin Watson <cjwatson@ubuntu.com>
14237
14238 Fix stack pointer handling in 16-bit relocator.
14239
14240 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14241 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14242 Fixes Ubuntu bug #683904.
14243
9b710a88
VS
142442011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 * configure.ac: Bump version to 1.99~rc2.
14247
d97e7b59
VS
142482011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14251 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14252 * grub-core/lib/x86_64/setjmp.S: Likewise.
14253 * grub-core/lib/mips/setjmp.S: Likewise.
14254 * grub-core/lib/powerpc/setjmp.S: Likewise.
14255 * grub-core/lib/sparc64/setjmp.S: Likewise.
14256
0624551c
VS
142572011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14258
14259 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14260 * grub-core/lib/efi/datetime.c: Likewise.
14261
e8f28d4c
VS
142622011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14265 New function.
14266 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14267 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14268 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14269
bba79a15
VS
142702011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14273 bitmap.
14274 (grub_gfxterm_term_init): Likewise.
14275
abc474ef
VS
142762011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14277
14278 Take into account the decorations the computing menu entry width.
14279
14280 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14281 (grub_gfxmenu_create_box): Register get_border_width.
14282 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14283 if available.
14284 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14285 get_border_width.
14286
e74b3947
EP
142872011-04-18 Endres Puschner <code@e7p.de>
14288
14289 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
14290 Don't skip first class.
14291
34faa595
VS
142922011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
14295 chunks.
14296 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
14297
93a777e3
VS
142982011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 Complete 64-bit division support.
14301
14302 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
14303 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
14304 * include/grub/misc.h (grub_divmod64): Rename to ...
14305 (grub_divmod64_full): ... this.
14306 (grub_divmod64): New inline function.
14307
a5102d94
VS
143082011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 * util/grub-mkimage.c (generate_image): Add forgotten comma.
14311
f3fb7b36
VS
143122011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
14315 performing the necessary test.
14316
9ac718b0
VS
143172011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14318
14319 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
14320 (kfreebsd.elf): Likewise.
14321 (pc-chainloader.elf): Likewise.
14322 (ntldr.elf): Likewise.
14323
50d2cc5a
VS
143242011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14325
14326 Identify RAID by its UUID rather than (guessed) name.
14327
14328 * grub-core/disk/raid.c (ascii2hex): New function.
14329 (grub_raid_open): Accept mduuid/%s specification.
14330 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
14331 (get_mdadm_uuid): ... this.
14332 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
14333
e03f7bea
VS
143342011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
14337 to negative size.
14338
e74c3112
CW
143392011-04-13 Colin Watson <cjwatson@ubuntu.com>
14340
14341 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
14342 btrfs subvolume.
14343 * util/grub.d/20_linux_xen.in: Likewise.
14344
78fa584f
CW
143452011-04-13 Colin Watson <cjwatson@ubuntu.com>
14346
14347 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
14348 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
14349
14350 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14351 Build a list of relevant visible mounts using the mnt_id and
14352 parent_mnt_id fields, and then scan that list at the end.
14353
9d5f8162
CW
143542011-04-12 Colin Watson <cjwatson@ubuntu.com>
14355
14356 * docs/grub.texi (normal): New section.
14357 (normal_exit): New section.
14358 (Embedded configuration): Add reference to normal.
14359 (GRUB only offers a rescue shell): Likewise.
14360 * docs/grub-dev.texi (Error Handling): Fix typo.
14361
09a9d66f
CW
143622011-04-12 Colin Watson <cjwatson@ubuntu.com>
14363
14364 * NEWS: Drop obsolete entry about probe-only btrfs support.
14365
0c676933
CW
143662011-04-12 Colin Watson <cjwatson@ubuntu.com>
14367
14368 * util/import_gcry.py: Fix typo.
14369
ec9f5e0d
VS
143702011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14371
14372 * NEWS: Add btrfs support.
14373
fe6b2cba
VS
143742011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
143752011-04-11 Colin Watson <cjwatson@ubuntu.com>
14376
14377 BtrFS support. Written by me (Vladimir) with important bugfixes and
14378 even more important testing by Colin.
14379
14380 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
14381 * grub-core/Makefile.core.def (btrfs): Add crc.c.
14382 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
14383 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
14384 mem_input_off and mem_input. All users updated to accept in-RAM input.
14385 (gzio_seek): New function.
14386 (test_zlib_header): Likewise.
14387 (grub_gzio_read): Likewise.
14388 (grub_zlib_decompress): Likewise.
14389 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
14390 Accept partial and non-virtual mounts.
14391 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
14392 avoid receiving /dev/dm-X as device.
14393 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
14394 Handle bind and partial mounts.
14395 * grub-core/lib/crc.c: New file.
14396 * include/grub/deflate.h: Likewise.
14397 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
14398 proto.
14399 * include/grub/lib/crc.h: New file.
14400
e745cf0c
VS
144012011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14402
14403 Implement automatic module license checking according to new GNU
14404 guidelines.
14405
14406 * grub-core/kern/dl.c (grub_dl_check_license): New function.
14407 (grub_dl_load_core): Use grub_dl_check_license.
14408 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
14409 (GRUB_MOD_LICENSE): Likewise.
14410 (GRUB_MOD_DUAL_LICENSE): Likewise.
14411 All modules updated.
14412
2a9bc016
CW
144132011-04-11 Colin Watson <cjwatson@ubuntu.com>
14414
14415 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
14416 reserved_first_sector to 1. btrfs reserves plenty of space for boot
14417 loaders.
14418 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
14419
8a3bc88e
VS
144202011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
14423
af869a4a
VS
144242011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * util/grub-fstest.c (read_file): Report GRUB error if file opening
14427 failed.
14428
9ee8d94f
VS
144292011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14430
14431 * grub-core/kern/file.c (grub_file_open): Don't take into account the
14432 parenthesis in the middle of the filename.
14433
b01abe3e
VS
144342011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14435
14436 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
14437 rather than trying to put initrd way too high.
14438 Reported by: Ryan Lortie <desrt@desrt.ca>
14439
335bda1e
VS
144402011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
14443 improperly removed string.
14444
5ca1a64d
VS
144452011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14446
14447 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
14448 is_disk.
14449 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
14450 (open_device) Likewise.
14451 (grub_util_biosdisk_close): Likewise.
d8ce9995 14452 Reported by: Mark Korenberg.
5ca1a64d 14453
cbac5b1e
AK
144542011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
14455
14456 * util/grub-mkconfig_lib.in: Add missing quotes.
14457
088cdb65
CW
144582011-04-10 Colin Watson <cjwatson@ubuntu.com>
14459
14460 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
14461 is NULL.
14462
8b8a81fa
VS
144632011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14464
14465 Dynamically count the number of lines for the lower banner.
14466
14467 * grub-core/normal/menu_entry.c (per_term_screen): New member
14468 num_entries.
14469 (print_down): Use num_entries.
14470 (update_screen): Likewise.
14471 (grub_menu_entry_run): Set num_entries.
14472 * grub-core/normal/menu_text.c (menu_viewer_data): New member
14473 num_entries.
14474 (grub_print_message_indented): Move real part to ...
14475 (grub_print_message_indented_real): ... here. Additional argument
14476 dry_run.
14477 (draw_border): Additional argument num_entries.
14478 (print_message): Additional argument dry_run.
14479 (print_entries): Receive menu viewer data.
14480 (grub_menu_init_page): New argment num_entries.
14481 (menu_text_set_chosen_entry): Use num_entries.
14482 (grub_menu_try_text): Likewise.
14483 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
14484 All users updated.
14485 (grub_ucs4_count_lines): New function.
14486 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
14487 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
14488 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
14489 (grub_term_border_height): Likewise.
14490 (grub_term_num_entries): Likewise.
14491
277f955b
VS
144922011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
14495 Remove now unused string.
14496
536ce85a
CW
144972011-04-09 Colin Watson <cjwatson@ubuntu.com>
14498
14499 * docs/grub-dev.texi (Finding your way around): Update for 1.99
14500 build system.
14501 (Getting started): GRUB is developed in Bazaar now, not Subversion.
14502
14503 (Comment): Fix typo.
14504 (Getting started): General copy-editing.
14505 (Typical Development Experience): Likewise.
14506 (Error Handling): Likewise.
14507 (Video API): Likewise.
14508
2cf09e32
CW
145092011-04-09 Colin Watson <cjwatson@ubuntu.com>
14510
14511 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
14512 throughout.
14513
1ec652f4
VS
145142011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * util/grub-mkimage.c (main): Handle special naming of yeeloong
14517 directory.
14518
2c583728
CW
145192011-04-08 Colin Watson <cjwatson@ubuntu.com>
14520
14521 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
14522 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
14523 "development".
14524
d7a565e9
VS
145252011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
14528 grub_strcpy since the lines aren't necessarily 0-terminated.
14529
7c2e4909
VS
145302011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
14533 root on legacy.
14534
34c09785
VS
145352011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14536
14537 * grub-core/commands/probe.c (options): Argument to set isn't optional.
14538 (GRUB_MOD_INIT): DEVICE isn't optional.
14539
6a6f8058
VS
145402011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14541
14542 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
14543 word on new line if it's too long anyway. Fixes a hang.
14544
2e335e90
VS
145452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
14548 const.
14549 * util/grub-setup.c (main): Reuse md device name if available.
14550 * util/raid.c (grub_util_raid_getmembers): Receive device name and
14551 not GRUB name as argument.
14552 Based on patch by: Florian Wagner <fwagner>.
14553
10a7a867
VS
145542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14555
14556 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14557 Place mbi on low memory for better compatibility.
14558
7a3d6cd9
VS
145592011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14560
14561 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
14562
18dd6b47
VS
145632011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
145642011-04-08 Colin Watson <cjwatson@ubuntu.com>
14565
14566 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 14567 * conf/Makefile.common: Likewise.
18dd6b47 14568
3c0e3f14
VS
145692011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14570
f7148863
VS
14571 * grub-core/normal/menu.c: Add missing include.
14572
145732011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14574
14575 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 14576
6d1fa41f
MZ
145772011-04-08 Martin Zuther <mzuther@mzuther.de>
14578
14579 * util/grub-mkconfig.in: Ignore emacsen backup.
14580
478182a8
VS
145812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14582
14583 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
14584 on open.
14585 (grub_util_biosdisk_close): Likewise.
14586
72a89a54
VS
145872011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
14590 const attribute and use grub_isdigit.
14591
b5ebecfa
A
145922011-04-06 Andrey <dev_null@ukr.net>
14593
14594 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
14595 gcc warning.
14596
7755f66e
VS
145972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
14600 useful grub_dprintf's.
14601
461121ff
VS
146022011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14603
14604 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
14605
2a961775
VS
146062011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
14609
adf594cc
VS
146102011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 Output errors if theme loading failed.
14613
14614 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
14615 grub_gfxterm_fullscreen on error paths to ...
14616 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
14617 theme loading error.
14618
665900a3
VS
146192011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
14622 space for older compilers.
14623 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14624
a562b479
VS
146252011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
14628 and report them as not RAID members since they are useless for GRUB.
14629 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14630
850e9373
VS
146312011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14632
14633 Increase LVM implementation robustness in order not to crash on
14634 configurations like pvmove. Previously code assumed that in some places
14635 only lvs or only pvs are used whereas it seems that they are used
14636 interchangeably.
14637
14638 * grub-core/disk/lvm.c (read_node): New function.
14639 (read_lv): Use read_node.
14640 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
14641 Match volumes only at the end when all lvs are found. Take both
14642 pvs (first) and lvs (second) into account.
14643 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
14644 mirror_* into node_*. All users updated.
14645 (grub_lvm_stripe): Merge this ...
14646 (grub_lvm_mirror): ... and this ...
14647 (grub_lvm_node): ... into this. All users updated.
14648
6f332153
VS
146492011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14650
14651 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
14652 of function to allow further scanning for LVMs.
14653
829ea451
VS
146542011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14655
14656 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
14657 on failed seek as it breaks open fd reusage.
14658
09ceb9a5
VS
146592011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * util/grub-install.in: Add a recommendation to use --recheck before
14662 reporting bugs.
14663
67e11623
VS
146642011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
14667 are obtained.
14668
caee5efd
VS
146692011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 GRUB developper manual based on existing Internals section and
14672 contributions by the various authors with active copyright assignment.
14673
14674 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
14675 * docs/font_char_metrics.png: New file.
14676 * docs/font_char_metrics.txt: Likewise.
14677 * docs/grub-dev.texi: Likewise.
14678 * docs/grub.texi (Internals): Move from here ...
14679 * docs/grub-dev.texi: ... here.
14680
2cccc747
CW
146812011-04-01 Colin Watson <cjwatson@ubuntu.com>
14682
14683 Store the loopback device as data on loopback grub_disk structures,
14684 rather than the file it points to. This fixes use of freed memory
14685 if an existing loopback device is replaced.
14686
14687 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
14688 disk->data, not dev->file.
14689 (grub_loopback_read): Adjust file assignment to match.
14690 Fixes Ubuntu bug #742967.
14691
186ae367
CW
146922011-04-01 Colin Watson <cjwatson@ubuntu.com>
14693
14694 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
14695 when replacing an existing device.
14696
cfed2ad0
VS
146972011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
14700 memory corruptions.
14701
14702 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
14703 unsigned.
14704 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
14705 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
14706 (grub_jfs_read_inode): Likewise.
14707 (grub_jfs_opendir): Likewise. Remove now useless casts.
14708 (grub_jfs_getent): Likewise.
14709 Make ino a grub_uint32_t rather than int.
14710 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
14711 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
14712 division and module with bit operations.
14713 (grub_jfs_find_file): Make ino a grub_uint32_t.
14714 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
14715
05d2ed32
CW
147162011-04-01 Colin Watson <cjwatson@ubuntu.com>
14717
14718 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
14719 warning. (This was in fact always initialised before use, but GCC
14720 wasn't smart enough to prove that.)
14721 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
14722
91dc6073
VS
147232011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14724
14725 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
14726 stack alignment.
14727 (efi_wrap_1): Likewise.
14728 (efi_wrap_2): Likewise.
14729 (efi_wrap_3): Likewise.
14730 (efi_wrap_4): Likewise.
14731 (efi_wrap_5): Likewise.
14732 (efi_wrap_6): Likewise.
14733 (efi_wrap_10): Likewise.
14734 Based on information by: Red Hat/Peter Jones.
14735
a8afc1d1
CW
147362011-03-31 Colin Watson <cjwatson@ubuntu.com>
14737
14738 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
14739 set-but-not-used variable.
14740
a826cc7d
CW
147412011-03-31 Colin Watson <cjwatson@ubuntu.com>
14742
14743 * docs/grub.texi (Simple configuration): Be more explicit about
14744 GRUB_DEFAULT, and add an example.
14745 Reported by: Leslie Rhorer.
14746
875b67ba
CW
147472011-03-30 Colin Watson <cjwatson@ubuntu.com>
14748
14749 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
14750 shell".
14751
fd7cd914
AS
147522011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14753
14754 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
14755 * util/grub.d/20_linux_xen.in: Likewise.
14756
090b1b6a
VS
147572011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14758
14759 * util/grub.d/10_linux.in: Try alternative config filenames where
14760 we parse config file.
14761 * util/grub.d/20_linux_xen.in: Likewise.
14762
baad885c
AS
147632011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14764
14765 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
14766 * util/grub.d/20_linux_xen.in: Likewise.
14767
241e41f5
VS
147682011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14769
14770 * grub-core/disk/raid.c (insert_array): Add few potentially
14771 useful grub_util_info.
14772 (grub_raid_register): Likewise.
14773
56445fb2
VS
147742011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
14777 Preserve partition number in mdadm code path.
14778
c871b1c6
VS
147792011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
14782 few potentially useful grub_util_info.
14783
5e631b4f
CW
147842011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14785
14786 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
14787
2d5d0333
CW
147882011-03-30 Colin Watson <cjwatson@ubuntu.com>
14789
14790 * docs/grub.texi (default): Use @example rather than nested
14791 itemized lists to avoid breaking gendocs.
14792
3d7ed04e
CW
147932011-03-30 Colin Watson <cjwatson@ubuntu.com>
14794
14795 * docs/grub.texi (Future): Update.
14796
abf04200 147972011-03-30 Colin Watson <cjwatson@ubuntu.com>
14798
14799 * docs/grub.texi (Environment): New chapter.
14800 (Changes from GRUB Legacy): Link to "Environment block" section for
14801 details of limitations.
14802 (Simple configuration): Likewise. Link to documentation of gfxmode
14803 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
14804 respectively.
14805 (Shell-like scripting): Note that normal variables are stored in the
14806 environment.
14807 (gettext): Link to documentation of lang and locale_dir.
14808 (list_env): New section.
14809 (load_env): New section.
14810 (save_env): New section.
14811
14812 (Reporting bugs): Fix typo.
14813
e1ad0edd
VS
148142011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14815
14816 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14817 the example.
14818
5d803174
VS
148192011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14820
14821 * grub-core/term/at_keyboard.c (set_scancodes)
14822 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14823
2a2da1d0
CW
148242011-03-30 Colin Watson <cjwatson@ubuntu.com>
14825
14826 * docs/grub.texi (Menu-specific commands): Remove some semantics
14827 that were true in GRUB Legacy but not in GRUB 2.
14828 (submenu): New section.
14829 (false): New section.
14830 (read): New section.
14831 (true): New section.
14832
a7527639
CW
148332011-03-30 Colin Watson <cjwatson@ubuntu.com>
14834
14835 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14836
148372011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14838
14839 * docs/grub.texi (Simple configuration): Explain some of the
14840 current limitations of grub-mkconfig.
8a748df2 14841 Reported by: Leslie Rhorer.
e30af029 14842
fc858482
VS
148432011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14844
14845 Old macs search for boot.efi rather than for bootia32.efi.
14846
14847 * util/grub-install.in: Copy bootia32.efi to boot.efi.
14848 * util/grub-mkrescue.in: Likewise.
14849 Suggested by: Peter Jones.
14850
e1eb511d
VS
148512011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14852
14853 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
14854
70e75364
VS
148552011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14856
14857 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
14858 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
14859 (grub_lvm_mirror): New struct.
14860 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14861 (grub_lvm_iterate): Iterate only visible volumes.
14862 (grub_lvm_read): Factor out to ..
14863 (read_lv): ... this. Support mirrors.
14864 (grub_lvm_read): New wrapper function.
14865 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14866 stripped or mirrored.
14867
fc18f6a3
VS
148682011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14869
14870 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14871
5c650f4c
CW
148722011-03-29 Colin Watson <cjwatson@ubuntu.com>
14873
14874 * docs/grub.texi (loopback): New section.
14875
61d7156b
CW
148762011-03-29 Colin Watson <cjwatson@ubuntu.com>
14877
14878 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14879 removed -p option.
14880
994b8264
CW
148812011-03-29 Colin Watson <cjwatson@ubuntu.com>
14882
14883 * docs/grub.texi (BIOS installation): New section, partly based on
14884 previous text in other sections.
14885 (Installing GRUB using grub-install): Replace BIOS discussion with a
14886 cross-reference.
14887 (Images): Likewise.
14888
9e4d19e0
VS
148892011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14892 [HAVE_DIOCGDINFO]: Add safety checks.
14893
a307c0b2
VS
148942011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14897 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14898
b4db4f39
CW
148992011-03-29 Colin Watson <cjwatson@ubuntu.com>
14900
14901 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14902 real_sb->size is zero (e.g. RAID-0), get the disk size from
14903 real_sb->data_size instead.
14904 Fixes Ubuntu bug #743136.
14905
35e5f84c
VS
149062011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14909 printf clauses for printing size and start.
14910
d2e29d81
VS
149112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14914 Reported and tested by: Timothy Nikkel.
14915
ed5587af
VS
149162011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14919 (dirty_region_add_real): ... this.
14920 (dirty_region_add): Don't discard margin refresh when performing
14921 scheduled repaint.
14922
a1dc717c
VS
149232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * grub-core/lib/relocator.c (allocate_regstart)
14926 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14927 terminals are capabple of malloc-free operation.
14928 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14929 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14930
9f3677d3
VS
149312011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14932
14933 * util/grub-setup.c: Copy the partition table zone if floppy support
14934 is disabled, even if no partition table is found.
14935
14936 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14937 during POST if an invalid partition table is contained in the PBR
14938 of the active partition when GRUB is installed to a partition.
14939
24148725
CW
149402011-03-28 Colin Watson <cjwatson@debian.org>
14941
14942 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14943 comment.
14944
f329eda7
CW
149452011-03-28 Colin Watson <cjwatson@debian.org>
14946
14947 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14948 to be specific about what kind of RAID device we're scanning for.
14949
c482ad98
SG
149502011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14951
14952 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14953 return freed string.
14954
5ee04984
VS
149552011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14956
14957 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14958
f4727da9
VS
149592011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14960
14961 Use libgeom on FreeBSD to detect partitions.
14962
14963 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14964 (grub-mkrelpath): Likewise.
14965 (grub-script-check): Likewise.
14966 (grub-editenv): Likewise.
14967 (grub-mkpasswd-pbkdf2): Likewise.
14968 (grub-fstest): Likewise.
14969 (grub-mkfont): Likewise.
14970 (grub-mkdevicemap): Likewise.
14971 (grub-probe): Likewise.
14972 (grub-setup): Likewise.
14973 (grub-ofpathname): Likewise.
14974 (grub-mklayout): Likewise.
14975 (example_unit_test): Likewise.
14976 (grub-menulst2cfg): Likewise.
14977 * grub-core/Makefile.core.def (grub-emu): Likewise.
14978 (grub-emu-lite): Likewise.
14979 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14980 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14981 define HAVE_DIOCGDINFO.
14982 (follow_geom_up) [FreeBSD]: New function.
14983 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
14984 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
14985 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
14986 unconditionally of HAVE_DIOCGDINFO.
14987
82fe6c75
VS
149882011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 Fix FreeBSD compilation problem.
14991
14992 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
14993 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
14994
4c6c9431
CW
149952011-03-24 Colin Watson <cjwatson@ubuntu.com>
14996
14997 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
14998 Switch back to page zero before loading a kernel, since some kernel
14999 drivers expect that.
15000 Thanks to: Felix Kuehling.
15001
c7064d94
VS
150022011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15003
15004 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15005 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15006 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15007
3f71cded
VS
150082011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15009
15010 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15011 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15012
ef6de21a
VS
150132011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15016 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15017 malloc is disabled.
15018
8bc66a2c
VS
150192011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15022 for modules headers when counting the needed allocation size.
15023
5657722c
VS
150242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15027 if no ASCII character is found to prevent crash.
15028
41a85f55
AK
150292011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15030
15031 * grub-core/video/bitmap.c (match_extension): Ignore case.
15032
59e1e5f1
VS
150332011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15036
bd4d051a
VS
150372011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * grub-core/script/parser.y: Declare "time" as valid argument.
15040
bae7fcc1
PJ
150412011-03-23 Peter Jones <pjones@redhat.com>
15042
15043 Fix incorrect assert failure reporting.
15044
15045 * grub-core/tests/example_functional_test.c (example_test): Add
15046 a failure comment.
15047 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15048 (failure_start): ...this. Check that malloc succeeded.
15049 Don't call xvasprintf. Return failure struct.
15050 (failure_append_vtext): New function.
15051 (failure_append_text): Likewise.
15052 (add_failure): Likewise.
15053 (grub_test_assert_helper): Likewise.
15054 * include/grub/test.h (grub_test_assert_helper): New declaration.
15055 (grub_test_assert): Macro rewritten.
15056
537dc9be
VS
150572011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15060
fa3e01bf
VS
150612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15064
b1d28404
VS
150652011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15068 into GRUB-style one.
15069
2e3e2e09
VS
150702011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15073 error and not grub_errno.
15074 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15075
ed57e557
VS
150762011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15079 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15080
d1611f01
VS
150812011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15082
15083 * grub-core/efiemu/i386/pc/cfgtables.c
15084 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15085 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15086 (grub_xnu_unlock): Likewise.
15087 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15088
7d4e39d6
VS
150892011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15092 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15093 * grub-core/commands/hashsum.c (aliases): Likewise.
15094 * grub-core/commands/setpci.c (pci_registers): Likewise.
15095 * grub-core/disk/usbms.c (attach_hook): Likewise.
15096 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15097 (zio_checksum_table): Likewise.
15098 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15099 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15100 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15101 * grub-core/lib/relocator.c (leftovers): Likewise.
15102 (extra_blocks): Likewise.
15103 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15104 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15105 (modules_last): Likewise.
15106 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15107 (devices): Likewise.
15108 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15109 (modules_last): Likewise.
15110 * grub-core/normal/auth.c (users): Likewise.
15111 * grub-core/normal/context.c (initial_menu): Likewise.
15112 (current_menu): Likewise.
15113 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15114 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15115 (grub_serial_terminfo_input_template): Likewise.
15116 (grub_serial_terminfo_output_template): Likewise.
15117 (grub_serial_terminfo_input): Likewise.
15118 (grub_serial_terminfo_output): Likewise.
15119 (registered): Likewise.
15120 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15121
40fc4659
VS
151222011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15125 grub_video_mode_type_t.
15126 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15127 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15128 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15129
2da48d28
VS
151302011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15131
15132 * util/grub-install.in: Correct the x86-64 name as x86_64.
15133
9b43bf39
CW
151342011-03-11 Colin Watson <cjwatson@ubuntu.com>
15135
15136 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15137 initial chunk read from the kernel always includes GRUB's multiboot
15138 header, which is now outside the first sector.
15139
be1a7ce0
CW
151402011-03-09 Colin Watson <cjwatson@ubuntu.com>
15141
15142 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15143 cached mmap_size, so that this works correctly when called multiple
15144 times.
15145 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15146
83a3c48d
CW
151472011-03-09 Colin Watson <cjwatson@ubuntu.com>
15148
15149 * docs/grub.texi (Simple configuration): Tidy up formatting.
15150
57d75699
SJ
151512011-03-07 Szymon Janc <szymon@janc.net.pl>
15152
15153 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15154 Set-but-not-used variable removed.
15155
028501a0
VS
151562011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 Workaround yet another IEEE1275 bug.
15159
15160 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15161 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15162 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15163 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15164 is set.
15165 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15166 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15167
d998657d
VS
151682011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15171 error.
15172
fee7cdd4
CW
151732011-02-11 Colin Watson <cjwatson@ubuntu.com>
15174
15175 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15176 empty, since in that case we can only generate either nothing or a
15177 syntactically invalid configuration file.
15178 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15179
97286eb5
CW
151802011-02-09 Colin Watson <cjwatson@ubuntu.com>
15181
15182 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15183 (Making a GRUB bootable CD-ROM): Likewise.
15184 (Invoking grub-mkrescue): New section.
15185 Reported by: Yann Dirson. Fixes Debian bug #612585.
15186
22b28eb3
CW
151872011-02-09 Colin Watson <cjwatson@ubuntu.com>
15188
15189 * util/grub-install.in: Remove unnecessary brackets from tr
15190 arguments.
15191 * util/grub.d/10_hurd.in: Likewise.
15192 * util/grub.d/10_kfreebsd.in: Likewise.
15193 * util/grub.d/10_linux.in: Likewise.
15194 * util/grub.d/20_linux_xen.in: Likewise.
15195 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15196
7e735e43
CW
151972011-02-08 Colin Watson <cjwatson@ubuntu.com>
15198
15199 * include/grub/file.h (not_easly_seekable): Rename to ...
15200 (not_easily_seekable): ... this. Update all users.
15201
800f1881
CW
152022011-01-28 Colin Watson <cjwatson@ubuntu.com>
15203
15204 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15205 grub-mkrescue.
15206
3281d3d6
VS
152072011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15208
15209 * util/grub-mkimage.c (generate_image): Refuse to create the images
15210 bigger than the actual flash (512K) in Loongson machines. 512K is also
15211 the biggest chip supported by them.
15212
3533413c
VS
152132011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15216
73ae4f4f
VS
152172011-01-22 Anthony DeRobertis <anthony@derobert.net>
15218
15219 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15220 super_offset field.
15221
37f4f608
VS
152222011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15223
15224 * util/grub-install.in: Ignore install device on platforms
15225 where it doesn't make sense. Always use UUIDs except on pc, efi and
15226 sparc64.
15227 Reported by: Daniel Kahn Gillmor.
15228
03a4ccb5
VS
152292011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15232
ffc8f4d8
VS
152332011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15236 (iterate_real): Don't rely on partition being non-NULL.
15237
80f23be7
VS
152382011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15239
15240 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15241 supported platforms. Put a compile time assert for this rather than
15242 generate a warning with 32-bit shift.
15243
5d4f4dd5
VS
152442011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15247 logical expression more readable.
15248
e489601a
VS
152492011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15250
15251 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15252 even if some elements have a name.
15253 Reported by: Alexander GQ Gerasiov.
15254
96e0a6ea
CW
152552011-01-22 Colin Watson <cjwatson@ubuntu.com>
15256
15257 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15258 path unreadable if `grub-probe -t abstraction' fails, for example if
15259 memberlist fails on an LVM volume group.
15260 Reported by: Darius Jahandarie.
15261
81431e2b
CW
152622011-01-22 Colin Watson <cjwatson@ubuntu.com>
15263
15264 * docs/grub.texi (Simple configuration): Document
15265 GRUB_PRELOAD_MODULES.
15266
5e79d66a
CW
152672011-01-17 Colin Watson <cjwatson@ubuntu.com>
15268
15269 * .bzrignore: Remove nonexistent grub-pbkdf2.
15270
646ada34
VS
152712011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15272
15273 * configure.ac: Bump version to 1.99~rc1.
15274
04360337
VS
152752011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15276
15277 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15278 for safety.
15279
46c9db88
VS
152802011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15283 module.
15284
152852011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
15286
15287 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
15288
4fbf1852
VS
152892011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15290
15291 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
15292 diskdevid.
15293
f1632d4d
VS
152942011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15295
15296 Fix compilation on cygwin.
15297
15298 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
15299 -R .drectve on cygwin.
15300 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
15301 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
15302 (COND_CYGWIN): New condition.
15303 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
15304 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
15305 not @TARGET_OBJ2ELF@.
15306 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
15307 type to determine whether aux is to be used.
15308
0b5e127b
VS
153092011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15310
15311 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
15312 realpath'ed device string.
15313 Handle floppy (somewhat).
15314 Issue error in unknown case rather than garbage.
15315 Reported by: Axel Beckert.
15316
173b71e9
VS
153172011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15318
15319 * util/grub.d/00_header.in (load_video): Handle the case when no video
15320 drivers available.
15321 Thanks to: Axel Beckert.
15322
f8f479db
VS
153232011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15324
15325 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
15326 variable. Fixes problem on big endian platforms.
15327
8fc0a245
VS
153282011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
15331 It doesn't work well there.
15332
b8494fbe
VS
153332011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15334
15335 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
15336 warning.
15337 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
15338 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
15339 counter.
15340
b44a558c
VS
153412011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 Use alias->path rather than buggy "canon".
15344
15345 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
15346 (ofdisk_hash_add): New argument curcan. All users updated.
15347
51fa856c
CW
153482011-01-11 Colin Watson <cjwatson@ubuntu.com>
15349
15350 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
15351
9da068a5
VS
153522011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15353
15354 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
15355 loadmask before doing any calculations. Use correct type for offset.
15356 (grub_linux_load64): Likewise.
15357
86205c94
CW
153582011-01-11 Colin Watson <cjwatson@ubuntu.com>
15359
15360 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
15361 with NULL.
15362 (console_grub_equivalences_unshift): Likewise.
15363 Reported by: Daniel Dehennin.
15364
4531a206
VS
153652011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
15368 (set_env_limn_ro): Likewise.
15369 (GRUB_MOD_INIT): Likewise.
15370 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
15371 ARRAY_SIZE while on it.
15372 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
15373 * grub-core/normal/context.c (grub_env_export): Move from here ...
15374 * grub-core/kern/env.c (grub_env_export): ... here.
15375 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
15376 prefix.
15377 * grub-core/kern/main.c (grub_main): Export root and prefix.
15378 * include/grub/env.h (grub_env_export): Export.
15379 Reported by: Seth Goldberg.
15380
45146057
VS
153812011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15384 Take into account space used by ELF sections and multiboot palette.
15385 Reported by: Grégoire Sutre.
15386
f093110b
VS
153872011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * BUGS: New file.
15390
3395fe52
VS
153912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15392
15393 Pass more appropriate video id to Linux.
15394
15395 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
15396 grub_video_get_driver_id and variable gfxpayloadforcelfb to
15397 fill have_vga.
15398 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
15399 shift params->lfb_size.
15400 * include/grub/i386/linux.h: Make an enume out of have_vga values.
15401
c2fa6cbb
VS
154022011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * util/grub-menulst2cfg.c: Add missing include of misc.h.
15405
b3ff6ff0
VS
154062011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15407
15408 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
15409 separator and pass bootpath/devid even if only one of them is available.
15410 Reported by: Seth Goldberg.
15411
ae67942e
VS
154122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
15415 implementations bug on them.
15416
15417 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
15418 memory.
15419 (filter_memory_map): Likewise.
15420
d570097a
VS
154212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
15424 Reported by: nebuchadnezzar.
15425
a508e776
VS
154262011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
15429 Reported by: nebuchadnezzar.
15430
dcb883b1
VS
154312011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15432
15433 Submenu default support.
15434
15435 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
15436 auto_boot. All users updated.
15437 Declared static.
15438 Handle chosen and default with submenus.
15439 (grub_menu_execute_with_fallback): Declared static.
15440 Don't notify failure if autobooted. Upper level does it.
15441 (menuentry_eq): New function.
15442 (get_entry_number): Use menuentry_eq.
15443 (show_menu): New parameter "autobooted". All users updated.
15444 (grub_show_menu): Likewise.
15445 * include/grub/normal.h (grub_show_menu): Likewise.
15446 * include/grub/menu.h (grub_menu_execute_entry): Removed.
15447 (grub_menu_execute_with_fallback): Likewise.
15448
6fef99b4
VS
154492011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 * util/grub-mklayout.c (usage): Update help text.
15452
47a77af5
VS
154532011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
15456
ce6bb3ee
VS
154572011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 * util/grub-menulst2cfg.c (main): Trim the line.
15460
db87be2a
VS
154612011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15462
15463 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
15464 (grub_machine_init): Don't check amount of low memory as reportedly
15465 INT 12h can be broken and if low memory is too low we wouldn't have
15466 gotten into grub_machine_init anyway.
15467
c49849cc
VS
154682011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
15471 (grub_machine_mmap_iterate): Take low memory into account
15472
b1969b30
VS
154732011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
15476 badfs.
15477 Reported by: TiCPU.
15478
cf0eaf13
VS
154792011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15480
15481 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
15482 members errors.
15483
1f060f39
GS
154842011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15485
15486 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
15487 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
15488
a21e5672
GS
154892011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15490
15491 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
15492 openbsd and netbsd types being in part_bsd module.
15493
c88172fa
VS
154942011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15495
15496 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
15497 (_FILE_OFFSET_BITS): Likewise.
15498 Reported by: Seth Goldberg.
15499
53798c4b
GS
155002011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15501
15502 * configure.ac: Check for libdevmapper header.
15503
e7121b69
VS
155042011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15505
15506 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
15507 avoid aliasing.
15508 (fzap_lookup): Likewise.
15509 (dnode_get): Likewise.
15510 (make_mdn): Likewise.
15511 (zfs_mount): Likewise.
15512 (fzap_iterate): Use temporary pointer to avoid aliasing.
15513 (grub_zfs_read): Likewise.
15514 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
15515 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
15516 pointers to avoid aliasing.
15517 (grub_cmd_xnu_kernel64): Likewise.
15518 (grub_xnu_load_driver): Likewise.
15519
fc836af9
VS
155202011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15521
15522 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
15523 aliasing warning.
15524 (grub_cmd_terminal_output): Likewise.
15525 Reported and tested by: Grégoire Sutre.
15526
f9f37648
VS
155272011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15528
15529 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
15530 warning.
15531 Reported and tested by: Grégoire Sutre.
15532
ec1dfd63
VS
155332011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15534
15535 * configure.ac: Do CPU substitution even if it's specified explicitly.
15536 Reported and tested by: Alain Greppin.
15537
9462775a
VS
155382011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15539
15540 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
15541 Reported and tested by: Alain Greppin.
15542
0fd48e35
VS
155432011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15544
15545 Satisfy some bison versions need for inttypes.h.
15546
15547 * grub-core/lib/posix_wrap/inttypes.h: New file.
15548 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
15549 (int16_t): Likewise.
15550 (int32_t): Likewise.
15551 (int64_t): Likewise.
15552 Reported and tested by: Alain Greppin.
15553
43f1bc83
VS
155542011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
15557 Silence spurious warning.
15558 Reported and tested by: Alain Greppin.
15559
64d1f041
SJ
155602011-01-07 Szymon Janc <szymon@janc.net.pl>
15561
15562 * docs/grub.texi (Support automatic decompression): Update with xz
15563 decompression support.
15564
25953e10
SJ
155652011-01-07 Szymon Janc <szymon@janc.net.pl>
15566
15567 Improve loaders' kernel command line handling.
15568
15569 * grub-core/lib/cmdline.c: New file.
15570 * include/grub/lib/cmdline.h: Likewise.
15571 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
15572 grub_create_loader_cmdline to create kernel command line.
15573 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15574 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
15575 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
15576 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
15577 (linux): Add lib/cmdline.c on common.
15578
e72d259f
VS
155792011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
15582 inopos might be unaligned.
15583
c0cf26da
VS
155842011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15585
15586 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
15587 endian transformations.
15588 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15589 Based on report by: Doug Nazar.
15590
0ca09e6c
DN
155912011-01-07 Doug Nazar <nazard.michi@gmail.com>
15592
15593 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
15594 array->members[i].start_sector.
15595 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
15596
014b6806
VS
155972011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15598
15599 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
15600 Reported and tested by: Grégoire Sutre.
15601
415502c2
CW
156022011-01-06 Colin Watson <cjwatson@ubuntu.com>
15603
15604 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
15605 avoid causing test failures by clearing the screen.
15606
71b6a2b7
CW
156072011-01-06 Colin Watson <cjwatson@ubuntu.com>
15608
15609 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15610 Fix prefix check to handle the case where dir ends with a slash
15611 (most significantly, "/" itself).
15612 Reported by: Michael Vogt.
15613
b3f8d28a
VS
156142011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 Run terminfo_cls on initing terminfo output to clear the screen and
15617 move the cursor to (0,0).
15618
15619 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
15620 Call grub_terminfo_output_init.
15621 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
15622 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
15623 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
15624
4c3e4f37
VS
156252011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15626
15627 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
15628 only when needed.
15629
488f71f1
VS
156302011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
15633 CTRL.
15634
18a38098
VS
156352011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 The E820 type 5 is BADRAM, not EXEC_CODE.
15638
15639 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15640 (GRUB_E820_BADRAM): New define.
15641 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
15642 into reserved. Propagate BADRAM.
15643 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15644 (GRUB_E820_BADRAM): New define.
15645
9eae2084
VS
156462011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15647
15648 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
15649 Ignore the memory post-4G.
15650 (grub_relocator_firmware_alloc_region): Additional debug statement.
15651
ebc71d28
VS
156522011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15653
15654 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
15655 names.
15656 Reported by: David Pravec.
15657
446fa400
VS
156582011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
15661 BIOSes.
15662
a0159f37
VS
156632011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
15666 Prevent overflow.
15667 (grub_reed_solomon_recover): Likewise.
15668
e5146ca1
VS
156692011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
15672
156732011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
15674
15675 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
15676 variable.
15677
5b1bdf12
CW
156782011-01-04 Colin Watson <cjwatson@ubuntu.com>
15679
15680 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
15681 descriptions of extract_legacy_entries_source and
15682 extract_legacy_entries_configfile.
15683 Reported by: Seung Soo, Ha.
15684
99d925aa
CW
156852011-01-03 Colin Watson <cjwatson@ubuntu.com>
15686
15687 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
15688 on devices that do not implement function 0.
15689
4af0504b
DV
156902011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
15691
15692 * grub-core/fs/hfsplus.c: Make parent unsigned.
15693 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
15694 overflows.
15695 (grub_hfsplus_cmp_extkey): Likewise
15696
469ee10a
VS
156972011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * util/grub-install.in: Correctly use bootloader_id and not
15700 GRUB_DISTRIBUTOR on efibootmgr line.
15701
323a8e9c
VS
157022011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
15705
1b394975
IC
157062010-12-31 Ian Campbell <ijc@hellion.org.uk>
15707
15708 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
15709 Xen and reorder menu item wording to make it clearer that this entry
15710 will launch Xen. Print separate messages when loading Xen and
15711 Linux.
15712
275bff5f
VS
157132010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
15716 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
15717 loop in case of incorrect amiga partmap.
15718
307806cb
VS
157192010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
15722 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
15723 Reported by:EHeM.
15724
b12b923e
VS
157252010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15726
15727 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
15728 spurious warning.
15729 Reported by: crocket
15730
14b48a19
VS
157312010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15732
15733 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
15734 Preload EFIemu.
15735 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
15736
693db2df
VS
157372010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15738
15739 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
15740 is loaded
15741 (grub_cmd_xnu_kextdir): Likewise.
15742 (grub_cmd_xnu_splash): Likewise.
15743
c7638645
VS
157442010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15745
15746 Avoid using Reed-Solomon with 0 redundancy.
15747
15748 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
15749 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
15750 or 0 redundancy.
15751 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
15752 (grub_reed_solomon_recover): Likewise.
15753
25dd4780
VS
157542010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 Don't use disk subsystem in freebsd_boot.
15757
15758 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
15759 (freebsd_biosdev): Likewise.
15760 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
15761 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
15762
0b2db943
VS
157632010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15764
15765 Handling of files of unknown size is currently limited. They can't be
15766 used e.g. for initrd or modules. Moreover gzip handling of not
15767 easily seekable files is buggy. Disable unknown file size for now. May
15768 be inefficient but works.
15769
15770 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
15771 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
15772
5c408d0f
MP
157732010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
15774
15775 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
15776 floppy probe.
15777
190a011a
JD
157782010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
15779
15780 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
15781
022d01b8
SL
157822010-12-25 Shea Levy <shlevy>
15783
15784 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
15785
c4855fdc
VS
157862010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15787
15788 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
15789 Windows Server 2008.
15790 Reported by: Devin Giddings.
15791
0354b867
VS
157922010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
15795 writing an error message because of async power management.
15796 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
15797 (grub_reboot): Likewise.
15798
ab66c69f
JU
157992010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
15800
15801 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
15802 keep unit tests from failing when they shouldn't.
15803
1426ef35
CW
158042010-12-21 Colin Watson <cjwatson@ubuntu.com>
15805
15806 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
15807 previous patch increased the size of the RS code by 20 bytes (at
15808 least with gcc-4.4), so increase this by 20 bytes to match.
15809 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15810
20641b6b
CW
158112010-12-21 Colin Watson <cjwatson@ubuntu.com>
15812
15813 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15814 scratch area. Make sure to initialise chosen in standalone mode as
15815 well as non-standalone.
15816 Reported by: Robert Hooker and Andy Whitcroft.
15817 Tested by: Andy Whitcroft.
15818
d060ad60
CW
158192010-12-21 Colin Watson <cjwatson@ubuntu.com>
15820
15821 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15822 constructing a new unescaped string and passing it to grub_xputs in
15823 one go, rather than passing characters to grub_printf one at a time.
15824
b889cfad
CW
158252010-12-21 Colin Watson <cjwatson@ubuntu.com>
15826
15827 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15828 initialising utf16.
15829
4e01b6c8
CW
158302010-12-21 Colin Watson <cjwatson@ubuntu.com>
15831
15832 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15833 comment. Add an extra layer of quotation, requiring the output of
15834 this function to be used in a printf format string.
15835 (gettext_printf): New function.
15836 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15837 Extract translatable strings from here-documents and use a temporary
15838 variable instead, so that xgettext can find them.
15839 * util/grub.d/10_kfreebsd.in: Likewise.
15840 * util/grub.d/10_linux.in: Likewise.
15841 * util/grub.d/20_linux_xen.in: Likewise.
15842
15843 * po/grub.d.sed: New file.
15844 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15845 arguments. Set c-format flags on all strings extracted from
15846 util/grub.d/ (xgettext refuses to include these itself for strings
15847 it extracted from a shell file, but these really are c-format).
15848
5318fe98
VS
158492010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
15852 Avoid next pointing to nowhere.
15853
6c85b743
VS
158542010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15855
15856 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
15857 rather than assuming than rootblock is exactly in the middle.
15858 (grub_affs_label): Likewise.
15859
a2a08a35
VS
158602010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15863 reserved_first_sector to 0.
15864 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15865 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15866 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15867
7059d1ec
VS
158682010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 Fix handling of UTF-16 UDF labels.
15871
15872 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15873 (read_string): .. here.
15874 (grub_udf_label): Use read_string.
15875
30aff4cb
BC
158762010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15877
15878 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15879 editor under argument scope.
15880 Reported by: Jordan Uggla
15881
5cf86f4b
VS
158822010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15885
32570200
CW
158862010-12-18 Colin Watson <cjwatson@ubuntu.com>
15887
15888 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15889 line, and other keys scroll an entire page (previous handling was
15890 for \r and \n to scroll a page and other keys to scroll two lines).
15891
e1dffcf2
VS
158922010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15895 Set ptrdest to correct get_physical_target_address rather than
15896 incorrect get_virtual_current_address.
15897
b04298cf 158982010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15899
15900 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15901 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15902
5367ecd3
CW
159032010-12-10 Colin Watson <cjwatson@ubuntu.com>
15904
15905 * .bzrignore: Ignore grub-core/rs_decoder.S.
15906
1fb430f8
CW
159072010-12-10 Colin Watson <cjwatson@ubuntu.com>
15908
15909 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15910 .mo/.mo.gz opening sequence to ...
15911 (grub_mofile_open_lang): ... here.
15912 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15913 * util/grub.d/00_header.in (grub_lang): Include country part of
15914 locale.
15915 Reported by: Mario Limonciello.
15916
a94a6671
RM
159172010-12-09 Robert Millan <rmh@gnu.org>
15918
15919 * NEWS: Document addition of ZFS support.
15920
24b7938b
CW
159212010-12-04 Colin Watson <cjwatson@ubuntu.com>
15922
15923 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15924 rather than `/ 2', as the latter requires -Wa,--divide which would
15925 require bumping our minimum binutils version.
15926
bddc3ef6
BC
159272010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15928
15929 * util/grub-script-check.c (main): Print script line number on
15930 error.
15931
bf78d5b2
RM
159322010-12-01 Robert Millan <rmh@gnu.org>
15933
15934 * grub-core/fs/zfs/zfs.c: New file.
15935 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15936 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15937 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15938 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15939
15940 * include/grub/zfs/dmu.h: Likewise.
15941 * include/grub/zfs/dmu_objset.h: Likewise.
15942 * include/grub/zfs/dnode.h: Likewise.
15943 * include/grub/zfs/dsl_dataset.h: Likewise.
15944 * include/grub/zfs/dsl_dir.h: Likewise.
15945 * include/grub/zfs/sa_impl.h: Likewise.
15946 * include/grub/zfs/spa.h: Likewise.
15947 * include/grub/zfs/uberblock_impl.h: Likewise.
15948 * include/grub/zfs/vdev_impl.h: Likewise.
15949 * include/grub/zfs/zap_impl.h: Likewise.
15950 * include/grub/zfs/zap_leaf.h: Likewise.
15951 * include/grub/zfs/zfs.h: Likewise.
15952 * include/grub/zfs/zfs_acl.h: Likewise.
15953 * include/grub/zfs/zfs_znode.h: Likewise.
15954 * include/grub/zfs/zil.h: Likewise.
15955 * include/grub/zfs/zio.h: Likewise.
15956 * include/grub/zfs/zio_checksum.h: Likewise.
15957
15958 * Makefile.util.def: Build ZFS into libgrubmods.
15959 * grub-core/Makefile.core.def: Build zfs.mod.
15960
3f0f3831
SJ
159612010-11-30 Szymon Janc <szymon@janc.net.pl>
15962
15963 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15964 variable.
15965 * grub-core/commands/wildcard.c (match_files): Likewise.
15966
3a4253b2
RM
159672010-11-30 Robert Millan <rmh@gnu.org>
15968
15969 * grub-core/loader/i386/bsd.c
15970 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15971 whether kernel is loaded using grub_loader_is_loaded(), rather
15972 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15973 certain error conditions.
15974
8c317b27
RM
159752010-11-30 Robert Millan <rmh@gnu.org>
15976
c5c9cd3e
RM
15977 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15978 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15979
49d3ab46
VS
159802010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 Avoid using tricks for initialising endian variables.
15983
15984 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
15985 Make const.
15986 (GRUB_MOD_INIT): Don't byte-swap.
15987 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15988 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
15989 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
15990 (grub_swap_bytes32_compile_time): Likewise.
15991 (grub_cpu_to_le32_compile_time): Likewise.
15992 (grub_cpu_to_le16_compile_time): Likewise.
15993
f420a804
VS
159942010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15995
15996 * util/grub-setup.c (setup): Stop recommending --force. People who
15997 understand the dangers of blocklists are able to find this option
15998 anyway and the ones who don't shouldn't use it anyway.
15999
4e7db17b
RM
160002010-11-26 Robert Millan <rmh@gnu.org>
16001
16002 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16003 Update all users.
16004
9be57a0d
CW
160052010-11-26 Colin Watson <cjwatson@ubuntu.com>
16006
16007 Fix LVM-on-RAID probing.
16008
16009 * util/grub-probe.c (probe): Remember which disk was detected as
16010 RAID (perhaps an LVM physical volume). Use that disk's raidname
16011 rather than that of the top-level disk.
16012
2c7859b3 160132010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 16014
d7647bb6
BC
16015 Fix cmdline argument quotes for setparams command of menuentry
16016 definitions.
7e623b0d
BC
16017
16018 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16019 quotes for arguments.
f866fe80 16020 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 16021 grub_strchrsub function instead.
f866fe80 16022
7955bea0 16023 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 16024
74f72a64
CW
160252010-11-24 Colin Watson <cjwatson@ubuntu.com>
16026
16027 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16028 effort by skipping "." and ".." entries up-front.
16029 Suggested by: Michael Lazarev.
16030
5a407278
CW
160312010-11-24 Colin Watson <cjwatson@ubuntu.com>
16032
16033 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16034 ldflags to ldadd, to fix link line ordering.
16035 (none_decompress): Likewise.
16036
3030d8ec
CW
160372010-11-24 Colin Watson <cjwatson@ubuntu.com>
16038
16039 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16040 platforms.
16041 (grub-emu-lite): Remove kern/emu/cache.S.
16042
b7fbac12
CW
160432010-11-23 Colin Watson <cjwatson@ubuntu.com>
16044
16045 * util/deviceiter.c (compare_devices): If the by-id link for a
16046 device couldn't be resolved, fall back to sorting by the by-id link
16047 rather than segfaulting.
16048 Reported and tested by: Daniel Mierswa.
16049
5225f328
CW
160502010-11-23 Colin Watson <cjwatson@ubuntu.com>
16051
16052 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16053 ldflags, to fix link line ordering.
16054
038b3ce8
CW
160552010-11-23 Colin Watson <cjwatson@ubuntu.com>
16056
16057 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16058 linkers are picky about this.
16059
bf16e98e
CW
160602010-11-23 Colin Watson <cjwatson@ubuntu.com>
16061
16062 * grub-core/Makefile.am (command.lst): Adjust sed expression
16063 ordering so that extended and priority commands aren't treated as
16064 ordinary commands.
16065
7242bab6
CW
160662010-11-23 Colin Watson <cjwatson@ubuntu.com>
16067
16068 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16069 Remove byte-swapping function calls, which are not valid in
16070 structure initialisers.
16071 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16072 non-const.
16073 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16074 grub_gpt_partition_type_bios_boot.
16075
14e8b279
CW
160762010-11-22 Colin Watson <cjwatson@ubuntu.com>
16077
16078 Fix test program build on GNU/kFreeBSD.
16079
16080 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16081 $(LIBNVPAIR)' library dependencies.
16082
e6f63338 160832010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
16084
16085 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16086
cf8ffc38
CW
160872010-11-22 Colin Watson <cjwatson@ubuntu.com>
16088
16089 * util/grub-install.in: Remove excessive quoting that broke
16090 installations to RAID devices.
16091
7f8b0fd7
VS
160922010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16095 bootloader version instead of 0.
16096
dfd240b1
VS
160972010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16098
16099 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16100 warning.
16101
7b61e609
VS
161022010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16105 retrieve the metadat sector if size isn't known.
16106 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16107
9dfe92d0
RM
161082010-11-18 Robert Millan <rmh@gnu.org>
16109
16110 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16111 with grub_memcmp().
16112
41cc919e
VS
161132010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16116 arrow.
16117 Reported by: Jordan Uggla.
16118
1afcc914
VS
161192010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 Make better UTF compliant.
16122
16123 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16124 sequences as incorrect.
16125 (grub_is_valid_utf8): Likewise.
16126 (grub_utf8_to_ucs4): Likewise.
16127 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16128 (grub_ucs4_to_utf8_alloc): Likewise.
16129 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16130
f1808884
VS
161312010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16132
16133 Make legacy_source behave like source.
16134
16135 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16136 grub_show_menu.
16137 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16138
24ec575b
CW
161392010-11-16 Colin Watson <cjwatson@debian.org>
16140
16141 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16142 (-Wunused implies -Wunused-parameter, but not vice versa).
16143
72b7c7aa
CW
161442010-11-16 Colin Watson <cjwatson@ubuntu.com>
16145
16146 * configure.ac: Make error messages less confusing by testing for
16147 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16148 accepted, but produces a diagnostic if something else is wrong).
16149
e98937aa
VS
161502010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16151
16152 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16153 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16154 (now unused).
16155 (grub_keyboard_controller_init)
16156 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16157 read the initial state since controller isn't inited yet.
16158
f6bbabc3
VS
161592010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16160
16161 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16162 allocate_regbeg may need to create new chunk header.
16163
22e7dbb2
VS
161642010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16165
16166 Fix quoting in legacy parser.
16167
16168 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16169 single quotes.
16170 (grub_legacy_parse): Likewise.
16171 Reported by: Jordan Uggla.
16172 Tested by: Jordan Uggla.
16173
03f80960
VS
161742010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16175
16176 Don't add -lgcc on i386 and x86_64.
16177
16178 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16179 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16180 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16181
779dc15b
VS
161822010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16183
16184 * configure.ac: Add -Wno-trampolines when supported.
16185
d20a3b37
MV
161862010-11-14 Modestas Vainius <modax@debian.org>
16187
16188 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16189 fakeraid.
16190
e5360933
GC
161912010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16192
16193 Add generic logical block size support for UDF.
16194
16195 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16196 (GRUB_UDF_BLKSZ): Removed.
16197 (struct grub_udf_data): New field "lbshift" to hold the logical block
16198 size of the file system in log2 format. All users updated.
16199 (sblocklist): Change type to unsigned.
16200 (grub_udf_mount): Change type of "sblklist" to unsigned.
16201 Move AVDP search before VRS recognition, because the latter requires
16202 knowledge of the logical block size, which is detected during the
16203 former.
16204 Detect and validate logical block size during AVDP search, adding
16205 support for block sizes 512, 1024 and 4096.
16206 Make VRS recognition independent of block size.
16207
cb0229c5
GC
162082010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16209
16210 Properly handle deleted files on UDF.
16211
16212 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16213 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16214 set.
16215
406858a8
GC
162162010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16217
16218 Support reading files larger than 2 GiB.
16219
16220 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16221 "offset" to grub_off_t.
16222 (grub_udf_read_file): Likewise for parameter "pos".
16223
130da6a7
VS
162242010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16225
16226 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16227 unavailable.
16228 (Simple configuration): Refer to Changes from GRUB Legacy about
16229 save_env availability.
16230
65e93f6b
VS
162312010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16232
16233 * util/grub-install.in: Ignore empty partition table detection
16234 instead of trying to include part_ module.
16235
1fd08bf1
VS
162362010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16239 LVM on RAID support.
16240
de1a024f
VS
162412010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 Properly define WORDS_BIGENDIAN in wrapped environments.
16244
16245 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16246 definition.
16247 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16248
16249 Reported by: Manoel Rebelo Abranches.
16250 Tested by: Manoel Rebelo Abranches.
16251
bc5dd0b9
VS
162522010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16253
16254 * util/grub-mkconfig.in: Fix quoting.
16255
58c184be
VS
162562010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 Support big ext2 files.
16259
16260 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16261 (grub_ext2_read_block): Support triple indirect blocks.
16262 (grub_ext2_read_file): Use 64-bit types and read size_high.
16263 (grub_ext2_open): Read size_high.
16264 Reported by: Ximin Luo.
16265 Tested by: Manoel Rebelo Abranches.
16266
5f0c02b3
VS
162672010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16268
16269 * util/grub-install.in: Handle filenames containing spaces.
16270 Reported by: Jordan Uggla.
16271 Tested by: Jordan Uggla.
16272
4417aae6
VS
162732010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 * util/grub-mkconfig.in (grub_script_check): New variable.
16276 Use grub_script_check instead of grub-script-check.
16277 Reported by: Barry Jackson.
16278
7625a68e
VS
162792010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16280
16281 * docs/grub.texi (menu): Correct the order.
16282 Reported by: D. Hugh Redelmeier.
16283
10001ac5
VS
162842010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16285
16286 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
16287 jump.
16288
9c4cf53b
MRA
162892010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16290
10001ac5
VS
16291 * include/grub/elfload.h (grub_elf32_size): New parameter.
16292 All users updated.
9c4cf53b
MRA
16293 Return maximum segments alignment.
16294 (grub_elf64_size): Likewise.
16295 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
16296 Return maximum segments alignment.
16297 (grub_elf64_size): Likewise.
16298 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
16299 (grub_linux_claimmap_iterate): New function. Uses the
16300 "available" property in the "memory" node for memory allocation
16301 for kernel in the PowerPC loader.
9c4cf53b
MRA
16302 (grub_linux_load32): Correctly find linux entry point offset.
16303 (grub_linux_load64): Likewise.
16304
d2bf06bf
RM
163052010-11-07 Robert Millan <rmh@gnu.org>
16306
16307 On mips-yeeloong, build with -march=loongson2f when this flag is
16308 available (GCC >= 4.4).
16309 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
16310 `-march=mips3'.
16311 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
16312 or otherwise add -march=mips3.
16313
898c99a2
BC
163142010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
16315
87220a68
BC
16316 Suppress shell expansion on echo '*' and echo "*" like cases.
16317 Reported by: Jordan Uggla.
898c99a2
BC
16318
16319 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
16320 string arguments before shell expansion.
16321 * tests/grub_cmd_echo.in: New testcases.
16322
4f9b406a
RM
163232010-11-07 Robert Millan <rmh@gnu.org>
16324
16325 * conf/mips-qemu-mips.rmk: Remove stale file from previous
16326 transition.
16327
80c6d25e
VS
163282010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/kern/emu/hostdisk.c
16331 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
16332
4a1a0153
VS
163332010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
16336 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
16337 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
16338
34706ddc
VS
163392010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16340
16341 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
16342
6972dea9
VS
163432010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 * util/grub-install.in: Replace useless recomendation to pass
16346 --modules with a recomendation to report a bug.
16347
9c693bd6
VS
163482010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16349
16350 Properly register serial terminfo.
16351 Reported by: Jordan Uggla
16352
16353 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
16354 const.
16355 (grub_serial_terminfo_output_template): Likewise.
16356 (grub_cmd_serial): Register "serial" with terminfo.
16357 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
16358 grub_serial_terminfo_output.
16359
6c9e4c0c
RM
163602010-11-05 Robert Millan <rmh@gnu.org>
16361
16362 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
16363 needed).
16364
b9b3839f
RM
163652010-11-05 Robert Millan <rmh@gnu.org>
16366
16367 On Yeeloong, pass machine type information to Linux.
16368
16369 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
16370 (LOONGSON_MACHTYPE): New macro, set to
16371 "machtype=lemote-yeeloong-2f-8.9inches".
16372 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
16373 additional argument to Linux.
16374
1a3aaff4
RM
163752010-11-04 Robert Millan <rmh@gnu.org>
16376
16377 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
16378 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
16379 (its SATA disks are detected as slaveless IDE master drives on
16380 kFreeBSD).
16381 Reported by Carsten Aulbert.
16382
a75f4f62
CW
163832010-11-02 Colin Watson <cjwatson@ubuntu.com>
16384
16385 * util/bin2h.c (main): Fix spelling error in generated output.
16386
33b4b0c6
GS
163872010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
16388
16389 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
16390
2b36fbf4
VS
163912010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
16394 vga= option is supplied.
16395
74aaf558
VS
163962010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16397
16398 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
16399 * util/grub.d/10_kfreebsd.in: Likewise.
16400 * util/grub.d/10_linux.in: Likewise.
16401 * util/grub.d/20_linux_xen.in: Likewise.
16402
6428dec3
VS
164032010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
16406 argument as an argument to no-argument option.
16407
f8729d98
VS
164082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * util/grub.d/10_linux.in: Add missing load_video with explicit
16411 GRUB_GFXPAYLOAD_LINUX.
16412
89d68fa6
VS
164132010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
16416
3a1197cd
VS
164172010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16418
16419 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
16420 elements with invlid index.
16421 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16422 * grub-core/disk/raid.c (insert_array): Automatically reallocate
16423 members.
16424 * include/grub/raid.h (grub_raid_member): New struct.
16425 (grub_raid_array): Transform devices and start_sector into usage of
16426 grub_raid_member. All users updated
16427 (allocated_devs): New member.
16428
71574288
VS
164292010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16430
16431 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
16432 is modified
16433
8d40ec65
BC
164342010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
16435
16436 NetBSD build fix for getline function conflict from gnulib.
16437
16438 * Makefile.util.def (libgrubkern.a): New library for grub kernel
16439 components that depend on gnulib headers.
16440 (libgrubmods.a): Renamed from earlier libgrub.a.
16441 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
16442
95b9257e
VS
164432010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16444
16445 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
16446 install rather than creating a broken install.
16447
26c53dc6
VS
164482010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * util/grub-setup.c (argp): Remove misleading example of installing to
16451 a partition.
16452
4171b3c5
VS
164532010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16454
16455 * util/grub-setup.c (setup): Clarify the error message.
16456
18568d18
VS
164572010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16458
16459 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
16460
4f6a2e21
VS
164612010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16462
16463 * grub-core/kern/emu/misc.c
16464 (grub_make_system_path_relative_to_its_root)
16465 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
16466
164672010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
16468
16469 * grub-core/kern/emu/misc.c
16470 (grub_make_system_path_relative_to_its_root): Revert r2882.
16471
e138c458
VS
164722010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
16473
16474 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
16475 useless field head. All users updated.
16476 (free_subchunk): Correct handling of IN_REGION subchunk.
16477
0cbcdf0e
CW
164782010-10-22 Colin Watson <cjwatson@ubuntu.com>
16479
16480 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
16481 (Supported kernels): Likewise.
16482
b65ea155
GS
164832010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16484
16485 Make mktemp invocations portable.
16486
16487 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
16488 exit if mktemp fails.
16489 * tests/grub_script_blockarg.in: Likewise.
16490 * tests/partmap_test.in: Likewise.
16491 * tests/util/grub-shell-tester.in: Likewise.
16492 * tests/util/grub-shell.in: Likewise.
16493 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16494 * Makefile.am: Likewise, and chain shell commands with `&&'
16495 instead of ';'.
16496 * util/grub-mkrescue.in: Use the same explicit template as above, and
16497 exit if mktemp fails.
16498
05f43cdd
BC
164992010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
16500
16501 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
16502 Linux kernel, reported by Dennis Schridde.
16503
800e6a9b
SJ
165042010-10-17 Szymon Janc <szymon@janc.net.pl>
16505
16506 * grub-core/normal/auth.c (grub_auth_check_authentication):
16507 Set-but-not-used variable removed.
16508
d82df574
VS
165092010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16510
16511 * docs/grub.texi (GNU/Linux): Document APM unavailability with
16512 32-bit linux protocol.
16513
7bced458
VS
165142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16515
16516 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
16517 cursor shape for sanity.
16518
5b027690
VS
165192010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16520
16521 * docs/grub.texi (Installation): Document buggy BIOS install.
16522
ba5f65cf
VS
165232010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16524
16525 * docs/grub.texi (Installation): Indent.
16526
fdf2ec9c
VS
165272010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 * util/grub-setup.c (setup): New parameter allow_floppy.
16530 (arguments): New member allow_floppy.
16531 (argp_parser): Handle --allow-floppy.
16532 (main): Pass allow_floppy.
16533 * util/grub-install.in: New option --allow-floppy passed though to
16534 grub-setup.
16535
861dfd4c
VS
165362010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 * util/grub-install.in: Handle partitionless disks.
16539
f77a8c24
VS
165402010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16541
16542 * util/grub-setup.c (setup): Don't clean blocklists before readability
16543 verfification.
16544
27d9ee32
VS
165452010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 * docs/grub.texi (Installation): Document embedding zone. Remove
16548 obsolete grub-install example.
16549
6bdda8f8
SJ
165502010-10-16 Szymon Janc <szymon@janc.net.pl>
16551
16552 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
16553 Set-but-not-used variable ifdef'ed.
16554 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
16555 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
16556 variable removed.
16557 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
16558 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
16559 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16560 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
16561 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
16562 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16563 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
16564 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
16565 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
16566 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
16567 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
16568 Likewise.
16569
e19b016b
VS
165702010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16571
16572 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
16573 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
16574 enum value.
16575
6c8d3002
VS
165762010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16577
16578 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
16579 synonym to _S5_. Needed for some DSDTs.
16580
c32b51c9
VS
165812010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16582
16583 Userspace ACPI parser debugging.
16584
16585 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
16586 headers and add relevant defines. Don't include standard headers.
16587 (main) [GRUB_DSDT_TEST]: New function.
16588 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
16589 Don't declare functions.
16590
fbfbeb39
VS
165912010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16592
16593 Remove dead grub_efi_mm_fini.
16594
16595 * grub-core/kern/efi/mm.c (allocated_page): Removed.
16596 (ALLOCATED_PAGES_SIZE): Likewise.
16597 (MAX_ALLOCATED_PAGES): Likewise.
16598 (allocated_pages): Likewise.
16599 (grub_efi_allocate_pages): Don't record allocated pages.
16600 (grub_efi_free_pages): Likewise.
16601 (grub_efi_mm_init): Likewise.
16602 (grub_efi_mm_fini): Removed.
16603
65f7ed7c
VS
166042010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
16607 (grub_efi_mm_init): Take into account the memory map size increase.
16608
24977b44
VS
166092010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
16612 (serial_hw_put): Wait based on real time rather than port reads. Don't
16613 roken ports.
16614 * include/grub/serial.h (grub_serial_port): New field broken.
16615
1eb01cd2
RM
166162010-10-16 Robert Millan <rmh@gnu.org>
16617
16618 * grub-core/kern/emu/misc.c
16619 (grub_make_system_path_relative_to_its_root): Fix premature return
16620 when processing non-root ZFS filesystems.
5f8b440b 16621 Reported by Sergio Talens-Oliag.
1eb01cd2 16622
2d5fed60
RM
166232010-10-15 Robert Millan <rmh@gnu.org>
16624
16625 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
16626 guarantee compressed ones are processed first.
16627
d0f4c1ea
VS
166282010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
16631 grub_efiemu_autocore.
16632
d87c681f
VS
166332010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16634
16635 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
16636 rather than 0x1b.
16637 (grub_console_getkey): Use correct jae opcode rather than ja.
16638
219b3564
RM
166392010-10-12 Robert Millan <rmh@gnu.org>
16640
16641 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
16642 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
16643 variable. All references updated.
16644
16645 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
16646
20c6bb7e
VS
166472010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 Correctly distinguish mdraid flavours.
16650
16651 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
16652 (insert_array): New argument raid.
16653 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
16654 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
16655 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
16656
74baff84
VS
166572010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
16658
16659 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
16660 handling of special keys.
16661
3ef068df 166622010-10-02 Aleš Nesrsta <starous@volny.cz>
16663
c7980ad9
VS
16664 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
16665 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 16666
a9455194 166672010-10-02 Aleš Nesrsta <starous@volny.cz>
16668
c7980ad9
VS
16669 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
16670 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
16671 users updated.
a9455194 16672 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 16673 Use right endpoint when querying descriptor.
a9455194 16674
441cfe65
VS
166752010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 Clear out 0x80 color bit on EFI.
16678 Tested by: decoder
16679 Reported by: decoder and meta tech.
16680
16681 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
16682 (grub_console_setcolorstate): Clear out 0x80 bit.
16683 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
16684 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
16685 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
16686
bf26bcc4
VS
166872010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
16690 Set to "auto".
16691
6e3c515d
VS
166922010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
16695 mo_file after freeing.
16696
e6d983ba
VS
166972010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16698
16699 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
16700
74ccb5b5
VS
167012010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
16704 flags.
16705
17821956
VS
167062010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16707
16708 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
16709 usage.
16710
ee74fa48
VS
167112010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 Put terminfo into core on ieee1275 and yeeloong (needed for console).
16714
16715 * gentpl.py: New groups terminfoinkernel and terminfomodule.
16716 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
16717 and terminfo.h when needed.
16718 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
16719 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
16720 (terminfo): Enable only on terminfokernel.
16721 (extcmd): Likewise.
16722 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
16723 * include/grub/lib/arg.h: Likewise.
16724 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
16725 incorrect usage of ->.
16726
aa438e68
VS
167272010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
16730 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
16731
57994012
VS
167322010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 Fix coreboot compilation.
16735
16736 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16737 Take VBE info into account even if only text is supported.
16738 (fill_vbe_info): Take into account the case when only VGA text
16739 is supported.
16740 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
16741 on coreboot, multiboot and qemu.
16742
2a406611
VS
167432010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16744
16745 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
16746 debug messages.
16747 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
16748
d33613fc
VS
167492010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
16752 parameters.
16753
44a1b432
VS
167542010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
16757 if they were BSD-style.
16758
edde54e6
VS
167592010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * grub-core/boot/i386/pc/lnxboot.S: Replace
16762 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
16763 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
16764
b65830fa
VS
167652010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16766
16767 Write embedding zone using Reed-Solomon.
16768
16769 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
16770 * grub-core/Makefile.am (rs_decoder.S): New target.
16771 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
16772 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
16773 (multiboot): Move to RS part.
16774 (post_reed_solomon): New label.
16775 (grub_boot_drive): Move to non-RS part since it's modified in memory
16776 on boot.
16777 Include rs_decoder.S.
16778 * grub-core/lib/reed_solomon.c: New file.
16779 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
16780 New definition.
16781 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
16782 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
16783 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
16784 * include/grub/partition.h (grub_partition_map): Change prototype of
16785 embed to allow returning additional sectors.
16786 * include/grub/reed_solomon.h: New file.
16787 * util/grub-setup.c (setup): Handle Reed-Solomon.
16788
0b4b227f
CW
167892010-09-28 Colin Watson <cjwatson@ubuntu.com>
16790
16791 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16792 i386 and x86-64 definedness tests.
16793
f772623b
YB
167942010-09-27 Yves Blusseau <blusseau@zetam.org>
16795
16796 Fix generation of kernel_syms.lst
16797
16798 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
16799 ASM_PREFIX
16800
8e57a6ca
RM
168012010-09-26 Robert Millan <rmh@gnu.org>
16802
16803 Support degraded ZFS arrays in "grub-probe -t device" resolution.
16804
16805 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
16806 the pool is an array of devices, iterate through it and return the
16807 first device that passes a stat() test (instead of blindly returning
16808 the first one).
16809
f9130836
RM
168102010-09-26 Robert Millan <rmh@gnu.org>
16811
16812 Build fixes for GNU/kFreeBSD.
16813
16814 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16815 to programs that require ZFS conversion.
16816 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16817 kernels that don't have FLOPPY_MAJOR.
16818
96510faf
BC
168192010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16820
16821 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16822
449333eb
BC
168232010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16824
16825 Fix grub-emu build.
16826
16827 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16828 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16829 mdraid09 and mdraid1x.
16830
e1fd1939
CW
168312010-09-24 Colin Watson <cjwatson@ubuntu.com>
16832
16833 Re-enable grub-extras.
16834
16835 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16836 avoid confusing Automake. Run autogen only twice, once for the top
16837 level and once for grub-core. Add Makefile.util.def and
16838 Makefile.core.def from extra modules to the appropriate autogen
16839 invocations. If Makefile.common exists in an extra module, include
16840 it in both Makefile.util.am and grub-core/Makefile.core.am;
16841 similarly, include any Makefile.util.common file in Makefile.util.am
16842 and any Makefile.core.common file in grub-core/Makefile.core.am.
16843 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16844 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16845 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
16846 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
16847
16848 * gentpl.py (gvar_add): Turn GVARS into a set.
16849 (global_variable_initializers): Sort global variables on output.
16850 (vars_init): New function.
16851 (first_time): Likewise.
16852 (library): Ensure that non-global variable initialisations are
16853 emitted before the first time we emit code for a library block.
16854 Append to variables rather than setting them. Only emit
16855 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
16856 each conditional path.
16857 (program): installdir() emits an Autogen macro, so must be passed to
16858 var_add rather than gvar_add.
16859 (data): Likewise.
16860 (script): Likewise.
16861 (rules): New function, centralising handling for different target
16862 types. Set up Guile association lists for first_time and vars_init,
16863 and send most output to a diversion so that variable initialisations
16864 can be emitted first.
16865 (module_rules): Use new rules function.
16866 (kernel_rules): Likewise.
16867 (image_rules): Likewise.
16868 (library_rules): Likewise.
16869 (program_rules): Likewise.
16870 (script_rules): Likewise.
16871 (data_rules): Likewise.
16872
16873 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16874
16875 * .bzrignore: Add contrib and grub-core/contrib. Remove
16876 grub-core/Makefile.gcry.am.
16877
1d12cf29
YB
168782010-09-24 Yves Blusseau <blusseau@zetam.org>
16879
16880 * grub-core/lib/LzFind.c: Add missing include.
16881 * grub-core/lib/LzmaEnc.c: Likewise.
16882 * grub-core/script/lexer.c: Likewise.
16883 * grub-core/script/yylex.l: Likewise.
16884 * util/grub-macho2img.c: Likewise.
16885 * util/grub-menulst2cfg.c: Likewise.
16886 * util/grub-mklayout.c: Likewise.
16887 * util/grub-mkpasswd-pbkdf2.c
16888 * util/grub-mkrelpath.c: Likewise.
16889 * util/resolve.c: Likewise.
16890
dd363028
BC
168912010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16892
16893 * Makefile.util.def (example_unit_test): Add
16894 grub-core/gnulib/libgnu.a.
16895
f5a109e2
GS
168962010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16897
16898 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16899
6d0fa83c
VS
169002010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16901
16902 Support xz compression on yeeloong.
16903
16904 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16905 * configure.ac: Check for LZMA.
16906 * grub-core/Makefile.core.def (xz_decompress): New target.
16907 (none_decompress): Likewise.
16908 * grub-core/boot/decompressor/minilib.c: New file.
16909 * grub-core/boot/decompressor/none.c: Likewise.
16910 * grub-core/boot/decompressor/xz.c: Likewise.
16911 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16912 * grub-core/kern/mips/cache_flush.S: Likewise.
16913 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16914 * grub-core/kern/mips/startup.S: Move first stage to ...
16915 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16916 nomacro.
16917 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16918 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16919 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16920 Allocate statically.
16921 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16922 Allocate statically or use scratch. Don't check CRC32.
16923 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16924 Allocate statically. Don't check CRC32.
16925 * include/grub/decompressor.h: New file.
16926 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16927 Removed.
16928 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16929 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16930 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16931 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16932 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16933 * util/grub-mkimage.c (grub_compression_t): New type.
16934 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16935 (image_target_desc): New field default_compression.
16936 (image_targets): Adjust yeeloong targets.
16937 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16938 (compress_kernel): New parameter comp.
16939 (generate_image): Likewise. Handle new compression case.
16940 (options): New option --compression
16941 (help): Likewise.
16942 (main): Handle new option.
16943
1b655af6
GS
169442010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16945
16946 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16947
8f03f0b5
CW
169482010-09-22 Colin Watson <cjwatson@ubuntu.com>
16949
16950 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16951 typo in __i386__ conditional.
16952
7835dfd3
VS
169532010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16954
16955 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16956 include.
16957
e255597e
VS
169582010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16959
6d0fa83c 16960 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16961
16962 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16963 new tags as supported.
16964 (acpiv2_size): New function.
16965 (grub_multiboot_get_mbi_size): Take new tags into account.
16966 (grub_multiboot_make_mbi): Add new tags.
16967 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16968
6cc14051 169692010-09-21 Aleš Nesrsta <starous@volny.cz>
16970
16971 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16972 Added missing configuration of USB device.
16973
df7769d8
CW
169742010-09-21 Colin Watson <cjwatson@ubuntu.com>
16975
16976 * grub-core/normal/menu_entry.c (run): Make sure we always return
16977 a value.
16978
b031012d
CW
169792010-09-21 Colin Watson <cjwatson@ubuntu.com>
16980
16981 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16982 NumberOfPages is UINT64 according to the UEFI specification, not
16983 UINTN. Fix printf format.
16984
174de8f3
CW
169852010-09-21 Colin Watson <cjwatson@ubuntu.com>
16986
16987 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
16988 `err' to grub_usb_err_t.
16989 Reported and tested by: KESHAV P.R.
16990
d7dbe923
CW
169912010-09-21 Colin Watson <cjwatson@ubuntu.com>
16992
16993 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
16994 tpart non-const, so that we can assign to it. (Since this is a
16995 typedef, the constness refers to the pointer rather than what it
16996 points to.)
16997
8d5e2af3
CW
169982010-09-21 Colin Watson <cjwatson@ubuntu.com>
16999
17000 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17001 $(top_srcdir)/grub-core/gnulib as well as
17002 $(top_builddir)/grub-core/gnulib.
17003 Reported by: KESHAV P.R.
17004
5c527783
CW
170052010-09-21 Colin Watson <cjwatson@ubuntu.com>
17006
17007 * util/grub-install.in: Fix the bootloader ID option to be
17008 consistently --bootloader-id, not --bootloader_id.
17009 Reported by: KESHAV P.R.
17010
d309a16e
CW
170112010-09-21 Colin Watson <cjwatson@ubuntu.com>
17012
17013 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17014 check hash checksum." consistently translatable.
17015
b830cd16
YB
170162010-09-21 Yves Blusseau <blusseau@zetam.org>
17017
17018 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17019 $(top_builddir).
17020
c4fe27a8
CW
170212010-09-21 Colin Watson <cjwatson@ubuntu.com>
17022
17023 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17024 (GRUB_MOD_INIT): Register sha1sum command.
17025 (GRUB_MOD_FINI): Unregister sha1sum command.
17026
a4c1d277
YB
170272010-09-21 Yves Blusseau <blusseau@zetam.org>
17028
17029 Keep boot and grub directory names in sync with utils scripts
17030
17031 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17032 * config.h.in: Add previous macros.
17033 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17034 * util/grub-install.in: Use $bootdir and $grubdir variables.
17035
4eff79d2
CW
170362010-09-21 Colin Watson <cjwatson@ubuntu.com>
17037
17038 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17039 convert partition names to disk names if the new `convert' parameter
17040 is set.
17041 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17042 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17043 disk in its own right. This can happen with Xen disk images.
17044
934d7e44
YB
170452010-09-21 Yves Blusseau <blusseau@zetam.org>
17046
17047 * util/grub-editenv.c: Update strings to avoid warnings when generating
17048 grub.pot file.
17049 * util/grub-setup.c: Likewise.
934d7e44 17050
df3367cc
VS
170512010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17052
17053 * configure.ac: Change version to 1.99~beta0.
17054
77a94e98
VS
170552010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17058 Add BADRAM.
17059 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17060 Likewise.
17061 * include/multiboot.h: Resynced with specification.
17062 * include/multiboot2.h: Likewise.
17063
269004c1
CW
170642010-09-21 Colin Watson <cjwatson@ubuntu.com>
17065
17066 Fix po directory handling.
17067
17068 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17069 * grub-core/gnulib/Makefile.am: Import gettext module.
17070 * m4/gnulib-cache.m4: Likewise.
17071 * m4/gnulib-comp.m4: Likewise.
17072 * m4/gettext.m4: New file, from gnulib.
17073 * m4/glibc2.m4: Likewise.
17074 * m4/iconv.m4: Likewise.
17075 * m4/intdiv0.m4: Likewise.
17076 * m4/intl.m4: Likewise.
17077 * m4/intldir.m4: Likewise.
17078 * m4/intlmacosx.m4: Likewise.
17079 * m4/intmax.m4: Likewise.
17080 * m4/inttypes-pri.m4: Likewise.
17081 * m4/lcmessage.m4: Likewise.
17082 * m4/lib-ld.m4: Likewise.
17083 * m4/lib-link.m4: Likewise.
17084 * m4/lib-prefix.m4: Likewise.
17085 * m4/lock.m4: Likewise.
17086 * m4/nls.m4: Likewise.
17087 * m4/po.m4: Likewise.
17088 * m4/printf-posix.m4: Likewise.
17089 * m4/progtest.m4: Likewise.
17090 * m4/threadlib.m4: Likewise.
17091 * m4/uintmax_t.m4: Likewise.
17092 * m4/visibility.m4: Likewise.
17093 * po/Makefile.am: Remove.
17094 * po/Makefile.in.in: New file, from gettext.
17095 ($(DOMAIN).pot-update): Support POTFILES-shell.
17096 * po/Makevars: New file.
17097 * po/POTFILES-shell: Rename to ...
17098 * po/POTFILES-shell.in: ... this. Update.
17099 * po/POTFILES: Rename to ...
17100 * po/POTFILES.in: ... this. Update.
17101 * po/Rules-quot: New file, from gettext.
17102 * po/boldquot.sed: Likewise.
17103 * po/en@boldquot.header: Likewise.
17104 * po/en@quot.header: Likewise.
17105 * po/insert-header.sin: Likewise.
17106 * po/quot.sed: Likewise.
17107 * po/remove-potcdate.sin: Likewise.
17108
3e0fa5d0
VS
171092010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17112
ade9bd66
VS
171132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17114
17115 * util/grub.d/20_linux_xen.in: Use submenus.
17116
fc55cc4c
VS
171172010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 Support submenus.
17120
17121 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17122 parameter submenu. All users updated.
17123 * grub-core/normal/main.c (free_menu): Rename to ...
17124 (grub_normal_free_menu): ... this. Made global.
17125 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17126 if requested.
17127 * grub-core/normal/menu_entry.c (screen): New field submenu.
17128 (make_screen): Set submenu.
17129 (run): Open new context if requested.
17130 * include/grub/menu.h (grub_menu_entry): New field submenu.
17131 * include/grub/normal.h (grub_normal_free_menu): New proto.
17132
600cedf7
VS
171332010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 Menu entries extractor.
17136
17137 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17138 variants.
17139 (GRUB_MOD_INIT): Register new variants.
17140 (GRUB_MOD_FINI): Unregister new variants.
17141 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17142 into grub_cmd_legacy_source.
17143 (grub_cmd_legacy_source): Implement extractor variants.
17144 (GRUB_MOD_INIT): Register new variants.
17145 (GRUB_MOD_FINI): Unregister new variants.
17146 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17147 as an extractor.
17148 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17149 search as an extractor.
17150 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17151 test as an extractor.
17152 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17153 as an extractor.
17154 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17155 (grub_env_new_context): New function.
17156 (grub_env_context_open): Likewise.
17157 (grub_env_extractor_open): Likewise.
17158 (grub_env_extractor_close): Likewise.
17159 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17160 grub_extractor_level.
17161 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17162 * include/grub/env.h (grub_env_extractor_open): New proto.
17163 (grub_env_extractor_close): Likewise.
17164 * include/grub/normal.h (grub_extractor_level): New external variable.
17165
7bda3a87
VS
171662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17167
17168 Make cutmem accept a region specification.
17169 Suggested by: Samuel Thibault
17170
17171 * grub-core/mmap/mmap.c (parsemem): New function.
17172 (grub_cmd_cutmem): Handle new arguments.
17173
2ea57f88
VS
171742010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 New command cutmem.
17177
17178 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17179 (GRUB_MOD_INIT): Register new command.
17180 (GRUB_MOD_FINI): Unregister new command.
17181
74342e31
VS
171822010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 Support some annoying BSD and Minix subpartitions.
17185
17186 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17187 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17188 Properly handle concatenation.
17189 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17190 * grub-core/normal/completion.c (iterate_partition): Likewise.
17191 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17192 contain partition. All users updated.
17193 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17194 struct.
17195 (grub_openbsdlabel_partition_map): Likewise.
17196 (bsdlabel_partition_map_iterate): Rename to ..
17197 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17198 (bsdlabel_partition_map_iterate): New function.
17199 (netopenbsdlabel_partition_map_iterate): Likewise.
17200 (netbsdlabel_partition_map_iterate): Likewise.
17201 (openbsdlabel_partition_map_iterate): Likewise.
17202 (GRUB_MOD_INIT): Register new partmaps.
17203 (GRUB_MOD_FINI): Unregister new partmaps.
17204 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17205 (grub_partition_msdos_iterate): ... this. All users updated.
17206 Don't support embedding other than in a minix partition.
17207 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17208 proto.
17209 * include/grub/partition.h (grub_partition): New field msdostype.
17210 * util/grub-install.in: Handle openbsd and netbsd types being in
17211 part_bsd module.
17212
1e8d555b
VS
172132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17214
17215 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17216
17217 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17218 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17219 (mdraid09): ... this.
17220 (mdraid1x): New module.
17221 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17222 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17223
899d8af4
VS
172242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17227 vsprintf.
17228
40901acd
CW
172292010-09-20 Colin Watson <cjwatson@ubuntu.com>
17230
17231 * grub-core/commands/efi/lsefimmap.c: Correct header.
17232 * NEWS: Update.
17233
dfe3b247
CW
172342010-09-20 Colin Watson <cjwatson@ubuntu.com>
17235
17236 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17237 as printf format strings; the translations might contain '%' which
17238 could cause a crash.
17239 (main): Likewise.
17240 * util/grub-fstest.c (argp_parser): Likewise.
17241 * util/grub-setup.c (argp_parser): Likewise.
17242 (main): Likewise.
17243
3286a4b4
VS
172442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17245
17246 Use argp in grub-fstest.
17247
17248 * util/grub-fstest.c: Don't include getopt.h.
17249 Include argp.h.
17250 (root): New variable.
17251 (args_count): Likewise.
17252 (nparm): Likewise.
17253 (num_disks): Likewise.
17254 (images): Likewise.
17255 (cmd): Likewise.
17256 (debug_str): Likewise.
17257 (args): Likewise.
17258 (options): Transformed to argp.
17259 (usage): Removed.
17260 (main): Split argument parsing into ...
17261 (argp_parser): ... this. Changed to argp format.
17262 (argp): New variable.
17263 (main): Use argp_parse.
17264
3dccbe4b
TG
172652010-09-20 Tristan Gingold <gingold@free.fr>
172662010-09-20 Robert Millan <rmh.grub@aybabtu.com>
172672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * grub-core/commands/efi/lsefimmap.c: New file.
17270 * grub-core/Makefile.core.def (lsefimmap): New module.
17271 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17272
38c259a7
VS
172732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 Pause the execution (10s max) if any errors are displayed so the user
17276 has a chance to see them.
17277
17278 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17279 (grub_print_error): Increment grub_err_printed_errors.
17280 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17281 execution if any errors were displayed.
17282 (show_menu): Remove old code for pause.
17283 * grub-core/normal/menu_entry.c (run): Likewise.
17284 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17285 users updated.
17286 (grub_normal_get_char_counter): Likewise.
17287 * include/grub/err.h (grub_err_printed_errors): New external variable.
17288 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
17289
f218b09c
VS
172902010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 Support multiboot VBE info.
17293
17294 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17295 Take VBE info into account.
17296 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
17297 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17298 Call fill_vbe_info when appropriate.
17299 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
17300 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
17301 as supported.
17302 (grub_multiboot_get_mbi_size): Take new tags into account.
17303 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
17304 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17305 Call fill_vbe_tag when appropriate.
17306 (grub_multiboot_make_mbi): Properly align tags.
17307 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
17308 function.
17309 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
17310 proto.
17311 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
17312
a9cc5438
VS
173132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 Suport manual terminal geometry specification.
17316
17317 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
17318 Save state in grub_ofconsole_terminfo_output.
17319 (grub_ofconsole_term): Use grub_terminfo_getwh.
17320 (grub_ofconsole_getwh): Removed.
17321 * grub-core/term/serial.c (grub_serial_getwh): Removed.
17322 (grub_serial_term): Use grub_terminfo_getwh.
17323 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
17324 (options): New struct.
17325 (OPTION_*): New enum.
17326 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
17327 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
17328 width and height.
17329 (grub_terminfo_getwh): New proto.
17330 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
17331
1a8fed20
VS
173322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17333
17334 Handle legacy "terminal" command.
17335
17336 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
17337 and FLAG_TERMINAL.
17338 (legacy_commands): Add terminal and title.
17339 (grub_legacy_parse): Handle terminal. Simplify title handling.
17340
41e9c57d
VS
173412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
17344 parameters overflow.
17345
61c874c5
CW
173462010-09-20 Colin Watson <cjwatson@ubuntu.com>
17347
17348 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
17349 widthspec.h.
17350
17351 * docs/grub.texi (Shell-like scripting): Document `!'.
17352 (Network): Simplify using new i386-pc-pxe format. Mention
17353 grub-mknetdir.
17354
17355 * NEWS: Update.
17356
943682b4
CW
173572010-09-20 Colin Watson <cjwatson@ubuntu.com>
17358
17359 * Makefile.am (SUBDIRS): Restore "."; it's important to force
17360 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
17361 when needed.
17362
6d3d698d
CW
173632010-09-20 Colin Watson <cjwatson@ubuntu.com>
17364
17365 * grub-core/commands/efi/lsefisystab.c: Correct header.
17366 * grub-core/commands/efi/lssal.c: Likewise.
17367 * grub-core/commands/testload.c: Likewise.
17368
c982589f
CW
173692010-09-20 Colin Watson <cjwatson@ubuntu.com>
17370
17371 * util/grub-mkrescue.in: Add explicit root argument to --set to
17372 prevent the UUID being interpreted as an argument to --set (matches
17373 previous change to prepare_grub_to_access_device).
17374
a63c31b6
CW
173752010-09-20 Colin Watson <cjwatson@ubuntu.com>
17376
17377 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
17378 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
17379 the verbosity of later #ifs.
17380 (find_partition_start): Define this function on FreeBSD too.
17381 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
17382 function.
17383 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
17384 on FreeBSD.
17385
6439b8ee
YB
173862010-09-20 Yves Blusseau <blusseau@zetam.org>
17387
17388 * util/grub-editenv.c: Use argp instead of getopt.
17389
c5930ec8
YB
173902010-09-20 Yves Blusseau <blusseau@zetam.org>
17391
17392 * util/grub-setup.c: Use argp instead of getopt.
17393
15c69261
YB
173942010-09-20 Yves Blusseau <blusseau@zetam.org>
17395
17396 Use gnulib-tool to create gnulib source files.
17397
17398 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
17399 grub-core/gnulib directories
17400 * .bzignore: Add **/.deps and autogenerated gnulib files
17401 * configure.ac: Assign auxiliary directory to build-aux, add invocation
17402 of gnulib macros, add grub-core/gnulib/Makefile
17403 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
17404 include m4 directory to aclocal.
17405 * Makefile.util.def: Remove direct compilation of gnulib source files
17406 and use the new grub-core/gnulib/libgnu.a.
17407 * build-aux/config.rpath: move config.rpath from top directory to
17408 build-aux
17409 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
17410 in gnulib headers
17411 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
17412 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
17413 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
17414 header.
17415 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
17416 string.
17417
e511c9f5
YB
174182010-09-20 Yves Blusseau <blusseau@zetam.org>
17419
17420 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
17421 grub-core/genmod.sh and grub-core/gensyminfo.sh
17422
c2dede05
BC
174232010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
17424
17425 Add a test for echo command options.
17426
17427 * tests/grub_cmd_echo.in: New test.
17428 * Makefile.util.def: Rules for new test.
17429
c55f5018
SJ
174302010-09-20 Szymon Janc <szymon@janc.net.pl>
17431
17432 Remove crc.mod and move crc command to hashsum.mod.
17433 Remove lib/crc.c - users updated to use gcrypt implementation.
17434
17435 * grub-core/commands/crc.c: Removed.
17436 * grub-core/Makefile.core.def (crc): Module removed.
17437 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
17438 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
17439 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
17440 * grub-core/lib/crc.c: Removed.
17441 * include/grub/lib/crc.h: Removed.
17442 * Makefile.util.def (crc): Remove lib/crc.c
17443 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
17444 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
17445 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
17446 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
17447 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
17448 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
17449
e0337366
VS
174502010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17451
17452 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
17453
742f9232
VS
174542010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 Split config.h for util and core.
17457
17458 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
17459 (ADDR32): Likewise.
17460 (DATA32): Likewise.
17461 (BSS_START_SYMBOL): Likewise.
17462 (END_SYMBOL): Likewise.
17463 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
17464 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
17465 * config.h.in: New file.
17466 * configure.ac: Use config-util.h as config define file.
17467 Rename MACHINE into GRUB_MACHINE. All users updated.
17468 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
17469 updated.
17470 (NESTED_FUNC_ATTR): Likewise.
17471 Substitue new variables.
17472 (COND_HAVE_ASM_USCORE): New conditional.
17473 * grub-core/Makefile.am (ASM_PREFIX): New variable.
17474 (kernel_syms.lst): Use ASM_PREFIX.
17475 * grub-core/kern/emu/console.c: Include config-util.h.
17476 * grub-core/kern/emu/misc.c: Likewise.
17477 * grub-core/kern/emu/mm.c: Likewise.
17478 * include/grub/emu/misc.h: Likewise.
17479 * include/grub/libgcc.h: Likewise.
17480
39feb0e8
VS
174812010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17482
17483 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
17484 constants usage.
17485 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
17486 Fix GRUB_TERM_KEY_* constants usage.
17487 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
17488
9af6dac3
VS
174892010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17490
17491 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
17492 print pointer.
17493 * grub-core/bus/usb/uhci.c: Remove empty define.
17494 (grub_uhci_check_transfer): Add missing cast.
17495 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
17496 print pointer.
17497 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
17498 PRIuGRUB_SIZE.
17499 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
17500
d6d94820
VS
175012010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17502
17503 * grub-core/Makefile.core.def (legacycfg): Add
17504 lib/i386/pc/vesa_modes_table.c on emu.
17505
3572f2b6
BC
175062010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17507
17508 Reduce number of temporary files generated by build system.
17509
17510 * grub-core/gencmdlist.sh: Removed.
17511 * grub-core/genfslist.sh: Removed.
17512 * grub-core/genhandlerlist.sh: Removed.
17513 * grub-core/genmodsrc.sh: Removed.
17514 * grub-core/genpartmaplist.sh: Removed.
17515 * grub-core/genparttoollist.sh: Removed.
17516 * grub-core/gentermiinallist.sh: Removed.
17517 * grub-core/genvideolist.sh: Removed.
17518
17519 * grub-core/genmod.sh.in: New file.
17520 * grub-core/gensyminfo.sh.in: New file.
17521
17522 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
17523 * conf/Makefile.extra-dist: Update with new files.
17524 * gentpl.py: Remove rules related to unnecessary temporary files.
17525 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
17526 and und-* files.
17527 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
17528 genmod.sh scripts.
17529 * grub-core/bus/usb/uhci.c: Remove empty #define.
17530 * grub-core/genmoddep.awk: Updated with new syminfo format.
17531 * util/bash-completion.d/Makefile.am: Add config.log to
17532 CLEANFILES.
17533
c836b030
YB
175342010-09-19 Yves Blusseau <blusseau@zetam.org>
17535
17536 * Makefile.util.def: Add forgotten $(LIBINTL) library.
17537
2f4e8053
BC
175382010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17539
17540 * util/grub-mkconfig.in: Check the config script for syntax errors
17541 before saving.
17542
75831c34
CW
175432010-09-19 Colin Watson <cjwatson@ubuntu.com>
175442010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17545
17546 * Makefile.util.def (grub-install): Use util/grub-install.in on all
17547 platforms.
17548 * util/grub-install.in: Add EFI and IEEE1275 support.
17549 * util/i386/efi/grub-install.in: Removed.
17550 * util/ieee1275/grub-install.in: Likewise.
17551
eaf41b25
VS
175522010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17553
17554 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
17555 (grub_cmd_cmosclean): Likewise.
17556 (GRUB_MOD_INIT): Register command cmosclean.
17557 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
17558 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
17559
1a9130dd
CPE
175602010-09-18 Carles Pina i Estany <carles@pina.cat>
175612010-09-18 Aleš Nesrsta <starous@volny.cz>
175622010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17563
17564 Add keyboard layouts support.
17565
17566 * Makefile.util.def (grub-mklayout): New file.
17567 (grub-kbdcomp): New script.
17568 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
17569 Add keyboard_layouts.h.
17570 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
17571 commands/boot.c on yeeloong.
17572 (keylayouts): New module.
17573 * grub-core/bus/usb/ohci.c
17574 * grub-core/bus/usb/uhci.c
17575 * grub-core/bus/usb/usbhub.c (rescan): New variable.
17576 (grub_usb_add_hub): Poll interrupt pipe for device handling.
17577 (attach_root_port): Likewise.
17578 (poll_nonroot_hub): Likewise.
17579 (grub_usb_poll_devices): Likewise.
17580 (detach_device): Close transfer.
17581 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
17582 function.
17583 (grub_usb_bulk_setup_readwrite): Likewise.
17584 (grub_usb_bulk_finish_readwrite): Likewise.
17585 * grub-core/commands/keylayouts.c: New file.
17586 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
17587 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
17588 aliases.
17589 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
17590 support scancode 2.
17591 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
17592 * include/grub/keyboard_layouts.h: New file.
17593 * util/grub-mklayout.c: New file.
17594 * util/grub-kbdcomp.in: Likewise.
17595
a1d84a5e
VS
175962010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17597
17598 Unify memory types.
17599
17600 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
17601 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
17602 types.
17603 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
17604 (grub_upper_mem): Likewise.
17605 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
17606 * include/grub/memory.h (grub_memory_type_t): New enum.
17607 All users updated.
17608
9696382e
VS
176092010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 * grub-core/Makefile.core.def (lsapm): New module.
17612 * grub-core/commands/i386/pc/lsapm.c: New file.
17613 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
17614 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
17615 Likewise.
17616 * include/grub/i386/pc/apm.h: New file.
17617 * include/multiboot.h (multiboot_apm_info): New struct.
17618
176192010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 GRUB-legacy configuration file support.
17622
17623 * Makefile.util.def (grub-menulst2cfg): New util.
17624 * docs/man/grub-menulst2cfg.h2m: New file.
17625 * grub-core/Makefile.core.def (legacycfg): New module.
17626 * grub-core/commands/legacycfg.c: New file.
17627 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
17628 (grub_normal_add_menu_entry): ... this.
17629 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
17630 (grub_normal_set_password): ...this.
17631 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
17632 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
17633 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
17634 * grub-core/lib/legacy_parse.c: New file.
17635 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
17636 * include/grub/i386/pc/vesa_modes_table.h: New file.
17637 * include/grub/legacy_parse.h: Likewise.
17638 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
17639 * util/grub-menulst2cfg.c: New file.
17640
bf8d1338
CW
176412010-09-17 Colin Watson <cjwatson@ubuntu.com>
17642
17643 * grub-core/kern/emu/hostdisk.c
17644 (convert_system_partition_to_system_disk): Initialise node.
17645
9c0bad2e
CW
176462010-09-17 Colin Watson <cjwatson@ubuntu.com>
17647
17648 * grub-core/kern/emu/hostdisk.c
17649 (convert_system_partition_to_system_disk): Fix devmapper memory pool
17650 leak.
17651 Reported and based on patch by: Modestas Vainius.
17652
a939d135
CW
176532010-09-17 Colin Watson <cjwatson@ubuntu.com>
17654
17655 Fix DM-RAID probing with recent versions of device-mapper udev
17656 rules.
17657
17658 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
17659 canonicalise device paths under /dev/mapper/.
17660 (convert_system_partition_to_system_disk): Compare the
17661 uncanonicalised path to /dev/mapper/ rather than the canonicalised
17662 path, since device nodes under /dev/mapper/ are often symlinks.
17663
0f7ee3c9
YB
176642010-09-17 Yves Blusseau <blusseau@zetam.org>
17665
17666 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
17667
10854d0d
YB
176682010-09-16 Yves Blusseau <blusseau@zetam.org>
17669
17670 * configure.ac: Avoid some annoying error messages if freetype-config
17671 program is not found.
17672
108538d8
CW
176732010-09-16 Colin Watson <cjwatson@ubuntu.com>
17674
17675 Support RAID on virtio devices, and others.
17676
17677 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
17678 Rename to ...
17679 [__MINGW32__] (grub_find_device): ... this.
17680 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
17681 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
17682 reasonable default if dir is NULL.
17683 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
17684 ...
17685 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
17686 (grub_guess_root_device): Update callers.
17687 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
17688
17689 * util/raid.c (grub_util_getdiskname): Remove.
17690 (grub_util_raid_getmembers): Use grub_find_device rather than
17691 grub_util_getdiskname.
17692
e5bfc130
CW
176932010-09-16 Colin Watson <cjwatson@ubuntu.com>
17694
17695 * docs/grub.texi (serial): Remove obsolete comment about GRUB
17696 needing to be compiled with serial support.
17697 (ls): Indicate that multiple files are accepted.
17698 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
17699 indicate that multiple files are accepted.
17700
be458ae2
CW
177012010-09-16 Colin Watson <cjwatson@ubuntu.com>
17702
17703 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
17704 libgrub_a_init.c, and util/bash-completion.d/grub.
17705
cb731b5e
VS
177062010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 * util/grub-setup.c (setup): Fix incorrect container semantics.
17709
35139e8a
VS
177102010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17711
17712 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
17713 misusage.
17714 Reported by: J. Nick Terry
17715
e50fca4a
VS
177162010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 Move embedding routines to partmap sources files.
17719
17720 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
17721 [GRUB_UTIL]: New variable.
17722 (gpt_partition_map_iterate): Set part.parent.
17723 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
17724 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
17725 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
17726 New function.
17727 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
17728 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
17729 (grub_partition_map) [GRUB_UTIL]: New field embed.
17730 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
17731 (setup): Use ->embed.
17732
f00478b7
VS
177332010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17734
17735 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
17736 function.
17737 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
17738 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
17739
2b94e3ff
YB
177402010-09-15 Yves Blusseau <blusseau@zetam.org>
17741
17742 Add function to get completions from usage.
17743
17744 * util/bash-completion.d/grub-completion.bash.in: Add function to get
17745 completions from usage. Use LC_ALL=C to get options properly.
17746
2e04a006
VS
177472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17748
17749 * grub-core/gnulib/basename-lgpl.c: Imported.
17750 * grub-core/gnulib/basename.c: Likewise.
17751 * grub-core/gnulib/dirname-lgpl.c: Likewise.
17752 * grub-core/gnulib/dirname.c: Likewise.
17753 * grub-core/gnulib/dirname.h: Likewise.
17754 * grub-core/gnulib/stripslash.c: Likewise.
17755
5dcdf93a
VS
177562010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17757
17758 * grub-core/gnulib/error.c: Resynced.
17759 * grub-core/gnulib/getopt.c: Likewise.
17760 * grub-core/gnulib/getopt_int.h: Likewise.
17761 * grub-core/gnulib/regex.h: Likewise.
17762 * grub-core/gnulib/regex_internal.c: Likewise.
17763 * grub-core/gnulib/regex_internal.h: Likewise.
17764
014f47b7
SJ
177652010-09-15 Szymon Janc <szymon@janc.net.pl>
17766
17767 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
17768 CRC calculations and validity checks.
17769 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
17770 calculations.
17771
dd521a4a
SJ
177722010-09-15 Szymon Janc <szymon@janc.net.pl>
17773
17774 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
17775
79c4eeb9
VS
177762010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17777
17778 Fix incorrect echo options handling.
17779 Reported by: Yves Blusseau.
17780
17781 * include/grub/command.h (grub_command_flags_t): New flags
17782 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
17783 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
17784 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
17785
ed80f7d5
VS
177862010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17787
17788 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
17789 users updated.
17790 (GRUB_COMMAND_FLAG_MENU): Likewise.
17791 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17792 (GRUB_COMMAND_FLAG_TITLE): Removed.
17793 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17794 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
17795 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
17796 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
17797 (grub_command_flags_t): New enum. All users updated.
17798
5fe7620a
SG
177992010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
17800
17801 Fix solaris compilation.
17802
17803 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
17804 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
17805 (grub-emu-list): Likewise.
17806
545b752f
VS
178072010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17808
17809 Remove deprecated root command.
17810
17811 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17812 updated.
17813
6c1a338c
VS
178142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17815
17816 * util/i386/pc/grub-setup.c: Merge this ...
17817 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17818 * util/grub-setup.c: ... into this.
17819 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17820 New struct.
17821
178222010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17823
17824 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17825 possible.
17826
d2ea4551
VS
178272010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17828
17829 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17830 allocate p.
17831
3c3b5040
VS
178322010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17835 explicit root argument to set to prevent UUID to be interpreted as
17836 argument to set.
17837
b71c3fae
VS
178382010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17841
275433e6
VS
178422010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 Don't export grub_gate_a20.
17845
17846 * grub-core/kern/i386/pc/init.c: Remove leftovers.
17847 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
17848 to ...
17849 (grub_gate_a20): ... this. All users updated.
17850 * include/grub/i386/pc/init.h: Removed. All users updated.
17851
a5dbb1f1
VS
178522010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17853
17854 Create euro.pf2 which supports most European languages.
17855
17856 * Makefile.am (grubdata_DATA): Add euro.pf2.
17857 (euro.pf2): New target.
17858 (CLEANFILES): Add euro.pf2.
17859
62a747cb
VS
178602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17861
17862 * configure.ac: Disable emu-usb by default to prevent inadvertent
17863 device takeover.
17864
608e43b1
VS
178652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17866
17867 Disable usbserial on grub-emu since our libusb code isn't good enough
17868 yet.
17869
17870 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17871 (usbserial_pl2303): Likewise.
17872 (usbserial_ftdi): Likewise.
17873
94564f81
VS
178742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17875
17876 * include/grub/disk.h (grub_disk): Remove has_partitions.
17877 All users updated.
17878 * disk/loopback.c (grub_loopback): Remove has_partitions.
17879 All users updated.
17880 (options): Remove partitions. All users updated.
17881 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17882 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17883 actual partition table is found.
17884
3352800b
VS
178852010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17886
17887 Remove readability checks (too many false negatives).
17888
17889 * util/grub-install.in: Remove readability checks.
17890 * util/grub-mkconfig.in: Likewise.
17891 * util/grub.d/10_hurd.in: Likewise.
17892 * util/grub.d/10_kfreebsd.in: Likewise.
17893 * util/grub.d/10_linux.in: Likewise.
17894 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17895 way.
17896
2419f17a
VS
178972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17898
17899 Enable acpi shutdown on all ACPI platforms.
17900
17901 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17902 on coreboo, multiboot and EFI.
17903 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17904 (grub_acpi_halt): Likewise.
17905 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17906 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17907 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17908 * grub-core/lib/i386/halt.c (grub_halt)
17909 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17910
0575c7c3
VS
179112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17912
17913 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17914 context.
17915
54ac3cd1
VS
179162010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17919 * grub-core/video/efi_uga.c: Likewise.
17920
b2a30ac5
VS
179212010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17922
17923 Filter devaliases and never open same device twice.
17924
17925 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17926 (last_ihandle): Likewise.
17927 (ofdisk_hash_ent): New member shortest.
17928 (ofdisk_hash_add): Add canonical path too.
17929 (scan): New function.
17930 (grub_ofdisk_iterate): Iterate over hashed entries.
17931 (compute_dev_path): Don't add :0.
17932 (grub_ofdisk_open): Don't really open the disk.
17933 (grub_ofdisk_close): Avoid closing unrelated disk.
17934 (grub_ofdisk_read): Implement reopen logic.
17935 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17936 New function.
17937 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17938 New proto.
17939
fb53b340
VS
179402010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 Fix sparc64.
17943
17944 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17945 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17946 right address. Add sparc64_ieee1275_ldflags.
17947 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17948 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17949 to grub_host_to_target_addr
17950 (load_image): Likewise.
17951
f452b040
VS
179522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17953
17954 * grub-core/normal/completion.c (complete_file): Handle device
17955 containing slash.
17956 Fix based on patch by Doug Nazar.
17957
9b5b2541
VS
179582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 grub-mknetdir script.
17961
17962 * Makefile.util.def (grub-mknetdir): New module.
17963 * tests/util/grub-shell.in: Support boot=net
17964 * util/grub-mknetdir.in: New file.
17965
9d2be652
VS
179662010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17967
17968 videoinfo on non-vbe.
17969
17970 * grub-core/Makefile.core.def (vbeinfo): Removed.
17971 (vbetest): Removed.
17972 (videoinfo): New module.
17973 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17974 * grub-core/commands/i386/pc/vbetest.c: Removed.
17975 * grub-core/commands/videoinfo.c: New file.
17976 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17977 specification.
17978 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17979 as vbetest.
17980 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17981 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17982 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
17983 mode_number. New parameter mode. All users updated.
17984 (grub_video_gop_iterate): New function.
17985 (grub_video_efi_gop): New member iterate.
17986 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
17987 (grub_vbe_set_video_mode): Remove setting useless fields.
17988 (vbe2videoinfo): New function.
17989 (grub_video_vbe_iterate): Likewise.
17990 (grub_video_vbe_setup): Use vbe2videoinfo.
17991 (grub_video_vbe_print_adapter_specific_info): New function.
17992 (grub_video_vbe_adapter): New fields iterate and
17993 print_adapter_specific_info.
17994 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
17995 All users updated.
17996 (grub_video_mode_info): New field mode_number.
17997 (grub_video_adapter): New fields iterate and
17998 print_adapter_specific_info.
17999
179503f5
TG
180002010-09-13 Tristan Gingold <gingold@free.fr>
180012010-09-13 Robert Millan <rmh.grub@aybabtu.com>
180022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18003
18004 * grub-core/commands/efi/lsefisystab.c: New file.
18005 * grub-core/commands/efi/lssal.c: Likewise.
18006 * grub-core/Makefile.core.def (lsacpi): New module.
18007 (lsefisystab): Likewise.
18008 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18009 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18010 (grub_efi_sal_system_table): New struct.
18011 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18012 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18013 (grub_efi_sal_system_table_platform_features): Likewise.
18014 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18015 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18016 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18017 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18018
cf9827de
VS
180192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18020
18021 Support explicit user claim that a device is BIOS-visible.
18022
18023 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18024 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18025 * grub-core/kern/emu/hostdisk.c
18026 (convert_system_partition_to_system_disk): Support mdX.
18027 (find_system_device): New parameter add. All users updated.
18028 (grub_util_biosdisk_is_present): New function.
18029 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18030 proto.
18031
53f0eb1f
VS
180322010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18033
18034 Search hints support.
18035
18036 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18037 All users updated.
18038
b23ffd70
YB
180392010-09-13 Yves Blusseau <blusseau@zetam.org>
18040
18041 Bash completion script for util commands
18042
18043 * Makefile.am: Add util/bash-completion.d directory
18044 * configure.ac: Likewise.
18045 * util/bash-completion.d/Makefile.am: New file.
18046 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18047
d547dc28
VS
180482010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18049
18050 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18051 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18052 Reported by: Yves Blusseau.
18053
2fc8ccb9
VS
180542010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18055
18056 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18057 partition size and offset.
18058
d8a84076
VS
180592010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18060
18061 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18062
84fb3b3d
VS
180632010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18064
18065 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18066
768ec2e2
VS
180672010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18068
18069 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18070 (grub_xvasprintf): Likewise.
18071
4870900f
VS
180722010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18075
faca6bec
VS
180762010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18079 args ending with NULL.
18080
180812010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
18082
18083 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18084 pointer.
18085
3c70f225
SJ
180862010-09-11 Szymon Janc <szymon@janc.net.pl>
18087
18088 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18089
4df7996d
VS
180902010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18091
18092 Shutdown using ACPI.
18093
18094 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18095 * grub-core/commands/acpihalt.c: New file.
18096 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18097 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18098 (grub_acpi_halt): New proto.
18099 (GRUB_ACPI_SLP_EN): New const.
18100 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18101 (GRUB_ACPI_OPCODE_*): New enum.
18102 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18103
126b4c32
TG
181042010-09-11 Tristan Gingold <gingold@free.fr>
181052010-09-11 Robert Millan <rmh.grub@aybabtu.com>
181062010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * commands/lsacpi.c: New file.
18109 * grub-core/Makefile.core.def (lsacpi): New module.
18110 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18111 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18112 (grub_acpi_madt_entry_header): New struct.
18113 (grub_acpi_madt): Likewise.
18114 (grub_acpi_madt_entry_interrupt_override): Likewise.
18115 (grub_acpi_madt_entry_sapic): Likewise.
18116 (grub_acpi_madt_entry_lsapic): Likewise.
18117 (grub_acpi_madt_entry_platform_int_source): Likewise.
18118 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18119 (PRIuGRUB_UINT32_T): Likewise.
18120 (PRIxGRUB_UINT64_T): Likewise.
18121
1aa4fe88
VS
181222010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 Implement loading palette on ieee1275_fb.
18125
18126 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18127 (have_setcolors): Likewise.
18128 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18129 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18130 (grub_video_ieee1275_set_palette): Implement.
18131
25761e13
VS
181322010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
181332010-09-11 Colin Watson <cjwatson@ubuntu.com>
18134
18135 * util/grub-install.in (grub_partition): New variable.
18136 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18137 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18138 Fixes a bug reported by Yves Blusseau.
18139
050abaea
VS
181402010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 Fix emu on mipsel.
18143
18144 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18145 =grub_cpu_flush_cache on all mips and not only yeeloong.
18146 * configure.ac (COND_mips): New conditional.
18147 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18148 platforms.
18149 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18150 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18151 [GRUB_LINKER_HAVE_INIT]: New function.
18152 (grub_emu_post_init): Likewise.
18153 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18154 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18155 * include/grub/cache.h (_mips): Include mips/cache.h.
18156 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18157 LVM and RAID prototypes.
18158 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18159 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18160 function.
18161
5ed7d816
CW
181622010-09-10 Colin Watson <cjwatson@ubuntu.com>
18163
18164 * util/grub-install.in: Don't try to verify core.img until after
18165 running grub-mkimage to create it.
18166
90367e04
RM
181672010-09-10 Robert Millan <rmh@gnu.org>
18168
18169 * util/grub.d/10_hurd.in: Add misc readability checks.
18170 * util/grub.d/10_kfreebsd.in: Likewise.
18171 * util/grub.d/10_linux.in: Likewise.
18172
c452fa66
CW
181732010-09-10 Colin Watson <cjwatson@ubuntu.com>
18174
18175 * util/grub-install.in: ${imgext} won't be defined here until the
18176 install branch is merged. For the meantime, only verify core.img on
18177 i386-pc and sparc64-ieee1275 platforms.
18178
c38fe9f4
RM
181792010-09-10 Robert Millan <rmh@gnu.org>
18180
18181 Solaris support in grub_find_zpool_from_dir(). Thanks
18182 Seth Goldberg for referring to getextmntent() facility.
18183
18184 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18185 `sys/mkdev.h'.
18186 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18187 `<sys/mnttab.h>'.
18188 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18189 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18190 method for finding zpool name.
18191
905f7773
CW
181922010-09-10 Colin Watson <cjwatson@ubuntu.com>
18193
18194 grub-fstest needs the host and hostfs modules while other utilities
18195 actively require those modules to be absent, so grub-fstest needs
18196 its own initialisation and finalisation code.
18197
18198 * Makefile.am (grub_fstest.pp): New target.
18199 (grub_fstest_init.lst): Likewise.
18200 (grub_fstest_init.c): Likewise.
18201 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18202
fb90b546
RM
182032010-09-10 Robert Millan <rmh@gnu.org>
18204
18205 * configure.ac: Check for `struct statfs.f_fstypename' and
18206 `struct statfs.f_mntfromname'.
18207
18208 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18209 kFreeBSD-specific code.
18210
66d4bea5
RM
182112010-09-10 Robert Millan <rmh@gnu.org>
18212
18213 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18214 on ZFS. Now non-main filesystems are supported as / too.
18215
b6a690ee
CW
182162010-09-09 Colin Watson <cjwatson@ubuntu.com>
18217
18218 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18219 and grub-core/disk/host.c to ...
18220 (grub-fstest): ... here. Having the host disk implementation
18221 present confuses grub-probe and other utility programs.
18222
18223 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18224 when writing to a file, not when writing to stdout.
18225
8901b00c 182262010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18227
18228 * tests/partmap_test.in: New test for partitions.
18229 * Makefile.util.def: Rules for new test.
18230
7bf45fdd
RM
182312010-09-09 Robert Millan <rmh@gnu.org>
18232
18233 * util/grub-probe.c (probe): Fix a pair of unhandled error
18234 conditions.
18235
4dfbc574
RM
182362010-09-09 Robert Millan <rmh@gnu.org>
18237
18238 Basic Btrfs support (detection and UUID).
18239
18240 * grub-core/fs/btrfs.c: New file.
18241 * Makefile.util.def (library): Register btrfs.c.
18242 * grub-core/Makefile.core.def: Likewise.
18243
6b8e78ae
RM
182442010-09-08 Robert Millan <rmh@gnu.org>
18245
18246 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18247 with (optional) parameters to specify device and relative path.
18248 * util/grub-install.in: Use is_path_readable_by_grub() to
18249 verify readability of a few critical files.
18250 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18251 verify readability of grub.cfg.new.
18252
27f21a8b
VS
182532010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18254
18255 Split minix.mod into minix.mod and minix2.mod.
18256
18257 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18258 * grub-core/Makefile.core.def (minix2): New module.
18259 * grub-core/fs/minix.c: Use definitions instead of runtime version
18260 checking.
18261 * grub-core/fs/minix2.c: New file.
18262
c0e53ea5
YB
182632010-09-08 Yves Blusseau <blusseau@zetam.org>
18264
18265 Add new --boot-directory option to replace --root-directory
18266
18267 * util/grub-install.in: Add new --boot-directory option
18268 * util/grub-reboot.in: Likewise.
18269 * util/grub-set-default.in: Likewise.
18270
b9fe6ea2
YB
182712010-09-08 Yves Blusseau <blusseau@zetam.org>
18272
18273 * util/grub-mkconfig.in: Use new variable.
18274
d87aedff
YB
182752010-09-08 Yves Blusseau <blusseau@zetam.org>
18276
18277 * configure.ac: Define some useful variables.
18278
e55e8495
VS
182792010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18280
18281 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18282 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18283 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18284 Use terminfo and don't use cursor-on/cursor-off unless it's known
18285 to work.
18286 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
18287 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
18288
6fa6d675
CW
182892010-09-08 Colin Watson <cjwatson@ubuntu.com>
18290
18291 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
18292 starts with "(,", fill the drive containing the loaded image in
18293 between those two characters, but expect that a full partition
18294 specification including partition map names will follow.
18295
92f2aef0
RM
182962010-09-08 Robert Millan <rmh@gnu.org>
18297
18298 * configure.ac: Remove `--enable-grub-fstest' option.
18299 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
18300
18301 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
18302 `grub-fstest' instead of `grub-probe' for readability verification.
18303 * util/grub-probe.c (probe): Remove readability verification kludge.
18304
99fd620d
RM
183052010-09-08 Robert Millan <rmh@gnu.org>
18306
18307 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
18308 initializing `GRUB_FS'.
18309
058e30ac 183102010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
18311
18312 Not command (!) support to GRUB script.
18313
18314 * tests/grub_script_not.in: New test.
18315 * Makefile.util.def: Rules for new test.
18316
18317 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18318 ! command as a special case.
18319 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
18320
b61d05ed 183212010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18322
058e30ac 18323 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
18324 grub_free.
b61d05ed 18325
4d69c786 183262010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18327
18328 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
18329
aa3119c4 183302010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18331
18332 * docs/grub.texi (Shell-like scripting): Documentation for break,
18333 continue, shift and return commands.
18334
db0f7e3d
VS
183352010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
18336
18337 Rename CD-ROM to cd on BIOS.
18338
18339 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
18340 "cd".
18341 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
18342
88b87c93
VS
183432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18344
18345 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
18346 * util/grub-probe.c (main): Likewise.
18347 * util/i386/pc/grub-setup.c (main): Likewise.
18348 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
18349 Reported and debugged by: alexxy
18350
294f324d
VS
183512010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18352
18353 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
18354 diagnostic info.
18355
d7ee3441
JS
183562010-09-05 Jo Shields <directhex@apebox.org>
18357
18358 * util/grub.d/30_os-prober.in: Add missing classes.
18359
d7e06c1f
VS
183602010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 * docs/grub.texi (Theme file format): Document new position format.
18363
fc157e53
VS
183642010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18365
18366 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
18367 a table. Use @code instead of @verbatim.
18368
506e9a1c
CB
183692010-09-05 Colin D Bennett <colin@gibibit.com>
18370
18371 Gfxmenu documentation.
18372
18373 * docs/grub.texi (Theme file format): New chapter.
18374
f0aff67c
SJ
183752010-09-05 Szymon Janc <szymon@janc.net.pl>
18376
18377 * grub-core/Makefile.core.def (xzio): New module.
18378 * grub-core/io/xzio.c: New file.
18379 * grub-core/lib/xzembed/xz.h: New file (from xembed).
18380 * grub-core/lib/xzembed/xz_config.h: Likewise.
18381 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
18382 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
18383 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
18384 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
18385 * grub-core/lib/xzembed/xz_private.h: Likewise.
18386 * grub-core/lib/xzembed/xz_stream.h: Likewise.
18387 * include/grub/file.h (grub_file_filter_id): New compression filter
18388 GRUB_FILE_FILTER_XZIO.
18389
82a85062
VS
183902010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18391
18392 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
18393 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
18394 size.
18395
3579415d
VS
183962010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
18399 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
18400
5124ae6d
VS
184012010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 Uncompressed checksum support.
18404
18405 * grub-core/commands/hashsum.c (options): Add option --uncompress.
18406 (check_list): New parameter uncompress.
18407 (grub_cmd_hashsum): Handle --uncompress.
18408
9aadb3d1
VS
184092010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18410
18411 Reintroduce testload.
18412
18413 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
18414 from here ...
18415 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
18416 (GRUB_MOD_INIT): New function.
18417 (GRUB_MOD_FINI): Likewise.
18418 * grub-core/Makefile.core.def (testload): New module.
18419
a17792c3
SJ
184202010-09-05 Szymon Janc <szymon@janc.net.pl>
18421
18422 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
18423 (uint8_t): New type.
18424 (uint16_t): Likewise.
18425 (uint32_t): Likewise.
18426 (uint64_t): Likewise.
18427
b81e40a3
SJ
184282010-09-05 Szymon Janc <szymon@janc.net.pl>
18429
18430 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
18431
fc2ef117
VS
184322010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18433
18434 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
18435 Made static.
18436 (grub_gzfile_open): Removed. All users updated.
18437 (GRUB_MOD_INIT): New function.
18438 (GRUB_MOD_FINI): Likewise.
18439 * grub-core/kern/file.c (grub_file_filters_all): New variable.
18440 (grub_file_filters_enabled): Likewise.
18441 (grub_file_open): Handle filters.
18442 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
18443 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
18444 * include/grub/file.h (grub_file_filter_id_t): New type.
18445 (grub_file_filter_t): Likewise.
18446 (grub_file_filters_all): New extern variable.
18447 (grub_file_filters_enabled): Likewise.
18448 (grub_file_filter_register): New inline function.
18449 (grub_file_filter_unregister): Likewise.
18450 (grub_file_filter_disable): Likewise.
18451 (grub_file_filter_disable_compression): Likewise.
18452 * include/grub/gzio.h: Removed.
18453
35ee15e0
BC
184542010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18455
18456 Filename expansion support for wildcards in GRUB script.
18457
18458 * tests/grub_script_expansion.in: New test.
18459 * Makefile.util.def: Rule for new test.
18460
18461 * grub-core/commands/wildcard.c: New file, implements filename
18462 expansion support for GRUB script.
18463 * grub-core/Makefile.core.def: Rule update for regexp.mod.
18464 * grub-core/script/argv.c: Cosmetic changes.
18465 * grub-core/script/execute.c (grub_script_arglist_to_argv):
18466 Refactored to perform wildcard expansion on arguments.
18467 * include/grub/script_sh.h (grub_script_wildcard_translator): New
18468 struct.
18469
18470 * tests/util/grub-shell.in: Fix quoting for read input.
18471
5f0c4aca
BC
184722010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18473
18474 Support for updating environment variables with matched substrings
18475 of regexp.
18476
18477 * tests/grub_cmd_regexp.in: New test.
18478 * Makefile.util.def: Rule for new test.
18479
18480 * grub-core/commands/regexp.c: New option -s to update environment
18481 variables with regexp matches.
18482
3759a35f
SJ
184832010-09-04 Szymon Janc <szymon@janc.net.pl>
18484
18485 * include/grub/file.h (grub_file): New member not_easly_seekable.
18486 (grub_file_seekable): New inline function.
18487 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
18488 easily seekable.
18489 (grub_gzio_open): Set not_easly_seekable.
18490 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
18491 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
18492
ed8c6dec
BC
184932010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18494
18495 Support for options to appear multiple times on cmdline.
18496
18497 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
18498 * grub-core/commands/extcmd.c: Support for repeatable option.
18499 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
18500 repeatable option support.
18501
18502 Refactor menuentry into a regular command.
18503
18504 * grub-core/commands/menuentry.c: New file, menuentry command
18505 implementation.
18506 * grub-core/Makefile.core.def: Rule update for normal.mod.
18507 * grub-core/normal/main.c: Moved menuentry creation to
18508 grub-core/commands/menuentry.c.
18509 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
18510 (grub_menu_execute_entry_real): Removed.
18511 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
18512 function.
18513 (grub_script_execute_menuentry): Removed.
18514 * grub-core/script/parser.y (menuentry): Removed.
18515 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
18516 * grub-core/script/yylex.l (menuentry): Removed.
18517 * include/grub/menu.h (grub_menu_init): New prototype.
18518 (grub_menu_fini): New prototype.
18519 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
18520 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
18521 (grub_script_execute_sourcecode): New prototype.
18522
dacd0cf0
BC
185232010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18524
18525 "return" command for GRUB script functions.
18526
18527 * tests/grub_script_return.in: New test.
18528 * Makefile.util.def: Rules for new test.
18529
18530 * grub-core/script/execute.c (grub_script_return): New function.
18531 * grub-core/script/main.c: Register/unregister return commaond.
18532 * include/grub/script_sh.h (grub_script_return): New prototype.
18533
52e72f9d
BC
185342010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18535
18536 "setparams" command to update positional parameters.
18537
18538 * tests/grub_script_setparams.in: New test.
18539 * Makefile.util.def: Rules for new test.
18540
18541 * grub-core/script/argv.c (grub_script_argv_make): New function.
18542 * grub-core/script/execute.c (replace_scope): New function.
18543 (grub_script_setparams): New function.
18544 * grub-core/script/lexer.c: Remove unused variables.
18545 * grub-core/script/main.c: Register/unregister setparams command.
18546 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
18547 (grub_script_setparams): New prototype.
18548
25b60c91
BC
185492010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18550
18551 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
18552 grub_free order.
18553
37e7bf68
BC
185542010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18555
18556 Support for passing block of commands as an argument to extcmds.
18557
18558 * Makefile.util.def: Rules for new test.
18559 * tests/grub_script_blockarg.in: New test.
18560 * grub-core/tests/test_blockarg.c: New file, block argument
18561 command used in the test.
18562
18563 * include/grub/extcmd.h (grub_extcmd_context): New struct.
18564 (grub_register_extcmd_prio): New function prototype.
18565 (grub_extcmd_dispatcher): New function prototype.
18566 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
18567 type.
18568 * include/grub/script_sh.h (struct grub_script): New members
18569 `children', `next_siblings' and `refcnt' for block arguments and
18570 reference counting.
18571 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
18572 (grub_script_arg): New member `script' for block argument.
18573 (grub_script_argv): New member `script' for block argument.
18574 (grub_parser_param): New member `scripts' for block argument.
18575 (grub_script_mem_free): New extern function prototype.
18576 (grub_script_ref): New function prototype.
18577 (grub_script_unref): New function prototype.
18578
18579 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
18580 extcmd form to support block arguments.
18581 * grub-core/script/argv.c: Block arguments support.
18582 * grub-core/script/execute.c: Likewise.
18583 * grub-core/script/lexer.c: Likewise.
18584 * grub-core/script/main.c: Likewise.
18585 * grub-core/script/script.c: Likewise.
18586 * grub-core/script/parser.y: Likewise. New `block' and `block0'
18587 non-terminals.
18588
18589 * grub-core/commands/acpi.c: Update extcmd implementations with
18590 grub_extcmd_context_t.
18591 * grub-core/commands/cat.c: Likewise.
18592 * grub-core/commands/echo.c: Likewise.
18593 * grub-core/commands/extcmd.c: Likewise.
18594 * grub-core/commands/hashsum.c: Likewise.
18595 * grub-core/commands/hdparm.c: Likewise.
18596 * grub-core/commands/help.c: Likewise.
18597 * grub-core/commands/hexdump.c: Likewise.
18598 * grub-core/commands/i386/cpuid.c: Likewise.
18599 * grub-core/commands/i386/pc/drivemap.c: Likewise.
18600 * grub-core/commands/i386/pc/halt.c: Likewise.
18601 * grub-core/commands/i386/pc/sendkey.c: Likewise.
18602 * grub-core/commands/iorw.c: Likewise.
18603 * grub-core/commands/keystatus.c: Likewise.
18604 * grub-core/commands/loadenv.c: Likewise.
18605 * grub-core/commands/ls.c: Likewise.
18606 * grub-core/commands/lspci.c: Likewise.
18607 * grub-core/commands/memrw.c: Likewise.
18608 * grub-core/commands/probe.c: Likewise.
18609 * grub-core/commands/search_wrap.c: Likewise.
18610 * grub-core/commands/setpci.c: Likewise.
18611 * grub-core/commands/sleep.c: Likewise.
18612 * grub-core/disk/loopback.c: Likewise.
18613 * grub-core/hello/hello.c: Likewise.
18614 * grub-core/loader/i386/bsd.c: Likewise.
18615 * grub-core/loader/xnu.c: Likewise.
18616 * grub-core/term/gfxterm.c: Likewise.
18617 * grub-core/term/serial.c: Likewise.
18618 * grub-core/tests/lib/functional_test.c: Likewise.
18619
888d1500
BC
186202010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18621
18622 Multi-line quoted strings support.
18623
18624 * grub-core/script/lexer.c (append_newline): Removed.
18625 (grub_script_lexer_yywrap): Refactored.
18626 (grub_script_lexer_init): Refactored.
18627 * grub-core/script/yylex.l (yywrap): New function.
18628 (grub_lexer_resplit): New function.
18629 (grub_lexer_unput): New function.
18630 * include/grub/script_sh.h (grub_lexer_param): New members, unput
18631 and resplit.
18632 * tests/grub_script_echo1.in: Added few more testcases.
18633
dda060dd
VS
186342010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18635
18636 * grub-core/kern/misc.c: Don't add abort alias in utils.
18637 Reported by: echoline.
18638
6556eba9
BC
186392010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
18640
18641 Add missing files into "make dist" tarball for other platforms.
18642
18643 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
18644 * conf/Makefile.common (dist_noinst_DATA): New variable.
18645 * conf/Makefile.extra-dist: Added missing make dist files.
18646 * grub-core/Makefile.core.def: Likewise.
18647
c8e7bf5f
VS
186482010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 Compress grub_prefix.
18651
18652 * grub-core/boot/i386/pc/lnxboot.S: Use
18653 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
18654 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
18655 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
18656 GRUB_MACHINE_PREFIX_END. All users updated.
18657 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
18658 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
18659 + 0x40.
18660 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
18661 * util/grub-mkimage.c (image_target_desc): Change data_end to
18662 prefix_end. All users updated.
18663
a7c00cdb
VS
186642010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
18667 value.
18668 (grub_openbsd_boot): Likewise.
18669 (grub_netbsd_boot): Likewise.
18670 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
18671 (grub_xnu_boot): Likewise.
18672
9f915872
VS
186732010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * configure.ac: Clean LIBS variable after tests.
18676
efa1bee7
CW
186772010-09-02 Colin Watson <cjwatson@ubuntu.com>
18678
18679 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
18680
61d720e5
VS
186812010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18682
18683 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
18684 echo if libdevmapper will be used.
18685
ef8e0ec8
IT
186862010-09-02 Ian Turner <Ian.Turner@deshaw.com>
18687
18688 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
18689 constant for the same file.
18690
03e261d8
VS
186912010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18692
18693 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
18694
c2a4eba6
CW
186952010-09-02 Colin Watson <cjwatson@ubuntu.com>
18696
18697 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
18698 grub-core/*.pp.
18699
9056cbf3
CW
187002010-09-02 Colin Watson <cjwatson@ubuntu.com>
18701
18702 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
18703 required by the boot protocol.
18704
18705 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
18706 ebp and edi members.
18707 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
18708 state.ebp and state.edi.
18709 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
18710 %ebp and %edi according to grub_relocator32_ebp and
18711 grub_relocator32_edi respectively.
18712 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
18713 and state.edi.
18714
529cc99a
VS
187152010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18716
18717 Add i386-pc-pxe image target.
18718
18719 * util/grub-mkimage.c (image_target_desc): New enum value
18720 IMAGE_I386_PC_PXE.
18721 (image_targets): New target i386-pc-pxe.
18722 (generate_image): Handle i386-pc-pxe image.
18723
9a093920
VS
187242010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 Fix grub_pxe_scan.
18727
18728 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
18729 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
18730 All users updated.
18731 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
18732 (grub_pxe_pxenv): Correct type.
18733
f9cefc4e
CW
187342010-09-01 Colin Watson <cjwatson@ubuntu.com>
18735
18736 * NEWS: Document most of the important changes since 1.98.
18737
4066f57f
CW
187382010-09-01 Colin Watson <cjwatson@ubuntu.com>
18739
18740 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
18741 generated manual page) a little.
18742
da2891f9
CW
187432010-09-01 Colin Watson <cjwatson@ubuntu.com>
18744
18745 * docs/grub.texi: Add myself as an author.
18746
ad717fae
VS
187472010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18748
18749 * Makefile.util.def (libgrub.a): Add missing sunpc.
18750 Reported by: Seth Goldberg.
18751
eefe8abd
VS
187522010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18753
18754 Interrupt wrapping and code simplifications.
18755
9494ef9a
VS
18756 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
18757 x86_noieee1275 which are functionaly equivalent in this case.
18758 (grub-install): Make source on each platform explicit. Enable on
18759 all noemu.
18760 * gentpl.py (x86_efi_pc): Removed group.
18761 (x86_noefi): Likewise.
18762 (i386_noefi): Likewise.
18763 (x86_noieee1275): Likewise.
18764 (i386_noieee1275): Likewise.
18765 (i386_noefi_noieee1275): Likewise.
18766 (i386_pc_qemu_coreboot): Likewise.
18767 (i386_coreboot_multiboot): Likewise.
18768 (i386_pc_coreboot_multiboot_qemu): Likewise.
18769 (x86_noefi_mips): Likewise.
18770 (noieee1275): Likewise.
18771 (ieee1275_mips): Likewise.
18772 (noemu_noieee1275): Likewise.
18773 (cmos): New group.
18774 (usb): Likewise.
18775 (videoinkernel): Likewise.
18776 (videomodules): Likewise.
eefe8abd 18777 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
18778 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
18779 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
18780 include/grub/loader.h, include/grub/msdos_partition.h,
18781 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
18782 include/grub/machine/console.h, include/grub/machine/vga.h,
18783 include/grub/machine/vbe.h, include/grub/machine/init.h,
18784 include/grub/machine/kernel.h, include/grub/cpu/time.h,
18785 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 18786 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
18787 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
18788 * grub-core/Makefile.core.def (kernel): Explicit the source for
18789 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
18790 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
18791 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
18792 Use videoinkernel tag.
18793 (usb): Enable on all usb.
18794 (usbserial_common): Likewise.
18795 (usbserial_pl2303): Likewise.
18796 (usbserial_ftdi): Likewise.
18797 (uhci): Enable on all x86.
18798 (ohci): Enable on all pci.
18799 (cmostest): Enable on all CMOS.
18800 (acpi): Include commands/acpi.c on all platforms.
18801 (halt): Add relevant lib/*/halt.c.
18802 (hdparm): Enable on all pci.
18803 (lspci): Likewise.
18804 (usbtest): Enable on all usb.
18805 (ata): Enable on all pci.
18806 (ata_pthru): Likewise.
18807 (usbms): Enable on all usb.
18808 (usb_keyboard): Likewise.
18809 (font): Use tag videomodules.
18810 (bufio): Likewise.
18811 (datetime): Use tag cmos. Enable on all noemu.
18812 (mmap): Use tags common and x86.
18813 (gfxterm): Use tag videomodules.
18814 (bitmap): Likewise.
18815 (bitmap_scale): Likewise.
18816 (video_fb): Likewise.
18817 (video): Likewise.
18818 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18819 adjust padding accordingly. All users updated.
18820 (grub_ohci_transaction): Fix bad format specification.
18821 (GRUB_MOD_INIT): Add asserts for struct size.
18822 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18823 (grub_alloc_td): Likewise.
18824 (grub_free_queue): Likewise.
18825 (grub_uhci_transfer): Likewise.
18826 (grub_uhci_transaction): Fix bad format specification.
18827 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18828 (grub_usb_bulk_readwrite): Likewise.
18829 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18830 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18831 Made static.
18832 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18833 Made static.
18834 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18835 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18836 Transformed into C.
18837 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18838 Moved from here ...
18839 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18840 ... here. Transformed into C. Made static.
18841 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18842 Moved from here ...
18843 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18844 ... here. Transformed into C. Made static.
18845 * grub-core/kern/i386/pc/startup.S
18846 (grub_biosdisk_check_int13_extensions): Moved from here ...
18847 * grub-core/disk/i386/pc/biosdisk.c
18848 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
18849 Made static.
18850 * grub-core/kern/i386/pc/startup.S
18851 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
18852 * grub-core/disk/i386/pc/biosdisk.c
18853 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
18854 Transformed into C. Made static.
18855 * grub-core/kern/i386/pc/startup.S
18856 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
18857 * grub-core/disk/i386/pc/biosdisk.c
18858 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
18859 Transformed into C. Made static.
18860 * grub-core/kern/i386/pc/startup.S
18861 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18862 * grub-core/disk/i386/pc/biosdisk.c
18863 (grub_biosdisk_get_diskinfo_standard): ... here.
18864 Transformed into C. Made static.
18865 * grub-core/kern/i386/pc/startup.S
18866 (grub_biosdisk_get_num_floppies): Moved from here ...
18867 * grub-core/disk/i386/pc/biosdisk.c
18868 (grub_biosdisk_get_num_floppies): ... here.
18869 Transformed into C. Made static.
18870 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18871 New function.
18872 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18873 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18874 Transformed into C. Made static.
18875 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18876 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18877 Transformed into C. Made static.
18878 * grub-core/kern/i386/ieee1275/init.c: Removed.
18879 * grub-core/kern/i386/misc.S: Likewise.
18880 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18881 Splitted from here ...
18882 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18883 Transformed into C. Made static. All users updated.
18884 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18885 Transformed into C. Made static. All users updated.
18886 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18887 Moved from here...
18888 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18889 Transformed into C. Made static. All users updated.
18890 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18891 Moved from here...
18892 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18893 Transformed into C. Made static. All users updated.
18894 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18895 Removed (replaced by C version).
18896 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18897 Moved from here...
18898 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18899 Transformed into C. Made static.
18900 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18901 Moved from here...
18902 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18903 ... here. Transformed into C.
18904 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18905 Moved from here...
18906 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18907 ... here. Transformed into C.
18908 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18909 Moved from here...
18910 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18911 ... here. Transformed into C. Made static.
18912 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18913 Moved from here...
18914 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18915 ... here. Transformed into C.
21ed554b
VS
18916 * grub-core/kern/i386/pc/startup.S
18917 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18918 * grub-core/video/i386/pc/vbe.c
18919 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18920 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18921 Moved from here...
18922 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18923 ... here. Transformed into C.
18924 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18925 Moved from here...
18926 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18927 ... here. Transformed into C.
18928 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18929 Moved from here...
18930 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18931 ... here. Transformed into C.
18932 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18933 Moved from here...
18934 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18935 ... here. Transformed into C.
18936 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18937 Moved from here...
18938 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18939 ... here. Transformed into C. Made static.
18940 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18941 Moved from here...
18942 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18943 ... here. Transformed into C. Made static.
18944 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18945 Moved from here...
18946 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18947 ... here. Transformed into C. Made static.
18948 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18949 pxe_rm_entry as third argument.
18950 (grub_bios_interrupt): New function.
18951 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18952 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18953 of calling grub_stop.
18954 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18955 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18956 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18957 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18958 * grub-core/lib/i386/halt.c: Moved from here ...
18959 * grub-core/lib/i386/halt.c: ... here.
18960 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18961 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18962 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18963 grub_stop_floppy.
18964 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18965 * include/grub/i386/coreboot/init.h: Removed.
18966 * include/grub/i386/multiboot/init.h: Likewise.
18967 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18968 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18969 * include/grub/i386/pc/int.h: New file.
18970 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18971 (grub_pxe_scan): Removed.
18972 (grub_pxe_call): Update prototype.
18973 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18974 prototypes.
18975 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18976 * include/grub/i386/qemu/init.h: Removed.
18977 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18978 noreturn.
18979 (grub_halt): Likewise.
18980 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18981 (grub_reboot): Likewise.
18982 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
18983 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
18984 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
18985
215dd471
RM
189862010-08-30 Robert Millan <rmh@gnu.org>
18987
18988 * NEWS: Document addition of ZFS support in `grub-install' and
18989 `grub-mkconfig'.
18990
ebd65b82
BC
189912010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
18992
18993 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
18994 dprintf output.
18995
11721d19
VS
189962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 Remove leftover embedding of font objects.
18999
19000 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19001 * util/grub-install.in (font): Removed.
19002 * util/grub-mkimage.c (generate_image): Remove font support. All users
19003 updated.
19004
37837d4e
VS
190052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19006
19007 Remove leftover embedding of font objects.
19008
19009 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19010 * util/grub-install.in (font): Removed.
19011 * util/grub-mkimage.c (generate_image): Remove font support. All users
19012 updated.
19013
b4c1aae0
VS
190142010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19015
19016 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 19017 Reported by: Ian Turner
b4c1aae0 19018
8920a08d
VS
190192010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19020
19021 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19022 timeout to avoid indefinite boot stalling.
19023
f21db033
VS
190242010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19025
19026 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19027 (grub_env_write_color_highlight): Likewise.
19028
9a9de209
VS
190292010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * grub-core/normal/term.c (print_more): Return to normal and not
19032 to standard state after printing "---MORE---".
19033
3dca01d7
VS
190342010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19035
19036 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19037 Mask out the bit 0x80 since it has other meaning that specifiing color.
19038
0b986c40
VS
190392010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 New relocator. Allows for more kernel support and more straightforward
19042 loader writing.
19043
19044 * Makefile.am (BOOTTARGET): New variable.
19045 (QEMU32): Likewise.
19046 (linux.init.x86_64): New target.
19047 (linux.init.i386): Likewise.
19048 (multiboot.elf): Likewise.
19049 (kfreebsd.elf): Likewise.
19050 (kfreebsd.aout): Likewise.
19051 (pc-chainloader.elf): Likewise.
19052 (pc-chainloader.bin): Likewise.
19053 (ntldr.elf): Likewise.
19054 (ntldr.bin): Likewise.
19055 (multiboot2.elf): Likewise.
19056 (kfreebsd.init.x86_64): Likewise.
19057 (kfreebsd.init.i386): Likewise.
19058 (knetbsd.init.i386): Likewise.
19059 (kopenbsd.init.i386): Likewise.
19060 (knetbsd.init.x86_64): Likewise.
19061 (kopenbsd.init.x86_64): Likewise.
19062 (linux-initramfs.i386): Likewise.
19063 (linux-initramfs.x86_64): Likewise.
19064 (kfreebsd-mfsroot.i386.img): Likewise.
19065 (knetbsd.image.i386): Likewise.
19066 (kopenbsd.image.i386): Likewise.
19067 (kopenbsd.image.x86_64): Likewise.
19068 (knetbsd.miniroot-image.i386.img): Likewise.
19069 (kfreebsd-mfsroot.x86_64.img): Likewise.
19070 (knetbsd.image.x86_64): Likewise.
19071 (knetbsd.miniroot-image.x86_64.img): Likewise.
19072 (kfreebsd-mfsroot.i386.gz): Likewise.
19073 (bootcheck-kfreebsd-i386): Likewise.
19074 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19075 (bootcheck-kfreebsd-x86_64): Likewise.
19076 (knetbsd.miniroot-image.i386.gz): Likewise.
19077 (bootcheck-knetbsd-i386): Likewise.
19078 (bootcheck-kopenbsd-i386): Likewise.
19079 (bootcheck-kopenbsd-x86_64): Likewise.
19080 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19081 (bootcheck-knetbsd-x86_64): Likewise.
19082 (bootcheck-linux-i386): Likewise.
19083 (bootcheck-linux-x86_64): Likewise.
19084 (bootcheck-linux16-i386): Likewise.
19085 (bootcheck-linux16-x86_64): Likewise.
19086 (bootcheck-multiboot): Likewise.
19087 (bootcheck-multiboot2): Likewise.
19088 (bootcheck-kfreebsd-aout): Likewise.
19089 (bootcheck-pc-chainloader): Likewise.
19090 (bootcheck-ntldr): Likewise.
19091 (CLEANFILES): Add new targets.
19092 (BOOTCHECKS): New variable.
19093 (.PHONY): Add bootchecks.
19094 (SUCCESSFUL_BOOT_STRING): New variable.
19095 (BOOTCHECK_TIMEOUT): Likewise.
19096 (bootcheck): New target
19097 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19098 * configure.ac: Correct efiemu excuse.
19099 * docs/grub.texi (Supported kernels): New chapter.
19100 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19101 include/grub/mm_private.h. Simplify inclusion of
19102 include/grub/boot.h, include/grub/loader.h
19103 and include/grub/msdos_partition.h
19104 (KERNEL_HEADER_FILES) [i386_coreboot]:
19105 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19106 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19107 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19108 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19109 include/grub/machine/loader.h.
19110 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19111 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19112 extra_dist.
19113 (pci.mod): Enable on i386-multiboot.
19114 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19115 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19116 i386-qemu.
19117 (relocator.mod): Rewritten.
19118 (aout.mod): Enable on all x86.
19119 (bsd.mod): Likewise.
19120 (ntldr.mod): New module.
19121 (linux.mod): Use loader/i386/linux.c on all x86.
19122 (xnu.mod): Enable on all x86.
19123 (vga_text.mod): disable on EFI and QEMU.
19124 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19125 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19126 * grub-core/efiemu/loadcore.c: Likewise.
19127 * grub-core/efiemu/main.c: Likewise.
19128 (grub_efiemu_exit_boot_services): Removed.
19129 (grub_efiemu_finish_boot_services): Likewise.
19130 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19131 function.
19132 * grub-core/efiemu/i386/nocfgtables.c: New file.
19133 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19134 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19135 (grub_efi_finish_boot_services): Moved from here ...
19136 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19137 Fille finish memory map and related data.
19138 (finish_mmap_buf): New variable.
19139 (grub_efi_uintn_t finish_mmap_size): Likewise.
19140 (grub_efi_uintn_t finish_key): Likewise.
19141 (grub_efi_uintn_t finish_desc_size): Likewise.
19142 (grub_efi_uint32_t finish_desc_version): Likewise.
19143 (grub_efi_is_finished): Likewise.
19144 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19145 finished.
19146 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19147 (grub_elf64_phdr_iterate): Likewise.
19148 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19149 (grub_os_area_size): Likewise.
19150 (grub_machine_init): Don't reserve os area.
19151 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19152 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19153 * grub-core/kern/i386/loader.S: Removed.
19154 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19155 (grub_os_area_size): Likewise.
19156 (grub_machine_init): Don't reserve os area.
19157 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19158 Don't call grub_dl_unload_all.
19159 Don't include loader.S.
19160 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19161 Declare the memory after _end as available.
19162 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 19163 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 19164 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
19165 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19166 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19167 * include/grub/mm_private.h (grub_mm_header): ... here.
19168 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19169 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
19170 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19171 (grub_mm_region): ..here. Removed addr. Added pre_size.
19172 All users updated.
19173 * grub-core/kern/mm.c (base): Renamed to ...
19174 (grub_mm_base): ... this. Made global.
19175 (grub_real_malloc): Alloc from end of region.
19176 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19177 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19178 * grub-core/kern/powerpc/cache_flush.S: ... here.
19179 * grub-core/lib/efi/relocator.c: New file.
19180 * grub-core/lib/i386/relocator.c: Rewritten.
19181 * grub-core/lib/i386/relocator16.S: New file.
19182 * grub-core/lib/i386/relocator32.S: Likewise.
19183 * grub-core/lib/i386/relocator64.S: Likewise.
19184 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19185 * grub-core/lib/i386/relocator_common.S: New file.
19186 * grub-core/lib/ieee1275/relocator.c: Likewise.
19187 * grub-core/lib/mips/relocator.c: Rewritten.
19188 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19189 stylistic adjustments.
19190 * grub-core/lib/powerpc/relocator.c: New file.
19191 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19192 * grub-core/lib/relocator.c: Rewritten.
19193 * grub-core/lib/x86_64/relocator_asm.S: New file.
19194 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19195 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19196 (bsd_tag): New struct.
19197 (tags): New variable.
19198 (tags_last): Likewise.
19199 (netbsd_module): New struct.
19200 (netbsd_mods): New variable.
19201 (netbsd_mods_last): Likewise.
19202 (openbsd_opts): New parameter "serial".
19203 (OPENBSD_SERIAL_ARG): New definition.
19204 (netbsd_opts): New parameter "serial".
19205 (NETBSD_SERIAL_ARG): New definition.
19206 (grub_freebsd_add_meta): Reorganised into ...
19207 (grub_bsd_add_meta): ...this. All users updated.
19208 (grub_freebsd_add_mmap): Reorganised into ...
19209 (generate_e820_mmap): ...this...
19210 (grub_bsd_add_mmap): ...and this. All users updated.
19211 (grub_freebsd_list_modules): Use tags.
19212 (grub_netbsd_add_meta_module): New function.
19213 (grub_netbsd_list_modules): Likewise.
19214 (grub_freebsd_boot): Use relocator and finish EFI.
19215 (grub_openbsd_boot): Likewise.
19216 (grub_netbsd_setup_video): New function.
19217 (grub_netbsd_add_modules): Likewise.
19218 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19219 and finish EFI.
19220 (grub_bsd_unload): Unload tags.
19221 (grub_bsd_load_aout): Use relocator.
19222 (grub_bsd_elf32_size_hook): New function.
19223 (grub_bsd_elf32_hook): Use relocator.
19224 (grub_bsd_elf64_size_hook): New function.
19225 (grub_bsd_elf64_hook): Use relocator.
19226 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19227 (grub_bsd_load): Zero-out openbsd_ramdisk.
19228 (grub_bsd_load): Use relocator.
19229 (grub_cmd_openbsd): Support serial.
19230 (grub_cmd_netbsd): Support modules.
19231 (grub_cmd_freebsd_module): Use relocator.
19232 (grub_netbsd_module_load): New function.
19233 (grub_cmd_netbsd_module): Likewise.
19234 (grub_cmd_openbsd_ramdisk): Likewise.
19235 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19236 kopenbsd_ramdisk.
19237 (GRUB_MOD_FINI): Unregister new commands.
19238 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19239 (grub_freebsd_load_elfmodule_obj): Use relocator.
19240 (grub_freebsd_load_elfmodule): Likewise.
19241 (grub_freebsd_load_elf_meta): Likewise.
19242 (grub_netbsd_load_elf_meta): New function.
19243 (grub_openbsd_find_ramdisk): Likewise.
19244 * grub-core/loader/i386/bsd_helper.S: Removed.
19245 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19246 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19247 * grub-core/loader/i386/efi/linux.c: Likewise.
19248 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19249 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19250 (DEFAULT_VIDEO_MODE): Likewise.
19251 (real_mode_target): New variable.
19252 (prot_mode_target): Likewise.
19253 (initrd_mem_target): Likewise.
19254 (relocator): Likewise.
19255 (efi_mmap_buf): Likewise.
19256 (efi_mmap_size): Likewise.
19257 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19258 (free_pages): Use relocator.
19259 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19260 (grub_linux_setup_video): Return error.
19261 (grub_linux_trampoline_start): Removed.
19262 (grub_linux_trampoline_end): Likewise.
19263 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19264 andd video parameters depending on firmware.
19265 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19266 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19267 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19268 (grub_cmd_initrd): Use relocator.
19269 * grub-core/loader/i386/linux_trampoline.S: Removed.
19270 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19271 (elf_sec_entsize): Likewise.
19272 (elf_sec_shstrndx): Likewise.
19273 (elf_sections): Likewise.
19274 (grub_multiboot_load): Use relocator.
19275 (grub_multiboot_get_mbi_size): Account for sections.
19276 (grub_multiboot_make_mbi): Use relocator and support sections.
19277 (grub_multiboot_add_elfsyms): New function.
19278 (grub_multiboot_free_mbi): Free sections.
19279 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19280 (grub_linux_real_target): Likewise.
19281 (grub_linux_real_chunk): Likewise.
19282 (grub_linux16_prot_size): Likewise.
19283 (grub_linux16_boot): Use relocator.
19284 (grub_linux_unload): Unload relocator.
19285 (grub_cmd_linux): Use relocator.
19286 (grub_cmd_initrd): Likewise.
19287 * grub-core/loader/i386/pc/ntldr.c: New file.
19288 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
19289 Don't try to guess CPU frequency.
19290 (grub_xnu_set_video): Stretch bitmap.
19291 (grub_xnu_boot): Use relocator.
19292 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
19293 (grub_linux_unload): Free relocator.
19294 (grub_linux_load32): Use relocator.
19295 (grub_linux_load64): Likewise.
19296 (grub_cmd_initrd): Likewise.
19297 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
19298 (grub_multiboot_unload): Unload relocator.
19299 (grub_cmd_multiboot): Use relocator.
19300 (grub_cmd_module): Likewise.
19301 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
19302 Use relocator and support sections.
19303 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
19304 (elf_sec_entsize): Likewise.
19305 (elf_sec_shstrndx): Likewise.
19306 (elf_sections): Likewise.
19307 (grub_multiboot_load): Use relocator.
19308 (grub_multiboot_get_mbi_size): Account for sections.
19309 (grub_multiboot_make_mbi): Use relocator and support sections.
19310 (grub_multiboot_add_elfsyms): New function.
19311 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
19312 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
19313 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
19314 Prototype changed. All users updated.
19315 (grub_xnu_align_heap): Simplified.
19316 (grub_xnu_writetree_toheap): Likewise.
19317 (grub_xnu_unload): Unload relocator.
19318 (grub_cmd_xnu_kernel): Use relocator.
19319 (grub_cmd_xnu_kernel64): Likewise.
19320 (grub_xnu_register_memory): Simplified.
19321 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
19322 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
19323 EFI is finished.
19324 (grub_console_checkkey): Likewise.
19325 (grub_console_getkey): Likewise.
19326 (grub_console_getwh): Likewise.
19327 (grub_console_getxy): Likewise.
19328 (grub_console_gotoxy): Likewise.
19329 (grub_console_cls): Likewise.
19330 (grub_console_setcolorstate): Likewise.
19331 (grub_console_setcursor): Likewise.
19332 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
19333 * grub-core/tests/boot/kbsd.init-i386.S: New file.
19334 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
19335 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
19336 * grub-core/tests/boot/kernel-8086.S: Likewise.
19337 * grub-core/tests/boot/kernel-i386.S: Likewise.
19338 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
19339 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
19340 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
19341 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
19342 * grub-core/tests/boot/knetbsd.cfg: Likewise.
19343 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
19344 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
19345 * grub-core/tests/boot/linux.cfg: Likewise.
19346 * grub-core/tests/boot/linux.init-i386.S: Likewise.
19347 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
19348 * grub-core/tests/boot/linux16.cfg: Likewise.
19349 * grub-core/tests/boot/multiboot.cfg: Likewise.
19350 * grub-core/tests/boot/multiboot2.cfg: Likewise.
19351 * grub-core/tests/boot/ntldr.cfg: Likewise.
19352 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
19353 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
19354 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
19355 New definition.
19356 * include/grub/dl.h (grub_dl_unload_all): Removed.
19357 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
19358 (grub_efi_finish_boot_services): Change prototype.
19359 (grub_efi_is_finished): New variable.
19360 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
19361 Changed prototype.
19362 (grub_efiemu_finish_boot_services): Removed.
19363 (grub_machine_efiemu_init_tables): New prototype.
19364 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
19365 (grub_elf64_phdr_iterate): Likewise.
19366 * include/grub/i386/bsd.h: Include relocator.h.
19367 (freebsd_tag_header): New struct.
19368 (grub_openbsd_bios_mmap): Removed.
19369 (grub_unix_real_boot): Removed.
19370 (grub_freebsd_load_elfmodule32): Changed prototype.
19371 (grub_freebsd_load_elfmodule_obj64): Likewise.
19372 (grub_freebsd_load_elf_meta32): Likewise.
19373 (grub_freebsd_load_elf_meta64): Likewise.
19374 (grub_freebsd_add_meta): Removed.
19375 (grub_netbsd_load_elf_meta32): New prototype.
19376 (grub_netbsd_load_elf_meta64): Likewise.
19377 (grub_bsd_add_meta): Likewise.
19378 (grub_openbsd_ramdisk_descriptor): New struct.
19379 (grub_openbsd_find_ramdisk32): New prototype.
19380 (grub_openbsd_find_ramdisk64): Likewise.
19381 * include/grub/i386/coreboot/loader.h: Removed.
19382 * include/grub/i386/efi/loader.h: Likewise.
19383 * include/grub/i386/ieee1275/loader.h: Likewise.
19384 * include/grub/i386/linux.h (linux_kernel_header): Change void *
19385 to grub_uint32_t.
19386 * include/grub/i386/loader.h: Removed.
19387 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
19388 value.
19389 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
19390 (grub_phys_addr_t): New type.
19391 (grub_vtop): New inline function.
19392 (grub_map_memory): Likewise.
19393 (grub_unmap_memory): Likewise.
19394 * include/grub/i386/multiboot/loader.h: Removed.
19395 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
19396 (NETBSD_BTINFO_CONSOLE): New definition.
19397 (NETBSD_BTINFO_SYMTAB): Likewise.
19398 (NETBSD_BTINFO_MODULES): Likewise.
19399 (NETBSD_BTINFO_FRAMEBUF): Likewise.
19400 (grub_netbsd_bootinfo): New struct.
19401 (grub_netbsd_btinfo_common): Use explicit bitsize.
19402 (grub_netbsd_btinfo_mmap_entry): Removed.
19403 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
19404 (grub_netbsd_btinfo_bootdisk): New struct.
19405 (grub_netbsd_btinfo_symtab): Likewise.
19406 (grub_netbsd_btinfo_serial): Likewise.
19407 (grub_netbsd_btinfo_modules): Likewise.
19408 (grub_netbsd_btinfo_framebuf): Likewise.
19409 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
19410 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
19411 Likewise.
19412 (grub_openbsd_bootargs): Use explicit bitsize.
19413 (grub_openbsd_bootarg_console): New struct.
19414 (GRUB_OPENBSD_COM_MAJOR): New definition.
19415 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
19416 * include/grub/i386/pc/efiemu.h: Removed.
19417 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
19418 * include/grub/i386/qemu/loader.h: Removed.
19419 * include/grub/i386/relocator.h: Rewritten.
19420 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
19421 * include/grub/mips/memory.h: New file.
19422 * include/grub/mips/multiboot.h: Rewritten.
19423 * include/grub/mips/relocator.h: Rewritten.
19424 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
19425 (grub_vtop): New function.
19426 (grub_map_memory): Likewise.
19427 (grub_unmap_memory): Likewise.
19428 * include/grub/misc.h (ALIGN_DOWN): New definition.
19429 * include/grub/mm.h (grub_mm_check_real): New proto.
19430 (GRUB_MM_CHECK): New definition.
19431 * include/grub/mm_private.h: New file.
19432 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
19433 (grub_multiboot_get_mbi_size): Removed.
19434 (grub_multiboot_make_mbi): Change prottype.
19435 (grub_multiboot_set_accepts_video): New proto.
19436 (grub_multiboot_add_elfsyms): Likewise.
19437 (grub_multiboot_payload_eip): New variable.
19438 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
19439 New prototype.
19440 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
19441 New definition.
19442 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
19443 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
19444 * include/grub/powerpc/ieee1275/loader.h: Removed.
19445 * include/grub/powerpc/memory.h: New file.
19446 * include/grub/powerpc/relocator.h: Likewise.
19447 * include/grub/relocator.h: Likewise.
19448 * include/grub/relocator_private.h: Likewise.
19449 * include/grub/sparc64/ieee1275/loader.h: Removed.
19450 * include/grub/x86_64/memory.h: New file.
19451 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
19452 (grub_xnu_heap_malloc): Likewise.
19453 (grub_xnu_heap_real_start): Removed.
19454 (grub_xnu_heap_start): Likewise.
19455 (grub_xnu_relocator): New variable.
19456 (grub_xnu_heap_target_start): Likewise.
19457 * tests/util/grub-shell.in: Support non-pc.
19458 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 19459
5303b85d
VS
194602010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19461
19462 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
19463 on malloc error.
19464 (grub_bidi_logical_to_visual): Check that malloc succeded.
19465 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
19466 puts.
19467 (grub_xputs_normal): Likewise.
19468
d768d159
VS
194692010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19470
19471 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
19472 extra_dist.
19473
194742010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19475
19476 * grub-core/efiemu/runtime/efiemu.sh: Removed.
19477
5bf84df4
VS
194782010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19479
19480 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
19481
3626810e
VS
194822010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19483
19484 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
19485 dprintf.
19486
a7363f53
BC
194872010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
19488
19489 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
19490
902f75f6
VS
194912010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * grub-core/normal/term.c (print_more): Fix a memory leak.
19494 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
19495 (grub_xputs_normal): Likewise.
19496
3c707967
VS
194972010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19498
19499 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
19500 the begining of the string
19501
2053cc07
VS
195022010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19503
19504 * grub-core/script/script.c (grub_script_parse): Free parsed on
19505 failure.
19506
46422ebf
VS
195072010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19508
19509 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
19510 on failure.
19511
9e0fa3f6
VS
195122010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19513
19514 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
19515 return.
19516
3393cf16
VS
195172010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19518
19519 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
19520 (scroll_up): Fix a memory leak.
19521
b17540cb
VS
195222010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19523
19524 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
19525 errors.
19526
67140446
VS
195272010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 Handle USB pendrives exposed as floppies.
19530
19531 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
19532 floppy.
19533 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19534 Check for partitions on all devices.
19535
e35e46fc
VS
195362010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19537
19538 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
19539 (readkey): Likewise.
19540
d24c6190
BC
195412010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
19542
19543 Multiple variable names support to "export" command.
19544
19545 * normal/context.c (grub_cmd_export): "export" command supports
19546 multiple variable names.
19547
04ddcc6a
ST
195482010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
19549
19550 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
19551 --target=drive output to Mach device name.
19552
0c8b61d8
BC
195532010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19554
19555 New Automake based build system for GRUB.
19556
19557 * ABOUT-NLS: New file.
19558 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
19559 in Makefile.util.def file.
19560 * Makefile.util.def: New file. Autogen build definitions file for
19561 GRUB host utils.
19562 * conf/Makefile.common: New file. Common variables for GRUB host
19563 utils and target modules.
19564 * conf/Makefile.extra-dist: New file. Extra files for make dist.
19565 * docs/Makefile.am: New file. Automake file for docs.
19566 * gentpl.py: New file. Python script to generate Autogen
19567 template.
19568 * grub-core/Makefile.am: New file. GRUB target modules' rules
19569 that doesn't fit in Makefile.core.def file.
19570 * grub-core/Makefile.core.def: New file. Autogen build
19571 definitions file for GRUB target modules.
19572 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
19573 specific setjmp.S file.
19574 * po/Makefile.am: New file.
19575
19576 * .bzrignore: New ignores.
19577 * INSTALL: New requirements, without Ruby.
19578 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
19579 * autogen.sh: Updated to invoke autogen as necessary.
19580 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
19581 and defines for Automake conditionals.
19582 * geninit.sh: Refactoring.
19583
19584 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
19585 necessary.
19586 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
19587 New prototype.
19588
19589 * include/grub/test.h: Fix functional test modules' naming.
19590 * grub-core/tests/example_functional_test.c: Fix test module name.
19591
19592 * util/misc.c: Hosted versions' of grub functions for libgrub.a
19593 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
19594 * util/grub-editenv.c: Likewise.
19595 * util/grub-fstest.c: Likewise.
19596 * util/grub-mkdevicemap.c: Likewise.
19597 * util/grub-mkfont.c: Likewise.
19598 * util/grub-mkimage.c: Likewise.
19599 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19600 * util/grub-probe.c: Likewise.
19601 * util/grub-script-check.c: Likewise.
19602 * util/i386/pc/grub-setup.c: Likewise.
19603 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19604
19605 * tests/util/grub-shell.in: Fix override directory path.
19606 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
19607 * util/import_gcry.py: Create Makefile.gcry.def file instead.
19608
19609 * util/lvm.c: Update #includes.
19610 * util/raid.c: Likewise.
19611 * util/resolve.c: Likewise.
19612 * grub-core/bus/emu/pci.c: Likewise.
19613 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
19614 * grub-core/lib/posix_wrap/string.h: Likewise.
19615 * grub-core/kern/emu/main.c: Likewise.
19616
19617 * grub-core/gensymlist.sh: New file. Script for generating kernel
19618 symbols file.
19619 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
19620
19621 * grub-core/gentrigtables.c: Fix unused variable warnings.
19622
19623 * Makefile.in: Removed.
19624 * conf/any-emu.rmk: Removed.
19625 * conf/common.rmk: Removed.
19626 * conf/i386-coreboot.rmk: Removed.
19627 * conf/i386-efi.rmk: Removed.
19628 * conf/i386-ieee1275.rmk: Removed.
19629 * conf/i386-multiboot.rmk: Removed.
19630 * conf/i386-pc.rmk: Removed.
19631 * conf/i386-qemu.rmk: Removed.
19632 * conf/i386.rmk: Removed.
19633 * conf/mips-yeeloong.rmk: Removed.
19634 * conf/mips.rmk: Removed.
19635 * conf/powerpc-ieee1275.rmk: Removed.
19636 * conf/sparc64-ieee1275.rmk: Removed.
19637 * conf/tests.rmk: Removed.
19638 * conf/x86-efi.rmk: Removed.
19639 * conf/x86_64-efi.rmk: Removed.
19640 * gendistlist.sh: Removed.
19641 * geninitheader.sh: Removed.
19642 * genkernsyms.sh.in: Removed.
19643 * genmk.rb: Removed.
19644 * gensymlist.sh.in: Removed.
19645 * mkinstalldirs: Removed.
19646 * boot: Moved ...
19647 * grub-core/boot: ... to here.
19648 * bus: Moved ...
19649 * grub-core/bus: ... to here.
19650 * commands: Moved ...
19651 * grub-core/commands: ... to here.
19652 * disk: Moved ...
19653 * grub-core/disk: ... to here.
19654 * efiemu: Moved ...
19655 * grub-core/efiemu: ... to here.
19656 * font: Moved ...
19657 * grub-core/font: ... to here.
19658 * fs: Moved ...
19659 * grub-core/fs: ... to here.
19660 * gencmdlist.sh: Moved ...
19661 * grub-core/gencmdlist.sh: ... to here.
19662 * genemuinit.sh: Moved ...
19663 * grub-core/genemuinit.sh: ... to here.
19664 * genemuinitheader.sh: Moved ...
19665 * grub-core/genemuinitheader.sh: ... to here.
19666 * genfslist.sh: Moved ...
19667 * grub-core/genfslist.sh: ... to here.
19668 * genhandlerlist.sh: Moved ...
19669 * grub-core/genhandlerlist.sh: ... to here.
19670 * genmoddep.awk: Moved ...
19671 * grub-core/genmoddep.awk: ... to here.
19672 * genmodsrc.sh: Moved ...
19673 * grub-core/genmodsrc.sh: ... to here.
19674 * genpartmaplist.sh: Moved ...
19675 * grub-core/genpartmaplist.sh: ... to here.
19676 * genparttoollist.sh: Moved ...
19677 * grub-core/genparttoollist.sh: ... to here.
19678 * genterminallist.sh: Moved ...
19679 * grub-core/genterminallist.sh: ... to here.
19680 * gentrigtables.c: Moved ...
19681 * grub-core/gentrigtables.c: ... to here.
19682 * genvideolist.sh: Moved ...
19683 * grub-core/genvideolist.sh: ... to here.
19684 * gettext: Moved ...
19685 * grub-core/gettext: ... to here.
19686 * gfxmenu: Moved ...
19687 * grub-core/gfxmenu: ... to here.
19688 * gnulib: Moved ...
19689 * grub-core/gnulib: ... to here.
19690 * hello: Moved ...
19691 * grub-core/hello: ... to here.
19692 * hook: Moved ...
19693 * grub-core/hook: ... to here.
19694 * io: Moved ...
19695 * grub-core/io: ... to here.
19696 * kern: Moved ...
19697 * grub-core/kern: ... to here.
19698 * lib: Moved ...
19699 * grub-core/lib: ... to here.
19700 * loader: Moved ...
19701 * grub-core/loader: ... to here.
19702 * mmap: Moved ...
19703 * grub-core/mmap: ... to here.
19704 * normal: Moved ...
19705 * grub-core/normal: ... to here.
19706 * partmap: Moved ...
19707 * grub-core/partmap: ... to here.
19708 * parttool: Moved ...
19709 * grub-core/parttool: ... to here.
19710 * script: Moved ...
19711 * grub-core/script: ... to here.
19712 * term: Moved ...
19713 * grub-core/term: ... to here
19714 * tests/example_functional_test.c: Moved ...
19715 * grub-core/tests/example_functional_test.c: ... to here.
19716 * tests/lib/functional_test.c: Moved ...
19717 * grub-core/tests/lib/functional_test.c: ... to here.
19718 * tests/lib/test.c: Moved ...
19719 * grub-core/tests/lib/test.c: ... to here.
19720 * video: Moved ...
19721 * grub-core/video: ... to here.
19722
645586e6
BC
197232010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19724
19725 Replace --enable-grub-emu-modules with grub-emu-lite.
19726
19727 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
19728 cache.S.
19729
19730 * include/grub/emu/misc.h (grub_emu_init): New prototype.
19731 * kern/emu/full.c: New file. For grub-emu specific initialization.
19732 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
19733 * kern/emu/main.c: Call initialization function grub_emu_init.
19734
19735 * Makefile.in: Include grub-emu-lite in install.
19736 * commands/parttool.c: Use grub_no_autoload to differentiate
19737 between grub-emu and grub-emu-lite.
19738 * include/grub/misc.h: New variable grub_no_autoload.
19739
19740 * conf/any-emu.rmk: New rules for grub-emu-lite.
19741 * configure.ac: Remove --enable-grub-emu-modules.
19742 * genmk.rb: Cleanup unnecessary rules.
19743 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
19744
19745 * normal/main.c: Don't load list files on grub-emu-lite.
19746 * util/misc.c (grub_arch_sync_caches): Removed.
19747
f86a4030
CW
197482010-08-23 Colin Watson <cjwatson@ubuntu.com>
19749
19750 * kern/mips/startup.S (grub_prefix): Update comment to refer to
19751 grub-mkimage rather than grub-mkelfimage.
19752 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
19753
06776944
VS
197542010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19755
19756 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
19757 a key after CapsLock or NumLock. It's just a qemu bug.
19758
df262419
VS
197592010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19760
19761 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
19762 needed by libusb wrapper.
19763
b40ea81b
ST
197642010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19765
19766 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
19767
dee50575
VS
197682010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19769
19770 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
19771 --nounzip is passed.
19772
fb1d7b79
VS
197732010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
19774
19775 USB hotunplugging and USB serial support.
19776
19777 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
19778 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
19779 (grub_uhci_transfer): Respect timeout and set *actual.
19780 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
19781 non-standard length.
19782 (grub_usb_device_attach): Autoload modules.
19783 (GRUB_MOD_INIT): Set grub_term_poll_usb.
19784 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
19785 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
19786 users updated.
19787 (grub_usb_add_hub): Fill nports and children.
19788 (attach_root_port): Receive hub instead of controller.
19789 All users updated. Fill hub->devices.
19790 (grub_usb_root_hub): Allocate hub->devices.
19791 (detach_device): New function.
19792 (poll_nonroot_hub): Fill children and detach devices.
19793 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
19794 actual arguments. All users updated.
19795 (grub_usb_bulk_read_extended): New function.
19796 * bus/usb/serial/common.c: New file.
19797 * bus/usb/serial/ftdi.c: Likewise.
19798 * bus/usb/serial/pl2303.c: Likewise.
19799 * commands/terminal.c (handle_command): Support wildcard.
19800 * commands/usbtest.c: Output "Unknown" instead of empty string.
19801 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
19802 (usbserial_common_mod_SOURCES): New variable.
19803 (usbserial_common_mod_CFLAGS): Likewise.
19804 (usbserial_common_mod_LDFLAGS): Likewise.
19805 (pkglib_MODULES): Add usbserial_pl2303.mod.
19806 (usbserial_pl2303_mod_SOURCES): New variable.
19807 (usbserial_pl2303_mod_CFLAGS): Likewise.
19808 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19809 (pkglib_MODULES): Add usbserial_ftdi.mod.
19810 (usbserial_ftdi_mod_SOURCES): New variable.
19811 (usbserial_ftdi_mod_CFLAGS): Likewise.
19812 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19813 (pkglib_MODULES): Add serial.mod.
19814 (serial_mod_SOURCES): New variable.
19815 (serial_mod_CFLAGS): Likewise.
19816 (serial_mod_LDFLAGS): Likewise.
19817 * conf/i386-pc.rmk: Likewise.
19818 * conf/mips-yeeloong.rmk: Likewise.
19819 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19820 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19821 * disk/usbms.c (first_available_slot): New variable.
19822 (grub_usbms_attach): Don't reuse free slots due to potential cache
19823 problems.
19824 * include/grub/serial.h: Moved to ..
19825 * include/grub/ns8250.h: ...this.
19826 * include/grub/serial.h: New file.
19827 * include/grub/term.h (grub_term_poll_usb): New variable.
19828 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19829 readkey. All users updated.
19830 (grub_terminfo_output_state): Pass term to put.
19831 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19832 (grub_usb_controller_dev): Add timeout and actual arguments to
19833 transfer. All users updated.
19834 (grub_usb_interface): New field detach_data.
19835 (grub_usb_device): New fields children and nports.
19836 (grub_usb_ep_type_t): New type.
19837 (grub_usb_get_ep_type): New function.
19838 (grub_usb_bulk_read_extended): Likewise.
19839 * include/grub/usbdesc.h (grub_usb_desc): New type.
19840 * include/grub/usbserial.h: New file.
19841 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19842 * kern/term.c (grub_term_poll_usb): New variable.
19843 (grub_getkey): Call grub_term_poll_usb if set.
19844 (grub_checkkey): Likewise.
19845 (grub_getkeystatus): Likewise.
19846 * term/serial.c: Moved controller-specific parts to ...
19847 * term/ns8250.c: ... here.
19848 * term/serial.c: Mostly rewritten.
19849 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
19850 according to spec.
19851
21a313de
RM
198522010-08-20 Robert Millan <rmh@gnu.org>
19853
19854 Make kFreeBSD code more generic to support ext2fs as root, ufs as
19855 a separate module and maybe other interesting combinations.
19856
19857 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
19858 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
19859 (kfreebsd_entry): Add generic filesystem module load routine.
19860 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19861
63c734a6
CW
198622010-08-20 Colin Watson <cjwatson@ubuntu.com>
19863
19864 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19865 "numcenter" (I misunderstood the purpose of this entry).
19866 * docs/grub.texi (sendkey): Likewise.
19867
c4d16542
CW
198682010-08-20 Colin Watson <cjwatson@ubuntu.com>
19869
19870 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19871 status flag options; simply omitting the option is equivalent and
19872 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19873 (keysym_table): Rename "num5numlock" to "numlock".
19874 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19875 can uniformly say that only the last of multiple `sendkey'
19876 invocations has any effect.
19877 * docs/grub.texi (sendkey): New section.
19878
93541d66
CW
198792010-08-19 Colin Watson <cjwatson@ubuntu.com>
19880
19881 * commands/i386/pc/sendkey.c (options): Fix three typos.
19882
b4ece5e1
VS
198832010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19884
19885 Implement sendkey support.
19886
19887 * commands/i386/pc/sendkey.c: New file.
19888 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19889 (sendkey_mod_SOURCES): New variable.
19890 (sendkey_mod_CFLAGS): Likewise.
19891 (sendkey_mod_LDFLAGS): Likewise.
19892
51f1f5af
CW
198932010-08-18 Colin Watson <cjwatson@ubuntu.com>
19894
19895 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19896 fix warnings from Autoconf.
19897
9da94e05
CW
198982010-08-18 Colin Watson <cjwatson@ubuntu.com>
19899
19900 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19901 to avoid false positives with some assemblers that output things
19902 like "someprefix_func" as part of their output.
19903
729a0f2e
RM
199042010-08-15 Robert Millan <rmh@gnu.org>
19905
19906 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19907 errors.
19908 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19909 grub_get_libzfs_handle() errors.
19910
f3710e08
RM
199112010-08-14 Robert Millan <rmh@gnu.org>
19912
19913 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19914 filesystem is not ZFS.
19915
7a3c13de
BC
199162010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19917
19918 Fix for misspelled color names defaulting to black/black (bug
19919 reported by Doug Nazar)
19920
19921 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19922 status to prototype.
19923 * normal/color.c (grub_parse_color_name_pair): Return failure
19924 status.
19925 (grub_env_write_color_normal): Ignore bad color names.
19926 (grub_env_write_color_highlight): Likewise.
19927 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19928
ab8ba50d
BC
199292010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19930
19931 "shift" command support to GRUB script.
19932
19933 * include/grub/script_sh.h (grub_script_shift): New prototype.
19934 * script/execute.c (grub_script_shift): New function.
19935 * script/main.c (grub_script_init): Register shift command.
19936 (grub_script_fini): Unregister shift command.
19937 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19938
19939 * tests/grub_script_shift.in: New testcase.
19940 * conf/tests.rmk: Rules for new testcase.
19941
4d61999e
BC
199422010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19943
19944 "continue" command support to GRUB script.
19945
19946 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19947 (grub_script_break): Continue support.
19948 * script/main.c (grub_script_init): Register continue command.
19949 (grub_script_fini): Unregister continue command.
19950
19951 * tests/grub_script_continue.in: New testcase.
19952 * conf/tests.rmk: Rules for new testcase.
19953
4df51e00
BC
199542010-08-12 BVK Chaitanya <bvk@dbook>
19955
19956 "break" command support to GRUB script.
19957
19958 * conf/common.rmk: Rule updates to grub-script-check.
19959 * include/grub/misc.h (grub_min): New function.
19960 * include/grub/script_sh.h (grub_script_init): New prototype.
19961 (grub_script_fini): New prototype.
19962 (grub_script_break): New prototype.
19963 * script/main.c (grub_script_init): New function.
19964 (grub_script_fini): New function.
19965 * script/execute.c (grub_script_break): New function.
19966 * normal/main.c: Calls to grub_script_{init,fini}.
19967 * util/grub-script-check.c (grub_script_break): New function.
19968
19969 * tests/grub_script_break.in: New testcase.
19970 * conf/tests.rmk: Rules for new test case.
19971
f12c8420
BC
199722010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19973
19974 Function parameters support to GRUB script.
19975
19976 * script/yylex.l (VARIABLE): Regular expression update.
19977 * script/function.c (grub_script_function_call): Moved ...
19978 * script/execute.c (grub_script_function_call): ... to here.
19979 (grub_script_execute_arglist_to_argv): Removed.
19980 (grub_script_arglist_to_argv): New function.
19981 * script/argv.c: New file.
19982 (grub_script_argv_free): New function.
19983 (grub_script_argv_next): Likewise.
19984 (grub_script_argv_append): Likewise.
19985 (grub_script_argv_split_append): Likewise.
19986 * include/grub/script_sh.h (grub_script_argv): New struct.
19987 (grub_script_argv_free): New function.
19988 (grub_script_argv_next): Likewise.
19989 (grub_script_argv_append): Likewise.
19990 (grub_script_argv_split_append): Likewise.
19991
19992 * conf/common.rmk (normal.mod): New source script/argv.c.
19993
19994 * tests/grub_script_echo1.in: More tests.
19995 * tests/grub_script_vars1.in: Likewise.
19996 * tests/grub_script_functions.in: New test case.
19997 * conf/tests.rmk: Rules for new testcase.
19998
8022b748
BC
199992010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20000
20001 Remove grub_script_cmdblock struct.
20002
20003 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20004 * script/parser.y: Likewise.
20005 * script/execute.c: Rename cmdblock suffix to cmdlist.
20006 * script/script.c: Likewise.
20007 * util/grub-script-check.c: Likewise.
20008
79a6ba61
YB
200092010-08-11 Yves Blusseau <blusseau@zetam.org>
20010
20011 * .bzrignore: add grub-macho2img
20012
d04b9414
VS
200132010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20014
20015 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20016
f947ab49
VS
200172010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20018
20019 Remove the dump of sm712 initialisation sequence.
20020
20021 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20022 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20023 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20024 (GRUB_VGA_CR_*): Added many registers.
20025 (GRUB_VGA_SR_*): Likewise.
20026 (GRUB_VGA_GR_*): Likewise.
20027 (grub_vga_write_arx): New function.
20028 (grub_video_hw_config): New struct.
20029 (grub_vga_set_geometry): New function.
20030 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20031 GRUB_PCI_CLASS_SUBCLASS_VGA.
20032 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20033 * video/sm712.c (grub_sm712_write_reg): New function
20034 (grub_sm712_read_reg): Likewise.
20035 (grub_sm712_sr_write): Likewise.
20036 (grub_sm712_gr_write): Likewise.
20037 (grub_sm712_cr_write): Likewise.
20038 (grub_sm712_write_arx): Likewise.
20039 (grub_sm712_cr_shadow_write): Likewise.
20040 (grub_sm712_write_dda_lookup): Likewise.
20041 (grub_video_sm712_setup): Initialise the video rather then
20042 blindly replay the dump.
20043 (main) [TEST]: Add a routine to be able to compile as standalone for
20044 tests.
20045 * video/sm712_init.c (sm712_init): Removed.
20046 (sm712_sr_seq1): New array.
20047 (sm712_sr_seq2): Likewise.
20048
f0206638
VS
200492010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20050
20051 * include/grub/vga.h: Add missing grub/pci.h include.
20052
2764da3b
YB
200532010-08-10 Yves Blusseau <blusseau@zetam.org>
20054
20055 * util/grub-macho2img.c (main): fix typo
20056
cf0c775e
VS
200572010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20058
20059 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20060 (grub_vga_gr_read): Likewise.
20061 (grub_vga_cr_write): Likewise.
20062 (grub_vga_cr_read): Likewise.
20063 (grub_vga_sr_write): Likewise.
20064 (grub_vga_sr_read): Likewise.
20065 (grub_vga_palette_read): Likewise.
20066 (grub_vga_palette_write): Likewise.
20067 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20068 (grub_sm712_sr_read): New function.
20069 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20070 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20071
07f360e9
RM
200722010-08-09 Robert Millan <rmh@gnu.org>
20073
20074 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20075 out unused variables on non-ZFS build.
20076
346c2072
RM
200772010-08-08 Robert Millan <rmh@gnu.org>
20078
20079 Fix path generation for sub-filesystems in ZFS.
20080
20081 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20082 missing slash.
20083
71175420
RM
200842010-08-08 Robert Millan <rmh@gnu.org>
20085
20086 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20087
0d8286f3
RM
200882010-08-08 Robert Millan <rmh@gnu.org>
20089
20090 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20091 exist, issue a proper error message (rely on `ls' for translated
20092 strings).
20093
55dd2924
RM
200942010-08-08 Robert Millan <rmh@gnu.org>
20095
20096 Fix grub-probe invocation.
20097
20098 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20099
d3dd9e80
RM
201002010-08-04 Robert Millan <rmh@gnu.org>
20101
20102 * configure.ac: Remove checks for getfsstat() and getmntany().
20103 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20104 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20105 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20106 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20107 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20108 function.
20109 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20110 via find_mount_point_from_dir() and getfsstat() / getmntany().
20111
0de22aa9
RM
201122010-08-04 Robert Millan <rmh@gnu.org>
20113
20114 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20115 (grub_find_zpool_from_mount_point): Merge into ...
20116 (grub_find_zpool_from_dir): ... this.
20117 * kern/emu/misc.c: Likewise.
20118
20119 * kern/emu/misc.c
20120 (grub_make_system_path_relative_to_its_root): Replace
20121 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20122 with grub_find_zpool_from_dir().
20123 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20124
62858144
RM
201252010-08-04 Robert Millan <rmh@gnu.org>
20126
20127 Support OpenSolaris in ZFS device resolution.
20128
20129 * configure.ac: Check for getmntany().
20130 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20131 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20132 support.
20133
9dd6fd50
RM
201342010-08-03 Robert Millan <rmh@gnu.org>
20135
20136 Fix grub-emu build.
20137
20138 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20139 * include/grub/emu/misc.h: ... here.
20140
20141 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20142 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20143
20144 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20145 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20146 (grub_get_libzfs_handle): Move to ...
20147 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20148 (grub_get_libzfs_handle): ... here.
20149
c9f7ff97
BC
201502010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20151
20152 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20153 as command name case.
20154
a870a783
CW
201552010-08-02 Colin Watson <cjwatson@ubuntu.com>
20156
20157 * disk/raid.c (insert_array): Select unique numbers for named arrays
20158 as well, for use as keys in the disk cache.
20159
c7db243b
RM
201602010-08-01 Robert Millan <rmh@gnu.org>
20161
20162 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20163 kFreeBSD device name, except on ZFS where the filesystem label is
20164 used.
20165 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20166 `/boot/zfs/zpool.cache'.
20167 Set mountfrom kernel variable using ${kfreebsd_device}.
20168
f7abdefb
RM
201692010-08-01 Robert Millan <rmh@gnu.org>
20170
20171 Make it even harder to use uninitialized `libzfs_handle' (and
20172 make the interface a bit simpler).
20173
20174 * include/grub/util/misc.h (grub_util_init_libzfs)
20175 (libzfs_handle): Remove.
20176 (grub_get_libzfs_handle): New prototype.
20177
20178 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20179 attribute.
20180 (grub_util_init_libzfs): Remove.
20181 (grub_get_libzfs_handle): New function.
20182
20183 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20184 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20185 accessing `libzfs_handle' directly.
20186
c882acc0
RM
201872010-08-01 Robert Millan <rmh@gnu.org>
20188
20189 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20190 (grub_find_zpool_from_mount_point): New function prototypes.
20191
20192 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20193 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20194
20195 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20196 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20197 `static' attribute.
20198
20199 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20200 finding zpool from mount point into ...
20201 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20202
20203 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20204 requested path is part of a ZFS pool, use
20205 grub_find_zpool_from_mount_point() to detect its filesystem name,
20206 and generate a path with `/fsname@path' syntax.
20207
8bfe31d8
CW
202082010-08-01 Colin Watson <cjwatson@ubuntu.com>
20209
20210 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20211 (void) rather than () so that this is a proper prototype.
20212
553df63d
VS
202132010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20214
20215 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20216
8687cf07
VS
202172010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20218
20219 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20220 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20221
ea9be8ea
CW
202222010-08-01 Colin Watson <cjwatson@ubuntu.com>
20223
20224 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20225
6eea041a
CW
202262010-08-01 Colin Watson <cjwatson@ubuntu.com>
20227
20228 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20229
2cfb45df
CW
202302010-08-01 Colin Watson <cjwatson@ubuntu.com>
20231
20232 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20233 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20234 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20235 disable gfxpayload.
20236 (Shell-like scripting): Add real content.
20237 (Serial terminal): Suggest `terminal_input serial; terminal_output
20238 serial' rather than putting the two commands on separate lines,
20239 since console input will be inoperative after the first command.
20240 (menuentry): Document --class, --users, and --hotkey options.
20241 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20242 Vladimir Serbinenko).
20243
7decd202
VS
202442010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
202452010-08-01 Colin Watson <cjwatson@ubuntu.com>
20246
20247 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20248
c882acc0
RM
202492010-08-01 Robert Millan <rmh@gnu.org>
20250
20251 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20252 (grub_find_zpool_from_mount_point): New function prototypes.
20253
20254 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20255 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20256
20257 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20258 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20259 `static' attribute.
20260
20261 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20262 finding zpool from mount point into ...
20263 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20264
20265 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20266 requested path is part of a ZFS pool, use
20267 grub_find_zpool_from_mount_point() to detect its filesystem name,
20268 and generate a path with `/fsname@path' syntax.
20269
deb0caa3
RM
202702010-08-01 Robert Millan <rmh@gnu.org>
20271
20272 Prevent accidental use of uninitialized libzfs_handle.
20273
20274 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20275 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20276 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20277
ce04ef47
CW
202782010-08-01 Colin Watson <cjwatson@ubuntu.com>
20279
20280 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20281 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20282
ebf53056
RM
202832010-08-01 Robert Millan <rmh@gnu.org>
20284
20285 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 20286
3710bb6b
RM
202872010-07-31 Robert Millan <rmh@gnu.org>
20288
20289 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
20290
8072efeb
RM
202912010-07-31 Robert Millan <rmh@gnu.org>
20292
20293 * kern/emu/misc.c: Add missing license header.
20294
3169f4c7
RM
202952010-07-31 Robert Millan <rmh@gnu.org>
20296
20297 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
20298
20299 * include/grub/util/libnvpair.h: Include `<config.h>'.
20300 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
20301 declaring libnvpair prototypes ourselves.
20302 * include/grub/util/libzfs.h: Include `<config.h>'.
20303 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
20304 declaring libzfs prototypes ourselves.
20305
20306 (libzfs_handle): Moved to ...
20307 * include/grub/util/misc.h (libzfs_handle): ... here.
20308 Include `<grub/util/libzfs.h>'.
20309
c9a00aee
RM
203102010-07-30 Robert Millan <rmh@gnu.org>
20311
20312 * include/grub/emu/misc.h: Add missing license header.
20313
a184f9c8
RM
203142010-07-30 Robert Millan <rmh@gnu.org>
20315
20316 Enable `grub-probe -t device' resolution on ZFS.
20317
20318 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
20319 * include/grub/util/libnvpair.h: New file.
20320 * include/grub/util/libzfs.h: New file.
20321
20322 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
20323 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
20324 `<grub/util/libnvpair.h>'.
20325 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
20326
20327 (find_mount_point_from_dir): New static function.
20328 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
20329 function.
20330 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
20331 find_root_device_from_libzfs() before ressorting to find_root_device().
20332
20333 * include/grub/util/misc.h (grub_util_init_libzfs): New function
20334 prototype.
20335 * util/misc.c: Include `<grub/util/libzfs.h>'.
20336 (grub_util_init_libzfs): New function.
20337 [HAVE_LIBZFS] (libzfs_handle): New global variable.
20338 [HAVE_LIBZFS] (fini_libzfs): New static function.
20339 (grub_util_init_libzfs): New function.
20340 * util/grub-probe.c (main): Call grub_util_init_libzfs().
20341
f7790cdd
RM
203422010-07-30 Robert Millan <rmh@gnu.org>
20343
20344 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
20345 (xmalloc, xrealloc, xstrdup, xasprintf): Add
20346 `warn_unused_result' attribute.
20347 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
20348 (grub_xasprintf, grub_xvasprintf): Likewise.
20349 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
20350
0806b63c
RM
203512010-07-29 Robert Millan <rmh@gnu.org>
20352
20353 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
20354 (probe): Handle `PRINT_FS_LABEL'.
20355 (main): Handle `-t fs_label'.
20356
9f841f5c
RM
203572010-07-29 Robert Millan <rmh@gnu.org>
20358
20359 * configure.ac: Remove grub-mkisofs checks.
20360
46371121
VS
203612010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * util/ieee1275/grub-install.in: Don't use empty grub_device.
20364 Reported by: Lennart Sorensen.
20365
203662010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
20369 prior to terminal_input/terminal_output separation. It's been over 1.5
20370 years and those versions weren't widely deployed.
20371
a9600892
CW
203722010-07-22 Colin Watson <cjwatson@ubuntu.com>
20373
20374 * disk/raid.c (insert_array): Don't count named arrays when looking
20375 for unused array numbers.
697e053c 20376 Reported and tested by: Michael Guntsche.
a9600892 20377
c03507df
CW
203782010-07-20 Colin Watson <cjwatson@ubuntu.com>
20379
20380 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
20381 implementation of this so that grub-emu links again, with a note
20382 that this should support hotplugging in the future.
20383
b26f1c11
CW
203842010-07-20 Colin Watson <cjwatson@ubuntu.com>
20385
20386 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20387
efc9d7f1
CW
203882010-07-20 Colin Watson <cjwatson@ubuntu.com>
20389
20390 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
20391 handle on failure.
20392 (grub_loopback_close): Remove empty function.
20393 (grub_loopback_dev): Remove close method.
20394
dd8ff5c9
CW
203952010-07-20 Colin Watson <cjwatson@ubuntu.com>
20396
20397 Disable EFI cursor when the EFI console becomes inactive.
20398
20399 * term/efi/console.c (grub_efi_console_init): New function.
20400 (grub_efi_console_fini): New function.
20401 (grub_console_term_output): Register init and fini methods.
20402
5e3bec67
VS
204032010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20404
20405 * tests/util/grub-shell-tester.in: Remove bashism and declare as
20406 sh script.
20407
afaec079
VS
204082010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 * disk/loopback.c (grub_loopback): Replace filename with file.
20411 (delete_loopback): Handle new semantics.
20412 (grub_cmd_loopback): Likewise.
20413 (grub_loopback_iterate): Likewise.
20414 (grub_loopback_close): Likewise.
20415
a6a11f3c
VS
204162010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
20419 with -p "".
20420 Reported by: Tito Keitel.
20421
64a638b0
VS
204222010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 * docs/grub.texi (Naming convention): Document new naming convention.
20425
ab8ba957
VS
204262010-07-20 Vadim Solomin <vadic052@gmail.com>
204272010-07-20 Colin Watson <cjwatson@ubuntu.com>
20428
20429 Generate device.map in something closer to the old ordering.
20430
20431 * util/deviceiter.c (struct device): New declaration.
20432 (compare_file_names): Rename to ...
20433 (compare_devices): ... this. Sort by kernel name in preference to
20434 the stable by-id name, but keep the latter as a fallback comparison.
20435 Update header comment.
20436 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
20437 of `struct device' rather than of plain file names.
20438
a29d6a4b
TF
204392010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
20440
20441 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
20442 on i386.
20443
39d824e8
VS
204442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20445
20446 * commands/acpi.c (setup_common_tables): Use sizeof instead of
20447 hardcoding size.
20448 (setv1table): Likewise.
20449
f058276b
FZ
204502010-07-20 Colin Watson <cjwatson@ubuntu.com>
20451
20452 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
20453 removing the homehost if present.
20454 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
20455 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
20456 removing the homehost if present.
20457 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
20458 if possible.
20459 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
20460
20461 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
20462 parameter. Set its pointer target to 0.
20463 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
20464 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
20465 `data_offset' value from the superblock for 1.x metadata.
20466 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
20467 data on the device.
20468 (insert_array): Record the start sector of data on the device.
20469 (grub_raid_register): Pass start_sector parameters to
20470 grub_raid_list->detect and insert_array.
20471 * include/grub/raid.h (struct grub_raid_array): Add start_sector
20472 member.
20473 (struct grub_raid): Add start_sector parameter to `detect'.
20474
20475 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
20476 __attribute__ ((packed)), leaving a comment.
20477 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
20478 (grub_mdraid_detect_09): ... here and ...
20479 (grub_mdraid_detect_1x): ... here.
20480
204812010-07-20 Peter Henn <peter.henn@web.de>
20482
20483 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
20484 chunk size and disk size, which are already given as sector counts
20485 as distinct from the 0.90 units. Fetch the correct device number
20486 from the role table instead of using the table index.
20487
204882010-07-20 Felix Zielcke <fzielcke@z-51.de>
20489
20490 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
20491 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
20492 (WriteMostly1): New macro.
20493 Set array->name to NULL for metadata format 0.90. Add support for
20494 metadata 1.x. Fix some comments.
20495 * disk/raid.c (): Add support for name based RAID arrays. Fix a
20496 few comments.
20497 * util/getroot.c (grub_util_get_grub_dev): Add support for
20498 /dev/md/name style devices.
20499
4b761da9
CW
205002010-07-20 Colin Watson <cjwatson@ubuntu.com>
20501
20502 * .bzrignore: Ignore 20_linux_xen.
20503
5771289a
CW
205042010-07-17 Colin Watson <cjwatson@ubuntu.com>
20505
20506 * util/import_unicode.py: Remove unnecessary imports.
20507
5dab68df
AN
205082010-07-17 Aleš Nesrsta <starous@volny.cz>
20509
20510 Hotplugging and USB hub support.
20511
20512 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
20513 (grub_ohci): Likewise.
20514 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
20515 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
20516 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
20517 (GRUB_OHCI_CTRL_EDS): Likewise.
20518 (GRUB_OHCI_BULK_EDS): Likewise.
20519 (GRUB_OHCI_TDS): Likewise.
20520 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
20521 (grub_ohci_ed_phys2virt): New function.
20522 (grub_ohci_virt_to_phys): Likewise.
20523 (grub_ohci_td_phys2virt): Likewise.
20524 (grub_ohci_td_virt2phys): Likewise.
20525 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
20526 attachment.
20527 (grub_ohci_find_ed): New function.
20528 (grub_ohci_alloc_td): Likewise.
20529 (grub_ohci_free_td): Likewise.
20530 (grub_ohci_free_tds): Likewise.
20531 (grub_ohci_transfer): Use previously allocated memory.
20532 (grub_ohci_portstatus): Reset status changed bit.
20533 (grub_ohci_detect_dev): Supply status changed.
20534 (grub_ohci_fini_hw): Free memory.
20535 (grub_ohci_restore_hw): Reallocate memory.
20536 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
20537 Reset status change.
20538 (grub_uhci_detect_dev): Supply status_change.
20539 * bus/usb/usb.c (attach_hooks): New var.
20540 (grub_usb_device_attach): New function.
20541 (grub_usb_register_attach_hook_class): Likewise.
20542 (grub_usb_unregister_attach_hook_class): Likewise.
20543 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
20544 (grub_usb_add_hub): Reset connection changed bit.
20545 (attach_root_port): New function.
20546 (grub_usb_root_hub): Likewise.
20547 (poll_nonroot_hub): Likewise.
20548 (grub_usb_poll_devices): Likewise.
20549 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
20550 * disk/usbms.c (grub_usbms_open): Use device hooks.
20551 (grub_usbms_iterate) :Poll devices.
20552 (grub_usbms_finddevs): Split into ...
20553 (grub_usbms_attach): ... this ...
20554 (grub_usbms_attach): ... and this.
20555 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
20556 in detect_dev.
20557 (grub_usb_interface): New fields attached and detach_hook.
20558 (grub_usb_attach_hook_class): New type.
20559 (grub_usb_attach_desc): New struct.
20560 (grub_usb_register_attach_hook_class): New function.
20561 (grub_usb_unregister_attach_hook_class): Likewise.
20562 (grub_usb_poll_devices): Likewise.
20563 (grub_usb_device_attach): Likewise.
20564 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
20565 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
20566
3222efaf
VS
205672010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
20570 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
20571 delta determination style. Works with most NetBSD partitions too.
20572
139b714a
VS
205732010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20574
20575 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
20576 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
20577
986aad56
VS
205782010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20579
20580 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
20581
99be513c
AB
205822010-07-14 Anton Blanchard <anton@samba.org>
20583
20584 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
20585 ET_DYN files.
20586
18075f62
GS
205872010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20588
20589 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
20590
8d9a5b15
GS
205912010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20592
20593 * kern/partition.c (grub_partition_check_containment): New function to
20594 check that a partition is physically contained in a parent. Since
20595 offsets are relative (and non-negative), this reduces to checking that
20596 the partition ends before its parent.
20597 (grub_partition_map_probe): Discard out-of-range sub-partitions.
20598 (grub_partition_iterate): Likewise.
20599 * include/grub/partition.h (grub_partition_map): Slightly more detailed
20600 comments.
20601 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
20602 partitions that start before their parent, and add debug printfs.
20603
19563c25
CW
206042010-07-13 Colin Watson <cjwatson@ubuntu.com>
20605
20606 * Makefile.in (.SUFFIX): Spell correctly, as ...
20607 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
20608 bare module name without `.mod', e.g. `test') tried to invoke a
20609 Modula-2 compiler.
20610
1a1f1e67
CW
206112010-07-13 Colin Watson <cjwatson@ubuntu.com>
20612
20613 * README: Point to the Info manual.
20614
811b0dca
JS
206152010-07-13 Jiro SEKIBA <jir@unicus.jp>
20616
20617 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
20618 2nd superblock position from partition size.
20619
e4f4eafc
CW
206202010-07-10 Colin Watson <cjwatson@ubuntu.com>
20621
20622 * Makefile.in (MAINTAINER_CLEANFILES): Remove
20623 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
20624 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
20625 outputs.
20626
4274c30f
VS
206272010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20628
20629 Restructure SCSI .id handling.
20630 Reported and tested by: Aleš Nesrsta.
20631
20632 * disk/ata.c (grub_atapi_close): Removed. All users updated.
20633 (grub_atapi_dev): Changed .name to "ata". New field .id.
20634 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
20635 (grub_usbms_dev): New field .id.
20636 * disk/scsi.c (grub_scsi_iterate): Generate name.
20637 (grub_scsi_open): Parse name.
20638 * include/grub/scsi.h (grub_make_scsi_id): New function.
20639 (grub_scsi_dev): Change iterate and open to number instead of naming
20640 busses. All users updated.
20641 (grub_scsi): Remove name. Add .bus.
20642
5bc24388
VS
206432010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20644
20645 * commands/help.c (grub_cmd_help): Fix a typo.
20646
249975ba
VS
206472010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20648
20649 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
20650 Reported and tested by: Colin Watson.
20651
3eaac1a1
VS
206522010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20653
20654 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
20655 in this context.
20656
becce1b1
VS
206572010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
20658
20659 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
20660
f7bf0918
CW
206612010-07-07 Colin Watson <cjwatson@ubuntu.com>
20662
20663 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
20664 indentation.
20665
0b0f9620
CW
206662010-07-06 Colin Watson <cjwatson@ubuntu.com>
20667
20668 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
20669 and disk/raid6_recover.c.
20670 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20671 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
20672
1e545469
CW
206732010-07-06 Colin Watson <cjwatson@ubuntu.com>
20674
20675 * term/gfxterm.c (repaint_schedulded): Rename to ...
20676 (repaint_scheduled): ... this. Update all callers.
20677 (repaint_was_schedulded): Rename to ...
20678 (repaint_was_scheduled): ... this. Update all callers.
20679
5357687a
CW
206802010-07-06 Colin Watson <cjwatson@ubuntu.com>
20681
20682 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
20683 which we expect to be handled by upper layers.
20684
29d7e783
BC
206852010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
20686
20687 * bus/usb/usbhub.c: #include time.h header.
20688
37582066
CW
206892010-07-06 Colin Watson <cjwatson@ubuntu.com>
20690
20691 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
20692 entry_name also for entries without stat blocks (e.g. ".."); fixes
20693 corruption of the first entry in a directory.
20694
c8c06953
CW
206952010-07-06 Colin Watson <cjwatson@ubuntu.com>
20696
20697 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
20698 after setting gfxterm as the active terminal. GRUB_BACKGROUND
20699 doesn't work otherwise.
20700
e75056f1
CW
207012010-07-05 Colin Watson <cjwatson@ubuntu.com>
20702
20703 * docs/grub.texi (Features): Update list of supported file systems.
20704 (GNU/Linux): Update for GRUB 2.
20705 (Serial terminal): Remove mention of --disable-serial, which was a
20706 GRUB Legacy configure option. Update instructions to use
20707 `terminal_input' and `terminal_output' rather than `terminal'.
20708 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
20709 configuration' and `Installing GRUB using grub-install'.
20710 (Menu entry editor): Update for GRUB 2.
20711 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
20712 Document new -a, -u, and -v options.
20713 (initrd): New section.
20714 (initrd16): New section.
20715 (linux): New section.
20716 (linux16): New section.
20717 (search): The `var' argument to `--set' is optional.
20718 (GRUB only offers a rescue shell): Go into a little more detail on
20719 drive ordering.
20720
5cf69151
CW
207212010-07-05 Colin Watson <cjwatson@ubuntu.com>
20722
20723 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
20724
e3f90044
CW
207252010-07-05 Colin Watson <cjwatson@ubuntu.com>
20726
20727 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
20728 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
20729
38d8f4f3
CW
207302010-07-05 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * util/i386/pc/grub-setup.c (setup): Rename prefix to
20733 install_prefix, in line with install_dos_part and install_bsd_part.
20734 Add new prefix variable, which is copied to install_prefix after
20735 comparing core.img in memory with the one read from disk in the
20736 no-embedding case, and use that rather than overwriting
20737 install_prefix immediately when installing to a partition.
20738 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
20739 Bicakci.
20740
57ebd41e
GS
207412010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20742
20743 * configure.ac: Avoid == in test command, it's not portable.
20744 * util/grub.d/30_os-prober.in: Likewise.
20745
cb7f64b2
CW
207462010-07-04 Colin Watson <cjwatson@ubuntu.com>
20747
20748 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
20749
6b654bb0
GS
207502010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20751
20752 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
20753 multiple (top-level) partmaps.
20754
72a2026d
VS
207552010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20756
20757 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 20758 Reported by: Tino Keitel.
72a2026d 20759
df3eb88f
VS
207602010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20761
20762 Bidi and diacritics support.
20763
20764 * Makefile.in (widthspec.bin): New target.
20765 (widthspec.h): Likewise.
20766 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
20767 * autogen.sh: Generate unidata.c.
20768 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
20769 * commands/ls.c (grub_ls_list_devices): Likewise.
20770 (grub_ls_list_files): Likewise.
20771 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
20772 (grub_mini_cmd_lsmod): Likewise.
20773 * commands/read.c: Likewise.
20774 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
20775 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
20776 * lib/arg.c (grub_arg_show_help): Likewise.
20777 * lib/crypto.c (grub_password_get): Likewise.
20778 * normal/auth.c (grub_username_get): Likewise.
20779 * normal/misc.c (grub_normal_print_device_info): Likewise.
20780 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
20781 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
20782 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
20783 (normal/charset.c_DEPENDENCIES): New variable.
20784 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
20785 (pkglib_MODULES): Remove charset.mod.
20786 (charset_mod_SOURCES): Removed.
20787 (charset_mod_CFLAGS): Likewise.
20788 (charset_mod_LDFLAGS): Likewise.
20789 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
20790 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
20791 and term/tparm.c.
20792 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20793 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20794 (kernel_img_HEADERS): Add terminfo.h.
20795 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
20796 Fill ->font. Reverse ascii bitmaps.
20797 (grub_font_get_xheight): New function.
20798 * font/font.c (grub_font_get_string_width): Moved from here ...
20799 * gfxmenu/font.c (grub_font_get_string_width): ... here.
20800 * font/font.c (grub_font_draw_string): Moved from here ...
20801 * gfxmenu/font.c (grub_font_draw_string): ... here.
20802 * font/font.c (grub_font_dup_glyph): New function.
20803 (grub_font_blit_glyph): Likewise.
20804 (grub_font_blit_glyph_mirror): Likewise.
20805 (blit_comb): Likewise.
20806 (grub_font_construct_dry_run): Likewise.
20807 (grub_font_get_constructed_device_width): Likewise.
20808 (grub_font_construct_glyph): Likewise.
20809 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20810 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20811 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20812 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20813 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20814 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20815 (grub_font_get_xheight): New proto.
20816 (grub_font_get_constructed_device_width): Likewise.
20817 (grub_font_construct_glyph): Likewise.
20818 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20819 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20820 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20821 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20822 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20823 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20824 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20825 (grub_console_getcharwidth): Likewise.
20826 * include/grub/misc.h (grub_xputs): New proto.
20827 (grub_puts): Inlined.
20828 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20829 (grub_normal_get_line_counter): Removed.
20830 (grub_install_newline_hook): Likewise.
20831 (grub_normal_get_char_counter): New proto.
20832 (grub_normal_reset_more): Likewise.
20833 (grub_xputs_normal): Likewise.
20834 * include/grub/powerpc/ieee1275/console.h: Removed.
20835 * include/grub/sparc64/ieee1275/console.h: Likewise.
20836 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20837 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20838 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20839 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20840 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20841 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20842 (grub_term_input): Pass reference to self. All users updated.
20843 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20844 Pass reference to self. New fields normal_color, highlight_color and
20845 data. All users updated.
20846 (grub_putchar): Removed.
20847 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
20848 (grub_unicode_estimate_width): New function.
20849 (grub_term_getcharwidth): Add defaults.
20850 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
20851 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
20852 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
20853 (grub_cls): Remove EXPORT_FUNC.
20854 (grub_setcolorstate): Inline.
20855 (grub_newline_hook): Removed.
20856 * include/grub/terminfo.h: Rewritten. All users updated.
20857 * include/grub/unicode.h: New file.
20858 * include/grub/video.h (grub_video_signed_rect): New type.
20859 * kern/emu/console.c (grub_console_highlight_color): Removed.
20860 (grub_console_normal_color): Likewise.
20861 (grub_console_standard_color): Made static.
20862 (grub_ncurses_putchar): Remove mapping.
20863 (grub_ncurses_getcharwidth): Removed.
20864 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20865 (grub_ncurses_setcolor): Removed.
20866 (grub_ncurses_getcolor): Likewise.
20867 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20868 (grub_console_putchar): ... this.
20869 (grub_console_putchar): Handle argument difference.
20870 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20871 console_init_early and console_init_lately.
20872 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20873 * kern/misc.c (grub_puts): Removed.
20874 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20875 (grub_vsnprintf_real): Remove str = NULL support.
20876 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20877 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20878 * kern/term.c (grub_putcode): Renamed to ...
20879 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20880 (grub_putchar): Removed.
20881 (grub_xputs_dumb): New function.
20882 (grub_xputs): New variable.
20883 * lib/charset.c: Move from here ...
20884 * normal/charset.c: ... to here.
20885 (grub_ucs4_to_utf8): New function.
20886 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20887 (join_types): New variable.
20888 (unpack_join): New function.
20889 (bidi_types): New variable.
20890 (unpack_bidi): New function.
20891 (get_bidi_type): Likewise.
20892 (get_join_type): Likewise.
20893 (is_mirrored): Likewise.
20894 (grub_unicode_get_comb_type): Likewise.
20895 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20896 (is_type_after): Likewise.
20897 (grub_unicode_aglomerate_comb): Likewise.
20898 (bidi_line_wrap): Likewise.
20899 (grub_bidi_line_logical_to_visual): Likewise.
20900 (grub_bidi_logical_to_visual): Likewise.
20901 (grub_unicode_mirror_code): Likewise.
20902 (grub_unicode_shape_code): Likewise.
20903 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20904 Don't use grub_putchar.
20905 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20906 (grub_normal_reader_init): Likewise.
20907 (grub_xputs_saved): New variable.
20908 (GRUB_MOD_INIT): Set grub_xputs.
20909 (GRUB_MOD_FINI): Restore grub_xputs.
20910 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20911 (menu_init): Avoid printing gfxmenu error.
20912 (show_menu): Use grub_normal_get_char_counter.
20913 * normal/menu_entry.c (update_screen): Fix out-of-array.
20914 (complete): Avoid NULL dereferencing.
20915 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20916 * normal/menu_text.c (print_spaces): Removed.
20917 (grub_print_ucs4): Likewise.
20918 (grub_print_message_indented): Use grub_print_ucs4.
20919 (print_message): Use grub_putcode.
20920 (print_entry): Hanlde diacritics.
20921 * normal/term.c (term_state): New type.
20922 (grub_more_lines): Removed.
20923 (term_states): New variable.
20924 (grub_normal_line_counter): Renamed to ..
20925 (grub_normal_char_counter): ...this. All users updated.
20926 (grub_normal_get_line_counter): Renamed to ...
20927 (grub_normal_get_char_counter): ... this.
20928 (grub_normal_reset_more): New function.
20929 (process_newline): Removed.
20930 (print_more): New function.
20931 (grub_install_newline_hook): Removed.
20932 (map_code): New function.
20933 (grub_puts_terminal): Use grub_print_ucs4.
20934 (putglyph): New function.
20935 (putcode_real): Likewise.
20936 (grub_putcode): Use putcode_real.
20937 (get_maxwidth): New function.
20938 (get_startwidth): Likewise.
20939 (print_ucs4_terminal): Likewise.
20940 (find_term_state): Likewise.
20941 (put_glyphs_terminal): Likewise.
20942 (print_backlog): Likewise.
20943 (print_ucs4_real): Likewise.
20944 (grub_print_ucs4): Likewise.
20945 (grub_xputs_normal): Likewise.
20946 * term/efi/console.c (grub_console_putchar): Output diacritics.
20947 (grub_console_getcharwidth): Removed.
20948 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20949 * term/gfxterm.c (clear_char): Free chars.
20950 (scroll_up): Avoid leaking memory.
20951 (grub_gfxterm_putchar): Support diacritics.
20952 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20953 * term/i386/pc/console.c (grub_console_term_output): Declare as
20954 GRUB_TERM_CODE_TYPE_VGA.
20955 * term/i386/pc/vga.c (grub_vga_term): Declare as
20956 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20957 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20958 GRUB_TERM_CODE_TYPE_VGA.
20959 * term/i386/vga_common.c (map_char): Removed.
20960 (grub_console_putchar): Likewise.
20961 (grub_console_getcharwidth): Likewise.
20962 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20963 (colors): Reordered to match terminfo.
20964 (grub_ofconsole_normal_color): Removed.
20965 (grub_ofconsole_writeesc): Likewise.
20966 (grub_ofconsole_highlight_color): Likewise.
20967 (grub_ofconsole_getcharwidth): Likewise.
20968 (grub_ofconsole_setcolorstate): Likewise.
20969 (grub_ofconsole_setcolor): Likewise.
20970 (grub_ofconsole_getcolor): Likewise.
20971 (grub_ofconsole_readkey): Renamed to ...
20972 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20973 key.
20974 (grub_ofconsole_checkkey): Removed.
20975 (grub_ofconsole_getkey): Likewise.
20976 (grub_ofconsole_getxy): Likewise.
20977 (grub_ofconsole_gotoxy): Likewise.
20978 (grub_ofconsole_cls): Likewise.
20979 (grub_ofconsole_refresh): Likewise.
20980 (grub_ofconsole_terminfo_input): New struct.
20981 (grub_ofconsole_terminfo_output): Likewise.
20982 (grub_ofconsole_term_input): Use terminfo.
20983 (grub_ofconsole_term_output): Likewise.
20984 (grub_console_init): Split into ...
20985 (grub_console_init_early): ...this and ...
20986 (grub_console_init_lately): ...this. Use terminfo.
20987 (grub_ofconsole_putchar): Renamed to ...
20988 (put): ... this. Remove mapping.
20989 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20990 * term/serial.c: Simplify using terminfo.
20991 (xpos): Removed.
20992 (ypos): Likewise.
20993 (keep_track): Likewise.
20994 (registered): Likewise.
20995 (input_buf): Likewise.
20996 (npending): Likewise.
20997 (serial_translate_key_sequence): Likewise.
20998 (fill_input_buf): Likewise.
20999 (grub_serial_checkkey): Likewise.
21000 (grub_serial_getkey): Likewise.
21001 (grub_serial_getxy): Likewise.
21002 (grub_serial_gotoxy): Likewise.
21003 (grub_serial_putchar): Likewise.
21004 (grub_serial_cls): Likewise.
21005 (grub_serial_setcolorstate): Likewise.
21006 (grub_serial_setcursor): Likewise.
21007 (serial_hw_init): Use serial_hw_fetch.
21008 (grub_serial_terminfo_input): New variable.
21009 (grub_serial_terminfo_output): Likewise.
21010 (grub_serial_term_input): Use terminfo.
21011 (grub_serial_term_output): Likewise.
21012 * term/terminfo.c (putstr): Use put.
21013 (grub_terminfo_all_free): New function
21014 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21015 (grub_terminfo_output_register): New function.
21016 (grub_terminfo_output_unregister): Likewise.
21017 (grub_terminfo_getxy): Likewise.
21018 (grub_terminfo_readkey): Likewise.
21019 (grub_terminfo_checkkey): Likewise.
21020 (grub_terminfo_getkey): Likewise.
21021 (grub_terminfo_input_init): Likewise.
21022 (print_terminfo): Likewise.
21023 (grub_cmd_terminfo): Handle encoding.
21024 (grub_terminfo_gotoxy): Track position.
21025 (grub_terminfo_cls): Likewise.
21026 (grub_terminfo_putchar): Likewise.
21027 (grub_terminfo_setcolorstate): Handle colors
21028 (grub_terminfo_cursor_on): This ...
21029 (grub_terminfo_cursor_off): ... and this merged into ...
21030 (grub_terminfo_setcursor): ... this.
21031 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21032 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21033 * unicode/BidiMirroring.txt: Likewise.
21034 * unicode/UnicodeData.txt: Likewise.
21035 * unicode/COPYING: Likewise.
21036 * util/grub-editenv.c (grub_putchar): Removed.
21037 (grub_xputs_real): New function.
21038 (grub_xputs): New variable.
21039 * util/grub-fstest.c (grub_putchar): Removed.
21040 (grub_xputs_real): New function.
21041 (grub_xputs): New variable.
21042 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21043 (grub_xputs_real): New function.
21044 (grub_xputs): New variable.
21045 * util/grub-probe.c (grub_putchar): Removed.
21046 (grub_xputs_real): New function.
21047 (grub_xputs): New variable.
21048 * util/grub-script-check.c (grub_putchar): Removed.
21049 (grub_xputs_real): New function.
21050 (grub_xputs): New variable.
21051 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21052 (grub_xputs_real): New function.
21053 (grub_xputs): New variable.
21054 * util/import_unicode.py: New file.
21055 * util/grub-mkfont.c (ft_errmsgs): New array.
21056 (grub_glyph_info): Make bitmap a pointer.
21057 (file_formats): New type WIDTH_SPEC.
21058 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21059 (options): Add width-spec.
21060 (help): Likewise.
21061 (add_char): Renamed to ...
21062 (add_glyph): ... this.
21063 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21064 (glyph_replace): New type.
21065 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21066 (add_char): New function.
21067 (add_subst): Likewise.
21068 (process_cursive): Likewise.
21069 (add_font): Handle GSUB.
21070 (write_font_width_spec): New function.
21071 (main): Sort glyphs.
21072 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21073 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21074 * kern/term.c (grub_cls): Moved from here...
21075 * normal/term.c (grub_cls): ... here.
21076
50f0bcda
CW
210772010-07-02 Colin Watson <cjwatson@ubuntu.com>
21078
21079 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21080 suitable for using within the format argument of printf when
21081 converting grub_size_t.
21082 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21083 "x" to convert grub_size_t arguments.
21084
40372103
VS
210852010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21086
21087 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21088 too long captions.
21089 (list_get_minimal_size): Take selection box into account.
21090
942a10c7
VS
210912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21094 NULL font.
21095
2bdb2892
CW
210962010-07-02 Colin Watson <cjwatson@ubuntu.com>
21097
21098 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21099 devices when iterating over /dev/disk/by-id; they will be handled
21100 later if appropriate, which they aren't always (e.g. LVM).
21101
e03ed6c1
CW
211022010-07-02 Colin Watson <cjwatson@ubuntu.com>
21103
21104 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21105 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21106 fails.
21107 (grub_halt): Likewise.
21108 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21109 reset-all fails.
21110 (grub_halt): Don't return, even if all of shut-down, power-off, and
21111 poweroff fail.
21112
47695765
CW
211132010-07-02 Colin Watson <cjwatson@ubuntu.com>
21114
21115 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21116 arguments, not three.
21117
507736c8
CW
211182010-07-02 Colin Watson <cjwatson@ubuntu.com>
21119
21120 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21121 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21122 LVM-on-RAID is handled correctly.
21123
e3c8cd37
CW
211242010-07-02 Colin Watson <cjwatson@ubuntu.com>
21125
21126 * docs/grub.texi (Changes from GRUB Legacy): New section.
21127 (Future): Fix typo.
21128
8d4a2fec
CW
211292010-07-02 Colin Watson <cjwatson@ubuntu.com>
21130
21131 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21132 grub.d/README accidentally ends up executable for one reason or
21133 another. Ignore it.
21134
1c4827be
VS
211352010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21136
21137 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21138 (gpt_partition_map_iterate): Support non-512B sectors.
21139
d9a0c941
VS
211402010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21141
21142 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21143 Tested by: Seth Goldberg.
21144
48f27e87
VS
211452010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21146
21147 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21148 Properly align mbi.
21149 Reported by: Seth Goldberg.
21150
b0c4f956
VS
211512010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21152
21153 * util/grub-mkrescue.in: Avoid module duplication.
21154
105a2e8c
SF
211552010-07-01 Sean Finney <seanius@seanius.net>
21156
21157 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21158
5944958c
SF
211592010-07-01 Sean Finney <seanius@seanius.net>
21160
21161 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21162
211632010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 * disk/lvm.c (grub_lvm_checkvalue): New function.
21166 (grub_lvm_check_flag): Likewise.
21167
b79889ba
RM
211682010-07-01 Robert Millan <rmh@gnu.org>
21169
21170 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21171 Support 'p' as partition separator on kernel of FreeBSD (used
21172 with GPT labels).
21173 (grub_util_biosdisk_get_grub_dev): Likewise.
21174
ec1d04f1
VS
211752010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 Yeeloong firmware port.
21178
21179 * boot/mips/yeeloong/fwstart.S: New file.
21180 * bus/cs5536.c (gpiodump): New const.
21181 (set_io_space): New function.
21182 (set_iod): Likewise.
21183 (set_p2d): Likewise.
21184 (grub_cs5536_init_geode): Likewise.
21185 * commands/mips/yeeloong/lsspd.c: New file.
21186 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21187 (serial_mod_SOURCES): New variable.
21188 (serial_mod_CFLAGS): Likewise.
21189 (serial_mod_LDFLAGS): Likewise.
21190 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21191 term/terminfo.c and term/tparm.c.
21192 (pkglib_IMAGES): Add fwstart.img.
21193 (fwstart_img_SOURCES): New variable.
21194 (fwstart_img_CFLAGS): Likewise.
21195 (fwstart_img_ASFLAGS): Likewise.
21196 (fwstart_img_LDFLAGS): Likewise.
21197 (fwstart_img_FORMAT): Likewise.
21198 (pkglib_MODULES): Add lsspd.mod.
21199 (lsspd_mod_SOURCES): New variable.
21200 (lsspd_mod_CFLAGS): Likewise.
21201 (lsspd_mod_LDFLAGS): Likewise.
21202 (pkglib_MODULES): Add halt.mod.
21203 (halt_mod_SOURCES): New variable.
21204 (halt_mod_CFLAGS): Likewise.
21205 (halt_mod_LDFLAGS): Likewise.
21206 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21207 (serial_mod_SOURCES): Removed.
21208 (serial_mod_CFLAGS): Likewise.
21209 (serial_mod_LDFLAGS): Likewise.
21210 * disk/ata.c (check_device): New function.
21211 (grub_ata_device_initialize): Use check_device.
21212 (grub_ata_iterate): Recheck devices.
21213 (grub_ata_open): Likewise.
21214 (grub_atapi_iterate): Likewise.
21215 (grub_atapi_open): Likewise.
21216 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21217 (GRUB_ATA_CH1_PORT1): Likewise.
21218 (GRUB_ATA_CH0_PORT2): Likewise.
21219 (GRUB_ATA_CH1_PORT2): Likewise.
21220 * include/grub/mips/loongson.h: New file.
21221 * include/grub/mips/yeeloong/ec.h: Likewise.
21222 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21223 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21224 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21225 * include/grub/misc.h (grub_halt): Declare as noreturn.
21226 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21227 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21228 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21229 (UART_ENABLE_DTRRTS): Likewise.
21230 (UART_ENABLE_MODEM): Removed.
21231 (UART_ENABLE_OUT2): New const.
21232 * include/grub/term.h (grub_term_register_input_active): New function.
21233 (grub_term_register_output_active): Likewise.
21234 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21235 argument.
21236 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21237 (init_pci): New function.
21238 (grub_machine_init): Execute platform init when firmware. Init serial.
21239 (grub_halt): Implement.
21240 (grub_exit): Likewise.
21241 (grub_reboot): Likewise.
21242 * term/serial.c (serial_hw_init): Update macros.
21243 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21244 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21245 (image_targets): New target mipsel-yeeloong-flash.
21246 (generate_image): Support IMAGE_YEELOONG_FLASH.
21247 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21248 (grub_video_sm712_setup): Init card.
21249 (grub_video_sm712_set_palette): Removed.
21250 * video/sm712_init.c: New file.
21251
ff4a70d2
CW
212522010-06-30 Colin Watson <cjwatson@ubuntu.com>
21253
21254 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21255 PATH when running help2man and then run it on the unadorned
21256 executable names, rather than passing $(builddir)/* paths to
21257 help2man. This avoids the build directory ending up in generated
21258 manual pages.
21259
1246efeb
CW
212602010-06-29 Colin Watson <cjwatson@ubuntu.com>
21261
21262 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21263 to avoid accidents when debugging with 'sh -x'.
21264 * util/grub-mkrescue.in: Likewise.
21265 * util/grub.d/00_header.in: Likewise.
21266 * util/grub.d/10_hurd.in: Likewise.
21267 * util/grub.d/10_kfreebsd.in: Likewise.
21268 * util/grub.d/10_linux.in: Likewise.
21269 * util/grub.d/10_netbsd.in: Likewise.
21270 * util/grub.d/10_windows.in: Likewise.
21271 * util/grub.d/20_linux_xen.in: Likewise.
21272 * util/grub.d/30_os-prober.in: Likewise.
21273 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21274
1ba9b889
CW
212752010-06-29 Colin Watson <cjwatson@ubuntu.com>
21276
21277 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21278 last character in the buffer.
21279 Reported by: Vladimir Serbinenko.
21280
dccaf99d
RM
212812010-06-29 Robert Millan <rmh@gnu.org>
21282
21283 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21284 (Command-line and menu entry commands): Document `badram' command.
21285
d500ed12
RM
212862010-06-28 Robert Millan <rmh@gnu.org>
21287
21288 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
21289 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
21290 command using ${GRUB_BADRAM} as parameter.
21291
20bc84a6
CW
212922010-06-28 Colin Watson <cjwatson@ubuntu.com>
21293
21294 * docs/grub.texi (Device map): New section.
21295 (Themes): New section (stub).
21296 * Makefile.in (docs/grub.info): The info documentation now builds
21297 without errors. Make sure it stays that way.
21298
4045dee1
VS
212992010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 Use normal parser for menu entries.
21302 Reported by: Thomas Frauendorfer
21303
21304 * include/grub/parser.h (grub_parser_execute): Don't export.
21305 * normal/menu.c (grub_menu_execute_entry_real): New function.
21306 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
21307
bca58c7b
CW
213082010-06-28 Colin Watson <cjwatson@ubuntu.com>
21309
21310 * docs/grub.texi (Embedded configuration): New section (replacing
21311 old "Preset Menu" stub).
21312 (Images): New section.
21313 (configfile): Note that any menu entries defined in `file' are shown
21314 immediately.
21315
dec53e63
JT
213162010-06-28 Josh Triplett <josh@joshtriplett.org>
21317
21318 * mmap/i386/pc/mmap_helper.S: Set CF on return.
21319
c06e40f7
CW
213202010-06-28 Colin Watson <cjwatson@ubuntu.com>
21321
21322 * util/grub-install.in: Add --debug-image= option.
21323
cb88052b
CW
213242010-06-28 Colin Watson <cjwatson@ubuntu.com>
21325
21326 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
21327 possible on Linux.
21328
21329 * util/deviceiter.c (check_device): Rename to ...
21330 (check_device_readable_unique): ... this. Update all callers.
21331 Maintain and check a list of which devices (by canonicalized name)
21332 have already been seen.
21333 (clear_seen_devices): New function.
21334 (compare_file_names) [__linux__]: New function.
21335 (grub_util_iterate_devices): Clear the list of seen devices on exit
21336 and (just in case) on entry.
21337 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
21338 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
21339 seen-devices list, superseded by general code in check_device.
21340
bbe34652
CW
213412010-06-28 Colin Watson <cjwatson@ubuntu.com>
21342
21343 * commands/cat.c (options): New variable.
21344 (grub_cmd_cat): Parse options. If the --dos option is given, print
21345 DOS-style "\r\n" line endings as simple newlines (Debian bug
21346 #586358).
21347 (GRUB_MOD_INIT): Use extcmd.
21348 (GRUB_MOD_FINI): Likewise.
21349 * docs/grub.texi (cat): Document --dos.
21350
412e09f3
VS
213512010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21352
21353 XEN with Linux grub-mkconfig support.
21354
21355 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
21356 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
21357 GRUB_CMDLINE_XEN_DEFAULT.
21358 * util/grub.d/20_linux_xen.in: New file.
21359
53f3ef38 213602010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
21361
21362 Initialise VGA video on qemu ourselves.
21363
21364 * boot/i386/qemu/boot.S: Don't call 0xc000.
21365 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
21366 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
21367 (kernel_img_HEADERS): Add pci.h.
21368 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
21369 * configure.ac: Force unifont on qemu and yeeloong.
21370 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21371 (grub_vga_palette_write): Use correct register.
21372 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
21373 Call grub_qemu_init_cirrus.
21374 * kern/i386/qemu/init.c: New file.
21375 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
21376
21377 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
21378
c75be4fb
PR
213792010-06-26 Pavel Roskin <proski@gnu.org>
21380
21381 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
21382 13.
21383
d8034603
CW
213842010-06-26 Colin Watson <cjwatson@ubuntu.com>
21385
21386 * docs/grub.texi (Simple configuration): Explain that
21387 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
21388 set to `true' to disable their respective recovery entries, not
21389 merely set.
21390
3fa06487
CW
213912010-06-26 Colin Watson <cjwatson@ubuntu.com>
21392
21393 Make the `source' command slightly faster.
21394
21395 * normal/main.c (grub_normal_execute): Don't re-read list files when
21396 nested.
21397
e9b29642
CW
213982010-06-23 Colin Watson <cjwatson@ubuntu.com>
21399
21400 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
21401 field position and mask size to red fields from mode_info, not
21402 green.
21403 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
21404 Remove redundant tag->common.framebuffer_type assignment.
21405 Reported by: Seth Goldberg.
21406
e726542f
CW
214072010-06-23 Colin Watson <cjwatson@ubuntu.com>
21408
21409 Sync up other versions of the Linux loader with Robert Millan's
21410 change of 2010-01-09, "Make loader output a bit more user-friendly".
21411
21412 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
21413 grub_dprintf().
21414 (grub_cmd_linux): Likewise.
21415 (grub_cmd_initrd): Likewise.
21416 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
21417 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21418
d6e98a17
CW
214192010-06-21 Colin Watson <cjwatson@ubuntu.com>
21420
21421 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
21422 larger than MEMORY_MAP_SIZE.
21423
14d3f08e
BC
214242010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
21425
21426 Fix parallel build.
21427
21428 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
21429 dependency.
21430 * script/parser.y: #include grub_script.tab.h header.
21431
4f9613a3
VS
214322010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 Support >3GiB and <16MiB RAM in i386-qemu.
21435
21436 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
21437 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
21438 (grub_lower_mem): Removed.
21439 (grub_upper_mem): Likewise.
21440 (mem_size): Made static.
21441 (above_4g): New variable.
21442 (grub_machine_mmap_init): Detect small mem_size and above_4g.
21443 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
21444 support.
21445
05e51879
VS
214462010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 Cirrus 5446 and Bochs video cards support.
21449
21450 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
21451 video_bochs.mod
21452 (video_cirrus_mod_SOURCES): New variable.
21453 (video_cirrus_mod_CFLAGS): Likewise.
21454 (video_cirrus_mod_LDFLAGS): Likewise.
21455 (video_bochs_mod_SOURCES): Likewise.
21456 (video_bochs_mod_CFLAGS): Likewise.
21457 (video_bochs_mod_LDFLAGS): Likewise.
21458 * include/grub/vga.h: New file.
21459 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
21460 (grub_video_fb_set_page_t): New type.
21461 (grub_video_fb_setup): New prototype.
21462 (grub_video_fb_swap_buffers): Likewise.
21463 (grub_video_fb_get_info_and_fini): Likewise.
21464 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
21465 (CRTC_DATA_PORT): Likewise.
21466 (CRTC_CURSOR): Likewise.
21467 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21468 (CRTC_CURSOR_ADDR_LOW): Likewise.
21469 (CRTC_CURSOR_DISABLE): Likewise.
21470 (update_cursor): Use grub_vga_cr_write.
21471 (grub_vga_text_setcursor): Likewise.
21472 * video/bochs.c: New file.
21473 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
21474 (palette): Likewise.
21475 (palette_size): Likewise.
21476 (framebuffer): New variable.
21477 (grub_video_fb_init): Use 'framebuffer'.
21478 (grub_video_fb_fini): Likewise.
21479 (grub_video_fb_get_info): Likewise.
21480 (grub_video_fb_get_palette): Likewise.
21481 (grub_video_fb_set_palette): Likewise.
21482 (grub_video_fb_set_viewport): Likewise.
21483 (grub_video_fb_get_viewport): Likewise.
21484 (grub_video_fb_map_color): Likewise.
21485 (grub_video_fb_map_rgb): Likewise.
21486 (grub_video_fb_map_rgba): Likewise.
21487 (grub_video_fb_unmap_color): Likewise.
21488 (grub_video_fb_unmap_color_int): Likewise.
21489 (grub_video_fb_fill_rect): Likewise.
21490 (grub_video_fb_blit_bitmap): Likewise.
21491 (grub_video_fb_blit_render_target): Likewise.
21492 (grub_video_fb_scroll): Likewise.
21493 (grub_video_fb_create_render_target): Likewise.
21494 (grub_video_fb_doublebuf_blit_init): Likewise.
21495 (grub_video_fb_set_active_render_target): Handle doublebuffering.
21496 (doublebuf_pageflipping_update_screen): New function.
21497 (doublebuf_pageflipping_init): Likewise.
21498 (grub_video_fb_setup): Likewise.
21499 (grub_video_fb_swap_buffers): Likewise.
21500 (grub_video_fb_get_info_and_fini): Likewise.
21501 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
21502 All users updated.
21503 (doublebuf_pageflipping_commit): Restructured into ...
21504 (doublebuf_pageflipping_set_page): ... this.
21505 (doublebuf_pageflipping_update_screen): Removed.
21506 (doublebuf_pageflipping_init): Likewise.
21507 (double_buffering_init): Likewise.
21508 (grub_video_vbe_setup): Use grub_video_fb_setup.
21509 (grub_video_vbe_swap_buffers): Removed.
21510 (grub_video_vbe_set_active_render_target): Likewise.
21511 (grub_video_vbe_get_active_render_target): Likewise.
21512 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
21513 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
21514 grub_video_fb_set_active_render_target and
21515 grub_video_fb_get_active_render_target.
21516 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
21517 (SEQUENCER_DATA_PORT): Likewise.
21518 (MAP_MASK_REGISTER): Likewise.
21519 (CRTC_ADDR_PORT): Likewise.
21520 (CRTC_DATA_PORT): Likewise.
21521 (START_ADDR_HIGH_REGISTER): Likewise.
21522 (START_ADDR_LOW_REGISTER): Likewise.
21523 (GRAPHICS_ADDR_PORT): Likewise.
21524 (GRAPHICS_DATA_PORT): Likewise.
21525 (READ_MAP_REGISTER): Likewise.
21526 (INPUT_STATUS1_REGISTER): Likewise.
21527 (INPUT_STATUS1_VERTR_BIT): Likewise.
21528 (get_map_mask): Use grub_vga_sr_read.
21529 (set_map_mask): Use grub_vga_sr_write.
21530 (set_read_map): Use grub_vga_gr_write.
21531 (set_start_address): Use grub_vga_cr_write.
21532 * video/sm712.c (framebuffer): Remove leftover fields.
21533
4321c64a
CW
215342010-06-20 Colin Watson <cjwatson@ubuntu.com>
21535
21536 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
21537 setting GRUB_VIDEO_BACKEND. Make it available as a user override
21538 instead. Replace the gfxterm backend check with a check that
21539 ${GRUB_PREFIX}/video.lst is non-empty.
21540 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
21541 again.
21542 (load_video): New generated function. Call it before loading
21543 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
21544 * util/grub.d/10_linux.in (linux_entry): Call load_video.
21545 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
21546 * docs/grub.texi (Simple configuration): Document
21547 GRUB_VIDEO_BACKEND.
21548
215492010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21550
21551 Use video functions in linux and xnu loaders.
21552
21553 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
21554 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
21555 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
21556 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
21557 loader/i386/pc/linux.c.
21558 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
21559 (find_line_len): Removed.
21560 (find_framebuf): Likewise.
21561 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
21562 * loader/i386/efi/xnu.c: Removed.
21563 * loader/i386/pc/xnu.c: Moved from here...
21564 * loader/i386/xnu.c: ...here.
21565
21566 Enable priorities in video drivers.
21567
21568 * include/grub/video.h (grub_video_adapter_prio_t): New type.
21569 (grub_video_adapter): New field prio.
21570 (grub_video_register): Respect prio when inserting.
21571 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
21572 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
21573 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
21574 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
21575 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
21576 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
21577 * video/sm712.c (grub_video_sm712_adapter): Likewise.
21578
21579 Fix SDL driver ID.
21580
21581 * include/grub/video.h (grub_video_driver_id_t): New value
21582 GRUB_VIDEO_DRIVER_SDL.
21583 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
21584
7d24e434
CW
215852010-06-17 Colin Watson <cjwatson@ubuntu.com>
21586
21587 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
21588 argument to printf.
21589 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21590
c88a83f6
CW
215912010-06-17 Colin Watson <cjwatson@ubuntu.com>
21592
21593 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
21594 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21595
094dfb69
CW
215962010-06-17 Colin Watson <cjwatson@ubuntu.com>
21597
21598 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
21599 directly, and recommend grub-install instead.
21600 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21601
2164da6b
CW
216022010-06-17 Colin Watson <cjwatson@ubuntu.com>
21603
21604 Fix i386-pc prefix handling with nested partitions (Debian bug
21605 #585068). Note that the case where the core image is booted using
21606 multiboot and relocated from its original location still requires
21607 more work.
21608
21609 * kern/i386/pc/init.c (make_install_device): If the prefix starts
21610 with "(,", fill the boot drive in between those two characters, but
21611 expect that a full partition specification including partition map
21612 names will follow.
21613 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
21614 specified, write a prefix without the drive name but including a
21615 full partition specification.
21616
044e2e60
CW
216172010-06-16 Colin Watson <cjwatson@ubuntu.com>
21618
21619 * util/grub-mkconfig.in: Ignore non-option arguments, for
21620 compatibility with older versions (before 2010-06-12) which did the
21621 same. In particular, this makes it easier to ship an update-grub
21622 wrapper which is compatible with that used with GRUB Legacy (Debian
21623 bug #586056).
21624
5591324f
GS
216252010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21626
21627 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
21628 for manual page generation.
21629
662e24d5
GS
216302010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21631
21632 * po/POTFILES: Remove leftover commands/handler.c.
21633
8d70754e
CW
216342010-06-14 Colin Watson <cjwatson@ubuntu.com>
21635
21636 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
21637 left this script non-functional.
21638
41160e2e
CW
216392010-06-14 Colin Watson <cjwatson@ubuntu.com>
21640
21641 * docs/man/grub-emu.h2m: New file.
21642
b5309cc1
CW
216432010-06-13 Colin Watson <cjwatson@ubuntu.com>
21644
21645 * docs/grub.texi (Commands): Document reduced command set in rescue
21646 mode.
21647 (cpuid): New section.
21648
fcb2d090
GS
216492010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
21650
21651 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
21652 new partition naming style.
21653 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
21654
96e5c556
BC
216552010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
21656
21657 Add "-o grub.iso" like cmdline options support.
21658
21659 * util/grub-install.in: Improve cmdline option parsing.
21660 * util/grub-mkconfig.in: Likewise.
21661 * util/grub-mkrescue.in: Likewise.
21662 * util/grub-reboot.in: Likewise.
21663 * util/grub-set-default.in: Likewise.
21664 * util/i386/efi/grub-install.in: Likewise.
21665 * util/ieee1275/grub-install.in: Likewise.
21666 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21667
c16be99b
CW
216682010-06-12 Colin Watson <cjwatson@ubuntu.com>
21669
21670 * .bzrignore: Ignore 41_custom.
21671
ce08a9fb
TS
216722010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21673
21674 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
21675
7beac90c
CW
216762010-06-12 Colin Watson <cjwatson@ubuntu.com>
21677
21678 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
21679 prototype declarations.
21680
21681 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
21682 generating fs, partmap, and video lists.
21683 * include/grub/fs.h (grub_fs_register): Omit prototype if
21684 GRUB_LST_GENERATOR is defined.
21685 * include/grub/partition.h (grub_partition_map_register): Likewise.
21686 * include/grub/video.h (grub_video_register): Likewise.
21687
1c8f0f8d
JM
216882010-06-12 Javier Martín <lordhabbit@gmail.com>
21689
21690 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
21691
a6085973
TS
216922010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21693
21694 * util/grub-mkrescue.in: Support --xorriso argument.
21695
25c56d29
VS
216962010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
21699 Suggested by: Thomas Schmitt.
21700
e03e4b24
VS
217012010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21702
21703 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
21704 Suggested by: Thomas Schmitt.
21705
57711df6
VS
217062010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21707
21708 custom.cfg support.
21709
21710 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
21711 * util/grub.d/41_custom.in: New file.
21712
ee62c427
CW
217132010-06-12 Colin Watson <cjwatson@ubuntu.com>
21714
21715 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21716 been merged back into normal.
21717
283af07a
CW
217182010-06-11 Colin Watson <cjwatson@ubuntu.com>
21719
21720 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
21721 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
21722
56a0d956
CW
217232010-06-11 Colin Watson <cjwatson@ubuntu.com>
21724
21725 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
21726 when generating manual pages.
21727 * docs/man/grub-bin2h.h2m: New file.
21728 * docs/man/grub-editenv.h2m: New file.
21729 * docs/man/grub-fstest.h2m: New file.
21730 * docs/man/grub-install.h2m: New file.
21731 * docs/man/grub-macho2img.h2m: New file.
21732 * docs/man/grub-mkconfig.h2m: New file.
21733 * docs/man/grub-mkdevicemap.h2m: New file.
21734 * docs/man/grub-mkfont.h2m: New file.
21735 * docs/man/grub-mkimage.h2m: New file.
21736 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
21737 * docs/man/grub-mkrelpath.h2m: New file.
21738 * docs/man/grub-mkrescue.h2m: New file.
21739 * docs/man/grub-ofpathname.h2m: New file.
21740 * docs/man/grub-pe2elf.h2m: New file.
21741 * docs/man/grub-probe.h2m: New file.
21742 * docs/man/grub-reboot.h2m: New file.
21743 * docs/man/grub-script-check.h2m: New file.
21744 * docs/man/grub-set-default.h2m: New file.
21745 * docs/man/grub-setup.h2m: New file.
21746
3a37e322
VS
217472010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
21748
21749 Use FOR_* macros instead of *_iterate whenever possible.
21750
21751 * commands/handler.c: Removed.
21752 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
21753 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
21754 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21755 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
21756 (grub_probe_SOURCES): Remove kern/parser.c.
21757 (util/grub-script-check.c_DEPENDENCIES): Removed.
21758 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
21759 and grub_script_check_init.c.
21760 (grub_script_check_init.lst): Removed.
21761 (grub_script_check_init.h): Likewise.
21762 (grub_script_check_init.c): Likewise.
21763 (pkglib_MODULES): Remove handler.mod and sh.mod.
21764 (handler_mod_SOURCES): Removed.
21765 (handler_mod_CFLAGS): Likewise.
21766 (handler_mod_LDFLAGS): Likewise.
21767 (normal_mod_SOURCES): Remove normal/handler.c.
21768 Add script/main.c, script/script.c, script/execute.c,
21769 script/function.c, script/lexer.c, grub_script.tab.c
21770 and grub_script.yy.c.
21771 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21772 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21773 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
21774 (grub_setup_SOURCES): Remove kern/parser.c.
21775 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21776 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
21777 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21778 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21779 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21780 (grub_setup_SOURCES): Remove kern/parser.c.
21781 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21782 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
21783 * include/grub/command.h (grub_command_iterate): Removed.
21784 (FOR_COMMANDS): New macro.
21785 * include/grub/dl.h (grub_dl): New member next.
21786 (grub_dl_iterate): Removed.
21787 (grub_dl_head): New variable declaration.
21788 (FOR_DL_MODULES): New macro.
21789 * include/grub/fs.h: Include list.h.
21790 (grub_fs): Make next first element.
21791 (grub_fs_list): New variable declaration.
21792 (grub_fs_register): Make inline.
21793 (grub_fs_unregister): Likewise.
21794 (grub_fs_iterate): Removed.
21795 (FOR_FILESYSTEMS): New macro.
21796 * include/grub/handler.h: Removed.
21797 * include/grub/list.h (grub_list_hook_t): Removed.
21798 (grub_list_test_t): Likewise.
21799 (grub_list_pop): Likewise.
21800 (grub_list_iterate): Likewise.
21801 (grub_list_insert): Likewise.
21802 (FOR_LIST_ELEMENTS): New macro.
21803 * include/grub/parser.h (grub_parser_class): Removed.
21804 (grub_parser_register): Likewise.
21805 (grub_parser_unregister): Likewise.
21806 (grub_parser_get_current): Likewise.
21807 (grub_parser_set_current): Likewise.
21808 (grub_register_rescue_parser): Likewise.
21809 (grub_rescue_parse_line): New function.
21810 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21811 * include/grub/script_sh.h (grub_script_function_list): New variable
21812 declaration.
21813 (FOR_SCRIPT_FUNCTIONS): New macro.
21814 (grub_script_function_iterate): Removed.
21815 (grub_normal_parse_line): New prototype.
21816 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21817 (FOR_DISABLED_TERM_INPUTS): Likewise.
21818 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21819 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21820 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21821 element.
21822 (grub_video_register): Inline.
21823 (grub_video_unregister): Likewise.
21824 (grub_video_adapter_list): New variable declaration.
21825 (grub_video_iterate): Removed.
21826 (FOR_VIDEO_ADAPTERS): New macro.
21827 * kern/dl.c (grub_dl_list): Removed. All users updated.
21828 (grub_dl_iterate): Removed.
21829 * kern/fs.c (grub_fs_list): Make global.
21830 (grub_fs_register): Removed.
21831 (grub_fs_unregister): Likewise.
21832 (grub_fs_iterate): Likewise.
21833 * kern/handler.c: Removed.
21834 * kern/list.c (grub_list_pop): Removed.
21835 (grub_list_iterate): Likewise.
21836 (grub_list_insert): Likewise.
21837 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21838 (grub_prio_list_insert): Don't use grub_list_insert.
21839 * kern/main.c (grub_register_rescue_parser): Don't call
21840 grub_register_rescue_parser.
21841 * kern/parser.c (grub_parser_class): Removed.
21842 (grub_parser_execute): Use grub_rescue_parse_line.
21843 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21844 (grub_rescue_parser): Removed.
21845 (grub_register_rescue_parser): Likewise.
21846 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
21847 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
21848 (grub_auth_check_authentication): Likewise.
21849 * normal/completion.c (iterate_command): Removed.
21850 (grub_normal_do_completion): Use FOR_COMMANDS.
21851 * normal/handler.c: Removed.
21852 * normal/main.c (read_config_file): Remove parser changing.
21853 (grub_normal_execute): Don't call read_handler_list.
21854 (grub_normal_read_line_real): Statically allocate prompt.
21855 (grub_cmdline_run): Use grub_normal_parse_line.
21856 (GRUB_MOD_FINI): Don't call free_handler_list.
21857 * normal/menu_entry.c (run): Likewise.
21858 * script/function.c (grub_script_function_list): Make global.
21859 (grub_script_function_iterate): Removed.
21860 * script/main.c (grub_normal_parse_line): Make global.
21861 (grub_sh_parser): Removed.
21862 (GRUB_MOD_INIT): Likewise.
21863 (GRUB_MOD_FINI): Likewise.
21864 * tests/lib/functional_test.c (grub_functional_test): Use
21865 FOR_LIST_ELEMENTS.
21866 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21867 (grub_test_run): Use FOR_LIST_ELEMENTS.
21868 * tests/lib/unit_test.c (main): Likewise.
21869 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21870 grub_list_pop.
21871 * util/grub-fstest.c (grub_term_input_class): Removed.
21872 (grub_term_output_class): Likewise.
21873 * util/grub-probe.c: Likewise.
21874 * util/i386/pc/grub-setup.c: Likewise.
21875 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21876 * util/grub-script-check.c (main): Don't call grub_init_all and
21877 grub_fini_all.
21878 * video/video.c (grub_video_adapter_list): Make global.
21879 (grub_video_register): Removed.
21880 (grub_video_unregister): Likewise.
21881 (grub_video_iterate): Likewise.
21882
6289c3a7
VS
218832010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21884
21885 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21886 reported by Henrique Ferreiro.
21887
91460247
RM
218882010-06-09 Robert Millan <rmh@gnu.org>
21889
21890 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21891 ones, when both are available.
21892
0ea7c4f9
GS
218932010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21894
21895 Make --version uniform and avoid hard-coded program name.
21896
21897 * util/grub-mkimage.c (main): Use `program_name' instead of
21898 hard-coded string.
21899 * util/i386/pc/grub-setup.c (main): Likewise.
21900 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21901 * util/grub-install.in: Save the basename of $0 in $self, and use the
21902 latter in informational messages. Use the same format for --version
21903 as the binary programs.
21904 * util/grub-mkconfig.in: Likewise.
21905 * util/grub-mkrescue.in: Likewise.
21906 * util/grub-reboot.in: Likewise.
21907 * util/grub-set-default.in: Likewise.
21908 * util/i386/efi/grub-install.in: Likewise.
21909 * util/ieee1275/grub-install.in: Likewise.
21910 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21911
e8a6f3b6
GS
219122010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21913
21914 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21915 embedding area. Use <= instead of == when checking for non-emptiness.
21916
f4d095d7
GS
219172010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21918
21919 * configure.ac: Add `.' to the directories searched for unifont.
21920
50e532ca
CW
219212010-06-08 Colin Watson <cjwatson@ubuntu.com>
21922
21923 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21924 grub_script.yy.h.
21925
d39f3dec
CW
219262010-06-08 Colin Watson <cjwatson@ubuntu.com>
21927
21928 * docs/grub.texi (History): Expand to cover GRUB 2.
21929 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21930 commands, not `terminal'.
21931 (serial): Likewise.
21932 (terminal_input): New section.
21933 (terminal_output): New section.
21934 (uppermem): New section (stub).
21935 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21936
6ef0ddb4
CW
219372010-06-08 Colin Watson <cjwatson@ubuntu.com>
21938
21939 * docs/grub.texi (Security): Menu entries are unrestricted by
21940 default, not restricted to superusers as I had previously thought.
21941 Reword to account for this.
21942
e0f4c438
CW
219432010-06-07 Colin Watson <cjwatson@ubuntu.com>
21944
21945 * kern/emu/misc.c (device_mapper_null_log): New function.
21946 (grub_device_mapper_supported): New function.
21947 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21948 prototype.
21949 * kern/emu/hostdisk.c (find_partition_start): Check whether
21950 device-mapper is supported before trying to use it.
21951 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21952
da908200
CW
219532010-06-07 Colin Watson <cjwatson@ubuntu.com>
21954
21955 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21956 (File name syntax): Likewise.
21957 (help): --all is no longer supported in GRUB 2. Be more precise
21958 about pattern matching.
21959
fb55c3ac
CW
219602010-06-07 Colin Watson <cjwatson@ubuntu.com>
21961
21962 * normal/completion.c (grub_normal_do_completion): When completing
21963 arguments to "set" and the current word contains an equals sign,
21964 skip to after the equals sign before starting completion.
21965
258c2573
CW
219662010-06-07 Colin Watson <cjwatson@ubuntu.com>
21967
21968 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21969
ee75515e
CW
219702010-06-07 Colin Watson <cjwatson@ubuntu.com>
21971
21972 * docs/grub.texi (Network): New section.
21973 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21974 `(nd)' as in GRUB Legacy.
21975 (pxe_unload): New section.
21976
a6a700aa
CW
219772010-06-07 Colin Watson <cjwatson@ubuntu.com>
21978
21979 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21980 in the rescue shell, so recommend using `set' instead. Thanks,
21981 Jordan Uggla.
21982
4003dd38
CW
219832010-06-07 Colin Watson <cjwatson@ubuntu.com>
21984
21985 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
21986 (password): New section.
21987 (password_pbkdf2): New section.
21988 (search): New section.
21989 (Security): New section.
21990 (Troubleshooting): New section, currently very incomplete.
21991 (Invoking grub-mkpasswd-pbkdf2): New section.
21992 (Internals): New section, currently very incomplete.
21993
e1cbcc40
CW
219942010-06-07 Colin Watson <cjwatson@ubuntu.com>
21995
21996 * util/grub.d/00_header.in: Add some more quoting (of
21997 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
21998 work again.
21999 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22000
db8fa1ad
CW
220012010-06-07 Colin Watson <cjwatson@ubuntu.com>
22002
22003 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22004 to `count', fixing variable shadowing that broke the -c option.
22005
220062010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
22007
22008 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22009 in case they contain spaces.
22010
f28a9212
CW
220112010-06-04 Colin Watson <cjwatson@ubuntu.com>
22012
22013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22014 "part_" to partmap module names, in line with grub-install.
22015 Reported by: Jindřich Makovička (Debian bug #584426).
22016
9cdfe32f
CW
220172010-06-04 Colin Watson <cjwatson@ubuntu.com>
22018
22019 * util/grub-mkimage.c: Make target-related error messages slightly
22020 more helpful; -O talks about "format". Explicitly point to the use
22021 of -O if no target is specified.
22022 Reported by: Didier Raboud (Debian bug #584415).
22023
795b593a
CW
220242010-06-03 Colin Watson <cjwatson@ubuntu.com>
22025
22026 * INSTALL: Document several build requirements for optional features
22027 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22028
9d9b5833
GS
220292010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22030
22031 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22032 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22033 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22034
0819fec8
CW
220352010-06-02 Colin Watson <cjwatson@ubuntu.com>
22036
22037 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22038 Thanks to Jordan Uggla for spotting this.
22039
49396b4f
VS
220402010-06-02 Aleš Nesrsta <starous@volny.cz>
22041
22042 Finally make USB usable.
22043
22044 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22045 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22046 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22047 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22048 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22049 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22050 (GRUB_OHCI_FSMPS): Likewise.
22051 (GRUB_OHCI_PERIODIC_START): Likewise.
22052 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22053 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22054 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22055 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22056 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22057 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22058 (grub_ohci_transaction): Likewise.
22059 (grub_ohci_transfer): Improve condition detection algorithms.
22060 Handle toggle property. Program the transactions correctly.
22061 Improve error handling. Various important fixups.
22062 (grub_ohci_portstatus): Put register writes in right order.
22063 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22064 (grub_uhci_transfer): Don't show "failed" message on success.
22065 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22066 array.
22067 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22068 determine its size.
22069 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22070 before initialization is completed. Use IN direction for empty
22071 transfers. Use last_trans and compute toggle.
22072 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22073 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22074 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22075 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22076 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22077 (grub_usb_device): Increase toggle to 256.
22078 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22079 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22080 GRUB_USBMS_SUBCLASS_SFF8070.
22081 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22082 (grub_scsi_inquiry): New member page and alloc_length.
22083 (grub_scsi_request_sense): New structure.
22084 (grub_scsi_request_sense_data): Likewise.
22085 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22086 control.
22087 * disk/scsi.c (grub_scsi_request_sense): New function.
22088 (grub_scsi_test_unit_ready): Likewise.
22089 (grub_scsi_inquiry): Fill new fields.
22090 (grub_scsi_read_capacity): Likewise.
22091 (grub_scsi_read10): Add request sense at the end.
22092 (grub_scsi_read12): Likewise.
22093 (grub_scsi_write10): Likewise.
22094 (grub_scsi_write12): Likewise.
22095 (grub_scsi_open): Add Test Unit Ready.
22096 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22097 Support additional subclasses. Con't clear halt yet. Activate the
22098 proper config. Calculate LUNs correctly.
22099 (grub_usbms_transfer): Various important fixups.
22100
221012010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22102
22103 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22104 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22105 (grub_ohci_fini_hw): New function.
22106 (grub_ohci_restore_hw): Likewise.
22107 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22108 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22109 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22110
221112010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22112
22113 Dedicated DMA allocations.
22114
22115 * bus/pci.c (grub_memalign_dma32): New function
22116 (grub_dma_free): Likewise.
22117 (grub_dma_get_virt): Likewise.
22118 (grub_dma_get_phys): Likewise.
22119 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22120 (grub_ohci_pci_iter): Use dma32_alloc.
22121 (grub_ohci_transfer): Likewise.
22122 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22123 (grub_usb_bulk_readwrite): Likewise.
22124 * include/grub/pci.h: Add declarations.
22125
221262010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22127
22128 CS5536 support.
22129
22130 * bus/cs5536.c: New file.
22131 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22132 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22133 (cs5536_mod_SOURCES): New variable.
22134 (cs5536_mod_CFLAGS): Likewise.
22135 (cs5536_mod_LDFLAGS): Likewise.
22136 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22137 machine/pci.h.
22138 (kernel_img_SOURCES): Add bus/cs5536.c.
22139 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22140 usb_keyboard.mod.
22141 (usb_mod_SOURCES): New variable.
22142 (usb_mod_CFLAGS): New variable.
22143 (usb_mod_LDFLAGS): New variable.
22144 (usbtest_mod_SOURCES): New variable.
22145 (usbtest_mod_CFLAGS): New variable.
22146 (usbtest_mod_LDFLAGS): New variable.
22147 (ohci_mod_SOURCES): New variable.
22148 (ohci_mod_CFLAGS): New variable.
22149 (ohci_mod_LDFLAGS): New variable.
22150 (usbms_mod_SOURCES): New variable.
22151 (usbms_mod_CFLAGS): New variable.
22152 (usbms_mod_LDFLAGS): New variable.
22153 (usb_keyboard_mod_SOURCES): New variable.
22154 (usb_keyboard_mod_CFLAGS): New variable.
22155 (usb_keyboard_mod_LDFLAGS): New variable.
22156 * include/grub/smbus.h: New file.
22157 * include/grub/cs5536.h: New file.
22158
0b35b2a9
CW
221592010-06-02 Colin Watson <cjwatson@ubuntu.com>
22160
22161 * util/grub.d/00_header.in: Add safety check to make sure that
22162 ${locale_dir} exists before trying to probe it.
22163
ca0afd5b
CW
221642010-06-02 Colin Watson <cjwatson@ubuntu.com>
22165
22166 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22167 per the GNU Coding Standards; this is now too obscure to be worth
22168 documenting.
22169 (QNX): Likewise.
22170 (chainloader): Remove cross-reference to `SCO UnixWare'.
22171
1c41aa78
CW
221722010-06-02 Colin Watson <cjwatson@ubuntu.com>
22173
22174 * docs/grub.texi (Chain-loading): New section.
22175 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22176 adjusted for GRUB 2.
22177 (SCO UnixWare): Likewise.
22178 (QNX): Likewise.
22179 (chainloader): Add reference to `Block list syntax'.
22180 (drivemap): New section.
22181 (parttool): New section.
22182
bb8ea0f5
CW
221832010-06-02 Colin Watson <cjwatson@ubuntu.com>
22184
22185 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22186 the grub shell'.
22187 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22188 (Installing GRUB using grub-install): Remove reference to the grub
22189 shell; mention `grub-mkimage' and `grub-setup' instead.
22190 (Invoking grub-install): Likewise.
22191 (Interface): Add reference to `Menu entry editor'.
22192 (serial): Remove `--device' option.
22193
288dd6ed
CW
221942010-06-02 Colin Watson <cjwatson@ubuntu.com>
22195
22196 * docs/grub.texi (Configuration): New section, documenting
22197 configuration file generation using grub-mkconfig. I've left a slot
22198 for documenting the full shell scripting format but have not yet
22199 started on writing that up.
22200 (Invoking grub-mkconfig): New section.
22201
34c9f0e9
CW
222022010-06-02 Colin Watson <cjwatson@ubuntu.com>
22203
22204 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22205 (GNU GRUB manual): Likewise.
22206 (General commands): Update description of `terminfo' for GRUB 2.
22207
9121567e
CW
222082010-06-02 Colin Watson <cjwatson@ubuntu.com>
22209
22210 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22211 (GRUB_MOD_INIT): Fix capitalisation.
22212 * docs/grub.texi (Command-line and menu entry commands): Document
22213 gettext and gptsync commands.
22214
ab631611
CW
222152010-06-02 Colin Watson <cjwatson@ubuntu.com>
22216
22217 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22218 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22219
bde4a9ac
CW
222202010-06-01 Colin Watson <cjwatson@ubuntu.com>
22221
22222 Add btrfs probing support, currently only in the single-device case.
22223
22224 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22225 function.
22226 (grub_guess_root_device): Call find_root_device_from_mountinfo
22227 before looking in /dev.
22228
b1d17e10
VS
222292010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22232 GRUB_DISK_SIZE_UNKNOWN.
22233 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22234
dfbfe004
JS
222352010-05-31 Jiro SEKIBA <jir@unicus.jp>
22236
22237 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22238 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22239 corrupted or not synced properly.
22240
c2ffc8e9
VS
222412010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22242
22243 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22244 Reported by: Seth Goldberg.
22245
56293166
VS
222462010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22247
22248 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22249 addition of dest.
22250 Reported by: Seth Goldberg.
22251
7620e7de
VS
222522010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22253
22254 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22255 Reported by: Seth Goldberg.
22256
c837af3f
VS
222572010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22258
22259 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22260 64-bit address as signed on MIPS.
22261
c7c75cf4
CW
222622010-05-28 Colin Watson <cjwatson@ubuntu.com>
22263
22264 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22265 to the empty string.
22266
fa4b8490
BC
222672010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22268
22269 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22270
22271 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22272 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22273 * kern/misc.c (__enable_execute_stack): Disable on
22274 GRUB_MACHINE_EMU.
22275
a33075b9
CW
222762010-05-28 Colin Watson <cjwatson@ubuntu.com>
22277
22278 Make grub-probe work with symbolic links under /dev/mapper as well
22279 as with real block devices. The Linux world seems to be (at best)
22280 in transition here, and GRUB shouldn't get caught in the middle.
22281
22282 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22283 /dev/mapper.
22284
d8708134
CW
222852010-05-27 Colin Watson <cjwatson@ubuntu.com>
22286
22287 * util/grub-script-check.c (main): Ensure defined behaviour on empty
22288 input files (in which case exit zero).
22289
db2102a0
CW
222902010-05-27 Colin Watson <cjwatson@ubuntu.com>
22291
22292 * kern/emu/misc.c (canonicalize_file_name): realpath can still
22293 return NULL for various reasons even if it has a maximum-length
22294 buffer: for example, there might be a symlink loop, or the path
22295 might exceed PATH_MAX. If this happens, return NULL.
22296
5fdba519
RM
222972010-05-27 Robert Millan <rmh@gnu.org>
22298
22299 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
22300 partmap module to handle cross-partmap setups.
22301 Reported by Orestes Mas. Gràcies!
22302
d1d368e4
CW
223032010-05-27 Colin Watson <cjwatson@ubuntu.com>
22304
22305 * util/grub-mkrescue.in: Initialise override_dir rather than
22306 assuming that it's unset or empty in the environment.
22307
95ac3c73
GS
223082010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
22309
22310 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
22311 variable index into p_index to suppress a warning with -Wshadow.
22312
7d8c0213
BC
223132010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
22314
22315 * INSTALL: Added flex >= 2.5.35 requirement.
22316
db4d5813
VS
223172010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22318
22319 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
22320
f24f4300
VS
223212010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22322
22323 cmostest support.
22324
22325 * commands/i386/cmostest.c: New file.
22326 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
22327 (cmostest_mod_SOURCES): New variable.
22328 (cmostest_mod_CFLAGS): Likewise.
22329 (cmostest_mod_LDFLAGS): Likewise.
22330 * conf/i386-pc.rmk: Likewise.
22331 * docs/grub.texi (Vendor power-on keys): New section.
22332 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
22333 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
22334 and GRUB_BUTTON_CMOS_ADDRESS.
22335 * util/grub.d/00_header.in: Handle powering-on by separate button.
22336
ad603f61
VS
223372010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
22340 Removed drawing_scrollbar argument. All users updated
22341 Fixes #29792.
22342 Reported by Jo Shields
22343
3ecb080a
VS
223442010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
22347 buffer since gfxterm handles double repaint.
22348
5f2316c1
VS
223492010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
22352 * term/gfxterm.c (real_scroll): Likewise.
22353
9a25f885
VS
223542010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22355
22356 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
22357 before calling BIOS.
22358
39fbb79a
VS
223592010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22360
22361 * include/grub/i18n.h: Always enable grub_gettext.
22362
228cfa97
VS
223632010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22364
22365 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
22366 partition naming style.
22367
21717c8f
CW
223682010-05-21 Colin Watson <cjwatson@ubuntu.com>
22369
22370 * util/grub-mkconfig.in: Fix handling of -o so that it works when
22371 not the first option.
22372
c0f48e65
CW
223732010-05-20 Colin Watson <cjwatson@ubuntu.com>
22374
22375 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
22376
96779aec
CW
223772010-05-20 Colin Watson <cjwatson@ubuntu.com>
22378
22379 * util/misc.c: Move inclusion of <limits.h> to ...
22380 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
22381
fa9d256e
GS
223822010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
22383
22384 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
22385 Fix merge error in NetBSD code.
22386 (find_partition_start) [__NetBSD__]: Likewise.
22387
123b7a85
BC
223882010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
22389
22390 Fix grub-mkrescue usage unit testing.
22391
22392 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
22393
74276c0d
CF
223942010-05-18 Christian Franke <franke@computer.org>
22395
22396 * util/grub.d/10_windows.in: Use path names instead of
22397 drive letters to prevent warning from Cygwin 1.7.
22398 Add drivemap command to menuentry if needed.
22399
c4f7b523
ST
224002010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
22401
22402 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
22403 gnumach and gnumach.gz.
22404
95b97950
VS
224052010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22406
22407 * include/grub/i18n.h (gettext): Inline instead of using #define.
22408 (grub_gettext): Likewise.
22409 (_): Likewise.
22410
01b8d2d7
VS
224112010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22412
22413 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
22414 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
22415 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
22416 (main): Add a slash after pkglibdirroot.
22417
654e1d1e
VS
224182010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22419
22420 * util/grub-install.in: Add missing "in" keyword.
22421
26966aeb
VS
224222010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
22425 Reported by: Seth Goldberg.
22426
75006747
VS
224272010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
22430
74cbf5bd
CW
224312010-05-18 Colin Watson <cjwatson@ubuntu.com>
22432
22433 * configure.ac: Check for Linux device-mapper support.
22434
22435 * util/hostdisk.c (device_is_mapped): New function.
22436 (find_partition_start): New function, partly broken out from
22437 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
22438 device-mapper support added.
22439 (linux_find_partition): Use find_partition_start.
22440 (convert_system_partition_to_system_disk): Add `st' argument.
22441 Support Linux /dev/mapper/* devices if device-mapper support is
22442 available; only DM-RAID devices are understood at present.
22443 (find_system_device): Add `st' argument. Pass it to
22444 convert_system_partition_to_system_disk.
22445 (grub_util_biosdisk_get_grub_dev): Pass stat result to
22446 find_system_device and convert_system_partition_to_system_disk. Use
22447 find_partition_start.
22448
22449 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
22450 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
22451 * util/deviceiter.c [__linux__]: Define MINOR.
22452 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
22453 * util/mkdevicemap.c (grub_putchar): New function.
22454 (grub_getkey): New function.
22455 (grub_refresh): New function.
22456 (main): Set debug=all if -v -v is used.
22457
355b51e9
CW
224582010-05-18 Colin Watson <cjwatson@ubuntu.com>
22459
22460 Fix build with non-GNU libcs.
22461
22462 * util/misc.c (canonicalize_file_name): Move to ...
22463 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
22464 grub_make_system_path_relative_to_its_root.
22465
7fb5c25f
CW
224662010-05-18 Colin Watson <cjwatson@ubuntu.com>
22467
22468 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
22469 we handle finding grub-mkimage. Default to finding grub-mkimage in
22470 ${bindir} with program_transform_name applied, and provide a
22471 --grub-mkimage option to override this.
22472
1d3293d6
VS
224732010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22474
22475 Remove grub-mkisofs.
22476
22477 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
22478 (grub_mkisofs_SOURCES): Removed.
22479 (grub_mkisofs_CFLAGS): Removed.
22480 * util/mkisofs/defaults.h: Removed.
22481 * util/mkisofs/eltorito.c: Likewise.
22482 * util/mkisofs/exclude.h: Likewise.
22483 * util/mkisofs/hash.c: Likewise.
22484 * util/mkisofs/include/: Likewise.
22485 * util/mkisofs/include/fctldefs.h: Likewise.
22486 * util/mkisofs/include/mconfig.h: Likewise.
22487 * util/mkisofs/include/prototyp.h: Likewise.
22488 * util/mkisofs/include/statdefs.h: Likewise.
22489 * util/mkisofs/iso9660.h: Likewise.
22490 * util/mkisofs/joliet.c: Likewise.
22491 * util/mkisofs/match.c: Likewise.
22492 * util/mkisofs/match.h: Likewise.
22493 * util/mkisofs/mkisofs.c: Likewise.
22494 * util/mkisofs/mkisofs.h: Likewise.
22495 * util/mkisofs/msdos_partition.h: Likewise.
22496 * util/mkisofs/multi.c: Likewise.
22497 * util/mkisofs/name.c: Likewise.
22498 * util/mkisofs/rock.c: Likewise.
22499 * util/mkisofs/tree.c: Likewise.
22500 * util/mkisofs/write.c: Likewise.
22501
5dde9afe
VS
225022010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22503
22504 Unify grub-mkimage accross platforms.
22505
22506 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
22507 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
22508 (grub_mkelfimage_SOURCES): Removed.
22509 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
22510 (util/grub-mkimage.c_DEPENDENCIES): .. this.
22511 (bin_UTILITIES): Add grub-mkimage.
22512 (grub_mkimage_SOURCES): New variable.
22513 (kernel_img_HEADERS): Remove machine/kernel.h.
22514 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
22515 (pkglib_PROGRAMS): Add kernel.img.
22516 (kernel_img_HEADERS): Add machine/kernel.h.
22517 (kernel_img_FORMAT): Removed.
22518 (bin_UTILITIES): Remove grub-mkimage.
22519 (grub_mkimage_SOURCES): Removed.
22520 (grub_mkimage_CFLAGS): Likewise.
22521 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22522 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
22523 (pkglib_PROGRAMS): Add kernel.img.
22524 (bin_UTILITIES): Remove grub-mkimage.
22525 (grub_mkimage_SOURCES): Removed.
22526 (grub_mkimage_CFLAGS): Likewise.
22527 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22528 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
22529 (pkglib_PROGRAMS): Add kernel.img.
22530 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
22531 (pkglib_PROGRAMS): Add kernel.img.
22532 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
22533 (grub_mkimage_SOURCES): Removed.
22534 (grub_mkimage_CFLAGS): Likewise.
22535 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22536 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
22537 (pkglib_PROGRAMS): Add kernel.img.
22538 (bin_UTILITIES): Remove grub-mkimage.
22539 (grub_mkimage_SOURCES): Removed.
22540 (grub_mkimage_CFLAGS): Likewise.
22541 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22542 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
22543 (grub_mkimage_SOURCES): Removed.
22544 (grub_mkimage_CFLAGS): Likewise.
22545 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22546 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
22547 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
22548 (grub_pe32_optional_header): ... this.
22549 (grub_pe64_optional_header): ... and this. All users updated.
22550 (GRUB_PE32_PE32_MAGIC): Split into ..
22551 (GRUB_PE32_PE32_MAGIC): .. this.
22552 (GRUB_PE32_PE64_MAGIC): .. and this.
22553 (GRUB_PE32_SIGNATURE_SIZE): New definition.
22554 * include/grub/elf.h (PT_GNU_STACK): New definition.
22555 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
22556 * include/grub/i386/efi/kernel.h: Likewise.
22557 * include/grub/i386/kernel.h: Likewise.
22558 * include/grub/i386/pc/kernel.h: Likewise.
22559 * include/grub/i386/qemu/boot.h: Likewise.
22560 * include/grub/mips/kernel.h: Likewise.
22561 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22562 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22563 * include/grub/powerpc/kernel.h: Likewise.
22564 * include/grub/sparc64/ieee1275/boot.h: Likewise.
22565 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22566 * include/grub/sparc64/kernel.h: Likewise.
22567 * include/grub/x86_64/efi/kernel.h: Likewise.
22568 * include/grub/x86_64/kernel.h: Likewise.
22569 * include/grub/offsets.h: New file.
22570 * include/grub/kernel.h (grub_module_info): Split into ...
22571 (grub_module_info32): ... this.
22572 (grub_module_info64): ... and this.
22573 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
22574 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
22575 (grub_boot_blocklist): Moved from here ...
22576 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
22577 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
22578 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
22579 * include/grub/types.h (grub_target_to_host16): Removed.
22580 (grub_target_to_host32): Likewise.
22581 (grub_target_to_host64): Likewise.
22582 (grub_host_to_target16): Likewise.
22583 (grub_host_to_target32): Likewise.
22584 (grub_host_to_target64): Likewise.
22585 (grub_host_to_target_addr): Likewise.
22586
22587 Support grub-mkrescue for efi, coreboot and qemu.
22588
22589 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
22590 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
22591 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
22592 * util/grub-mkrawimage.c: Moved from here ...
22593 * util/grub-mkimage.c: ... here. All users updated.
22594 (ALIGN_ADDR): Use image_target.
22595 (TARGET_NO_FIELD): New const.
22596 (image_target_desc): New type.
22597 (image_targets): New array.
22598 (grub_target_to_host64): Use image_target.
22599 (grub_target_to_host32): Likewise.
22600 (grub_target_to_host16): Likewise.
22601 (grub_host_to_target64): Likewise.
22602 (grub_host_to_target32): Likewise.
22603 (grub_host_to_target16): Likewise.
22604 (grub_host_to_target_addr): Likewise.
22605 (generate_image): Handle multiimage.
22606 (main): Require -O parameter. All users updated.
22607 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
22608 util/efi/grub-mkimage.c
22609 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
22610 New option --rom-directory.
22611 Use xorriso.
22612 * util/i386/efi/grub-mkimage.c: Removed.
22613 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
22614 (grub_target_to_host32): Likewise.
22615 (grub_target_to_host64): Likewise.
22616 (grub_host_to_target16): Likewise.
22617 (grub_host_to_target32): Likewise.
22618 (grub_host_to_target64): Likewise.
22619 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
22620 (grub_target_to_host32): Likewise.
22621 (grub_target_to_host64): Likewise.
22622 (grub_host_to_target16): Likewise.
22623 (grub_host_to_target32): Likewise.
22624 (grub_host_to_target64): Likewise.
22625
f4fc97d0
BC
226262010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
22627
22628 Source tree is reorganized for emu build.
22629
22630 * include/grub/util/console.h: Move from here...
22631 * include/grub/emu/console.h: ...to here.
22632 * include/grub/util/getroot.h: Move from here...
22633 * include/grub/emu/getroot.h: ...to here.
22634 * include/grub/util/hostdisk.h: Move from here...
22635 * include/grub/emu/hostdisk.h: ...to here.
22636 * util/console.c: Move from here...
22637 * kern/emu/console.c: ...to here.
22638 * util/getroot.c: Move from here...
22639 * kern/emu/getroot.c: ...to here.
22640 * util/grub-emu.c: Move from here...
22641 * kern/emu/main.c: ...to here.
22642 * util/hostdisk.c: Move from here...
22643 * kern/emu/hostdisk.c: ...to here.
22644 * util/hostfs.c: Move from here...
22645 * kern/emu/hostfs.c: ...to here.
22646 * util/mm.c: Move from here...
22647 * kern/emu/mm.c: ...to here.
22648 * util/pci.c: Move from here...
22649 * bus/emu/pci.c: ...to here.
22650 * util/sdl.c: Move from here...
22651 * video/emu/sdl.c: ...to here.
22652 * util/time.c: Move from here...
22653 * kern/emu/time.c: ...to here.
22654 * util/usb.c: Move from here...
22655 * bus/usb/emu/usb.c: ...to here.
22656
22657 * include/grub/emu/misc.h: New header for grub-emu functions.
22658 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
22659
22660 * conf/any-emu.rmk: Rule updates for above renames.
22661 * conf/common.rmk: Likewise.
22662 * conf/i386-pc.rmk: Likewise.
22663 * conf/i386-qemu.rmk: Likewise.
22664 * conf/mips.rmk: Likewise.
22665 * conf/sparc64-ieee1275.rmk: Likewise.
22666 * conf/x86-efi.rmk: Likewise.
22667
22668 * disk/lvm.h: #include updates for above renames.
22669 * util/grub-mkrelpath.c: Likewise.
22670 * util/grub-probe.c: Likewise.
22671 * util/i386/pc/grub-setup.c: Likewise.
22672 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22673 * kern/emu/console.c: Likewise.
22674 * kern/emu/getroot.c: Likewise.
22675 * kern/emu/hostdisk.c: Likewise.
22676 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
22677
22678 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
22679 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
22680 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
22681 * util/misc.c: Remove grub-emu functions.
22682
cced9145
VS
226832010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
22684
22685 Fix gfxmenu crash.
22686 Reported by: Thorsten Grützmacher.
22687
22688 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
22689 timeout hook.
22690 (circprog_set_property): Register and unregister timeout hook.
22691 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
22692 (label_destroy): Free template. and unregister hook.
22693 (label_set_state): New function.
22694 (label_set_property): Handle templates and hooks.
22695 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
22696 timeout hook.
22697 (progress_bar_set_property): Register and unregister timeout hook.
22698 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
22699 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
22700 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
22701 (update_timeout_visit): Removed.
22702 (update_timeouts): New function.
22703 (redraw_timeouts): Likewise.
22704 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
22705 (grub_gfxmenu_clear_timeout): Likewise.
22706 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
22707 (grub_gfxmenu_timeout_notify): Likewise.
22708 (grub_gfxmenu_timeout_notifications): New external variable.
22709 (grub_gfxmenu_timeout_register): New function.
22710 (grub_gfxmenu_timeout_unregister): Likewise.
22711
c6e5caab
VS
227122010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22713
22714 Transform (broken) vga terminal into (working) vga video driver.
22715
22716 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
22717 video/i386/pc/vga.c.
22718 * include/grub/video.h (grub_video_driver_id):
22719 Add GRUB_VIDEO_DRIVER_VGA.
22720 * term/i386/pc/vga.c: Renamed to ...
22721 * video/i386/pc/vga.c: ...this
22722 (DEBUG_VGA): Removed.
22723 (CHAR_WIDTH): Likewise.
22724 (CHAR_HEIGHT): Likewise.
22725 (TEXT_WIDTH): Likewise.
22726 (TEXT_HEIGHT): Likewise.
22727 (DEFAULT_FG_COLOR): Likewise.
22728 (DEFAULT_BG_COLOR): Likewise.
22729 (colored_char): Likewise.
22730 (xpos): Likewise.
22731 (ypos): Likewise.
22732 (cursor_state): Likewise.
22733 (fg_color): Likewise.
22734 (bg_color): Likewise.
22735 (text_buf): Likewise.
22736 (page): Likewise.
22737 (font): Likewise.
22738 (framebuffer): New variable.
22739 (set_read_map): Disabled.
22740 (setup): New variable.
22741 (is_target): Likewise.
22742 (grub_vga_mod_init): Likewise.
22743 (grub_vga_mod_fini): Likewise.
22744 (check_vga_mem): Likewise.
22745 (write_char): Likewise.
22746 (write_cursor): Likewise.
22747 (scroll_up): Likewise.
22748 (grub_vga_putchar): Likewise.
22749 (grub_vga_getcharwidth): Likewise.
22750 (grub_vga_getwh): Likewise.
22751 (grub_vga_getxy): Likewise.
22752 (grub_vga_gotoxy): Likewise.
22753 (grub_vga_cls): Likewise.
22754 (grub_vga_setcolorstate): Likewise.
22755 (grub_vga_setcursor): Likewise.
22756 (grub_video_vga_init): New function.
22757 (grub_video_vga_setup): Likewise.
22758 (grub_video_vga_fini): Likewise.
22759 (update_target): Likewise.
22760 (grub_video_vga_blit_bitmap): Likewise.
22761 (grub_video_vga_blit_render_target): Likewise.
22762 (grub_video_vga_set_active_render_target): Likewise.
22763 (grub_video_vga_get_active_render_target): Likewise.
22764 (grub_video_vga_swap_buffers): Likewise.
22765 (grub_video_vga_set_palette): Likewise.
22766 (grub_video_vga_get_info_and_fini): Likewise.
22767 (grub_vga_term): Removed.
22768 (grub_video_vga_adapter): New variable.
22769 (GRUB_MOD_INIT): Register a video driver instead of terminal.
22770 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
22771
2bf61a98
VS
227722010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22773
22774 * video/readers/jpeg.c: Indented.
22775
09ddcd11
VS
227762010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22777
22778 Various jpeg cleanups.
22779
22780 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
22781 (grub_jpeg_decode_quan_table): Use sizeof.
22782 (grub_jpeg_decode_du): Use ARRAY_SIZE.
22783
e5507505
PH
227842010-05-05 Peter Hurley <No e-mail available> (tiny change)
22785
22786 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
22787 tables. Ignore non-last ac bit.
22788 (grub_jpeg_decode_quan_table): Likewise.
22789
7e720a9b
VS
227902010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
22793 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
22794 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22795 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
22796 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
22797 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
22798
a7fc080b
VS
227992010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22800
22801 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
22802 error.
22803
2bf6012d
VS
228042010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22805
22806 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
22807
265d68cd
VS
228082010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22809
22810 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22811 condition.
22812
228132010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22814
22815 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22816 part.
22817
265d68cd 228182010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22819
22820 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22821 pointers.
22822
265d68cd 228232010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22824
22825 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22826
d1b61374
CF
228272010-05-01 Christian Franke <franke@computer.org>
22828
22829 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22830 Remove broken Cygwin path conversion.
22831 * util/misc.c: [__CYGWIN__] Add include and define.
22832 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22833 for Cygwin 1.7.
22834 (make_system_path_relative_to_its_root): Simplify loop, replace early
22835 return by break.
22836 [__CYGWIN__] Add conversion to win32 path.
22837 Include "/" case in trailing slash removal.
22838
3558c6e9
VS
228392010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22840
22841 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22842 Reported by: Seth Goldberg
22843
f5f3ff93
VS
228442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22845
22846 * commands/help.c (grub_cmd_help): Fix a typo.
22847 Reported by: Seth Goldberg
22848
d8b5cd40
VS
228492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22850
22851 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
22852 name and add N_.
22853 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
22854 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
22855 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
22856 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
22857 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
22858 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
22859 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
22860 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22861 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22862 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22863 * normal/context.c (GRUB_MOD_INIT): Likewise.
22864 * normal/main.c (GRUB_MOD_INIT): Likewise.
22865 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22866 * term/serial.c (GRUB_MOD_INIT): Likewise.
22867 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22868
88c14915
VS
228692010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22870
22871 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22872 extra == 0.
22873
165134bc
VS
228742010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22875
22876 * commands/iorw.c: New file.
22877 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22878 (iorw_mod_SOURCES): New variable.
22879 (iorw_mod_CFLAGS): Likewise.
22880 (iorw_mod_LDFLAGS): Likewise.
22881
c5ac9b32
VS
228822010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22883
22884 Hotkey support
22885
22886 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22887 * normal/main.c (hotkey_aliases): New variable.
22888 (grub_normal_add_menu_entry): Parse "--hotkey".
22889 * normal/menu_text.c (run_menu): Handle hotkeys.
22890
ce60689c
VS
228912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22892
22893 * kern/i386/coreboot/init.c (grub_machine_init): Call
22894 grub_machine_mmap_init on qemu.
22895
0359d006
VS
228962010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22897
22898 * boot/i386/qemu/boot.S: Add a missing .code16.
22899
7819a456
VS
229002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22901
22902 Use LBIO on coreboot.
22903
22904 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22905 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22906 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22907 New declaration.
22908 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22909 grub_machine_mmap_init on coreboot.
22910 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22911 GRUB_LINUXBIOS_MEMBER_LINK.
22912 (grub_machine_mmap_iterate): Fix declaration.
22913 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22914
7210dca9
VS
229152010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22916
22917 Split coreboot and multiboot ports.
22918
22919 * conf/i386-multiboot.rmk: New file.
22920 * configure.ac: Add multiboot port.
22921 * include/grub/i386/multiboot/boot.h: New file.
22922 * include/grub/i386/multiboot/console.h: Likewise.
22923 * include/grub/i386/multiboot/init.h: Likewise.
22924 * include/grub/i386/multiboot/kernel.h: Likewise.
22925 * include/grub/i386/multiboot/loader.h: Likewise.
22926 * include/grub/i386/multiboot/memory.h: Likewise.
22927 * include/grub/i386/multiboot/serial.h: Likewise.
22928 * include/grub/i386/multiboot/time.h: Likewise.
22929 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22930 * loader/multiboot.c: Likewise.
22931 * loader/multiboot_mbi2.c: Likewise.
22932 * util/grub-mkrescue.in: Generate multiboot rescue.
22933
6f8aaf68
VS
229342010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22935
3080f7a7
VS
22936 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22937
229382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22941
22942 * commands/terminal.c (abstract_terminal): New struct.
22943 (handle_command): New function. Based on grub_cmd_terminal_input.
22944 (grub_cmd_terminal_input): Use handle_command.
22945 (grub_cmd_terminal_output): Use handle_command.
22946
a8ebb841
BC
229472010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22948
22949 Fix comment handling.
22950
22951 * tests/grub_script_comments.in: New testcase.
22952 * conf/tests.rmk: Rules for new testcase.
22953 * script/yylex.l: Updated flex rules.
22954
bb06ba08
ST
229552010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22956
22957 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22958 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22959 if argc is 1.
bb06ba08 22960
cc9d2425
VS
229612010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22962
22963 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22964 autogen issues.
22965
460d8402
CF
229662010-04-26 Christian Franke <franke@computer.org>
22967
22968 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22969 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22970 (grub_get_prefix): Remove function.
22971 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22972 make_system_path_relative_to_its_root ().
22973 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22974
553c01f9
CF
229752010-04-24 Christian Franke <franke@computer.org>
22976
22977 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22978 (kernel_img_LDFLAGS): Remove -static-libgcc.
22979
2aec1692
CF
229802010-04-24 Christian Franke <franke@computer.org>
22981
22982 * configure.ac: Do not CHECK_BSS_START_SYMBOL
22983 and CHECK_END_SYMBOL if grub-emu is built.
22984 Unset TARGET_OBJ2ELF if grub-emu is built
22985 without module support.
22986
f67dc308
JS
229872010-04-24 Jiro SEKIBA <jir@unicus.jp>
22988
22989 Nilfs2 support.
22990
22991 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
22992 (grub_fstest_SOURCES): Likewise.
22993 (pkglib_MODULES): Add nilfs2.mod.
22994 (nilfs2_mod_SOURCES): New variable.
22995 (nilfs2_mod_CFLAGS): Likewise.
22996 (nilfs2_mod_LDFLAGS): Likewise.
22997 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22998 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22999 * fs/nilfs2.c: New file.
23000
4ba8d354
VS
230012010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23002
23003 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23004 is not supported.
23005
0d2c20c6
GS
230062010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23007
23008 Add grub-mkconfig support for NetBSD.
23009
23010 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23011 * util/grub-mkconfig.in: export new NetBSD specific variables.
23012 * po/POTFILES-shell: added 10_netbsd.in.
23013 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23014
bc4a2d83
BC
230152010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23016
23017 Fix emu build with grub-emu-pci and grub-emu-modules.
23018
23019 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23020 functions.
23021 * include/grub/libpciaccess.h: New file.
23022 * conf/any-emu.rmk: Update kernel headers for emu build.
23023
f48c87aa
VS
230242010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23025
23026 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23027
18959385
VS
230282010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23031
0037de3f
VS
230322010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23035 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23036 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23037 util/ieee1275/ofpath.c.
23038 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23039 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23040 * include/grub/sparc64/ieee1275/boot.h
23041 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23042 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23043 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23044 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23045 const char *.
23046 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23047 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23048 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23049 install.
23050
38e55e90
GS
230512010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23052
23053 * util/grub-mkconfig.in: Corrected two == equality tests.
23054 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23055 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23056 expect a number appended to it.
23057 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23058 expects a number appended to it.
23059
a9e6ff28
VS
230602010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23063
0b830b8f
VS
230642010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23065
23066 * util/hostdisk.c (make_device_name): Change to new partition naming.
23067
0973daeb
VS
230682010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23069
23070 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23071
460d8402 230722010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
23073
23074 * Makefile.in: Add missing localedir setting.
23075
0b456309
CW
230762010-04-14 Colin Watson <cjwatson@ubuntu.com>
23077
23078 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23079 mistake in r2156. Noticed by Anthony Fok.
23080
23081 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23082 @localedir@.
23083 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23084
08f46d62
BC
230852010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23086
23087 Fix a spurious, uninitialized variable warning.
23088
23089 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23090 Initialize variable, shdr.
23091 (grub_freebsd_load_elfmodule): Likewise.
23092 (grub_freebsd_load_elf_meta): Likewise.
23093
8c4a72d4
BC
230942010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23095
23096 Fix for escaped dollar in double quoted strings.
23097
23098 * script/yylex.l: Updated flex rules.
23099 * conf/tests.rmk: Rule for new testcase.
23100 * tests/grub_script_dollar.in: New testcase.
23101
ce44826e
CPE
231022010-04-13 Carles Pina i Estany <carles@pina.cat>
231032010-04-13 Colin Watson <cjwatson@ubuntu.com>
23104
23105 Enclose all translated strings in grub.cfg in single quotes, and
23106 escape them appropriately (Ubuntu bug #552921).
23107
23108 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23109 * util/grub.d/10_hurd.in: Use it.
23110 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23111 * util/grub.d/10_linux.in (linux_entry): Likewise.
23112
4b0cd8f8
VS
231132010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23114
23115 Fix cygwin compilation.
23116
23117 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23118 * include/grub/misc.h (__register_frame_info)
23119 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23120 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23121 * kern/misc.c (__register_frame_info)
23122 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23123 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23124
01fcf061
VS
231252010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23126
23127 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23128
5d04b11e
VS
231292010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23130
23131 Unify libgcc processing.
23132
23133 * Makefile.in (kernel_img_LDFLAGS): New variable.
23134 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23135 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23136 overwriting.
23137 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23138 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23139 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23140 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23141 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23142 overwriting. Remove -lgcc and -static-libgcc
23143 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23144 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23145 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23146 (kernel_img_LDFLAGS): Append instead of overwriting.
23147 Remove -lgcc and -static-libgcc
23148 * conf/sparc64-ieee1275.rmk: Likewise.
23149 * include/grub/powerpc/libgcc.h: Move to ...
23150 * include/grub/libgcc.h: .. this.
23151 * include/grub/libgcc.h: Don't export most of the function on x86.
23152 (__bswapsi2): New export.
23153 (__bswapdi2): Likewise.
23154 * include/grub/mips/libgcc.h: Removed.
23155 * include/grub/sparc64/libgcc.h: Likewise.
23156
b7f3ac29
VS
231572010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23158
23159 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23160 disk_info_msg (conflicts with gettexting into languages with cases).
23161
2c7031b1
GS
231622010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23163
23164 Add grub-probe support for NetBSD.
23165
23166 * util/getroot.c (find_root_device): Convert block device to
23167 character device on NetBSD.
23168 * util/probe.c (probe): Require character device on NetBSD.
23169 * util/hostdisk.c: NetBSD specific headers.
23170 (configure_device_driver): new function to tune device driver
23171 parameters (currently only for NetBSD floppy driver).
23172 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23173 via disklabel ioctl).
23174 (open_device): call configure_device_driver on NetBSD.
23175 (convert_system_partition_to_system_disk): NetBSD specific code.
23176 (device_is_wholedisk): Likewise.
23177 (grub_util_biosdisk_get_grub_dev): Likewise.
23178 (make_device_name): Fixed a typo in bsd_part_str.
23179 * configure.ac: check for opendisk() and getrawpartition() on
23180 NetBSD and set LIBUTIL.
23181 * Makefile.in: add LIBUTIL to LIBS.
23182
f516290c
BC
231832010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23184
23185 Documentation fix.
23186
23187 * util/grub-script-check.c: Better help message.
23188
d8dcc0df
BC
231892010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23190
23191 Fix FreeBSD build.
23192
23193 * configure.ac: Flex version check.
23194 * conf/common.rmk: Add -Wno-error to sh.mod.
23195 * script/yylex.l: Remove all #pragma.
23196
6734334a
VS
231972010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23198
23199 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23200 prototype.
23201 Reported by: Seth Goldberg.
23202
daea6abd
VS
232032010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23204
23205 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23206 Rename "module" to "module2".
23207 Reported by: Seth Goldberg.
23208
f2fd9d2b
VS
232092010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23210
23211 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23212 EXPORT_FUNC.
23213 Reported by: Seth Goldberg.
23214
be124579
VS
232152010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23216
23217 * lib/posix_wrap/locale.h: Add missing file.
23218 Reported by: Seth Goldberg.
23219
ef5da797
VS
232202010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 grub-emu module load support.
23223
23224 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23225 NO_DYNAMIC_MODULES switched to this.
23226 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23227 (CFLAGS): Likewise.
23228 * conf/any-emu.rmk: Generate symlist.
23229 (kernel_img_HEADERS): Add util/datetime.h.
23230 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23231 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23232 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23233 kern/$(target_cpu)/cache.S.
23234 * configure.ac (grub-emu-modules): New option.
23235 * genmk.rb: Handle multiple source lists.
23236 * include/grub/sdl.h: New file.
23237 * include/grub/libusb.h: Likewise.
23238 * util/grub-emu.c (main): Hanle (host) root.
23239 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23240 GRUB_ERR_UNKNOWN_DEVICE.
23241 * util/misc.c: Move mm functions to ...
23242 * util/mm.c: ... here. All users updated.
23243
47822096
VS
232442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23245
23246 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23247 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23248 missing files.
23249 (maintainer-clean): Remove libgcrypt-grub.
23250
5d7e7445
VS
232512010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23254
25f4e252
EC
232552010-04-09 EFI Coder <eficoder@hotmail.com>
23256
23257 * normal/menu_text.c (print_message): Clean up the message and show
23258 the Fn information when on EFI
23259 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23260
027de555
VS
232612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23262
23263 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23264 All users updated.
23265 * normal/crypto.c (read_crypto_list): Likewise.
23266 * normal/dyncmd.c (read_command_list): Likewise.
23267 * normal/term.c (read_terminal_list): Likewise.
23268 * normal/main.c (read_lists): Use explicit prefix.
23269 (read_lists_hook): Use read_lists.
23270 (grub_normal_execute): Likewise.
23271
47779711
VS
232722010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23273
23274 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23275 Reported by: Thomas Schmitt.
23276 Add -no-emul-boot to grub-mkisofs parameters.
23277
1118c32e
VS
232782010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23279
23280 * font/font.c: Indented.
23281
7d652447
BC
232822010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23283
23284 Elif support to GRUB script (by Deepak Vankadaru).
23285
23286 * tests/grub_script_if.in: New testcase.
23287 * conf/tests.rmk: Rule for new testcase.
23288 * script/parser.y: Grammar rules for elif.
23289
34bb22df
BC
232902010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23291
23292 While and until loops support to GRUB script.
23293
23294 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
23295 (grub_script_create_cmdwhile): New function prototype.
23296 (grub_script_execute_cmdwhile): New function prototype.
23297 * script/execute.c (grub_script_execute_cmdwhile): New function.
23298 * script/parser.y (command): New commands.
23299 (whilecmd): New grammar rule.
23300 (untilcmd): New grammar rule.
23301 * script/script.c (grub_script_create_cmdwhile): New function.
23302 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
23303 function.
23304
23305 * tests/grub_script_while1.in: New testcase.
23306 * conf/tests.rmk: Rule for new testcase.
23307
e215d8e0
VS
233082010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23309
23310 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
23311 as *.jpg.
23312
d7c43ba1
MV
233132010-04-09 Mario Vazquez <mariovazq@gmail.com>
23314
23315 GRUB_BACKGROUND support.
23316
23317 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
23318 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
23319
d64795c0
VS
233202010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23321
23322 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 23323 Idea by: Mario Vazquez
d64795c0
VS
23324
23325 * util/grub.d/00_header.in: Load pf2 and image modules.
23326
f267f83a
VS
233272010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23328
23329 grub-mkconfig multiple terminal support.
23330
23331 * util/grub-mkconfig.in: Handle multiple terminals correctly.
23332 * util/grub.d/00_header.in: Likewise.
23333
b7841ceb
VS
233342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23335
23336 * Makefile.in: Specify files explicitly instead of using $< and $@ since
23337 we use cd $(srcdir).
23338
df60998c
CW
233392010-04-08 Colin Watson <cjwatson@ubuntu.com>
23340
23341 * util/grub.d/10_linux.in: Only use the first word of
23342 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
23343 spaces in GRUB_DISTRIBUTOR.
23344 * util/grub.d/10_kfreebsd.in: Likewise.
23345 * util/grub.d/10_hurd.in: Likewise.
23346
fa09c82e
BC
233472010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
23348
14e18ae3 23349 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
23350
23351 * tests/util/grub-shell.in: Remove -serial stdio option.
23352
daf892b3
BC
233532010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23354
23355 POSIX header file wrappers.
23356
23357 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
23358 equivalents.
23359 * lib/posix_wrap/ctype.h: Likewise.
23360 * lib/posix_wrap/errno.h: Likewise.
23361 * lib/posix_wrap/langinfo.h: Likewise.
23362 * lib/posix_wrap/limits.h: Likewise.
23363 * lib/posix_wrap/localcharset.h: Likewise.
23364 * lib/posix_wrap/stdint.h: Likewise.
23365 * lib/posix_wrap/stdio.h: Likewise.
23366 * lib/posix_wrap/stdlib.h: Likewise.
23367 * lib/posix_wrap/string.h: Likewise.
23368 * lib/posix_wrap/sys/types.h: Likewise.
23369 * lib/posix_wrap/unistd.h: Likewise.
23370 * lib/posix_wrap/wchar.h: Likewise.
23371 * lib/posix_wrap/wctype.h: Likewise.
23372 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
23373 (grub_script.yy.h): Likewise.
23374 * script/yylex.l: Remove POSIX emulation #defines.
23375 * Makefile.in (POSIX_CFLAGS): New variable.
23376 (GNULIB_UTIL_CFLAGS): Likewise.
23377
23378 Regexp support.
23379
23380 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
23381 (regexp_mod_SOURCES): New variable.
23382 (regexp_mod_CFLAGS): Likewise.
23383 (regexp_mod_LDFLAGS): Likewise.
23384 * commands/regexp.c: New file.
23385 * gnulib/regcomp.c: New file. Imported from gnulib.
23386 * gnulib/regex.c: Likewise.
23387 * gnulib/regex_internal.c: Likewise.
23388 * gnulib/regex_internal.h: Likewise.
23389 * gnulib/regexec.c: Likewise.
23390 * gnulib/regex.h: Likewise.
23391
974ac4f7
VS
233922010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23393
23394 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
23395 unsupported video mode types.
23396
2622c3ff
VS
233972010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23398
23399 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
23400
064cb524
VS
234012010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
23404 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
23405
a8c3b552
VS
234062010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23407
23408 Remove unused grub_vga_get_font.
23409
23410 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
23411 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
23412
187bbe3d
GS
234132010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23414
23415 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
23416 * include/grub/misc.h: Likewise.
23417
b9396631
GS
234182010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23419
23420 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
23421 for which failure is fatal.
23422
50479feb
GS
234232010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23424
23425 * util/grub-install.in: Use mkdir -p to create grub directory.
23426 * util/i386/efi/grub-install.in: Likewise.
23427 * util/ieee1275/grub-install.in: Likewise.
23428
b1654fdf
GS
234292010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23430
23431 * Makefile.in (LEX): new variable.
23432
bd5a6415
GS
234332010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23434
23435 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
23436 `=' and added double quotes on operands of this equality test.
23437
3db3a82b
VS
234382010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23439
23440 * Makefile.in (uninstall): Remove a leftover debug echo.
23441 Reported by: Grégoire Sutre
23442
38023412
VS
234432010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23444
23445 MIPS multiboot2 support.
23446
23447 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
23448 (multiboot2_mod_SOURCES): New variable.
23449 (multiboot2_mod_CFLAGS): Likewise.
23450 (multiboot2_mod_LDFLAGS): Likewise.
23451 (multiboot2_mod_ASFLAGS): Likewise.
23452 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
23453 definition.
23454 (MULTIBOOT_ENTRY_REGISTER): Likewise.
23455 (MULTIBOOT_MBI_REGISTER): Likewise.
23456 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
23457 (MULTIBOOT_ELF32_MACHINE): Likewise.
23458 (MULTIBOOT_ELF64_MACHINE): Likewise.
23459 * include/grub/mips/multiboot.h: New file.
23460 * include/grub/video.h (grub_video_driver_id): New type
23461 GRUB_VIDEO_DRIVER_SM712.
23462 (grub_video_get_info_and_fini): Export.
23463 (grub_video_get_palette): Likewise.
23464 (grub_video_get_driver_id): Likewise.
23465 * include/multiboot2.h: Resynced with spec.
23466 * loader/i386/multiboot.c: Moved from here ...
23467 * loader/multiboot.c: ... here. All users updated.
23468 (grub_multiboot_boot): Use platform-specific macros.
23469 * loader/i386/multiboot_elfxx.c: Moved from here ...
23470 * loader/multiboot_elfxx.c: ... here. All users updated.
23471 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
23472 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
23473 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
23474
47674667
VS
234752010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
23476
23477 Import gnulib argp module.
23478
23479 * gnulib/argp-ba.c: New file.
23480 * gnulib/argp-eexst.c: Likewise.
23481 * gnulib/argp-fmtstream.c: Likewise.
23482 * gnulib/argp-fmtstream.h: Likewise.
23483 * gnulib/argp-fs-xinl.c: Likewise.
23484 * gnulib/argp-help.c: Likewise.
23485 * gnulib/argp-namefrob.h: Likewise.
23486 * gnulib/argp-parse.c: Likewise.
23487 * gnulib/argp-pin.c: Likewise.
23488 * gnulib/argp-pv.c: Likewise.
23489 * gnulib/argp-pvh.c: Likewise.
23490 * gnulib/argp-version-etc.c: Likewise.
23491 * gnulib/argp-version-etc.h: Likewise.
23492 * gnulib/argp-xinl.c: Likewise.
23493 * gnulib/argp.h: Likewise.
23494
495442ed
VS
234952010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 * kern/device.c (grub_device_iterate): Clear errors after failed
23498 opening device.
23499
f9fd65df
VS
235002010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
23503 returned by firmware.
23504
af09641e
VS
235052010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
23506
23507 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
23508 compilation on coreboot and qemu
23509
016883a5
VS
235102010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23511
23512 * include/multiboot2.h: Resync with spec.
23513
f97e1f7d
VS
235142010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23515
23516 Multiboot2 tag support
23517
23518 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
23519 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
23520 Remove loader/multiboot_loader.c.
23521 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
23522 (grub_multiboot2_real_boot): Likewise.
23523 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
23524 (grub_get_multiboot_mmap_count): New proto.
23525 (grub_fill_multiboot_mmap): Likewise.
23526 (grub_multiboot_set_video_mode): Likewise.
23527 (grub_multiboot_set_console): Likewise.
23528 (grub_multiboot_load): Likewise.
23529 (grub_multiboot_load_elf): Likewise.
23530 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
23531 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
23532 * include/multiboot.h: Resynced with specification.
23533 * include/multiboot2.h: Resynced with specification.
23534 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
23535 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
23536 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
23537 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
23538 users updated.
23539 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
23540 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
23541 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
23542 Removed.
23543 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
23544 Moved from here...
23545 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
23546 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23547 Moved from here...
23548 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
23549 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
23550 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
23551 All users updated.
23552 * loader/i386/multiboot_mbi2.c: New file.
23553
3506b90b
VS
235542010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23555
23556 Resync with gnulib.
23557
23558 * Makefile.in (GNULIB_CFLAGS): New variable.
23559 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
23560 (grub_script_check_CFLAGS): New variable.
23561 * gnulib/alloca.h: Resync with gnulib.
23562 * gnulib/error.c: Likewise.
23563 * gnulib/error.h: Likewise.
23564 * gnulib/fnmatch.c: Likewise.
23565 * gnulib/fnmatch_loop.c: Likewise.
23566 * gnulib/getdelim.c: Likewise.
23567 * gnulib/getline.c: Likewise.
23568 * gnulib/getopt.c: Likewise.
23569 * gnulib/getopt1.c: Likewise.
23570 * gnulib/getopt_int.h: Likewise.
23571 * gnulib/gettext.h: Likewise.
23572 * gnulib/progname.c: Likewise.
23573 * gnulib/progname.h: Likewise.
23574
394a3120
GS
235752010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
23576
23577 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
23578 which is the case with --disabled-nls.
23579
23580 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
23581 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
23582 * util/misc.c: Likewise.
23583 * util/mkisofs/mkisofs.c: Likewise.
23584 * util/mkisofs/mkisofs.h: Likewise.
23585
969d1c78
VS
235862010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23587
23588 Simplify Apple CC support.
23589
23590 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
23591 Add 0 byte at the end not to have a symbol with empty target.
23592 * mmap/i386/pc/mmap_helper.S: Likewise.
23593 * genmk.rb: Ignore errors 2030 and 2050.
23594 * kern/i386/pc/startup.S: Use LOCAL when possible.
23595
8d2977bb
BC
235962010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
23597
23598 Testcase and the fix for final semicolon on cmdline.
23599
23600 * tests/grub_script_final_semicolon.in: New testcase.
23601 * conf/tests.rmk: Rules for the new testcase.
23602 * script/parser.y: Grammar fix.
23603
a7bd6915
BC
236042010-03-26 BVK Chaitanya <bvk@localhost>
23605
23606 Blank lines testcase for GRUB script.
23607
23608 * tests/grub_script_blanklines.in: New testcase.
23609 * conf/tests.rmk: Rules for the new testcase.
23610
e4ff6628
VS
236112010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23612
23613 Don't use __FILE__.
23614
23615 * genmk.rb: Add -DGRUB_FILE to all C targets.
23616 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
23617 * include/grub/list.h: Likewise.
23618 * include/grub/misc.h: Likewise.
23619 * include/grub/mm.h: Likewise.
23620 * include/grub/test.h: Likewise.
23621 * kern/mm.c: Likewise.
23622 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23623
6a5cf6b6
VS
236242010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 Sunpc partitions support.
23627
23628 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
23629 (grub_fstest_SOURCES): Likewise.
23630 (pkglib_MODULES): Add part_sunpc.mod.
23631 (part_sunpc_mod_SOURCES): New variable.
23632 (part_sunpc_mod_CFLAGS): Likewise.
23633 (part_sunpc_mod_LDFLAGS): Likewise.
23634 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
23635 * partmap/sunpc.c: New file.
23636
746d9045
BC
236372010-03-26 BVK Chaitanya <bvk@localhost>
23638
23639 For loop support to GRUB script.
23640
23641 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
23642 (grub_script_create_cmdfor): New function prototype.
23643 (grub_script_execute_cmdfor): New function prototype.
23644 * script/execute.c (grub_script_execute_cmdfor): New function.
23645 * script/parser.y (command): New for command.
23646 (forcmd): New grammar rule.
23647 * script/script.c (grub_script_create_cmdfor): New function.
23648 * util/grub-script-check.c (grub_script_execute_cmdfor): New
23649 function.
23650 * tests/grub_script_for1.in: New testcase.
23651 * conf/tests.rmk: Rules for new testcase.
23652
18486b18
VS
236532010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23654
23655 Nested partitions
23656
23657 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
23658 'partition' is NULL, grub_partition_get_start already does that.
23659 * commands/loadenv.c (check_blocklists): Likewise.
23660 (write_blocklists): Likewise.
23661 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
23662 (grub_fstest_SOURCES): Likewise.
23663 (pkglib_MODULES): Add part_bsd.mod.
23664 (part_bsd_mod_SOURCES): New variable.
23665 (part_bsd_mod_CFLAGS): Likewise.
23666 (part_bsd_mod_LDFLAGS): Likewise.
23667 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
23668 (grub_emu_SOURCES): Likewise.
23669 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23670 * include/grub/bsdlabel.h: New file.
23671 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
23672 'get_name'.
23673 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
23674 (grub_partition_map_list): New variable.
23675 (grub_partition_map_register): Inline.
23676 (grub_partition_map_unregister): Likewise.
23677 (FOR_PARTITION_MAPS): New macro.
23678 (grub_partition_map_iterate): Removed.
23679 (grub_partition_get_start): Handle nested partitions.
23680 * include/grub/msdos_partition.h: Remove bsd-related entries.
23681 (grub_pc_partition): Remove.
23682 * kern/disk.c (grub_disk_close): Free partition data.
23683 (grub_disk_adjust_range): Handle nested partitions.
23684 * kern/partition.c (grub_partition_map_probe): New function.
23685 (grub_partition_probe): Parse name to number, handle subpartitions.
23686 (get_partmap): New function.
23687 (grub_partition_iterate): Handle subpartitions.
23688 (grub_partition_get_name): Likewise.
23689 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
23690 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
23691 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
23692 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
23693 Set 'number'.
23694 (acorn_partition_map_probe): Remove.
23695 (acorn_partition_map_get_name): Likewise.
23696 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
23697 Set 'number'.
23698 Set 'index' to 0 since there can be only one partition entry per sector.
23699 (amiga_partition_map_probe): Remove.
23700 (amiga_partition_map_get_name): Likewise.
23701 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
23702 Set 'number'.
23703 Set 'offset' and 'index' to real positions of partitions.
23704 (apple_partition_map_probe): Remove.
23705 (apple_partition_map_get_name): Likewise.
23706 * partmap/bsdlabel.c: New file.
23707 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
23708 Set 'number'.
23709 Allocate 'data' so it can be correctly freed.
23710 Set 'index' to offset inside sector.
23711 (gpt_partition_map_probe): Remove.
23712 (gpt_partition_map_get_name): Likewise.
23713 * partmap/msdos.c (grub_partition_parse): Remove.
23714 (pc_partition_map_iterate): Don't force raw access.
23715 Set 'number'.
23716 Make 'ext_offset' a local variable.
23717 (pc_partition_map_probe): Remove.
23718 (pc_partition_map_get_name): Remove.
23719 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
23720 Set 'number'.
23721 (sun_partition_map_probe): Remove.
23722 (sun_partition_map_get_name): Likewise.
23723 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
23724 (grub_pcpart_type): Likewise.
23725 * util/hostdisk.c (open_device): Handle new numbering scheme.
23726 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
23727 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
23728 * util/grub-probe.c (probe_partmap): Handle nested paritions.
23729 * util/grub-install.in: Insert all subpartition modules.
23730 * util/ieee1275/grub-install.in: Likewise.
23731
a3940f88
AG
237322010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
23733
23734 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
23735 grammar.
23736
21b99926 237372010-03-24 Colin Watson <cjwatson@ubuntu.com>
23738
23739 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
23740
bed1d352
CW
237412010-03-21 Colin Watson <cjwatson@ubuntu.com>
23742
23743 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
23744 match where 'make install' puts them.
23745 * util/i386/efi/grub-install.in: Likewise.
23746
c9f58427
CW
237472010-03-19 Colin Watson <cjwatson@ubuntu.com>
23748
23749 * .bzrignore: Add gentrigtables, grub-script-check,
23750 grub_script_check_init.c, grub_script_check_init.h, and
23751 trigtables.c.
23752
f84afb27
VS
237532010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
23754
23755 * kern/parser.c: Indented.
23756
ed0e3d30
VS
237572010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23758
23759 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
23760
0ea81d98
VS
237612010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23762
23763 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
23764 alpha_mask_size == 0 case.
23765
0cdc2a09
BC
237662010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
23767
23768 GRUB shell lexer and parser improvements.
23769
23770 * conf/any-emu.rmk: Build rule updates.
23771 * conf/common.rmk: Likewise.
23772 * conf/i386-coreboot.rmk: Likewise.
23773 * conf/i386-efi.rmk: Likewise.
23774 * conf/i386-ieee1275.rmk: Likewise.
23775 * conf/i386-pc.rmk: Likewise.
23776 * conf/powerpc-ieee1275.rmk: Likewise.
23777 * conf/x86_64-efi.rmk: Likewise.
23778
23779 * configure.ac: Configure check for flex.
23780
23781 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
23782 types.
23783 (grub_lexer_param): Struct member updates.
23784 (grub_parser_param): Likewise.
23785 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
23786 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
23787 (grub_script_lexer_init): Prototype update.
23788 (grub_script_lexer_record_start): Likewise.
23789 (grub_script_lexer_record_stop): Likewise.
23790 (grub_script_lexer_yywrap): New function prototype.
23791 (grub_script_lexer_fini): Likewise.
23792 (grub_script_execute_argument_to_string): Removed by...
23793 (grub_script_execute_argument_to_argv): ...better version.
23794
23795 * script/execute.c (ROUND_UPTO): New macro.
23796 (grub_script_execute_cmdline): Out of memory fixes.
23797 (grub_script_execute_menuentry): Likewise.
23798 (grub_script_execute_argument_to_string): Removed. Update all
23799 users by...
23800 (grub_script_execute_argument_to_argv): ...better version.
23801 * script/function.c (grub_script_function_create): Use
23802 grub_script_execute_argument_to_argv instead of
23803 grub_script_execute_argument_to_string.
23804
23805 * script/lexer.c (check_varstate): Removed.
23806 (check_textstate): Removed.
23807 (grub_script_lexer_record_start): Likewise.
23808 (grub_script_lexer_record_stop): Likewise.
23809 (recordchar): Replaced with...
23810 (grub_script_lexer_record): ...new function.
23811 (nextchar): Removed.
23812 (grub_script_lexer_init): Rewritten.
23813 (grub_script_yylex): Rewritten.
23814 (append_newline): New function.
23815 (grub_script_lexer_yywrap): New function.
23816 (grub_script_lexer_fini): New function.
23817 (grub_script_yyerror): Sets error flag.
23818
23819 * script/yylex.l: New file.
23820 (grub_lexer_yyfree): Wrapper for flex yyffre.
23821 (grub_lexer_yyalloc): Likewise.
23822 (grub_lexer_yyrealloc): Likewise.
23823 * script/parser.y: Refactored.
23824
23825 * script/script.c (grub_script_arg_add): Out of memory fixes.
23826 (grub_script_add_arglist): Likewise.
23827 (grub_script_create_cmdline): Likewise.
23828 (grub_script_create_cmdmenu): Likewise.
23829 (grub_script_add_cmd): Likewise.
23830 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23831 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23832 unnecessary code.
23833
23834 * tests/grub_script_echo1.in: New testcase.
23835 * tests/grub_script_vars1.in: New testcase.
23836 * tests/grub_script_echo_keywords.in: New testcase.
23837
1d63a066
VS
238382010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23839
23840 Remove some redundancy in build system.
23841
23842 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23843 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23844 (TARGET_LDFLAGS): Add -nostdlib.
23845 (TARGET_IMG_LDFLAGS): Likewise.
23846 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
23847 anything since mmap isn't available.
23848 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
23849 Add util/time.c.
23850 (pkglib_MODULES): Remove reboot.mod.
23851 (reboot_mod_SOURCES): Removed.
23852 (reboot_mod_CFLAGS): Likewise.
23853 (reboot_mod_LDFLAGS): Likewise.
23854 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
23855 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
23856 (DEFSYMFILES): Add kernel_syms.lst.
23857 (kernel_img_HEADERS): Add common headers.
23858 (symlist.c): New target.
23859 (kernel_syms.lst): Likewise.
23860 (pkglib_MODULES): Add memdisk.mod.
23861 (memdisk_mod_SOURCES): New variable.
23862 (memdisk_mod_CFLAGS): Likewise.
23863 (memdisk_mod_LDFLAGS): Likewise.
23864 (pkglib_MODULES): Add reboot.mod.
23865 (reboot_mod_SOURCES): New variable.
23866 (reboot_mod_CFLAGS): Likewise.
23867 (reboot_mod_LDFLAGS): Likewise.
23868 (pkglib_MODULES): Add date.mod.
23869 (date_mod_SOURCES): New variable.
23870 (date_mod_CFLAGS): Likewise.
23871 (date_mod_LDFLAGS): Likewise.
23872 (pkglib_MODULES): Add datehook.mod.
23873 (datehook_mod_SOURCES): New variable.
23874 (datehook_mod_CFLAGS): Likewise.
23875 (datehook_mod_LDFLAGS): Likewise.
23876 (pkglib_MODULES): Add lsmmap.mod.
23877 (lsmmap_mod_SOURCES): New variable.
23878 (lsmmap_mod_CFLAGS): Likewise.
23879 (lsmmap_mod_LDFLAGS): Likewise.
23880 (pkglib_MODULES): Add boot.mod.
23881 (boot_mod_SOURCES): New variable.
23882 (boot_mod_CFLAGS): Likewise.
23883 (boot_mod_LDFLAGS): Likewise.
23884 * conf/i386-coreboot.rmk: Removed redundant parts.
23885 * conf/i386-ieee1275.rmk: Likewise.
23886 * conf/i386-pc.rmk: Likewise.
23887 * conf/mips-yeeloong.rmk: Likewise.
23888 * conf/mips.rmk: Likewise.
23889 * conf/powerpc-ieee1275.rmk: Likewise.
23890 * conf/sparc64-ieee1275.rmk: Likewise.
23891 * conf/x86_64-efi.rmk: Likewise.
23892 * conf/i386-coreboot.rmk: Moved qemu parts ..
23893 * conf/i386-qemu.rmk: ... here
23894 * conf/i386-efi.rmk: Moved common parts to...
23895 * conf/x86-efi.rmk: ... here.
23896 * conf/i386.rmk: Added modules common to all x86 variants.
23897 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23898 * disk/memdisk.c: Remove grub/machine/kernel.h.
23899 * gensymlist.sh.in: Include symbol.h.
23900 * hook/datehook.c: Correct module name.
23901 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23902 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23903 * include/grub/i386/efi/serial.h: New file.
23904 * include/grub/x86_64/efi/serial.h: Likewise.
23905 * util/time.c: Likewise.
23906 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23907
463ac55f
CK
239082010-03-14 Colin King <colin.king@ubuntu.com>
239092010-03-14 Colin Watson <cjwatson@ubuntu.com>
23910
23911 Shrink the pre-partition-table part of boot.img by eight bytes.
23912
23913 * boot/i386/pc/boot.S (ERR): New macro.
23914 (chs_mode): Use ERR.
23915 (geometry_error): Likewise.
23916 (hd_probe_error): Remove. This is only used once, so we wrwite
23917 it inline instead.
23918 (read_error): Instead of printing read_error_string, just set up
23919 %si and fall through to ...
23920 (error_message): ... this new function, also used by ERR.
23921
08e46ede
CW
239222010-03-14 Colin Watson <cjwatson@ubuntu.com>
23923
23924 Speed up consecutive hostdisk operations on the same device.
23925
23926 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23927 (grub_util_biosdisk_open): Initialise disk->data.
23928 (struct linux_partition_cache): New structure.
23929 (linux_find_partition): Cache partition start positions; these are
23930 expensive to compute on every read and write.
23931 (open_device): Cache open file descriptor in disk->data, so that we
23932 don't have to reopen it and flush the buffer cache for consecutive
23933 operations on the same device.
23934 (grub_util_biosdisk_close): New function.
23935 (grub_util_biosdisk_dev): Set `close' member.
23936
23937 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23938 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23939 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23940 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23941 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23942
4a6d2d06
VS
239432010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23944
23945 Compile parts of grub-emu as modules.
23946
23947 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23948 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23949 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23950 (all-local): Add $(GRUB_EMU).
23951 (install-local): Install $(GRUB_EMU).
23952 (uninstall): Uninstall $(GRUB_EMU).
23953 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23954 * kern/dl.c: Likewise.
23955 * commands/sleep.c: Not include machine/time.h.
23956 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23957 (COMMON_CFLAGS): Likewise.
23958 (sbin_UTILITIES): Remove grub-emu.
23959 (grub_emu_SOURCES): Removed.
23960 (kernel_img_RELOCATABLE): New variable.
23961 (pkglib_PROGRAMS): Add kernel.img.
23962 (kernel_img_SOURCES): New variable
23963 (kernel_img_CFLAGS): Likewise.
23964 (kernel_img_LDFLAGS): Likewise.
23965 (TARGET_NO_STRIP): Likewise.
23966 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23967 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23968 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23969 (grub-emu): New target.
23970 (GRUB_EMU): New variable.
23971 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23972 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23973 * loader/xnu.c: Likewise.
23974 * include/grub/pci.h: Likewise.
23975 * genemuinit.sh: New file.
23976 * genemuinitheader.sh: Likewise.
23977 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23978 Support TARGET_NO_DYNAMIC_MODULES.
23979 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23980 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23981 * disk/loopback.c: Likewise.
23982 * font/font_cmd.c: Likewise.
23983 * partmap/acorn.c: Likewise.
23984 * partmap/amiga.c: Likewise.
23985 * partmap/apple.c: Likewise.
23986 * partmap/gpt.c: Likewise.
23987 * partmap/msdos.c: Likewise.
23988 * partmap/sun.c: Likewise.
23989 * parttool/msdospart.c: Likewise.
23990 * term/gfxterm.c: Likewise.
23991 * video/bitmap.c: Likewise.
23992 * video/readers/jpeg.c: Likewise.
23993 * video/readers/png.c: Likewise.
23994 * video/readers/tga.c: Likewise.
23995 * video/video.c: Likewise.
23996 * util/grub-emu.c (read_command_list): Removed.
23997 (main): Don't call util_init_nls.
23998 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
23999 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24000
91fdd2ed
VS
240012010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24002
24003 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24004 date.mod, datehook.mod.
24005 (datetime_mod_SOURCES): New variable.
24006 (datetime_mod_CFLAGS): Likewise.
24007 (datetime_mod_LDFLAGS): Likewise.
24008 (date_mod_SOURCES): Likewise.
24009 (date_mod_CFLAGS): Likewise.
24010 (date_mod_LDFLAGS): Likewise.
24011 (datehook_mod_SOURCES): Likewise.
24012 (datehook_mod_CFLAGS): Likewise.
24013 (datehook_mod_LDFLAGS): Likewise.
24014 * conf/sparc64-ieee1275.rmk: Likewise.
24015 * lib/ieee1275/datetime.c: New file.
24016
873ccae6
VS
240172010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24018
24019 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24020 (ieee1275_fb_mod_SOURCES): New variable.
24021 (ieee1275_fb_mod_CFLAGS): Likewise.
24022 (ieee1275_fb_mod_LDFLAGS): Likewise.
24023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24024 New proto.
24025 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24026 (HEAP_MAX_ADDR): Likewise.
24027 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24028 type.
24029 Correct stop condition.
24030 (grub_ieee1275_devices_iterate): New function.
24031 * video/ieee1275.c: New file.
24032
601c97c0
VS
240332010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24034
24035 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24036
24037 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24038 as scratch.
24039 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24040 SCRATCH_PAD_DISKBOOT as scratch.
24041 (bootit): Pass Openfirmware pointer in %o4.
24042 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24043 of 0x200000.
24044 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24045 with util/grub-mkrawimage.c.
24046 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24047 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24048 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24049 (grub_aout_load) [GRUB_UTIL]: Likewise.
24050 * include/grub/kernel.h (grub_modules_get_end): New proto.
24051 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24052 (SCRATCH_PAD_BOOT): New definition.
24053 (SCRATCH_PAD_DISKBOOT): Likewise.
24054 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24055 * include/grub/sparc64/ieee1275/ieee1275.h
24056 (grub_ieee1275_original_stack): New variable
24057 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24058 New definition
24059 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24060 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24061 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24062 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24063 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24064 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24065 (grub_platform_image_format_t): New type.
24066 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24067 * kern/main.c (grub_modules_get_end)
24068 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24069 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24070 (codestart): Switch stacks.
24071 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24072 variable.
24073 (grub_heap_init): Use grub_modules_get_end.
24074 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24075 stack.
24076 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24077 (main): Likewise.
24078 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24079
d68b491e
TG
240802010-03-14 Thorsten Glaser <tg@mirbsd.org>
24081
24082 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24083
4e02ed50
MK
240842010-03-08 Matt Kraai <kraai@ftbfs.org>
24085
24086 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24087 bug #559005).
24088
1f15fc1e
VS
240892010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24090
24091 * genmoddep.awk: Output all missing symbols and not only first.
24092
fce5d8ff
VS
240932010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24094
24095 * NEWS: Put the date of 1.98 release.
24096
d1e8a02f
VS
240972010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24100 ft2build.h.
24101
696fd607
VS
241022010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24103
24104 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24105 completition in the middle of string.
24106
33e2e6f3
VS
241072010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24108
24109 * util/grub-mkrescue.in: Use mktemp with explicit template.
24110
b1f6d291
VS
241112010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24114
2ac227c7
VS
241152010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24116
24117 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24118 right pointer.
24119
8f9a632b
VS
241202010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24121
24122 Fix FreeBSD compilation.
24123
24124 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24125 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24126
60b03859
VS
241272010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24128
24129 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24130
48a5a769
VS
241312010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24132
24133 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24134
3ab4bd77
VS
241352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24136
24137 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24138
d116e0d8
RM
241392010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24140
24141 Support relative image path in theme file.
24142
24143 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24144 (image_set_property): Handle theme_dir and relative path.
24145
c7ef54aa
VS
241462010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24147
24148 * configure.ac: Alias amd64 to x86_64.
24149
fcee14ed
VS
241502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24151
24152 * NEWS: mention multiboot on EFI.
24153
d0780363
VS
241542010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24155
24156 * kern/main.c (grub_load_modules): Handle errors from init functions of
24157 embeded modules.
24158
41168ea4
VS
241592010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24160
24161 * normal/autofs.c (autoload_fs_module): Handle errors.
24162
b54d93ac
VS
241632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24164
24165 Disable linux.mod on qemu-mips since it's not functional and leads
24166 to compilation failure.
24167
24168 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24169 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24170 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24171 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24172 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24173 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24174 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24175 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24176 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24177 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24178 Reported by: BVK Chaitanya
24179
fc8345da
JU
241802010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24181
24182 * INSTALL: Add gettext as a dependency and add qemu to a new section
24183 "Prerequisites for make-check".
24184
4760f979
CF
241852010-03-04 Christian Franke <franke@computer.org>
24186
24187 * util/grub-pe2elf.c: Add missing include "progname.h".
24188
f209b5b2
VS
241892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24190
24191 * normal/crypto.c (read_crypto_list): Fix a typo.
24192 Reported by: Seth Goldberg.
24193
b4b7be98
VS
241942010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24195
24196 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 24197 Reported by: Seth Goldberg.
b4b7be98 24198
c0ee0385
VS
241992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24200
24201 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24202 ascii.bitmaps.
24203
a8efbf64
VS
242042010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24205
24206 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 24207 Reported by: Seth Goldberg.
a8efbf64 24208
08dcd913
VS
242092010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24210
24211 * util/i386/efi/grub-install.in: Copy gettext files.
24212
c4d0b332
VS
242132010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24214
24215 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24216
c6f2fe52
VS
242172010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24218
24219 Wait for user entry basing on presence of output rather than on errors.
24220
24221 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24222 (grub_install_newline_hook): Likewise.
24223 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24224 * normal/menu.c (show_menu): Check line_counter to determine presence
24225 of output.
24226 * normal/term.c (grub_normal_line_counter): New variable.
24227 (grub_normal_get_line_counter): New function.
24228 (grub_install_newline_hook): Likewise.
24229
5382b1e4
VS
242302010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24231
24232 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24233
5519963b
VS
242342010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24235
24236 * configure.ac: Update version to 1.98.
24237
72b28631
VS
242382010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24239
24240 * util/grub.d/10_linux.in (linux_entry): Don't default to
24241 gfxpayload=keep if Linux doesn't support video handover.
24242
c140a180
VS
242432010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24244
24245 Don't compile video modules on yeeloong since video subsystem is part
24246 of kernel.
24247
24248 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24249 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24250 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24251 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24252 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24253 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24254 * include/grub/bitmap_scale.h: Likewise.
24255 * include/grub/bufio.h: Likewise.
24256 * include/grub/font.h: Likewise.
24257 * include/grub/gfxterm.h: Likewise.
24258 * include/grub/video.h: Likewise.
24259 * include/grub/vbe.h: Don't include video_fb.h.
24260 * video/i386/pc/vbe.c: Include video_fb.h.
24261 * commands/i386/pc/vbetest.c: Include video.h.
24262
a0ca21c2
CW
242632010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24264
24265 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24266 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24267 default entry if GRUB_SAVEDEFAULT=true. This allows using
24268 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24269 saving a new default on every boot.
24270
4a8a763c
VS
242712010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24272
24273 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24274 * normal/term.c (read_terminal_list): Likewise.
24275 * normal/main.c (grub_normal_init_page): Likewise.
24276 (grub_normal_read_line_real): Likewise.
24277
607ffde2
VS
242782010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24279
24280 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24281 memory leak.
24282 Reported by: Seth Goldberg.
24283
2b8fa975
CW
242842010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24285
24286 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
24287 duplicate declaration of `start'.
24288
618307dd
VS
242892010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24290
24291 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
24292 filename.
24293 Reported by: Georgy Buranov
24294
7dd05b96 242952010-02-20 Carles Pina i Estany <carles@pina.cat>
24296
24297 * util/grub-mkrawimage.c (usage): Change string formatting to
24298 improve gettext.
24299
d1484a42
MRA
243002010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
24301
24302 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
24303 backspace keys.
24304
42b1d186
VS
243052010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24306
24307 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
24308 Reported by: Michael Suchanek.
24309
243102010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
24311
24312 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
24313 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
24314
d9f31a41
VS
243152010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
24316
24317 Remove any reference to non-free fonts.
24318
24319 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
24320 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
24321 uses non-free components.
24322 * font/font.c (grub_font_get_name): Remove example name.
24323 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
24324 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
24325 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
24326 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
24327
2793c71e
GB
243282010-02-16 Georgy Buranov <gburanov@gmail.com>
24329
24330 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
24331
402e3779
VS
243322010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
24335 Double divisor.
24336 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
24337 features.
24338 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
24339
0dd1e0dd
VS
243402010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24341
24342 * gensymlist.sh.in: Use TARGET_CC instead of CC.
24343
6fa7cfce
ST
243442010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24345
24346 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
24347 * docs/grub.texi (Command-line and menu entry commands): Document play
24348 command.
24349
37c8483b
ST
243502010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24351
24352 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
24353 parse arguments as inline tempo and notes. Move code for playing notes
24354 to...
24355 (play): ... new function.
24356
14da0fb7
ST
243572010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24358
24359 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
24360 grub_uint16_t instead of short.
24361 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
24362 disk from little endian to cpu endianness.
24363
04459e70
ST
243642010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24365
24366 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
24367 GRUB_TICKS_PER_SECOND instead of 120.
24368
a0876943
VS
243692010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24370
24371 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
24372 escape sequence after \e.
24373
e29f95dc
VS
243742010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24375
24376 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
24377 non-ASCII characters.
24378
d27859b2
VS
243792010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24380
24381 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
24382 set root in single quotes to prevent \, from being unescaped.
24383
bc028f2f
VS
243842010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24385
24386 Prevent unknown commands from stopping menuentry execution.
24387
24388 * script/execute.c (grub_script_execute_cmdline): Print error after
24389 unknown command.
24390
095f5f82
VS
243912010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24392
24393 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
24394 Reported by: Pavel Pisa.
24395
8c717950
VS
243962010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24397
24398 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
24399
904935c3
VS
244002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24401
24402 Merge grub_ieee1275_map_physical into grub_map and rename to
24403 grub_ieee1275_map
24404
24405 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
24406 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
24407 Remove.
24408 * kern/ieee1275/openfw.c (grub_map): Rename to ...
24409 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
24410 necessary.
24411 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
24412
5b59a4e3
VS
244132010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24414
24415 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
24416 opening and not after.
24417
69e137e8
VS
244182010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24419
24420 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
24421 constants.
24422
2c0fcc36
VS
244232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24424
24425 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
24426 (alloc_phys): Use ALIGN_UP instead of align_addr.
24427
8c6052ce
VS
244282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24429
24430 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
24431
17cec782
VS
244322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24433
24434 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
24435
e0128bbd
VS
244362010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24437
24438 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
24439 verbose dprintf.
24440
ca62070b
VS
244412010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 Fix over-4GiB seek on sparc64.
24444
24445 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
24446 Replace pos_i and pos_lo with pos. All users updated.
24447 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24448 New constant.
24449 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24450 Likewise.
24451 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
24452 and pos_lo.
24453
bdca2607
VS
244542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24455
24456 * util/grub-mkrawimage.c (main): Call set_program_name.
24457
da278c4d
VS
244582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 Properly align 64-bit targets.
24461
24462 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
24463 (generate_image): Use ALIGN_ADDR.
24464
b274d734
VS
244652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24466
24467 Properly create cross-endian images.
24468
24469 * include/grub/types.h (grub_host_to_target_addr): New macro
24470 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
24471
82da2062
VS
244722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24473
24474 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
24475
7cae4377
VS
244762010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24477
24478 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
24479
24480 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
24481 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
24482 (grub_linux_boot): Divide by 64K when on VESA.
24483
65a533e7
VS
244842010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24485
24486 Support GRUB_GFXPAYLOAD_LINUX.
24487
24488 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
24489 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
24490
dd01d397
VS
244912010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24492
24493 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
24494 to show messages instead of discarding them.
24495 Process errors after executing command and not before. Keep old method
24496 too as precaution.
24497
660960d6
VS
244982010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
24499
24500 * configure.ac: Check for ft2build.h.
24501
62509f04
VS
245022010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24503
24504 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
24505
473df63d
VS
245062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24507
24508 * genkernsyms.sh.in: Use TARGET_CC.
24509
c98d2a13
CW
245102010-02-07 Colin Watson <cjwatson@ubuntu.com>
24511
24512 * NEWS: Update.
24513
6e14234c
VS
245142010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24515
24516 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
24517 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
24518 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 24519
b255e9cf
YB
245202010-02-07 Yves Blusseau <blusseau@zetam.org>
24521
6e14234c 24522 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 24523
98e6959d
VS
245242010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24525
24526 Fix warnings in grub-emu when compiling with maximum warning options.
24527
24528 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
24529 (grub_arch_modules_addr): Return 0 and not NULL.
24530 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 24531 (xstrdup): Use newstr instead of dup.
f88d801b
VS
24532 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
24533 of disk to dsk to avoid shadowing.
74e4934e
VS
24534 (find_free_slot): Fix prototype.
24535 * util/getroot.c (grub_util_is_dmraid): Make static.
24536 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
24537 Add missing prototype.
24538 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 24539
74e31b5c
VS
245402010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24541
24542 * loader/i386/linux.c (grub_linux_setup_video): Handle error
24543 appropriately.
24544
6b2ad14b
VS
245452010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24546
24547 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
24548 code out.
24549
8f891adc
VS
245502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24551
24552 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
24553 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
24554 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
24555 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
24556 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
24557 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
24558
74b45184
VS
245592010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24560
24561 * include/grub/err.h (grub_err_printf): Don't export.
24562
a4bced77
VS
245632010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24564
24565 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
24566
007d0695
VS
245672010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24568
24569 * include/grub/i18n.h (grub_gettext_dummy): Removed.
24570 * kern/misc.c (grub_gettext_dummy): Make static.
24571
b6c0d9c2
VS
245722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24573
24574 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
24575 by non-valid ones.
24576 * kern/term.c (grub_putchar): Likewise.
24577
f51a90d0
VS
245782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24579
24580 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
24581 buggy hook call and memory leak.
24582
6846cec5
VS
245832010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24584
24585 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
24586
468d69fe
VS
245872010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24588
24589 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
24590
51906b8c
VS
245912010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24592
24593 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
24594 modevar.
24595 Return grub_errno on allocation error.
24596
09706ce5
VS
245972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24598
24599 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
24600
911df80c
YB
246012010-02-06 Yves Blusseau <blusseau@zetam.org>
24602
24603 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
24604 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
24605
3746a6bc
VS
246062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24607
24608 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
24609 non-pxe disk.
24610 (grub_pxefs_open): Likewise.
24611
09706ce5
VS
246122010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24613
24614 * util/grub.d/10_hurd.in: Add --class information to menuentries.
24615 * util/grub.d/10_kfreebsd.in: Likewise.
24616 * util/grub.d/10_linux.in: Likewise.
24617
7cc192d9
VS
246182010-02-06 Colin D Bennett <colin@gibibit.com>
24619
24620 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
24621 (gfxmenu_mod_SOURCES): New variable.
24622 (gfxmenu_mod_CFLAGS): Likewise.
24623 (gfxmenu_mod_LDFLAGS): Likewise.
24624 * include/grub/term.h (grub_term_set_current_output): Declare
24625 argument as const.
24626 * docs/gfxmenu-theme-example.txt: New file.
24627 * gfxmenu/gfxmenu.c: Likewise.
24628 * gfxmenu/gui_box.c: Likewise.
24629 * gfxmenu/gui_canvas.c: Likewise.
24630 * gfxmenu/gui_circular_progress.c: Likewise.
24631 * gfxmenu/gui_image.c: Likewise.
24632 * gfxmenu/gui_label.c: Likewise.
24633 * gfxmenu/gui_list.c: Likewise.
24634 * gfxmenu/gui_progress_bar.c: Likewise.
24635 * gfxmenu/gui_string_util.c: Likewise.
24636 * gfxmenu/gui_util.c: Likewise.
24637 * gfxmenu/icon_manager.c: Likewise.
24638 * gfxmenu/model.c: Likewise.
24639 * gfxmenu/named_colors.c: Likewise.
24640 * gfxmenu/theme_loader.c: Likewise.
24641 * gfxmenu/view.c: Likewise.
24642 * gfxmenu/widget-box.c: Likewise.
24643 * include/grub/gfxmenu_model.h: Likewise.
24644 * include/grub/gfxmenu_view.h: Likewise.
24645 * include/grub/gfxwidgets.h: Likewise.
24646 * include/grub/gui.h: Likewise.
24647 * include/grub/gui_string_util.h: Likewise.
24648 * include/grub/icon_manager.h: Likewise.
24649
246502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24651
24652 Agglomerate scrolling in gfxterm.
24653
24654 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
24655 (grub_virtual_screen_setup): Initialise 'total_screen'.
24656 (write_char): Split to ...
24657 (paint_char): ... this ...
24658 (write_char): ... and this.
24659 (paint_char): Handle delayed scrolling.
24660 (draw_cursor): Likewise.
24661 (scroll_up): Split to ...
24662 (real_scroll): ... this ...
24663 (scroll_up): ... and this.
24664 (real_scroll): Handle multi-line scroll and draw below-the-bottom
24665 characters.
24666 (grub_gfxterm_refresh): Call real_scroll.
24667
246682010-02-06 Colin D Bennett <colin@gibibit.com>
24669
24670 * include/grub/misc.h (grub_iscntrl): New inline function.
24671 (grub_isalnum): Likewise.
24672 (grub_strtol): Likewise.
24673
246742010-02-06 Colin D Bennett <colin@gibibit.com>
24675
24676 * normal/menu_text.c (get_entry_number): Move from here ...
24677 * normal/menu.c (get_entry_number): ... moved here.
24678 * include/grub/menu.h (grub_menu_get_default_entry_index):
24679 New prototype.
24680 * normal/menu.c (grub_menu_get_default_entry_index): New function.
24681 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
24682 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
24683 (grub_menu_viewer_should_return): Likewise.
24684 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
24685 * normal/menu_text.c (run_menu): Enable menu switching.
24686 * normal/menu_viewer.c (should_return): New variable.
24687 (menu_viewer_changed): Likewise.
24688 (grub_menu_viewer_show_menu): Handle menu viewer changes.
24689 (grub_menu_viewer_should_return): New function.
24690 (menuviewer_write_hook): Likewise.
24691 (grub_menu_viewer_init): Likewise.
24692
246932010-02-06 Colin D Bennet <colin@gibibit.com>
246942010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24695
24696 Support for gfxterm in a window.
24697
24698 * include/grub/gfxterm.h: New file.
24699 * include/grub/video.h (struct grub_video_rect): New declaration.
24700 (grub_video_rect_t): Likewise.
24701 * term/gfxterm.c (struct grub_gfxterm_window): New type.
24702 (refcount): New variable.
24703 (render_target): Likewise.
24704 (window): Likewise.
24705 (repaint_callback): Likewise.
24706 (grub_virtual_screen_setup): Use 'render_target'.
24707 (init_window): New function.
24708 (grub_gfxterm_init_window): Likewise.
24709 (grub_gfxterm_init): Check reference counter.
24710 Use init_window.
24711 (destroy_window): New function.
24712 (grub_gfxterm_destroy_window): Likewise.
24713 (grub_gfxterm_fini): Check reference counter.
24714 Use destroy_window.
24715 (redraw_screen_rect): Restore viewport.
24716 Use 'render_target' and 'window'.
24717 Call 'repaint_callback'.
24718 (write_char): Use 'render_target'.
24719 (draw_cursor): Likewise.
24720 (scroll_up): Restore viewport.
24721 Use 'render_target' and 'window'.
24722 Call 'repaint_callback'.
24723 (grub_gfxterm_cls): Likewise.
24724 (grub_gfxterm_refresh): Use 'window'.
24725 (grub_gfxterm_set_repaint_callback): New function.
24726 (grub_gfxterm_background_image_cmd): Use 'window'.
24727 (grub_gfxterm_get_term): New function.
24728 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
24729
247302010-02-06 Colin D Bennett <colin@gibibit.com>
24731
24732 Bitmap scaling support.
24733
24734 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
24735 (bitmap_scale_mod_SOURCES): New variable.
24736 (bitmap_scale_mod_CFLAGS): Likewise.
24737 (bitmap_scale_mod_LDFLAGS): Likewise.
24738 * include/grub/bitmap_scale.h: New file.
24739 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
24740 (background_image_cmd_options): New variable.
24741 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
24742 (cmd): Rename and change type to ...
24743 (background_image_cmd_handle): ... this. All users updated.
24744 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
24745 * video/bitmap_scale.c: New file.
24746
247472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24748
24749 SDL support.
24750
24751 * Makefile.in (LIBSDL): New variable.
24752 (enable_grub_emu_sdl): Likewise.
24753 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
24754 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
24755 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
24756 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
24757 * util/sdl.c: New file.
24758
247592010-02-06 Colin D Bennett <colin@gibibit.com>
247602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24761
24762 Double buffering support.
24763
24764 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
24765 * include/grub/video.h: Update comment.
24766 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
24767 New type.
24768 (grub_video_fb_doublebuf_blit_init): New prototype.
24769 * term/gfxterm.c (scroll_up): Support double buffering.
24770 (grub_gfxterm_refresh): Likewise.
24771 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
24772 (grub_video_fb_doublebuf_blit_init): Likewise.
24773 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
24774 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
24775 'displayed_page', 'render_page' and 'update_screen'.
24776 (grub_video_vbe_fini): Free offscreen buffer.
24777 (doublebuf_pageflipping_commit): New function.
24778 (doublebuf_pageflipping_update_screen): Likewise.
24779 (doublebuf_pageflipping_init): Likewise.
24780 (double_buffering_init): Likewise.
24781 (grub_video_vbe_setup): Enable doublebuffering.
24782 (grub_video_vbe_swap_buffers): Implement.
24783 (grub_video_vbe_set_active_render_target): Handle double buffering.
24784 (grub_video_vbe_get_active_render_target): Likewise.
24785 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
24786 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
24787 (grub_video_vbe_enable_double_buffering): Likewise.
24788 (grub_video_vbe_swap_buffers): Use update_screen.
24789 (grub_video_set_mode): Use double buffering.
24790
247912010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24792
24793 * maintainance/gentrigtables.py: Remove.
24794 * lib/trig.c: Likewise.
24795
24796 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
24797
24798 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
24799 `trigtables.c'.
24800 (trigtables.c): New rule.
24801 (gentrigtables): Likewise.
24802 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
24803
248042010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24805
24806 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
24807 integer constants.
24808
248092010-02-06 Colin D Bennet <colin@gibibit.com>
24810
24811 Trigonometry support.
24812
24813 * include/grub/trig.h: New file.
24814 * lib/trig.c: Likewise.
24815 * maintainance/gentrigtables.py: Likewise.
24816 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24817 (trig_mod_SOURCES): New variable.
24818 (trig_mod_CFLAGS): Likewise.
24819 (trig_mod_LDFLAGS): Likewise.
24820
5562834e
VS
248212010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24822
24823 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24824 disk devices.
24825
4f8528fc
VS
248262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24827
24828 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24829 error.
24830
2b4068e9
VS
248312010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24832
24833 * util/hostdisk.c (open_device): Don't use partition device when reading
24834 before the partition.
24835 (grub_util_biosdisk_read): Don't read from partition and before the
24836 partition in single operation.
24837 (grub_util_biosdisk_write): Don't write to partition and before the
24838 partition in single operation.
24839
399f6e4d
TL
248402010-02-03 Torsten Landschoff <torsten@debian.org>
24841
24842 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24843 last sectors.
24844
996649b0
VS
248452010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
24848 CDROM reads.
24849 (grub_biosdisk_write): Refuse to write to CDROM.
24850
3b205d4d
VS
248512010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24852
24853 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
24854
61e89d9d
VS
248552010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24856
24857 * font/font.c (find_glyph): Check that bmp_idx is available before
24858 using it.
24859 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
24860 with (font == NULL).
24861
bf7fcba2
CS
248622010-01-28 Christian Schmitt <chris@ilovelinux.de>
24863
24864 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24865
f45d2663
BC
248662010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24867
24868 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24869 * util/grub-script-check.c (getline): Fix empty lines case.
24870
ec1444e6
RM
248712010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24872
24873 * Makefile.in (check): Exit with fail status when one of the tests
24874 fails.
24875 * tests/example_functional_test.c (example_test): Fix reversed assert.
24876 * tests/example_unit_test.c (example_test): Likewise.
24877
2e1cb9bb
CW
248782010-01-28 Colin Watson <cjwatson@ubuntu.com>
24879
24880 * util/grub.d/10_linux.in: This script does not use any of the
24881 contents of gettext.sh, only the external command `gettext', so stop
24882 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24883 the same prefix as GRUB.)
24884 * util/grub.d/10_kfreebsd.in: Likewise.
24885
63533ab0
VS
248862010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24887
24888 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24889 of the line.
24890
989e1f93
VS
248912010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24892
24893 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24894 last sectors.
24895
e709ebe2
VS
248962010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24897
24898 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24899 having a 4KiB and not 32KiB buffer size.
24900
27dea7ed
RM
249012010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24902
24903 * util/hostfs.c: Include `<errno.h>'.
24904 (grub_hostfs_read): Handle errors from fseeko() and fread().
24905
67667b9c
RM
249062010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24907
24908 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24909 loop when using read hooks on files whose size isn't sector-aligned.
24910
c294d9d8
RM
249112010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24912
24913 Remove unused parameter.
24914
24915 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24916 (grub_iso9660_open): Remove initialization of `data->length'.
24917
af75a9f1
RM
249182010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24919
24920 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24921 memleak conditions.
24922
254e2ce5 249232010-01-27 Carles Pina i Estany <carles@pina.cat>
24924
24925 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24926 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24927
b510928c 249282010-01-26 Carles Pina i Estany <carles@pina.cat>
24929
24930 * util/bin2h.c (usage): Fix warning (space after backslash).
24931
aa2f9dd2 249322010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24933
24934 * font/font.c: Include `grub/fontformat.h.
24935 Remove font file format constants.
24936 (grub_font_load): Use the new macros.
24937 * include/grub/fontformat.h: New file.
24938 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24939 (write_font_pf2): Use the new macros.
24940
94e7e712
RM
249412010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24942
24943 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24944 does.
24945
3973a59a
RM
249462010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24947
24948 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24949
24950 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24951 (_start): Macroify `0x7F'.
24952
24953 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24954 (make_install_device): Use "(pxe)" as fallback prefix when booting
24955 via PXE.
24956
42e0cba3
GS
249572010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24958
24959 * configure.ac: Reset LIBS after check for libgcc symbols.
24960
847effd8
CW
249612010-01-25 Colin Watson <cjwatson@ubuntu.com>
24962
24963 * util/hostdisk.c (open_device): Add trailing newline to debug
24964 message.
24965
ea4a7e35
GS
249662010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24967
24968 * configure.ac: Check for `limits.h'.
24969 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24970
67951a53
RM
249712010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24972
24973 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24974 capitalize error strings.
24975
c273d4ce
ST
249762010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24977
24978 * util/grub.d/10_hurd.in: Add a recovery mode.
24979
69be5b74
VS
249802010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24981
24982 * configure.ac: Check for libgcc symbols with -nostdlib.
24983
fc9e5810
BC
249842010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
24985
24986 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
24987
4b358c0a
VS
249882010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24989
24990 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
24991 stack since heap may be unavailable at that point.
24992 (grub_ofconsole_gotoxy): Likewise.
24993
454fcd1c
VS
249942010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24995
24996 * configure.ac: Check for _restgpr_14_x.
24997 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
24998 and _savegpr_* prototypes.
24999
566863ca
RM
250002010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25001
25002 Use generic grub_reboot() for i386-efi.
25003
25004 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25005 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25006 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25007
bf86e59a
VS
250082010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25009
25010 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25011 presence of "prefix" variable as it breaks when normal.mod is
25012 embedded.
25013
d645e0f8
VS
250142010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25015
25016 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25017 stack since heap is unavailable at that point.
25018
f9ab2e25
VS
250192010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25020
25021 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25022 (grub_freebsd_bootinfo): Rewritten.
25023 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25024
01fc7054
VS
250252010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25026
25027 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25028
caab4fd6
RM
250292010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25030
25031 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25032 domain now.
25033
67eb1427
FZ
250342010-01-20 Felix Zielcke <fzielcke@z-51.de>
25035
25036 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25037 around for handling "/" to the correct fix. Fix a memory leak. Use
25038 xstrdup instead of strdup.
25039
a9ed4ff3
VS
250402010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25041
25042 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25043
250442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
25045
25046 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25047
25048 * font/font.c (struct grub_font): New member 'bmp_idx'.
25049 (font_init): Initialise 'bmp_idx'.
25050 (load_font_index): Fill 'bmp_idx'.
25051 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25052
48209f4f
VS
250532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25054
25055 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25056 unnecessary calls.
25057
9f0a4bb7
VS
250582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25059
25060 Move context handling out of the kernel.
25061
25062 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25063 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25064 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25065 * conf/i386-efi.rmk: Likewise.
25066 * conf/i386-ieee1275.rmk: Likewise.
25067 * conf/i386-pc.rmk: Likewise.
25068 * conf/powerpc-ieee1275.rmk: Likewise.
25069 * conf/sparc64-ieee1275.rmk: Likewise.
25070 * conf/x86_64-efi.rmk: Likewise.
25071 * include/grub/env.h: Include grub/menu.h.
25072 (grub_env_var_type): Removed.
25073 (grub_env_var): Replaced field 'type' with 'global'.
25074 (grub_env_find): New prototype.
25075 (grub_env_context_open): Remove EXPORT_FUNC.
25076 (grub_env_context_close): Likewise.
25077 (grub_env_export): Likewise.
25078 (grub_env_set_data_slot): Removed.
25079 (grub_env_get_data_slot): Likewise.
25080 (grub_env_unset_data_slot): Likewise.
25081 (grub_env_unset_menu): New prototype.
25082 (grub_env_set_menu): Likewise.
25083 (grub_env_get_menu): Likewise.
25084 * include/grub/env_private.h: New file.
25085 * include/grub/normal.h (grub_context_init): New prototype.
25086 (grub_context_fini): Likewise.
25087 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25088 * normal/context.c (grub_cmd_export): ... to here.
25089 * kern/env.c: Include env_private.h.
25090 (HASHSZ): Moved to include/grub/env_private.h.
25091 (grub_env_context): Likewise.
25092 (grub_env_sorted_var): Likewise.
25093 (current_context): Renamed from this ...
25094 (grub_current_context): ...to this. 'static' removed. All users updated.
25095 (grub_env_find): Removed 'static'.
25096 (grub_env_context_open): Moved to normal/context.c.
25097 (grub_env_context_close): Likewise.
25098 (grub_env_export): Likewise.
25099 (mangle_data_slot_name): Removed.
25100 (grub_env_set_data_slot): Likewise.
25101 (grub_env_get_data_slot): Likewise.
25102 (grub_env_unset_data_slot): Likewise.
25103 * kern/main.c (grub_set_root_dev): Don't export root.
25104 It will be done later.
25105 (grub_main): Don't export prefix.
25106 It will be done later.
25107 * normal/context.c: New file.
25108 * normal/main.c (free_menu): Use grub_env_unset_menu.
25109 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25110 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25111 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25112 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25113
8dd35b8c
VS
251142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25115
25116 setpci support.
25117
25118 * commands/setpci.c: New file.
25119 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25120 (setpci_mod_SOURCES): New variable.
25121 (setpci_mod_CFLAGS): Likewise.
25122 (setpci_mod_LDFLAGS): Likewise.
25123
449193d5
VS
251242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25125
25126 Byte-addressable PCI configuration space.
25127
25128 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25129 dword address.
25130 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25131 GRUB_PCI_REG_CACHELINE.
25132 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25133 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25134 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25135 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25136 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25137 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25138 grub_pci_make_address.
25139 (lock_rom_area): Likewise.
25140 * commands/lspci.c (grub_lspci_iter): Use macroses
25141 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25142 of grub_pci_make_address.
25143 * disk/ata.c (grub_ata_pciinit): Likewise.
25144 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25145 (GRUB_PCI_REG_VENDOR): Likewise.
25146 (GRUB_PCI_REG_DEVICE): Likewise.
25147 (GRUB_PCI_REG_COMMAND): Likewise.
25148 (GRUB_PCI_REG_STATUS): Likewise.
25149 (GRUB_PCI_REG_REVISION): Likewise.
25150 (GRUB_PCI_REG_CLASS): Likewise.
25151 (GRUB_PCI_REG_CACHELINE): Likewise.
25152 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25153 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25154 (GRUB_PCI_REG_BIST): Likewise.
25155 (GRUB_PCI_REG_ADDRESSES): Likewise.
25156 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25157 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25158 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25159 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25160 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25161 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25162 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25163 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25164 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25165 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25166 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25167 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25168 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25169 (GRUB_PCI_REG_MIN_GNT): Likewise.
25170 (GRUB_PCI_REG_MAX_LAT): Likewise.
25171 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25172 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25173 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 25174 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
25175 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25176 space.
25177
96d73208
RM
251782010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25179
25180 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25181 can be reliably determined to be supported.
25182
d4484482
RM
251832010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25184
25185 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25186 that VESA is supported.
25187 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25188 supported.
25189
00308ecf
VS
251902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25191
25192 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25193
f66924a4
RM
251942010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25195
25196 * util/misc.c (make_system_path_relative_to_its_root): Work around
25197 special-casing of "/", as previous incarnation of this routine did.
25198
cbca0ada
VS
251992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25200
25201 Fix any-emu compilation.
25202
25203 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25204 * grub_bin2h_SOURCES: New variable.
25205
34a66d99
RM
252062010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25207
25208 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25209
94fabf58
RM
252102010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25211
25212 * util/grub.d/00_header.in: Fix handling of locale_dir.
25213
02cf98ca
VS
252142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25215
25216 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25217 as possible unifont location (Gentoo).
25218 Reported by: Alexander Brüning
25219
327dbcd7
VS
252202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25221
25222 Don't try to generate lists for kernel.img.
25223
25224 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25225 (pkglib_MODULES): Remove kernel.img.
25226 (kernel_img_EXPORTS): Removed.
25227 (kernel_img_RELOCATABLE): New variable.
25228 * conf/x86_64-efi.rmk: Likewise.
25229 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25230
ca467290
VS
252312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25232
25233 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25234 grub_xasprintf or grub_snprintf.
25235 (grub_vsprintf): Likewise.
25236 (grub_snprintf): New proto.
25237 (grub_vsnprintf): Likewise.
25238 (grub_xasprintf): Likewise.
25239 (grub_xvasprintf): Likewise.
25240 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25241 (grub_sprintf): Removed.
25242 (grub_vsnprintf): New function.
25243 (grub_snprintf): Likewise.
25244 (grub_xvasprintf): Likewise.
25245 (grub_xasprintf): Likewise.
25246 (grub_vsprintf): Renamed to ...
25247 (grub_vsnprintf_real): ...this. New argument max_len.
25248
aca655fd
BC
252492010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25250
25251 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25252 fix grub-script-check warning.
25253
7ee92c32
VS
252542010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25255
25256 * include/grub/font.h (grub_font_load): Fix prototype.
25257
f80927ca
VS
252582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25259
25260 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25261
119c50ea
VS
252622010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25263
25264 * include/grub/x86_64/at_keyboard.h: New file.
25265
47d5f3c1
VS
252662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25267
25268 * loader/mips/linux.c: Include missing grub/i18n.h.
25269
55ff5266
RM
252702009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25271
25272 * normal/menu.c (notify_execution_failure): Clarify error message.
25273
c893cc87
RM
252742009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25275
25276 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25277 return value (and revert all return statements). Update users.
25278
917dd370
CW
252792010-01-20 Dan Merillat <debian@dan.merillat.org>
25280
25281 * kern/device.c (grub_device_iterate): Allocate new part_ent
25282 structure based on sizeof (*p) rather than sizeof (p->next), to
25283 account for structure padding.
25284
25285 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
25286 disk is NULL, which might happen for LVM physical volumes with no
25287 LVM signature.
25288
d4a4ee57
RM
252892009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25290
25291 * loader/mips/linux.c (grub_cmd_initrd)
25292 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
25293
252942009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25295
25296 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
25297 (grub_video_video_init, grub_video_bitmap_init)
25298 (grub_font_manager_init, grub_term_gfxterm_init)
25299 (grub_at_keyboard_init): New extern declarations.
25300 (grub_machine_init): Initialize gfxterm and at_keyboard.
25301
25302 * kern/main.c (grub_main): Revert grub_printf delay kludge.
25303
25304 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
25305 `gfxterm.mod' into core image.
25306
25307 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25308 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25309 (kernel_img_FORMAT): Copy to ...
25310
25311 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25312 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25313 (kernel_img_FORMAT): ... here, and ...
25314
25315 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25316 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25317 (kernel_img_FORMAT): ... here.
25318
25319 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
25320 and input (at_keyboard) terminals in kernel.
25321 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
25322
25323 (pkglib_MODULES): Remove `pci.mod'.
25324 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
25325 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
25326 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25327 (at_keyboard_mod_LDFLAGS): Remove variables.
25328
253292010-01-11 Felix Zielcke <fzielcke@z-51.de>
25330
25331 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
25332
253332009-12-10 Robert Millan <rmh.grub@aybabtu.com>
25334
25335 * include/grub/mips/libgcc.h: Only export symbols for functions
25336 that libgcc provides.
25337
253382009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
25339
25340 MIPS support.
25341
25342 * bus/bonito.c: New file.
25343 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
25344 GRUB_PCI_NUM_DEVICES.
25345 * term/i386/pc/serial.c: Move to ...
25346 * term/serial.c: ... here. All users updated.
25347 * util/i386/pc/grub-mkimage.c: Move to ...
25348 * util/grub-mkrawimage.c: ... here. All users updated.
25349 * term/i386/pc/at_keyboard.c: Move to ...
25350 * term/at_keyboard.c: ... here. All users updated.
25351 * conf/mips-qemu-mips.rmk: New file.
25352 * conf/mips-yeeloong.rmk: Likewise.
25353 * conf/mips.rmk: Likewise.
25354 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
25355 mipsel-qemu-mips.
25356 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
25357 to port addresses.
25358 (grub_ata_pciinit): Support CS5536.
25359 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
25360 * font/font_cmd.c (loadfont_command): Open file before passing it to
25361 grub_font_load.
25362 (pseudo_file_read): New function.
25363 (pseudo_file_close): Likewise.
25364 (pseudo_fs): New structure.
25365 (load_font_module): New function.
25366 (GRUB_MOD_INIT(font_manager)): Load embedded font.
25367 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
25368 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
25369 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
25370 * include/grub/i386/at_keyboard.h: Split into ...
25371 * include/grub/at_keyboard.h: ... this ...
25372 * include/grub/i386/at_keyboard.h: ... and this.
25373 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
25374 New prototype.
25375 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
25376 updated.
25377 (grub_elf64_size): Likewise.
25378 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
25379 filename.
25380 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
25381 * include/grub/i386/coreboot/serial.h: Rewritten.
25382 * include/grub/i386/ieee1275/serial.h: Include
25383 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
25384 * include/grub/i386/pc/serial.h: Moved from here ...
25385 * include/grub/serial.h: ... to here. All users updated.
25386 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
25387 (GRUB_PCI_NUM_BUS): Likewise.
25388 (GRUB_PCI_NUM_DEVICES): Likewise.
25389 (grub_pci_device_map_range): Add missing volatile keyword.
25390 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
25391 * include/grub/mips/at_keyboard.h: New file.
25392 * include/grub/mips/cache.h: Likewise.
25393 * include/grub/mips/io.h: Likewise.
25394 * include/grub/mips/kernel.h: Likewise.
25395 * include/grub/mips/libgcc.h: Likewise.
25396 * include/grub/mips/pci.h: Likewise.
25397 * include/grub/mips/qemu-mips/boot.h: Likewise.
25398 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25399 * include/grub/mips/qemu-mips/loader.h: Likewise.
25400 * include/grub/mips/qemu-mips/memory.h: Likewise.
25401 * include/grub/mips/qemu-mips/serial.h: Likewise.
25402 * include/grub/mips/qemu-mips/time.h: Likewise.
25403 * include/grub/mips/relocator.h: Likewise.
25404 * include/grub/mips/time.h: Likewise.
25405 * include/grub/mips/types.h: Likewise.
25406 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
25407 * include/grub/mips/yeeloong/boot.h: Likewise.
25408 * include/grub/mips/yeeloong/kernel.h: Likewise.
25409 * include/grub/mips/yeeloong/loader.h: Likewise.
25410 * include/grub/mips/yeeloong/memory.h: Likewise.
25411 * include/grub/mips/yeeloong/pci.h: Likewise.
25412 * include/grub/mips/yeeloong/serial.h: Likewise.
25413 * include/grub/mips/yeeloong/time.h: Likewise.
25414 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
25415 * kern/elf.c (grub_elf32_size): New parameter. All users
25416 updated.
25417 (grub_elf64_size): Likewise.
25418 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
25419 Load modules before saying "Welcome to GRUB!".
25420 Call grub_refresh after saying "Welcome to GRUB!".
25421 * kern/mips/cache.S: New file.
25422 * kern/mips/cache_flush.S: Likewise.
25423 * kern/mips/dl.c: Likewise.
25424 * kern/mips/init.c: Likewise.
25425 * kern/mips/qemu-mips/init.c: Likewise.
25426 * kern/mips/startup.S: Likewise.
25427 * kern/mips/yeeloong/init.c: Likewise.
25428 * kern/term.c (grub_putcode): Handle NULL terminal.
25429 (grub_getcharwidth): Likewise.
25430 (grub_getkey): Likewise.
25431 (grub_checkkey): Likewise.
25432 (grub_getkeystatus): Likewise.
25433 (grub_getxy): Likewise.
25434 (grub_getwh): Likewise.
25435 (grub_gotoxy): Likewise.
25436 (grub_cls): Likewise.
25437 (grub_setcolorstate): Likewise.
25438 (grub_setcolor): Likewise.
25439 (grub_getcolor): Likewise.
25440 (grub_refresh): Likewise.
25441 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
25442 (write_jump): Add hatch nop.
25443 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
25444 * lib/mips/setjmp.S: New file.
25445 * loader/mips/linux.c: Likewise.
25446 * term/i386/pc/at_keyboard.c: Move from here ...
25447 * term/at_keyboard.c: ... to here.
25448 * term/i386/pc/serial.c: Moved from here ...
25449 * term/serial.c: ... to here. All users updated.
25450 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
25451 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
25452 (serial_translate_key_sequence): Avoid deadlock.
25453 (grub_serial_getkey): Handle backspace.
25454 (grub_serial_putchar): Fix newline handling.
25455 * util/i386/pc/grub-mkimage.c: Move from here ...
25456 * util/grub-mkrawimage.c: ... to here. All users updated.
25457 (generate_image): New parameters 'font_path' and 'format'.
25458 Support embedding font.
25459 Use grub_host_to_target* instead of grub_cpu_to_le*.
25460 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
25461 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
25462 (options): New option "--font".
25463 (usage): Likewise.
25464 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
25465 (main): Handle "--font".
25466 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
25467 (grub_virtual_screen_setup): Set bg_color_display.
25468 (redraw_screen_rect): Use bg_color_display instead of incorrect
25469 bg_color.
25470 (grub_gfxterm_cls): Likewise.
25471 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
25472 Support embedding config file.
25473 (add_segments): Likewise.
25474 (options): New option "--config".
25475 (main): Handle "--config".
25476 * video/sm712.c: New file.
25477
25c2b5b3
RM
254782010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25479
25480 Fix parallel builds.
25481
25482 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
25483 font.c depend on ascii.h).
25484
254852010-01-12 Carles Pina i Estany <carles@pina.cat>
25486
25487 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
25488
254892010-01-11 Carles Pina i Estany <carles@pina.cat>
25490
25491 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
25492 By default: disabled.
25493 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
25494 parameter.
25495
254962010-01-10 Carles Pina i Estany <carles@pina.cat>
25497
25498 * font/font.c: Update copyright years.
25499 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
25500
255012010-01-10 Carles Pina i Estany <carles@pina.cat>
25502
25503 * font/font.c: Include `ascii.h'.
25504 (ASCII_BITMAP_SIZE): New macro.
25505 (ascii_font_glyph): Define.
25506 (ascii_glyph_lookup): New function.
25507 (grub_font_get_string_width): Change comment. If glyph not found, use
25508 ascii_glyph_lookup.
25509 (grub_font_get_glyph_with_fallback): If glyph not available returns
25510 ascii_glyph_lookup.
25511 * util/grub-mkfont.c (file_formats): New enum.
25512 (options): Add `ascii-bitmaps' new option.
25513 (usage): Add `asii-bitmaps' new option.
25514 (write_font_ascii_bitmap): New function.
25515 (write_font): Rename to ...
25516 (write_font_p2): ... this. Remove print_glyphs call.
25517 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
25518 used. Call print_glyphs.
25519 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
25520
255212010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25522
25523 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
25524 (grub_bin2h_SOURCES): New variable.
25525 * util/bin2h.c: New file.
25526
915fc1b8
VS
255272010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25528
25529 * include/multiboot.h: Resynced with spec.
25530 * include/multiboot2.h: Likewise.
25531 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
25532 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
25533
9444b678
RM
255342010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25535
25536 * include/grub/term.h (grub_term_register_input,
25537 grub_term_register_output): Check return of terminal init()
25538 routines, and abort if errors are raised.
25539
25540 * commands/terminal.c: Update copyright year.
25541
cba98e8d
RM
255422010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25543
25544 * commands/terminal.c (grub_cmd_terminal_input)
25545 (grub_cmd_terminal_output): Check return of terminal init()
25546 routines, and abort if errors are raised.
25547
6f7db5d6
VS
255482010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25549
25550 * include/grub/i386/bsd.h: Fix include pathes.
25551
262bff8d
VS
255522010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25553
25554 Add missing *BSD copyright headers.
25555
25556 * include/grub/aout.h: Add BSD licence.
25557 * include/grub/i386/bsd.h: Parts under different licences moved to ...
25558 * include/grub/i386/freebsd_linker.h: ... here,
25559 * include/grub/i386/freebsd_reboot.h: ... here,
25560 * include/grub/i386/netbsd_bootinfo.h: ... here,
25561 * include/grub/i386/netbsd_reboot.h: ... here,
25562 * include/grub/i386/openbsd_bootarg.h: ... here,
25563 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
25564 licence to each file.
25565
b2cab848
RM
255662010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25567
25568 * acinclude.m4: Remove `nop' assembly instruction; it's not
25569 implemented by all architectures.
25570
2cb6be4b
RM
255712010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25572
25573 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
25574 ELILO. This is no longer necessary.
25575
a2eaee15
BC
255762010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
25577
25578 Added new tool, grub-scrit-check to verify grub.cfg syntax.
25579
25580 * util/grub-script-check.c: grub-script-check tool.
25581 * conf/common.rmk: Make rules for grub-script-check.
25582
88d17012
RM
255832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25584
25585 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
25586 spotting it back in 2008. Shame on me for forgetting he did.
25587
25588 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
25589
8040619d
RM
255902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25591
25592 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
25593 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
25594 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
25595 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
25596 (GRUB_VIDEO_TYPE_EFI): Rename to ...
25597 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
25598
a0c2a0f6
RM
255992010-01-17 Robert Millan <rmh.grub@aybabtu.com>
25600
25601 * include/grub/test.h: Add license header.
25602 * tests/example_functional_test.c: Likewise.
25603 * tests/example_unit_test.c: Likewise.
25604 * tests/lib/functional_test.c: Likewise.
25605 * tests/lib/test.c: Likewise.
25606 * tests/lib/unit_test.c: Likewise.
25607
b0b13907
VS
256082010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
25609
25610 Use flag-based instead of hook-based video mode selection and "auto"
25611 keyword.
25612
25613 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
25614 (grub_video_set_mode): Changed prototype. All users updated.
25615 (grub_video_check_mode_flag): New inline function.
25616 * video/video.c (parse_modespec): New function.
25617 (grub_video_set_mode): Parse flags and keywords.
25618
ea379330 256192010-01-17 Carles Pina i Estany <carles@pina.cat>
25620
25621 * util/misc.c (grub_util_info): Fix the order of the parameters in a
25622 fprintf call.
25623
e15c215e
FZ
256242010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
25625
25626 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
25627
409ae1c9 256282010-01-16 Carles Pina i Estany <carles@pina.cat>
25629
25630 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
25631 string.
25632 * util/grub-emu.c (usage): Likewise.
25633 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
25634 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25635 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25636 * util/i386/pc/grub-setup.c (usage): Likewise.
25637
70a14d3d 256382010-01-16 Carles Pina i Estany <carles@pina.cat>
25639
25640 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
25641 the message.
25642 (grub_util_info): Likewise.
25643 (grub_util_error): Likewise.
25644 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
25645 and/or new lines in `grub_util_warna', `grub_util_info',
25646 `grub_util_error' calls.
25647 * util/getroot.c: Likewise.
25648 * util/grub-editenv.c: Likewise.
25649 * util/grub-emu.c: Likewise.
25650 * util/grub-fstest.c: Likewise.
25651 * util/grub-mkdevicemap.c: Likewise.
25652 * util/grub-mkfont.c: Likewise.
25653 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25654 * util/grub-mkrelpath.c: Likewise.
25655 * util/grub-pe2elf.c: Likewise.
25656 * util/grub-probe.c: Likewise.
25657 * util/hostdisk.c: Likewise.
25658 * util/i386/efi/grub-mkimage.c: Likewise.
25659 * util/i386/pc/grub-mkimage.c: Likewise.
25660 * util/i386/pc/grub-setup.c: Likewise.
25661 * util/ieee1275/ofpath.c: Likewise.
25662 * util/mkisofs/eltorito.c: Likewise.
25663 * util/mkisofs/rock.c: Likewise.
25664 * util/mkisofs/write.c: Likewise.
25665 * util/raid.c: Likewise.
25666 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25667 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25668
a0b766fc
VS
256692010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25670
25671 Enable multiboot on non-pc.
25672
25673 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
25674 multiboot.mod and multiboot2.mod to ...
25675 * conf/i386.rmk (pkglib_MODULES): ... here.
25676 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
25677 Moved to ...
25678 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
25679 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
25680 Moved to ...
25681 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
25682 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
25683 Moved to ...
25684 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
25685 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
25686 Moved to ...
25687 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
25688 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
25689 relocator.mod.
25690 (ata_mod_SOURCES): Removed.
25691 (ata_mod_CFLAGS): Likewise.
25692 (ata_mod_LDFLAGS): Likewise.
25693 (relocator_mod_SOURCES): Removed.
25694 (relocator_mod_CFLAGS): Likewise.
25695 (relocator_mod_ASFLAGS): Likewise.
25696 (relocator_mod_LDFLAGS): Likewise.
25697 Include i386.mk.
25698 * include/grub/x86_64/multiboot.h: New file.
25699 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
25700 Terminate EFI.
25701
884ade56
VS
257022010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25703
25704 Video multiboot support.
25705
25706 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
25707 New prototype.
25708 * include/multiboot.h: Resynced with multiboot specification.
25709 * include/multiboot2.h: Likewise.
25710 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
25711 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
25712 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
25713 (HAS_VGA_TEXT): Likewise.
25714 (accepts_video): New variable.
25715 (grub_multiboot_set_accepts_video): New function.
25716 (grub_multiboot_get_mbi_size): Account for video structures.
25717 (set_video_mode): New function.
25718 (retrieve_video_parameters): Likewise.
25719 (grub_multiboot_make_mbi): Fill video fields.
25720
0d90e8a6
VS
257212010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25722
25723 Video driver ids.
25724
25725 * include/grub/video.h (grub_video_driver_id): New type.
25726 (grub_video_adapter): New member 'id'. All users updated.
25727 (grub_video_get_driver_id): New proto.
25728 * video/video.c (grub_video_get_driver_id): New function.
25729
5c71db1b 257302010-01-14 Carles Pina i Estany <carles@pina.cat>
25731
25732 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
25733 `var=val'.
25734
cca15b52 257352010-01-14 Carles Pina i Estany <carles@pina.cat>
25736
25737 * normal/cmdline.c (print_completion): Gettextizze.
25738
c586fbb2 257392001-01-14 Carles Pina i Estany <carles@pina.cat>
25740
25741 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
25742
ba2f6848 257432010-01-14 Carles Pina i Estany <carles@pina.cat>
25744
25745 * gettext/gettext.c (grub_gettext_translate): Push and pop
25746 grub_errno.
25747 (grub_gettext_delete_list): Change comment style.
25748 * kern/err.c (grub_error): Gettextizze.
25749 (grub_fatal): Gettextizze.
25750
0a46429a
RM
257512010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25752
25753 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
25754 (grub_linux16_real_boot): ... this.
25755 * kern/i386/loader.S: Likewise.
25756 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
25757 (grub_linux16_boot): New function. Switches to text mode and calls
25758 grub_linux16_real_boot().
25759
25760 * loader/i386/bsd.c: Include `<grub/video.h>'.
25761 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
25762 text mode before calling grub_unix_real_boot().
25763
25764 * loader/i386/multiboot.c: Include `<grub/video.h>'.
25765 (grub_multiboot_boot): Switch to text mode before calling
25766 grub_relocator32_boot().
25767
25768 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
25769 (grub_chainloader_boot): Switch to text mode before calling
25770 grub_chainloader_real_boot().
25771
d6f93a66
RM
257722010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
257732010-01-05 Colin Watson <cjwatson@ubuntu.com>
25774
25775 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
25776 non-empty value.
25777
257782010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
257792010-01-05 Colin Watson <cjwatson@ubuntu.com>
25780
25781 * util/grub.d/00_header.in: Define a "savedefault" function for use
25782 in menu entries.
25783 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
25784
257852010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
257862010-01-05 Colin Watson <cjwatson@ubuntu.com>
25787
25788 * util/grub-mkconfig_lib.in (save_default_entry): Only set
25789 saved_entry if boot_once is unset.
25790 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
25791 previous saved entry (i.e. grub-reboot).
25792
257932009-12-08 Colin Watson <cjwatson@ubuntu.com>
25794
25795 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
25796
257972009-12-08 Colin Watson <cjwatson@ubuntu.com>
25798
25799 * util/grub.d/00_header.in: Use `set var=val' rather than plain
25800 `var=val'.
25801 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
25802
258032009-12-08 Colin Watson <cjwatson@ubuntu.com>
25804
25805 * util/grub-reboot.in: Fix --version output.
25806 * util/grub-set-default.in: Likewise.
25807
258082009-12-08 Colin Watson <cjwatson@ubuntu.com>
25809
25810 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25811 blocks.
25812
258132009-12-08 Colin Watson <cjwatson@ubuntu.com>
25814
25815 * util/grub.d/00_header.in: Quote the value assigned to `default',
25816 in case it contains spaces.
25817
258182009-12-08 Colin Watson <cjwatson@ubuntu.com>
25819
25820 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25821 `save_default_entry' call from the macosx case to the linux case.
25822
258232009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
258242009-10-25 Colin Watson <cjwatson@ubuntu.com>
25825
25826 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25827 in `chosen' environment variable.
25828 * normal/menu_text.c (get_entry_number): Check if the variable
25829 matches the title of a menu entry.
25830 (run_menu): Pass menu to get_entry_number.
25831
25832 * util/grub-reboot.in: New file.
25833 * util/grub-set-default.in: New file.
25834 * conf/common.rmk (grub-reboot): New utility.
25835 (grub-set-default): New utility.
25836
25837 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25838 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25839 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25840 move it to `saved_entry' for the next boot. Load environment on
25841 initialisation.
25842 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25843 * util/grub.d/10_hurd.in: Likewise.
25844 * util/grub.d/10_linux.in (linux_entry): Likewise.
25845 * util/grub.d/10_windows.in: Likewise.
25846 * util/grub.d/30_os-prober.in: Likewise.
25847
25848 * util/grub-install.in: Create environment block.
25849 * util/i386/efi/grub-install.in: Likewise.
25850 * util/ieee1275/grub-install.in: Likewise.
25851 * util/sparc64/ieee1275/grub-install.in: Likewise.
25852
0934d184
BC
258532010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
25854
25855 Unit testing framework for GRUB.
25856
25857 * Makefile.in: Test framework build rules for 'make check'.
25858 * conf/tests.rmk: Build rules for individual tests and framework.
25859
25860 * include/grub/test.h: Header file for whitebox tests.
25861 * tests/lib/functional_test.c: Framework support for whitebox
25862 functional tests.
25863 * tests/lib/test.c: Common whitebox testing code for unit and
25864 functional tests.
25865 * tests/lib/unit_test.c: Framework support for whitebox unit
25866 tests.
25867
25868 * tests/util/grub-shell-tester.in: Support utility for grub-script
25869 tests.
25870 * tests/util/grub-shell.in: Utility to execute grub-script
25871 commands in a Qemu instance.
25872
25873 * tests/example_functional_test.c: Example whitebox functional
25874 test.
25875 * tests/example_grub_script_test.in: Example grub-script test.
25876 * tests/example_scripted_test.in: Example scripted test.
25877 * tests/example_unit_test.c: Example whitebox unit test.
25878
9c4ffeeb
VS
258792010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25880
25881 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25882 Add loader/i386/multiboot_mbi.c.
25883 (multiboot2_mod_SOURCES): Likewise.
25884 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25885 (multiboot2_mod_SOURCES): Likewise.
25886 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25887 (grub_multiboot_make_mbi): Likewise.
25888 (grub_multiboot_free_mbi): Likewise.
25889 (grub_multiboot_init_mbi): Likewise.
25890 (grub_multiboot_add_module): Likewise.
25891 (grub_multiboot_set_bootdev): Likewise.
25892 * loader/i386/multiboot.c (mbi): Removed.
25893 (mbi_dest): Likewise.
25894 (alloc_mbi): New variable.
25895 (grub_multiboot_payload_size): Removed. All users updated.
25896 (grub_multiboot_pure_size): New variable.
25897 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25898 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25899 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25900 (grub_fill_multiboot_mmap): Likewise.
25901 (grub_multiboot_get_bootdev): Likewise.
25902 (grub_multiboot): Use multiboot_mbi functions.
25903 * loader/i386/multiboot_mbi.c: New file.
25904
17383dfe
VS
259052010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25906
25907 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25908 it would result in module crash.
25909
c1f28820
VS
259102010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25911
25912 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25913 (grub_ofconsole_getwh): Split to ...
25914 (grub_ofconsole_getwh): ... this.
25915 (grub_ofconsole_dimensions): ...and this.
25916 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25917
58655a16
RM
259182010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25919
25920 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25921
10891398
VS
259222010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25923
25924 * loader/i386/pc/multiboot2.c: Removed stalled file.
25925
0b8a223c
VS
259262010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25927
25928 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25929 Reported by: Grégoire Sutre
25930
92ab12b0
RM
259312010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25932
25933 * util/misc.c (canonicalize_file_name): New function.
25934 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25935 instead of realpath().
25936
a788afb6
CW
259372010-01-11 Colin Watson <cjwatson@ubuntu.com>
25938
25939 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25940 and make it clearer that it's optional. Based on confusion
25941 witnessed on IRC.
25942
ffa8e3d2
VS
259432010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25944
25945 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25946 in premature implicit newline.
25947
e9060a9d
VS
259482010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25949
25950 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25951 which resulted in garbled command line at the end of screen.
25952
f0d0c0b7
RM
259532010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25954
25955 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25956 initialization with similar approach as with other Linux loaders.
25957
0e60bae7
RM
259582010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25959
25960 Fix i386-ieee1275 build.
25961
25962 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25963 and grub_term_height() for video_{width,height} initialization.
25964
259652010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25966
25967 Fix grub-emu build.
25968
25969 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25970
cdb3f378
RM
259712010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
259722010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25973
25974 Support for multiple terminals.
25975
25976 * Makefile.in (pkglib_DATA): terminal.lst.
25977 (terminal.lst): New target.
25978 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25979 (GRUB_MOD_INIT(handler)): Likewise.
25980 (GRUB_MOD_FINI(handler)): Likewise.
25981 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25982 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
25983 * commands/sleep.c (do_print): Use grub_term_restore_pos.
25984 (grub_cmd_sleep): Use grub_term_save_pos.
25985 * commands/terminal.c: New file.
25986 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
25987 commands/terminal.c and lib/charset.c.
25988 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
25989 (pkglib_MODULES): Add terminal.mod.
25990 (terminal_mod_SOURCES): New variable.
25991 (terminal_mod_CFLAGS): Likewise.
25992 (terminal_mod_LDFLAGS): Likewise.
25993 * genhandlerlist.sh: Don't handle terminals.
25994 * genmk.rb: Generate terminal-*.lst.
25995 * genterminallist.sh: New file.
25996 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
25997 (grub_is_valid_utf8): Likewise.
25998 (grub_utf8_to_ucs4_alloc): Likewise.
25999 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26000 (grub_menu_register_viewer): Changed argument.
26001 (grub_menu_try_text): New proto.
26002 (grub_gfxmenu_try_hook): New declaration.
26003 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26004 (grub_menu_init_page): Additional argument term.
26005 (grub_normal_init_page): Likewise.
26006 (grub_cmdline_get): Arguments simplified.
26007 (grub_utf8_to_ucs4_alloc): Removed.
26008 (grub_print_ucs4): Additional argument term.
26009 (grub_getstringwidth): Likewise.
26010 (grub_print_message_indented): Likewise.
26011 (grub_menu_text_register_instances): New proto.
26012 (grub_show_menu): Likewise.
26013 (read_terminal_list): Likewise.
26014 (grub_set_more): Likewise.
26015 * include/grub/parser.h: Include handler.h.
26016 * include/grub/reader.h: Rewritten.
26017 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26018 (GRUB_TERM_WIDTH): Changed to function.
26019 (GRUB_TERM_HEIGHT): Likewise.
26020 (GRUB_TERM_BORDER_WIDTH): Likewise.
26021 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26022 (GRUB_TERM_NUM_ENTRIES): Likewise.
26023 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26024 (GRUB_TERM_CURSOR_X): Likewise.
26025 (grub_term_input_class): Likewise.
26026 (grub_term_output_class): Likewise.
26027 (grub_term_outputs_disabled): New declaration.
26028 (grub_term_inputs_disabled): Likewise.
26029 (grub_term_outputs): Likewise.
26030 (grub_term_inputs): Likewise.
26031 (grub_term_register_input): Rewritten.
26032 (grub_term_register_output): Likewise.
26033 (grub_term_unregister_input): Likewise.
26034 (grub_term_unregister_output): Likewise.
26035 (FOR_ACTIVE_TERM_INPUTS): New macro.
26036 (FOR_DISABLED_TERM_INPUTS): Likewise.
26037 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26038 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26039 * include/grub/terminfo.h: Add oterm argument to all protypes.
26040 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26041 Use grub_rescue_run.
26042 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26043 All users updated.
26044 * kern/reader.c: Removed. All users updated.
26045 * kern/rescue_reader.c (grub_rescue_init): Removed.
26046 (grub_rescue_reader): Likewise.
26047 (grub_register_rescue_reader): Likewise.
26048 (grub_rescue_run): New function based on kern/reader.c.
26049 * kern/term.c: Adapted for multiterm.
26050 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26051 (grub_is_valid_utf8): Likewise.
26052 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26053 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26054 right terminal.
26055 * loader/i386/linux.c (grub_linux_boot): Likewise.
26056 * normal/auth.c (grub_username_get): New function.
26057 (grub_auth_check_authentication): Use grub_username_get.
26058 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26059 * normal/color.c: Adapt for multiterm.
26060 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26061 (grub_normal_init_page): Additional argument term.
26062 (read_lists): Call read_terminal_lists.
26063 (grub_enter_normal_mode): Call grub_cmdline_run.
26064 Handle grub_normal_exit_level.
26065 (grub_cmd_normal): Make reentrant.
26066 (grub_cmd_normal_exit): New function.
26067 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26068 * normal/menu.c: Adapt for multiterm.
26069 * normal/menu_entry.c: Likewise.
26070 * normal/menu_text.c: Likewise.
26071 * normal/menu_viewer.c: Removed. All users updated.
26072 * normal/term.c: New file.
26073 * util/console.c: Change order of includes to workaround a bug in
26074 ncurses headers.
26075 * term/terminfo.c: New argument oterm on all exported functions.
26076 All users updated.
26077 * util/grub-editenv.c (grub_term_input_class): Removed.
26078 (grub_term_output_class): Likewise.
26079
1a064917
RM
260802010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26081
26082 Make loader output a bit more user-friendly.
26083
26084 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26085 is being loaded. Likewise for the Hurd.
26086
26087 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26088 that kernel of FreeBSD ${version} is being loaded.
26089
26090 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26091 grub_dprintf().
26092 (grub_cmd_initrd): Likewise.
26093 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26094 that Linux ${version} is being loaded. Likewise for initrd.
26095
5ce0a83a 260962010-01-09 Carles Pina i Estany <carles@pina.cat>
26097
26098 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26099
809bbfeb 261002010-01-08 Carles Pina i Estany <carles@pina.cat>
26101
26102 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26103 (GRUB_MOD_INIT): Gettextizze.
26104 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26105 (GRUB_MOD_INIT): Gettextizze.
26106 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26107 (grub_cmd_linux): Capitalise Linux.
26108 (GRUB_MOD_INIT): Gettextizze.
26109 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26110 (grub_cmd_linux): Capitalise Linux.
26111 (GRUB_MOD_INIT): Gettextizze.
26112 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26113 (grub_cmd_linux): Capitalise Linux.
26114 (GRUB_MOD_INIT): Gettextizze.
26115 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26116 (GRUB_MOD_INIT): Gettextizze.
26117 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26118 (grub_cmd_linux): Capitalise Linux.
26119 (GRUB_MOD_INIT): Gettextizze.
26120 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26121 (grub_cpu_xnu_init): Gettextizze.
26122 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26123 (GRUB_MOD_INIT): Gettextizze.
26124 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26125 (GRUB_MOD_INIT): Gettextizze.
26126 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26127 (grub_linux_load64): Capitalise Linux.
26128 (GRUB_MOD_INIT): Gettextizze.
26129 * loader/xnu.c: Include `<grub/i18n.h>'.
26130 (GRUB_MOD_INIT): Gettextizze.
26131 * po/POTFILES: Add `loader/efi/appleloader.c',
26132 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26133 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26134 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26135 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26136 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26137 and `loader/xnu.c'.
26138
b394b2ca
RM
261392010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26140
26141 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26142
261432010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
26144
26145 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26146 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26147 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26148
bc8b32b3
RM
261492010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26150
26151 Reset Multiboot 2 support. New loader implements the draft in
26152 /branches/multiboot2 and shares as much code as possible with the
26153 production Multiboot 1 implementation.
26154
26155 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26156 * loader/multiboot2.c: Likewise.
26157 * loader/i386/multiboot_helper.S: Likewise.
26158 * include/multiboot2.h: Replace with latest version from the draft
26159 in /branches/multiboot2.
26160
26161 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26162 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26163 and `loader/multiboot2.c'.
26164 (pkglib_MODULES): Add `multiboot2.mod'.
26165 (multiboot2_mod_SOURCES): New variable.
26166 (multiboot2_mod_LDFLAGS): Likewise.
26167 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26168
26169 * conf/i386-pc.rmk: Likewise.
26170
26171 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26172 (multiboot_mod_SOURCES): Remove variable.
26173 (multiboot_mod_LDFLAGS): Likewise.
26174 (multiboot_mod_CFLAGS): Likewise.
26175
26176 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26177 `<multiboot2.h>' instead of `<multiboot.h>'.
26178 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26179 (MULTIBOOT_HEADER_MAGIC): New macros.
26180
26181 * loader/multiboot_loader.c (module_version_status): Remove variable.
26182 (find_multi_boot2_header): Remove function.
26183 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26184 logic. Always check for the Multiboot version we're compiling for.
26185 (grub_cmd_module_loader): Likewise.
26186 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26187 command instead of `multiboot'.
26188
5d2c52b8
RM
261892010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26190
26191 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26192 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26193 all users.
26194
53108d92
RM
261952010-01-07 Robert Millan <rmh.grub@aybabtu.com>
261962010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26197
26198 Fix breakage introduced with previous commit.
26199
26200 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26201 commands.
26202 * normal/handler.c (read_handler_list): Revert part of previous commit
26203 affecting this file.
26204 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26205 (grub_normal_execute): ... here.
26206
e2e936b2
RM
262072010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26208
26209 Merge prefix-redefinition-fix branch.
26210
26211 * normal/autofs.c (read_fs_list): Make function capable of being
26212 run multiple times, gracefuly replacing the previous data
26213 structures.
26214 * normal/dyncmd.c (read_command_list): Likewise.
26215 * normal/handler.c (read_handler_list): Likewise.
26216 * normal/main.c (read_lists): New function. Calls all the
26217 list reading functions.
26218 (grub_normal_execute): Use read_lists() instead of calling all
26219 list reading functions explicitly. Register read_lists() as a
26220 variable hook attached to ${prefix}.
26221
607a3701
VS
262222010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26223
26224 Merge crypto branch.
26225
26226 * Makefile.in (pkglib_DATA): Add crypto.lst.
26227 (crypto.lst): New target.
26228 * commands/hashsum.c: New file.
26229 * commands/password.c (check_password): Use grub_crypto_memcmp.
26230 * commands/password_pbkdf2.c: New file.
26231 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26232 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26233 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26234 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26235 -I$(srcdir)/lib/libgcrypt_wrap.
26236 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26237 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26238 password_pbkdf2.mod.
26239 (crypto_mod_SOURCES): New variable.
26240 (crypto_mod_CFLAGS): Likewise.
26241 (crypto_mod_LDFLAGS): Likewise.
26242 (hashsum_mod_SOURCES): New variable.
26243 (hashsum_mod_CFLAGS): Likewise.
26244 (hashsum_mod_LDFLAGS): Likewise.
26245 (pbkdf2_mod_SOURCES): New variable.
26246 (pbkdf2_mod_CFLAGS): Likewise.
26247 (pbkdf2_mod_LDFLAGS): Likewise.
26248 (password_pbkdf2_mod_SOURCES): New variable.
26249 (password_pbkdf2_mod_CFLAGS): Likewise.
26250 (password_pbkdf2_mod_LDFLAGS): Likewise.
26251 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26252 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26253 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26254 Include conf/gcry.rmk.
26255 * include/grub/auth.h: Rewritten.
26256 * include/grub/crypto.h: New file.
26257 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26258 * include/grub/normal.h (read_crypto_list): New prototype.
26259 * lib/crypto.c: New file.
26260 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26261 * lib/pbkdf2.c: Likewise.
26262 * normal/auth.c (grub_auth_strcmp): Removed.
26263 (grub_iswordseparator): Likewise.
26264 (grub_auth_strword): Likewise.
26265 (is_authenticated): Use grub_strword.
26266 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26267 and grub_strword. Pass entered password to authentication callback.
26268 * normal/crypto.c: New file.
26269 * normal/main.c: Call read_crypto_list.
26270 * util/grub-mkpasswd-pbkdf2.c: New file.
26271 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26272
42841caa
VS
262732010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26274
26275 Fix descent and ascent calculation.
26276
26277 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26278 (options): New option "asce".
26279 (usage): Likewise.
26280 (add_char): Ignore invalid glyphs for descent calculation.
26281 Calculate ascent from actual content.
26282 (print_glyphs): Use 'asce'.
26283 (write_font): Likewise. Allow ascent override.
26284 (main): Handle "asce" option.
26285
e7730de7 262862010-01-06 Carles Pina i Estany <carles@pina.cat>
26287
26288 * kern/err.c: Include `<grub/i18n.h>'.
26289 (grub_print_error): Add full stop. Gettextizze.
26290 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
26291 (grub_bsd_load_elf): Capitalise ELF.
26292 (grub_cmd_freebsd_loadenv): Add `s' in error string.
26293 (grub_cmd_freebsd_module): Likewise.
26294 (grub_cmd_freebsd_module_elf): Likewise.
26295 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
26296
40e3a41f 262972010-01-06 Carles Pina i Estany <carles@pina.cat>
26298
26299 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
26300 * commands/search_file.c (HELP_MESSAGE): New macro.
26301 * commands/search_label.c (HELP_MESSAGE): Likewise.
26302 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
26303 * po/POTFILES: Add `commands/search_file.c',
26304 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
26305 `commands/search.c'.
26306
83507e68
RM
263072010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26308
26309 * config.rpath: Update from Gnulib.
26310
465c787b
YB
263112010-01-05 Yves Blusseau <blusseau@zetam.org>
26312
26313 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
26314
6581dd3a
YB
263152010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
26316
26317 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
26318
3bff18c5
CW
263192010-01-05 Colin Watson <cjwatson@ubuntu.com>
26320
26321 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
26322 arguments to fread so that we get a return value in bytes, rather
26323 than something that will normally be rounded down to 0.
26324 Adjust error handling to avoid producing garbage when size_t is not
26325 the same size as long long.
26326
a1368118
CW
263272010-01-05 Colin Watson <cjwatson@ubuntu.com>
26328
26329 * util/mkisofs/write.c (padblock_write): Check return value of
26330 fread.
26331
7c302978
RM
263322010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26333
26334 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
26335 floppy images now.
26336
26337 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
26338
e33ace06
RM
263392010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26340
26341 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
26342 instead of manual alignment.
26343 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
26344 verbose). Avoid attempts to read past end of the device
26345 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
26346 but GRUB_DISK_CACHE_SIZE may exceed that).
26347
4b856776
RM
263482010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26349
26350 * commands/crc.c (grub_cmd_crc): Abort on read errors.
26351 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
26352 it to upper layer.
26353
52c2d97f
VS
263542010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26355
26356 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
26357 New constant.
26358 (grub_efi_piwg_device_path): New structure
26359 (grub_efi_piwg_device_path_t): New type.
26360 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
26361 (devpath_1): Transform to a structure. All users updated.
26362 (devpath_2): Likewise.
26363 (devpath_3): Likewise.
26364 (devpath_4): Likewise.
26365 (devpath_5): Likewise.
26366
98ff6a54
VS
263672010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26368
26369 * loader/efi/appleloader.c: Restored. Update all users.
26370
3a73dcb6
RM
263712010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26372
26373 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
26374
26375 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
26376 (struct boot_blocklist): Move from here ...
26377 * include/grub/i386/pc/boot.h [ASM_FILE]
26378 (struct grub_boot_blocklist): ... to here. Update all users.
26379 (setup): Only initialize `start' member of `first_block'
26380 structure. Add assert() calls to verify the other members.
26381
26382 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
26383 (generate_image): Fix broken blocklist length initialization.
26384 Add assert() call to verify blocklist `segment' field.
26385
ab0eeb0c
RM
263862010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26387
26388 * loader/efi/appleloader.c: Remove. Update all users.
26389
58bc8bd5
RM
263902010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26391
26392 * boot/i386/pc/boot.S: Update copyright year.
26393 * boot/i386/pc/cdboot.S: Likewise.
26394 * boot/i386/pc/diskboot.S: Likewise.
26395 * boot/i386/pc/lnxboot.S: Likewise.
26396 * boot/i386/pc/pxeboot.S: Likewise.
26397 * bus/pci.c: Likewise.
26398 * commands/cmp.c: Likewise.
26399 * commands/help.c: Likewise.
26400 * commands/hexdump.c: Likewise.
26401 * commands/i386/pc/halt.c: Likewise.
26402 * commands/i386/pc/play.c: Likewise.
26403 * commands/i386/pc/vbeinfo.c: Likewise.
26404 * commands/ls.c: Likewise.
26405 * commands/test.c: Likewise.
26406 * disk/dmraid_nvidia.c: Likewise.
26407 * disk/i386/pc/biosdisk.c: Likewise.
26408 * disk/ieee1275/nand.c: Likewise.
26409 * disk/ieee1275/ofdisk.c: Likewise.
26410 * disk/lvm.c: Likewise.
26411 * disk/raid.c: Likewise.
26412 * disk/raid6_recover.c: Likewise.
26413 * disk/scsi.c: Likewise.
26414 * fs/affs.c: Likewise.
26415 * fs/cpio.c: Likewise.
26416 * fs/ext2.c: Likewise.
26417 * fs/hfs.c: Likewise.
26418 * fs/iso9660.c: Likewise.
26419 * fs/ntfs.c: Likewise.
26420 * fs/sfs.c: Likewise.
26421 * fs/udf.c: Likewise.
26422 * fs/ufs.c: Likewise.
26423 * fs/xfs.c: Likewise.
26424 * gencmdlist.sh: Likewise.
26425 * genmk.rb: Likewise.
26426 * include/grub/disk.h: Likewise.
26427 * include/grub/efi/api.h: Likewise.
26428 * include/grub/efi/efi.h: Likewise.
26429 * include/grub/efi/pe32.h: Likewise.
26430 * include/grub/elf.h: Likewise.
26431 * include/grub/fs.h: Likewise.
26432 * include/grub/i386/at_keyboard.h: Likewise.
26433 * include/grub/i386/pc/memory.h: Likewise.
26434 * include/grub/i386/pc/vbe.h: Likewise.
26435 * include/grub/i386/pci.h: Likewise.
26436 * include/grub/i386/tsc.h: Likewise.
26437 * include/grub/ieee1275/ieee1275.h: Likewise.
26438 * include/grub/ntfs.h: Likewise.
26439 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26440 * include/grub/sparc64/libgcc.h: Likewise.
26441 * include/grub/symbol.h: Likewise.
26442 * include/grub/types.h: Likewise.
26443 * include/multiboot2.h: Likewise.
26444 * io/gzio.c: Likewise.
26445 * kern/device.c: Likewise.
26446 * kern/disk.c: Likewise.
26447 * kern/efi/efi.c: Likewise.
26448 * kern/efi/mm.c: Likewise.
26449 * kern/elf.c: Likewise.
26450 * kern/file.c: Likewise.
26451 * kern/i386/dl.c: Likewise.
26452 * kern/i386/pc/init.c: Likewise.
26453 * kern/i386/pc/startup.S: Likewise.
26454 * kern/ieee1275/ieee1275.c: Likewise.
26455 * kern/ieee1275/init.c: Likewise.
26456 * kern/main.c: Likewise.
26457 * kern/mm.c: Likewise.
26458 * kern/powerpc/dl.c: Likewise.
26459 * kern/sparc64/dl.c: Likewise.
26460 * kern/x86_64/dl.c: Likewise.
26461 * lib/hexdump.c: Likewise.
26462 * loader/efi/appleloader.c: Likewise.
26463 * loader/i386/ieee1275/linux.c: Likewise.
26464 * loader/i386/pc/chainloader.c: Likewise.
26465 * loader/i386/pc/linux.c: Likewise.
26466 * loader/i386/pc/multiboot2.c: Likewise.
26467 * loader/ieee1275/multiboot2.c: Likewise.
26468 * loader/multiboot2.c: Likewise.
26469 * loader/multiboot_loader.c: Likewise.
26470 * loader/powerpc/ieee1275/linux.c: Likewise.
26471 * normal/completion.c: Likewise.
26472 * normal/menu_entry.c: Likewise.
26473 * partmap/apple.c: Likewise.
26474 * util/grub.d/10_hurd.in: Likewise.
26475 * util/hostfs.c: Likewise.
26476 * video/readers/png.c: Likewise.
26477
e2d70b5c
CW
264782010-01-03 Colin Watson <cjwatson@ubuntu.com>
26479
26480 * include/grub/misc.h (GNUC_PREREQ): New macro.
26481 (ATTRIBUTE_ERROR): New macro.
26482 * include/grub/list.h (grub_bad_type_cast_real): Use
26483 ATTRIBUTE_ERROR.
26484
a173283f 264852010-01-03 Carles Pina i Estany <carles@pina.cat>
26486
26487 * normal/menu_text.c (print_message): Change messages.
26488
7fa7ff74 264892010-01-03 Carles Pina i Estany <carles@pina.cat>
26490
26491 * normal/menu_entry.c (store_completion): Gettextizze.
26492
136d24f6 264932010-01-03 Carles Pina i Estany <carles@pina.cat>
26494
26495 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
26496
f936862e 264972010-01-03 Carles Pina i Estany <carles@pina.cat>
26498
26499 * po/POTFILES: Sort correctly.
26500
29c44ad1 265012010-01-03 Carles Pina i Estany <carles@pina.cat>
26502
26503 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
26504 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
26505 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
26506 full stop.
26507 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
26508 summary. Gettextizze the strings.
26509 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
26510 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
26511 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
26512 full stop.
26513 (GRUB_MOD_INIT): Remove command name from summary.
26514 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
26515 summary.
26516 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
26517 * term/i386/pc/serial.c (options): Add full stops.
26518 (GRUB_MOD_INIT): Remove command name from the summary.
26519
77a79592 265202010-01-03 Carles Pina i Estany <carles@pina.cat>
26521
26522 * commands/acpi.c: Gettextizze help strings and/or options. Include
26523 `grub/i18n.h' if needed.
26524 * commands/blocklist.c: Likewise.
26525 * commands/boot.c: Likewise.
26526 * commands/cat.c: Likewise.
26527 * commands/cmp.c: Likewise.
26528 * commands/configfile.c: Likewise.
26529 * commands/crc.c: Likewise.
26530 * commands/date.c: Likewise.
26531 * commands/echo.c: Likewise.
26532 * commands/efi/fixvideo.c: Likewise.
26533 * commands/efi/loadbios.c: Likewise.
26534 * commands/gptsync.c: Likewise.
26535 * commands/halt.c: Likewise.
26536 * commands/handler.c: Likewise.
26537 * commands/hdparm.c: Likewise.
26538 * commands/hexdump.c: Likewise.
26539 * commands/i386/cpuid.c: Likewise.
26540 * commands/i386/pc/drivemap.c: Likewise.
26541 * commands/i386/pc/halt.c: Likewise.
26542 * commands/i386/pc/pxecmd.c: Likewise.
26543 * commands/i386/pc/vbeinfo.c: Likewise.
26544 * commands/i386/pc/vbetest.c: Likewise.
26545 * commands/ieee1275/suspend.c: Likewise.
26546 * commands/keystatus.c: Likewise.
26547 * commands/loadenv.c: Likewise.
26548 * commands/ls.c: Likewise.
26549 * commands/lsmmap.c: Likewise.
26550 * commands/lspci.c: Likewise.
26551 * commands/memrw.c: Likewise.
26552 * commands/minicmd.c: Likewise.
26553 * commands/parttool.c: Likewise.
26554 * commands/password.c: Likewise.
26555 * commands/probe.c: Likewise.
26556 * commands/read.c: Likewise.
26557 * commands/reboot.c: Likewise.
26558 * commands/search.c: Likewise.
26559 * commands/sleep.c: Likewise.
26560 * commands/test.c: Likewise.
26561 * commands/true.c: Likewise.
26562 * commands/usbtest.c: Likewise.
26563 * commands/videotest.c: Likewise.
26564 * commands/xnu_uuid.c: Likewise.
26565 * disk/loopback.c: Likewise.
26566 * hello/hello.c: Likewise.
26567 * loader/i386/bsd.c: Likewise.
26568 * term/i386/pc/serial.c: Likewise.
26569 * po/POTFILES: Add new files.
26570
da8d5c53
CW
265712010-01-02 Colin Watson <cjwatson@ubuntu.com>
26572
26573 * term/i386/pc/at_keyboard.c
26574 (keyboard_controller_wait_untill_ready): Rename to ...
26575 (keyboard_controller_wait_until_ready): ... this. Update all users.
26576
33937904 265772010-01-01 Carles Pina i Estany <carles@pina.cat>
26578
26579 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
26580 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
26581 string using string width.
26582 * normal/menu_text.c (grub_print_message_indented): Use
26583 grub_print_spaces and not print_spaces.
26584 (print_timeout): Likewise.
26585 (print_spaces): Move to...
26586 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
26587
3fd3b8d8
RM
265882010-01-01 Robert Millan <rmh.grub@aybabtu.com>
26589
26590 Import from Gnulib.
26591
26592 * gnulib/getdelim.c: New file.
26593 * gnulib/getline.c: Likewise.
26594
33433555
VS
265952009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
26596
26597 * include/grub/list.h (grub_assert_fail): Removed.
26598 (grub_bad_type_cast_real): New function.
26599 (grub_bad_type_cast): New macro.
26600 (GRUB_AS_LIST): Use grub_bad_type_cast.
26601 (GRUB_AS_LIST_P): Likewise.
e44721e8 26602 (GRUB_AS_NAMED_LIST): Likewise.
33433555 26603 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 26604 (GRUB_AS_PRIO_LIST): Likewise.
33433555 26605 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 26606 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 26607
f5a51306
VS
266082009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
26609
26610 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
26611 Fix syntax error.
26612
90d1e879
RM
266132009-12-29 Robert Millan <rmh.grub@aybabtu.com>
26614
26615 * configure.ac: Check for TARGET_CFLAGS initialization before we
26616 initialize it ourselves (sigh).
26617 Move a few modifications to TARGET_CFLAGS to be unconditional
26618 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
26619 eh_frame)
26620
26621 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
26622 * term/i386/pc/at_keyboard.c
26623 (keyboard_controller_wait_untill_ready): Likewise.
26624 (keyboard_controller_led): Rename `led_status' paramter to avoid
26625 name conflict.
26626
465b5a81 266272009-12-28 Carles Pina i Estany <carles@pina.cat>
26628
26629 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
26630 quotes.
26631
c181849b
VS
266322009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26633
26634 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
26635
9c8739a4
VS
266362009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26637
26638 * normal/menu_text.c (grub_print_message_indented): Prevent
26639 past-the-end-of-array dereference.
26640
3e74249c
VS
266412009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26642
26643 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
26644 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
26645
64fd18ed 266462009-12-27 Carles Pina i Estany <carles@pina.cat>
26647
26648 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
26649 * normal/main.c (grub_normal_read_line): Remove a space from the
26650 default prompt.
26651
714af9b9 266522009-12-27 Carles Pina i Estany <carles@pina.cat>
26653
26654 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
26655 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26656 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26657 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26658 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26659 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26660 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26661
82f3e412 266622009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 26663
26664 * video/readers/jpeg.c (cmd): Declare.
26665 (grub_cmd_jpegtest): Use `grub_command_t' type.
26666 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26667 Assign to `cmd'.
26668 (GRUB_MOD_FINI): Use `cmd' to unregister.
26669 * video/readers/png.c (cmd): Declare.
26670 (grub_cmd_pngtest): Use `grub_command_t' type.
26671 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26672 Assign to `cmd'.
26673 (GRUB_MOD_FINI): Use `cmd' to unregister.
26674 * video/readers/tga.c (cmd): Declare.
26675 (grub_cmd_tgatest): Use `grub_command_t' type.
26676 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26677 Assign to `cmd'.
26678 (GRUB_MOD_FINI): Use `cmd' to unregister.
26679
82f3e412 266802009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 26681
26682 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
26683 stops.
26684 * kern/corecmd.c (grub_register_core_commands): Likewise.
26685 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
26686 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26687 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
26688 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26689 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26690 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
26691 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26692 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
26693 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26694 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26695 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26696 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26697 * normal/handler.c (insert_handler): Likewise.
26698 * normal/main.c (GRUB_MOD_INIT): Likewise.
26699 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
26700
fdcdbb66 267012009-12-26 Carles Pina i Estany <carles@pina.cat>
26702
26703 * commands/help.c (grub_cmd_help): Print the command name before the
26704 summary.
26705 (GRUB_MOD_INIT): Remove command name from the summary.
26706 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 26707 string as summary.
fdcdbb66 26708 * lib/arg.c (find_long): Print the command name before the summary.
26709 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
26710 summary.
26711 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
26712 * commands/cat.c (GRUB_MOD_INIT): Likewise.
26713 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
26714 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26715 * commands/crc.c (GRUB_MOD_INIT): Likewise.
26716 * commands/date.c (GRUB_MOD_INIT): Likewise.
26717 * commands/echo.c (GRUB_MOD_INIT): Likewise.
26718 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
26719 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26720 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26721 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
26722 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
26723 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
26724 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
26725 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26726 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
26727 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
26728 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
26729 * commands/ls.c (GRUB_MOD_INIT): Likewise.
26730 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26731 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26732 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26733 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
26734 * commands/password.c (GRUB_MOD_INIT): Likewise.
26735 * commands/probe.c (GRUB_MOD_INIT): Likewise.
26736 * commands/read.c (GRUB_MOD_INIT): Likewise.
26737 * commands/search.c (GRUB_MOD_INIT): Likewise.
26738 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
26739 * commands/test.c (GRUB_MOD_INIT): Likewise.
26740 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
26741 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26742 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26743 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
26744 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26745 * lib/arg.c (GRUB_MOD_INIT): Likewise.
26746 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
26747 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26748 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26749 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26750 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26751 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
26752 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
26753 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
26754
9c288be2
VS
267552009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26756
26757 Use search command for preliminar UUID search.
26758
26759 * commands/search.c: Split into ...
26760 * commands/search_wrap.c: ...this
26761 * commands/search.c: ...and this.
26762 * commands/search_file.c: New file.
26763 * commands/search_label.c: New file.
26764 * commands/search_uuid.c: New file.
26765 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
26766 Add commands/search_wrap.c, commands/search_file.c,
26767 commands/search_label.c and commands/search_uuid.c.
26768 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
26769 (search_mod_SOURCES): Set to commands/search_wrap.c.
26770 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
26771 search_label.mod.
26772 (search_fs_file_mod_SOURCES): New variable.
26773 (search_fs_file_mod_CFLAGS): Likewise.
26774 (search_fs_file_mod_LDFLAGS): Likewise.
26775 (search_label_mod_SOURCES): Likewise.
26776 (search_label_mod_CFLAGS): Likewise.
26777 (search_label_mod_LDFLAGS): Likewise.
26778 (search_fs_uuid_mod_SOURCES): New variable.
26779 (search_fs_uuid_mod_CFLAGS): Likewise.
26780 (search_fs_uuid_mod_LDFLAGS): Likewise.
26781 (fs_file_mod_SOURCES): Removed.
26782 (fs_file_mod_CFLAGS): Likewise.
26783 (fs_file_mod_LDFLAGS): Likewise.
26784 (fs_uuid_mod_SOURCES): Removed.
26785 (fs_uuid_mod_CFLAGS): Likewise.
26786 (fs_uuid_mod_LDFLAGS): Likewise.
26787 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
26788 Set to util/grub-install.in.
26789 * disk/fs_file.c: Removed.
26790 * disk/fs_uuid.c: Likewise.
26791 * include/grub/search.h: New file.
26792 * util/grub-install.in: Handle sparc64.
26793 Create and use load.cfg.
26794 * util/sparc64/ieee1275/grub-install.in: Removed.
26795
db943399
VS
267962009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26797
26798 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
26799 Ignore return status if CF is cleared.
26800 (grub_biosdisk_get_diskinfo_standard): Likewise.
26801
3fdae612
RM
268022009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26803
26804 * term/i386/pc/at_keyboard.c
26805 (keyboard_controller_wait_untill_ready): New function.
26806 (grub_keyboard_controller_write, grub_keyboard_controller_read)
26807 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
26808 for keyboard polling, rather than duplicate the same loop. This
26809 saves a few bytes in code size.
26810
7ebaa2b4
VS
268112009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26812
26813 Support for (pxe[:server[:gateway]]) syntax and
26814 use environment variable for PXE.
26815
26816 * commands/i386/pc/pxecmd.c (options): Removed.
26817 (print_ip): Removed.
26818 (grub_cmd_pxe): Removed
26819 (grub_cmd_pxe_unload): New function.
26820 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26821 (grub_pxe_your_ip): Made static.
26822 (grub_pxe_default_server_ip): Likewise.
26823 (grub_pxe_default_gateway_ip): Likewise.
26824 (grub_pxe_blksize): Likewise.
26825 (parse_ip): New function.
26826 (grub_pxe_open): Support server and gateway specification.
26827 (grub_pxe_close): Free disk->data.
26828 (grub_pxefs_open): Use disk->data.
26829 (grub_pxefs_read): Likewise.
26830 (grub_env_write_readonly): New function.
26831 (set_mac_env): Likewise.
26832 (set_env_limn_ro): Likewise.
26833 (parse_dhcp_vendor): Likewise.
26834 (grub_pxe_detect): Set the environment variables.
26835 (set_ip_env): New function.
26836 (write_ip_env): Likewise.
26837 (grub_env_write_pxe_default_server): Likewise.
26838 (grub_env_write_pxe_default_gateway): Likewise.
26839 (grub_env_write_pxe_blocksize): Likewise.
26840 (GRUB_MOD_INIT(pxe)): Set environment variables.
26841 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26842 (grub_pxe_mac_addr_t): ... this. All users updated.
26843 (grub_pxe_your_ip): Removed.
26844 (grub_pxe_server_ip): Likewise.
26845 (grub_pxe_gateway_ip): Likewise.
26846 (grub_pxe_blksize): Likewise.
26847
ec5f98ab 268482009-12-25 Carles Pina i Estany <carles@pina.cat>
26849
26850 * commands/help.c: Include `<grub/i18n.h>'.
26851 (grub_cmd_help): Gettextizze.
26852 (GRUB_MOD_INIT): Likewise.
26853 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
26854 (GRUB_MOD_INIT): Gettextizze.
26855 * commands/search.c: Include `<grub/i18n.h>'.
26856 (options): Gettextizze.
26857 (GRUB_MOD_INIT): Gettextizze.
26858 * lib/arg.c: Include `<grub/i18n.h>'.
26859 (help_options): Gettextizze.
26860 (find_long): Likewise.
26861 (grub_arg_show_help): Likewise.
26862 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26863 (read_command_list): Gettextizze.
26864 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26865 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26866
22815526
RM
268672009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26868
26869 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26870 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26871 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26872 (led_status): New variable.
26873 (keyboard_controller_led): New function.
26874 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26875 update led status for caps lock, num lock and scroll lock.
26876
0ad46fd7
FZ
268772009-12-25 Felix Zielcke <fzielcke@z-51.de>
26878
26879 * util/hostdisk.c (open_device): Fix a comment.
26880
d0e158c2
RM
268812009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26882
26883 * util/grub-install.in (host_os): New variable.
26884 * util/i386/efi/grub-install.in (host_os): Likewise.
26885
401c0ad6
RM
268862009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26887
26888 * util/mkisofs/write.c (padblock_write): Abort when given an
26889 excedingly large embed image, instead of silently truncating it.
26890
d14d3370
RM
268912009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26892
26893 * include/multiboot.h: Indentation fixes.
26894
eeed10b4
RM
268952009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26896
26897 * include/multiboot.h (struct multiboot_aout_symbol_table)
26898 (struct multiboot_elf_section_header_table): New structure
26899 declarations (stolen from GRUB Legacy).
26900 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26901 table information.
26902
26903 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26904 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26905 type aliases.
26906
681c70ab
RM
269072009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26908
26909 * include/multiboot.h: Make comments src2texi-friendly.
26910
e4d47d8d
RM
269112009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26912
26913 For consistency with [multiboot]/docs/boot.S.
26914
26915 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26916 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26917 (MULTIBOOT_MAGIC2): Rename from this ...
26918 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26919
a0b70bda
RM
269202009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26921
26922 * include/multiboot.h: Remove `<grub/types.h>'.
26923 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26924 types. Update all users.
26925
61ba42be 269262009-12-25 Carles Pina i Estany <carles@pina.cat>
26927
26928 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26929 `couldn't' and `can not' by `cannot'.
26930 * commands/i386/pc/drivemap.c: Likewise.
26931 * disk/ata.c: Likewise.
26932 * disk/ieee1275/nand.c: Likewise.
26933 * fs/affs.c: Likewise.
26934 * fs/fat.c: Likewise.
26935 * fs/hfs.c: Likewise.
26936 * fs/hfsplus.c: Likewise.
26937 * fs/iso9660.c: Likewise.
26938 * fs/jfs.c: Likewise.
26939 * fs/minix.c: Likewise.
26940 * fs/reiserfs.c: Likewise.
26941 * fs/sfs.c: Likewise.
26942 * fs/udf.c: Likewise.
26943 * fs/ufs.c: Likewise.
26944 * fs/xfs.c: Likewise.
26945 * loader/powerpc/ieee1275/linux.c: Likewise.
26946 * loader/sparc64/ieee1275/linux.c: Likewise.
26947 * util/grub-probe.c: Likewise.
26948 * util/misc.c: Likewise.
26949
7fd0baee 269502009-12-24 Carles Pina i Estany <carles@pina.cat>
26951
26952 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26953 grub_errno calls.
26954 * commands/acpi.c: Likewise.
26955 * commands/blocklist.c: Likewise.
26956 * commands/efi/loadbios.c: Likewise.
26957 * commands/i386/pc/drivemap.c: Likewise.
26958 * commands/loadenv.c: Likewise.
26959 * commands/memrw.c: Likewise.
26960 * commands/password.c: Likewise.
26961 * commands/videotest.c: Likewise.
26962 * disk/ata.c: Likewise.
26963 * disk/ata_pthru.c: Likewise.
26964 * disk/dmraid_nvidia.c: Likewise.
26965 * disk/ieee1275/nand.c: Likewise.
26966 * disk/ieee1275/ofdisk.c: Likewise.
26967 * disk/loopback.c: Likewise.
26968 * disk/lvm.c: Likewise.
26969 * disk/mdraid_linux.c: Likewise.
26970 * disk/raid.c: Likewise.
26971 * disk/raid6_recover.c: Likewise.
26972 * disk/scsi.c: Likewise.
26973 * efiemu/main.c: Likewise.
26974 * efiemu/mm.c: Likewise.
26975 * efiemu/pnvram.c: Likewise.
26976 * efiemu/symbols.c: Likewise.
26977 * font/font.c: Likewise.
26978 * fs/cpio.c: Likewise.
26979 * fs/hfsplus.c: Likewise.
26980 * fs/iso9660.c: Likewise.
26981 * fs/jfs.c: Likewise.
26982 * fs/minix.c: Likewise.
26983 * fs/ntfs.c: Likewise.
26984 * fs/ntfscomp.c: Likewise.
26985 * fs/reiserfs.c: Likewise.
26986 * fs/ufs.c: Likewise.
26987 * fs/xfs.c: Likewise.
26988 * gettext/gettext.c: Likewise.
26989 * include/grub/auth.h: Likewise.
26990 * kern/elf.c: Likewise.
26991 * kern/file.c: Likewise.
26992 * kern/ieee1275/init.c: Likewise.
26993 * kern/ieee1275/mmap.c: Likewise.
26994 * kern/ieee1275/openfw.c: Likewise.
26995 * kern/powerpc/dl.c: Likewise.
26996 * kern/sparc64/dl.c: Likewise.
26997 * lib/arg.c: Likewise.
26998 * loader/i386/bsd.c: Likewise.
26999 * loader/i386/bsdXX.c: Likewise.
27000 * loader/i386/efi/linux.c: Likewise.
27001 * loader/i386/efi/xnu.c: Likewise.
27002 * loader/i386/ieee1275/linux.c: Likewise.
27003 * loader/i386/linux.c: Likewise.
27004 * loader/i386/multiboot.c: Likewise.
27005 * loader/i386/pc/linux.c: Likewise.
27006 * loader/i386/pc/multiboot2.c: Likewise.
27007 * loader/i386/xnu.c: Likewise.
27008 * loader/ieee1275/multiboot2.c: Likewise.
27009 * loader/macho.c: Likewise.
27010 * loader/machoXX.c: Likewise.
27011 * loader/multiboot2.c: Likewise.
27012 * loader/multiboot_loader.c: Likewise.
27013 * loader/powerpc/ieee1275/linux.c: Likewise.
27014 * loader/sparc64/ieee1275/linux.c: Likewise.
27015 * loader/xnu.c: Likewise.
27016 * loader/xnu_resume.c: Likewise.
27017 * mmap/i386/pc/mmap.c: Likewise.
27018 * normal/menu_viewer.c: Likewise.
27019 * partmap/acorn.c: Likewise.
27020 * partmap/amiga.c: Likewise.
27021 * partmap/apple.c: Likewise.
27022 * script/lexer.c: Likewise.
27023 * term/gfxterm.c: Likewise.
27024 * term/i386/pc/serial.c: Likewise.
27025 * term/i386/pc/vga.c: Likewise.
27026 * term/ieee1275/ofconsole.c: Likewise.
27027 * term/terminfo.c: Likewise.
27028 * video/bitmap.c: Likewise.
27029 * video/efi_gop.c: Likewise.
27030 * video/efi_uga.c: Likewise.
27031 * video/fb/video_fb.c: Likewise.
27032 * video/i386/pc/vbe.c: Likewise.
27033 * video/readers/tga.c: Likewise.
27034 * video/video.c: Likewise.
27035
0ad46fd7 270362009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
27037
27038 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27039 * commands/lspci.c: Likewise.
27040 * commands/probe.c: Likewise.
27041 * commands/xnu_uuid.c: Likewise.
27042 * conf/i386-coreboot.rmk: Likewise.
27043 * conf/i386-efi.rmk: Likewise.
27044 * conf/i386-ieee1275.rmk: Likewise.
27045 * conf/i386-pc.rmk: Likewise.
27046 * conf/powerpc-ieee1275.rmk: Likewise.
27047 * conf/sparc64-ieee1275.rmk: Likewise.
27048 * conf/x86_64-efi.rmk: Likewise.
27049 * fs/i386/pc/pxe.c: Likewise.
27050 * gettext/gettext.c: Likewise.
27051 * include/grub/efi/graphics_output.h: Likewise.
27052 * include/grub/i386/pc/memory.h: Likewise.
27053 * kern/env.c: Likewise.
27054 * kern/i386/qemu/startup.S: Likewise.
27055 * lib/i386/pc/biosnum.c: Likewise.
27056 * lib/i386/relocator.c: Likewise.
27057 * lib/i386/relocator_asm.S: Likewise.
27058 * lib/relocator.c: Likewise.
27059 * loader/i386/bsd.c: Likewise.
27060 * loader/i386/multiboot.c: Likewise.
27061 * loader/i386/pc/chainloader.c: Likewise.
27062 * loader/i386/xnu.c: Likewise.
27063 * loader/xnu.c: Likewise.
27064 * normal/main.c: Likewise.
27065 * normal/menu_text.c: Likewise.
27066 * util/getroot.c: Likewise.
27067 * util/grub-mkconfig_lib.in: Likewise.
27068 * util/grub.d/00_header.in: Likewise.
27069 * util/i386/pc/grub-mkimage.c: Likewise.
27070 * util/mkisofs/eltorito.c: Likewise.
27071 * util/mkisofs/exclude.h: Likewise.
27072 * util/mkisofs/hash.c: Likewise.
27073 * util/mkisofs/iso9660.h: Likewise.
27074 * util/mkisofs/joliet.c: Likewise.
27075 * util/mkisofs/mkisofs.c: Likewise.
27076 * util/mkisofs/mkisofs.h: Likewise.
27077 * util/mkisofs/multi.c: Likewise.
27078 * util/mkisofs/name.c: Likewise.
27079 * util/mkisofs/rock.c: Likewise.
27080 * util/mkisofs/tree.c: Likewise.
27081 * util/mkisofs/write.c: Likewise.
27082 * video/efi_gop.c: Likewise.
27083
009ec743
VS
270842009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27085
27086 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27087 size counting.
27088
0ad46fd7 270892009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
27090
27091 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27092 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27093
d3d30ea0
VS
270942009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27095
27096 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27097 (GRUB_MOD_INIT(memrw)): Update help line.
27098
a34f5c70
VS
270992009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27100
27101 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27102 Use grub_extcmd_t. All users updated.
27103 (options): New variable.
27104 (grub_cmd_read): Restructure for readability. Support "-v" option.
27105 (grub_cmd_write): Restructure for readability.
27106
0ad46fd7 271072009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
27108
27109 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27110
0ad46fd7 271112009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
27112
27113 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27114 with the actual contents of the correspondending make variable.
27115 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27116 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27117 specifying `*.lst' and `efiemu??.o'
27118
0ad46fd7 271192009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
27120
27121 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27122 after function name.
27123 Noticed by Rene Engelhard <rene@debian.org>.
27124
dc77a799
VS
271252009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27126
27127 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27128 (options): New variable.
27129 (iospace): Likewise.
27130 (grub_lspci_iter): List IO spaces if "-i" was given.
27131 (grub_cmd_lspci): Parse options.
27132 (GRUB_MOD_INIT(lspci)): Use extcmd.
27133 (GRUB_MOD_FINI(lspci)): Likewise.
27134
0ad46fd7 271352009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
27136
27137 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27138 `function' keyword.
27139 Patch by Tony Mancill <tmancill@debian.org>.
27140
b5d5993b
VS
271412009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27142
27143 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27144 (grub_uhci_portstatus): Likewise.
27145 (grub_uhci_portstatus): Add necessary delay.
11d18281 27146 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 27147
941903f2 271482009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 27149
941903f2 27150 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27151 (GRUB_MOD_INIT): Likewise.
27152 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 27153 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27154 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 27155 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27156 (enable_rom_area): Likewise.
27157 (GRUB_MOD_INIT): Likewise.
27158 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27159 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27160 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27161 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27162 * commands/hexdump.c (options): Likewise.
27163 * commands/i386/cpuid.c (options): Likewise.
27164 (GRUB_MOD_INIT): Likewise.
27165 * commands/i386/pc/drivemap.c (options): Likewise.
27166 (GRUB_MOD_INIT): Likewise.
27167 * commands/i386/pc/halt (options): Likewise.
27168 (GRUB_MOD_INIT): Likewise.
27169 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27170 * commands/i386/pc/pxecmd.c (options): Likewise.
27171 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27172 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27173 * commands/keystatus.c (options): Likewise.
27174 (GRUB_MOD_INIT): Likewise.
27175 * commands/loadenv.c (options): Likewise.
27176 * commands/ls.c (options): Likewise.
27177 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27178 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27179 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27180 * commands/parttool.c (helpmsg): Likewise.
27181 * commands/probe.c (options): Likewise.
27182 * commands/read.c (GRUB_MOD_INIT): Likewise.
27183 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27184 * commands/search.c (options): Likewise.
27185 * commands/sleep.c (options): Likewise.
27186 * commands/test.c (GRUB_MOD_INIT): Likewise.
27187 * commands/true.c (GRUB_MOD_INIT): Likewise.
27188 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27189 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27190 * lib/arg.c (help_options): Likewise.
e9bbb4e7 27191 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27192 `$(XGETTEXT)'.
98a50553 27193 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 27194
0ad46fd7 271952009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 27196
ef3c2c3a 27197 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
27198 instead of specifying them explicit.
27199
7922f68b
RM
272002009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27201
27202 * NEWS: Add grub-probe support for GNU/Hurd.
27203
537ce47f
RM
272042009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27205
27206 * NEWS: gettext was added after 1.97.
27207
9b214e3a
RM
272082009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27209
27210 * util/mkisofs/msdos_partition.h: New file (based on
27211 include/grub/msdos_partition.h).
27212 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27213 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27214 (ld_options, main): Recognize --protective-msdos-label.
27215 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27216 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27217 (padblock_write): If `use_protective_msdos_label' is set, patch a
27218 protective DOS-style label in the output image.
27219
27220 * util/grub-mkrescue.in: Use --protective-msdos-label.
27221
e9309813
RM
272222009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27223
27224 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27225 boot.
27226
0ae56929
RM
272272009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27228
27229 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27230 variables.
27231 (ld_options, main): Recognize `--embedded-boot'.
27232 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27233 declarations.
27234 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27235 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27236 (padblock_write): Likewise. Rewrite to support embedded boot image.
27237
27238 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27239 for BIOS-based disk boot instead of only ElTorito.
27240
b15937b1
RM
272412009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27242
27243 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27244 build (not needed for bootstrap).
27245
52cc3ce0
RM
272462009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27247
27248 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27249 from i386-pc build (not needed for bootstrap).
27250 Rewrite a pair of strings.
27251
36f5ff04
RM
272522009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27253
27254 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27255
973c6c85 272562009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
27257
27258 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27259
05d21547
AB
272602009-12-21 Andreas Born <futur.andy@googlemail.com>
27261
27262 * kern/env.c (grub_env_context_open): Mark exported variable for
27263 reexport.
27264
0175d51f
AB
272652009-12-21 Andreas Born <futur.andy@googlemail.com>
27266
27267 * kern/env.c (grub_env_export): Create nonexistent variables before
27268 exporting.
27269
7f39d92f 272702009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 27271
7f39d92f 27272 * include/grub/auth.h: Include `<grub/i18n.h>'.
27273 (GRUB_GET_PASSWORD): Gettextizze string.
27274 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27275 menu_text.c.
27276 (grub_utf8_to_ucs4_alloc): Fix indentation.
27277 (grub_print_ucs4): Likewise.
27278 (grub_getstringwidth): Likewise.
27279 (print_message_indented): New declaration.
27280 * normal/auth.c: Include `<grub/i18n.h>'.
27281 (grub_auth_check_authentication): Gettexttize string.
27282 * normal/cmdline.c: Include `<grub/i18n.h>'.
27283 (grub_cmdline_get): Gettextizze.
27284 * normal/color.c: Include `<grub/i18n.h>'.
27285 (grub_parse_color_name_pair): Gettexttize strings.
27286 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
27287 string (use `print_message_indented').
27288 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
27289 `include/grub/normal.h'.
27290 (print_message_indented): Renamed to ...
27291 (grub_print_message_indented): ... this. Remove `static' qualifer (now
27292 used in normal/main.c).
27293 (print_message): Use `grub_print_message_indented' instead of
27294 `print_message_indented'.
27295 (print_timeout): Likewise.
27296 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
27297 (grub_normal_print_device_info): Gettexttize strings.
27298 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
27299
3041d898
VS
273002009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27301
27302 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
27303 of arguments. Return number of tokens and not arguments. All users
27304 updated.
27305
de15bf8e
VS
273062009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27307
27308 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
27309 non-MSDOS paritions.
27310
e0a6ca52
VS
273112009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
27312
27313 * include/grub/types.h (UNUSED): Removed since it conflicts with
27314 NetBSD headers. All users changed to direct __attribute__ ((unused)).
27315 Reported by Grégoire Sutre.
27316
b99518d1 273172009-12-19 Carles Pina i Estany <carles@pina.cat>
27318
27319 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
27320 (grub_print_ucs4_alloc): Likewise.
27321 (grub_getstringwidth): Likewise.
27322 * normal/main.c (grub_normal_init_page): Gettextize version string.
27323 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
27324 (getstringwidth): Renamed to ...
27325 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
27326 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
27327 (grub_print_ucs4): Remove `static' qualifer (now used in
27328 normal/main.c).
27329 * po/POTFILES: Add normal/main.c.
27330
bfd5e52b 273312009-12-19 Carles Pina i Estany <carles@pina.cat>
27332
27333 * normal/menu_text.c (STANDARD_MARGIN): New macro.
27334 (print_message_indented): Add `margin_left' and `margin_right'
27335 parameters.
27336 (print_message): Update `print_message_indented' calls. Adds '\n' to the
27337 strings.
27338 (print_timeout): Use `print_message_indented' to print the message.
27339 Deletes `second_stage' parameter.
27340 (run_menu): Update `print_timeout' calls.
27341
5a1ad2b9
VS
273422009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27343
27344 Fix console palette on OpenFirmware.
27345
27346 * term/ieee1275/ofconsole.c (MAX): Removed.
27347 (colors): Redone based on VGA palette.
27348 (grub_ofconsole_setcolor): Discard brightness bit since only 8
27349 colors are supported.
27350 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
27351
b045f00a
VS
273522009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27353
27354 Fix potential EfiEmu double prepare.
27355
27356 * efiemu/main.c (prepared): New variable
27357 (grub_efiemu_unload): Set prepare to '0'.
27358 (grub_efiemu_prepare): Return if already prepared. Set prepared.
27359
27360 set_virtual_address_map support.
27361
27362 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
27363 prototype.
27364 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
27365 prototype.
27366 (grub_efiemu_crc32): Likewise.
27367 (grub_efiemu_crc64): Likewise.
27368 (grub_efiemu_set_virtual_address_map): Likewise.
27369 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
27370 New definition.
27371 (grub_autoefi_set_virtual_address_map): Likewise.
27372 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
27373 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
27374 Restructure flow to accomodate it.
27375 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
27376 (grub_efiemu_crc): Recompute CRC32.
27377 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
27378 (efiemu_ptv_relocated): ... this. Made global. All users updated.
27379 * efiemu/symbols.c (relocated_handle): New variable.
27380 (grub_efiemu_free_syms): Free relocated_handle.
27381 (grub_efiemu_alloc_syms): Allocate relocated_handle.
27382 (grub_efiemu_write_sym_markers): New function.
27383 (grub_efiemu_set_virtual_address_map): Likewise.
27384
27385 Newer XNU parameters.
27386
27387 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
27388 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
27389 (grub_xnu_fill_devicetree): New prototype.
27390 (grub_xnu_heap_real_start): New variable.
27391 * loader/xnu.c (get_name_ptr): New function.
27392 (grub_xnu_load_driver): Fill namelen and name.
27393
27394 64-bit xnu support.
27395
27396 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
27397 and 'loader/macho64.c'.
27398 * conf/i386-pc.rmk: Likewise.
27399 * conf/x86_64-efi.rmk: Likewise.
27400 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
27401 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
27402 * include/grub/macho.h (grub_macho_segment64): New structure.
27403 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
27404 (grub_macho_size32): ... to this.
27405 (grub_macho32_get_entry_point): Renamed from ...
27406 (grub_macho_get_entry_point32): ... to this.
27407 (grub_macho_contains_macho64): New prototype.
27408 (grub_macho_size64): Likewise.
27409 (grub_macho_get_entry_point64): Likewise.
27410 (grub_macho32_load): Renamed from ...
27411 (grub_macho_load32): ... to this.
27412 (grub_macho32_filesize): Renamed from ...
27413 (grub_macho_filesize32): ... to this.
27414 (grub_macho32_readfile): Renamed from ...
27415 (grub_macho_readfile32): ... to this.
27416 (grub_macho_filesize64): New prototype.
27417 (grub_macho_readfile64): Likewise.
27418 (grub_macho_parse32): Likewise.
27419 (grub_macho_parse64): Likewise.
27420 * loader/macho.c: Split into ...
27421 * loader/machoXX.c: ... and this. Replace 32 with XX.
27422 * loader/macho32.c: New file.
27423 * loader/macho64.c: Likewise.
27424 * loader/xnu.c (grub_xnu_is_64bit): New variable.
27425 (grub_cmd_xnu_kernel): Make 32-bit only.
27426 (grub_cmd_xnu_kernel64): New function.
27427 (grub_xnu_load_driver): Support Mach-O 64.
27428 (grub_cmd_xnu_mkext): Likewise.
27429 * util/grub.d/30_os-prober.in (osx_entry): New function.
27430 Generate entries for 64-bit boot too.
27431
27432 Eliminate ad-hoc tree format in XNU and EfiEmu.
27433
27434 * efiemu/main.c (grub_efiemu_prepare): Update comment.
27435 * efiemu/pnvram.c: Rewritten to use environment variables.
27436 All users updated.
27437
27438 Inline utf16_to_utf8.
27439
27440 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
27441 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
27442 All users updated.
27443 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
27444
27445 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
27446 * commands/usbtest.c (grub_usb_get_string): ... move here.
27447 (usb_print_str): Fix error handling.
27448 * include/grub/usb.h (grub_usb_get_string): Remove.
27449
27450 UTF-8 to UTF-16 transformation.
27451
27452 * conf/common.rmk (pkglib_MODULES): Add charset.mod
27453 (charset_mod_SOURCES): New variable.
27454 (charset_mod_CFLAGS): Likewise.
27455 (charset_mod_LDFLAGS): Likewise.
27456 * include/grub/utf.h: New file.
27457 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
27458
27459 Support for device properties.
27460
27461 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
27462 (grub_xnu_devprop_device_header): Likewise.
27463 (grub_xnu_devprop_device_descriptor): Likewise.
27464 (grub_xnu_devprop_add_device): New prototype.
27465 (grub_xnu_devprop_remove_device): Likewise.
27466 (grub_xnu_devprop_remove_property): Likewise.
27467 (grub_xnu_devprop_add_property_utf8): Likewise.
27468 (grub_xnu_devprop_add_property_utf16): Likewise.
27469 (grub_cpu_xnu_init): Likewise.
27470 (grub_cpu_xnu_fini): Likewise.
27471 (grub_cpu_xnu_unload): Likewise.
27472 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
27473 (property_descriptor): Likewise.
27474 (devices): New variable.
27475 (grub_xnu_devprop_remove_property): New function.
27476 (grub_xnu_devprop_add_device): Likewise.
27477 (grub_xnu_devprop_remove_device): Likewise.
27478 (grub_xnu_devprop_add_property): Likewise.
27479 (grub_xnu_devprop_add_property_utf8): Likewise.
27480 (grub_xnu_devprop_add_property_utf16): Likewise.
27481 (hextoval): Likewise.
27482 (grub_cpu_xnu_fill_devprop): Likewise.
27483 (grub_cmd_devprop_load): Likewise.
27484 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
27485 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
27486 (cmd_devprop_load): New variable.
27487 (grub_cpu_xnu_init): New function.
27488 (grub_cpu_xnu_fini): Likewise.
27489 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
27490 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
27491 (grub_cmd_xnu_devtree): Likewise.
27492 (hextoval): New function.
27493 (unescape): Likewise.
27494 (grub_xnu_fill_devicetree): Likewise.
27495
27496 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
27497 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
27498
0945f181
VS
274992009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27500
27501 Workaround for broken ATI VBE.
27502
27503 * video/i386/pc/vbe.c (last_set_mode): New variable.
27504 (grub_vbe_set_video_mode): Set 'last_set_mode'.
27505 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
27506 (grub_video_vbe_setup): Don't check for reserved flag.
27507
0ad46fd7 275082009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
27509
27510 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
27511 the `find' command.
27512
c179ebe4
VS
275132009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
27514
27515 UUID support for HFS.
27516
27517 * fs/hfs.c (grub_hfs_uuid): New function.
27518 (grub_hfs_fs): New value .uuid.
27519 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
27520
0ad46fd7 275212009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
27522
27523 Fix a segfault with parsing unknown long options.
27524
27525 * util/grub-mkrelpath.c (options): Zero terminate it.
27526
c4a3e41a
CPE
275272009-12-13 Carles Pina i Estany <carles@pina.cat>
27528
27529 * include/grub/misc.h (grub_puts): New declaration.
27530 (grub_puts_): Likewise.
a22008a6 27531 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
27532 (grub_puts_): Likewise.
27533
2e8a7602
RM
275342009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27535
27536 * util/grub-probe.c (probe): Improve error message.
27537
b50b77b9
RM
275382009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27539
27540 * loader/i386/multiboot_elfxx.c
27541 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
27542 initialization.
27543
275442009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27545
27546 Relocator framework
27547
27548 * loader/i386/xnu_helper.S: Removed. All users updated.
27549 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
27550 (relocator_mod_SOURCES): New variable.
27551 (relocator_mod_CFLAGS): Likewise.
27552 (relocator_mod_LDFLAGS): Likewise.
27553 (relocator_mod_ASFLAGS): Likewise.
27554 * conf/x86_64.rmk: Likewise.
27555 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
27556 (grub_multiboot_payload_entry_offset): Likewise.
27557 (grub_multiboot_forward_relocator): Likewise.
27558 (grub_multiboot_forward_relocator_end): Likewise.
27559 (grub_multiboot_backward_relocator): Likewise.
27560 (grub_multiboot_backward_relocator_end): Likewise.
27561 (grub_multiboot_payload_eip): New variable.
27562 (grub_multiboot_payload_orig): Likewise.
27563 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
27564 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
27565 * include/grub/i386/memory.h
27566 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
27567 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
27568 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
27569 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
27570 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
27571 * include/grub/i386/relocator.h: New file.
27572 * include/grub/x86_64/relocator.h: Likewise.
27573 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
27574 (XNU_RELOCATOR): New macro.
27575 (grub_xnu_launcher_start): Remove.
27576 (grub_xnu_launcher_end): Likewise.
27577 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
27578 (grub_xnu_heap_real_start): Remove.
27579 (grub_xnu_heap_start): Change to void *. All users updated.
27580 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
27581 * lib/i386/relocator.c: New file.
27582 * lib/i386/relocator_asm.S: Likewise.
27583 * lib/i386/relocator_backward.S: Likewise.
27584 * lib/mips/relocator.c: Likewise.
27585 * lib/mips/relocator_asm.S: Likewise.
27586 * lib/relocator.c: Likewise.
27587 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
27588 (entry): Removed.
27589 (playground): Likewise.
27590 (grub_multiboot_payload_orig): New variable.
27591 (grub_multiboot_payload_dest): Likewise.
27592 (grub_multiboot_payload_size): Likewise.
27593 (grub_multiboot_payload_eip): Likewise.
27594 (grub_multiboot_payload_esp): Likewise.
27595 (grub_multiboot_boot): Use grub_relocator32_boot.
27596 (grub_multiboot_unload): Free relocators.
27597 (grub_multiboot): Setup stack. Use relocators.
27598 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
27599 (grub_multiboot_load_elfXX): Use relocators.
27600 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
27601 (grub_multiboot_payload_size): Likewise.
27602 (grub_multiboot_payload_dest): Likewise.
27603 (grub_multiboot_payload_entry_offset): Likewise.
27604 (grub_multiboot_forward_relocator): Likewise.
27605 (grub_multiboot_backward_relocator): Likewise.
27606 (grub_multiboot_real_boot): Likewise.
27607 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
27608 (grub_xnu_entry_point): Likewise.
27609 (grub_xnu_arg1): Likewise.
27610 (grub_xnu_stack): Likewise.
27611 (grub_xnu_launch): Removed.
27612 (grub_xnu_boot_resume): New function.
27613 (grub_xnu_boot): Use relocators.
27614 * loader/i386/xnu_helper.S: Removed.
27615 * loader/xnu.c (grub_xnu_heap_start): New variable.
27616 (grub_xnu_heap_size): Likewise.
27617 (grub_xnu_heap_malloc): Use relocators.
27618 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
27619
29eb90c6
VS
276202009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27621
27622 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
27623 anything.
27624
31027430
CPE
276252009-12-13 Carles Pina i Estany <carles@pina.cat>
27626
27627 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
27628 GRUB_ERR_NONE before calling grub_env_set.
27629
dc0c71d9
RM
276302009-12-12 Robert Millan <rmh@aybabtu.com>
27631
27632 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
27633 * genmk.rb (video): New variable.
27634 (CLEANFILES, VIDEOFILES): Add #{video}.
27635 (#{video}): New target rule.
27636 * genvideolist.sh: New file.
27637 * Makefile.in (pkglib_DATA): Add video.lst.
27638 (video.lst): New target rule.
27639 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
27640 `video.lst'.
27641 * util/grub.d/30_os-prober.in: Replace `vbe' with
27642 ${GRUB_VIDEO_BACKEND}.
27643
2a4bfcf0
RM
276442009-12-11 Robert Millan <rmh.grub@aybabtu.com>
27645
27646 * THANKS: Add David Miller.
27647
2a3aa4d5
RM
276482009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
27649
27650 libpciaccess support.
27651
27652 * Makefile.in (LIBPCIACCESS): New variable.
27653 (enable_grub_emu_pci): Likewise.
27654 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
27655 util/pci.c and commands/lspci.c.
27656 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
27657 * configure.ac (grub-emu-pci): New option.
27658 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
27659 (grub_pci_device_unmap_range): Likewise.
27660 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
27661 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
27662 (grub_pci_address_t) [!GRUB_UTIL]: New type.
27663 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
27664 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
27665 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
27666 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
27667 * include/grub/pciutils.h: New file.
27668 * util/pci.c: Likewise.
27669
0ad46fd7 276702009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
27671
27672 * util/misc.c: Don't include <errno.h> twice.
27673
0ad46fd7 276742009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
27675
27676 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
27677 name in an error message.
27678 (grub_biosdisk_rw): Likewise.
27679
2e59983c
VS
276802009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27681
27682 Eliminate NTFS 4Gib barrier.
27683
27684 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
27685 (read_run_data): Likewise.
27686 (grub_ntfs_read_run_list): Likewise.
27687 (grub_ntfs_read_block): Likewise.
27688 (grub_ntfs_iterate_dir): Likewise.
27689 (read_mft): Likewise.
27690 (read_data): Likewise.
27691 Use COM_LOG_LEN.
27692 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
27693 to avoid 64-bit division
27694 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
27695 (grub_ntfs_rlst): Use grub_disk_addr_t.
27696
71ee178a
VS
276972009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27698
27699 Eliminate grub-fstest 4Gib barrier.
27700
27701 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
27702 (read_file): Fix error reporting.
27703
2520d4b8
VS
277042009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27705
27706 Eliminate hexdump 4Gib barrier.
27707
27708 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
27709 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
27710
e1f27065
VS
277112009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27712
27713 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
27714 Fixes amarsh bug.
27715
1a0f7f45
RM
277162009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
27717
27718 Remove miscellaneous files in distclean target.
27719
27720 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
27721
c631d9fb
CW
277222009-12-09 Colin Watson <cjwatson@ubuntu.com>
27723
27724 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
27725 if they're already set. This resolves the conflict between my
27726 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
27727 fixing the --grub-probe option again.
27728 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
27729 change on 2009-10-06, so that we now once again source
27730 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27731
7c7b6106
RM
277322009-12-08 Robert Millan <rmh.grub@aybabtu.com>
27733
27734 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
27735 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
27736 `util/devicemap.c'.
27737
e3069ec1
CPE
277382009-12-08 Carles Pina i Estany <carles@pina.cat>
27739
27740 * include/grub/misc.h (grub_printf_): New declaration.
27741 * kern/misc.c (grub_printf_): New definition.
27742 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
27743 instead of `grub_printf' and `_'.
27744 * normal/menu_entry.c (store_completion): Likewise.
27745 (run): Likewise.
27746 (grub_menu_entry_run): Likewise.
27747 * normal/menu_text.c (grub_wait_after_message): Likewise.
27748 (notify_booting): Likewise.
27749 (notify_fallback): Likewise.
27750 (notify_execution_failure): Likewise.
27751
d6ceebf1
CW
277522009-12-07 Colin Watson <cjwatson@ubuntu.com>
27753
27754 * configure.ac: Check for vasprintf.
27755 * util/misc.c (asprintf): Move allocation from here ...
27756 (vasprintf): ... to here. New function.
27757 (xasprintf): New function.
27758 * include/grub/util/misc.h (vasprintf, xasprintf): Add
27759 prototypes.
27760 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
27761 * util/grub-mkfont.c (write_font): Likewise.
27762 * util/grub-probe.c (probe): Likewise.
27763 * util/hostdisk.c (make_device_name): Likewise.
27764
de6daa8b
DM
277652009-12-06 David S. Miller <davem@sunset.davemloft.net>
27766
27767 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
27768 anything even prefixed with 'cdrom' as a cdrom.
27769
0ad46fd7 277702009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
27771
27772 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
27773 mount points.
27774
98d3dc02
CPE
277752009-12-05 Carles Pina i Estany <carles@pina.cat>
27776
27777 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
27778 grub_gettext_msg_list.
27779 (grub_gettext_gettranslation_from_position): Return const char *
27780 and not char *.
a2c1332b 27781 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
27782 returns from the list if existing there.
27783 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
27784 (grub_gettext_delete_list): Delete the list.
27785 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
27786 lang environment variable is changed.
27787 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
27788
b283f108
VS
277892009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27790
27791 Rename kernel.mod to kernel.img.
27792
27793 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
27794 (kernel_mod_EXPORTS): Rename to ...
27795 (kernel_img_EXPORTS): ... this.
27796 (kernel_mod_SOURCES): Rename to ...
27797 (kernel_img_SOURCES): ... this.
27798 (kernel_mod_HEADERS): Rename to ...
27799 (kernel_img_HEADERS): ... this. All users updated.
27800 (kernel_mod_CFLAGS): Rename to ...
27801 (kernel_img_CFLAGS): ... this.
27802 (kernel_mod_ASFLAGS): Rename to ...
27803 (kernel_img_ASFLAGS): ... this.
27804 (kernel_mod_LDFLAGS): Rename to ...
27805 (kernel_img_LDFLAGS): ... this.
27806 * conf/x86_64-efi.rmk: Likewise.
27807 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
27808 (read_kernel_image): ... this. All users updated.
27809 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27810
69055f8a
CPE
278112009-12-05 Carles Pina i Estany <carles@pina.cat>
27812
27813 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27814 (print_spaces): New function.
27815 (grub_print_ucs4): New function.
27816 (getstringwidth): New function.
27817 (print_message_indented): New function.
27818 (print_message): Gettexttize strings using print_message_indented.
27819 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27820 width.
27821 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27822 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27823 Gettextize.
27824 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27825 string.
27826 (run): Likewise.
27827 (grub_menu_entry_run): Likewise.
27828 * PO/POTFILES: Add normal/menu_entry.c.
27829
f616f51c
VS
278302009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27831
27832 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27833
57bbe3be
CPE
278342009-12-05 Carles Pina i Estany <carles@pina.cat>
27835
27836 * util/grub-install.in: Install gettext .mo files.
27837 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27838
013d67a1
CPE
278392009-12-05 Carles Pina i Estany <carles@pina.cat>
27840
27841 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27842 grub_dprintf.
27843
fb954db0
RM
278442009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27845
27846 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
27847 non-firmware-dependant one in realmode.S takes precedence.
27848
6b8474f8
RM
278492009-12-04 Robert Millan <rmh.grub@aybabtu.com>
27850
27851 * commands/halt.c: Replace misc arch-specific headers with
27852 `<grub/misc.h>'.
27853 * commands/reboot.c: Likewise.
27854 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
27855 `<grub/misc.h>'.
27856 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
27857 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
27858 (kernel_img_SOURCES): ... to here.
27859
27860 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27861 * include/grub/i386/pc/init.h: Likewise.
27862 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27863 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27864
27865 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27866
27867 * include/grub/i386/halt.h: Remove.
27868 * include/grub/i386/reboot.h: Likewise.
27869
27870 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27871
4b2e6ca2
DM
278722009-12-03 David S. Miller <davem@sunset.davemloft.net>
27873
27874 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27875 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27876 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27877 "progname.h"
27878 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27879 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27880 (usage): Add missing comma in printf.
27881
5239348f
RM
278822009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27883
27884 Use the same reboot approach on i386 coreboot and qemu as we do on
27885 BIOS.
27886
27887 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27888 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27889 * kern/i386/reboot.c: Remove.
27890 * include/grub/i386/reboot.h (grub_reboot): Export function.
27891 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27892 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27893 0xf000:0xfff0 instead of 0xffff:0x0000.
27894 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27895 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27896
ef34cbd4
RM
278972009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27898
27899 Fix $srcdir != $objdir build.
27900
27901 * Makefile.in (po/%.po): Rewrite as ...
27902 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27903
dc9837ea
ST
279042009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27905
27906 Fix GNU/Hurd grub-install crash.
27907 * util/grub-probe.c (probe): Try to access `path' only when it is not
27908 NULL.
27909
2f857f98
VS
279102009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27911
27912 Correct module naming.
27913
27914 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27915 (GRUB_MOD_INIT(efi_uga)): ... to this
27916 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27917 (GRUB_MOD_FINI(efi_uga)): ... to this
27918 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27919 (GRUB_MOD_INIT(efi_gop)): ... to this
27920 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27921 (GRUB_MOD_FINI(efi_gop)): ... to this
27922
c5448046
RM
279232009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27924
27925 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27926 translatable.
27927 (usage): Translate `arg' strings using gettext().
27928 Thanks to Jordi Mallach for the suggestion.
27929
c85184ad
VS
279302009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27931
27932 GOP support. Based on patch from Bean
27933 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27934
27935 * video/efi_gop.c: New file.
27936 * include/grub/efi/graphics_output.h: Likewise.
27937 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27938 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27939 variables.
27940 * conf/x86_64-efi.rmk: Likewise.
27941
8a4c48d8
VS
279422009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27943
27944 Rename efi_fb to efi_uga.
27945
27946 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27947 'efi_uga.mod'.
27948 (efi_fb_mod_SOURCES): Rename this ...
27949 (efi_uga_mod_SOURCES): ... to this.
27950 (efi_fb_mod_CFLAGS): Rename this ...
27951 (efi_uga_mod_CFLAGS): ... to this.
27952 (efi_fb_mod_LDFLAGS): Rename this ...
27953 (efi_uga_mod_LDFLAGS): ... to this.
27954 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27955 'efi_uga.mod'.
27956 (efi_fb_mod_SOURCES): Rename this ...
27957 (efi_uga_mod_SOURCES): ... to this.
27958 (efi_fb_mod_CFLAGS): Rename this ...
27959 (efi_uga_mod_CFLAGS): ... to this.
27960 (efi_fb_mod_LDFLAGS): Rename this ...
27961 (efi_uga_mod_LDFLAGS): ... to this.
27962 * video/efi_fb.c: Move this ...
27963 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27964
fb6c1a7b
RM
279652009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27966
27967 * po/README: New file. Explain our PO file workflow.
27968
3bc7896c
RM
279692009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27970
27971 * po/ChangeLog: Remove. Move relevant entries back to ...
27972 * ChangeLog: ... here.
27973 * po/ca.po: Remove (now handled by TLP).
27974 * po/id.po: Likewise.
27975 * po/zh_CN.po: Likewise.
27976 * Makefile.in (LINGUAS): Initialize in a way that supports
27977 empty set.
27978
9ed4841d
RM
279792009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27980
27981 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27982 reliing on po/LINGUAS.
27983 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
27984 (po/%.po): ... this.
27985
0ad46fd7 279862009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
27987
27988 * util/i386/efi/grub-mkimage.c: Include "progname.h".
27989 (main): Use `program_name' instead of nonexistent `progname'.
27990
e30dd392
FZ
279912009-11-26 Felix Zielcke <fzielcke@z-51.de>
27992
27993 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27994 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
27995
7656de4f
RM
279962009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27997
27998 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
27999 commit.
28000 * conf/i386-efi.rmk: Likewise.
28001 * conf/i386-ieee1275.rmk: Likewise.
28002 * conf/powerpc-ieee1275.rmk: Likewise.
28003 * conf/sparc64-ieee1275.rmk: Likewise.
28004 * conf/x86_64-efi.rmk: Likewise.
28005
db77c4d4
FZ
280062009-11-26 Felix Zielcke <fzielcke@z-51.de>
28007
28008 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28009
a755bb04
FZ
280102009-11-26 Felix Zielcke <fzielcke@z-51.de>
28011
28012 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28013
8a4c07fd
RM
280142009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28015
28016 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28017 (grub_mkdevicemap_SOURCES): New variable.
28018 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28019 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28020 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28021 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28022 (grub_mkdevicemap_SOURCES): Remove.
28023 * conf/i386-efi.rmk: Likewise.
28024 * conf/i386-ieee1275.rmk: Likewise.
28025 * conf/i386-pc.rmk: Likewise.
28026 * conf/powerpc-ieee1275.rmk: Likewise.
28027 * conf/sparc64-ieee1275.rmk: Likewise.
28028 * conf/x86_64-efi.rmk: Likewise.
28029 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28030 (usage): Fix strings to use `program_name'.
28031 (main): Initialize gettext.
28032 * util/grub-editenv.c: Likewise.
28033 * util/grub-emu.c: Likewise.
28034 * util/grub-fstest.c: Likewise.
28035 * util/grub-mkdevicemap.c: Likewise.
28036 * util/grub-mkfont.c: Likewise.
28037 * util/grub-mkrelpath.c: Likewise.
28038 * util/grub-pe2elf.c: Likewise.
28039 * util/grub-probe.c: Likewise.
28040 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28041 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28042 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28043
28044 * util/misc.c: Include `"progname.h"'.
28045 (progname): Remove variable.
28046 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28047
6f61ed55
FZ
280482009-11-25 Felix Zielcke <fzielcke@z-51.de>
28049
28050 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28051 printf and print a newline after the menuentry header line.
28052 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28053
f022876b
FZ
280542009-11-25 Felix Zielcke <fzielcke@z-51.de>
28055
28056 autoconf >= 2.60 support $(localedir).
28057
28058 * INSTALL: Note that autoconf 2.60 is required.
28059 * configure.ac (AC_PREREQ): Bump to 2.60.
28060 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28061 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28062
6717926e
YB
280632009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28064
28065 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28066 aclocal is run.
28067
08806a54
RM
280682009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28069
28070 * normal/main.c (grub_normal_read_line): Fix off-by-one
28071 buffer overflow.
28072
13b33fba
RM
280732009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28074
28075 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28076 "parser.grub" in grub_command_execute() call.
28077
4a8572e9
CPE
280782009-11-24 Carles Pina i Estany <carles@pina.cat>
28079
28080 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28081 * conf/i386-efi.rmk: Likewise.
28082 * conf/i386-ieee1275.rmk: Likewise.
28083 * conf/i386-pc.rmk: Likewise.
28084 * conf/powerpc-ieee1275.rmk: Likewise.
28085 * conf/sparc64-ieee1275.rmk: Likewise.
28086 * conf/x86_64-efi.rmk: Likewise.
28087 * gettext/gettex.c: Include <grub/i18n.h>.
28088 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28089 here ...
28090 * include/grub/i18n.h: ... to here
28091 * include/grub/i18n.h: ... to here.
28092 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 28093 (grub_gettext_dummy): Move above user.
4a8572e9 28094
bee48093
FZ
280952009-11-24 Felix Zielcke <fzielcke@z-51.de>
28096
28097 * util/Makefile.in (install-local): Convert a `for' into a normal
28098 shell expansion.
28099
a031e91c
RM
281002009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28101
28102 * autogen.sh: Add automake call.
28103 * config.guess: Remove.
28104 * config.sub: Likewise.
28105 * install-sh: Likewise.
28106
26bec39d
FZ
281072009-11-24 Felix Zielcke <fzielcke@z-51.de>
28108
28109 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28110
8e2532fd
FZ
281112009-11-24 Felix Zielcke <fzielcke@z-51.de>
28112
28113 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28114 function to a normal shell `for'.
28115
fefa1b7d
FZ
281162009-11-24 Felix Zielcke <fzielcke@z-51.de>
28117
28118 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28119
4501250b
FZ
281202009-11-24 Felix Zielcke <fzielcke@z-51.de>
28121
28122 * util/grub-mkrelpath.c: New file.
28123 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28124 (grub_mkrelpath_SOURCES): New variable.
28125 * include/grub/util/misc.h: New function prototype.
28126 * util/misc.c (make_system_path_relative_to_its_root): New function.
28127
28128 * util/grub-mkconfig_lib.in (bindir): New variable.
28129 (grub_mkrelpath): Likewise.
28130 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28131
28132 * util/probe.c (probe): Make the file path relative to its root.
28133 Change a info message to use the GRUB path. Enable again the
28134 check if we can read the file with GRUB facilities.
28135
28136 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28137 to its root.
28138
11d9778b
FZ
281392009-11-24 Felix Zielcke <fzielcke@z-51.de>
28140
28141 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28142 platform.
28143
4465287d
FZ
281442009-11-24 Felix Zielcke <fzielcke@z-51.de>
28145
28146 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28147 strncmp().
28148
62b47f22
FZ
281492009-11-24 Felix Zielcke <fzielcke@z-51.de>
28150
28151 * util/getroot.c (grub_util_is_dmraid): New function.
28152 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28153 devices as normal ones, not as LVM.
28154
1eafb9b9 281552009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
28156
28157 * conf/common.rmk: Add grub-gettext_lib target and updates
28158 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28159 LDFLAGS.
28160 * gettext/gettext.c: New file. (Reads mo files).
28161 * include/grub/file.h (grub_file_pread): New prototype.
28162 * include/grub/i18n.h (_): New prototype.
28163 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28164 prototypes.
28165 * kern/misc.c (grub_gettext_dummy): New function.
28166 * normal/menu_text.c: Include <grub/i18n.h>.
28167 * normal/menu_text.c (print_timeout): Gettexttize string.
28168 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
28169 * po/POTFILES: Add `normal/menu_text.c'.
28170 * po/ca.po: Add new translations.
c3ea6bd4
CPE
28171 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28172 gettext module and defines locale_dir and lang in grub.cfg.
28173 * NEWS: Add gettext support.
28174
0fdb2568
RM
281752009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28176
28177 * util/hostdisk.c: Include `<grub/i18n.h>'.
28178 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28179 (make_device_name): Rewrite using asprintf.
28180 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28181 (find_system_device): If a device is not found, generate one just
28182 by reusing the OS path name.
28183 (read_device_map): Make it permissible for device.map not to exist.
28184
f515aa62
RM
281852009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28186
28187 * script/sh/execute.c: Move from here ...
28188 * script/execute.c: ... to here. Update all users.
28189 * script/sh/function.c: Move from here ...
28190 * script/function.c: ... to here. Update all users.
28191 * script/sh/lexer.c: Move from here ...
28192 * script/lexer.c: ... to here. Update all users.
28193 * script/sh/main.c: Move from here ...
28194 * script/main.c: ... to here. Update all users.
28195 * script/sh/parser.y: Move from here ...
28196 * script/parser.y: ... to here. Update all users.
28197 * script/sh/script.c: Move from here ...
28198 * script/script.c: ... to here. Update all users.
28199
f84b481b
RM
282002009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28201
28202 * configure.ac: Detect all `emu' platforms. Define
28203 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28204 --enable-grub-emu logic. Disable include/grub/machine
28205 symlink on `emu' platforms.
28206
28207 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28208 * gensymlist.sh.in: Likewise.
28209
28210 * include/grub/i386/coreboot/machine.h: Remove file.
28211 * include/grub/i386/efi/machine.h: Likewise.
28212 * include/grub/i386/ieee1275/machine.h: Likewise.
28213 * include/grub/i386/pc/machine.h: Likewise.
28214 * include/grub/i386/qemu/machine.h: Likewise.
28215 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28216 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28217 * include/grub/x86_64/efi/machine.h: Likewise.
28218
28219 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28220 * commands/halt.c: Likewise.
28221 * commands/reboot.c: Likewise.
28222 * include/grub/autoefi.h: Likewise.
28223 * include/grub/i386/at_keyboard.h: Likewise.
28224 * include/grub/i386/kernel.h: Likewise.
28225 * include/grub/i386/loader.h: Likewise.
28226 * include/grub/i386/pc/memory.h: Likewise.
28227 * kern/dl.c: Likewise.
28228 * kern/i386/coreboot/init.c: Likewise.
28229 * loader/i386/bsd.c: Likewise.
28230 * loader/i386/linux.c: Likewise.
28231 * loader/multiboot_loader.c: Likewise.
28232 * term/i386/pc/serial.c: Likewise.
28233 * term/usb_keyboard.c: Likewise.
28234
28235 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28236 `<grub/machine/machine.h>'
28237 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28238 * util/misc.c: Remove `<grub/machine/machine.h>' and
28239 `<grub/machine/time.h>'.
28240
28241 * Makefile.in (enable_grub_emu): Remove variable.
28242 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28243
28244 * conf/any-emu.rmk: New file.
28245 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28246 (grub_emu_init.c): Move from here ...
28247 * conf/any-emu.rmk: ... to here.
28248
28249 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28250 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28251 * conf/any-emu.rmk: ... to here.
28252
4efeab03
RM
282532009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28254
28255 * include/grub/parser.h (grub_parser_register): Document need
28256 of `name' parameter.
28257 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28258 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28259 "sh" to "grub".
28260
ea1dd8bf
RM
282612009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28262
28263 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28264 `$(XGETTEXT)'.
28265 * include/grub/i18n.h (N_): New macro.
28266 * util/mkisofs/mkisofs.h: Likewise.
28267 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28268 around N_().
28269 (usage): Use gettext() to translate help strings when printing them.
28270
0c140626
RM
282712009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28272
28273 Based on patch from Bean
28274 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28275
28276 * video/efi_fb.c: New file.
28277 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28278 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28279 variables.
28280 * conf/x86_64-efi.rmk: Likewise.
28281
87d58298
RM
282822009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28283
28284 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28285 * util/i386/pc/grub-setup.c: Likewise.
28286
994cc3a3
ST
282872009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
28288
28289 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
28290 <hurd/fs.h>
28291 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
28292 file_get_storage_info to implement grub_guess_root_device.
28293
26a61d6a
FZ
282942009-11-21 Felix Zielcke <fzielcke@z-51.de>
28295
28296 * Makefile.in (target): Use make's builtin $(shell) function
28297 instead of calling directly $(SHELL) to create the locale directories,
28298 inside the $(foreach) function.
28299
74ff1dd5
FZ
283002009-11-21 Felix Zielcke <fzielcke@z-51.de>
28301
28302 * util/grub-mkrescue.in: Print an error and usage if output option
28303 has not been given.
28304
0b787d0e
FZ
283052009-11-21 Felix Zielcke <fzielcke@z-51.de>
28306
28307 Patch from Loïc Minier <loic.minier@ubuntu.com>.
28308 * util/grub.d/30_os-prober.in: Cope with Linux entries where
28309 root and /boot are on different devices.
28310
1164b270
RM
283112009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28312
28313 Fix build for srcdir != objdir.
28314
28315 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
28316 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
28317 $(srcdir).
28318 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
28319 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
28320 reference for input.
28321
13774a2f
RM
283222009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28323
28324 * util/grub-mkrescue.in: Use source directory direcly (without copiing
28325 or hardlinking it). Remove -J option, Joliet is not compatible with
28326 multiple source directories.
28327
efda854e
RM
283282009-11-21 Carles Pina i Estany <carles@pina.cat>
283292009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28330
28331 * util/grub-mkrescue.in: Recognize `--override-directory' option.
28332 (process_input_dir): New function. Process an arbitrary input
28333 directory.
28334 Misc adjustments to support both "override mode" and system-wide mode.
28335
6c09890c
FZ
283362009-11-20 Felix Zielcke <fzielcke@z-51.de>
28337
28338 * configure.ac (UNIFONT_BDF): Rename to ...
28339 (FONT_SOURCE): ... this. Update all users.
28340
a797824f
FZ
283412009-11-20 Felix Zielcke <fzielcke@z-51.de>
28342
28343 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
28344 to the list of unifont files to look for.
28345
cd4f42b0
RM
283462009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28347
28348 Patch from Joe Auricchio <jauricchio@gmail.com>
28349 * commands/minicmd.c (grub_mini_cmd_clear): New function.
28350 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
28351 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
28352
393c783d
FZ
283532009-11-19 Felix Zielcke <fzielcke@z-51.de>
28354
28355 * Makefile.in (install-local): Add a missing backslash.
28356
b2f1e327
FZ
283572009-11-19 Felix Zielcke <fzielcke@z-51.de>
28358
28359 * include/grub/x86_64/io.h: New file.
28360
f577f7a0
RM
283612009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28362
28363 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
28364 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
28365 Include `"progname.h"'.
28366 (main): Initialize gettext.
28367 * util/i386/pc/grub-setup.c: Gettexttize.
28368 * util/i386/pc/grub-mkimage.c: Likewise.
28369
28370 * Makefile.in (po/*.po): Redefine as ...
28371 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
28372
3bc7896c
RM
28373 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
28374
c37943b6
RM
283752009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28376
28377 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
28378 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
28379 (program_name): Remove.
28380 (main): Initialize gettext support.
6323f705
RM
28381 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
28382 Include `<libintl.h>'.
28383 (_): New macro.
c37943b6
RM
28384
28385 * util/mkisofs/eltorito.c: Gettexttize.
28386 * util/mkisofs/joliet.c: Likewise.
28387 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
28388 * util/mkisofs/multi.c: Likewise.
28389 * util/mkisofs/rock.c: Likewise.
28390 * util/mkisofs/tree.c: Likewise.
28391 * util/mkisofs/write.c: Likewise.
28392
3bc7896c
RM
28393 * po/POTFILES: Update with new files.
28394
5ce77c6e
RM
283952009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28396
28397 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
28398 * util/mkisofs/iso9660.h: Likewise.
28399 * util/mkisofs/joliet.c: Likewise.
28400 * util/mkisofs/mkisofs.c: Likewise.
28401 * util/mkisofs/mkisofs.h: Likewise.
28402 * util/mkisofs/rock.c: Likewise.
28403 * util/mkisofs/tree.c: Likewise.
28404 * util/mkisofs/write.c: Likewise.
28405
28406 * util/mkisofs/eltorito.c (rcsid): Remove.
28407 * util/mkisofs/hash.c: Likewise.
28408 * util/mkisofs/joliet.c: Likewise.
28409 * util/mkisofs/name.c: Likewise.
28410 * util/mkisofs/rock.c: Likewise.
28411 * util/mkisofs/tree.c: Likewise.
28412 * util/mkisofs/write.c: Likewise.
28413
1dabbc77
RM
284142009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28415
28416 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
28417 instead of static allocation.
28418 * util/mkisofs/match.h: Likewise.
28419
633877cb
RM
284202009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28421
3bc7896c
RM
28422 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
28423 and `util/grub.d/10_linux.in'.
633877cb
RM
28424 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
28425 translatable Shell files.
28426
af1c0c85
RM
284272009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28428
28429 * Makefile.in ($(srcdir)/aclocal.m4): New target.
28430
769ae37b
RM
284312009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28432
28433 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 28434 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
28435 * util/grub.d/10_kfreebsd.in (bindir): New variable.
28436 Add gettext initialization.
28437 (kfreebsd_entry): Make menuentry output translatable.
28438
284392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28440
28441 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
28442 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
28443 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
28444 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
28445 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 28446 * po/LINGUAS: New file.
769ae37b
RM
28447
284482009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28449
28450 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
28451 other things).
28452 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
28453 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
28454 bindtextdomain() calls for gettext initialization.
28455
284562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28457
28458 * gnulib/progname.c: New file (imported from Gnulib).
28459 * gnulib/progname.h: Likewise.
28460 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28461 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
28462 (usage): Replace `progname' with `program_name'.
28463 (main): Use set_program_name() for program name initialization.
28464
284652009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28466
28467 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
28468 from here ...
28469 * Makefile.in (CPPFLAGS): ... to here.
28470
284712009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28472
28473 * aclocal.m4: Move from here ...
28474 * acinclude.m4: ... to here.
28475 * autogen.sh: Add call to `aclocal'.
28476 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
28477
284782009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28479
28480 * Makefile.in (CLEANFILES): Add `po/*.mo'.
28481 (LINGUAS): New variable.
28482 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
28483 (install-local): Install MO files.
28484 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
28485 * include/grub/i18n.h: New file.
3bc7896c
RM
28486 * po/POTFILES: New file.
28487 * po/ca.po: New file.
769ae37b
RM
28488 * util/grub.d/10_linux.in (bindir): New variable.
28489 Add gettext initialization.
28490 (linux_entry): Make menuentry output translatable.
28491 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
28492 (usage): Make --help output translatable.
28493 (main): Initialize gettext.
28494
02c0a6ad
RM
284952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28496
28497 * import_gcry.py: New file (written by Vladimir with minor
28498 adjustments).
28499 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
28500 ciphers.
28501 * INSTALL: Document that Python is required for bootstrap.
28502
285032009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28504
28505 Import ciphers from libgcrypt 1.4.4.
28506
28507 * lib/libgcrypt/cipher/ChangeLog
28508 * lib/libgcrypt/cipher/ac.c
28509 * lib/libgcrypt/cipher/arcfour.c
28510 * lib/libgcrypt/cipher/bithelp.h
28511 * lib/libgcrypt/cipher/blowfish.c
28512 * lib/libgcrypt/cipher/camellia-glue.c
28513 * lib/libgcrypt/cipher/camellia.c
28514 * lib/libgcrypt/cipher/camellia.h
28515 * lib/libgcrypt/cipher/cast5.c
28516 * lib/libgcrypt/cipher/cipher.c
28517 * lib/libgcrypt/cipher/crc.c
28518 * lib/libgcrypt/cipher/des.c
28519 * lib/libgcrypt/cipher/dsa.c
28520 * lib/libgcrypt/cipher/ecc.c
28521 * lib/libgcrypt/cipher/elgamal.c
28522 * lib/libgcrypt/cipher/hash-common.c
28523 * lib/libgcrypt/cipher/hash-common.h
28524 * lib/libgcrypt/cipher/hmac-tests.c
28525 * lib/libgcrypt/cipher/md.c
28526 * lib/libgcrypt/cipher/md4.c
28527 * lib/libgcrypt/cipher/md5.c
28528 * lib/libgcrypt/cipher/primegen.c
28529 * lib/libgcrypt/cipher/pubkey.c
28530 * lib/libgcrypt/cipher/rfc2268.c
28531 * lib/libgcrypt/cipher/rijndael-tables.h
28532 * lib/libgcrypt/cipher/rijndael.c
28533 * lib/libgcrypt/cipher/rmd.h
28534 * lib/libgcrypt/cipher/rmd160.c
28535 * lib/libgcrypt/cipher/rsa.c
28536 * lib/libgcrypt/cipher/seed.c
28537 * lib/libgcrypt/cipher/serpent.c
28538 * lib/libgcrypt/cipher/sha1.c
28539 * lib/libgcrypt/cipher/sha256.c
28540 * lib/libgcrypt/cipher/sha512.c
28541 * lib/libgcrypt/cipher/tiger.c
28542 * lib/libgcrypt/cipher/twofish.c
28543 * lib/libgcrypt/cipher/whirlpool.c
28544
af2f93ac
RM
285452009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28546
28547 Fix build for systems without error().
28548
28549 * gnulib/error.c: New file (imported from Gnulib).
28550 * gnulib/error.h: Likewise.
28551 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
28552 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
28553 (this variable is now used by error()).
28554
73fb3dd5
FZ
285552009-11-16 Felix Zielcke <fzielcke@z-51.de>
28556
814f5e96
FZ
28557 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
28558 instead of relying that char is signed.
73fb3dd5 28559
a691ca33
VS
285602009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
28561
28562 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
28563 blocksize different from specified.
28564 (grub_pxefs_read): Likewise.
28565
2af8f0f4
FZ
285662009-11-16 Felix Zielcke <fzielcke@z-51.de>
28567
28568 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
28569
28570 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
28571 (grub_ata_readwrite): Likewise. Update 2 format strings.
28572 (grub_atapi_read): Likewise.
28573
28574 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
28575 * conf/i386.rmk (pkglib_MODULES): ... to here ...
28576 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
28577 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
28578 (ata_mod_LDFLAGS): Move from here ...
28579 * conf/i386.rmk: ... to here ...
28580 * conf/x86_64-efi.rmk: ... and here.
28581 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
28582 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
28583
83bdecaf
RM
285842009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28585
28586 Relicense multiboot.h, with RMS' blessing.
28587
28588 * include/multiboot.h: Change to X11 license.
28589
fd6fd3d7
RM
285902009-11-15 Robert Millan <rmh.grub@aybabtu.com>
28591
28592 Support --version in grub-mkisofs.
28593
28594 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
28595 (OPTION_VERSION): New macro.
28596 (ld_options): Recognize --version.
28597 (usage): Move `program_name' from here ...
28598 (program_name): ... to here. Add `static' qualifier.
28599 (main): Recognize `OPTION_VERSION'.
28600
16a88c49
FZ
286012009-11-15 Felix Zielcke <fzielcke@z-51.de>
28602
28603 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
28604 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
28605
a4158476
RM
286062009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28607
28608 Fix help2man generation for mkisofs.
28609
28610 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
28611 (usage): Send output to stdout (rather than stderr).
28612
fc2208b0
RM
286132009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28614
28615 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
28616 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28617 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
28618 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28619 (bin_SCRIPTS): Add `grub-mkfloppy'.
28620 (grub_mkfloppy_SOURCES): New variable.
28621
28622 * util/grub-mkrescue.in: New file.
28623 * util/i386/pc/grub-mkfloppy.in: New file.
28624
28625 * util/i386/coreboot/grub-mkrescue.in: Remove.
28626 * util/i386/pc/grub-mkrescue.in: Remove.
28627
8d0edf4a
RM
286282009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28629
28630 * include/grub/multiboot.h (struct grub_multiboot_header): Move
28631 from here ...
28632 * include/multiboot.h (struct multiboot_header): ... to here. Update
28633 all users.
28634 * include/grub/multiboot.h (struct grub_multiboot_info): Move
28635 from here ...
28636 * include/multiboot.h (struct multiboot_info): ... to here. Update
28637 all users.
28638 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
28639 from here ...
28640 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
28641 Update all users.
28642 * include/grub/multiboot.h (struct grub_mod_list): Move
28643 from here ...
28644 * include/multiboot.h (struct multiboot_mod_list): ... to here.
28645 Update all users.
28646
a73f5969
RM
286472009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28648
28649 * include/multiboot2.h (multiboot_word): Rename from this ...
28650 (multiboot2_word): ... to this. Update all users.
28651 (multiboot_header): Rename from this ...
28652 (multiboot2_header): ... to this. Update all users.
28653 (multiboot_tag_header): Rename from this ...
28654 (multiboot2_tag_header): ... to this. Update all users.
28655 (multiboot_tag_start): Rename from this ...
28656 (multiboot2_tag_start): ... to this. Update all users.
28657 (multiboot_tag_name): Rename from this ...
28658 (multiboot2_tag_name): ... to this. Update all users.
28659 (multiboot_tag_module): Rename from this ...
28660 (multiboot2_tag_module): ... to this. Update all users.
28661 (multiboot_tag_memory): Rename from this ...
28662 (multiboot2_tag_memory): ... to this. Update all users.
28663 (multiboot_tag_unused): Rename from this ...
28664 (multiboot2_tag_unused): ... to this. Update all users.
28665 (multiboot_tag_end): Rename from this ...
28666 (multiboot2_tag_end): ... to this. Update all users.
28667
1c8927f0
RM
286682009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28669
28670 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
28671 this platform we should support Multiboot1 first.
28672
28673 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28674 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
28675 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
28676
6e1e0d89
RM
286772009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28678
28679 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
28680 of write calls (converting them to fwrite() if they aren't already).
28681 (get_torito_desc): Likewise.
28682 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
28683
7f2b34d8
RM
286842009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28685
28686 * util/i386/pc/grub-install.in: Move from here ...
28687 * util/grub-install.in: ... to here. Update all users.
28688
c0ef3311
CW
286892009-11-11 Colin Watson <cjwatson@ubuntu.com>
28690
28691 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
28692
e1f240ff
RM
286932009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28694
28695 Support for El Torito without floppy emulation.
28696
28697 * util/mkisofs/eltorito.c: Include `<errno.h>'.
28698 (init_boot_catalog): Improve error handling.
28699 (get_torito_desc): Don't use floppy emulation unless requested by
28700 user. Patch boot information table when requested via
28701 `-boot-info-table'.
28702 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
28703 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
28704 (use_boot_info_table): New variables.
28705 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
28706 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
28707 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
28708 `--eltorito-emul-floppy'.
28709 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
28710 and `OPTION_ELTORITO_EMUL_FLOPPY'.
28711 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
28712 (use_boot_info_table, get_731): New prototypes.
28713 * util/mkisofs/write.c (get_731): New function.
28714
af7d4de5
FZ
287152009-11-11 Felix Zielcke <fzielcke@z-51.de>
28716
28717 Fix the generation of the man page.
28718
28719 * util/pc/i386/grub-install.in: Source
28720 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28721
2c55dbc0
RM
287222009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28723
28724 Large file support for grub-mkisofs.
28725
28726 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
28727 * util/mkisofs/mkisofs.c (next_extent, last_extent)
28728 (session_start): Upgrade type to `uint64_t'. Update all users.
28729 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
28730 (struct directory_entry): Upgrade type of `starting_block' and
28731 `size' to `uint64_t'. Update all users.
28732 (struct deferred): Remove unused structure.
28733 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
28734 Update all users.
28735 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
28736 file is larger than `UINT32_MAX'.
28737 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
28738 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
28739 return value.
28740 (struct deferred_write): Upgrade type of `extent' and `size' to
28741 `uint64_t'. Update all users.
28742 (last_extent_written): Upgrade type to `uint64_t'. Update all
28743 users.
28744 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
28745 Update all users. Upgrade type of `remain' to `int64_t' and
28746 `use' to `size_t'. Use error() to handle fread() errors.
28747 (write_files): Rely on write_one_file() rather than calling
28748 xfwrite() directly.
28749
6a9cead5
FZ
287502009-11-09 Felix Zielcke <fzielcke@z-51.de>
28751
28752 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
28753
4825d790
RM
287542009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28755
28756 * util/mkisofs/fnmatch.c: Remove.
28757 * util/mkisofs/getopt1.c: Likewise.
28758 * util/mkisofs/getopt.c: Likewise.
28759 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
28760 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
28761 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
28762 `gnulib/getopt1.c' and `gnulib/getopt.c'.
28763 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
28764
28765 * configure.ac: Detect `mingw32msvc' host_os.
28766 Check for lstat(), getuid() and getgid().
28767
28768 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
28769 instances of `u_char' with `uint8_t'.
28770
28771 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
28772 [!HAVE_GETUID] (getuid): New function (stub).
28773 [!HAVE_GETGID] (getgid): Likewise.
28774 [!HAVE_LSTAT] (lstat): Likewise.
28775 [!S_IROTH] (S_IROTH): New macro (dummy).
28776 [!S_IRGRP] (S_IRGRP): Likewise.
28777
84b860d8
RM
287782009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28779
28780 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
28781 conditional expression).
28782
66e9b712
RM
287832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28784
28785 Import from Gnulib.
28786
28787 * gnulib/fnmatch.c: New file.
28788 * gnulib/fnmatch.h: Likewise.
28789 * gnulib/fnmatch_loop.c: Likewise.
28790 * gnulib/getopt.c: Likewise.
28791 * gnulib/getopt.h: Likewise.
28792 * gnulib/getopt1.c: Likewise.
28793 * gnulib/getopt_int.h: Likewise.
28794 * gnulib/gettext.h: Likewise.
28795
34f4a5b0
RM
287962009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28797
28798 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
28799 * normal/handler.c (read_handler_list): Likewise.
28800
ac451143
RM
288012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28802
28803 Misc cleanup.
28804
28805 * kern/command.c (grub_register_command_prio): Use
28806 grub_zalloc() instead of explicitly zeroing data.
28807 * kern/list.c: Include `<grub/mm.h>'.
28808 (grub_named_list_find): Replace `0' with `NULL'.
28809 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28810 (fs_module_list): Change type to `grub_named_list_t'. Update all
28811 users.
28812 * normal/dyncmd.c (read_command_list): Add space between function
28813 call and parenthesis.
28814 * normal/handler.c (read_handler_list): Likewise.
28815
4089b167
RM
288162009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28817
28818 * normal/auth.c (punishment_delay): Moved from here ...
28819 (grub_auth_strcmp): ... to here (inside function).
28820
325f5037
RM
288212009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28822
28823 * include/grub/list.h (struct grub_named_list): Remove `const'
28824 qualifier from `name'.
28825 (struct grub_prio_list): Likewise.
28826
7aea29a3
RM
288272009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28828
28829 * normal/auth.c: Include `<grub/time.h>'.
28830 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28831
3fd6f044
RM
288322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28833
28834 * normal/auth.c (punishment_delay): New variable.
28835 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28836 (grub_auth_check_authentication): Punish failed login attempts with
28837 an incremental (2^N) delay.
28838
a4cd68e4
RM
288392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28840
28841 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28842 path with $(srcdir).
28843
7ad12f43
VS
288442009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28845
28846 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
28847
c1129f03
RM
288482009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28849
28850 * util/i386/coreboot/grub-mkrescue.in: New file.
28851 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
28852 variables.
28853
28854 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
28855 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
28856 * configure.ac: Add header and function checks to satisfy grub-mkisofs
28857 requirements.
28858 * util/mkisofs/defaults.h: New file.
28859 * util/mkisofs/eltorito.c: Likewise.
28860 * util/mkisofs/exclude.h: Likewise.
28861 * util/mkisofs/fnmatch.c: Likewise.
28862 * util/mkisofs/getopt.c: Likewise.
28863 * util/mkisofs/getopt1.c: Likewise.
28864 * util/mkisofs/hash.c: Likewise.
28865 * util/mkisofs/include/fctldefs.h: Likewise.
28866 * util/mkisofs/include/mconfig.h: Likewise.
28867 * util/mkisofs/include/prototyp.h: Likewise.
28868 * util/mkisofs/include/statdefs.h: Likewise.
28869 * util/mkisofs/iso9660.h: Likewise.
28870 * util/mkisofs/joliet.c: Likewise.
28871 * util/mkisofs/match.c: Likewise.
28872 * util/mkisofs/match.h: Likewise.
28873 * util/mkisofs/mkisofs.c: Likewise.
28874 * util/mkisofs/mkisofs.h: Likewise.
28875 * util/mkisofs/multi.c: Likewise.
28876 * util/mkisofs/name.c: Likewise.
28877 * util/mkisofs/rock.c: Likewise.
28878 * util/mkisofs/tree.c: Likewise.
28879 * util/mkisofs/write.c: Likewise.
28880
ec8bb77d
VS
288812009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28884 being insecure.
28885
3716b12c
RM
288862009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28887
28888 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28889 `grub-mkimage' (and use $0 when possible).
28890
b97b7b91
RM
288912009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28892
28893 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28894 error message for excessively large memory map.
28895
04114812
RM
288962009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28897
28898 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28899 executable bit.
28900
e4eb2373
RM
289012009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28902
28903 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28904 message for coreboot users.
28905
c926e1d5 289062009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28907
28908 Fix build with GNU gold.
28909
28910 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28911 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28912 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28913 link addresses.
28914 * aclocal.m4: Likewise.
28915
86e5b1db 289162009-11-04 Felix Zielcke <fzielcke@z-51.de>
28917
28918 * configure.ac (AC_PREREQ): Bump to 2.59d.
28919 * INSTALL: Make it more clear when Autoconf and Ruby are
28920 needed and when to run `./autogen.sh'.
28921
246cd78f 289222009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28923
28924 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28925 OSes.
28926
4f9dfb37 289272009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28928
28929 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28930
b82bd5e1 289312009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28932
28933 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28934 giving it to GNU Mach.
28935
ff1a9bca 289362009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28937
28938 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28939 GNU partition number to get internal GRUB partition number.
28940
61697d9c 289412009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28942
28943 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28944 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28945
a50569e1 289462009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28947
28948 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28949 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28950 case.
28951
5b153867 289522009-11-01 Felix Zielcke <fzielcke@z-51.de>
28953
28954 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28955
d9e2cd70 289562009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28957
28958 Fix build problem.
28959
28960 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28961 `-isystem=$(srcdir)/include'.
28962
805111a4 289632009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28964
28965 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28966 checked (grub-install doesn't currently rely on it).
28967
fa6e945f 289682009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28969
28970 Revert SVN r2660.
28971
28972 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28973 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28974 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28975 * conf/i386-ieee1275.rmk: Likewise.
28976 * conf/i386-pc.rmk: Likewise.
28977 * conf/powerpc-ieee1275.rmk: Likewise.
28978 * conf/sparc64-ieee1275.rmk: Likewise.
28979 * conf/x86_64-efi.rmk: Likewise.
28980
cee15086 289812009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28982
28983 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
28984
95b9239e 289852009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28986
28987 * include/grub/misc.h: Stop checking for APPLE_CC.
28988
2ed19dfd 289892009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28990
28991 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
28992 doesn't cause an infinite call loop.
28993
fdcdde19 289942009-10-28 Felix Zielcke <fzielcke@z-51.de>
28995
28996 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
28997 strings.
28998
cefabfe1 289992009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29000
29001 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29002 variable.
29003 * Makefile.in: Likewise.
29004
ed96ab6d 290052009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29006
29007 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29008
0579b753 290092009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29010
29011 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29012
478df409 290132009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29014
29015 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29016
083d1679 290172009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29018
29019 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29020 from here ...
29021 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29022
5947ae32 290232009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29024
29025 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29026 in $(MAKEINFO) invocation. This makes it clear in output that
29027 errors are being ignored.
29028
94180ff6 290292009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29030
29031 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29032 from here ...
29033 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29034 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29035 * conf/i386-ieee1275.rmk: Likewise.
29036 * conf/i386-pc.rmk: Likewise.
29037 * conf/powerpc-ieee1275.rmk: Likewise.
29038 * conf/sparc64-ieee1275.rmk: Likewise.
29039 * conf/x86_64-efi.rmk: Likewise.
29040
9031b03a 290412009-10-26 Colin Watson <cjwatson@ubuntu.com>
29042
29043 * util/grub-editenv.c (main): If only a command is given, use
29044 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29045 (usage): FILENAME is now optional and has a default.
29046
e4f6809b 290472009-10-26 Colin Watson <cjwatson@ubuntu.com>
29048
29049 Improve grub-mkconfig performance when there are several menu
29050 entries on a single filesystem.
29051
29052 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29053 prepare_grub_to_access_device.
29054 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29055 * util/grub.d/30_os-prober.in: Likewise.
29056
67937d4d 290572009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29058
29059 * util/grub.d/10_freebsd.in: Remove.
29060 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29061 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29062
ee3756cc 290632009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29064
5c35048e 29065 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 29066
4dea1c6f 290672009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29068
29069 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29070 grub_util_error() call.
29071
042484d7 290722009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29073
29074 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29075 `reserved_first_sector' member.
29076 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29077 `reserved_first_sector' to 1.
29078 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29079 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29080 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29081 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29082 filesystems which begin at first sector.
29083 (options): New option --skip-fs-probe.
29084 (main): Handle --skip-fs-probe and pass it to setup().
29085
d64448a7 290862009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29087
29088 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29089 (memset): Fix function prototype.
29090
508d42ec 290912009-10-25 Robert Millan <rmh.grub@aybabtu.com>
290922009-10-25 Vasily Averin <vvs@parallels.com>
29093
29094 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29095 `dirent.direntlen == 0'.
29096
b240e30c 290972009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29098
29099 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29100 `cpio'.
29101 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29102
346e7fbe 291032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29104
29105 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29106 `__trampoline_setup' and `__ucmpdi2'.
29107 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29108 that libgcc provides.
29109
cdb308b0 291102009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29111
29112 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29113 * include/grub/sparc64/libgcc.h (memset): Likewise.
29114 * include/grub/misc.h (memset, memcmp): New function prototypes.
29115
fb26abc2 291162009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29117
29118 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29119 `cpio'.
29120 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29121
f6693890 291222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29123
29124 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29125 * docs/grub.cfg: Compensate for recent change in multiboot
29126 loader (since 2009-08-14 it won't pass filename to payload).
29127 * util/grub.d/10_hurd.in: Likewise.
29128
0933cdc0 291292009-10-21 Felix Zielcke <fzielcke@z-51.de>
29130
29131 * config.guess: Update to latest version from config git
29132 repository.
29133 * config.sub: Likewise.
29134
3b2fe8c2 291352009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29136
29137 Fix build on sparc64.
29138
29139 * configure.ac: Perform checks for libgcc symbols before
29140 adding `-nostdlib' to LDFLAGS.
29141
46695a62 291422009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29143
29144 Let user specify OpenBSD root device.
29145
29146 * loader/i386/bsd.c (openbsd_root): New variable.
29147 (openbsd_opts): New option 'root'.
29148 (OPENBSD_ROOT_ARG): New macro.
29149 (grub_openbsd_boot): Use 'openbsd_root'.
29150 (grub_cmd_openbsd): Fill 'openbsd_root'.
29151
d2b6b7fc 291522009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29153
29154 * NEWS: Misc adjustments.
29155
421bd7ac 291562009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29157
29158 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29159
f1d29d87 291602009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29161
29162 * configure.ac: Bump version to 1.97.
29163
6f3cd880 291642009-10-16 Colin Watson <cjwatson@ubuntu.com>
29165
29166 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29167 -mno-3dnow on x86 architectures. Some toolchains enable these
29168 features by default, but they rely on registers that aren't enabled
29169 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29170
035f7122 291712009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29172
29173 Make entry text a bit more readable.
29174
29175 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29176
44998e58 291772009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29178
29179 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29180
cd2851b3 291812009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29182
29183 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29184 operations.
29185
c6f3b249 291862009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29187
29188 * configure.ac: Add missing dollar.
29189
6b5886ba 291902009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29191
29192 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29193
29194 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29195 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29196 exports.
29197 * include/grub/sparc64/libgcc.h: Likewise. Use
29198 preprocessor conditionals.
29199
e9d66f6d 292002009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29201
29202 * conf/common.rmk (grub-dumpbios): Remove rule.
29203 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29204 * util/grub-dumpbios.in: Remove file.
29205
9155bc17 292062009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29207
29208 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29209 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29210
29211 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29212 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29213 users.
29214
29215 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29216 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29217 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29218 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29219 users.
29220
bf7f7a18 292212009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29222
29223 * term/tparm.c: Switch to GPLv3.
29224
86564c26 292252009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29226
29227 * include/grub/i386/cpuid.h: Add header protection.
29228
5c936493 292292009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29230
29231 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29232
29233 * include/grub/i386/cpuid.h: New file.
29234 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29235 (has_longmode): Rename to ...
29236 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29237 `static' attribute.
29238 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29239 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29240 on a CPU that doesn't implement AMD64 instruction set.
29241
186e7cf2 292422009-10-06 Colin Watson <cjwatson@ubuntu.com>
29243
29244 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29245 that version.texi is rebuilt on version number changes.
29246
83b65c4a 292472009-10-06 Colin Watson <cjwatson@ubuntu.com>
29248
29249 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29250 Fixes bug #27602.
29251
d244281c 292522009-10-06 Colin Watson <cjwatson@ubuntu.com>
29253
29254 * util/i386/pc/grub-install.in: Source
29255 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29256 that the --grub-probe option will work.
29257 * util/sparc64/ieee1275/grub-install.in: Likewise.
29258
da25306d 292592009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29260
29261 * configure.ac: Bump version to 1.97~beta4.
29262
e8ee83c0 292632009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29264
29265 Resync grub-mkdevicemap in x86_64-efi.
29266
29267 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29268 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29269 `util/devicemap.c'.
29270
50dcabcf 292712009-10-01 Colin Watson <cjwatson@ubuntu.com>
29272
29273 * util/grub-editenv.c (create_envblk_file): Write new block with a
29274 .new suffix and then rename it into place, to ensure atomic
29275 creation.
29276
0e51c3a7 292772009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29278
29279 Do not automatically install headers.
29280
29281 * Makefile.in (include_DATA): Remove. Update all users.
29282
31299a95 292832009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29284
29285 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
29286 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
29287
29288 * util/osdetect.lua: Remove.
29289 * script/lua/lauxlib.c: Likewise.
29290 * script/lua/ldebug.c: Likewise.
29291 * script/lua/grub_main.c: Likewise.
29292 * script/lua/lauxlib.h: Likewise.
29293 * script/lua/ldebug.h: Likewise.
29294 * script/lua/ltablib.c: Likewise.
29295 * script/lua/liolib.c: Likewise.
29296 * script/lua/lstrlib.c: Likewise.
29297 * script/lua/lualib.h: Likewise.
29298 * script/lua/ldo.c: Likewise.
29299 * script/lua/ldump.c: Likewise.
29300 * script/lua/ldo.h: Likewise.
29301 * script/lua/loslib.c: Likewise.
29302 * script/lua/lundump.c: Likewise.
29303 * script/lua/grub_lib.c: Likewise.
29304 * script/lua/ldblib.c: Likewise.
29305 * script/lua/lundump.h: Likewise.
29306 * script/lua/lmem.c: Likewise.
29307 * script/lua/grub_lib.h: Likewise.
29308 * script/lua/lmathlib.c: Likewise.
29309 * script/lua/lstate.c: Likewise.
29310 * script/lua/ltm.c: Likewise.
29311 * script/lua/lvm.c: Likewise.
29312 * script/lua/lmem.h: Likewise.
29313 * script/lua/lstate.h: Likewise.
29314 * script/lua/ltm.h: Likewise.
29315 * script/lua/ltable.c: Likewise.
29316 * script/lua/lvm.h: Likewise.
29317 * script/lua/llex.c: Likewise.
29318 * script/lua/lgc.c: Likewise.
29319 * script/lua/grub_lua.h: Likewise.
29320 * script/lua/loadlib.c: Likewise.
29321 * script/lua/lfunc.c: Likewise.
29322 * script/lua/lopcodes.c: Likewise.
29323 * script/lua/lparser.c: Likewise.
29324 * script/lua/ltable.h: Likewise.
29325 * script/lua/llex.h: Likewise.
29326 * script/lua/lgc.h: Likewise.
29327 * script/lua/lfunc.h: Likewise.
29328 * script/lua/lbaselib.c: Likewise.
29329 * script/lua/lopcodes.h: Likewise.
29330 * script/lua/lparser.h: Likewise.
29331 * script/lua/lzio.c: Likewise.
29332 * script/lua/linit.c: Likewise.
29333 * script/lua/lobject.c: Likewise.
29334 * script/lua/llimits.h: Likewise.
29335 * script/lua/lstring.c: Likewise.
29336 * script/lua/lzio.h: Likewise.
29337 * script/lua/lapi.c: Likewise.
29338 * script/lua/lcode.c: Likewise.
29339 * script/lua/lua.h: Likewise.
29340 * script/lua/lobject.h: Likewise.
29341 * script/lua/lstring.h: Likewise.
29342 * script/lua/lapi.h: Likewise.
29343 * script/lua/lcode.h: Likewise.
29344 * script/lua/luaconf.h: Likewise.
29345
cb8a2c38 293462009-09-26 Colin Watson <cjwatson@ubuntu.com>
29347
29348 * docs/grub.texi (Command-line and menu entry commands): Document
29349 date and echo commands.
29350
6b9b6276 293512009-09-24 Pavel Roskin <proski@gnu.org>
29352
29353 * include/grub/kernel.h (struct grub_module_header): Remove
29354 `grub_module_header_types'. Make `type' unsigned. Make `size'
29355 32-bit on all platforms.
29356 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
29357 8-bit field. Use grub_host_to_target32() for `size'.
29358 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
29359 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
29360 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
29361
4e5a02a7 293622009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29363
29364 Fix "lost keypress" bug in at_keyboard.
29365
29366 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
29367 Checks for readyness of input buffer (without flushing it).
29368 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
29369 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
29370
c6dcedf6 293712009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29372
29373 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
29374 size check within GRUB_MACHINE_PCBIOS section.
29375
74c958b1 293762009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29377
29378 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
29379 return value.
29380 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
29381 KEYBOARD_ISREADY check.
29382 (grub_at_keyboard_checkkey): Rename to ...
29383 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
29384 Remove gratuitous cast.
29385
ff420223 293862009-09-23 Colin Watson <cjwatson@ubuntu.com>
29387
29388 * configure.ac: Call AC_PROG_MKDIR_P.
29389 * Makefile.in (docs/stamp-vti): Create docs directory. Create
29390 version.texi in $(builddir) rather than $(srcdir).
29391 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
29392 to makeinfo's @include search path.
29393
d96875df 293942009-09-23 Felix Zielcke <fzielcke@z-51.de>
29395
29396 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
29397
9b3f8365 293982009-09-23 Felix Zielcke <fzielcke@z-51.de>
29399
29400 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
29401 for `*.dpkg-new'.
29402
c44c90db 294032009-09-21 Colin Watson <cjwatson@ubuntu.com>
29404
29405 Build info documentation. Some code borrowed from Automake.
29406
29407 * configure.ac: Check for makeinfo.
29408 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
29409 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
29410 docs/version.texi.
29411 (MOSTLYCLEANFILES): Add vti.tmp.
29412 (docs/version.texi, docs/stamp-vti): Update automatically.
29413 (docs/grub.info): Build info documentation. Use --force and ignore
29414 errors for now.
29415 (all-local): Add $(INFOS).
29416 (install-local): Install info files.
29417 (uninstall): Uninstall info files.
29418 * docs/version.texi: Remove from revision control. This file is
29419 automatically generated on build now.
29420 * gendistlist.sh: Add `*.info'.
29421
e0b37bb5 294222009-09-21 Felix Zielcke <fzielcke@z-51.de>
29423
29424 * kern/term.c: Fix indentation.
29425
5a78865b 294262009-09-21 Felix Zielcke <fzielcke@z-51.de>
29427
29428 * util/hostdisk.c: Fix a comment.
29429
dace7e8a 294302009-09-20 Robert Millan <rmh.grub@aybabtu.com>
29431
29432 Fix regression introduced in r2539.
29433
29434 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
29435 to 0xA1.
29436
a83d079b 294372009-09-19 Colin Watson <cjwatson@ubuntu.com>
29438
29439 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 29440 os-prober. Under normal operation, it does not print anything to
29441 stderr; if it does, we need to debug it, and throwing away stderr
29442 makes that excessively difficult.
a83d079b 29443
be94a509 294442009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
29447
63f745e8 294482009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29449
29450 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
29451 AC_LANG_PROGRAM from autoconf.
29452 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
29453 prototypes (fixes warning).
29454
29455 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
29456 `--disable-werror' was used.
29457
bbb2a70f 294582009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29459
29460 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
29461 uninitialized `lastaddr'.
29462
77c24f1d 294632009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
29464
0f0b8c87 29465 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 29466
07197f23 294672009-09-14 Colin Watson <cjwatson@ubuntu.com>
29468
29469 * commands/test.c (get_fileinfo): Return immediately if
29470 grub_fs_probe fails.
29471
dabf1798 294722009-09-14 José Martínez <xosemp@gmail.com>
29473
29474 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
29475
d52109a7 294762009-09-14 Colin Watson <cjwatson@ubuntu.com>
29477
29478 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
29479 output.
29480
56532179 294812009-09-13 Robert Millan <rmh.grub@aybabtu.com>
29482
29483 * configure.ac: Remove --enable-grub-pe2elf. Only build
29484 grub-pe2elf when needed by the build system itself.
29485 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
29486
8ef070f5 294872009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29488
29489 * configure.ac: Bump version to 1.97~beta3.
29490 * docs/version.texi: Likewise.
29491
61229557 294922009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29493
29494 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
29495 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
29496 from here ...
29497 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
29498 (grub_linux_setup_video): ... to here (with some adjustments).
29499
5c9f8d84 295002009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29501
29502 Fix memory corruption issue (spotted by Colin Watson).
29503
29504 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
29505 causing returned size to be stored in an incorrect memory location.
29506 Fix use of uninitialized value when storing the returned size.
29507
e8f5d6e9 295082009-09-12 Yves Blusseau <blusseau@zetam.org>
29509
29510 Change clean rules to properly remove files
29511
29512 * genmk.rb: add new clean rules
29513 * Makefile.in (clean): add the new targets
29514 (mostlyclean): likewise
29515
cda2a409 295162009-09-11 Colin Watson <cjwatson@ubuntu.com>
29517
29518 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
29519 to grub_uint64_t.
29520 * fs/ntfs.c (init_file): Understand 64-bit sizes for
29521 non-resident files.
29522
86695375 295232009-09-11 Colin Watson <cjwatson@ubuntu.com>
29524
29525 * configure.ac: Don't look for help2man when cross-compiling. Fixes
29526 part of bug #27349.
29527
8aa1541a 295282009-09-10 Felix Zielcke <fzielcke@z-51.de>
29529
29530 * util/grub-mkconfig.in: Make the created config mode 400 and
29531 print a warning if it fails.
29532
48d9bb0a 295332009-09-10 Robert Millan <rmh.grub@aybabtu.com>
29534
29535 * util/grub.d/40_custom.in: Ask user to type custom entries below
29536 comment, rather than below 'exec tail' line.
29537
3b0521be 295382009-09-10 Colin Watson <cjwatson@ubuntu.com>
29539
29540 * util/grub.d/40_custom.in: Make sure that the explanatory text is
29541 visible in grub.cfg.
29542
50051d55 295432009-09-10 Colin Watson <cjwatson@ubuntu.com>
29544
29545 * util/grub.d/40_custom.in: Make it a little clearer how to use this
29546 file.
29547
c0d34387 295482009-09-10 Felix Zielcke <fzielcke@z-51.de>
29549
29550 * docs/grub.cfg: Add an example menu entry for memtest86+.
29551
80a608f3 295522009-09-09 Felix Zielcke <fzielcke@z-51.de>
29553
a2094832 29554 * config.guess: Update to latest version from config git.
80a608f3 29555 * config.sub: Likewise.
29556
99423078 295572009-09-08 Colin Watson <cjwatson@ubuntu.com>
29558
29559 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
29560 unknown-command case. Fixes bug #27320.
29561
44454e4c 295622009-09-08 Felix Zielcke <fzielcke@z-51.de>
29563
29564 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
29565 `help' if the command exists.
29566
e30d87ad 295672009-09-06 Robert Millan <rmh.grub@aybabtu.com>
29568
29569 * INSTALL: Require GCC 4.1.3 or later.
29570
9a86f1ec 295712009-09-06 Yves Blusseau <blusseau@zetam.org>
29572
29573 * Makefile.in (RMKFILES): add i386-qemu.rmk
29574 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
29575 $(srcdir)/stamp-h.in
29576
7f26d466 295772009-09-05 Robert Millan <rmh.grub@aybabtu.com>
29578
29579 * util/grub-probe.c (probe): Comment out buggy codepath, which
29580 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
29581 should be re-enabled after 1.97.
29582
3a613259 295832009-09-05 Felix Zielcke <fzielcke@z-51.de>
29584
29585 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
29586 find searches for.
29587
197f76c7 295882009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
29589
29590 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
29591 unnecessary calls to grub_error.
29592
70ba68ce 295932009-09-04 Colin Watson <cjwatson@ubuntu.com>
29594
29595 * NEWS: Mention `keystatus' and Unicode fonts.
29596
4ff0d7a4 295972009-09-04 Robert Millan <rmh.grub@aybabtu.com>
29598
29599 * configure.ac: Bump version to 1.97~beta2.
29600 * docs/version.texi: Likewise.
29601
77c55a87 296022009-09-03 Colin Watson <cjwatson@ubuntu.com>
29603
29604 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
29605 containing unwind information in some cases where it previously did
29606 not. Use -fno-dwarf2-cfi-asm if available to restore the old
29607 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
29608 discussion.
29609
f79572cd 296102009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
29611
29612 Embedding loadenv module into grub-emu
29613
29614 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
29615 commands/loadenv.c
29616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
29617 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
29618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
29619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
29620 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
29621 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
29622
93a81088 296232009-09-03 Magnus Granberg <zorry@ume.nu>
29624
29625 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
29626 include -fPIE in the default specs.
29627 * configure.ac: Check if pie_possible is yes and add -fno-PIE
29628 to TARGET_CFLAGS.
29629
160034b2 296302009-09-03 Felix Zielcke <fzielcke@z-51.de>
29631
29632 * INSTALL: Note that GNU Bison 2.3 or later is required.
29633
087c07c4 296342009-09-03 Colin Watson <cjwatson@ubuntu.com>
29635
29636 * kern/i386/pc/startup.S: Fix typo.
29637
cbf978c0 296382009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
29639
29640 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
29641 according to GCS.
29642
296432009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 29644
29645 * docs/grub.texi (Naming convention): Describe one-based partition
29646 numbering.
29647 (Device syntax): Likewise.
29648 (File name syntax): Likewise.
29649 (Block list syntax): Likewise.
29650 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
29651 menu.lst.
29652 (File name syntax): Likewise.
29653 (Command-line and menu entry commands): Document acpi, blocklist,
29654 crc, export, insmod, keystatus, ls, set, and unset commands.
29655
f3e8cdfd 296562009-09-02 Colin Watson <cjwatson@ubuntu.com>
29657
29658 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
29659 to avoid implying that only one of --shift, --ctrl, or --alt may be
29660 used.
29661
c0bc232b 296622009-09-02 Colin Watson <cjwatson@ubuntu.com>
29663
29664 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
29665 rather than comparing against S_IFREG, which will almost never work.
29666
aa0f752d 296672009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
29668
29669 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
29670 (write_blocklists): Likewise.
29671
ecb3166a 296722009-09-01 Colin Watson <cjwatson@ubuntu.com>
29673
29674 * script/lua/grub_lua.h (fputs): Supply a format string as the first
29675 argument to grub_printf.
29676
c403a125 296772009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 29678
29679 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 29680 non GNU test.
31aba781 29681
b5e7312c 296822009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29683
29684 * kern/file.c (grub_file_read): Spelling fix
29685
fe00f472 296862009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29687
29688 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
29689 loading of headers in some cases.
29690
cc55302e 296912009-08-30 Robert Millan <rmh.grub@aybabtu.com>
29692
29693 * configure.ac: Bump version to 1.97~beta1.
29694 * docs/version.texi: Likewise.
29695
5c90cdd2 296962009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 29697
29698 * include/grub/i386/xnu.h: Add license header.
29699 include grub/err.h explicitly.
29700
c90edae4 297012009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29702
29703 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
29704 to `ufs' in the vfs.root.mountfrom kernel parameter.
29705
d8888b5c 297062009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29707
29708 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
29709
29710 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
29711 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
29712
29713 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
29714 `ARRAY_SIZE' macro.
29715
6f07b921 297162009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29717
29718 * kern/file.c (grub_file_read): Check offset.
29719 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
29720 * fs/jfs.c (grub_jfs_read_file): Likewise.
29721 * fs/ntfs.c (grub_ntfs_read): Likewise.
29722 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
29723 * fs/minix.c (grub_minix_read_file): Correct offset check.
29724 * fs/ufs.c (grub_ufs_read_file): Likewise.
29725
b4f34077 297262009-08-28 Colin Watson <cjwatson@ubuntu.com>
29727
29728 * term/i386/pc/console.c (bios_data_area): Cast
29729 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
29730
e7c69859 297312009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29732
29733 1-bit optimised blitters.
29734
29735 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
29736 prototype.
29737 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29738 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29739 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29740 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29741 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29742 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29743 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
29744 function.
29745 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29746 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29747 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29748 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29749 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29750 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29751 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
29752 when possible.
29753 * video/video.c (grub_video_get_blit_format): Return
29754 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
29755
a57da43f 297562009-08-28 Colin Watson <cjwatson@ubuntu.com>
29757
29758 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
29759 the first argument to grub_printf.
29760
4cbe67e5 297612009-08-28 Colin Watson <cjwatson@ubuntu.com>
297622009-08-28 Robert Millan <rmh.grub@aybabtu.com>
29763
29764 Add `getkeystatus' terminal method. Add a new `keystatus' command
29765 to query it.
29766
29767 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
29768 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
29769 modifier key bitmasks.
29770 (struct grub_term_input): Add `getkeystatus' member.
29771 (grub_getkeystatus): Add prototype.
29772 * kern/term.c (grub_getkeystatus): New function.
29773
29774 * include/grub/i386/pc/memory.h
29775 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
29776 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
29777 Data Area layout.
29778 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
29779 (grub_console_term_input): Set `getkeystatus' member.
29780 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
29781 constants.
29782 (grub_usb_keyboard_getreport): Likewise.
29783 (grub_usb_keyboard_checkkey): Likewise.
29784 (grub_usb_keyboard_getkeystatus): New function.
29785 (grub_usb_keyboard_term): Set `getkeystatus' member.
29786
29787 * commands/keystatus.c: New file.
29788 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
29789 (keystatus_mod_SOURCES): New variable.
29790 (keystatus_mod_CFLAGS): Likewise.
29791 (keystatus_mod_LDFLAGS): Likewise.
29792 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
29793 commands/keystatus.c.
29794 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29795 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29796 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29798 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29799 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 29800
6e2a9085 298012009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29802
29803 Split befs.mod and afs.mod into *_be.mod and *.mod
29804
29805 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
29806 (grub_fstest_SOURCES): Likewise.
29807 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
29808 (afs_be_mod_SOURCES): New variable.
29809 (afs_be_mod_CFLAGS): Likewise.
29810 (afs_be_mod_LDFLAGS): Likewise.
29811 (befs_be_mod_SOURCES): Likewise.
29812 (befs_be_mod_CFLAGS): Likewise.
29813 (befs_be_mod_LDFLAGS): Likewise.
29814 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29815 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29816 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29817 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29818 (grub_emu_SOURCES): Likewise.
29819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29820 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29821 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29822 * fs/afs_be.c: New file.
29823 * fs/befs_be.c: New file.
29824 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29825 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29826 (U16): Replaced with ...
29827 (grub_afs_to_cpu16): ...this. All users updated.
29828 (U32): Replaced with ...
29829 (grub_afs_to_cpu32): ...this. All users updated.
29830 (U64): Replaced with ...
29831 (grub_afs_to_cpu64): ...this. All users updated.
29832 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29833 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29834 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29835 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29836 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29837 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29838 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29839 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29840 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29841 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29842 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29843
32a71655 298442009-08-26 Bean <bean123ch@gmail.com>
29845
29846 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
29847 64-bit number.
29848 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
29849 (grub_xfs_inode_block): Change return type to grub_uint64_t.
29850 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
29851
552bf6c5 298522009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29853
29854 NetBSD memory map support.
29855
29856 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
29857 (grub_netbsd_btinfo_mmap_header): New structure.
29858 (grub_netbsd_btinfo_mmap_entry): Likewise.
29859 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
29860
1ae2078c 298612009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29862
29863 Enable bsd.mod on coreboot.
29864
29865 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29866 (bsd_mod_SOURCES): New variable.
29867 (bsd_mod_CFLAGS): Likewise.
29868 (bsd_mod_LDFLAGS): Likewise.
29869 (bsd_mod_ASFLAGS): Likewise.
29870 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29871 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29872
beefc598 298732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29874
29875 Cleanup NetBSD root support.
29876
29877 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29878 grub_bsd_get_device.
29879 Fix typo.
29880
3b76e68b 298812009-08-25 Felix Zielcke <fzielcke@z-51.de>
29882
29883 * util/grub.d/00_header.in: Move check for the video backend of
29884 gfxterm from here ...
29885 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29886 a suitable video backend.
29887
aea664ea 298882009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29889
29890 Fix breakage in grub-setup.
29891
29892 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29893 "msdos_partition_map".
29894
ff747d50 298952009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29896
29897 Fix breakage in normal/auth.c.
29898
29899 * normal/auth.c (grub_iswordseparator): New function.
29900
e7e1f93f 299012009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29902
29903 Authentication support.
29904
29905 * commands/password.c: New file.
29906 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29907 (password_mod_SOURCES): New variable.
29908 (password_mod_CFLAGS): Likewise.
29909 (password_mod_LDFLAGS): Likewise.
29910 (normal_mod_SOURCES): Add normal/auth.c.
29911 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29912 normal/auth.c.
29913 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29914 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29915 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29917 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29918 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29919 * include/grub/auth.h: New file.
29920 * include/grub/err.h (grub_err_t): New enum value
29921 GRUB_ERR_ACCESS_DENIED.
29922 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29923 'users'.
29924 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29925 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29926 users updated.
29927 * normal/auth.c: New file.
29928 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29929 (grub_cmdline_run): Don't allow to go to command line without
29930 authentication.
29931 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29932 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29933 menuentry without superuser rights.
29934 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29935 user isn't a superuser.
29936
70f1161d 299372009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29938
29939 Save space by inlining misc.c functions.
29940
29941 * kern/misc.c (grub_iswordseparator): Made static.
29942 * kern/misc.c (grub_strcat): Moved from here ...
29943 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29944 * kern/misc.c (grub_strncat): Moved from here ...
29945 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29946 * kern/misc.c (grub_strcasecmp): Moved from here ...
29947 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29948 * kern/misc.c (grub_strncasecmp): Moved from here ...
29949 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29950 * kern/misc.c (grub_isalpha): Moved from here ...
29951 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29952 * kern/misc.c (grub_isdigit): Moved from here ...
29953 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29954 * kern/misc.c (grub_isgraph): Moved from here ...
29955 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29956 * kern/misc.c (grub_tolower): Moved from here ...
29957 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29958
48e40bff 299592009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29960
29961 * script/sh/function.c (grub_script_function_find): Cut error message
29962 not to flood terminal.
29963 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29964 limit.
29965 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29966
c385bfc3 299672009-08-24 Colin Watson <cjwatson@ubuntu.com>
29968
29969 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29970 `report' grub_uint8_t *.
29971 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29972 Use a 50-millisecond timeout rather than just repeating
29973 grub_usb_keyboard_getreport 50 times.
29974 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29975
2d21e3e8 299762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29977
29978 Rename *_partition_map to part_*
29979
29980 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29981 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29982 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
29983 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
29984 All users updated.
29985 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
29986 All users updated.
29987 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
29988 * util/grub-probe.c (probe_partmap): Don't transform partition name
29989 to get module name.
29990
dd103c4e 299912009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29992
29993 Fix OpenBSD and NetBSD support.
29994
29995 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
29996 memory address conflict.
29997 (OPENBSD_MMAP_ACPI): New definition.
29998 (OPENBSD_MMAP_NVS): Likewise.
29999 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30000 and OPENBSD_MMAP_NVS.
30001 Add memory map terminator
30002 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 30003 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 30004
16c84d74 300052009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30006
30007 Let user specify NetBSD root device.
30008
30009 * loader/i386/bsd.c (netbsd_root): New variable.
30010 (netbsd_opts): New option 'root'.
30011 (NETBSD_ROOT_ARG): New macro.
30012 (grub_netbsd_boot): Use 'netbsd_root'.
30013 (grub_bsd_unload): Free 'netbsd_root'.
30014 (grub_cmd_netbsd): Fill 'netbsd_root'.
30015
adb29902 300162009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30017
30018 Support for 64-bit NetBSD.
30019
30020 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30021 point when booting non-FreeBSD.
30022
f5ae9f74 300232009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30024
30025 Support --no-smp and --no-acpi for NetBSD.
30026
30027 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30028 (NETBSD_AB_NOACPI): Likewise.
30029 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30030 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30031
de74f136 300322009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30033
30034 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30035 errors.
30036 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30037 errors. Call grub_error when needed.
30038
e9a925da 300392009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30040
30041 * commands/search.c (search_fs): Try searching without autoload first.
30042 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30043 filesystem module explicitly for faster booting.
30044
5174302b 300452009-08-23 Colin Watson <cjwatson@ubuntu.com>
30046
30047 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30048
c8c80635 300492009-08-23 Colin Watson <cjwatson@ubuntu.com>
30050
30051 * util/grub.d/30_os-prober.in: Disable os-prober if
30052 `GRUB_DISABLE_OS_PROBER' was set to true.
30053
71acf5e5 300542009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30055
30056 * partmap/pc.c: Rename to ...
30057 * partmap/msdos.c: ... this. Update all users.
30058 (grub_pc_partition_map): Rename to ...
30059 (grub_msdos_partition_map): ... this. Update all users.
30060
30061 * parttool/pcpart.c: Rename to ...
30062 * parttool/msdospart.c: ... this. Update all users.
30063
30064 * include/grub/pc_partition.h: Rename to ...
30065 * include/grub/msdos_partition.h: ... this. Update all users.
30066 (grub_pc_partition_bsd_entry): Rename to ...
30067 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30068 (grub_pc_partition_disk_label): Rename to ...
30069 (grub_msdos_partition_disk_label): ... this. Update all users.
30070 (grub_pc_partition_entry): Rename to ...
30071 (grub_msdos_partition_entry): ... this. Update all users.
30072 (grub_pc_partition_mbr): Rename to ...
30073 (grub_msdos_partition_mbr): ... this. Update all users.
30074 (grub_pc_partition): Rename to ...
30075 (grub_msdos_partition): ... this. Update all users.
30076 (grub_pc_partition_is_empty): Rename to ...
30077 (grub_msdos_partition_is_empty): ... this. Update all users.
30078 (grub_pc_partition_is_extended): Rename to ...
30079 (grub_msdos_partition_is_extended): ... this. Update all users.
30080 (grub_pc_partition_is_bsd): Rename to ...
30081 (grub_msdos_partition_is_bsd): ... this. Update all users.
30082
30083 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30084 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30085 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30086 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30087 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30088 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30089 (gpt_mod_LDFLAGS): Rename to ...
30090 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30091 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30092 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30093 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30094 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30095 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30096 (part_gpt_mod_LDFLAGS): ... this.
30097 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30098 `pcpart.mod' to `msdospart.mod'.
30099 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30100 to ...
30101 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30102 (msdospart_mod_LDFLAGS): ... this.
30103
c11fded5 301042009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30105
30106 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30107 (openbsd_opts): Likewise.
30108 (netbsd_opts): Likewise.
30109 (freebsd_flags): Added 0 terminator.
30110 (openbsd_flags): Likewise.
30111 (netbsd_flags): Likewise.
30112 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30113 (grub_cmd_freebsd): Transformed into extended command.
30114 (grub_cmd_openbsd): Likewise.
30115 (grub_cmd_netbsd): Likewise.
30116 (cmd_freebsd): Changed type to grub_extcmd_t.
30117 (cmd_openbsd): Likewise.
30118 (cmd_netbsd): Likewise.
30119 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30120 grub_cmd_openbsd as extended commands.
30121 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30122 cmd_netbsd and cmd_openbsd
30123
11d1c769 301242009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30125
30126 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30127
7a9094e5 301282009-08-21 Pavel Roskin <proski@gnu.org>
30129
5496c37e 30130 * Makefile.in (install-local): When checking if a file is in the
30131 build directory, use "test -e" to detect symlinks.
30132
7a9094e5 30133 * Makefile.in (install-local): Remove all files in
30134 $(DESTDIR)$(pkglibdir) before installing new files there.
30135
e53cea11 301362009-08-18 Felix Zielcke <fzielcke@z-51.de>
30137
30138 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30139 grub-mkelfimage.
30140
9aced544 301412009-08-18 Felix Zielcke <fzielcke@z-51.de>
30142
30143 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30144 explicitly specified by the user.
30145
b7da6bab 301462009-08-18 Pavel Roskin <proski@gnu.org>
30147
30148 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30149 grub_uint8_t pointer for data.
30150 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30151 Likewise.
30152 * video/fb/fbutil.c: Remove unnecessary casts.
30153
19f1b335 301542009-08-17 Michal Suchanek <hramrach@centrum.cz>
30155
30156 VBE cleanup.
30157
30158 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30159 (grub_vbe_set_video_mode): Save active mode info
30160 only after setting the mode.
30161 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30162 second argument.
30163
2f467aa9 301642009-08-17 Michal Suchanek <hramrach@centrum.cz>
30165
30166 Rename variables for clarity.
30167
30168 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30169 (active_vbe_mode_info): ... this. All users updated.
30170 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30171 All users updated.
30172 (initial_mode): Rename to ...
30173 (initial_vbe_mode): ... this. All users updated.
30174 (mode_in_use): Rename to ..
30175 (vbe_mode_in_use): ... this. All users updated.
30176 (mode_list): Rename to ..
30177 (vbe_mode_list): ... this. All users updated.
30178 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30179 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30180 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30181 'mode_list_size' to 'vbe_mode_list_size'.
30182 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30183 'best_mode_info' to 'best_vbe_mode_info' and
30184 'best_mode' to 'best_vbe_mode'
30185
6025fcd7 301862009-08-17 Michal Suchanek <hramrach@centrum.cz>
30187
30188 Remove duplicate grub_video_fb_get_video_ptr.
30189
30190 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30191 (grub_video_fb_get_video_ptr): ... this.
30192 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30193 * video/fb/fbutil.c: Add comment about addressing.
30194 (get_data_ptr): Rename to ...
30195 (grub_video_fb_get_video_ptr): ... this. All users updated.
30196 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30197
cc8c6faf 301982009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30199
30200 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30201 grub_dprintf() that was just added.
30202
08aa61f0 302032009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30204
30205 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30206 (DEFAULT_VIDEO_MODE): Remove macros.
30207 (grub_linux_boot): Remove assumption that Linux has FB support,
30208 and use "text" as default video mode.
30209
7cef4f75 302102009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30211
30212 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30213 grub_dprintf.
30214 * fs/fat.c (grub_fat_read_data): Likewise.
30215
e1f39873 302162009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30217
30218 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30219 payload.
30220 (grub_module): Likewise.
30221
c166d79e 302222009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30223
30224 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30225 mbi->cmdline but free playground.
30226
c60cee8e 302272009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30228
30229 Handle group offset on UFS1.
30230
30231 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30232 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30233
c0d8b5d4 302342009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30235
30236 Split ufs.mod into ufs1.mod and ufs2.mod.
30237
30238 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30239 (grub_fstest_SOURCES): Likewise.
30240 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30241 (ufs_mod_SOURCES): Remove.
30242 (ufs_mod_CFLAGS): Likewise.
30243 (ufs_mod_LDFLAGS): Likewise.
30244 (ufs1_mod_SOURCES): New variable.
30245 (ufs1_mod_CFLAGS): Likewise.
30246 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 30247 (ufs2_mod_SOURCES): New variable.
30248 (ufs2_mod_CFLAGS): Likewise.
30249 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 30250 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30251 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30252 Likewise.
30253 (grub_emu_SOURCES): Likewise.
30254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30255 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30256 (grub_setup_SOURCES): Likewise.
30257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30258 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30259 (grub_setup_SOURCES): Likewise.
30260 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30261 Likewise.
30262 * fs/ufs2.c: New file.
30263 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30264
d3539132 302652009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30266
30267 Framebuffer split.
30268
30269 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30270 subsystem at the end.
30271 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30272 (video_fb_mod_SOURCES): New variable.
30273 (video_fb_mod_CFLAGS): Likewise.
30274 (video_fb_mod_LDFLAGS): Likewise.
30275 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30276 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30277 * video/i386/pc/vbeblit.c: Moved from here ...
30278 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30279 * video/i386/pc/vbefill.c: Moved from here ...
30280 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30281 * video/i386/pc/vbeutil.c: Moved from here ...
30282 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30283 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30284 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30285 * include/grub/i386/pc/vbefill.h: Moved from here ...
30286 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
30287 * include/grub/i386/pc/vbeutil.h: Moved from here ...
30288 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
30289 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
30290 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
30291 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
30292 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
30293 (grub_video_adapter): Added 'get_info_and_fini'.
30294 (grub_video_get_info_and_fini): New prototype.
30295 (grub_video_set_mode): make modestring const char *.
30296 * loader/i386/linux.c (grub_linux_setup_video): Use
30297 grub_video_get_info_and_fini.
30298 (grub_linux_boot): Move modesetting just before booting.
30299 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
30300 grub_video_get_info_and_fini.
30301 * video/i386/pc/vbe.c: Moved framebuffer part ...
30302 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
30303 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
30304 grub_video_fbstd_colors and grub_video_fb_set_palette.
30305 (grub_video_vbe_init): Clear 'framebuffer' variable and use
30306 grub_video_fb_init.
30307 (grub_video_vbe_fini): Use grub_video_fb_fini.
30308 (grub_video_vbe_setup): Use framebuffer.render_target instead of
30309 render_target and use grub_video_fb_set_active_render_target and
30310 grub_video_fb_set_palette.
30311 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
30312 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
30313 (grub_video_vbe_adapter): Use framebuffer.
30314 * video/video.c (grub_video_get_info_and_fini): New function.
30315 (grub_video_set_mode): Make modestring const char *.
30316 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
30317 values are already initialised.
30318
d404ee56 303192009-08-14 Pavel Roskin <proski@gnu.org>
30320
30321 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
30322 ABS and APPLE_CC.
30323 * boot/i386/pc/diskboot.S: Likewise.
30324 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
30325 sectors allow compilation on MacOSX.
30326 * conf/i386-pc.rmk: Enable unconditional compilation of
30327 lnxboot.img.
30328
9a10df16 303292009-08-13 Colin Watson <cjwatson@ubuntu.com>
30330
30331 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
30332 * util/grub.d/00_header.in: Enter interruptible sleep if
30333 GRUB_HIDDEN_TIMEOUT is set.
30334
be3c9ca7 303352009-08-13 Yves Blusseau <blusseau@zetam.org>
30336
30337 * include/grub/symbol.h: Add the LOCAL macro.
30338 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
30339 starting with "L_".
30340
1f9e557e 303412009-08-13 Pavel Roskin <proski@gnu.org>
30342
9ca62843 30343 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
30344 any modern compilers we support.
30345
1f9e557e 30346 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
30347 Use local labels starting with "L_" so that Apple assembler
30348 knows they are local.
30349
81623db6 303502009-08-10 Robert Millan <rmh.grub@aybabtu.com>
30351
30352 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
30353 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
30354 (bsd_kernel_types): ... this enum.
30355
30356 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
30357 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
30358 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
30359
30360 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
30361 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
30362 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
30363 messages.
30364
f5d35e7a 303652009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30366
30367 * util/grub-dumpdevtree: Moved from here ...
30368 * util/i386/efi/grub-dumpdevtree: ... to here.
30369 (hexify): New function. Converts a string to its hex version.
30370 Generate hex versions of "efi" and "device-properties" by calling
30371 hexify() on the ASCII strings rather than by hardcoding numbers.
30372
d1e1d527 303732009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30374
30375 * fs/jfs.c: Update copyright year.
30376
1ebbe064 303772009-08-08 Felix Zielcke <fzielcke@z-51.de>
30378
30379 * util/grub.d/00_header.in: Fix a comment.
30380 * util/grub.d/10_linux.in: Likewise.
30381 * util/grub.d/10_windows.in: Likewise.
30382 * util/grub.d/10_hurd.in: Likewise.
30383
a78c8d24 303842009-08-08 Felix Zielcke <fzielcke@z-51.de>
30385
30386 * util/grub-mkconfig.in: Allow the user to specify the used font
30387 with GRUB_FONT.
30388
29a6b9e8 303892009-08-08 Pavel Roskin <proski@gnu.org>
30390
b5f16cc4 30391 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
30392 available, xfs.mod needs it now.
30393
2f5cb827 30394 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
30395 the "g" modifier in sed when the intention is to strip something
30396 once. This fixes comparison of kernels with multiple dashes.
30397
29a6b9e8 30398 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
30399 on it. Add missing space before closing bracket. Fix
30400 misleading formatting.
30401
892a3d98 304022009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30403
30404 * docs/grub.texi: Major overhaul. Remove all sections that are
30405 specific to GRUB Legacy, or mostly composed of Legacy-specific
30406 information.
30407
ed94253f 304082009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30409
30410 * docs/version.texi: New file. Provides version information for
30411 grub.texi.
30412
126d6628 304132009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30414
30415 * docs/grub.texi: Update CVS information to SVN.
30416 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
30417
998b5aa9 304182009-08-07 Felix Zielcke <fzielcke@z-51.de>
30419
30420 * util/grub-mkconfig.in: Remove a wrong `fi'.
30421
818e094a 304222009-08-07 Felix Zielcke <fzielcke@z-51.de>
30423
30424 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30425 (grub_jfs_uuid): New function.
30426 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
30427
b969c52f 304282009-08-07 Felix Zielcke <fzielcke@z-51.de>
30429
30430 * util/grub-mkconfig_lib.in (font_path): Move the functionality
30431 of it to ...
30432 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
30433 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
30434
7a4894cc 304352009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30436
30437 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
30438 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
30439 Update all users.
30440
30441 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
30442 not just "vmlinu[zx]".
30443 Moved from here ...
30444 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
30445 all users.
30446
30447 * util/grub.d/10_linux.in (find_latest): Moved from here ...
30448 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
30449 all users.
30450
4e2171f8 304512009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30452
30453 * util/grub.d/10_freebsd.in: Use an absolute device path for
30454 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
30455
6dcfcb32 304562009-08-06 Felix Zielcke <fzielcke@z-51.de>
30457
30458 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
30459 handling of multiple abstraction modules.
30460
f56a8756 304612009-08-04 Robert Millan <rmh.grub@aybabtu.com>
30462
30463 Fix a bug resulting in black screen when loading Linux using a
30464 packed video mode.
30465
30466 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
30467 function.
30468
30469 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
30470 (grub_vbe_bios_getset_dac_palette_width): New function.
30471 (grub_vbe_bios_get_dac_palette_width)
30472 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
30473 grub_vbe_bios_getset_dac_palette_width()).
30474
30475 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
30476 check for return status.
30477 (grub_vbe_get_video_mode_info): When getting information for a packed
30478 mode (<= 8 bpp), obtain DAC palette width using
30479 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
30480 {red,green,blue}_mark_size.
30481
222671b2 304822009-08-04 Felix Zielcke <fzielcke@z-51.de>
30483
ecb1a6d9 30484 * commands/search.c (options): Fix help output to match actual code.
222671b2 30485
f84114f5 304862009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
30489 of homegrown code.
30490
bd288a20 304912009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 30492
30493 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
30494 on XFS or ReiserFS.
30495
8aab5e25 304962009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
30497
30498 Support Apple partition map with sector size different from 512 bytes.
30499
30500 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
30501 (apple_partition_map_iterate): Respect 'aheader.blocksize'
30502 and 'apart.partmap_size'.
30503
6ad6258a 305042009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
305052009-08-01 Robert Millan <rmh.grub@aybabtu.com>
30506
30507 Fix cpuid command.
30508
30509 * commands/i386/cpuid.c (options): New variable.
30510 (grub_cmd_cpuid): Return real error.
30511 (GRUB_MOD_INIT(cpuid)): Declare options.
30512
67459bc6 305132009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
30514
30515 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
30516 valid.
30517
fbc6ab54 305182009-07-31 Bean <bean123ch@gmail.com>
30519
30520 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
30521 log2_inode.
30522 (grub_fshelp_node): Move inode field to the end.
30523 (grub_xfs_data): Remove inode field.
30524 (grub_xfs_inode_block): Calculate inode size using sblock.
30525 (grub_xfs_inode_offset): Likewise.
30526 (grub_xfs_read_inode): Calculate inode size using sblock.
30527 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
30528 (grub_xfs_iterate_dir): Calculate inode size using sblock.
30529 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
30530 to match inode size.
30531 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
30532 not accessible when data is null.
30533 (grub_xfs_open): Likewise.
30534
f45d6cfc 305352009-07-31 Bean <bean123ch@gmail.com>
30536
30537 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
30538 Don't change pv->disk if it's already set.
30539
30540 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
30541 (grub_raid_register): ... here.
30542 (grub_raid_rescan): Removed.
30543
30544 * include/grub/raid.h (grub_raid_rescan): Removed.
30545
30546 * util/grub-fstest.c: Remove include file <grub/raid.h>.
30547 (fstest): Replace grub_raid_rescan with module fini function followed
30548 by init function.
30549
30550 * util/grub-probe.c: Add include file <grub/raid.h>.
30551 (probe_raid_level): New function.
30552 (probe): Detect abstraction by walking the disk device, support two
30553 level of abstraction (LVM on RAID) when detecting partition map.
30554
24443b5a 305552009-07-31 Pavel Roskin <proski@gnu.org>
30556
30557 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
30558 to grub_zalloc(), it was erroneous.
30559 Reported by Bean <bean123ch@gmail.com>
30560
a275d9e7 305612009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
30562
30563 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 30564 embedding zone, not only the first one.
a275d9e7 30565
56c5a47f 305662009-07-29 Joe Auricchio <jauricchio@gmail.com>
30567
30568 * term/gfxterm.c (clear_char): New function.
30569 (grub_virtual_screen_setup): Use clear_char.
30570 (scroll_up): Likewise.
30571 (grub_virtual_screen_cls): Likewise.
30572
67bb323a 305732009-07-29 Felix Zielcke <fzielcke@z-51.de>
30574
30575 * util/deviceiter.c (get_acceleraid_disk_name): New static
30576 function.
30577 (grub_util_iterate_devices): Handle Accelraid devices.
30578 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
30579
388a7c75 305802009-07-28 Robert Millan <rmh.grub@aybabtu.com>
30581
30582 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
30583 separator for the suggested gfxpayload string (';' collides with the
30584 parser and needs escaping).
30585
3bb7abcf 305862009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
30587
30588 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
30589 Clear direction flag before jumping to OS.
30590 (grub_multiboot2_real_boot): Likewise.
30591
2ddd36d7 305922009-07-28 Felix Zielcke <fzielcke@z-51.de>
30593
30594 * util/i386/pc/grub-install: Fix parsing of --disk-module
30595 option.
30596
c521b62b 305972009-07-28 Felix Zielcke <fzielcke@z-51.de>
30598
30599 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
30600 when embedding.
30601
880e0a0c 306022009-07-26 Felix Zielcke <fzielcke@z-51.de>
30603
30604 * util/grub-mkconfig.in (package_version): New variable.
30605 Use it do display the version.
30606
2366e356 306072009-07-25 Felix Zielcke <fzielcke@z-51.de>
30608
30609 * kern/file.c (grub_file_open): Revert to previous check with
30610 grub_errno.
30611
7ad8c80e 306122009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30613
30614 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
30615 from help line. It's out of sync with code.
30616
72b9658b 306172009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30618
30619 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
30620 entries on failed boot.
30621
77435277 306222009-07-25 Felix Zielcke <fzielcke@z-51.de>
30623
30624 * kern/file.c (grub_file_open): Fix an error check.
30625
fcaa8b21 306262009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
30627
35d16c74 30628 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
30629 partition map couldn't be identified.
fcaa8b21 30630
48904cd1 306312009-07-23 Pavel Roskin <proski@gnu.org>
30632
ef3c317f 30633 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
30634 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
30635 case of little endian words becomes just an optimization.
30636 Respect const modifier.
ad8ea1f4 30637 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 30638
48904cd1 30639 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
30640 to avoid loss of upper bits if align is unsigned and shorter
30641 than addr.
30642
260c9a89 306432009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30644
30645 UUID support for UFS
30646
30647 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
30648 (grub_ufs_uuid): New function.
30649 (grub_ufs_fs): add .uuid
30650
f76ce889 306512009-07-21 Pavel Roskin <proski@gnu.org>
30652
30653 * kern/dl.c (grub_dl_check_header): Make static.
30654
6a6cbcaf 306552009-07-21 Felix Zielcke <fzielcke@z-51.de>
30656
30657 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
30658 add drivemap for Vista. It breaks Windows 7.
30659
cffcddb2 306602009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30661
30662 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
30663 128 bytes
30664
1ef44b80 306652009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30666
30667 Add BFS support
30668
30669 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
30670 (grub_fstest_SOURCES): Likewise.
30671 (pkglib_MODULES): Add befs.mod.
30672 (befs_mod_SOURCES): New variable.
30673 (befs_mod_CFLAGS): Likewise.
30674 (befs_mod_LDFLAGS): Likewise.
30675 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30676 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30677 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30678 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30679 (grub_setup_SOURCES): Likewise.
30680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30681 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30682 (grub_setup_SOURCES): Likewise.
30683 * fs/befs.c: New file.
30684 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
30685 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
30686 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
30687 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
30688 (B_KEY_INDEX_ALIGN): New declaration.
30689 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
30690 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
30691 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
30692 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
30693 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
30694 (grub_afs_mount) [MODE_BFS]: Likewise.
30695 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
30696 (grub_afs_fs): Use GRUB_AFS_FSNAME
30697 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
30698 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
30699 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
30700 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
30701
4f253044 307022009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
30703
30704 * util/getroot.c (find_root_device): Add support for MacOSX.
30705 * util/hostdisk.c: Likewise.
30706
57a55913 307072009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30708
30709 * font/font.c (find_glyph): Check whether a font is present to avoid
30710 segmentation fault.
75421ca9 30711
307122009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 30713
30714 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
30715
e98cd0c2 307162009-07-20 Pavel Roskin <proski@gnu.org>
30717
30718 * configure.ac: Trim excessively wordy excuses.
30719
1d2d169a 307202009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30721
30722 Add symlink, mtime and label support to AtheFS.
30723
30724 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
30725 (grub_afs_iterate_dir): Handle symlinks.
30726 (grub_afs_open): Use grub_afs_read_symlink.
30727 (grub_afs_dir): Likewise.
30728 Pass mtime.
30729 (grub_afs_label): New function.
30730 (grub_afs_fs): Add grub_afs_label.
30731 (grub_afs_read_symlink): New function.
30732
186f3189 307332009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30734
30735 Fix AtheFS support.
30736
30737 * fs/afs.c: Fix comments style.
30738 (grub_afs_blockrun): Declare as packed.
30739 (grub_afs_datastream): Likewise.
30740 (grub_afs_bnode): Likewise.
30741 (grub_afs_btree): Likewise.
30742 (grub_afs_sblock): Likewise.
30743 Declare `name' as char.
30744 (grub_afs_inode): Declare as packed.
30745 Change void *vnode to grub_uint32_t unused.
30746 (grub_afs_iterate_dir): Check that key_size is positive.
30747 (grub_afs_mount): Don't read superblock twice.
75421ca9 30748 (grub_afs_dir): Don't free node in case of error,
186f3189 30749 grub_fshelp_find_file already handles this.
30750 (grub_afs_open): Likewise.
30751
5680109e 307522009-07-19 Pavel Roskin <proski@gnu.org>
30753
30754 * Makefile.in: Remove LIBLZO and enable_lzo.
30755 * conf/i386-pc.rmk: Remove lzo support.
30756 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
30757 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
30758 support.
30759 * kern/i386/pc/lzo1x.S: Remove.
30760 * kern/i386/pc/startup.S: Remove lzo support.
30761 * util/i386/pc/grub-mkimage.c: Likewise.
30762
ac70fa32 307632009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
30764
30765 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
30766 * fs/xfs.c (grub_xfs_dir): Likewise.
30767 * fs/afs.c (grub_afs_dir): Likewise.
30768 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
30769 (grub_iso9660_open): Likewise.
30770 * fs/jfs.c (grub_jfs_open): Likewise.
30771 * fs/ext2.c (grub_ext2_dir): Likewise.
30772 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
30773 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 30774
eab58da2 307752009-07-16 Pavel Roskin <proski@gnu.org>
30776
d2838156 30777 * configure.ac: Never add "-c" to CFLAGS.
30778
55c70904 30779 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
30780
43e6200c 30781 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
30782 grub_cv_cc_efiemu should be used.
30783
ce7a733d 30784 * configure.ac: Typo fixes.
30785
eab58da2 30786 * kern/mm.c (grub_zalloc): New function.
30787 (grub_debug_zalloc): Likewise.
30788 * include/grub/mm.h: Declare grub_zalloc() and
30789 grub_debug_zalloc().
30790 * util/misc.c (grub_zalloc): New function.
30791 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
30792 instead of grub_malloc(), remove unneeded initializations.
30793 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
30794 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
30795 * commands/parttool.c (grub_cmd_parttool): Likewise.
30796 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
30797 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
30798 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
30799 * disk/usbms.c (grub_usbms_finddevs): Likewise.
30800 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
30801 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
30802 (grub_cmd_efiemu_pnvram): Likewise.
30803 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
30804 * fs/iso9660.c (grub_iso9660_mount): Likewise.
30805 (grub_iso9660_iterate_dir): Likewise.
30806 * fs/jfs.c (grub_jfs_opendir): Likewise.
30807 * fs/ntfs.c (list_file): Likewise.
30808 (grub_ntfs_mount): Likewise.
30809 * kern/disk.c (grub_disk_open): Likewise.
30810 * kern/dl.c (grub_dl_load_core): Likewise.
30811 * kern/elf.c (grub_elf_file): Likewise.
30812 * kern/env.c (grub_env_context_open): Likewise.
30813 (grub_env_set): Likewise.
30814 (grub_env_set_data_slot): Likewise.
30815 * kern/file.c (grub_file_open): Likewise.
30816 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30817 * loader/i386/multiboot.c (grub_module): Likewise.
30818 * loader/xnu.c (grub_xnu_create_key): Likewise.
30819 (grub_xnu_create_value): Likewise.
30820 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30821 (read_config_file): Likewise.
30822 * normal/menu_entry.c (make_screen): Likewise.
30823 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30824 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30825 * script/sh/script.c (grub_script_parse): Likewise.
30826 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30827 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30828 * video/readers/png.c (grub_png_output_byte): Likewise.
30829 (grub_video_reader_png): Likewise.
30830
830afef7 308312009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30832
30833 Enable all targets that can be built by default
30834
830afef7 30835 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30836 grub-mkfont and grub-fstest if they can be built
30837
ee293aee 308382009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30839
30840 Fix hang and segmentation fault in grub-emu-usb
30841
30842 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30843 * util/usb.c (grub_libusb_devices): likewise
30844 (grub_libusb_init): rename to ...
30845 (GRUB_MOD_INIT (libusb)):...this
30846 (grub_libusb_fini): rename to ..
30847 (GRUB_MOD_FINI (libusb)):...this
30848 * disk/usbms.c (grub_usbms_transfer): fix retry logic
30849 * include/grub/disk.h (grub_raid_init): removed, it's useless
30850 (grub_raid_fini): likewise
30851 (grub_lvm_init): likewise
30852 (grub_lvm_fini): likewise
30853 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
30854 by grub_init_all
30855
94414221 308562009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30857
30858 Fix libusb
30859
30860 * Makefile.in (LIBUSB): new macro
30861 * genmk.rb (Utility/print_tail): new method
30862 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30863 (top level): call util.print_tail at the end.
30864
59ade63d 308652009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30866
30867 Make FreeBSD accept zpool.cache
30868
30869 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30870 type is /boot/zfs/zpool.cache
30871
a58da8c7 308722009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30873
30874 Fix 64-bit efiemu
30875
30876 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30877 correct wrong typedef
30878 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30879
20591577 308802009-07-15 Pavel Roskin <proski@gnu.org>
30881
560ca572 30882 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30883 * kern/disk.c (struct grub_disk_cache): Likewise.
30884
e8e8e4fd 30885 * commands/probe.c (options): Typo fix.
30886
fde24e10 30887 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30888 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30889 accordingly.
30890 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30891
379c54c1 30892 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30893 the end of "Error" to make the message more readable.
30894
7bd8f5bf 30895 * boot/i386/pc/boot.S (kernel_segment): Remove.
30896 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30897 for destination.
30898
40b132c5 30899 * boot/i386/pc/boot.S (boot_version): Remove.
30900 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30901 Remove.
30902
20591577 30903 * include/grub/i386/pc/boot.h: Sort all offsets.
30904 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30905 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30906 * boot/i386/pc/boot.S: Assert location of every offset listed in
30907 include/grub/i386/pc/boot.h.
30908
2df32b2c 309092009-07-13 Pavel Roskin <proski@gnu.org>
30910
44b5d879 30911 * include/grub/i386/coreboot/machine.h: Rename
30912 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30913 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30914 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30915
17dc3751 30916 * kern/dl.c: Force native word size to suppress warnings when
30917 compiling grub-emu.
30918
2df32b2c 30919 * kern/device.c (grub_device_iterate): Change struct part_ent to
30920 hold the name, not a pointer to it. Use one grub_malloc() per
30921 partition, not two. Free partition_name if grub_malloc() fails.
30922 Set ents to NULL only before grub_partition_iterate() is called.
30923
75c59f59 309242009-07-11 Bean <bean123ch@gmail.com>
30925
30926 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30927 childname.
30928
0ae1bf88 309292009-07-10 Bean <bean123ch@gmail.com>
309302009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30931
30932 * kern/ieee1275/openfw.c (grub_children_iterate)
30933 (grub_devalias_iterate): Fix size evaluation for property or path
30934 strings, which was broken since r2132.
30935
8279cade 309362009-07-07 Pavel Roskin <proski@gnu.org>
30937
7d8a52d3 30938 * commands/search.c (search_file): Merge into ...
30939 (search_fs): ... this. Accept search type as argument.
30940 (grub_cmd_search): Pass search type to search_fs().
30941
25f9a05a 30942 * include/grub/util/console.h: New file.
30943 * util/console.c: Use it instead of grub/machine/console.h.
30944 * util/grub-emu.c: Likewise.
30945
8279cade 30946 * lib/arg.c (find_long_option): Remove.
30947 (find_long): Add `len' argument, make `s' const char *.
30948 (grub_arg_parse): Parse long options in place, not in a
30949 temporary buffer.
30950
4a11b60f 309512009-07-06 Pavel Roskin <proski@gnu.org>
30952
99f68041 30953 * commands/search.c (search_fs): Fix potential NULL pointer
30954 dereference.
30955
4a11b60f 30956 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30957 function pointer.
30958
e110f4de 309592009-07-06 Daniel Mierswa <impulze@impulze.org>
30960
30961 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30962 comparison.
30963
46eeb6a2 309642009-07-05 Pavel Roskin <proski@gnu.org>
30965
bab74958 30966 * include/grub/i386/linux.h (struct linux_kernel_params):
30967 Restore padding3, it's still needed.
30968
46eeb6a2 30969 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30970 FreeBSD.
30971 * util/osdetect.lua: Likewise.
30972
b4a1dc79 309732009-07-05 Bean <bean123ch@gmail.com>
30974
30975 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30976
30977 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30978 (grub_lua_getenv): Likewise.
30979 (grub_lua_setenv): Likewise.
30980 (save_errno): New function.
30981 (push_result): Likewise.
30982 (grub_lua_enum_device): Likewise.
30983 (grub_lua_enum_file): Likewise.
30984 (grub_lua_file_open): Likewise.
30985 (grub_lua_file_close): Likewise.
30986 (grub_lua_file_seek): Likewise.
30987 (grub_lua_file_read): Likewise.
30988 (grub_lua_file_getline): Likewise.
30989 (grub_lua_file_getsize): Likewise.
30990 (grub_lua_file_getpos): Likewise.
30991 (grub_lua_file_eof): Likewise.
30992 (grub_lua_file_exist): Likewise.
30993 (grub_lua_add_menu): Likewise.
30994
30995 * script/lua/grub_lua.h (isupper): New inline function.
30996 (islower): Likewise.
30997 (ispunct): Likewise.
30998 (isxdigit): Likewise.
30999 (strcspn): Change to normal function.
31000 (strpbkr): New function declaration.
31001 (memchr): Likewise.
31002
31003 * script/lua/grub_main.c (scan_str): New function.
31004 (strcspn): Likewise.
31005 (strpbrk): Likewise.
31006 (memchr): Likewise.
31007
31008 * script/lua/linit.c (lualibs): Enable the string library.
31009
31010 * util/osdetect.lua: New file.
31011
2da92295 310122009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31013
31014 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31015 `capabilities' member.
31016
b2582ec9 310172009-07-02 Pavel Roskin <proski@gnu.org>
31018
31019 * genparttoollist.sh: Add missing newline at the end.
31020
32622956 310212009-07-01 Pavel Roskin <proski@gnu.org>
31022
87a7339e 31023 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31024
d23af54e 31025 * util/hostdisk.c (open_device): Remove `const' from
31026 `sysctl_size', as sysctlbyname() can change it (in this case it
31027 doesn't actually happen).
31028
c94b18a9 31029 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31030 using signed long int constants.
31031
c6cd3ef0 31032 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31033 constant to avoid a warning on FreeBSD.
31034
0df63420 31035 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31036 where it's needed.
31037
999577f1 31038 * Makefile.in: Install include/grub/machine symlink.
31039
6f41557f 31040 * Makefile.in: When installing symlinks, use "cp -fR", which
31041 works on FreeBSD and MacOSX.
31042 From Yves Blusseau <cl7m42e02@sneakemail.com>
31043
c8d22988 31044 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31045 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31046
1b96e952 31047 * util/misc.c: Move grub_reboot() and grub_halt() ...
31048 * util/grub-emu.c: ... here. Make main_env static.
31049 * include/grub/util/misc.h: Remove main_env.
31050
2ef0084d 31051 * kern/mm.c: Use correct format to print size_t.
31052
32622956 31053 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31054 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31055 * kern/powerpc/dl.c: Likewise.
31056 * kern/sparc64/dl.c: Likewise.
31057 * kern/x86_64/dl.c: Likewise.
31058
3f7f0cd0 310592009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31060
31061 Fix grub-emu build on sparc64-ieee1275.
31062
75421ca9 31063 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 31064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31065
211d06b5 310662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31067
31068 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31069 (grub_reboot, grub_halt): New functions.
31070
31071 * util/i386/pc/misc.c: Delete. Update all users.
31072 * util/sparc64/ieee1275/misc.c: Likewise.
31073 * util/powerpc/ieee1275/misc.c: Likewise.
31074
aaf53e3c 310752009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31076
31077 * conf/i386.rmk (setjmp_mod_SOURCES)
31078 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31079 * conf/common.rmk (setjmp_mod_SOURCES)
31080 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31081 to use $(target_cpu).
31082 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31083 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31084 * conf/powerpc-ieee1275.rmk: Likewise.
31085 * conf/sparc64-ieee1275.rmk: Likewise.
31086
31087 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31088 $(target_cpu) for kern/$(target_cpu)/dl.c.
31089 * conf/i386-efi.rmk: Likewise.
31090 * conf/i386-ieee1275.rmk: Likewise.
31091 * conf/x86_64-efi.rmk: Likewise.
31092 * conf/i386-coreboot.rmk: Likewise.
31093 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31094 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31095 kern/$(target_cpu)/cache.S.
31096 * conf/sparc64-ieee1275.rmk: Likewise.
31097
a337130b 310982009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31099
31100 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31101 type to `grub_uint8_t', and adjust `padding9' accordingly.
31102
c6fe4d53 311032009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31104
b09db61d 31105 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31106
c6fe4d53 31107 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31108 assembly in final jump, using register constraints.
31109
b09db61d 31110 (grub_linux_boot): For text mode, initialize `have_vga' using
31111 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31112
31113 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31114 right before the final jump.
31115
31116 Set `video_mode' to 0x3.
31117
31118 Document initialization of `video_page', `video_mode' and
31119 `video_ega_bx'.
31120
28333ad0 311212009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31122
31123 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31124 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 31125 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 31126
02164e1b 311272009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 Fix build on Debian / sparc.
31130
31131 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31132
18b6c557 311332009-06-28 Pavel Roskin <proski@gnu.org>
31134
85f2aab6 31135 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31136 fix a warning.
31137
18b6c557 31138 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31139
ad760f81 311402009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31141
31142 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31143 `err'.
31144
87a4623b 311452009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31146
31147 Revert r2338.
31148
31149 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31150 file can't be opened. grub_file_open() is already supposed to set
75421ca9 31151 grub_errno / grub_errmsg appropriately.
87a4623b 31152 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31153
8231fb77 311542009-06-27 Pavel Roskin <proski@gnu.org>
311552009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31156
31157 * include/grub/dl.h: Include grub/elf.h.
31158 (struct grub_dl): Add symtab field.
31159 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31160 GRUB_MODULES_MACHINE_READONLY.
31161 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31162 of the header for read-only modules.
31163 (grub_dl_unload): Free mod->symtab for read-only modules.
31164 * kern/i386/dl.c: Use mod->symtab.
31165 * kern/powerpc/dl.c: Likewise.
31166 * kern/sparc64/dl.c: Likewise.
31167 * kern/x86_64/dl.c: Likewise.
31168
31169 * conf/i386-qemu.rmk: New file.
31170 * kern/i386/qemu/startup.S: Likewise.
31171 * kern/i386/qemu/mmap.c: Likewise.
31172 * boot/i386/qemu/boot.S: Likewise.
31173 * include/grub/i386/qemu/time.h: Likewise.
31174 * include/grub/i386/qemu/serial.h: Likewise.
31175 * include/grub/i386/qemu/kernel.h: Likewise.
31176 * include/grub/i386/qemu/console.h: Likewise.
31177 * include/grub/i386/qemu/boot.h: Likewise.
31178 * include/grub/i386/qemu/init.h: Likewise.
31179 * include/grub/i386/qemu/machine.h: Likewise.
31180 * include/grub/i386/qemu/loader.h: Likewise.
31181 * include/grub/i386/qemu/memory.h: Likewise.
31182
31183 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31184 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31185 [qemu] (pkglib_IMAGES): Add `boot.img'.
31186 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31187 [qemu] (boot_img_FORMAT): New variables.
31188 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31189 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31190 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31191 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31192 [qemu] (kernel_img_FORMAT): New variables.
31193
31194 * configure.ac: Recognise `i386-qemu'.
31195
31196 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31197 (for no compression).
31198 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31199 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31200 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31201 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31202 ifdefs).
31203
97fe384e 312042009-06-27 Pavel Roskin <proski@gnu.org>
31205
31206 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31207 read.
31208 * efiemu/prepare32.c: Likewise.
31209 * efiemu/prepare64.c: Likewise.
31210
c402ab17 312112009-06-26 Pavel Roskin <proski@gnu.org>
31212
31213 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31214 * include/grub/elf.h: Define symbols without "32" or "64" based
31215 on GRUB_TARGET_WORDSIZE.
31216 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31217 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31218 ELF definitions.
31219 * efiemu/loadcore64.c: Likewise.
31220 * loader/i386/bsd32.c: Likewise.
31221 * loader/i386/bsd64.c: Likewise.
31222 * kern/dl.c: Remove own ELF definitions.
31223 * util/i386/efi/grub-mkimage.c: Likewise.
31224
9bbdfd4d 312252009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31226
31227 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31228 segment 0x0 unconditionally, because the reference generated by
31229 GAS is an absolute address.
31230
a42ce6e9 312312009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31232
31233 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31234 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31235
c952cf92 312362009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31237
31238 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31239 indexes. Check for -f explicitly.
cc3752ad 31240 (search_file): Improve error message.
31241 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 31242
132a0a59 312432009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31244
31245 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31246 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31247
387a140c 312482009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31249
31250 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31251 * conf/i386-ieee1275.rmk: Likewise.
31252 * conf/i386-coreboot.rmk: Likewise.
31253
31254 * kern/i386/pc/startup.S (grub_stop): Remove function.
31255 * kern/i386/ieee1275/startup.S: Likewise.
31256 * kern/i386/coreboot/startup.S: Likewise.
31257 * kern/i386/misc.S (grub_stop): New function.
31258
41da9665 312592009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31260
31261 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31262 * kern/i386/realmode.S (real_to_prot): ... to here.
31263
bf337234 312642009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31265
31266 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31267 with `kernel.img'.
31268 (kernel_elf_SOURCES): Rename to ...
31269 (kernel_img_SOURCES): ... this.
31270 (kernel_elf_HEADERS): Rename to ...
31271 (kernel_img_HEADERS): ... this. Update all users.
31272 (kernel_elf_ASFLAGS): Rename to ...
31273 (kernel_img_ASFLAGS): ... this.
31274 (kernel_elf_CFLAGS): Rename to ...
31275 (kernel_img_CFLAGS): ... this.
31276 (kernel_elf_LDFLAGS): Rename to ...
31277 (kernel_img_LDFLAGS): ... this.
31278 * conf/i386-coreboot.rmk: Likewise.
31279 * conf/powerpc-ieee1275.rmk: Likewise.
31280
31281 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31282 with "kernel.img".
31283
f52196ff 312842009-06-21 Pavel Roskin <proski@gnu.org>
31285
c3cee413 31286 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
31287 to match nested functions.
31288 * loader/sparc64/ieee1275/linux.c: Likewise.
31289
f52196ff 31290 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
31291
58750afc 312922009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
31295 all i386 platforms.
31296
15355c7d 312972009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31298
31299 Fix asm file handling on ELF, and remove workarounds.
31300
31301 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 31302 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 31303 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
31304 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
31305
3f3ec72b 313062009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
31307
31308 Load BSD ELF modules
31309
31310 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
31311 and loader/i386/bsd64.c
31312 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
31313 (FREEBSD_MODTYPE_ELF_MODULE): New definition
31314 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
31315 (grub_freebsd_load_elfmodule32): New declaration
31316 (grub_freebsd_load_elfmoduleobj64): Likewise
31317 (grub_freebsd_load_elf_meta32): Likewise
31318 (grub_freebsd_load_elf_meta64): Likewise
31319 (grub_freebsd_add_meta): Likewise
31320 (grub_freebsd_add_meta_module): Likewise
31321 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
31322 (grub_freebsd_add_meta_module): Likewise and move module-specific
31323 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
31324 (grub_cmd_freebsd): Add elf-kernel specific parts
31325 based on grub_freebsd_add_meta_module
31326 (grub_cmd_freebsd_module): Add type parsing moved from
31327 grub_freebsd_add_meta_module
31328 (grub_cmd_freebsd_module_elf): New function
31329 (cmd_freebsd_module_elf): New variable
31330 (GRUB_MOD_INIT): Register freebsd_module_elf
31331 * loader/i386/bsd32.c: New file
31332 * loader/i386/bsd64.c: Likewise
31333 * loader/i386/bsdXX.c: Likewise
31334 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
31335 (grub_elf64_load): Likewise
31336 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
31337 All users updated
31338 (grub_elf64_load_hook_t): Likewise
31339
0db15301 313402009-06-21 Colin Watson <cjwatson@ubuntu.com>
31341
31342 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
31343 variable.
31344 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
31345 don't write a menu entry for recovery mode.
31346
546796c1 313472009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31348
31349 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
31350 after it's no longer needed.
31351
cd7310d5 313522009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31353
31354 * include/grub/i386/loader.h (grub_linux_prot_size)
31355 (grub_linux_tmp_addr, grub_linux_real_addr)
31356 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
31357 GRUB_MACHINE_PCBIOS.
31358 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
31359 common grub_util_info() call to ...
31360 (generate_image): ... here.
31361 Fix use of uninitialized memory, comparison of signed with
31362 unsigned integers and memory leak.
31363 Remove bogus module address message.
31364
ab32d3b5 313652009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
31366
31367 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
31368 grub_raid_register
31369 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
31370
024ef597 313712009-06-19 Pavel Roskin <proski@gnu.org>
31372
31373 * configure.ac: Remove stray AC_MSG_CHECKING.
31374
3ac72b51 313752009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
31376
31377 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 31378
e14cd814 313792009-06-18 Pavel Roskin <proski@gnu.org>
31380
31381 * conf/common.rmk: Add fs_file.mod.
31382 * disk/fs_file.c: New file.
31383 * include/grub/disk.h (enum grub_disk_dev_id): Add
31384 GRUB_DISK_DEVICE_FILE_ID.
31385
26586d98 313862009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31387
31388 Fix build with Apple's toolchain. Part 2
31389
31390 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
31391 a fake start
31392
26de2bcd 313932009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31394
31395 Fix build with Apple's toolchain. Part 1
31396
31397 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
31398 for long calls
31399 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 31400 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 31401 Apple's toolchain
31402
09b3490b 314032009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31404
31405 Fix warnings
31406
31407 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
31408 (decomp_block): initialize ch
31409 use grub_memcpy instead of memcpy
31410
c22a006a 314112009-06-17 Pavel Roskin <proski@gnu.org>
31412
d3638678 31413 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
31414 version, use declarations needed to use vga_text as the startup
31415 console.
31416
c22a006a 31417 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
31418 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
31419 the kernel.
31420 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
31421 and grub_at_keyboard_fini(), it's done on module load and
31422 unload.
31423
05b129e0 314242009-06-17 Felix Zielcke <fzielcke@z-51.de>
31425
31426 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
31427 file can't be found.
31428 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31429
cf24ed9e 314302009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31431
31432 Fix newline handling
31433
31434 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 31435 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 31436 (grub_script_yylex): don't segfault on unterminated script
31437 newline terminates command and variable
31438
74aa8e4b 314392009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31440
31441 avoid double grub_adjust_range call. Bug reported by David Simner
31442
31443 * kern/disk.c (grub_disk_write): change to raw disk access before
31444 calling disk_read
31445
1bd265f3 314462009-06-17 Colin Watson <cjwatson@ubuntu.com>
31447
31448 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
31449 spaces, for the benefit of help2man.
31450 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31451
a2d08c06 314522009-06-16 Pavel Roskin <proski@gnu.org>
31453
31454 * kern/i386/halt.c: Include grub/machine/init.h.
31455 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
31456
b97bcb19 314572009-06-16 Felix Zielcke <fzielcke@z-51.de>
31458
31459 * util/grub.d/30_os-prober.in: Use ${root} in the generated
31460 drivemap menuentry.
31461
0644f96c 314622009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
31463
31464 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
31465 `echo' command.
31466
3ef17a2e 314672009-06-16 Pavel Roskin <proski@gnu.org>
31468
31469 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
31470 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
31471 save %dx, we only need %dl and we never change it.
31472 * boot/i386/pc/cdboot.S: Don't set the root drive.
31473 * boot/i386/pc/pxeboot.S: Likewise.
31474 * include/grub/i386/pc/boot.h: Remove
31475 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
31476 GRUB_BOOT_MACHINE_DRIVE_CHECK.
31477 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
31478 * kern/i386/pc/init.c (make_install_device): Remove references
31479 to grub_root_drive.
31480 * kern/i386/pc/startup.S: Likewise.
31481 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
31482
693fe637 314832009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31484
31485 xnu_uuid command
31486
31487 * commands/xnu_uuid.c: new file
31488 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
31489 (xnu_uuid_mod_SOURCES): new variable
31490 (xnu_uuid_mod_CFLAGS): likewise
31491 (xnu_uuid_mod_LDFLAGS): likewise
31492 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31493 * conf/i386-ieee1275.rmk: likewise
31494 * conf/i386-pc.rmk: likewise
31495 * conf/powerpc-ieee1275.rmk: likewise
31496 * conf/sparc64-ieee1275.rmk: likewise
31497 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
31498
c9da87d0 314992009-06-16 Pavel Roskin <proski@gnu.org>
31500
31501 * configure.ac: Avoid '==' in test command, it's not portable.
31502
9c6f4596 315032009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31504
31505 Probe command
31506
31507 * commands/probe.c: new file
31508 * conf/common.rmk (pkglib_MODULES): add probe.mod
31509 (probe_mod_SOURCES): new variable
31510 (probe_mod_CFLAGS): likewise
31511 (probe_mod_LDFLAGS): likewise
31512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31513 * conf/i386-ieee1275.rmk: likewise
31514 * conf/i386-pc.rmk: likewise
31515 * conf/powerpc-ieee1275.rmk: likewise
31516 * conf/sparc64-ieee1275.rmk: likewise
31517
70b7f9fd 315182009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
31519
31520 Fix handling of string like \"hello\" and "a
31521 b"
31522
31523 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
31524 (grub_script_yylex): fix parsing of quoting, escaping and newline
31525
71c79a6b 315262009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
31527
dd74360c 31528 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 31529 handling
dd74360c 31530
0644f96c 315312009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 31532
31533 * util/grub-mkconfig.in: Fix parsing of --output option.
31534
e40893c3 315352009-06-12 Pavel Roskin <proski@gnu.org>
31536
31537 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
31538 genmk.rb don't need to be generated or installed.
31539
3a1acfe2 315402009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
31541
31542 * commands/i386/pc/drivemap_int13h.S: add more comments
31543
3a4575d4 315442009-06-11 Pavel Roskin <proski@gnu.org>
31545
0658e928 31546 * Makefile.in (uninstall): Uninstall manuals.
31547
ca0388f0 31548 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
31549 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
31550 and update-grub_lib in two places.
31551 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
31552
e3b27c39 31553 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
31554 a compiler warning.
31555
3a4575d4 31556 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
31557 `entry_lo' to fix variable shadowing.
31558
af1f4f55 315592009-06-11 Christian Franke <franke@computer.org>
31560
31561 * kern/misc.c (__enable_execute_stack): Add missing return type
31562 to prevent gcc warning.
31563
5225e649 315642009-06-11 Felix Zielcke <fzielcke@z-51.de>
31565
31566 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
31567
7d83bd47 315682009-06-11 Pavel Roskin <proski@gnu.org>
31569
c1cb63ba 31570 * Makefile.in: Don't rely on any scripts being executable.
31571 Always use $(SHELL) to run shell scripts.
31572
7d83bd47 31573 * configure.ac: Always define ___main if using -nostdlib. This
31574 fixes tests on Cygwin.
31575
948f48e7 315762009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
31577
31578 UDF fix
31579
7d83bd47 31580 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 31581 is in bytes and not in blocks
7d83bd47 31582
8ada9bc1 315832009-06-11 Pavel Roskin <proski@gnu.org>
31584
31585 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
31586 warning.
31587
25ad2323 315882009-06-11 Felix Zielcke <fzielcke@z-51.de>
31589
31590 * util/grub.d/30_os-prober.in: Fix a comment. Source
31591 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
31592 to set the root device. Place drivemap command in the generated
31593 chain entry.
31594
e65acb0c 315952009-06-11 Pavel Roskin <proski@gnu.org>
31596
31597 * configure.ac: Remove host_m32. Issues with 64-bit utilities
31598 have long been resolved.
31599
f285fe2d 316002009-06-11 Colin Watson <cjwatson@ubuntu.com>
31601
bd47b0b5 31602 * util/grub.d/10_linux.in: Capitalise "Linux".
31603
f285fe2d 31604 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
31605
a0c62e4e 316062009-06-11 Pavel Roskin <proski@gnu.org>
31607
b6783cb2 31608 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
31609 fix a gcc warning and ensure that the function won't ever exit.
31610
dde032e8 31611 * kern/i386/ieee1275/init.c: Add missing prototype for
31612 grub_stop_floppy().
31613
22cd079d 31614 * loader/ieee1275/multiboot2.c [__i386__]: Include
31615 grub/cpu/multiboot.h.
31616
a0c62e4e 31617 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
31618 casts to short - they are not portable and cause warnings. Fix
31619 use of uninitialized values in input_buf. Use ARRAY_SIZE.
31620
63963d17 316212009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
31622
31623 Drivemap fixes
31624
31625 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
31626 new function
31627 (grub_get_root_biosnumber_saved): new variable
31628 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
31629 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 31630 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 31631 %dx after the call if necessary
31632 * conf/common.rmk (pkglib_MODULES): remove boot.mod
31633 (boot_mod_SOURCES): remove
31634 (boot_mod_CFLAGS): remove
31635 (boot_mod_LDFLAGS): remove
31636 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
31637 (boot_mod_SOURCES): new variable
31638 (boot_mod_CFLAGS): likewise
31639 (boot_mod_LDFLAGS): likewise
31640 * conf/i386-efi.rmk: likewise
31641 * conf/i386-ieee1275.rmk: likewise
31642 * conf/i386-pc.rmk: likewise
31643 * conf/powerpc-ieee1275.rmk: likewise
31644 * conf/sparc64-ieee1275.rmk: likewise
31645 * conf/x86_64-efi.rmk: likewise
31646 * include/grub/i386/pc/biosnum.h: new file
31647 * lib/i386/pc/biosnum.c: likewise
31648 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
31649 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
31650 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 31651
33abf7ae 316522009-06-10 Pavel Roskin <proski@gnu.org>
31653
5ac35b35 31654 * io/gzio.c (test_header): Don't reuse one buffer for all data.
31655 Use separate variables. Read only the file size at the end, but
31656 not the checksum that we don't use.
31657
5c5215d5 31658 * kern/file.c (grub_file_read): Use void pointer for the buffer.
31659 Adjust all callers.
31660
27d5fef7 31661 * kern/ieee1275/openfw.c: Remove libc includes.
31662 * kern/ieee1275/cmain.c: Likewise.
31663 * include/grub/ieee1275/ieee1275.h: Likewise.
31664
33abf7ae 31665 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
31666 compiler warnings.
31667
19d50c2b 316682009-06-10 Felix Zielcke <fzielcke@z-51.de>
31669
31670 * Makefile.in: Remove all trailing whitespace.
31671 * conf/i386-pc.rmk: Likewise.
31672 * conf/powerpc-ieee1275.rmk: Likewise.
31673 * conf/sparc64-ieee1275.rmk: Likewise.
31674 * docs/grub.texi: Likewise.
31675 * docs/texinfo.tex: Likewise.
31676 * disk/fs_uuid.c: Likewise.
31677 * disk/lvm.c: Likewise.
31678 * disk/scsi.c: Likewise.
31679 * disk/ata.c: Likewise.
31680 * disk/ieee1275/ofdisk.c: Likewise.
31681 * disk/i386/pc/biosdisk.c: Likewise.
31682 * disk/host.c: Likewise.
31683 * disk/raid.c: Likewise.
31684 * disk/efi/efidisk.c: Likewise.
31685 * disk/usbms.c: Likewise.
31686 * disk/memdisk.c: Likewise.
31687 * disk/loopback.c: Likewise.
31688 * kern/powerpc/dl.c: Likewise.
31689 * kern/device.c: Likewise.
31690 * kern/dl.c: Likewise.
31691 * kern/sparc64/dl.c: Likewise.
31692 * kern/ieee1275/ieee1275.c: Likewise.
31693 * kern/term.c: Likewise.
31694 * kern/fs.c: Likewise.
31695 * kern/i386/dl.c: Likewise.
31696 * kern/i386/pc/startup.S: Likewise.
31697 * kern/i386/pc/init.c: Likewise.
31698 * kern/i386/pc/mmap.c: Likewise.
31699 * kern/i386/pc/lzo1x.S: Likewise.
31700 * kern/i386/ieee1275/init.c: Likewise.
31701 * kern/i386/realmode.S: Likewise.
31702 * kern/i386/tsc.c: Likewise.
31703 * kern/partition.c: Likewise.
31704 * kern/corecmd.c: Likewise.
31705 * kern/file.c: Likewise.
31706 * kern/efi/efi.c: Likewise.
31707 * kern/efi/init.c: Likewise.
31708 * kern/efi/mm.c: Likewise.
31709 * kern/main.c: Likewise.
31710 * kern/err.c: Likewise.
31711 * kern/env.c: Likewise.
31712 * kern/disk.c: Likewise.
31713 * kern/generic/millisleep.c: Likewise.
31714 * kern/generic/rtc_get_time_ms.c: Likewise.
31715 * kern/misc.c: Likewise.
31716 * kern/parser.c: Likewise.
31717 * genmk.rb: Likewise.
31718 * configure.ac: Likewise.
31719 * boot/i386/pc/diskboot.S: Likewise.
31720 * boot/i386/pc/pxeboot.S: Likewise.
31721 * boot/i386/pc/boot.S: Likewise.
31722 * boot/i386/pc/lnxboot.S: Likewise.
31723 * boot/i386/pc/cdboot.S: Likewise.
31724 * parttool/pcpart.c: Likewise.
31725 * video/readers/tga.c: Likewise.
31726 * video/video.c: Likewise.
31727 * video/bitmap.c: Likewise.
31728 * lib/envblk.c: Likewise.
31729 * lib/i386/setjmp.S: Likewise.
31730 * fs/xfs.c: Likewise.
31731 * fs/afs.c: Likewise.
31732 * fs/fat.c: Likewise.
31733 * fs/ntfs.c: Likewise.
31734 * fs/udf.c: Likewise.
31735 * fs/affs.c: Likewise.
31736 * fs/iso9660.c: Likewise.
31737 * fs/hfs.c: Likewise.
31738 * fs/fshelp.c: Likewise.
31739 * fs/ext2.c: Likewise.
31740 * fs/jfs.c: Likewise.
31741 * fs/reiserfs.c: Likewise.
31742 * fs/hfsplus.c: Likewise.
31743 * fs/minix.c: Likewise.
31744 * fs/cpio.c: Likewise.
31745 * fs/sfs.c: Likewise.
31746 * fs/ufs.c: Likewise.
31747 * efiemu/prepare.c: Likewise.
31748 * efiemu/loadcore_common.c: Likewise.
31749 * efiemu/runtime/efiemu.sh: Likewise.
31750 * efiemu/runtime/efiemu.S: Likewise.
31751 * efiemu/runtime/efiemu.c: Likewise.
31752 * efiemu/pnvram.c: Likewise.
31753 * efiemu/main.c: Likewise.
31754 * efiemu/i386/pc/cfgtables.c: Likewise.
31755 * efiemu/i386/loadcore64.c: Likewise.
31756 * efiemu/i386/loadcore32.c: Likewise.
31757 * efiemu/loadcore.c: Likewise.
31758 * efiemu/symbols.c: Likewise.
31759 * efiemu/mm.c: Likewise.
31760 * include/grub/autoefi.h: Likewise.
31761 * include/grub/datetime.h: Likewise.
31762 * include/grub/term.h: Likewise.
31763 * include/grub/hfs.h: Likewise.
31764 * include/grub/lvm.h: Likewise.
31765 * include/grub/i386/tsc.h: Likewise.
31766 * include/grub/i386/linux.h: Likewise.
31767 * include/grub/i386/xnu.h: Likewise.
31768 * include/grub/i386/efiemu.h: Likewise.
31769 * include/grub/i386/pc/biosdisk.h: Likewise.
31770 * include/grub/i386/pc/memory.h: Likewise.
31771 * include/grub/i386/pc/vbe.h: Likewise.
31772 * include/grub/parttool.h: Likewise.
31773 * include/grub/video.h: Likewise.
31774 * include/grub/memory.h: Likewise.
31775 * include/grub/fs.h: Likewise.
31776 * include/grub/partition.h: Likewise.
31777 * include/grub/xnu.h: Likewise.
31778 * include/grub/efi/api.h: Likewise.
31779 * include/grub/efi/pe32.h: Likewise.
31780 * include/grub/efi/memory.h: Likewise.
31781 * include/grub/multiboot.h: Likewise.
31782 * include/grub/usbdesc.h: Likewise.
31783 * include/grub/multiboot2.h: Likewise.
31784 * include/grub/acpi.h: Likewise.
31785 * include/grub/efiemu/efiemu.h: Likewise.
31786 * include/grub/disk.h: Likewise.
31787 * include/grub/ieee1275/ieee1275.h: Likewise.
31788 * include/grub/net.h: Likewise.
31789 * include/grub/machoload.h: Likewise.
31790 * include/grub/macho.h: Likewise.
31791 * include/multiboot.h: Likewise.
31792 * genmoddep.awk: Likewise.
31793 * normal/main.c: Likewise.
31794 * normal/menu_entry.c: Likewise.
31795 * normal/menu_viewer.c: Likewise.
31796 * normal/completion.c: Likewise.
31797 * normal/cmdline.c: Likewise.
31798 * normal/misc.c: Likewise.
31799 * normal/datetime.c: Likewise.
31800 * bus/usb/usbtrans.c: Likewise.
31801 * bus/usb/ohci.c: Likewise.
31802 * bus/usb/uhci.c: Likewise.
31803 * bus/usb/usb.c: Likewise.
31804 * mmap/efi/mmap.c: Likewise.
31805 * mmap/i386/pc/mmap_helper.S: Likewise.
31806 * mmap/i386/pc/mmap.c: Likewise.
31807 * mmap/i386/mmap.c: Likewise.
31808 * mmap/i386/uppermem.c: Likewise.
31809 * mmap/mmap.c: Likewise.
31810 * commands/acpi.c: Likewise.
31811 * commands/echo.c: Likewise.
31812 * commands/blocklist.c: Likewise.
31813 * commands/loadenv.c: Likewise.
31814 * commands/usbtest.c: Likewise.
31815 * commands/boot.c: Likewise.
31816 * commands/parttool.c: Likewise.
31817 * commands/search.c: Likewise.
31818 * commands/cat.c: Likewise.
31819 * commands/i386/pc/play.c: Likewise.
31820 * commands/i386/pc/drivemap.c: Likewise.
31821 * commands/i386/pc/vbeinfo.c: Likewise.
31822 * commands/i386/pc/acpi.c: Likewise.
31823 * commands/i386/pc/vbetest.c: Likewise.
31824 * commands/ls.c: Likewise.
31825 * commands/cmp.c: Likewise.
31826 * commands/test.c: Likewise.
31827 * commands/efi/acpi.c: Likewise.
31828 * commands/gptsync.c: Likewise.
31829 * commands/help.c: Likewise.
31830 * partmap/amiga.c: Likewise.
31831 * partmap/apple.c: Likewise.
31832 * partmap/acorn.c: Likewise.
31833 * partmap/pc.c: Likewise.
31834 * partmap/sun.c: Likewise.
31835 * partmap/gpt.c: Likewise.
31836 * script/sh/lexer.c: Likewise.
31837 * script/sh/function.c: Likewise.
31838 * font/font.c: Likewise.
31839 * font/font_cmd.c: Likewise.
31840 * loader/powerpc/ieee1275/linux.c: Likewise.
31841 * loader/efi/chainloader.c: Likewise.
31842 * loader/multiboot_loader.c: Likewise.
31843 * loader/macho.c: Likewise.
31844 * loader/i386/multiboot.c: Likewise.
31845 * loader/i386/linux.c: Likewise.
31846 * loader/i386/pc/linux.c: Likewise.
31847 * loader/i386/pc/multiboot2.c: Likewise.
31848 * loader/i386/pc/chainloader.c: Likewise.
31849 * loader/i386/pc/xnu.c: Likewise.
31850 * loader/i386/bsd_trampoline.S: Likewise.
31851 * loader/i386/efi/linux.c: Likewise.
31852 * loader/i386/multiboot_elfxx.c: Likewise.
31853 * loader/i386/bsd_helper.S: Likewise.
31854 * loader/i386/bsd.c: Likewise.
31855 * loader/i386/linux_trampoline.S: Likewise.
31856 * loader/i386/xnu_helper.S: Likewise.
31857 * loader/i386/xnu.c: Likewise.
31858 * loader/i386/bsd_pagetable.c: Likewise.
31859 * loader/i386/multiboot_helper.S: Likewise.
31860 * loader/xnu.c: Likewise.
31861 * loader/xnu_resume.c: Likewise.
31862 * io/gzio.c: Likewise.
31863 * term/efi/console.c: Likewise.
31864 * term/terminfo.c: Likewise.
31865 * term/ieee1275/ofconsole.c: Likewise.
31866 * term/i386/pc/serial.c: Likewise.
31867 * term/i386/pc/vesafb.c: Likewise.
31868 * term/i386/pc/vga.c: Likewise.
31869 * term/usb_keyboard.c: Likewise.
31870 * term/gfxterm.c: Likewise.
31871 * aclocal.m4: Likewise.
31872 * util/lvm.c: Likewise.
31873 * util/grub.d/30_os-prober.in: Likewise.
31874 * util/grub.d/10_hurd.in: Likewise.
31875 * util/console.c: Likewise.
31876 * util/grub-macho2img.c: Likewise.
31877 * util/grub-probe.c: Likewise.
31878 * util/hostfs.c: Likewise.
31879 * util/i386/pc/grub-mkimage.c: Likewise.
31880 * util/i386/pc/grub-setup.c: Likewise.
31881 * util/i386/efi/grub-mkimage.c: Likewise.
31882 * util/grub-mkconfig.in: Likewise.
31883 * util/raid.c: Likewise.
31884 * util/resolve.c: Likewise.
31885 * util/grub-mkdevicemap.c: Likewise.
31886 * util/grub-emu.c: Likewise.
31887 * util/getroot.c: Likewise.
31888 * util/hostdisk.c: Likewise.
31889 * util/usb.c: Likewise.
31890 * util/grub-editenv.c: Likewise.
31891 * util/misc.c: Likewise.
31892
d2d49665 318932009-06-10 Felix Zielcke <fzielcke@z-51.de>
31894
31895 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31896 `genparttoollist.sh'.
31897 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31898 Add `*.sh' to the list find searches for and change `mdate.sh'
31899 to `mdate-sh'.
31900
fe052e37 319012009-06-10 Pavel Roskin <proski@gnu.org>
31902
2763ac18 31903 * include/grub/multiboot2.h: Provide compatibility defines for
31904 multiboot2.h.
31905 * include/multiboot2.h: Include stdint.h only if needed, using
31906 angle brackets.
31907 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31908 grub/multiboot2.h.
31909 * loader/ieee1275/multiboot2.c: Likewise.
31910 * loader/multiboot2.c: Likewise.
31911 * loader/multiboot_loader.c: Likewise.
31912
437e6adc 31913 * configure.ac: Use -nostdlib when probing for the target. It
31914 should not be required to have libc for the target.
31915
06a6836c 31916 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31917 they fail without libc headers for the target.
31918 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31919 exports.
31920 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31921 preprocessor conditionals.
31922
fe052e37 31923 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31924 build system doesn't need to be aware of the tar.c internals.
31925
afd22553 319262009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31927
afd22553 31928 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31929
6b787c4f 319302009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31931
31932 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31933 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31934
319352009-06-09 Felix Zielcke <fzielcke@z-51.de>
31936
31937 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31938 aren't available if ata.mod gets used.
6b787c4f 31939
473d1e45 319402009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31941
473d1e45 31942 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31943 initialising controller.
473d1e45 31944 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31945
255a27d4 319462009-06-08 Felix Zielcke <fzielcke@z-51.de>
31947
31948 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31949 to choose between ata and biosdisk module on i386-pc.
31950
473d1e45 319512009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31952
d55842d8 31953 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31954 Subclass and Programming Interface fields in terms of the 3 byte
31955 Class Code register.
31956 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31957
fa5db0b1 31958 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31959 interface is OHCI. Add grub_dprintf for symmetry with
31960 bus/usb/uhci.c.
31961 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31962 interface is UHCI. Add interf variable for programming
31963 interface. Print interface with class/subclass.
31964
c0947beb 31965 * bus/usb/ohci.c: Set interf with correct field.
31966
69da8877 31967 * bus/usb/uhci.c: Remove unneeded doubled lines.
31968 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31969 Remove whitespace inside comment.
31970
9e172e30 319712009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31972
31973 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31974 as fallback an equivalent option without depth.
31975
de65ee2b 319762009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31977
31978 Not fail if unable to retrieve C/H/S on LBA disks
31979
473d1e45 31980 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31981 if unable to retrieve C/H/S on LBA disks
31982
b57ea2c9 319832009-06-08 Pavel Roskin <proski@gnu.org>
31984
31985 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
31986 about aliasing.
31987
af361263 319882009-06-08 Felix Zielcke <fzielcke@z-51.de>
31989
31990 * Makefile.in (uninstall): Remove all $lib_DATA files.
31991
4c9ec6b3 319922009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31993
31994 Bugfix: install on partitionless device
31995
31996 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
31997 is a whole disk
31998
e76fc924 319992009-06-08 Felix Zielcke <fzielcke@z-51.de>
32000
32001 * Makefile.in (uninstall): Remove all $include_DATA files.
32002
ba5a0d05 320032009-06-08 Felix Zielcke <fzielcke@z-51.de>
32004
32005 * commands/true.c: New file. Implement the true and false commands.
32006 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32007 (true_mod_SOURCES): New variable.
32008 (true_mod_CFLAGS): Likewise.
32009 (true_mod_LDFLAGS): Likewise.
32010
c8048e32 320112009-06-05 Colin D Bennett <colin@gibibit.com>
32012
32013 Optimized font character lookup using binary search instead of linear
32014 search. Fonts now are required to have the character index ordered by
32015 code point.
32016
32017 * font/font.c (load_font_index): Verify that fonts have ordered
32018 character indices.
32019 (find_glyph): Use binary search instead of linear search to find a
32020 character in a font.
32021
408305be 320222009-06-05 Michael Scherer <misc@mandriva.org>
32023
32024 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32025 uses case sensitive btree.
32026 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32027 only for case insensitive filesystems.
32028
8ee1e0d9 320292009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32030
32031 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32032 * conf/common.rmk (search_mod_CFLAGS): likewise
32033
a9966eb1 320342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32035
473d1e45 32036 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 32037 compensate a compiler bug
32038
9e7100fb 320392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32040
473d1e45 32041 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 32042 instead of '\b'
473d1e45 32043
ede21d71 320442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32045
32046 Definitions for creating asm symbols with Apple's CC
32047
32048 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32049 [APPLE_CC] (VARIABLE): likewise
32050
9dbf7653 320512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32052
32053 Disable lnxboot.img when compiled
32054 with Apple's CC
32055
32056 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32057 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32058 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32059 [! APPLE_CC] (CODE_LENG): skip
32060 [! APPLE_CC] (setup_sects): likewise
32061 [! APPLE_CC]: skip filling
473d1e45 32062
e93cdc3d 320632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32064
32065 Address in trampolines based on 32-bit registers when compiled
32066 with Apple's CC
32067
473d1e45 32068 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 32069 for addresses
32070 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32071
6c688477 320722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32073
32074 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32075
32076 * kern/misc.c [APPLE_CC] (memcpy): new function
32077 [APPLE_CC] (memmove): likewise
32078 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 32079 (memcpy): define alias conditionally on !APPLE_CC
6c688477 32080 (memset): likewise
32081 (abort): likewise
32082 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32083 APPLE_CC are defined
32084 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32085 (grub_assert_fail): make prototype conditional
32086
e37ffc5c 320872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32088
32089 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32090
473d1e45 32091 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32092 grub-macho2img
e37ffc5c 32093 (CLEANFILES): add grub-macho2img
32094 (grub_macho2img_SOURCES): new variable
32095 * kern/i386/pc/startup.S (bss_start): new variable
32096 (bss_end): likewise
32097 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32098 * util/grub-macho2img.c: new file
32099
cf00df31 321002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32101
32102 Use objconv when compiling with Apple's CC
32103
32104 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32105 (efiemu64.o): likewise
32106 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32107 when compiling with Apple's CC
32108 (efiemu64_s.o): likewise
32109 * configure.ac: check for objconv when compiling with Apple's CC
32110 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 32111
d119a20c 321122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32113
32114 Define segment as well as section when compiling with
32115 Apple's CC
32116
32117 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32118 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32119 (efiemu_convert_pointer): likewise
32120 (efiemu_set_virtual_address_map): likewise
32121 (efiemu_convert_pointer): likewise
32122 (efiemu_getcrc32): likewise
32123 (init_crc32_table): likewise
32124 (reflect): likewise
32125 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32126 (GRUB_MOD_DEP): likewise
473d1e45 32127
c8600122 321282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32129
32130 Allow a compilation without -mcmodel=large
32131
32132 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32133 when compiled without -mcmodel=large
473d1e45 32134 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 32135 without -mcmodel=large
473d1e45 32136 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 32137 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 32138
e8df1d4e 321392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32140
32141 Remove nested functions in efiemu core
32142
32143 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 32144
cc6c3ac1 321452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32146
32147 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32148
32149 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32150 temporary storage
473d1e45 32151 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32152 using Apple's CC
cc6c3ac1 32153 (grub_cpu_is_tsc_supported): likewise
32154 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 32155
3e325901 321562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32157
32158 Absolute addressing through constant with Apple's cc
32159
32160 * kern/i386/pc/startup.S: Define necessary constants
32161 and address through it when using ABS with Apple's CC
32162 * boot/i386/pc/diskboot.S: likewise
32163 * boot/i386/pc/boot.S: likewise
32164 * boot/i386/pc/lnxboot.S: likewise
32165 * boot/i386/pc/cdboot.S: likewise
32166 * mmap/i386/pc/mmap_helper.S: likewise
32167 * commands/i386/pc/drivemap_int13h.S: likewise
32168
2b167a72 321692009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32170
32171 Check if compiler is apple cc
32172
32173 * Makefile.in (ASFLAGS): new variable
32174 (TARGET_ASFLAGS): likewise
32175 (TARGET_MODULE_FORMAT): likewise
32176 (TARGET_APPLE_CC): likewise
32177 (OBJCONV): likewise
32178 (TARGET_IMG_CFLAGS): likewise
32179 (TARGET_CPPFLAGS): add includedir
32180 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32181 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32182 Check for linker script only if compiler isn't Apple's CC
32183 (TARGET_MODULE_FORMAT): set
32184 (TARGET_APPLE_CC): likewise
32185 (TARGET_ASFLAGS): likewise
32186 (ASFLAGS): likewise
32187 Check for objcopy only if compiler isn't Apple's CC
32188 Check for BSS symbol only if compiler isn't Apple's CC
32189 * genmk.rb: adapt nm options if we use Apple's utils
32190 * aclocal.m4 (grub_apple_cc): new test
32191 (grub_apple_target_cc): likewise
473d1e45 32192
fb14123e 321932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32194
32195 Simplify sed expressions and improve awk
32196
32197 * Makefile.in (install-local): simplify sed expression
32198 * gencmdlist.sh: likewise
32199 * genmoddep.awk: avoid adding module as a dependency of itself
32200
5b889789 322012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32202
32203 Add missing start symbols
32204
32205 * boot/i386/pc/boot.S: add start
fb14123e 32206 * boot/i386/pc/pxeboot.S: likewise
473d1e45 32207
fd2bf2e3 322082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32209
32210 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 32211
32212 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 32213 (relocate_addresses): consider both r_addend and value at offset
32214 (make_mods_section): zerofill modinfo and header
32215 (convert_elf): write prefix here
473d1e45 32216
5389763d 322172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32218
32219 Use .asciz instead of .string
32220
32221 * i386/pc/diskboot.S: use .asciz instead of .string
32222 * i386/pc/boot.S: likewise
32223 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32224 (GRUB_MOD_NAME): likewise
473d1e45 32225
3eb5ed4e 322262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32227
32228 gfxpayload support
32229
32230 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32231 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32232 (grub_video_setup): remove
32233 (grub_video_set_mode): new prototype
32234 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32235 (vid_mode): remove
32236 (linux_vesafb_res): compile only on PCBIOS
32237 (grub_linux_boot): support gfxpayload
32238 * loader/i386/pc/xnu.c (video_hook): new function
32239 (grub_xnu_set_video): support gfxpayload
32240 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32241 (DEFAULT_VIDEO_HEIGHT): likewise
32242 (DEFAULT_VIDEO_FLAGS): likewise
32243 (DEFAULT_VIDEO_MODE): new definition
32244 (video_hook): new function
32245 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 32246 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 32247 loading xnu
32248 * video/video.c (grub_video_setup): removed
473d1e45 32249 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 32250 grub_video_setup
32251
4b0e1143 322522009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32253
32254 Avoid calling biosdisk in drivemap
32255
32256 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32257 (revparse_biosdisk): likewise
32258 (list_mappings): derive name from id directly
32259 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 32260
fda6cb98 322612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32262
32263 Script fixes
32264
32265 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32266 (grub_lexer_param): add tokenonhold
32267 (grub_script_create_cmdline): remove cmdline. All callers updated
32268 (grub_script_function_create): make functionname
32269 grub_script_arg. All callers updated
32270 (grub_script_execute_argument_to_string): new prototype
32271 * kern/parser.c (state_transitions): reorder
32272 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 32273 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 32274 make global
32275 (grub_script_execute_cmdline): use new format
32276 * script/sh/function.c (grub_script_function_create): make functionname
32277 grub_script_arg. All callers updated
473d1e45 32278 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 32279 (grub_script_yylex): remove
32280 (grub_script_yylex2): renamed to ...
32281 (grub_script_yylex): ...renamed
32282 parse the expressions like a${b}c
32283 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32284 (GRUB_PARSER_TOKEN_VAR): remove
32285 (GRUB_PARSER_TOKEN_NAME): likewise
32286 ("if"): declare as typeless
32287 ("while"): likewise
32288 ("function"): likewise
32289 ("else"): likewise
32290 ("then"): likewise
32291 ("fi"): likewise
32292 (text): remove
32293 (argument): likewise
32294 (script): accept empty scripts and make exit on error
32295 (arguments): use GRUB_PARSER_TOKEN_ARG
32296 (function): likewise
32297 (command): move error handling to script
32298 (menuentry): move grub_script_lexer_ref before
473d1e45 32299 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 32300 argument. All callers updated
32301
f4448a07 323022009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32303
32304 Prevent GRUB from probing floppies during boot.
32305
32306 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
32307 * commands/search.c (options): Add --no-floppy.
32308 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
32309 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
32310 --no-floppy when searching for UUIDs.
32311
2bf5885a 323122009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32313
32314 Simplify the code duplication in commands/search.c.
32315
32316 * commands/search.c (search_label, search_fs_uuid): Merge into ...
32317 (search_fs): ... this. Update all users.
32318
f6fd460a 323192009-06-03 Felix Zielcke <fzielcke@z-51.de>
32320
32321 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
32322
cbb3c83e 323232009-05-28 Pavel Roskin <proski@gnu.org>
32324
57788cfd 32325 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
32326 Remove the original symlink explicitly.
32327
cbb3c83e 32328 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
32329 just one slash. That's how grub_fshelp_find_file() does it.
32330
cd0d5e30 323312009-05-26 Pavel Roskin <proski@gnu.org>
32332
f0f8bbe2 32333 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
32334 to `str'.
32335
cd0d5e30 32336 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
32337 possibly unused.
32338
8c2cab51 323392009-05-25 Christian Franke <franke@computer.org>
32340
32341 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
32342 register.
32343 (grub_atapi_identify): Add wait after drive select.
32344 (grub_ata_identify): Do more strict status register check before
32345 calling grub_atapi_identify (). Suppress error message if status
32346 register is 0x00 after command failure. Add status register
32347 check after PIO read to avoid bogus identify due to stuck DRQ.
32348 Thanks to Pavel Roskin for testing.
32349 (grub_device_initialize): Remove unsafe status register check.
32350 Thanks to 'phcoder' for problem report and patch.
32351 Prevent sign extension in debug message.
32352
230c0ad6 323532009-05-23 Colin D Bennett <colin@gibibit.com>
32354
32355 Cleaned up `include/grub/normal.h'. Grouped prototypes by
32356 definition file, and functions defined in `normal/menu.c' have had
32357 their prototypes moved to `include/grub/menu.h' for consistency.
32358
32359 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
32360 from normal.h.
32361 (grub_menu_get_entry): Likewise.
32362 (grub_menu_get_timeout): Likewise.
32363 (grub_menu_set_timeout): Likewise.
32364 (grub_menu_execute_entry): Likewise.
32365 (grub_menu_execute_with_fallback): Likewise.
32366 (grub_menu_entry_run): Likewise.
32367
32368 * include/grub/normal.h: Re-ordered and grouped function
32369 prototypes by file that the function is defined in.
32370 (grub_menu_execute_callback): Removed; moved to menu.h.
32371 (grub_menu_get_entry): Likewise.
32372 (grub_menu_get_timeout): Likewise.
32373 (grub_menu_set_timeout): Likewise.
32374 (grub_menu_execute_entry): Likewise.
32375 (grub_menu_execute_with_fallback): Likewise.
32376 (grub_menu_entry_run): Likewise.
32377 (grub_menu_addentry): Renamed from this ...
32378 (grub_normal_add_menu_entry): ... to this.
32379
32380 * normal/main.c (grub_menu_addentry): Renamed from this ...
32381 (grub_normal_add_menu_entry): ... to this.
32382
32383 * script/sh/execute.c (grub_script_execute_menuentry): Update
32384 reference to renamed grub_menu_addentry function.
32385
861f03a5 323862009-05-23 Felix Zielcke <fzielcke@z-51.de>
32387
32388 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
32389
96b1619a 323902009-05-22 Pavel Roskin <proski@gnu.org>
32391
bf6a5fb2 32392 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
32393 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
32394 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
32395 compiling for the i386 targets, but not for the utilities.
32396
96b1619a 32397 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
32398 to grub_uint8_t.
32399 (grub_root_drive): Likewise.
32400 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
32401 remove alignment.
32402 (grub_root_drive): Change size to byte.
32403 (grub_start_addr): Remove.
32404 (grub_end_addr): Likewise.
32405 (grub_apm_bios_info): Likewise.
32406
b729776b 324072009-05-21 Felix Zielcke <fzielcke@z-51.de>
32408
32409 * normal/i386: Remove.
32410 * normal/powerpc: Likewise.
32411 * normal/sparc64: Likewise.
32412 * normal/x86_64: Likewise.
32413
0a15ce80 324142009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
32415
32416 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 32417 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 32418 * loader/i386/xnu_helper.S: Likewise
d6da58e6 32419
33db9015 324202009-05-18 Colin D Bennett <colin@gibibit.com>
32421
d6da58e6 32422 Display error messages when parsing a Lua statement fails.
32423 Previously, executing a syntactically invalid statement like
32424 ")foo" or "bar;" would silently fail.
33db9015 32425
32426 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 32427 (grub_lua_parse_line): Improved reporting of Lua parser and
32428 execution errors.
33db9015 32429
46422c89 324302009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32431
32432 Remove -Werror which causes build to fail on some systems
32433
32434 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
32435 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
32436 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 32437
22f53a96 324382009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32439
32440 trampoline for linux on 64-bit platform
32441
18f547ad 32442 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
32443 loader/i386/efi/linux_trampoline.S
32444 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 32445 declaration
d6da58e6 32446 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
32447 here
22f53a96 32448 * loader/i386/linux_trampoline.S: moved here
d6da58e6 32449 * loader/i386/efi/linux.c (allocate_pages): reserve space for
32450 trampoline
22f53a96 32451 (jumpvector): removed
32452 (grub_linux_trampoline_start): new declaration
32453 (grub_linux_trampoline_end): likewise
32454 (grub_linux_boot): use trampoline when on 64-bit platform
32455 * loader/i386/linux.c: likewise
32456
cb5a0f40 324572009-05-16 Pavel Roskin <proski@gnu.org>
32458
32459 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
32460 const to avoid a warning.
32461 (grub_lua_setenv): Likewise.
32462 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
32463 lmsg to fix a warning.
32464
334f2c28 324652009-05-16 Felix Zielcke <fzielcke@z-51.de>
32466
32467 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 32468 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32469 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
32470 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32471 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32472 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32473 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32474 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 32475
59e5d3ec 324762009-05-16 Felix Zielcke <fzielcke@z-51.de>
32477
32478 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
32479
9d87a1ba 324802009-05-16 Bean <bean123ch@gmail.com>
32481
32482 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
32483 (lua_mod_SOURCES): New variable.
32484 (lua_mod_CFLAGS): Likewise.
32485 (lua_mod_LDFLAGS): Likewise.
32486
32487 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
32488 (setjmp_mod_SOURCES): New variable.
32489 (setjmp_mod_CFLAGS): Likewise.
32490 (setjmp_LDFLAGS): Likewise.
32491
32492 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
32493 (setjmp_mod_SOURCES): New variable.
32494 (setjmp_mod_CFLAGS): Likewise.
32495 (setjmp_LDFLAGS): Likewise.
32496
32497 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32498 (setjmp_mod_SOURCES): New variable.
32499 (setjmp_mod_CFLAGS): Likewise.
32500 (setjmp_LDFLAGS): Likewise.
32501
32502 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32503 (setjmp_mod_SOURCES): New variable.
32504 (setjmp_mod_CFLAGS): Likewise.
32505 (setjmp_LDFLAGS): Likewise.
32506
32507 * normal/i386/setjmp.S: Moved from here ...
32508 * lib/i386/setjmp.S: ... Moved here
32509 * normal/x86_64/setjmp.S: Moved from here ...
32510 * lib/x86_64/setjmp.S: ... Moved here
32511 * normal/powerpc/setjmp.S: Moved from here ...
32512 * lib/powerpc/setjmp.S: ... Moved here
32513 * normal/sparc64/setjmp.S: Moved from here ...
32514 * lib/sparc64/setjmp.S: ... Moved here
32515
32516 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
32517 returns_twice in mingw.
32518
32519 * script/lua/grub_lib.c: New file.
32520 * script/lua/grub_lib.h: Likewise.
32521 * script/lua/grub_lua.h: Likewise.
32522 * script/lua/grub_main.c: Likewise.
32523 * script/lua/lapi.c: Likewise.
32524 * script/lua/lapi.h: Likewise.
32525 * script/lua/lauxlib.c: Likewise.
32526 * script/lua/lauxlib.h: Likewise.
32527 * script/lua/lbaselib.c: Likewise.
32528 * script/lua/lcode.c: Likewise.
32529 * script/lua/lcode.h: Likewise.
32530 * script/lua/ldblib.c: Likewise.
32531 * script/lua/ldebug.c: Likewise.
32532 * script/lua/ldebug.h: Likewise.
32533 * script/lua/ldo.c: Likewise.
32534 * script/lua/ldo.h: Likewise.
32535 * script/lua/ldump.c: Likewise.
32536 * script/lua/lfunc.c: Likewise.
32537 * script/lua/lfunc.h: Likewise.
32538 * script/lua/lgc.c: Likewise.
32539 * script/lua/lgc.h: Likewise.
32540 * script/lua/linit.c: Likewise.
32541 * script/lua/liolib.c: Likewise.
32542 * script/lua/llex.c: Likewise.
32543 * script/lua/llex.h: Likewise.
32544 * script/lua/llimits.h: Likewise.
32545 * script/lua/lmathlib.c: Likewise.
32546 * script/lua/lmem.c: Likewise.
32547 * script/lua/lmem.h: Likewise.
32548 * script/lua/loadlib.c: Likewise.
32549 * script/lua/lobject.c: Likewise.
32550 * script/lua/lobject.h: Likewise.
32551 * script/lua/lopcodes.c: Likewise.
32552 * script/lua/lopcodes.h: Likewise.
32553 * script/lua/loslib.c: Likewise.
32554 * script/lua/lparser.c: Likewise.
32555 * script/lua/lparser.h: Likewise.
32556 * script/lua/lstate.c: Likewise.
32557 * script/lua/lstate.h: Likewise.
32558 * script/lua/lstring.c: Likewise.
32559 * script/lua/lstring.h: Likewise.
32560 * script/lua/lstrlib.c: Likewise.
32561 * script/lua/ltable.c: Likewise.
32562 * script/lua/ltable.h: Likewise.
32563 * script/lua/ltablib.c: Likewise.
32564 * script/lua/ltm.c: Likewise.
32565 * script/lua/ltm.h: Likewise.
32566 * script/lua/lua.h: Likewise.
32567 * script/lua/luaconf.h: Likewise.
32568 * script/lua/lualib.h: Likewise.
32569 * script/lua/lundump.c: Likewise.
32570 * script/lua/lundump.h: Likewise.
32571 * script/lua/lvm.c: Likewise.
32572 * script/lua/lvm.h: Likewise.
32573 * script/lua/lzio.c: Likewise.
32574 * script/lua/lzio.h: Likewise.
32575
5e898c9d 325762009-05-16 Bean <bean123ch@gmail.com>
32577
32578 * include/grub/kernel.h (grub_module_header_types): Add type
32579 OBJ_TYPE_CONFIG.
32580
32581 * kern/main.c (grub_load_config): New function.
32582 (grub_main): Call grub_load_config to read boot config.
32583
32584 * grub-mkimage (generate_image): New parameter config_path.
32585 (options): New option --config.
32586 (main): Parse --config option, and pass it to generate_image.
32587
cf353a47 325882009-05-14 Christian Franke <franke@computer.org>
32589
32590 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
32591 This fixes build on Cygwin.
32592
3834887f 325932009-05-14 Pavel Roskin <proski@gnu.org>
32594
32595 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
32596 jump. This saves two bytes, so the typical case of 2 swapped
32597 drives would fit 32 bytes.
32598
8090fc01 325992009-05-13 Pavel Roskin <proski@gnu.org>
32600
ac963883 32601 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
32602 grub_uint32_t to avoid a warning.
32603
8090fc01 32604 * loader/i386/linux.c (allocate_pages): When assigning
32605 real_mode_mem, cast through grub_size_t to fix a warning. The
32606 code already makes sure that the value would fit a pointer.
32607 (grub_linux_setup_video): Cast render_target->data to
32608 grub_size_t to fix a warning.
32609
18f547ad 326102009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 32611
32612 * commands/i386/pc/drivemap.c: New file - implement drivemap
32613 command.
32614 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
32615 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
32616
6f6a8b28 326172009-05-13 Pavel Roskin <proski@gnu.org>
32618
32619 * util/i386/pc/grub-setup.c (setup): Remove unused variable
32620 embedding_area_exists.
32621
15fbf4c4 326222009-05-13 Robert Millan <rmh.grub@aybabtu.com>
32623
32624 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
32625 it easier to understand / work with.
59978c8a 32626 Improve warning messages for cases where there's no embedding area,
32627 or when it is too small (or core.img too large).
15fbf4c4 32628
238e871f 326292009-05-13 Pavel Roskin <proski@gnu.org>
32630
0ab3a9a4 32631 * loader/i386/pc/multiboot2.c: Add necessary includes for
32632 grub_multiboot2_real_boot().
32633
a2c8c5f8 32634 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
32635 PX record is always little-endian. We only need the lower 2
32636 bytes of the mode.
32637
faec96af 32638 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
32639 facilitate code reuse.
32640 (grub_cpio_mount): Use "struct head", not a char buffer. This
32641 fixes a warning reported by gcc 4.4.
32642
238e871f 32643 * kernel/disk.c (grub_disk_read): Use void pointer for the
32644 buffer.
32645 (grub_disk_write): Use const void pointer for the buffer.
32646 Adjust all callers. Remove unnecessary casts.
32647
901d2f0c 326482009-05-10 Robert Millan <rmh.grub@aybabtu.com>
32649
32650 * util/i386/pc/grub-install.in: Update copyright year.
32651
18f547ad 326522009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 32653
32654 gptsync
32655
32656 * commands/gptsync.c: new file
32657 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
32658 (gptsync_mod_SOURCES): new variable
32659 (gptsync_mod_CFLAGS): likewise
32660 (gptsync_mod_LDFLAGS): likewise
18f547ad 32661 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 32662 new definition
32663 (GRUB_PC_PARTITION_TYPE_HFS): likewise
32664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
32665 * conf/i386-ieee1275.rmk: likewise
32666 * conf/i386-pc.rmk: likewise
32667 * conf/powerpc-ieee1275.rmk: likewise
32668
b4ba690a 326692009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
32670
32671 Fixed grub-emu
32672
32673 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
32674 (grub_dl_ref): likewise
32675
317e1a44 326762009-05-08 Robert Millan <rmh.grub@aybabtu.com>
32677
32678 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
32679 split in two functions (one for msdos and one for gpt).
32680
041b8094 326812009-05-08 Pavel Roskin <proski@gnu.org>
32682
752473c2 32683 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
32684 not modified.
32685
041b8094 32686 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
32687 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
32688 Initialize them with -1. Add sanity check for bad1. Eliminate
32689 nerr variable.
32690
172800ce 326912009-05-08 David S. Miller <davem@davemloft.net>
32692
32693 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
32694
29aa5e81 326952009-05-06 Robert Millan <rmh.grub@aybabtu.com>
32696
32697 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 32698 existence.
29aa5e81 32699
96613b62 327002009-05-05 Felix Zielcke <fzielcke@z-51.de>
32701
32702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 32703 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 32704
eef73c8a 327052009-05-05 David S. Miller <davem@davemloft.net>
32706
32707 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
32708
119494b5 327092009-05-05 Pavel Roskin <proski@gnu.org>
32710
32711 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
32712 of grub_dl_ref() and grub_dl_unref().
32713 * commands/parttool.c: Remove preprocessor conditionals around
32714 grub_dl_ref() and grub_dl_unref().
32715 * fs/affs.c: Likewise.
32716 * fs/afs.c: Likewise.
32717 * fs/cpio.c: Likewise.
32718 * fs/ext2.c: Likewise.
32719 * fs/fat.c: Likewise.
32720 * fs/hfs.c: Likewise.
32721 * fs/hfsplus.c: Likewise.
32722 * fs/iso9660.c: Likewise.
32723 * fs/jfs.c: Likewise.
32724 * fs/minix.c: Likewise.
32725 * fs/ntfs.c: Likewise.
32726 * fs/reiserfs.c: Likewise.
32727 * fs/sfs.c: Likewise.
32728 * fs/udf.c: Likewise.
32729 * fs/ufs.c: Likewise.
32730 * fs/xfs.c: Likewise.
32731 * include/grub/dl.h: Likewise.
32732 * loader/xnu.c: Likewise.
32733
de5fd76e 327342009-05-04 Pavel Roskin <proski@gnu.org>
32735
32736 * commands/acpi.c: Remove unused variable my_mod.
32737 * partmap/amiga.c: Likewise.
32738 * partmap/apple.c: Likewise.
32739 * partmap/gpt.c: Likewise.
32740 * partmap/pc.c: Likewise.
32741 * partmap/sun.c: Likewise.
32742 * term/gfxterm.c: Likewise.
32743 * term/i386/pc/vesafb.c: Likewise.
32744 * term/i386/pc/vga.c: Likewise.
32745
983598ad 327462009-05-04 David S. Miller <davem@davemloft.net>
32747
32748 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
32749 pointer args to grub_ieee1275_get_property().
32750
8aadec43 32751 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
32752
9554b15e 32753 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
32754 devices, and do not traverse down under controller nodes.
32755
67e23c90 32756 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
32757 (grub_ofdisk_open): Use it to un-escape "," characters.
32758 * kern/disk.c (find_part_sep): New.
32759 (grub_disk_open): Use it to find the first non-escaped ','
32760 character in the disk name.
32761 * util/ieee1275/devicemap.c (escape_of_path): New.
32762 (grub_util_emit_devicemap_entry): Use it.
32763 * util/sparc64/ieee1275/grub-install.in: Update script to
32764 strip partition specifiers properly by not triggering on
32765 '\' escaped ',' characters.
32766
74bfdd2f 327672009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32768
32769 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
32770 to 0x300.
32771 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
32772 resolutions.
32773 (linux_vesafb_modes): Add a lot of additional modes to the list (based
32774 on documentation from Wikipedia).
32775
4241d2b1 327762009-05-04 Pavel Roskin <proski@gnu.org>
32777
32778 * disk/ata.c: Spelling fixes.
32779 * disk/raid.c: Likewise.
32780 * disk/usbms.c: Likewise.
32781 * disk/dmraid_nvidia.c: Likewise.
32782 * kern/ieee1275/openfw.c: Likewise.
32783 * kern/ieee1275/init.c: Likewise.
32784 * kern/ieee1275/cmain.c: Likewise.
32785 * boot/i386/pc/cdboot.S: Likewise.
32786 * video/readers/png.c: Likewise.
32787 * video/i386/pc/vbe.c: Likewise.
32788 * fs/udf.c: Likewise.
32789 * fs/hfs.c: Likewise.
32790 * fs/reiserfs.c: Likewise.
32791 * efiemu/runtime/efiemu.c: Likewise.
32792 * efiemu/main.c: Likewise.
32793 * efiemu/mm.c: Likewise.
32794 * include/grub/elf.h: Likewise.
32795 * include/grub/xnu.h: Likewise.
32796 * include/grub/usbdesc.h: Likewise.
32797 * include/grub/usb.h: Likewise.
32798 * include/grub/script_sh.h: Likewise.
32799 * include/grub/lib/LzmaEnc.h: Likewise.
32800 * include/grub/efiemu/efiemu.h: Likewise.
32801 * include/grub/command.h: Likewise.
32802 * normal/menu.c: Likewise.
32803 * normal/main.c: Likewise.
32804 * normal/datetime.c: Likewise.
32805 * bus/usb/uhci.c: Likewise.
32806 * mmap/i386/uppermem.c: Likewise.
32807 * mmap/mmap.c: Likewise.
32808 * commands/acpi.c: Likewise.
32809 * commands/test.c: Likewise.
32810 * partmap/apple.c: Likewise.
32811 * font/font.c: Likewise.
32812 * loader/sparc64/ieee1275/linux.c: Likewise.
32813 * loader/macho.c: Likewise.
32814 * loader/i386/bsd_trampoline.S: Likewise.
32815 * loader/i386/bsd.c: Likewise.
32816 * loader/xnu.c: Likewise.
32817 * term/i386/pc/vesafb.c: Likewise.
32818 * term/usb_keyboard.c: Likewise.
32819 * util/resolve.c: Likewise.
32820 * util/getroot.c: Likewise.
32821
0cfc0083 328222009-05-04 Felix Zielcke <fzielcke@z-51.de>
32823
32824 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32825
7c1d00cd 328262009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32827
32828 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32829 build error.
32830
b01f0548 328312009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32832
32833 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32834 parameter only available on BIOS.
32835
ecc3eb22 328362009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32837
32838 Removed wrong semicolon in declaration
32839
32840 * grub/misc.h (grub_dprintf): remove semicolon
32841
112972a9 328422009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32843
32844 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32845 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
32846 is done by grub_cmd_linux() now).
32847 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
32848 restore video to text mode.
32849 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
32850 indicates lack of "vga=" parameter. "vga=0" is mapped to
32851 `GRUB_LINUX_VID_MODE_NORMAL'.
32852
afd5c115 328532009-05-04 Felix Zielcke <fzielcke@z-51.de>
32854
32855 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
32856 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
32857 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 32858 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 32859 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
32860 `grub_script.tab.c'.
32861
32862 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32865 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32867
faa517ce 32868 * Makefile.in: Remove duplicated 2008 in Copyright line.
32869
ae0c0bdc 328702009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32871
473d1e45 32872 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32873 unconditionally.
32874 * include/grub/util/misc.h (grub_util_warn): New declaration.
32875
32876 * util/i386/pc/grub-install.in: Understand --force and pass it down
32877 to grub-setup.
32878
32879 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32880 down to setup().
32881 (setup): Improve error messages and add warnings when requested to
32882 install in odd layouts. Refuse to install using blocklists unless
32883 --force was set.
32884
18f547ad 328852009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32886
32887 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32888
6d260daa 328892009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32890
32891 Updated copyright year
32892
32893 * fs/hfsplus.c: updated copyright year
18f547ad 32894
69f853f8 328952009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32896
32897 HFS+ UUID
32898
18f547ad 32899 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32900 in the space previously used by unused3
32901 (grub_hfsplus_uuid): new function
32902 (grub_hfsplus_fs): added uuid field
32903
4c402e73 329042009-05-03 Pavel Roskin <proski@gnu.org>
32905
32906 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32907 suppress warnings. It's no longer needed.
32908 * disk/host.c: Likewise.
32909 * disk/ata_pthru.c: Likewise.
32910 * disk/loopback.c: Likewise.
32911 * hook/datehook.c: Likewise.
32912 * parttool/pcpart.c: Likewise.
32913 * fs/i386/pc/pxe.c: Likewise.
32914 * fs/ntfscomp.c: Likewise.
32915 * efiemu/main.c: Likewise.
32916 * mmap/mmap.c: Likewise.
32917 * commands/crc.c: Likewise.
32918 * commands/hexdump.c: Likewise.
32919 * commands/hdparm.c: Likewise.
32920 * commands/acpi.c: Likewise.
32921 * commands/echo.c: Likewise.
32922 * commands/minicmd.c: Likewise.
32923 * commands/blocklist.c: Likewise.
32924 * commands/memrw.c: Likewise.
32925 * commands/loadenv.c: Likewise.
32926 * commands/usbtest.c: Likewise.
32927 * commands/lsmmap.c: Likewise.
32928 * commands/boot.c: Likewise.
32929 * commands/parttool.c: Likewise.
32930 * commands/configfile.c: Likewise.
32931 * commands/search.c: Likewise.
32932 * commands/ieee1275/suspend.c: Likewise.
32933 * commands/cat.c: Likewise.
32934 * commands/i386/pc/pxecmd.c: Likewise.
32935 * commands/i386/pc/play.c: Likewise.
32936 * commands/i386/pc/halt.c: Likewise.
32937 * commands/i386/pc/vbeinfo.c: Likewise.
32938 * commands/i386/pc/vbetest.c: Likewise.
32939 * commands/lspci.c: Likewise.
32940 * commands/date.c: Likewise.
32941 * commands/handler.c: Likewise.
32942 * commands/ls.c: Likewise.
32943 * commands/test.c: Likewise.
32944 * commands/cmp.c: Likewise.
32945 * commands/efi/loadbios.c: Likewise.
32946 * commands/efi/fixvideo.c: Likewise.
32947 * commands/halt.c: Likewise.
32948 * commands/help.c: Likewise.
32949 * commands/reboot.c: Likewise.
32950 * hello/hello.c: Likewise.
32951 * script/sh/main.c: Likewise.
32952 * loader/xnu.c: Likewise.
32953 * term/terminfo.c: Likewise.
32954 * term/i386/pc/serial.c: Likewise.
32955 * term/usb_keyboard.c: Likewise.
32956
515b5079 329572009-05-03 David S. Miller <davem@davemloft.net>
32958
32959 * normal/menu.c: Include grub/parser.h
32960
dfc31a22 329612009-05-03 Pavel Roskin <proski@gnu.org>
32962
2fee74f1 32963 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32964 not char*.
32965 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32966 Suggested by Javier Martín <lordhabbit@gmail.com>
32967
dfc31a22 32968 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32969 efiemu??.o doesn't exist.
32970 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32971 copying.
32972
18f547ad 329732009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32974
32975 FreeBSD 64-bit support
32976
18f547ad 32977 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32978 and loader/i386/bsd_trampoline.S
32979 (bsd_mod_ASFLAGS): new variable
32980 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32981 (FREEBSD_MODTYPE_KERNEL64): likewise
32982 (grub_bsd64_trampoline_start): likewise
32983 (grub_bsd64_trampoline_end): likewise
32984 (grub_bsd64_trampoline_selfjump): likewise
32985 (grub_bsd64_trampoline_gdt): likewise
32986 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
32987 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
32988 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
32989 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 32990 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 32991 of "attrib" member
32992 * loader/i386/bsd_pagetable.c: new file
32993 * loader/i386/bsd_trampoline.S: likewise
32994 * loader/i386/bsd.c (ALIGN_QWORD): new macro
32995 (ALIGN_VAR): likewise
32996 (entry_hi): new variable
32997 (kern_end_mdofs): likewise
32998 (is_64bit): likewise
32999 (grub_freebsd_add_meta): use ALIGN_VAR
33000 (grub_e820_mmap): new declaration
33001 (grub_freebsd_add_mmap): new function
33002 (grub_freebsd_add_meta_module): support 64 bit kernels
33003 (grub_freebsd_list_modules): use ALIGN_VAR
33004 (gdt_descriptor): new declaration
33005 (grub_freebsd_boot): support 64 bit kernels
33006 (grub_bsd_elf64_hook): new function
33007 (grub_bsd_load_elf): support elf64
33008
038c5720 330092009-05-03 Bean <bean123ch@gmail.com>
33010
33011 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33012 after we get the result of if statement.
33013
fc45fb58 330142009-05-03 Bean <bean123ch@gmail.com>
33015
33016 * Makefile.in (enable_efiemu): New variable.
33017
33018 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33019 set.
33020 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33021 path.
33022 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33023 path, add -mno-red-zone option.
33024 (efiemu64_s.o): Likewise.
33025 (efiemu64.o): Use macro $^ for source file.
33026
33027 * configure.ac (--enable-efiemu): New option.
33028
bbee0f2b 330292009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33030
33031 xnu support
33032
33033 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33034 (pkglib_MODULES): add xnu.mod
33035 (xnu_mod_SOURCES): new variable
33036 (xnu_mod_CFLAGS): likewise
33037 (xnu_mod_LDFLAGS): likewise
33038 (xnu_mod_ASFLAGS): likewise
33039 * conf/i386-pc.rmk: likewise
33040 * conf/x86_64-efi.rmk: likewise
7dd4a573 33041 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 33042 new declaration
33043 * include/grub/i386/macho.h: new file
33044 * include/grub/i386/xnu.h: likewise
33045 * include/grub/macho.h: likewise
33046 * include/grub/machoload.h: likewise
33047 * include/grub/x86_64/macho.h: likewise
33048 * include/grub/x86_64/xnu.h: likewise
33049 * include/grub/xnu.h: likewise
33050 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33051 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33052 * loader/i386/efi/xnu.c: new file
33053 * loader/i386/pc/xnu.c: likewise
33054 * loader/i386/xnu.c: likewise
33055 * loader/i386/xnu_helper.S: likewise
33056 * loader/macho.c: likewise
33057 * loader/xnu.c: likewise
33058 * loader/xnu_resume.c: likewise
33059 * util/grub-dumpdevtree: likewise
33060 * include/grub/i386/pit.h: include grub/err.h
33061 (grub_pit_wait): export
33062 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 33063
5caf964d 330642009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33065
33066 Efiemu
7dd4a573 33067
5caf964d 33068 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 33069 _linux_efi, linux_efi.
33070 new files in grub-emu
5caf964d 33071 new targets efiemu32.o and efiemu64.o
33072 * loader/linux_normal_efiemu.c: likewise
33073 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 33074 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 33075 files to copy
33076 * include/grub/autoefi.h: new file
7dd4a573 33077 * include/grub/i386/efiemu.h: likewise
5caf964d 33078 * include/grub/i386/pc/efiemu.h: likewise
33079 * include/grub/efi/api.h: add LL suffix when necessary
33080 new definitions relating to tables
33081 * include/grub/efiemu/efiemu.h: new file
33082 * include/grub/efiemu/runtime.h: likewise
33083 * efiemu/prepare.c: likewise
33084 * efiemu/loadcore_common.c: likewise
33085 * efiemu/loadcore64.c: likewise
33086 * efiemu/runtime/efiemu.sh: likewise
33087 * efiemu/runtime/efiemu.S: likewise
33088 * efiemu/runtime/efiemu.c: likewise
33089 * efiemu/runtime/config.h: likewise
33090 * efiemu/prepare32.c: likewise
33091 * efiemu/main.c: likewise
33092 * efiemu/modules/pnvram.c: likewise
33093 * efiemu/modules/i386: likewise
33094 * efiemu/modules/i386/pc: likewise
33095 * efiemu/modules/acpi.c: likewise
33096 * efiemu/i386/pc/cfgtables.c: likewise
33097 * efiemu/i386/loadcore64.c: likewise
33098 * efiemu/i386/loadcore32.c: likewise
33099 * efiemu/prepare64.c: likewise
33100 * efiemu/loadcore.c: likewise
33101 * efiemu/symbols.c: likewise
33102 * efiemu/mm.c: likewise
33103 * efiemu/loadcore32.c: likewise
7dd4a573 33104
331052009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 33106
33107 ACPI spoofing
33108
33109 * commands/acpi.c: new file
33110 * commands/i386/pc/acpi.c: likewise
33111 * commands/efi/acpi.c: likewise
33112 * include/grub/acpi.h: likewise
33113 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33114 (acpi_mod_SOURCES): new variable
33115 (acpi_mod_CFLAGS): likewise
33116 (acpi_mod_LDFLAGS): likewise
33117 * conf/i386-efi.rmk: likewise
33118 * conf/x86_64-efi.rmk: likewise
33119
7dd4a573 331202009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 33121
33122 Missing part from mmap patch
33123
33124 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33125 (grub_mmap_unregister)
33126 (grub_mmap_free_and_unregister): use grub_mmap_register
33127
7dd4a573 331282009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 33129
33130 Mmap services
33131
33132 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33133 * loader/i386/linux.c (find_mmap_size): likewise
33134 (allocate_pages): likewise
33135 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33136 (grub_fill_multiboot_mmap): likewise
33137 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33138 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33139 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33140 (OPENBSD_MMAP_RESERVED): likewise
33141 * include/grub/i386/pc/memory.h: include grub/memory.h
33142 (grub_lower_mem): removed
33143 (grub_upper_mem): likewise
33144 (GRUB_MACHINE_MEMORY_ACPI): new definition
33145 (GRUB_MACHINE_MEMORY_NVS): likewise
33146 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33147 (GRUB_MACHINE_MEMORY_HOLE): likewise
33148 (grub_machine_mmap_register): likewise
33149 (grub_machine_mmap_unregister): likewise
33150 (grub_machine_get_upper): likewise
33151 (grub_machine_get_lower): likewise
33152 (grub_machine_get_post64): likewise
33153 * include/grub/i386/efi/memory.h: new file
33154 * include/grub/x86_64/efi/memory.h: likewise
33155 * include/grub/efi/memory.h: likewise
33156 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33157 (mmap_mod_SOURCES): new variable
33158 (mmap_mod_LDFLAGS): likewise
33159 (mmap_mod_ASFLAGS): likewise
33160 * conf/i386-coreboot.rmk: likewise
33161 * conf/i386-ieee1275.rmk: likewise
33162 * conf/i386-efi.rmk: likewise
33163 * conf/x86_64-efi.rmk: likewise
33164 * include/grub/types.h (UINT_TO_PTR): new macro
33165 (PTR_TO_UINT32): likewise
33166 (PTR_TO_UINT64): likewise
33167 * include/grub/memory.h: new file
33168 * mmap/i386/pc/mmap.c: likewise
33169 * mmap/i386/pc/mmap_helper.S: likewise
33170 * mmap/i386/uppermem.c: likewise
33171 * mmap/mmap.c: likewise
33172 * mmap/efi/mmap.c: likewise
7dd4a573 33173 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 33174 grub_upper_mem
33175 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33176 (grub_upper_mem): likewise
33177 (grub_machine_init): don't use grub_upper_mem,
33178 make grub_lower_mem local
33179 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33180 grub_mmap_iterate and grub_mmap_get_upper
33181 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33182
d558e6b5 331832009-05-02 Bean <bean123ch@gmail.com>
33184
33185 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33186 script/sh/parser.y.
33187 (pkglib_MODULES): Add normal.mod and sh.mod.
33188 (normal_SOURCES): New variable.
33189 (normal_mod_CFLAGS): Likewise.
33190 (normal_mod_LDFLAGS): Likewise.
33191 (sh_mod_SOURCES): Likewise.
33192 (sh_mod_CFLAGS): Likewise.
33193 (sh_mod_LDFLAGS): Likewise.
33194
33195 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33196 script/sh/lexer.c_DEPENDENCIES.
33197 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33198 kern/rescue_reader.c and kern/rescue_parser.c.
33199 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33200 (grub_emu_SOURCES): Change source files.
33201 (pkglib_MODULES): Remove normal.mod.
33202 (normal_SOURCES): Removed.
33203 (normal_mod_CFLAGS): Likewise.
33204 (normal_mod_LDFLAGS): Likewise.
33205 * conf/i386-coreboot.rmk: Likewise.
33206 * conf/i386-efi.rmk: Likewise.
33207 * conf/i386-ieee1276.rmk: Likewise.
33208 * conf/powerpc-ieee1275.rmk: Likewise.
33209 * conf/sparc64-ieee1275.rmk: Likewise.
33210 * conf/x86_64-efi.rmk: Likewise.
33211
33212 * include/grub/command.h (grub_command_execute): New inline function.
33213
33214 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33215
33216 * include/grub/normal.h: Remove <grub/setjmp.h>.
33217 (grub_fs_module_list): Moved to normal/autofs.c.
33218 (grub_exit_env): Removed.
33219 (grub_command_execute): Likewise.
33220 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33221 parameter script.
33222 (read_command_list): New function declaration.
33223 (read_fs_list): Likewise.
33224
33225 * include/parser.h: Include <grub/reader.h>.
33226 (grub_parser_split_cmdline): Change type of getline parameter.
33227 (grub_parser): New structure.
33228 (grub_parser_class): New variable.
33229 (grub_parser_execute): New function declaration.
33230 (grub_register_rescue_parser): Likewise.
33231 (grub_parser_register): New inline function.
33232 (grub_parser_unregister): Likewise.
33233 (grub_parser_get_current): Likewise.
33234 (grub_parser_set_current): Likewise.
33235
33236 * include/grub/reader.h: New file.
33237 * kern/reader.c: Likewise.
33238 * kern/rescue_parser.c: Likewise.
33239 * kern/rescue_reader.c: Likewise.
33240 * normal/autofs.c: Likewise.
33241 * normal/dyncmd.c: Likewise.
33242
33243 * include/grub/rescue.h: Removed.
33244 * normal/command.h: Likewise.
33245
33246 * include/grub/script.h: Moved to ...
33247 * include/grub/script_sh.h: ... Moved here.
33248 * normal/execute.c: Moved to ...
33249 * script/sh/execute.c: ... Moved here.
33250 * normal/function.c: Moved to ...
33251 * script/sh/function.c: ... Moved here.
33252 * normal/lexer.c: Moved to ...
33253 * script/sh/lexer.c: ... Moved here.
33254 * normal/parser.y: Moved to ...
33255 * script/sh/parser.y: ... Moved here.
33256 * normal/script.c: Moved to ...
33257 * script/sh/script.c: ... Moved here.
33258
33259 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33260 <grub/reader.h>.
33261 (grub_exit_env): Removed.
33262 (fs_module_list): Moved to normal/autofs.c.
33263 (grub_file_getline): Don't handle comment here.
33264 (free_menu): Skip removed field entry->commands.
33265 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33266 script parameter.
33267 (read_config_file): Removed nested parameter, change getline function.
33268 (grub_enter_normal_mode): Removed.
33269 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33270 (read_command_list): Likewise.
33271 (autoload_fs_module): Moved to normal/autofs.c.
33272 (read_fs_list): Likewise.
33273 (reader_nested): New variable.
33274 (grub_normal_execute): Run parser.sh to switch to sh parser.
33275 (grub_cmd_rescue): Removed.
33276 (cmd_normal): Removed.
33277 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33278 rescue command.
33279 (grub_cmdline_run): New function.
33280 (grub_normal_reader_init): Likewise.
33281 (grub_normal_read_line): Likewise.
33282 (grub_env_write_pager): Likewise.
33283 (cmdline): New variable.
33284 (grub_normal_reader): Likewise.
33285 (GRUB_MOD_INIT): Register normal reader and set as current, register
33286 pager hook, register normal command with grub_register_command_prio,
33287 so that it won't show up in command.lst.
33288 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
33289 grub_fs_autoload_hook.
33290
33291 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
33292 (grub_menu_execute_entry): Replace grub_script_execute with
33293 grub_parser_execute, change parameter to grub_command_execute.
33294
33295 * normal/menu_text.c: Remove <grub/script.h>.
33296
33297 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
33298 and <grub/parser.h>.
33299 (run): Change editor_getline to use new parser interface. Change
33300 parameter to grub_command_execute.
33301
33302 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
33303 <grub/reader.h> and <grub/parser.h>.
33304 (grub_load_normal_mode): Execute normal command.
33305 (grub_main): Call grub_register_core_commands,
33306 grub_register_rescue_parser and grub_register_rescue_reader, use
33307 grub_reader_loop to enter input loop.
33308
7dd4a573 33309 * kern/parser.c (grub_parser_split_cmdline): Change type of
33310 getline parameter.
d558e6b5 33311 (grub_parser_class): New variable.
33312 (grub_parser_execute): New function.
33313
33314 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
33315 * loader/multiboot2.c: Likewise.
33316 * loader/sparc64/ieee1275/linux.c: Likewise.
33317
33318 * util/grub-emu.c (read_command_list): New dummy function.
33319
18db813d 333202009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33321
33322 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
33323 count to 16 for CCISS and IDA.
33324
6c67de15 333252009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33326
33327 * normal/menu_text.c (grub_wait_after_message): Print a newline
33328 after waiting for user input.
33329
33330 * loader/i386/linux.c: Include `<grub/normal.h>'.
33331 (grub_cmd_linux): Improve the error message about `ask' mode, by
33332 waiting for user input so it's not missed (we can do this, since
33333 user requested interaction).
33334
d9dc87b0 333352009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33336
33337 Added missing lst to grub-mkrescue
33338
33339 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
33340 and ${input_dir}/parttool.lst
33341
ac8a2baa 333422009-04-30 David S. Miller <davem@davemloft.net>
33343
ad22a610 33344 * util/hostdisk.c (device_is_wholedisk): New function.
33345 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
33346 zero only if device_is_wholedisk() returns true.
33347
6966215d 33348 * util/hostdisk.c (convert_system_partition_to_system_disk):
33349 Handle virtual disk devices named /dev/vdiskX as found on sparc
33350 and powerpc.
33351
ac8a2baa 33352 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
33353 lettered partition specifier is found, convert to numbered.
33354
979b4fb4 333552009-04-29 David S. Miller <davem@davemloft.net>
33356
e2bf39b2 33357 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
33358 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33359
3c64e104 33360 * normal/command.c: Add missing newline at end of file.
33361
979b4fb4 33362 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
33363 warnings.
33364 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
33365 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
33366 grub_ofdisk_read): Likewise, and deal similarly with the fact that
33367 ihandles have a 32-bit type but need to be stored in a "void *".
33368
136d9f82 333692009-04-28 Pavel Roskin <proski@gnu.org>
33370
9459c306 33371 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
33372 not disk. Adjust all dependencies.
2e08a26a 33373 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 33374 grub_disk_close().
33375
136d9f82 33376 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
33377 parent's partition, don't copy it by reference, as it gets freed
33378 on close.
33379
7dd4a573 333802009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 33381
33382 Preboot hooks support
33383
33384 * commands/boot.c (struct grub_preboot_t): new declaration
33385 (preboots_head): new variable
33386 (preboots_tail): likewise
33387 (grub_loader_register_preboot_hook): new function
33388 (grub_loader_unregister_preboot_hook): likewise
33389 (grub_loader_set): launch preboot hooks
33390 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
33391 (grub_loader_register_preboot_hook): new declaration
33392 (grub_loader_unregister_preboot_hook): likewise
33393
5af922b5 333942009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33395
33396 Warning fix
33397
7dd4a573 33398 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 33399 calling grub_dprintf
33400
a5562c30 334012009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
33402
33403 Bug and warning fixes
33404
7dd4a573 33405 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 33406 declaration
33407 * commands/test.c (test_parse): fixed bug with file tests and corrected
33408 declaration of find_file
33409
4006f85c 334102009-04-26 Pavel Roskin <proski@gnu.org>
33411
33412 * Makefile.in: Don't install empty manual pages if help2man is
33413 missing. Use help2man option for output, not shell redirection.
33414
5c77c3de 334152009-04-26 David S. Miller <davem@davemloft.net>
33416
33417 * util/grub-mkdevicemap.c (make_device_map): Add missing
33418 NESTED_FUNC_ATTR to process_device().
33419
033b10a8 334202009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33421
33422 Test command
33423
33424 * commands/test.c: rewritten to use bash-like test
33425
e4343593 334262009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33427
33428 Parttool autoloading and improvements
33429
7dd4a573 33430 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 33431 (parttool.lst): new target
33432 * genmk.rb: generate parttool-*
33433 (CLEANFILES): add #{parttool}
33434 (PARTTOOLFILES): new variable
33435 * genparttoollist.sh: new file
7dd4a573 33436 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 33437 (grub_pcpart_type): likewise
33438 * commands/parttool.c (helpmsg): new variable
33439 (grub_cmd_parttool): output help if not enough arguments are supplied
33440 autoload modules
33441 (GRUB_MOD_INIT(parttool)): use helpmsg
33442
0d312500 334432009-04-24 David S. Miller <davem@davemloft.net>
33444
7dd4a573 33445 Avoiding opening same device multiple times in device iterator.
0d312500 33446
33447 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 33448 and use it to build a list of partitions in iterate_disk() and
0d312500 33449 iterate_partition().
33450
ac20caff 33451 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
33452 on disk->data.
33453
0dcf7495 33454 * disk/ieee1275/nand.c (grub_nand_iterate): Return
33455 grub_devalias_iterate() result instead of unconditional 0.
33456 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
33457 Also, capture hook return value, either directly or via
33458 grub_children_iterate(), and propagate to caller.
33459 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
33460 grub_children_iterate): Return value is now 'int' instead of
33461 'grub_err_t'.
33462 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
33463 like a proper iterator, stopping when hooks return non-zero.
33464 (grub_devalias_iterate): Likewise.
33465
c8c08833 334662009-04-23 David S. Miller <davem@davemloft.net>
33467
33468 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
33469
f01005a8 334702009-04-22 David S. Miller <davem@davemloft.net>
33471
33472 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
33473 is larger than address_cells, use that value for address_cells too.
33474
4e8269da 33475 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
33476 IEEE1275_MAX_PATH_LEN): Define.
33477 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
33478 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
33479 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
33480 'devtype'. Explicitly NULL terminate devalias expansion.
33481
a1447506 33482 * util/sparc64/ieee1275/misc.c: New file.
33483 * util/sparc64/ieee1275/grub-setup.c: New file.
33484 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
33485 * util/sparc64/ieee1275/grub-mkimage.c: New file.
33486 * util/sparc64/ieee1275/grub-install.in: New file.
33487 * util/ieee1275/ofpath.c: New file.
33488 * util/ieee1275/devicemap.c: New file.
33489 * util/devicemap.c: New file.
33490 * util/deviceiter.c: New file.
33491 * kern/sparc64/ieee1275/init.c: New file.
33492 * include/grub/util/ofpath.h: New file.
33493 * include/grub/util/deviceiter.h: New file.
33494 * util/grub-mkdevicemap.c: Include deviceiter.h.
33495 Implement using grub_util_emit_devicemap_entry and
33496 grub_util_iterate_devices.
33497 * conf/i386-corebook.rmk: Build util/deviceiter.c and
33498 util/devicemap.c into grub-mkdevicemap
33499 * conf/i386-efi.rmk: Likewise.
33500 * conf/i386-ieee1275.rmk: Likewise.
33501 * conf/i386-pc.rmk: Likewise.
33502 * conf/powerpc-ieee1275.rmk: Likewise.
33503 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
33504 images and installation utilities. Build kernel as image
33505 instead of as elf binary. Use common rules as much as possible.
33506
7dd4a573 335072009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 33508
33509 Correct GPT definition
33510
7dd4a573 33511 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 33512 of "attrib" member
33513
c6c5219f 335142009-04-19 Felix Zielcke <fzielcke@z-51.de>
33515
33516 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
33517
0552ff9f 335182009-04-19 David S. Miller <davem@davemloft.net>
33519
33520 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
33521 (grub_rescue_cmd_linux): Rename to...
33522 (grub_cmd_linux): and fix prototype.
33523 (grub_rescue_cmd_initrd): Rename to...
33524 (grub_cmd_initrd): and fix prototype.
33525 (cmd_linux, cmd_initrd): New.
33526 (GRUB_MOD_INIT(linux)): Use grub_register_command().
33527 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
33528
d1a282fc 335292009-04-17 Pavel Roskin <proski@gnu.org>
33530
07c5039f 33531 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
33532 format.
33533 (grub_ohci_transfer): Likewise.
33534
b012002d 33535 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
33536
1bc09c35 33537 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
33538 return without a value. Fix inconsistent indentation.
33539
e0ff9126 33540 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
33541 match struct grub_fs.
33542
d1a282fc 33543 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
33544 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
33545 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33546 * commands/lspci.c (grub_lspci_iter): Likewise.
33547
a96df3f2 335482009-04-16 Bean <bean123ch@gmail.com>
33549
33550 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
33551 value.
33552
41bb0fe9 335532009-04-15 Pavel Roskin <proski@gnu.org>
33554
33555 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
33556 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
33557 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
33558 definitions.
33559
596c6970 335602009-04-15 Felix Zielcke <fzielcke@z-51.de>
33561
33562 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 33563 that no multiple data or metadata areas are supported and `Unknown
596c6970 33564 metadata header'.
33565
7dd4a573 335662009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 33567
33568 Move loader out of the kernel
33569
33570 * kern/loader.c: moved to ...
33571 * commands/boot.c: ... moved here
33572 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
33573 * commands/boot.c (grub_cmd_boot): moved here. All users updated
33574 * include/grub/kernel.h (grub_machine_fini): export
33575 * include/grub/loader.h (grub_loader_is_loaded): update declaration
33576 (grub_loader_set): likewise
33577 (grub_loader_unset): likewise
33578 (grub_loader_boot): likewise
33579 * conf/common.rmk: new module boot.mod
33580 (pkglib_MODULES): add boot.mod
33581 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
33582 (grub_emu_SOURCES): likewise
33583 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
33584 (grub_emu_SOURCES): likewise
33585 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
33586 (grub_emu_SOURCES): likewise
33587 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
33588 (grub_emu_SOURCES): likewise
33589 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
33590 (grub_emu_SOURCES): likewise
7dd4a573 33591 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
33592 (grub_emu_SOURCES): likewise
0d5d5653 33593 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 33594 (grub_emu_SOURCES): likewise
0d5d5653 33595
7dd4a573 335962009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 33597
33598 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 33599
5999d619 33600 * kern/misc.c (grub_itoa): Removed function
33601 (grub_ltoa): likewise
33602 (grub_vsprintf): use grub_lltoa
33603
7dd4a573 336042009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 33605
33606 Restore grub-emu
33607
33608 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
33609 * conf/i386-coreboot.rmk: likewise
33610 * conf/i386-ieee1275.rmk: likewise
33611 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33612
20318222 336132009-04-15 Felix Zielcke <fzielcke@z-51.de>
33614
33615 * INSTALL: Add that `./autogen.sh' needs to be run before
33616 `./configure.'.
33617
d05f0df3 336182009-04-14 Bean <bean123ch@gmail.com>
33619
33620 * Makefile.in (pkglib_DATA): Add handler.lst.
33621 (handler.lst): New rule.
33622
33623 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
33624 * conf/i386-coreboot.rmk: Likewise.
33625 * conf/i386-ieee1275.rmk: Likewise.
33626 * conf/i386-efi.rmk: Likewise.
33627 * conf/x86_64-efi.rmk: Likewise.
33628 * conf/powerpc-ieee1275.rmk: Likewise.
33629 * conf/sparc64-ieee1275.rmk: Likewise.
33630
33631 * genhandlerlist.sh: New file.
33632
33633 * genmk.rb: Add rules to generate handler.lst.
33634
33635 * include/grub/normal.h (grub_file_getline): New function definition.
33636 (read_handler_list): Likewise.
33637 (free_handler_list): Likewise.
33638
33639 * include/grub/term.h (grub_term_register_input): Add name parameter
33640 for auto generation of handler.lst.
33641 (grub_term_register_output): Likewise.
33642
33643 * normal/handler.c: New file.
33644
33645 * normal/main.c (get_line): Renamed to grub_file_getline.
33646 (read_config_file): Use the newly renamed grub_file_getline.
33647 (read_command_list): Likewise.
33648 (read_fs_list): Likewise.
33649 (grub_normal_execute): Call read_handler_list to parse handler.lst.
33650 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
33651
33652 * term/efi/console.c (grub_console_init): Add name parameter for auto
33653 generation of handler.lst.
33654 * term/gfxterm.c: Likewise.
33655 * term/i386/pc/at_keyboard.c: Likewise.
33656 * term/i386/pc/console.c: Likewise.
33657 * term/i386/pc/serial.c: Likewise.
33658 * term/i386/pc/vesafb.c: Likewise.
33659 * term/i386/pc/vga.c: Likewise.
33660 * term/i386/pc/vga_text.c: Likewise.
33661 * term/ieee1275/ofconsole.c: Likewise.
33662 * term/usb_keyboard.c: Likewise.
33663
33c846be 336642009-04-14 Bean <bean123ch@gmail.com>
33665
33666 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
33667 properly with null character.
33668
4484e01e 336692009-04-14 Felix Zielcke <fzielcke@z-51.de>
33670
33671 * configure: Remove.
33672 * config.h.in: Likewise.
f93d668e 33673 * stamp-h.in: Likewise.
4484e01e 33674 * DISTLIST: Likewise.
33675 * conf/common.mk: Likewise.
33676 * conf/i386-coreboot.mk: Likewise.
33677 * conf/i386-efi.mk: Likewise.
33678 * conf/i386-ieee1275.mk: Likewise.
33679 * conf/i386.mk: Likewise.
33680 * conf/i386-pc.mk: Likewise.
33681 * conf/powerpc-ieee1275.mk: Likewise.
33682 * conf/sparc64-ieee1275.mk: Likewise.
33683 * conf/x86_64-efi.mk: Likewise.
33684
33685 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
33686 develop on GRUB.
33687
7dd4a573 336882009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 33689 David S. Miller <davem@davemloft.net>
33690
33691 * util/hostdisk.c (make_device_name): Fix buffer length
33692 calculations.
33693
e25b5a8c 336942009-04-14 Felix Zielcke <fzielcke@z-51.de>
33695
33696 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
33697 <sys/param.h> and <sys/sysctl.h>.
33698 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
33699 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
33700 opening the device and reset them afterwards.
33701
1f1f580c 337022009-04-13 Pavel Roskin <proski@gnu.org>
33703
33704 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
33705 Reported by John Stanley <jpsinthemix@verizon.net>
33706
7ebc2d6b 337072009-04-13 Robert Millan <rmh@aybabtu.com>
33708
33709 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 33710 that name for menuentries when appropriate.
7ebc2d6b 33711
d8ba3667 337122009-04-13 Felix Zielcke <fzielcke@z-51.de>
33713
33714 * util/grub.d/10_freebsd.in: Add a missing `fi'.
33715
cba416eb 337162009-04-13 Robert Millan <rmh@aybabtu.com>
33717
33718 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
33719 to Linux, simply abort telling the user it's no longer supported.
33720
a547a745 337212009-04-13 Felix Zielcke <fzielcke@z-51.de>
33722
33723 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 33724 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 33725 `freebsd_loadenv' only when devices.hints exist.
33726
232a769c 337272009-04-13 Pavel Roskin <proski@gnu.org>
33728
33729 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
33730
c3012039 337312009-04-13 Felix Zielcke <fzielcke@z-51.de>
33732
33733 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
33734 partition number.
33735 (grub_drive): Likewise.
33736
234022fe 337372009-04-13 David S. Miller <davem@davemloft.net>
33738
33739 * kern/sparc64/ieee1275/ieee1275.c: New file.
33740 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
33741 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
33742 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
33743 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
33744 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
33745 grub_ieee1275_alloc_physmem): Declare new exported functions.
33746
d8e1836c 33747 * include/grub/sparc64/ieee1275/loader.h: New file.
33748 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33749 * include/grub/sparc64/kernel.h: Likewise.
33750 * loader/sparc64/ieee1275/linux.c: Likewise.
33751
96bd81ec 33752 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
33753 (grub_fstest_SOURCES): Likewise.
33754
6a4737e5 33755 * util/hostdisk.c (make_device_name): Do not make any assumptions
33756 about the length of drive names.
33757
1d7a72fd 33758 * kern/dl.c (grub_dl_load_file): Close file immediately when
33759 we are done using it.
33760
56bc2471 337612009-04-12 David S. Miller <davem@davemloft.net>
33762
33763 * kern/misc.c (grub_ltoa): Fix cast when handling negative
33764 values. Noticed by Pavel Roskin.
33765
df38d0bb 33766 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
33767 target compiler.
7dd4a573 33768
e382e93a 33769 * genmk.rb: Add more flexible image type specification, also
33770 pass --strip-unneeded to objcopy.
33771 * conf/i386-pc.rmk: Use *_FORMAT.
33772 * conf/i386-pc.mk: Rebuilt.
33773
f5dbbca9 33774 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
33775 (OFDISK_HASH_SZ): Define.
33776 (ofdisk_hash): New hash table.
33777 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
33778 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
33779 instead of device phandle which is not unique.
33780
91c88b12 33781 * kern/sparc64/ieee1275/init.c: Delete, replace with...
33782 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
33783 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
33784 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
33785 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
33786 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
33787 GRUB_KERNEL_MACHINE_DATA_END): Define.
33788 (grub_kernel_image_size, grub_total_module_size): Declare.
33789
5b5d4aa5 337902009-04-12 Pavel Roskin <proski@gnu.org>
33791
7dd4a573 33792 * configure.ac: Change the logic when we check for target tools.
33793 Do it when the target is specified and it's different from the
33794 specified value of the host.
5b5d4aa5 33795
c91e1793 337962009-04-11 Felix Zielcke <fzielcke@z-51.de>
33797
33798 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
33799 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
33800 GNU/kFreeBSD. Check if a device is a character device. Use
33801 DIOCGMEDIASIZE to get the size.
33802 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
33803 support for GNU/kFreeBSD.
33804 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
33805 is a character device instead of a block device. Add support for
33806 FreeBSD device names.
33807
33808 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33809 is a character device instead of a block device.
33810
33811 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33812 is a character device instead of a block device.
33813
b1ac8644 338142009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33815
33816 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33817 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33818 FreeBSD. Check if a device is a character device. Use
33819 DIOCGMEDIASIZE to get the size.
33820 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33821 support for FreeBSD.
33822 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33823 is a character device instead of a block device. Add support for
33824 FreeBSD device names.
33825
33826 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33827 a character device instead of a block device.
33828 (grub_util_check_char_device): New function.
33829
33830 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33831 a character device instead of a block device.
33832
33833 * include/grub/util/getroot.h (grub_util_check_char_device): New
33834 prototype.
33835
a3f7515a 338362009-04-11 David S. Miller <davem@davemloft.net>
33837
33838 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33839 static libgcc.
33840 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33841 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33842 function, if present.
33843 (__bswapdi2): Likewise.
33844
0d44993d 33845 * include/grub/sparc64/ieee1275/boot.h: New file.
33846 * boot/sparc64/ieee1275/boot.S: Likewise.
33847 * boot/sparc64/ieee1275/diskboot.S: Likewise.
33848
ed3d2bc2 33849 * kern/misc.c (grub_ltoa): New function.
33850 (grub_vsprintf): Use it to format 'long' integers.
33851
d3bfb59c 338522009-04-10 David S. Miller <davem@davemloft.net>
33853
33854 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
33855 slots are of type grub_ieee1275_cell_t.
33856 (grub_nand_read): Likewise.
33857 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
33858 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
33859 macros are used to compare values in arg/ret block of the call.
33860 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33861 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33862 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33863 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33864 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33865 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33866 grub_ieee1275_close, grub_ieee1275_set_property,
33867 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33868 grub_ieee1275_cell_t.
33869 * kern/ieee1275/openfw.c (grub_map): Likewise.
33870 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33871 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33872
450e2238 33873 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33874 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33875 (grub_devalias_iterate): Likewise.
33876
7dd4a573 338772009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33878
33879 UFS improvements
33880
33881 * fs/ufs.c (INODE_NBLOCKS): new definition
33882 (struct grub_ufs_dirent): added fields for non-BSD dirents
33883 (grub_ufs_get_file_block): fixed double indirect handling
33884 (grub_ufs_lookup_symlink): use more robust way to determine whether
33885 symlink is inline
33886 (grub_ufs_find_file): support for non-BSD dirents
33887 (grub_ufs_dir): support for non-BSD dirents
33888
e7e6862a 338892009-04-10 Bean <bean123ch@gnail.com>
33890
33891 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33892 attribute, otherwise the size would be wrong for i386 platform.
33893
33894 * include/grub/pci.h (grub_pci_read_word): New inline function.
33895 (grub_pci_read_byte): Likewise.
33896 (grub_pci_write): Likewise.
33897 (grub_pci_write_word): Likewise.
33898 (grub_pci_write_byte): Likewise.
33899
33900 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33901
33902 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33903 (find_framebuf): Scan pci to locate the frame buffer address.
33904
33905 * commands/efi/fixvideo.c: New file.
33906
33907 * commands/efi/loadbios.c: Likewise.
33908
33909 * commands/memrw.c: Likewise.
33910
33911 * util/grub-dumpbios.in: Likewise.
33912
33913 * conf/common.rmk (grub-dumpbios): New utility.
33914 (pkglib_MODULES): New module memrw.mod.
33915 (memrw_mod_SOURCE): New macro.
33916 (memrw_mod_CFLAGS): Likewise.
33917 (memrw_mod_LDFLAGS): Likewise.
33918
7dd4a573 33919 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33920 fixvideo.mod.
33921 (loadbios_mod_SOURCE): New macro.
33922 (loadbios_mod_CFLAGS): Likewise.
33923 (loadbios_mod_LDFLAGS): Likewise.
33924 (fixvideo_mod_SOURCE): Likewise.
33925 (fixvideo_mod_CFLAGS): Likewise.
33926 (fixvideo_mod_LDFLAGS): Likewise.
33927
7dd4a573 33928 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33929 fixvideo.mod.
33930 (loadbios_mod_SOURCE): New macro.
33931 (loadbios_mod_CFLAGS): Likewise.
33932 (loadbios_mod_LDFLAGS): Likewise.
33933 (fixvideo_mod_SOURCE): Likewise.
33934 (fixvideo_mod_CFLAGS): Likewise.
33935 (fixvideo_mod_LDFLAGS): Likewise.
33936
af63ada2 339372009-04-08 Felix Zielcke <fzielcke@z-51.de>
33938
33939 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33940
c2cdde70 339412009-04-07 David S. Miller <davem@davemloft.net>
33942
33943 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33944 support for R_SPARC_OLO10 relocations. Fix compile warning for
33945 R_SPARC_WDISP30 case.
ea3f72cf 33946 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33947
761319cf 339482009-04-06 Pavel Roskin <proski@gnu.org>
33949
1007d1f5 33950 * include/grub/misc.h (ARRAY_SIZE): New macro.
33951 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33952 New macro.
33953 * loader/i386/linux.c (allocate_pages): Use free_pages().
33954 (grub_linux_unload): Don't use free_pages().
33955 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33956 wrong index. Treat all other modes as text modes.
33957 (grub_cmd_linux): Initialize vid_mode unconditionally to
33958 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33959
761319cf 33960 * commands/help.c (print_command_help): Use cmd->prio, not
33961 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33962
ea761d40 339632009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33964
ea761d40 33965 Parttool
33966
33967 * parttool/pcpart.c: new file
33968 * commands/parttool.c: likewise
33969 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33970 (parttool_mod_SOURCES): new variable
33971 (parttool_mod_CFLAGS): likewise
33972 (parttool_mod_LDFLAGS): likewise
33973 (pcpart_mod_SOURCES): likewise
33974 (pcpart_mod_CFLAGS): likewise
33975 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33976 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33977 and parttool/pcpart.c
33978 * conf/i386-efi.rmk: likewise
33979 * conf/i386-ieee1275.rmk: likewise
33980 * conf/i386-pc.rmk: likewise
33981 * conf/powerpc-ieee1275.rmk: likewise
33982 * conf/sparc64-ieee1275.rmk: likewise
33983 * conf/x86_64-ieee1275.rmk: likewise
33984
05aaebfb 339852009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33986
33987 Support for mtime and further expandability of dir command
33988
33989 * include/grub/lib/datetime.h: moved to ...
7dd4a573 33990 * include/grub/datetime.h: ... moved here and added
05aaebfb 33991 declaration of grub_unixtime2datetime. All users updated
7dd4a573 33992 * include/grub/fs.h: new syntax for dir and mtime functions in
33993 struct grub_fs
05aaebfb 33994 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
33995 and GRUB_FSHELP_FLAGS_MASK
33996 * commands/ls.c (grub_ls_list_files): Write mtime in long format
33997 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
33998 (grub_ext2_mtime): new function
33999 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34000 (grub_hfsplus_mtime): new function
34001 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34002 (GRUB_UFS_ATTR_FILE): likewise
34003 (GRUB_UFS_ATTR_LNK): likewise
34004 (struct grub_ufs_sblock): new fields mtime
34005 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34006 all users updated
34007 (grub_ufs_dir): mtime support
34008 (grub_ufs_mtime): new function
34009 * fs/affs.c (grub_affs_dir): use new dir syntax
34010 * fs/afs.c (grub_afs_dir): likewise
34011 * fs/cpio.c (grub_cpio_dir): likewise
34012 * fs/fat.c (grub_fat_find_dir): likewise
34013 * fs/hfs.c (grub_hfs_dir): likewise
34014 * fs/iso9660.c (grub_iso9660_dir): likewise
34015 * fs/jfs.c (grub_jfs_dir): likewise
34016 * fs/minix.c (grub_minix_dir): likewise
34017 * fs/ntfs.c (grub_ntfs_dir): likewise
34018 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34019 * fs/sfs.c (grub_sfs_dir): likewise
34020 * fs/xfs.c (grub_xfs_dir): likewise
34021 * util/hostfs.c (grub_hostfs_dir): likewise
34022 * lib/datetime.c: moved to ...
34023 * normal/datetime.c: ... moved here
34024 (grub_unixtime2datetime): new function
34025 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 34026 * normal/completion.c (iterate_dir): use new dir syntax
34027 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 34028 last modification time of a volume
7dd4a573 34029 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 34030 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 34031 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 34032 (normal_mod_SOURCES): likewise
34033 (datetime_mod_SOURCES): Removed lib/datetime.c
34034 * conf/i386-efi.rmk: likewise
7dd4a573 34035 * conf/i386-ieee1275.rmk: likewise
05aaebfb 34036 * conf/i386-pc.rmk: likewise
34037 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 34038 * conf/sparc64-ieee1275.rmk: likewise
34039 * conf/x86_64-efi.rmk: likewise
05aaebfb 34040
8a7e1a14 340412009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34042
34043 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 34044
34045 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 34046 on grub_fat_find_dir
34047 (grub_fat_find_dir): use grub_fat_iterate_dir
34048 (grub_fat_label): likewise
34049
04186a9c 340502009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34051
7dd4a573 34052 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 34053 and command.h
34054 remove extraneous kernel_elf_HEADERS
34055
da4c0bb6 340562009-04-04 Bean <bean123ch@gnail.com>
34057
34058 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34059
34060 * util/misc.c: Likewise.
34061
54ad9555 340622009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34063
34064 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34065 instead of grub_printf.
34066
7a6bf9f2 340672009-04-03 Robert Millan <rmh@aybabtu.com>
34068
34069 * loader/i386/linux.c (grub_linux_setup_video): Fill
34070 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34071 values from `mode info' structure instead of hardcoded
34072 values.
34073
3fcc2083 340742009-04-01 Pavel Roskin <proski@gnu.org>
34075
34076 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34077 unused now.
34078 * genmk.rb: Likewise.
34079 * configure.ac: Likewise.
34080
5ec9740b 340812009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34082
34083 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34084 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34085
5270cec8 340862009-04-01 David S. Miller <davem@davemloft.net>
34087
34088 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 34089 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 34090 (grub_setjmp): Mark with 'returns_twice' attribute.
34091 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34092 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34093 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34094
9c3dd854 340952009-04-01 Robert Millan <rmh@aybabtu.com>
34096
34097 Reapply fix from 2008-07-28 which was accidentally reverted; also
34098 perform the same fix to a similar check in same function.
34099
34100 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34101 with the same number are found, just use issue a warning with
34102 grub_dprintf(), as this error has been reported to be non-fatal.
34103
0d818b7e 341042009-03-31 Pavel Roskin <proski@gnu.org>
34105
34106 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34107 for cross-compilation.
34108
95646d92 341092009-03-30 Robert Millan <rmh@aybabtu.com>
34110
34111 Fix i386-ieee1275 build.
34112
34113 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34114 Remove declaration.
34115
6a003ed1 341162009-03-30 Pavel Roskin <proski@gnu.org>
34117
34118 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34119 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34120 zero-terminated, rely only on the strlen value. Fix comparison
34121 of strings differing in length.
34122
92f33540 341232009-03-30 Robert Millan <rmh@aybabtu.com>
34124
34125 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34126 checking for abi version. Improve error messages on BIOS to notify
34127 user about `linux16' command.
34128
a8c48fd5 341292009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34130
f968172e 34131 Leak fixes
a8c48fd5 34132
f968172e 34133 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34134 in case of collision
34135 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 34136
9c323f09 341372009-03-29 Robert Millan <rmh@aybabtu.com>
34138
34139 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34140 set `vid_mode' accordingly.
34141 (grub_linux_boot): Process `vid_mode' and set video mode.
34142
ae68f423 341432009-03-29 Robert Millan <rmh@aybabtu.com>
34144
34145 * util/grub.d/10_linux.in (linux_entry): New function.
34146 Factorize generation of Linux boot entries.
34147
5709cfc4 341482009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34149
34150 Make the format of Environment Block plain text. The boot loader
34151 part is not tested well yet.
7dd4a573 34152
5709cfc4 34153 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34154 (buffer): Removed.
34155 (envblk): Likewise.
34156 (usage): Remove "info" and "clear". Add "unset". Update the
34157 description of "set", as this does not delete variables any
34158 longer.
34159 (create_envblk_file): Complete rewrite.
34160 (open_envblk_file): Likewise.
34161 (cmd_info): Removed.
34162 (cmd_list): Likewise.
34163 (cmd_set): Likewise.
34164 (cmd_clear): Likewise.
34165 (list_variables): New function.
34166 (write_envblk): Likewise.
34167 (set_variables): Likewise.
34168 (unset_variables): Likewise.
34169 (main): Complete rewrite.
34170
34171 * commands/loadenv.c (buffer): Removed.
34172 (envblk): Likewise.
34173 (open_envblk_file): New function.
34174 (read_envblk_file): Complete rewrite.
34175 (grub_cmd_load_env): Likewise.
34176 (grub_cmd_list_env): Likewise.
34177 (struct blocklist): New struct.
34178 (free_blocklists): New function.
34179 (check_blocklists): Likewise.
34180 (write_blocklists): Likewise.
34181 (grub_cmd_save_env): Complete rewrite.
34182
34183 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34184 a plain text signature.
34185 (GRUB_ENVBLK_MAXLEN): Removed.
34186 (struct grub_envblk): Complete rewrite.
34187 (grub_envblk_find): Removed.
34188 (grub_envblk_insert): Likewise.
34189 (grub_envblk_open): New prototype.
34190 (grub_envblk_set): Likewise.
34191 (grub_envblk_delete): Put const to VALUE.
34192 (grub_envblk_iterate): Put const to NAME and VALUE.
34193 (grub_envblk_close): New prototype.
34194 (grub_envblk_buffer): New inline function.
34195 (grub_envblk_size): Likewise.
34196
34197 * lib/envblk.c: Include grub/mm.h.
34198 (grub_env_find): Removed.
34199 (grub_envblk_open): New function.
34200 (grub_envblk_close): Likewise.
34201 (escaped_value_len): Likewise.
34202 (find_next_line): Likewise.
34203 (grub_envblk_insert): Removed.
34204 (grub_envblk_set): New function.
34205 (grub_envblk_delete): Complete rewrite.
34206 (grub_envblk_iterate): Likewise.
34207
a9368fd3 342082009-03-28 Robert Millan <rmh@aybabtu.com>
34209
34210 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34211 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34212 variables. Use 16-bit loader.
34213 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34214 loader.
34215 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34216 (grub_linux16_boot): ... this. Update all users.
34217 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34218 (grub_linux_boot): ... this. Update all users.
34219
34220 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34221 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34222 commands to `linux16' and `initrd16'.
34223 (GRUB_MOD_FINI(linux)): Rename to ...
34224 (GRUB_MOD_FINI(linux16)): ... this.
34225
e4dd5a7e 342262009-03-24 Pavel Roskin <proski@gnu.org>
34227
34228 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34229 not just for compilation.
34230
c04d6e05 342312009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34232
34233 Move multiboot helper out of kernel
34234
34235 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34236 `loader/i386/multiboot_helper.S'.
34237 * conf/i386-coreboot.rmk: Likewise
34238 * conf/i386-ieee1275.rmk: Likewise
34239
34240 * kern/i386/loader.S: Move multiboot helpers from here...
34241 * loader/i386/multiboot_helper.S: ...moved here
34242 * include/grub/i386/loader.h: Move declarations of multiboot
34243 helpers from here...
34244 * include/grub/i386/multiboot.h: ...moved here
34245 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34246
42a5b3fc 342472009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34248
34249 * kern/env.c (grub_env_context_open): Added an argument to specify
34250 whether a new context inherits exported variables from current
34251 one. This is useful when making a sandbox to interpret a config
34252 file.
34253 All callers updated.
34254
34255 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34256
b28bbc4e 342572009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34258
34259 * kern/env.c (grub_env_context_close): Fix memory leaks.
34260
f04f02e4 342612009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34262
34263 * normal/main.c (grub_normal_execute): Added an argument
34264 BATCH to specify if an interactive interface should be provided
34265 after reading a config file.
34266 All callers updated.
34267 (read_command_list): Prevent being executed twice.
34268 (read_fs_list): Likewise.
34269
42a5b3fc 34270 * include/grub/normal.h (grub_normal_execute): Updated the
34271 prototype.
f04f02e4 34272
41473ac2 342732009-03-22 Pavel Roskin <proski@gno.org>
34274
fbc00b0c 34275 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34276 _start.
34277 * kern/i386/pc/startup.S: Likewise.
34278 * kern/i386/efi/startup.S: Likewise.
34279 * kern/i386/ieee1275/startup.S: Likewise.
34280 * kern/i386/coreboot/startup.S: Likewise.
34281 * kern/x86_64/efi/startup.S: Likewise.
34282
41473ac2 34283 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34284 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34285 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
34286
2274cc8f 342872009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
34288
34289 Bugfixes in multiboot for bugs uncovered by solaris kernel.
34290
34291 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
34292 limit detection.
34293 Use vaddr of correct segment for entry_point.
34294
b1b797cb 342952009-03-21 Bean <bean123ch@gmail.com>
34296
34297 * commands/blocklist.c: Add include file <grub/command.h>, remove
34298 <grub/normal.h> and <grub/arg.h>.
34299 (grub_cmd_blocklist): Use the new command interface.
34300 (GRUB_MOD_INIT): Likewise.
34301 (GRUB_MOD_FINI): Likewise.
34302 * commands/boot.c: Likewise.
34303 * commands/cat.c: Likewise.
34304 * commands/cmp.c: Likewise.
34305 * commands/configfile.c: Likewise.
34306 * commands/crc.c: Likewise.
34307 * commands/echo.c: Likewise.
34308 * commands/halt.c: Likewise.
34309 * commands/handler.c: Likewise.
34310 * commands/hdparm.c: Likewise.
34311 * commands/help.c: Likewise.
34312 * commands/hexdump.c: Likewise.
34313 * commands/loadenv.c: Likewise.
34314 * commands/ls.c: Likewise.
34315 * commands/lsmmap.c: Likewise.
34316 * commands/lspci.c: Likewise.
34317 * commands/loadenv.c: Likewise.
34318 * commands/read.c: Likewise.
34319 * commands/reboot.c: Likewise.
34320 * commands/search.c: Likewise.
34321 * commands/sleep.c: Likewise.
34322 * commands/test.c: Likewise.
34323 * commands/usbtest.c: Likewise.
34324 * commands/videotest.c: Likewise.
34325 * commands/i386/cpuid.c: Likewise.
34326 * commands/i386/pc/halt.c: Likewise.
34327 * commands/i386/pc/play.c: Likewise.
34328 * commands/i386/pc/pxecmd.c: Likewise.
34329 * commands/i386/pc/vbeinfo.c: Likewise.
34330 * commands/i386/pc/vbetest.c: Likewise.
34331 * commands/ieee1275/suspend.c: Likewise.
34332 * disk/loopback.c: Likewise.
34333 * font/font_cmd.c: Likewise.
34334 * hello/hello.c: Likewise.
34335 * loader/efi/appleloader.c: Likewise.
34336 * loader/efi/chainloader.c: Likewise.
34337 * loader/i386/bsd.c: Likewise.
34338 * loader/i386/efi/linux.c: Likewise.
34339 * loader/i386/ieee1275/linux.c: Likewise.
34340 * loader/i386/linux.c: Likewise.
34341 * loader/i386/pc/chainloader.c: Likewise.
34342 * loader/i386/pc/linux.c: Likewise.
34343 * loader/powerpc/ieee1275/linux.c: Likewise.
34344 * loader/multiboot_loader.c: Likewise.
34345 * term/gfxterm.c: Likewise.
34346 * term/i386/pc/serial.c: Likewise.
34347 * term/terminfo.c: Likewise.
34348
34349 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
34350 * term/i386/pc/vga.c: Likewise.
34351 * video/readers/jpeg.c: Likewise.
34352 * video/readers/png.c: Likewise.
34353 * video/readers/tga.c: Likewise.
34354
34355 * util/grub-fstest (cmd_loopback): Removed.
34356 (cmd_blocklist): Likewise.
34357 (cmd_ls): Likewise.
34358 (grub_register_command): Likewise.
34359 (grub_unregister_command): Likewise.
34360 (execute_command): Use grub_command_find to locate command and execute
34361 it.
34362
34363 * include/grub/efi/chainloader.h: Removed.
34364 * loader/efi/chainloader_normal.c: Likewise.
34365 * loader/i386/bsd_normal.c: Likewise.
34366 * loader/i386/pc/chainloader_normal.c: Likewise.
34367 * loader/i386/pc/multiboot_normal.c: Likewise.
34368 * loader/linux_normal.c: Likewise.
34369 * loader/multiboot_loader_normal.c: Likewise.
34370 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
34371
34372 * gencmdlist.sh: Scan new registration command grub_register_extcmd
34373 and grub_register_command_p1.
34374
34375 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
34376 kern/command.c, lib/arg.c and commands/extcmd.c.
34377 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
34378 (minicmd_mod_SOURCES): New variable.
34379 (minicmd_mod_CFLAGS): Likewise.
34380 (minicmd_mod_LDFLAGS): Likewise.
34381 (extcmd_mod_SOURCES): Likewise.
34382 (extcmd_mod_CFLAGS): Likewise.
34383 (extcmd_mod_LDFLAGS): Likewise.
34384 (boot_mod_SOURCES): Removed.
34385 (boot_mod_CFLAGS): Likewise.
34386 (boot_mod_LDFLAGS): Likewise.
34387
34388 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
34389 kern/corecmd.c.
34390 (kernel_img_HEADERS): Add command.h.
34391 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
34392 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
34393 and lib/arg.c.
34394 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
34395 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
34396 remove the corresponding normal mode command.
34397 (normal_mod_SOURCES): Remove normal/arg.c.
34398 * conf/i386-coreboot.rmk: Likewise.
34399 * conf/i386-efi.rmk: Likewise.
34400 * conf/i386-ieee1275.rmk: Likewise.
34401 * conf/powerpc-ieee1275.rmk: Likewise.
34402 * conf/x86_64-efi.rmk: Likewise.
34403
34404 * include/grub/arg.h: Move from here ...
34405 * include/grub/lib/arg.h: ... to here.
34406
34407 * normal/arg.c: Move from here ...
34408 * lib/arg.c: ... to here.
34409
34410 * commands/extcmd.c: New file.
34411 * commands/minicmd.c: Likewise.
34412 * include/grub/command.h: Likewise.
34413 * include/grub/extcmd.h: Likewise.
34414 * kern/command.c: Likewise.
34415 * kern/corecmd.c: Likewise.
34416
34417 * kern/list.c (grub_list_iterate): Return int instead of void.
34418 (grub_list_insert): New function.
34419 (grub_prio_list_insert): Likewise.
34420
34421 * kern/rescue.c (grub_rescue_command): Removed.
34422 (grub_rescue_command_list): Likewise.
34423 (grub_rescue_register_command): Likewise.
34424 (grub_rescue_unregister_command): Likewise.
34425 (grub_rescue_cmd_boot): Move to minicmd.c
34426 (grub_rescue_cmd_help): Likewise.
34427 (grub_rescue_cmd_info): Likewise.
34428 (grub_rescue_cmd_boot): Likewise.
34429 (grub_rescue_cmd_testload): Likewise.
34430 (grub_rescue_cmd_dump): Likewise.
34431 (grub_rescue_cmd_rmmod): Likewise.
34432 (grub_rescue_cmd_lsmod): Likewise.
34433 (grub_rescue_cmd_exit): Likewise.
34434 (grub_rescue_print_devices): Moved to corecmd.c.
34435 (grub_rescue_print_files): Likewise.
34436 (grub_rescue_cmd_ls): Likewise.
34437 (grub_rescue_cmd_insmod): Likewise.
34438 (grub_rescue_cmd_set): Likewise.
34439 (grub_rescue_cmd_unset): Likewise.
7d074e3c 34440 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 34441 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 34442 commands, remove grub_rescue_register_command calls.
b1b797cb 34443
7d074e3c 34444 * normal/command.c (grub_register_command): Removed.
b1b797cb 34445 (grub_unregister_command): Likewise.
34446 (grub_command_find): Likewise.
34447 (grub_iterate_commands): Likewise.
34448 (rescue_command): Likewise.
34449 (export_command): Moved to corecmd.c.
34450 (set_command): Removed.
34451 (unset_command): Likewise.
34452 (insmod_command): Likewise.
34453 (rmmod_command): Likewise.
34454 (lsmod_command): Likewise.
34455 (grub_command_init): Likewise.
34456
34457 * normal/completion.c (iterate_command): Use cmd->prio to check for
34458 active command.
34459 (complete_arguments): Use grub_extcmd_t structure to find options.
34460 (grub_normal_do_completion): Change function grub_iterate_commands to
34461 grub_command_iterate.
34462
34463 * normal/execute.c (grub_script_execute_cmd): No need to parse
34464 argument here.
34465
34466 * normal/main.c (grub_dyncmd_dispatcher): New function.
34467 (read_command_list): Register unload commands as dyncmd.
34468 (grub_cmd_normal): Use new command interface, register rescue,
34469 unregister normal at entry, register normal, unregister rescue at exit.
34470
34471 * include/grub/list.h (grub_list_test_t): New type.
34472 (grub_list_iterate): Return int instead of void.
34473 (grub_list_insert): New function.
34474 (GRUB_AS_NAMED_LIST_P): New macro.
34475 (GRUB_AS_PRIO_LIST): Likewise.
34476 (GRUB_AS_PRIO_LIST_P): Likewise.
34477 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
34478 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
34479 (grub_prio_list): New structure.
34480 (grub_prio_list_insert): New function.
34481 (grub_prio_list_remove): New inline function.
34482
34483 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
34484 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
34485 (GRUB_COMMAND_FLAG_MENU): Likewise.
34486 (GRUB_COMMAND_FLAG_BOTH): Likewise.
34487 (GRUB_COMMAND_FLAG_TITLE): Likewise.
34488 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
34489 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
34490 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
34491 (grub_command): Likewise.
34492 (grub_register_command): Likewise.
34493 (grub_command_find): Likewise.
34494 (grub_iterate_commands): Likewise.
34495 (grub_command_init): Likewise.
34496 (grub_arg_parse): Likewise.
34497 (grub_arg_show_help): Likewise.
34498
34499 * include/grub/rescue.h (grub_rescue_register_command): Removed.
34500 (grub_rescue_unregister_command): Likewise.
34501
34502 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
34503 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
34504 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
34505
34506 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
34507 grub_rescue_cmd_initrd.
34508 * include/grub/i386/loader.h: Likewise.
34509 * include/grub/x86_64/loader.h: Likewise.
34510
34511 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
34512
1f4147aa 345132009-03-21 Bean <bean123ch@gmail.com>
34514
34515 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
34516 instead of stat in mingw environment.
34517
34518 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
34519
34520 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
34521
34522 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
34523 AC_CONFIG_LINKS.
34524
2156d5ba 345252009-03-21 Bean <bean123ch@gmail.com>
34526
34527 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
34528 out of range error.
34529
177b82ca 345302009-03-18 Michel Dänzer <michel@daenzer.net>
34531
34532 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
34533 checking inode flags for EXT4_EXTENTS_FLAG.
34534
14aad807 345352009-03-18 Robert Millan <rmh@aybabtu.com>
34536
34537 * loader/i386/linux.c: Include `<grub/video.h>' and
34538 `<grub/i386/pc/vbe.h>'..
34539 (grub_linux_setup_video): New function. Loosely based on the EFI one.
34540 (grub_linux32_boot): Attempt to configure video settings with
34541 grub_linux_setup_video().
34542 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
34543 to avoid grub_console_fini() which would step out of graphical mode
34544 unconditionally.
34545
8cf83a27 345462009-03-14 Robert Millan <rmh@aybabtu.com>
34547
34548 Fix build on powerpc.
34549 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
34550
40164e75 345512009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
34552
34553 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
34554 background image command.
34555
c58bc32a 345562009-03-12 Colin D Bennett <colin@gibibit.com>
34557
34558 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
34559 (grub_gfxterm_putchar): Extract pairs of identical calls to
34560 draw_cursor out of conditional blocks.
34561
5415144a 345622009-03-11 Pavel Roskin <proski@gnu.org>
34563
34564 * fs/hfs.c (grub_hfs_strncasecmp): New function.
34565 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
34566
6394042e 345672009-03-11 Robert Millan <rmh@aybabtu.com>
34568
34569 * loader/i386/multiboot_elfxx.c
34570 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
34571
b7b50e5f 345722009-03-11 Felix Zielcke <fzielcke@z-51.de>
34573
34574 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
34575 `kern/handler.c'.
34576
1ca7fc96 345772009-03-11 Robert Millan <rmh@aybabtu.com>
34578
34579 * loader/i386/multiboot.c (code_size): New variable.
34580 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 34581 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 34582 4-byte alignment to MBI and others by increasing
7d074e3c 34583 `boot_loader_name_length' appropriately.
1ca7fc96 34584
34585 * loader/i386/multiboot_elfxx.c
34586 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
34587
a83ea1d2 345882009-03-09 Felix Zielcke <fzielcke@z-51.de>
34589
34590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
34591 `fs/ext2.c'.
34592
aa9f3bff 345932009-03-08 Robert Millan <rmh@aybabtu.com>
34594
34595 Make loader/i386/linux.c usable on i386-pc again.
34596
34597 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
34598 memory to heap.
34599 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
34600 `#error' stanza.
34601
d8b3b60e 346022009-03-07 Bean <bean123ch@gmail.com>
34603
34604 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
34605 allocation.
34606
b362c9e9 346072009-03-06 Robert Millan <rmh@aybabtu.com>
34608
34609 Fix display issue on terminals with screen size other than 80x25
34610 (e.g. gfxterm with resolution higher than 640x480).
34611
34612 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 34613 position relative to the center of the terminal instead of relying
b362c9e9 34614 on a hardcoded offset.
34615
9304eef1 346162009-03-04 Robert Millan <rmh@aybabtu.com>
34617
34618 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
34619 installed.
34620
34621 * Makefile.in (host_kernel): New variable.
34622 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
34623 scripts instead of just the windows one.
34624 * configure.ac: Initialize and AC_SUBST `host_kernel'.
34625
eabc95fb 346262009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 34627
34628 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
34629 `kern/handler.c'.
34630 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34631 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34632 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34635 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34636
ceb1223c 346372009-03-04 Felix Zielcke <fzielcke@z-51.de>
34638
34639 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
34640 or if there's no space for the disk label and print the partition number on a
34641 invalid magic.
34642
4910684a 346432009-03-04 Felix Zielcke <fzielcke@z-51.de>
34644
34645 * util/misc.c: Include <time.h>.
34646 (grub_millisleep): New function.
34647
7e9ca17a 346482009-03-04 Bean <bean123ch@gmail.com>
34649
34650 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
34651 another option -mno-red-zone.
34652
34653 * commands/handler.c: Change module description.
34654
34655 * kern/handler.c: Add missing space at the end of description line.
34656
34657 * kern/list.c: Likewise.
34658
f501677c 346592009-03-03 Robert Millan <rmh@aybabtu.com>
34660
34661 Move more components to the relocation area, and fix mbi pointer
34662 handling to use the destination rather than the origin (thanks to
34663 Vladimir Serbinenko for spotting).
34664
34665 * loader/i386/multiboot.c (mbi_dest): New variable.
34666 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
34667 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
34668 relocation area.
34669
9902d047 346702009-03-01 Bean <bean123ch@gmail.com>
34671
50fb7002 34672 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 34673 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
34674 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
34675 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
34676
34677 * loader/i386/efi/linux.c (acpi_guid): New variable.
34678 (acpi_guid): Likewise.
34679 (EBDA_SEG_ADDR): New constant.
34680 (LOW_MEM_ADDR): Likewise.
34681 (FAKE_EBDA_SEG): Likewise.
34682 (fake_bios_data): New function.
34683 (grub_linux_boot): Call fake_bios_data.
34684
71b9f361 346852009-03-01 Bean <bean123ch@gmail.com>
34686
34687 * commands/terminal.c: Removed.
34688
34689 * commands/handler.c: New file.
34690
34691 * include/grub/list.h: Likewise.
34692
34693 * include/grub/handler.h: Likewise.
34694
34695 * kern/list.c: Likewise.
34696
34697 * kern/handler.c: Likewise.
34698
34699 * kern/term.h: Include header file <grub/handler.h>.
34700 (grub_term_input): Move next field to the beginning.
34701 (grub_term_output): Likewise.
34702 (grub_term_input_class): New variable.
34703 (grub_term_output_class): Likewise.
34704 (grub_term_register_input): Changed to inline function.
34705 (grub_term_register_output): Likewise.
34706 (grub_term_unregister_input): Likewise.
34707 (grub_term_unregister_output): Likewise.
34708 (grub_term_set_current_input): Likewise.
34709 (grub_term_set_current_output): Likewise.
34710 (grub_term_get_current_input): Likewise.
34711 (grub_term_get_current_output): Likewise.
34712 (grub_term_iterate_input): Removed.
34713 (grub_term_iterate_output): Likewise.
34714
34715 * kern/term.c (grub_term_list_input): Removed.
34716 (grub_term_list_output): Likewise.
34717 (grub_term_input_class): New variable.
34718 (grub_term_output_class): Likewise.
50fb7002 34719 (grub_cur_term_input): Change variable as macro.
71b9f361 34720 (grub_cur_term_output): Likewise.
34721 (grub_term_register_input): Removed.
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_iterate_input): Likewise.
34728 (grub_term_iterate_output): Likewise.
34729 (grub_term_get_current_input): Likewise.
34730 (grub_term_get_current_output): Likewise.
34731
34732 * util/grub-editenv.c: Include header file <grub/handler.h>.
34733 (grub_term_get_current_input): Removed.
34734 (grub_term_get_current_output): Likewise.
34735 (grub_term_input_class): New variable.
50fb7002 34736 (grub_term_output_class): Likewise.
71b9f361 34737
34738 * util/grub-fstest.c (grub_term_get_current_input): Removed.
34739 (grub_term_get_current_output): Likewise.
34740 (grub_term_input_class): New variable.
50fb7002 34741 (grub_term_output_class): Likewise.
71b9f361 34742
34743 * util/grub-probe.c (grub_term_get_current_input): Removed.
34744 (grub_term_get_current_output): Likewise.
34745 (grub_term_input_class): New variable.
50fb7002 34746 (grub_term_output_class): Likewise.
71b9f361 34747
34748 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
34749 (grub_term_get_current_output): Likewise.
34750 (grub_term_input_class): New variable.
50fb7002 34751 (grub_term_output_class): Likewise.
71b9f361 34752
34753 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
34754 (terminal_mod_SOURCES): Likewise.
34755 (terminal_mod_CFLAGS): Likewise.
34756 (terminal_mod_LDFLAGS): Likewise.
34757
34758 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
34759 handler.c.
34760 (kernel_img_SOURCES): Add list.c and handler.c.
34761 (kernel_img_HEADERS): Add list.h and handler.h.
34762
34763 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34764 handler.c.
34765 (kernel_mod_SOURCES): Add list.c and handler.c.
34766 (kernel_mod_HEADERS): Add list.h and handler.h.
34767
34768 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
34769 handler.c.
34770 (kernel_elf_SOURCES): Add list.c and handler.c.
34771 (kernel_elf_HEADERS): Add list.h and handler.h.
34772
34773 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34774 handler.c.
34775 (kernel_elf_SOURCES): Add list.c and handler.c.
34776 (kernel_elf_HEADERS): Add list.h and handler.h.
34777
34778 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34779 handler.c.
34780 (kernel_mod_SOURCES): Add list.c and handler.c.
34781 (kernel_mod_HEADERS): Add list.h and handler.h.
34782
34783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34784 handler.c.
34785 (kernel_elf_SOURCES): Add list.c and handler.c.
34786 (kernel_elf_HEADERS): Add list.h and handler.h.
34787
8a31787f 347882009-02-27 Robert Millan <rmh@aybabtu.com>
34789
34790 Factorize elf32 / elf64 code in Multiboot loader. This will
34791 prevent it from getting out of sync again.
34792
34793 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
34794 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
34795 grub_multiboot_load_elf64): Move from here ...
34796 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
34797 grub_multiboot_load_elf): ... to here (new file).
34798
51cd3dfc 347992009-02-27 Robert Millan <rmh@aybabtu.com>
34800
34801 * util/grub.d/10_linux.in: Rename "single-user mode" to
34802 "recovery mode".
34803
6e8c9c3a 348042009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34805
34806 Don't leak in SCSI code.
34807 * disk/scsi.c (grub_scsi_close): free `scsi'.
34808
4b6bf4f9 348092009-02-27 Robert Millan <rmh@aybabtu.com>
34810
34811 * loader/i386/pc/multiboot.c: Move from here ...
34812 * loader/i386/multiboot.c: ... to here. Update all users.
34813
b9413424 348142009-02-27 Robert Millan <rmh@aybabtu.com>
34815
34816 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34817 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34818
50fb7002 348192009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34820
34821 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34822 b-tree.
34823
8cc50345 348242009-02-27 Robert Millan <rmh@aybabtu.com>
34825
34826 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34827 `0x' qualifier as 0 when base is specified as parameter).
34828
6e09b8b7 348292009-02-24 Bean <bean123ch@gmail.com>
34830
34831 * configure.ac: Check for -mcmodel=large in x86_64 target.
34832
34833 * include/grub/efi/api.h (efi_call_10): New macro.
34834 (efi_wrap_10): New function.
34835
34836 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34837 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34838 (GRUB_PE32_REL_BASED_LOW): Likewise.
34839 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34840 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34841 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34842 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34843 (GRUB_PE32_REL_BASED_REL): Likewise.
34844 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34845 (GRUB_PE32_REL_BASED_DIR64): Likewise.
34846 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
34847
34848 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
34849 issue.
34850
34851 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
34852 (efi_wrap_10): New function.
34853
34854 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
34855
34856 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
34857 MB/MBP model (NV chipset).
34858 (devdata_devs): Add devpath_5 to the list.
34859
34860 * load/i386/efi/linux.c (video_base): Remove variable.
34861 (RGB_MASK): New macro.
34862 (RGB_MAGIC): Likewise.
34863 (LINE_MIN): Likewise.
34864 (LINE_MAX): Likewise.
34865 (FBTEST_STEP): Likewise.
34866 (FBTEST_COUNT): Likewise.
34867 (fb_list): New variable.
34868 (grub_find_video_card): Remove function.
34869 (find_framebuf): New function.
34870 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34871 line length.
34872
34873 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34874 problem for x86_64.
34875
74b21bee 348762009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34877
34878 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34879
34880 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34881 coding tool name.
34882
a455f472 348832009-02-22 Robert Millan <rmh@aybabtu.com>
34884
34885 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34886 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34887 in our relocation, instead of using it directly from heap. Also
34888 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34889
6374daf3 348902009-02-21 Robert Millan <rmh@aybabtu.com>
34891
34892 Implement USB keyboard support (based on patch by Marco Gerards)
34893
34894 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34895 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34896 (usb_keyboard_mod_LDFLAGS): New variables.
34897
34898 * term/usb_keyboard.c: New file.
34899
8fa4ea70 349002009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34901
34902 Corrected wrong declaration
34903
34904 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34905
353976ac 349062009-02-14 Christian Franke <franke@computer.org>
34907
34908 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34909 (grub_lspci_iter): Print class code and programming interface byte.
34910
6aa1169b 349112009-02-14 Christian Franke <franke@computer.org>
34912
34913 * gendistlist.sh: Ignore `.svn' directories.
34914
265372ca 349152009-02-14 Felix Zielcke <fzielcke@z-51.de>
34916
34917 * fs/fat.c: Add 2009 to Copyright line.
34918
9ff516f3 349192009-02-14 Christian Franke <franke@computer.org>
34920
34921 * commands/hdparm.c: New file. Provides `hdparm' command
34922 which sends ATA commands via grub_disk_ata_pass_through ().
34923
34924 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34925
34926 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34927 and <grub/cpu/io.h> to include/grub/ata.h.
34928 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34929 (GRUB_CDROM_SECTOR_SIZE): Remove.
34930 (GRUB_ATA_*): Move to include/grub/ata.h.
34931 (GRUB_ATAPI_*): Likewise.
34932 (enum grub_ata_commands): Likewise.
34933 (enum grub_ata_timeout_milliseconds): Likewise.
34934 (struct grub_ata_device): Likewise.
34935 (grub_ata_regset): Likewise.
34936 (grub_ata_regget): Likewise.
34937 (grub_ata_regset2): Likewise.
34938 (grub_ata_regget2): Likewise.
34939 (grub_ata_check_ready): Likewise.
34940 (grub_ata_wait_not_busy): Remove static, exported in
34941 include/grub/ata.h.
34942 (grub_ata_wait_drq): Likewise.
34943 (grub_ata_pio_read): Likewise.
34944
34945 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34946 function for hdparm.mod.
34947
34948 * include/grub/ata.h: New file, contains declarations from
34949 disk/ata.c.
34950 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34951
34952 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34953 (grub_disk_ata_pass_through): New exported variable.
34954
34955 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34956
772e23da 349572009-02-13 Colin D Bennett <colin@gibibit.com>
34958
34959 Support multiple fallback entries, and provide an API to support
34960 executing default+fallback menu entries. Renamed the `terminal' menu
34961 viewer to `text'.
34962
34963 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34964 variable declaration.
34965 (grub_menu_execute_callback): New structure declaration.
34966 (grub_menu_execute_callback_t): New typedef.
34967 (grub_menu_execute_with_fallback): New function declaration.
34968 (grub_menu_get_entry): Likewise.
34969 (grub_menu_get_timeout): Likewise.
34970 (grub_menu_set_timeout): Likewise.
34971
34972 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34973
34974 * normal/menu.c (grub_wait_after_message): Moved to
34975 `normal/menu_text.c'.
34976 (draw_border): Likewise.
34977 (print_message): Likewise.
34978 (print_entry): Likewise.
34979 (print_entries): Likewise.
34980 (grub_menu_init_page): Likewise.
34981 (get_entry_number): Likewise.
34982 (print_timeout): Likewise.
34983 (run_menu): Likewise.
34984 (grub_menu_execute_entry): Likewise.
34985 (show_text_menu): Likewise.
34986 (get_and_remove_first_entry_number): New function.
34987 (grub_menu_execute_with_fallback): Likewise.
34988 (get_entry): Renamed to ...
34989 (grub_menu_get_entry): .. this and made it global.
34990 (get_timeout): Renamed to ...
34991 (grub_menu_get_timeout): ... this and made it global.
34992 (set_timeout): Renamed to ...
34993 (grub_menu_set_timeout): ... this and made it global.
34994 (grub_normal_terminal_menu_viewer): Renamed to ...
34995 (grub_normal_text_menu_viewer): ... this.
34996
34997 * normal/menu_text.c: New file. Extracted text-menu-specific code
34998 from normal/menu.c.
34999
35000 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35001 (normal_mod_SOURCES): Likewise.
35002
35003 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35004 (normal_mod_SOURCES): Likewise.
35005
35006 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35007 (normal_mod_SOURCES): Likewise.
35008
35009 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35010 (normal_mod_SOURCES): Likewise.
35011
35012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35013 (normal_mod_SOURCES): Likewise.
35014
35015 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35016 (normal_mod_SOURCES): Likewise.
35017
35018 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35019 (normal_mod_SOURCES): Likewise.
35020
16ac430e 350212009-02-11 Robert Millan <rmh@aybabtu.com>
35022
35023 * util/grub.d/00_header.in: Update old reference to `font' command.
35024
06ff20fc 350252009-02-10 Felix Zielcke <fzielcke@z-51.de>
35026
35027 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35028
35029 Based on patch from Javier Martín.
35030
96da9407 350312009-02-09 Felix Zielcke <fzielcke@z-51.de>
35032
35033 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 35034 to avoid false positives with FAT.
96da9407 35035 (grub_fstest_SOURCES): Likewise.
35036 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35037 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35039 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35040 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35041 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35042
6dca6fe4 350432009-02-09 Felix Zielcke <fzielcke@z-51.de>
35044
06ff20fc 35045 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 35046 bpb.version_specific.fat12_or_fat16.fstype and
35047 bpb.version_specific.fat32.fstype.
35048
2550c62f 350492009-02-08 Robert Millan <rmh@aybabtu.com>
35050
be110b30 35051 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 35052
56978920 350532009-02-08 Robert Millan <rmh@aybabtu.com>
35054
35055 * Makefile.in (host_os, host_cpu): New variables.
35056 (target_os): Remove. Update all users.
35057
d64399b5 350582009-02-08 Marco Gerards <marco@gnu.org>
35059
35060 * Makefile.in (enable_grub_emu_usb): New variable.
35061 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35062 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35063 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35064 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35065 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35066 `usbtest.mod' and `usbms.mod'.
35067 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35068 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35069 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35070 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35071 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35072 variables.
35073
35074 * disk/usbms.c: New file.
35075
35076 * include/grub/usb.h: Likewise.
35077
35078 * include/grub/usbtrans.h: Likewise.
35079
35080 * include/grub/usbdesc.h: Likewise.
35081
35082 * bus/usb/usbtrans.c: Likewise.
35083
35084 * bus/usb/ohci.c: Likewise.
35085
35086 * bus/usb/uhci.c: Likewise.
35087
35088 * bus/usb/usbhub.c: Likewise.
35089
35090 * bus/usb/usb.c: Likewise.
35091
35092 * commands/usbtest.c: Likewise.
35093
35094 * util/usb.c: Likewise.
50fb7002 35095
d64399b5 35096 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35097
35098 * configure.ac: Test for libusb presence.
50fb7002 35099
d64399b5 35100 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35101
2b40d6bb 351022009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35103
35104 * kern/mm.c: Add more comments.
35105
73a4ce81 351062009-02-08 Robert Millan <rmh@aybabtu.com>
35107
35108 Patch from Javier Martín.
35109 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35110 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35111
f821ce59 351122009-02-08 Robert Millan <rmh@aybabtu.com>
35113
35114 * fs/cpio.c: Split tar functionality to ...
35115 * fs/tar.c: ... here (new file). Update all users.
35116
aebfc4b0 351172009-02-07 Robert Millan <rmh@aybabtu.com>
35118
35119 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35120 backward-incompatible features.
35121
35122 Based on patch from Javier Martín, with some adjustments.
35123
50fb7002 351242009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 35125
35126 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35127
0bb5115e 351282009-02-07 Robert Millan <rmh@aybabtu.com>
35129
35130 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35131 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35132 after the RAID stuff.
35133
38a0f8e7 351342009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35135
50fb7002 35136 Fixes problem when running vbetest command as reported by
38a0f8e7 35137 Vladimir Serbinenko <phcoder@gmail.com>.
35138
35139 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35140
3143cc1c 351412009-02-04 Felix Zielcke <fzielcke@z-51.de>
35142
35143 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35144 /dev/md/NpN style mdraid devices.
35145
9cba6fce 351462009-02-03 Felix Zielcke <fzielcke@z-51.de>
35147
35148 * util/unifont2pff.rb: Remove.
35149
e507a2c1 351502009-02-03 Felix Zielcke <fzielcke@z-51.de>
35151
35152 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35153 `#'.
35154
d2c2b4cd 351552009-02-03 Felix Zielcke <fzielcke@z-51.de>
35156
35157 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35158 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35159 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35160 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35162 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35163 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35164
b4315fb0 351652009-02-02 Christian Franke <franke@computer.org>
35166
35167 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35168
de3aa260 351692009-02-01 Felix Zielcke <fzielcke@z-51.de>
35170
7c3ff286 35171 * INSTALL: Note that we now require at least autoconf 2.59 and
35172 that LZO is optional.
de3aa260 35173
825a182b 351742009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35175
35176 Base on patch on bug #24154 created by Tomas Tintera
35177 <trosos@seznam.cz>.
35178
35179 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35180
a69ef770 351812009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35182
7c3ff286 35183 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 35184 <bero@arklinux.org>.
35185
35186 * normal/parser.y (script_init): Add missing semicolon.
35187
6fa42fa6 351882009-01-31 Colin D Bennett <colin@gibibit.com>
35189
7c3ff286 35190 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 35191 (free_menu_entry_classes): Added.
35192 (grub_normal_menu_addentry): Added class property handling.
35193 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35194 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35195
35196 * normal/menu_viewer.c: New file.
35197
35198 * normal/menu.c (run_menu_entry): Renamed to ...
35199 (grub_menu_execute_entry): ... this and made it as global.
35200 (grub_menu_run): Renamed to ...
35201 (show_text_menu): ... this and made it local.
35202 (show_text_menu): Adapt to new function names.
35203 (grub_normal_terminal_menu_viewer): New global variable.
35204
35205 * include/grub/menu.h: New file.
35206
35207 * include/grub/menu_viewer.h: New file.
35208
35209 * include/grub/normal.h: Added include to grub/menu.h.
35210 (grub_menu_entry): Moved to include/grub/menu.h.
35211 (grub_menu_entry_t): Likewise.
35212 (grub_menu): Likewise.
35213 (grub_menu_t): Likewise.
35214 (grub_normal_terminal_menu_viewer): Added.
35215 (grub_menu_execute_entry): Likewise.
35216 (grub_menu_run): Removed.
35217
35218 * DISTLIST: Added include/grub/menu.h.
35219 Added include/grub/menu_viewer.h.
35220 Added normal/menu_viewer.c.
35221
352222009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35223
35224 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35225 arglist for menutitle arguments.
35226
35227 * normal/main.c (grub_normal_menu_addentry): Likewise.
35228
35229 * normal/parser.y (menuentry): Likewise.
35230
35231 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35232
35233 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35234 (grub_script_create_cmdmenu): Likewise.
35235
35236 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35237
35238 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35239 changes.
35240
35241 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35242
35243 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35244
35245 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35246
35247 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35248
35249 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35250
35251 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35252
56192c23 352532009-01-30 Christian Franke <franke@computer.org>
35254
35255 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35256 in option help text.
35257
d72521b3 352582009-01-27 Pavel Roskin <proski@gnu.org>
35259
35260 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35261
994b5e84 352622009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35263
35264 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35265
35266 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35267
35268 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35269 unregister function.
35270
6a7eab2c 352712009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35272
35273 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35274
35275 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35276
35277 * util/grub-mkfont.c (usage): Fix typo.
35278
35279 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35280
1806b56e 352812009-01-26 Daniel Mierswa <impulze@impulze.org>
35282
3fb18f09 35283 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35284
336e1fb9 35285 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
35286
1806b56e 35287 * kern/misc.c (grub_strcasecmp): New function.
35288 (grub_strcasecmp): Use grub_size_t instead of int for length.
35289 Fix return value.
35290 * include/grub/misc.h: Update function prototypes.
35291
580b2a0f 352922009-01-26 Robert Millan <rmh@aybabtu.com>
35293
35294 * configure.ac: Fix cross-compilation check.
ef257b36 35295
d31c24f1 352962009-01-22 Christian Franke <franke@computer.org>
35297
35298 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
35299 (precision) digit string. Allow `.format2' without `format1' (width).
35300 Limit input chars for `%s' output to `format2' if specified. This is
35301 compatible with standard printf ().
35302
3138b44c 353032009-01-22 Christian Franke <franke@computer.org>
35304
35305 * disk/ata.c (grub_ata_wait_status): Replace by ...
35306 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
35307 other status bits may be invalid while BSY is asserted.
35308 (grub_ata_check_ready): New function.
35309 (grub_ata_cmd): Removed.
35310 (grub_ata_wait_drq): New function.
35311 (grub_ata_strncpy): Remove inline.
35312 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
35313 and error check now done by grub_ata_wait_drq ().
35314 (grub_ata_pio_write): Likewise.
35315 (grub_atapi_identify): Set DEV before check for !BSY. Use
35316 grub_ata_wait_drq () to wait for data.
35317 (grub_ata_device_initialize): Add status register check to
35318 detect missing SATA slave devices. Add debug messages.
35319 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
35320 (grub_atapi_packet): Set DEV before check for !BSY. Replace
35321 transfer loop by grub_ata_pio_write ().
35322 (grub_ata_identify): Set DEV before check for !BSY. Use
35323 grub_ata_wait_drq () to wait for data.
ef257b36 35324 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 35325 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
35326 read/write in one loop. Fix invalid command on write. Fix incomplete
35327 command on (size % batch) == 0. Add missing error check after write of
35328 last block. Add debug messages.
35329 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
35330
59a64ef6 353312009-01-19 Christian Franke <franke@computer.org>
35332
35333 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
35334 (GRUB_ATAPI_IREASON_*): Likewise.
35335 (grub_ata_pio_write): Fix timeout error return.
35336 (grub_atapi_identify): Add grub_ata_wait () after cmd.
35337 (grub_atapi_wait_drq): New function.
35338 (grub_atapi_packet): New parameter `size'.
35339 Use grub_atapi_wait_drq () and direct write instead of
35340 grub_ata_pio_write ().
35341 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
35342 reads the number of bytes requested by the device for each DRQ
35343 assertion.
35344 (grub_atapi_write): Remove old implementation, return not
35345 implemented instead.
35346
1cfe20b3 353472009-01-19 Christian Franke <franke@computer.org>
35348
35349 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
35350 of 512 to calculate data size.
35351 (grub_scsi_read12): Likewise.
35352 (grub_scsi_write10): Likewise.
35353 (grub_scsi_write12): Likewise.
35354 (grub_scsi_read): Adjust size according to blocksize.
35355 Add checks for invalid blocksize and unaligned transfer.
35356
bee5fe5d 353572009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
35358
35359 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
35360
ef257b36 35361 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 35362 width glyphs.
35363
3e643f8c 353642009-01-19 Robert Millan <rmh@aybabtu.com>
35365
35366 * config.guess: Update to latest version from config git.
35367 * config.sub: Likewise.
35368
4fa80998 353692009-01-17 Felix Zielcke <fzielcke@z-51.de>
35370
35371 * Makefile.in: Change font compilation to use new grub-mkfont instead
35372 of java version.
35373
35374 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
35375 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
35376 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35377 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35378 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
35379 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
35380 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
35381 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
35382 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35383
7086085b 353842009-01-16 Christian Franke <franke@computer.org>
35385
35386 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
35387 (enum grub_ata_timeout_milliseconds): New enum.
35388 (grub_ata_wait_status): Add parameter milliseconds.
35389 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
35390 recovery from timed-out commands.
35391 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
35392 return grub_errno instead of REG_ERROR.
35393 (grub_ata_pio_write): Add parameter milliseconds.
35394 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
35395 Pass milliseconds to grub_ata_wait_status () and
35396 grub_ata_pio_read ().
35397 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
35398 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
35399 grub_ata_wait_status (). Fix IDENTIFY timeout check.
35400 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
35401 It is not suitable for device detection, because DEV bit is ignored,
35402 the command may run too long, and not all devices set the signature
35403 properly.
35404 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
35405 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
35406 Fix device selection, DEV bit must be set first to address the registers
35407 of the correct device.
35408 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
35409 grub_ata_pio_read/write ().
35410 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
35411 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
35412
4a412913 354132009-01-13 Carles Pina i Estany <carles@pina.cat>
35414
35415 * util/grub-editenv.c (main): Use fseeko(), not fseek().
35416
7795c55e 354172009-01-13 Bean <bean123ch@gmail.com>
d913988c 35418
35419 * util/grub-mkfont.c (write_font): forget to remove some debug code.
35420
7795c55e 354212009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 35422
35423 * Makefile.in: (enable_grub_mkfont): New variable.
35424 (freetype_cflags): Likewise.
35425 (freetype_libs): Likewise.
35426
35427 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
35428 (grub_mkfont_SOURCES): New variable.
35429 (grub_mkfont_CFLAGS): Likewise.
35430 (grub_mkfont_LDFLAGS): Likewise.
35431
35432 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
35433 library if `--enable-grub-mkfont' is requested.
35434 (enable_grub_mkfont): New variable.
35435 (freetype_cflags): Likewise.
35436 (freetype_libs): Likewise.
35437
35438 * util/grub-mkfont.c: New file.
35439
093af1fe 354402009-01-12 Christian Franke <franke@computer.org>
35441
35442 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
35443 mode check. Fix setting of compat_use[].
35444
f36cc108 354452009-01-10 Robert Millan <rmh@aybabtu.com>
35446
35447 Update a few copyright years which we forgot to do in 2008 (only for
35448 files whose changes made in 2008 were copyright-significant)
35449
35450 * Makefile.in: Add 2008 to Copyright line.
35451 * disk/ieee1275/ofdisk.c: Likewise.
35452 * disk/efi/efidisk.c: Likewise.
35453 * kern/dl.c: Likewise.
35454 * kern/sparc64/ieee1275/init.c: Likewise.
35455 * kern/mm.c: Likewise.
35456 * kern/efi/mm.c: Likewise.
35457 * boot/i386/pc/boot.S: Likewise.
35458 * genfslist.sh: Likewise.
35459 * fs/iso9660.c: Likewise.
35460 * fs/hfs.c: Likewise.
35461 * fs/jfs.c: Likewise.
35462 * fs/minix.c: Likewise.
35463 * fs/ufs.c: Likewise.
35464 * gensymlist.sh.in: Likewise.
35465 * genkernsyms.sh.in: Likewise.
35466 * include/grub/misc.h: Likewise.
35467 * include/grub/types.h: Likewise.
35468 * include/grub/symbol.h: Likewise.
35469 * include/grub/elf.h: Likewise.
35470 * include/grub/kernel.h: Likewise.
35471 * include/grub/disk.h: Likewise.
35472 * include/grub/dl.h: Likewise.
35473 * include/grub/i386/linux.h: Likewise.
35474 * include/grub/i386/pc/biosdisk.h: Likewise.
35475 * include/grub/efi/api.h: Likewise.
35476 * include/grub/efi/pe32.h: Likewise.
35477 * include/grub/util/misc.h: Likewise.
35478 * normal/execute.c: Likewise.
35479 * normal/arg.c: Likewise.
35480 * normal/completion.c: Likewise.
35481 * normal/lexer.c: Likewise.
35482 * normal/parser.y: Likewise.
35483 * normal/misc.c: Likewise.
35484 * commands/i386/pc/vbeinfo.c: Likewise.
35485 * commands/hexdump.c: Likewise.
35486 * commands/terminal.c: Likewise.
35487 * commands/ls.c: Likewise.
35488 * commands/help.c: Likewise.
35489 * partmap/pc.c: Likewise.
35490 * loader/efi/chainloader.c: Likewise.
35491 * loader/multiboot_loader.c: Likewise.
35492 * loader/i386/pc/multiboot2.c: Likewise.
35493 * term/efi/console.c: Likewise.
35494 * term/i386/pc/serial.c: Likewise.
35495 * util/lvm.c: Likewise.
35496 * util/console.c: Likewise.
35497 * util/i386/efi/grub-mkimage.c: Likewise.
35498 * util/raid.c: Likewise.
35499
7f02114b 355002009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
35501
35502 * commands/videotest.c: Removed include to grub/machine/memory.h.
35503
35504 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
35505 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
35506 (video_mod_SOURCES): Removed.
35507 (video_mod_CFLAGS): Likewise.
35508 (video_mod_LDFLAGS): Likewise.
35509 (gfxterm_mod_SOURCES): Likewise.
35510 (gfxterm_mod_CFLAGS): Likewise.
35511 (gfxterm_mod_LDFLAGS): Likewise.
35512 (videotest_mod_SOURCES): Likewise.
35513 (videotest_mod_CFLAGS): Likewise.
35514 (videotest_mod_LDFLAGS): Likewise.
35515 (bitmap_mod_SOURCES): Likewise.
35516 (bitmap_mod_CFLAGS): Likewise.
35517 (bitmap_mod_LDFLAGS): Likewise.
35518 (tga_mod_SOURCES): Likewise.
35519 (tga_mod_CFLAGS): Likewise.
35520 (tga_mod_LDFLAGS): Likewise.
35521 (jpeg_mod_SOURCES): Likewise.
35522 (jpeg_mod_CFLAGS): Likewise.
35523 (jpeg_mod_LDFLAGS): Likewise.
35524 (png_mod_SOURCES): Likewise.
35525 (png_mod_CFLAGS): Likewise.
35526 (png_mod_LDFLAGS): Likewise.
35527
35528 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
35529 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
35530 (video_mod_SOURCES): Added.
35531 (video_mod_CFLAGS): Likewise.
35532 (video_mod_LDFLAGS): Likewise.
35533 (videotest_mod_SOURCES): Likewise.
35534 (videotest_mod_CFLAGS): Likewise.
35535 (videotest_mod_LDFLAGS): Likewise.
35536 (bitmap_mod_SOURCES): Likewise.
35537 (bitmap_mod_CFLAGS): Likewise.
35538 (bitmap_mod_LDFLAGS): Likewise.
35539 (tga_mod_SOURCES): Likewise.
35540 (tga_mod_CFLAGS): Likewise.
35541 (tga_mod_LDFLAGS): Likewise.
35542 (jpeg_mod_SOURCES): Likewise.
35543 (jpeg_mod_CFLAGS): Likewise.
35544 (jpeg_mod_LDFLAGS): Likewise.
35545 (png_mod_SOURCES): Likewise.
35546 (png_mod_CFLAGS): Likewise.
35547 (png_mod_LDFLAGS): Likewise.
35548 (gfxterm_mod_SOURCES): Likewise.
35549 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 35550 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 35551
35552 * term/gfxterm.c: Removed include to grub/machine/memory.h,
35553 grub/machine/console.h.
35554
644fff97 355552009-01-04 Jerone Young <jerone@gmail.com>
35556
35557 Make on screen instructions clearer
35558
35559 Based on patch created by Jidanni <jidanni@jidanni.org>
35560
35561 * normal/menu.c: print clearer instructions on the screen
35562
1e901a75 355632009-01-02 Colin D Bennett <colin@gibibit.com>
35564
35565 New font engine.
34c44600 35566
1e901a75 35567 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
35568 build system and fixed gfxterm.c to work with different sized fonts.
35569
35570 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 35571
1e901a75 35572 * configure: Re-generated.
34c44600 35573
1e901a75 35574 * DISTLIST: Removed font/manager.c.
35575 Added font/font.c.
35576 Added font/font_cmd.c.
34c44600 35577
1e901a75 35578 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
35579 compilation.
34c44600 35580
1e901a75 35581 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 35582
35583 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 35584
35585 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 35586
1e901a75 35587 * normal/menu.c: Likewise.
34c44600 35588
1e901a75 35589 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
35590 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 35591
1e901a75 35592 * include/grub/font.h: Replaced with new file.
34c44600 35593
1e901a75 35594 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
35595 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
35596 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
35597 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
35598 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 35599 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 35600 fg_red, fg_green, fg_blue, fg_alpha.
35601 (grub_video_adapter): Removed blit_glyph.
34c44600 35602 (grub_video_blit_glyph): Removed.
35603
1e901a75 35604 * font/manager.c: Removed file.
34c44600 35605
35606 * font/font.c: New file.
35607
1e901a75 35608 * font/font_cmd.c: Likewise.
34c44600 35609
1e901a75 35610 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 35611
1e901a75 35612 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
35613 (grub_video_vbe_map_rgba): Likewise.
35614 (grub_video_vbe_unmap_color_int): Likewise.
35615 (grub_video_vbe_blit_glyph): Removed.
35616 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 35617
1e901a75 35618 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
35619 (get_pixel): Likewise.
34c44600 35620 (set_pixel): Likewise.
35621
1e901a75 35622 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 35623
1e901a75 35624 * term/gfxterm.c: Adapted to new font engine.
34c44600 35625
1e901a75 35626 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 35627
1e901a75 35628 * term/i386/pc/vga.c: Likewise.
34c44600 35629
1e901a75 35630 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 35631
1e901a75 35632 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 35633
1e901a75 35634 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35635
1e901a75 35636 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35637
1e901a75 35638 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 35639
1e901a75 35640 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 35641
1e901a75 35642 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 35643
1e901a75 35644 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 35645
1e901a75 35646 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35647
35648 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 35649
1e901a75 35650 * util/grub-mkconfig_lib.in: Changed font extension.
35651
278922e8 356522008-12-28 Felix Zielcke <fzielcke@z-51.de>
35653
35654 * util/getroot.c (grub_util_get_grub_dev): Add support for
35655 /dev/md/dNNpNN style partitionable mdraid devices.
35656
3ced05cf 356572008-12-12 Alex Smith <alex@alex-smith.me.uk>
35658
35659 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
35660 at a time limit of the PXE TFTP API correctly.
35661 (grub_pxefs_close): Likewise.
35662
7fd0ee30 356632008-11-29 Robert Millan <rmh@aybabtu.com>
35664
34c44600 35665 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 35666 grub_ata_device_initialize() calls.
35667
34c44600 356682008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 35669
35670 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
35671 iteration failed.
35672 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
35673
89313780 356742008-11-28 Robert Millan <rmh@aybabtu.com>
35675
35676 Fix build on powerpc-ieee1275. Based on patch created by
35677 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
35678 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35679 `kern/ieee1275/mmap.c'.
35680 * include/grub/powerpc/ieee1275/memory.h: New file.
35681
15257703 35682 Provide grub-install on coreboot.
35683 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
35684 (grub_install_SOURCES): New variable.
35685 * util/i386/pc/grub-install.in: Add a few condition checks to make it
35686 usable on coreboot.
35687
9fc5388a 356882008-11-25 Felix Zielcke <fzielcke@z-51.de>
35689
35690 * util/grub-fstest.c (grub_term_get_current_input): Change return type
35691 to `grub_term_input_t'.
35692 (grub_term_get_current_output): Change return type to
35693 `grub_term_output_t'.
35694
bc3a2f31 356952008-11-22 Robert Millan <rmh@aybabtu.com>
35696
34c44600 35697 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 35698 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
35699 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
35700 grub_vga_text_cls().
35701
80fc88f2 35702 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 35703 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 35704
cbf36fd3 35705 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
35706 to 0x200000 (avoids trouble with some OFW implementations, and matches
35707 with the one in Yaboot).
35708 Reported by Manoel Abranches
35709
73e8e268 357102008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 35711
35712 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
35713 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
35714
73e8e268 35715 * util/grub-mkconfig_lib.in (grub_warn): New function.
35716 (convert_system_path_to_grub_path): Use grub_warn() when issuing
35717 warnings, to obtain consistent formatting.
35718 * util/grub.d/00_header.in: Likewise.
35719 * util/update-grub_lib.in: Likewise.
35720
e94045a1 35721 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 35722 Move comment text to `#error' stanza.
e94045a1 35723
79d29fd7 35724 Harmonize ieee1275's grub_available_iterate() with the generic
35725 grub_machine_mmap_iterate() interface (fixes a recently-introduced
35726 build problem on i386-ieee1275):
35727 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
35728 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
35729 parameter `type'. Update all users of this function.
35730 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
35731 `kern/ieee1275/mmap.c'.
35732 * kern/ieee1275/init.c
35733 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
35734 with ...
35735 (grub_machine_mmap_iterate): ... this.
35736 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
35737 return type to `grub_err_t'. Update all implementations of this
35738 function prototype.
35739 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
35740 Likewise.
35741
60d6b16e 35742 Add `lsmmap' command (lists firmware-provided memory map):
35743 * commands/lsmmap.c: New file.
35744 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
35745 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
35746 variables.
35747 * conf/powerpc-ieee1275.rmk: Likewise.
35748 * conf/i386-coreboot.rmk: Likewise.
35749 * conf/i386-ieee1275.rmk: Likewise.
35750
ebaaf49b 357512008-11-19 Robert Millan <rmh@aybabtu.com>
35752
35753 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 35754 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
35755 constraints to initrd allocation (based on code from
35756 loader/i386/pc/linux.c). Without them, initrd was allocated too high
35757 for Linux to find it.
ebaaf49b 35758
dfab719f 357592008-11-14 Robert Millan <rmh@aybabtu.com>
35760
35761 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
35762 order to cope with duplicate slashes.
35763
10fc3eb9 357642008-11-14 Robert Millan <rmh@aybabtu.com>
35765
35766 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
35767 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
35768 don't want to mess with lower memory, because it is used in the Linux
35769 loader.
35770
35771 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 35772 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 35773 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
35774 is in our heap (probably as a result of it being corrupted during
2f2a3442 35775 decompression). Add #error instance with comment to explain why this
35776 loader isn't currently usable on PC/BIOS.
10fc3eb9 35777
e2e07847 357782008-11-14 Robert Millan <rmh@aybabtu.com>
35779
35780 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 35781 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 35782
fe8e8d69 357832008-11-12 Robert Millan <rmh@aybabtu.com>
35784
35785 Make loader/i386/linux.c buildable on i386-pc (although disabled).
35786
35787 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
35788 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
35789 from here ...
35790 * include/grub/i386/pc/memory.h: ... to here.
35791
976b07d0 357922008-11-12 Robert Millan <rmh@aybabtu.com>
35793
35794 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
35795 split).
35796
35797 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
35798 (grub_console_cur_color, grub_console_real_putchar)
35799 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35800 (grub_console_setcolorstate, grub_console_setcolor)
35801 (grub_console_getcolor): Move from here ...
35802 * include/grub/i386/vga_common.h: ... to here (new file).
35803
35804 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
35805 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
35806 `<grub/i386/io.h>'.
35807 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
35808 `<grub/i386/vga_common.h>'.
35809
76679cd3 358102008-11-12 Robert Millan <rmh@aybabtu.com>
35811
35812 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35813 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35814 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35815 variables.
35816 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35817 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35818
35819 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35820 grub_console_init() with call to grub_vga_text_init().
35821 (grub_machine_fini): Replace call to
35822 grub_console_fini() with call to grub_vga_text_fini() and
35823 grub_at_keyboard_fini().
35824
35825 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35826 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35827 (grub_console_setcolorstate, grub_console_setcolor)
35828 (grub_console_getcolor): New function prototypes.
35829
35830 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35831 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35832 (grub_vga_text_setcursor): Static-ize.
35833 (grub_vga_text_term): New structure.
35834 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35835
35836 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35837 (grub_console_cur_color, grub_console_standard_color)
35838 (grub_console_normal_color, grub_console_highlight_color)
35839 (map_char, grub_console_putchar, grub_console_getcharwidth)
35840 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35841 (grub_console_getcolor): Move from here ...
35842 * term/i386/vga_common.c: ... to here (same function names).
35843
95b841d3 358442008-11-12 Robert Millan <rmh@aybabtu.com>
35845
35846 Use newly-added Multiboot support in coreboot.
35847
35848 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35849 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
35850
35851 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
35852 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
35853 (codestart): Store the MBI in `startup_multiboot_info' when we're
35854 being loaded using Multiboot.
35855
35856 * kern/i386/coreboot/init.c (grub_machine_init): Move
35857 grub_at_keyboard_init() call to beginning of function (useful for
35858 debugging). Call grub_machine_mmap_init() before attempting to use
35859 grub_machine_mmap_iterate().
35860 (grub_lower_mem, grub_upper_mem): Move from here ...
35861 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35862 here (new file).
35863
35864 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35865 function prototype.
35866
761ca975 358672008-11-12 Robert Millan <rmh@aybabtu.com>
35868
35869 Fix a regression introduced by the at_keyboard.mod split. Because
35870 some terminals are default on some platforms and non-default on
35871 others, the first terminal being registered determines which is
35872 going to be default.
35873
35874 * kern/term.c (grub_term_register_input): If this is the first
35875 terminal being registered, set it as the current one.
35876 (grub_term_register_output): Likewise.
35877
35878 * term/efi/console.c (grub_console_init): Do not call
35879 grub_term_set_current_output() or grub_term_set_current_input().
35880 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35881 * term/i386/pc/console.c (grub_console_init): Likewise.
35882 (grub_console_fini): Do not call grub_term_set_current_input()
35883 (but leave grub_term_set_current_output() to restore text mode).
35884
6c529df7 358852008-11-10 Robert Millan <rmh@aybabtu.com>
35886
35887 * util/grub.d/00_header.in: Add backward compatibility check for
35888 versions of terminal.mod that don't understand `terminal_input' or
35889 `terminal_output'.
35890
132e4113 358912008-11-09 Robert Millan <rmh@aybabtu.com>
35892
35893 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35894 `terminal_input' / `terminal_output', not `terminal'.
35895
ac293d50 358962008-11-08 Robert Millan <rmh@aybabtu.com>
35897
35898 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35899 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35900
0025933a 359012008-11-08 Robert Millan <rmh@aybabtu.com>
35902
35903 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35904 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35905 members. Update all users.
35906 * util/console.c (grub_ncurses_term): Split in ...
35907 (grub_ncurses_term_input): ... this, and ...
35908 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35909 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35910
37c86336 359112008-11-08 Robert Millan <rmh@aybabtu.com>
35912
35913 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35914 (PKGDATA): Add $(pkgdata_SRCDIR).
35915 (pkglib_BUILDDIR): New variable.
35916 (pkgdata_SRCDIR): New variable.
35917 (build_env.mk): New target.
35918 (include_DATA): New variable.
35919 (install-local): Install $(include_DATA) files in $(includedir).
35920
b6c15a2d 359212008-11-07 Pavel Roskin <proski@gnu.org>
35922
d99d46f1 35923 * gendistlist.sh: Use C locale for sorting to ensure consistent
35924 output on all systems.
35925
b6c15a2d 35926 * util/grub.d/00_header.in: Remove incorrect space before
35927 "serial".
35928
c32ee8c9 359292008-11-07 Robert Millan <rmh@aybabtu.com>
35930
35931 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35932 per specification.
35933 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35934 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35935 (based on find_multi_boot1_header).
35936 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35937 using find_multi_boot2_header(), and abort if neither Multiboot or
35938 Multiboot headers were found.
35939
651c29b7 359402008-11-07 Robert Millan <rmh@aybabtu.com>
35941
35942 Modularize at_keyboard.mod:
35943
35944 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35945 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35946 (at_keyboard_mod_LDFLAGS): New variables.
35947
35948 Actual terminal split:
35949
35950 * include/grub/term.h (struct grub_term): Split in ...
35951 (struct grub_term_input): ... this, and ...
35952 (struct grub_term_output): ... this. Update all users.
35953 (grub_term_set_current): Split in ...
35954 (grub_term_set_current_input): ... this, and ...
35955 (grub_term_set_current_output): ... this.
35956 (grub_term_get_current): Split in ...
35957 (grub_term_get_current_input): ... this, and ...
35958 (grub_term_get_current_output): ... this.
35959 (grub_term_register): Split in ...
35960 (grub_term_register_input): ... this, and ...
35961 (grub_term_register_output): ... this.
35962 (grub_term_unregister): Split in ...
35963 (grub_term_unregister_input): ... this, and ...
35964 (grub_term_unregister_output): ... this.
35965 (grub_term_iterate): Split in ...
35966 (grub_term_iterate_input): ... this, and ...
35967 (grub_term_iterate_output): ... this.
35968
35969 * kern/term.c (grub_term_list): Split in ...
35970 (grub_term_list_input): ... this, and ...
35971 (grub_term_list_output): ... this. Update all users.
35972 (grub_cur_term): Split in ...
35973 (grub_cur_term_input): ... this, and ...
35974 (grub_cur_term_output): ... this. Update all users.
35975 (grub_term_set_current): Split in ...
35976 (grub_term_set_current_input): ... this, and ...
35977 (grub_term_set_current_output): ... this.
35978 (grub_term_get_current): Split in ...
35979 (grub_term_get_current_input): ... this, and ...
35980 (grub_term_get_current_output): ... this.
35981 (grub_term_register): Split in ...
35982 (grub_term_register_input): ... this, and ...
35983 (grub_term_register_output): ... this.
35984 (grub_term_unregister): Split in ...
35985 (grub_term_unregister_input): ... this, and ...
35986 (grub_term_unregister_output): ... this.
35987 (grub_term_iterate): Split in ...
35988 (grub_term_iterate_input): ... this, and ...
35989 (grub_term_iterate_output): ... this.
35990
35991 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
35992 a check for input and one for output (and only attempt to get keys
35993 from user when input works).
35994
35995 * util/grub-probe.c (grub_term_get_current): Split in ...
35996 (grub_term_get_current_input): ... this, and ...
35997 (grub_term_get_current_output): ... this.
35998 * util/grub-fstest.c: Likewise.
35999 * util/i386/pc/grub-setup.c: Likewise.
36000 * util/grub-editenv.c: Likewise.
36001
36002 Portability adjustments:
36003
36004 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36005 `term/i386/pc/at_keyboard.c'.
36006 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36007 grub_keyboard_controller_init() (now handled by terminal .init).
36008 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36009 grub_at_keyboard_init().
36010 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36011 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36012 at_keyboard.mod via input terminal interface).
36013 * include/grub/i386/coreboot/console.h: Convert into a stub for
36014 `<grub/i386/pc/console.h>'.
36015
36016 Migrate full terminals to new API:
36017
36018 * term/efi/console.c (grub_console_term): Split into ...
36019 (grub_console_term_input): ... this, and ...
36020 (grub_console_term_output): ... this. Update all users.
36021 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36022 (grub_ofconsole_init): Split into ...
36023 (grub_ofconsole_init_input): ... this, and ...
36024 (grub_ofconsole_init_output): ... this.
36025 (grub_ofconsole_term): Split into ...
36026 (grub_ofconsole_term_input): ... this, and ...
36027 (grub_ofconsole_term_output): ... this. Update all users.
36028 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36029 (grub_serial_term_input): ... this, and ...
36030 (grub_serial_term_output): ... this. Update all users.
36031 * term/i386/pc/console.c (grub_console_term): Split into ...
36032 (grub_console_term_input): ... this, and ...
36033 (grub_console_term_output): ... this. Update all users.
36034 (grub_console_term_input): Only enable it on PC/BIOS platform.
36035 (grub_console_init): Remove grub_keyboard_controller_init() call.
36036
36037 Migrate input terminals to new API:
36038
36039 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36040 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36041 i386-specific anyway).
36042 (grub_console_checkkey): Rename to ...
36043 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36044 users.
36045 (grub_keyboard_controller_orig): New variable.
36046 (grub_console_getkey): Rename to ...
36047 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36048 users.
36049 (grub_keyboard_controller_init): Static-ize. Save original
36050 controller value so that it can be restored ...
36051 (grub_keyboard_controller_fini): ... here (new function).
36052 (grub_at_keyboard_term): New structure.
36053 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36054 functions.
36055
36056 Migrate output terminals to new API:
36057
36058 * term/i386/pc/vga.c (grub_vga_term): Change type to
36059 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36060 members. Update all users.
36061 * term/gfxterm.c (grub_video_term): Change type to
36062 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36063 members. Update all users.
36064 * include/grub/i386/pc/console.h (grub_console_checkkey)
36065 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36066 etc).
36067
36068 Migrate `terminal' command and userland tools to new API:
36069
36070 * commands/terminal.c (grub_cmd_terminal): Split into ...
36071 (grub_cmd_terminal_input): ... this, and ...
36072 (grub_cmd_terminal_output): ... this.
36073 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36074 `terminal_input' and `terminal_output'.
36075 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36076 `terminal_input' / `terminal_output' API.
36077 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36078 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36079 provided ${GRUB_TERMINAL}, convert it).
36080
96e5d876 360812008-11-04 Robert Millan <rmh@aybabtu.com>
36082
36083 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36084 for FreeBSD.
36085 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36086
556f3775 360872008-11-03 Bean <bean123ch@gmail.com>
36088
36089 * kern/elf.c (grub_elf32_load): Revert to previous code.
36090 (grub_elf64_load): Likewise.
36091
36092 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36093
926b9823 360942008-11-01 Robert Millan <rmh@aybabtu.com>
36095
36096 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36097 (TARGET_CPPFLAGS): Likewise.
36098 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36099
1432e958 361002008-11-01 Carles Pina i Estany <carles@pina.cat>
36101
36102 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36103
dba3f844 361042008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 36105
36106 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36107 addition of objects until the code is not going to be able to fail.
36108
dba3f844 361092008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 36110
36111 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36112 (add a missing NULL check, and correct them by moving the pointer
36113 operations after the actual check).
36114
7ab28c21 361152008-10-29 Robert Millan <rmh@aybabtu.com>
36116
36117 * util/i386/pc/grub-install.in: Handle empty string as output from
36118 make_system_path_relative_to_its_root().
36119
1b7748eb 361202008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36121
36122 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36123 circular metadata worst case scenario. If the metadata is circular
36124 then copy the wrap in place.
36125 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36126 project lib/format_text/layout.h
36127 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36128
c9618ab2 361292008-10-03 Felix Zielcke <fzielcke@z-51.de>
36130
7a36edca 36131 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 36132
bf981c62 361332008-10-03 Felix Zielcke <fzielcke@z-51.de>
36134
36135 * util/update-grub_lib.in: Mention filename in warning message.
36136
6d994591 361372008-09-29 Felix Zielcke <fzielcke@z-51.de>
36138
36139 * NEWS: Update for rename of update-grub to grub-mkconfig.
36140
18ade780 361412008-09-29 Felix Zielcke <fzielcke@z-51.de>
36142
36143 * util/update-grub_lib.in: Copy to ...
36144 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 36145 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 36146 * util/update-grub.in: Rename to ...
36147 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36148 option. Add `--output' option to allow users to specify the generated
36149 configuration file. Default to stdout.
36150 (update_grub_dir): Rename to ...
36151 (grub_mkconfig_dir): ... this.
36152 (grub_cfg): Default to an empty string.
36153 * conf/common.rmk (update-grub): Rename to ...
36154 (grub-mkconfig): ... this.
36155 (update-grub_lib): Copy to ...
36156 (grub-mkconfig_lib): ... this.
36157 (update-grub_SCRIPTS): Copy to ...
36158 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36159 (update-grub_DATA): Rename to ...
36160 (grub-mkconfig_DATA): ... this.
36161
556ce6ac 361622008-09-28 Robert Millan <rmh@aybabtu.com>
36163
36164 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36165 to `modified'. Add the real `created' field.
36166 (grub_iso9660_uuid): Use `modified' rather than `created' for
36167 constructing the UUID.
36168
361692008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 36170
36171 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36172 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36173
92274e85 361742008-09-28 Bean <bean123ch@gmail.com>
36175
36176 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36177 Thanks to Christian Franke for finding this bug.
36178
add6f17a 361792008-09-25 Robert Millan <rmh@aybabtu.com>
36180
36181 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36182 instances of grub_util_get_disk_name() (see previous commit).
36183
d2a367b8 361842008-09-25 Robert Millan <rmh@aybabtu.com>
36185
36186 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36187 `util/i386/get_disk_name.c'.
36188 * conf/i386-efi.rmk: Likewise.
36189 * conf/x86_64-efi.rmk: Likewise.
36190 * conf/i386-coreboot.rmk: Likewise.
36191 * conf/i386-ieee1275.rmk: Likewise.
36192 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36193 `util/ieee1275/get_disk_name.c'.
36194 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36195 * util/ieee1275/get_disk_name.c: Remove file.
36196 * util/i386/get_disk_name.c: Remove file.
36197 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36198 "hd%d" for device.map entries, rather than using
36199 grub_util_get_disk_name().
36200
81a06771 362012008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 36202
36203 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36204 warning.
36205 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36206
5a004279 362072008-09-24 Carles Pina i Estany <carles@pina.cat>
36208
36209 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36210 Changed to 0x5100.
36211 (GRUB_TERM_PPAGE): Changed to 0x4900.
36212
397093d3 362132008-09-24 Robert Millan <rmh@aybabtu.com>
36214
36215 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36216 macros (they were i386-pc specific).
36217 * include/grub/sparc64/ieee1275/console.h: Likewise.
36218 * include/grub/efi/console.h: Likewise.
36219
a91b6c7c 362202008-09-22 Bean <bean123ch@gmail.com>
36221
36222 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36223 resident and in attribute list.
36224
36225 * include/grub/ntfs.h (BMP_LEN): Removed.
36226
c40fd116 362272008-09-22 Bean <bean123ch@gmail.com>
36228
81a06771 36229 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 36230 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36231
36232 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36233 error occurs, as grub_disk_open will call grub_disk_close, which will
36234 call p->close (scsi).
36235
81a06771 362362008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 36237
36238 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36239 (AC_PREREQ): Bumped to 2.59.
36240 (AC_TRY_COMPILE): Replace obsolete macro with ...
36241 (AC_COMPILE_IFELSE): ... this.
36242 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36243 (AC_LINK_IFELSE): ... this.
36244
5dc43410 362452008-09-21 Felix Zielcke <fzielcke@z-51.de>
36246
36247 * autogen.sh: Add a call to `gendistlist.sh'.
36248
9035dce4 362492008-09-19 Christian Franke <franke@computer.org>
36250
36251 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36252 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36253 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36254 Export __enable_execute_stack() to modules.
36255 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36256 New function.
36257
7fd75377 362582008-09-09 Felix Zielcke <fzielcke@z-51.de>
36259
040030b3 36260 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36261 Sort the list.
36262
362632008-09-09 Felix Zielcke <fzielcke@z-51.de>
36264
36265 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 36266 #include <grub/util/hostdisk.h>.
36267
89d5ffcf 362682008-09-08 Robert Millan <rmh@aybabtu.com>
36269
36270 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36271 segments when their filesz is zero (grub_file_read() interprets
81a06771 36272 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 36273 Use `lowest_segment' rather than 0 for calculating the current
36274 segment load address.
36275
40da438f 362762008-09-08 Robert Millan <rmh@aybabtu.com>
36277
36278 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36279 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36280 clobbered useful information.
36281
ddbf5556 362822008-09-08 Robert Millan <rmh@aybabtu.com>
36283
36284 * include/grub/util/biosdisk.h: Move to ...
36285 * include/grub/util/hostdisk.h: ... here. Update all users.
36286 * util/biosdisk.c: Move to ...
36287 * util/hostdisk.c: ... here. Update all users.
36288
783d0f48 362892008-09-07 Robert Millan <rmh@aybabtu.com>
36290
36291 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
36292 variables.
36293 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
36294 and length can be stored directly in the `mbi->mmap_addr' and
36295 `mbi->mmap_length' struct fields.
36296
548e2ea5 362972008-09-07 Robert Millan <rmh@aybabtu.com>
36298
36299 * conf/i386.rmk: New file. Provides declaration for building
36300 `cpuid.mod'.
36301 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
36302 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
36303 variables.
36304 Include `conf/i386.mk'.
36305 * conf/i386-efi.rmk: Likewise.
36306 * conf/x86_64-efi.rmk: Likewise.
36307 * conf/i386-coreboot.rmk: Likewise.
36308 * conf/i386-ieee1275.rmk: Likewise.
36309
0ea85a37 363102008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
36311
36312 Based on patch created by Colin D Bennett <colin@gibibit.com>.
36313 Adds optimization support for BGR based modes.
36314
36315 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
36316 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36317 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36318 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36319 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36320 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36321 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36322 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36323 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36324 (grub_video_i386_vbeblit_index_index): Likewise.
36325 (grub_video_i386_vbeblit_replace_directN): Added.
36326 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36327 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36328 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36329 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36330 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36331 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 36332 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 36333 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36334 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36335 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36336 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36337 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36338 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36339
36340 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
36341 (grub_video_i386_vbefill_R8G8B8): Likewise.
36342 (grub_video_i386_vbefill_index): Likewise.
36343 (grub_video_i386_vbefill_direct32): Added.
36344 (grub_video_i386_vbefill_direct24): Likewise.
36345 (grub_video_i386_vbefill_direct16): Likewise.
36346 (grub_video_i386_vbefill_direct8): Likewise.
36347
81a06771 36348 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 36349 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
36350 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
36351 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
36352 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
36353 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 36354
0ea85a37 36355 * video/video.c (grub_video_get_blit_format): Updated to use new
36356 blit formats. Added handling for 16 bit color modes.
81a06771 36357
36358 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 36359 fillers.
36360 (common_blitter): Updated to use new blitters.
36361
36362 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
36363 Removed.
36364 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36365 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36366 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36367 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36368 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36369 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36370 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36371 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36372 (grub_video_i386_vbeblit_index_index): Likewise.
36373 (grub_video_i386_vbeblit_replace_directN): Added.
36374 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36375 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36376 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36377 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36378 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36379 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36380 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36381 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36382 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36383 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36384 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36385 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36386 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 36387
0ea85a37 36388 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
36389 (grub_video_i386_vbefill_R8G8B8): Likewise.
36390 (grub_video_i386_vbefill_index): Likewise.
36391 (grub_video_i386_vbefill_direct32): Added.
36392 (grub_video_i386_vbefill_direct24): Likewise.
36393 (grub_video_i386_vbefill_direct16): Likewise.
36394 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 36395
0ea85a37 36396 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
36397 types.
81a06771 36398
0ea85a37 36399 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
36400 types.
81a06771 36401
0ea85a37 36402 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
36403 blitter types.
81a06771 36404
0ea85a37 36405 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
36406 types.
36407
e8a83df6 364082008-09-06 Felix Zielcke <fzielcke@z-51.de>
36409
36410 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
36411 RAID level 1.
36412
6bcd8ee5 364132008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 36414
6bcd8ee5 36415 * fs/iso9660.c (grub_iso9660_date): New structure.
36416 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
36417 (grub_iso9660_uuid): New function.
c375ae58 36418
59261157 364192008-09-05 Bean <bean123ch@gmail.com>
36420
36421 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
36422
36423 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
36424 insensitive bit for names in Win32 and Win32 & DOS namespace.
36425
36426 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
36427
36428 * include/grub/types.h (LONG_MAX): Likewise.
36429
58b6645a 364302008-09-04 Felix Zielcke <fzielcke@z-51.de>
36431
4ee55921 36432 * util/getroot.c: Include <config.h>.
36433 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
36434 add support for /dev/md/N devices and handle LVM double dash escaping.
36435
364362008-09-04 Felix Zielcke <fzielcke@z-51.de>
36437
36438 * config.guess: Update to latest version from config git.
36439 * config.sub: Likewise.
58b6645a 36440
9124f65d 364412008-09-03 Robert Millan <rmh@aybabtu.com>
36442
36443 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
36444 `disk->total_sectors'.
36445
81a06771 364462008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 36447
36448 * include/grub/normal.h: Fixed incorrect comment for
36449 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
36450
81a06771 364512008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 36452
36453 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
36454 values with defines.
36455
36456 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
36457 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
36458 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
36459 (GRUB_VBE_MODEATTR_COLOR): Likewise.
36460 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
36461 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
36462 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
36463 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
36464 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
36465 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
36466 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
36467 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
36468 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
36469 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
36470 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
36471 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
36472 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
36473 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
36474 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
36475
93d5cbf8 364762008-08-31 Robert Millan <rmh@aybabtu.com>
36477
36478 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
36479 declaration.
36480 (grub_multiboot): Fix a few warnings.
36481
21751d50 364822008-08-31 Robert Millan <rmh@aybabtu.com>
36483
36484 * loader/i386/pc/multiboot.c: Update comment not to say that
36485 boot_device support is unimplemented.
36486
e27a75c5 364872008-08-31 Robert Millan <rmh@aybabtu.com>
36488
36489 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
36490 or memory map support are unimplemented.
36491
81a06771 364922008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 36493
36494 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
36495
81a06771 364962008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 36497
36498 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
36499 total video memory in 'vbeinfo' output; show color format details for
36500 each video mode.
36501
7c5d8d95 365022008-08-30 Pavel Roskin <proski@gnu.org>
36503
36504 * util/genmoddep.c: Remove for real this time.
36505 * DISTLIST: Remove util/genmoddep.c.
36506
4cebd25a 365072008-08-30 Robert Millan <rmh@aybabtu.com>
36508
36509 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
36510 as required by Multiboot spec (it was already 4-byte aligned, but
36511 only by chance).
36512
b497a269 365132008-08-29 Pavel Roskin <proski@gnu.org>
36514
e3925185 36515 * kern/powerpc/ieee1275/crt0.S: Rename to ...
36516 * kern/powerpc/ieee1275/startup.S: ... this.
36517 * conf/powerpc-ieee1275.rmk: Adjust for the above.
36518 * DISTLIST: Likewise.
36519
b497a269 36520 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
36521 grub/cpu/kernel.h. Add start label for consistency with other
36522 platforms. Add grub_prefix immediately after start. Add jump
36523 to the code after grub_prefix.
36524 * include/grub/powerpc/kernel.h: Provide valid values for
36525 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
36526
6e5a42fe 365272008-08-29 Bean <bean123ch@gmail.com>
36528
36529 * configure.ac: Change host_os to cygwin for mingw.
36530 (asprintf): New check for function.
36531
36532 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
36533 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
36534
36535 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 36536 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 36537 sync, sleep and grub_util_get_disk_size for mingw.
36538
36539 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
36540 to get size in mingw.
36541 (open_device): Use flag O_BINARY if it's defined.
36542 (find_root_device): Add dummy code for mingw.
36543
36544 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
36545 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
36546 (get_scsi_disk_name): Return 0 for mingw.
36547
36548 * util/hostfs.c: #include <grub/util/misc.h>.
36549 (grub_hostfs_open): Use "rb" flag to open file, use
36550 grub_util_get_disk_size to get disk size for mingw.
36551
36552 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
36553 (asprintf): New function if HAVE_ASPRINTF is not set.
36554 (sync): New function for mingw.
36555 (sleep): Likewise.
36556 (grub_util_get_disk_size): Likewise.
36557
ab3f2673 365582008-08-28 Pavel Roskin <proski@gnu.org>
36559
36560 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36561 kern/time.c.
36562
1c282483 365632008-08-28 Robert Millan <rmh@aybabtu.com>
36564
36565 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
36566
678e849c 365672008-08-28 Robert Millan <rmh@aybabtu.com>
36568
36569 Change find_grub_drive() syntax so it doesn't prevent it from
36570 detecting NULL names as errors.
36571
36572 * util/biosdisk.c (find_grub_drive): Move free slot search code
36573 from here ...
36574 (find_free_slot): ... to here.
36575 (read_device_map): Use find_free_slot() to search for free slots.
36576
965c75ca 365772008-08-27 Marco Gerards <marco@gnu.org>
36578
36579 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
36580 (scsi_mod_SOURCES): New variable.
36581 (scsi_mod_CFLAGS): Likewise
36582 (scsi_mod_LDFLAGS): Likewise.
36583
36584 * disk/scsi.c: New file.
36585
36586 * include/grub/scsi.h: Likewise.
36587
36588 * include/grub/scsicmd.h: Likewise.
36589
36590 * disk/ata.c: Include <grub/scsi.h>.
36591 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
36592 instead.
36593 (grub_ata_iterate): Skip ATAPI devices.
36594 (grub_ata_open): Only handle ATAPI devices.
36595 (struct grub_atapi_read): Removed.
36596 (grub_atapi_readsector): Likewise.
36597 (grub_ata_read): No longer handle ATAPI devices.
36598 (grub_ata_write): Likewise.
36599 (grub_atapi_iterate): New function.
36600 (grub_atapi_read): Likewise.
36601 (grub_atapi_write): Likewise.
36602 (grub_atapi_open): Likewise.
36603 (grub_atapi_close): Likewise.
36604 (grub_atapi_dev): New variable.
36605 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
36606 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
36607
36608 * include/grub/disk.h (enum grub_disk_dev_id): Add
36609 `GRUB_DISK_DEVICE_SCSI_ID'.
36610
c07ae501 366112008-08-26 Robert Millan <rmh@aybabtu.com>
36612
36613 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
36614 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
36615 descriptive.
36616
5ed20adc 366172008-08-23 Bean <bean123ch@gmail.com>
36618
36619 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
36620 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36621 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
36622 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
36623 dm_nv.mod.
36624 (raid5rec_mod_SOURCES): New macro.
36625 (raid5rec_mod_CFLAGS): Likewise.
36626 (raid5rec_mod_LDFLAGS): Likewise.
36627 (raid6rec_mod_SOURCES): Likewise.
36628 (raid6rec_mod_CFLAGS): Likewise.
36629 (raid6rec_mod_LDFLAGS): Likewise.
36630 (mdraid_mod_SOURCES): Likewise.
36631 (mdraid_mod_CFLAGS): Likewise.
36632 (mdraid_mod_LDFLAGS): Likewise.
36633 (dm_nv_mod_SOURCES): Likewise.
36634 (dm_nv_mod_CFLAGS): Likewise.
36635 (dm_nv_mod_LDFLAGS): Likewise.
36636
36637 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
36638 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36639 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36640
36641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
36642 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36643
36644 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36645
36646 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36647
36648 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36649
36650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36651
36652 * disk/raid5_recover.c: New file.
36653
36654 * disk/raid6_recover.c: Likewise.
36655
36656 * disk/mdraid_linux.c: Likewise.
36657
36658 * disk/dmraid_nvidia.c: Likewise.
36659
36660 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
36661 ULONG_MAX.
36662
36663 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
36664 calculate the size of raid device.
36665 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
36666 different layout of raid5.
36667 (grub_raid_scan_device): Remove code specific to mdraid.
36668 (grub_raid_list): New variable.
36669 (free_array): New function.
36670 (grub_raid_register): Likewise.
36671 (grub_raid_unregister): Likewise.
36672 (grub_raid_rescan): Likewise.
36673 (GRUB_MOD_INIT): Don't iterate device here.
36674 (GRUB_MOD_FINI): Use free_array to release resource.
36675
36676 * include/grub/raid.h: Remove macro and structure specific to mdraid.
36677 (grub_raid5_recover_func_t): New function variable type.
36678 (grub_raid6_recover_func_t): Likewise.
36679 (grub_raid5_recover_func): New variable.
36680 (grub_raid6_recover_func): Likewise.
36681 (grub_raid_register): New function.
36682 (grub_raid_unregister): Likewise.
36683 (grub_raid_rescan): Likewise.
36684 (grub_raid_block_xor): Likewise.
36685
36686 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
36687 (CMD_CRC): New macro.
36688 (part): Removed.
36689 (read_file): Handle device as well as file.
36690 (cmd_crc): New function.
36691 (fstest): Handle multiple disks.
36692 (options): Remove part, raw and long, add root and diskcount.
36693 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 36694 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 36695 add handling for the new options, support multiple disks.
36696
36697 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
36698
29c18915 366992008-08-23 Bean <bean123ch@gmail.com>
36700
36701 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
36702
36703 * genfslist.sh: Ignore kernel.mod.
36704
36705 * genpartmaplist.sh: Likewise.
36706
8415f261 367072008-08-23 Robert Millan <rmh@aybabtu.com>
36708
36709 * util/getroot.c (find_root_device): Skip anything that starts with
36710 a dot, not just directories. This avoids things like /dev/.tmp.md0.
36711
d5a7dc5b 367122008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 36713
d5a7dc5b 36714 * util/update-grub.in (GRUB_GFXMODE): Export variable.
36715 * util/grub.d/00_header.in: Allow the administrator to change default
36716 gfxmode via ${GRUB_GFXMODE}.
36717
380cfbb4 367182008-08-21 Felix Zielcke <fzielcke@z-51.de>
36719
36720 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
36721
c9baafe7 367222008-08-21 Robert Millan <rmh@aybabtu.com>
36723
36724 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
36725 loader.
36726 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
36727 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
36728
e290bef2 367292008-08-20 Carles Pina i Estany <carles@pina.cat>
36730
36731 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
36732 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
36733
f9dbfc96 367342008-08-19 Robert Millan <rmh@aybabtu.com>
36735
36736 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
36737 (struct grub_virtual_screen): Remove `cursor_color'.
36738 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
36739 initialization.
36740 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
36741
dd6bd6ab 367422008-08-18 Robert Millan <rmh@aybabtu.com>
36743
36744 Unify (identical) linux_normal.c files.
36745 * loader/i386/efi/linux_normal.c: Move from here ...
36746 * loader/linux_normal.c: ... to here. Update all users.
36747 * loader/i386/pc/linux_normal.c: Delete. Update all users.
36748 * loader/i386/ieee1275/linux_normal.c: Likewise.
36749
7f42f83e 367502008-08-18 Robert Millan <rmh@aybabtu.com>
36751
36752 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
36753 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
36754 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
36755 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
36756 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
36757 New macros.
36758 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
36759 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
36760 (GRUB_LINUX_CL_END_OFFSET): ... to here.
36761 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
36762 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
36763 (GRUB_EFI_CL_END_OFFSET): Rename to ...
36764 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
36765 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
36766 Initialize `params->video_cursor_x' and `params->video_cursor_y'
36767 portably using grub_getxy().
36768 Replace `-EFI' with `-bzImage' in boot message.
36769
38487ddb 367702008-08-17 Robert Millan <rmh@aybabtu.com>
36771
36772 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
36773
deceb3ec 367742008-08-17 Robert Millan <rmh@aybabtu.com>
36775
36776 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
36777
36778 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
36779 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
36780 (grub_machine_mmap_iterate): New function declaration.
36781 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
36782 structure.
36783 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
36784 macros.
36785
36786 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
36787 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
36788 Move e820 parsing from here ...
36789 * kern/i386/pc/mmap.c: New file.
36790 (grub_machine_mmap_iterate): ... to here.
36791
36792 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
36793 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
36794 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
36795 (grub_available_iterate): Redeclare to return `void', and redeclare
36796 its hook to use grub_uint64_t as addr and size parameters, and rename
36797 to ...
36798 (grub_machine_mmap_iterate): ... this. Update all users.
36799
36800 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
36801 to make it more readable. Rename to ...
36802 (grub_machine_mmap_iterate): ... this.
36803
36804 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
36805 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
36806 (grub_multiboot): Allocate an extra region after the payload, and fill
36807 it with a Multiboot memory map. Adjust a.out loader to calculate size
36808 with the extra space.
36809 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36810 with the extra space.
36811
f8aa0f43 368122008-08-17 Carles Pina i Estany <carles@pina.cat>
36813
9807deb9 36814 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36815
605f5bb6 368162008-08-17 Felix Zielcke <fzielcke@z-51.de>
36817
36818 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36819 mdate-sh to the list `find' searches for.
36820 * DISTLIST: Regenerated.
36821
210db6c6 368222008-08-16 Felix Zielcke <fzielcke@z-51.de>
36823
36824 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36825 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36826 genmoddep.awk, gensymlist.sh.in.
36827 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36828 * DISTLIST: Regenerated.
48cdbfd4 36829 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36830
1082b929 368312008-08-16 Robert Millan <rmh@aybabtu.com>
36832
36833 * disk/raid.c (grub_raid_init): Handle/report errors set by
36834 grub_device_iterate().
36835 * disk/lvm.c (grub_lvm_init): Likewise.
36836
42ce5170 368372008-08-15 Bean <bean123ch@gmail.com>
36838
36839 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36840 and datehook.mod.
36841 (datetime_mod_SOURCES): New macro.
36842 (datetime_mod_CFLAGS): Likewise.
36843 (datetime_mod_LDFLAGS): Likewise.
36844 (date_mod_SOURCES): Likewise.
36845 (date_mod_CFLAGS): Likewise.
36846 (date_mod_LDFLAGS): Likewise.
36847 (datehook_mod_SOURCES): Likewise.
36848 (datehook_mod_CFLAGS): Likewise.
36849 (datehook_mod_LDFLAGS): Likewise.
36850
36851 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36852 and datehook.mod.
36853 (datetime_mod_SOURCES): New macro.
36854 (datetime_mod_CFLAGS): Likewise.
36855 (datetime_mod_LDFLAGS): Likewise.
36856 (date_mod_SOURCES): Likewise.
36857 (date_mod_CFLAGS): Likewise.
36858 (date_mod_LDFLAGS): Likewise.
36859 (datehook_mod_SOURCES): Likewise.
36860 (datehook_mod_CFLAGS): Likewise.
36861 (datehook_mod_LDFLAGS): Likewise.
36862
36863 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36864 and datehook.mod.
36865 (datetime_mod_SOURCES): New macro.
36866 (datetime_mod_CFLAGS): Likewise.
36867 (datetime_mod_LDFLAGS): Likewise.
36868 (date_mod_SOURCES): Likewise.
36869 (date_mod_CFLAGS): Likewise.
36870 (date_mod_LDFLAGS): Likewise.
36871 (datehook_mod_SOURCES): Likewise.
36872 (datehook_mod_CFLAGS): Likewise.
36873 (datehook_mod_LDFLAGS): Likewise.
36874
36875 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36876 and datehook.mod.
36877 (datetime_mod_SOURCES): New macro.
36878 (datetime_mod_CFLAGS): Likewise.
36879 (datetime_mod_LDFLAGS): Likewise.
36880 (date_mod_SOURCES): Likewise.
36881 (date_mod_CFLAGS): Likewise.
36882 (date_mod_LDFLAGS): Likewise.
36883 (datehook_mod_SOURCES): Likewise.
36884 (datehook_mod_CFLAGS): Likewise.
36885 (datehook_mod_LDFLAGS): Likewise.
36886
36887 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36888 and datehook.mod.
36889 (datetime_mod_SOURCES): New macro.
36890 (datetime_mod_CFLAGS): Likewise.
36891 (datetime_mod_LDFLAGS): Likewise.
36892 (date_mod_SOURCES): Likewise.
36893 (date_mod_CFLAGS): Likewise.
36894 (date_mod_LDFLAGS): Likewise.
36895 (datehook_mod_SOURCES): Likewise.
36896 (datehook_mod_CFLAGS): Likewise.
36897 (datehook_mod_LDFLAGS): Likewise.
36898
36899 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36900
36901 * commands/date.c: New file.
36902
36903 * hook/datehook.c: Likewise.
36904
36905 * include/grub/lib/datetime.h: Likewise.
36906
36907 * include/grub/i386/cmos.h: Likewise.
36908
36909 * lib/datetime.c: Likewise.
36910
36911 * lib/i386/datetime.c: Likewise.
36912
36913 * lib/efi/datetime.c: Likewise.
36914
0e9242da 369152008-08-14 Robert Millan <rmh@aybabtu.com>
36916
36917 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36918 (grub_mkelfimage_SOURCES): New variable.
36919 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36920
36921 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36922 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36923 * conf/powerpc-ieee1275.rmk: Likewise.
36924 * conf/i386-ieee1275.rmk: Likewise.
36925
36926 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36927 * kern/i386/coreboot/init.c: Likewise.
36928
36929 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36930 with `<grub/cpu/kernel.h>'.
36931 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36932 to ...
36933 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36934 * kern/i386/coreboot/startup.S: Likewise.
36935
36936 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36937 (GRUB_MOD_GAP): Remove.
36938 * include/grub/powerpc/kernel.h: New file.
36939 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36940 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36941 * include/grub/i386/kernel.h: New file.
36942 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36943 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36944 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36945
36946 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36947 `grub-mkelfimage'.
36948 Use --directory when invoking grub_mkimage.
36949
36950 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36951 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36952 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36953 and GRUB_KERNEL_CPU_PREFIX.
36954
b86408f8 369552008-08-14 Felix Zielcke <fzielcke@z-51.de>
36956
d5e619ca 36957 * include/grub/err.h (grub_err_printf): New function prototype.
36958 * util/misc.c (grub_err_printf): New function.
36959 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36960 grub_printf.
36961 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36962
7161f0e0 369632008-08-13 Robert Millan <rmh@aybabtu.com>
36964
36965 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36966
a1967522 369672008-08-13 Robert Millan <rmh@aybabtu.com>
36968
36969 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36970 boot entry.
36971
371458b5 369722008-08-12 Robert Millan <rmh@aybabtu.com>
36973
36974 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36975 of the relocation code from here ...
36976 (grub_multiboot): ... to here.
36977 (forward_relocator, backward_relocator): Move from here ...
36978 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36979 (grub_multiboot_backward_relocator): ... to here.
36980 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36981 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36982 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
36983 (grub_multiboot_forward_relocator_end)
36984 (grub_multiboot_backward_relocator)
36985 (grub_multiboot_backward_relocator_end): New variables.
36986
05f9452b 369872008-08-12 Bean <bean123ch@gmail.com>
36988
36989 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
36990
20024ab0 369912008-08-11 Robert Millan <rmh@aybabtu.com>
36992
36993 * kern/i386/linuxbios/startup.S: Move from here ...
36994 * kern/i386/coreboot/startup.S: ... to here.
36995
36996 * kern/i386/linuxbios/init.c: Move from here ...
36997 * kern/i386/coreboot/init.c: ... to here.
36998
36999 * kern/i386/linuxbios/table.c: Move from here ...
37000 * kern/i386/coreboot/mmap.c: ... to here.
37001
37002 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37003
e352e9cd 370042008-08-11 Robert Millan <rmh@aybabtu.com>
37005
37006 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37007 errors. Leave it to the upper layer to handle them.
37008
2d05bc6a 370092008-08-09 Christian Franke <franke@computer.org>
37010
37011 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37012 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37013 Install `grub.d/10_windows' only on Cygwin.
37014 * configure.ac: Add subst of `target_os'.
37015 Check `target_os' also before setting TARGET_OBJ2ELF.
37016 Add `--enable-grub-pe2elf'.
37017
042bd419 370182008-08-08 Robert Millan <rmh@aybabtu.com>
37019
37020 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37021 (grub_last_time): Change type to grub_uint64_t.
37022 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37023 (grub_disk_close): Likewise.
37024
37025 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37026 (run_menu): Migrate code from to using grub_get_time_ms().
37027
37028 * util/misc.c (grub_get_time_ms): New function.
37029
7f280db5 370302008-08-08 Marco Gerards <marco@gnu.org>
37031
37032 * disk/ata.c (grub_ata_regget): Change return type to
37033 `grub_uint8_t'.
37034 (grub_ata_regget2): Likewise.
37035 (grub_ata_wait_status): New function.
37036 (grub_ata_wait_busy): Removed function, updated all users to use
37037 `grub_ata_wait_status'.
37038 (grub_ata_wait_drq): Likewise.
37039 (grub_ata_cmd): New function.
37040 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37041 error handling.
37042 (grub_ata_pio_write): Add error handling.
37043 (grub_atapi_identify): Likewise.
37044 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37045 handling.
37046 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37047 handling. Actually use the detected registers. Reorder the
37048 detection logic such that it is easier to read.
37049 (grub_ata_pciinit): Do not assign the same ID to each controller.
37050 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37051 handling.
37052 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37053
37054 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37055
1fbc5e66 370562008-08-08 Marco Gerards <marco@gnu.org>
37057
37058 * NEWS: Update.
37059
819ce6c0 370602008-08-07 Bean <bean123ch@gmail.com>
37061
37062 * include/grub/x86_64/pci.h: New file.
37063
5c41d44d 370642008-08-07 Christian Franke <franke@computer.org>
37065
37066 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37067 (TIMER2_GATE): Likewise.
37068 (grub_pit_wait): Add enable/disable of the timer2 gate
37069 bit of port 0x61. This fixes a possible infinite loop.
37070
5ebc275d 370712008-08-07 Bean <bean123ch@gmail.com>
37072
37073 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37074 kern/i386/tsc.c and kern/i386/pit.c.
37075
37076 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37077 x86_64 platform.
37078
37079 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37080 <grub/i386/tsc.h>.
37081
37082 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37083
e383b3d0 370842008-08-07 Bean <bean123ch@gmail.com>
37085
37086 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37087
37088 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37089
37090 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37091 multiple inclusion. Add #include <grub/types.h>.
37092
1cbb58ac 370932008-08-06 Christian Franke <franke@computer.org>
37094
37095 * conf/common.rmk: Build and install `10_windows'.
37096 * util/grub.d/10_windows.in: New script.
37097
337f5a1e 370982008-08-06 Pavel Roskin <proski@gnu.org>
37099
37100 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37101
057bc4ac 371022008-08-06 Robert Millan <rmh@aybabtu.com>
37103
37104 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37105 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37106
2b99f123 371072008-08-06 Bean <bean123ch@gmail.com>
37108
37109 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37110 (grub_pxefs_fs_int): Remove dummy definition.
37111 (grub_pxefs_open): Use data->block_size to store the current block
37112 size setting.
37113 (grub_pxefs_read): Use block size stored in data->block_size. As the
37114 value of grub_pxe_blksize can be changed after the file is opened.
37115
9f0234cb 371162008-08-06 Bean <bean123ch@gmail.com>
37117
37118 * fs/i386/pc/pxe.c (curr_file): new variable.
37119 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37120 require the dummy internal file system anymore.
37121 (grub_pxefs_read): Removed.
37122 (grub_pxefs_close): Likewise.
37123 (grub_pxefs_fs_int): Likewise.
37124 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37125 connection when we switch file.
37126 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37127
a55d42e0 371282008-08-06 Robert Millan <rmh@aybabtu.com>
37129
37130 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37131 `halt.mod'.
37132 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37133 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37134
37135 * kern/i386/halt.c: New file.
37136 * kern/i386/reboot.c: Likewise.
37137 * include/grub/i386/reboot.h: Likewise.
37138 * include/grub/i386/halt.h: Likewise.
37139
37140 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37141 Include `<grub/cpu/halt.h>'.
37142 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37143 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37144
37145 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37146 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37147 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37148 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37149 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37150 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37151 from here ...
37152 * include/grub/i386/at_keyboard.h: ... to here.
37153
24371d26 371542008-08-05 Robert Millan <rmh@aybabtu.com>
37155
37156 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37157 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37158 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37159 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37160 `kern/generic/millisleep.c'.
37161
37162 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37163 instead of grub_get_rtc().
37164 (grub_tsc_init): Initialize `tsc_boot_time'.
37165
37166 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37167 (grub_machine_init): Use grub_tsc_init() rather than
37168 installing an RTC-based handler via grub_install_get_time_ms().
37169
37170 * kern/i386/pit.c: New file.
37171 * include/grub/i386/pit.h: Likewise.
37172
9e7007b3 371732008-08-05 Bean <bean123ch@gmail.com>
37174
37175 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37176
37177 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37178 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37179 (pxe_mod_SOURCES): New macro.
37180 (pxe_mod_CFLAGS): Likewise.
37181 (pxe_mod_LDFLAGS): Likewise.
37182 (pxecmd_mod_SOURCES): Likewise.
37183 (pxecmd_mod_CFLAGS): Likewise.
37184 (pxecmd_mod_LDFLAGS): Likewise.
37185
37186 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37187 (grub_pxe_call): Likewise.
37188
37189 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37190
37191 * commands/i386/pc/pxecmd.c: New file.
37192
9f0234cb 37193 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 37194
37195 * include/grub/i386/pc/pxe.h: Likewise.
37196
6977d49f 371972008-08-05 Bean <bean123ch@gmail.com>
37198
37199 * util/console.c (grub_console_cur_color): New variable.
37200 (grub_console_standard_color): Likewise.
37201 (grub_console_normal_color): Likewise.
37202 (grub_console_highlight_color): Likewise.
37203 (color_map): Likewise.
37204 (use_color): Likewise.
37205 (NUM_COLORS): New macro.
37206 (grub_ncurses_setcolorstate): Handle color properly.
37207 (grub_ncurses_setcolor): Don't change color here, just remember the
37208 settings, color will be set in grub_ncurses_setcolorstate.
37209 (grub_ncurses_getcolor): New function.
37210 (grub_ncurses_init): Initialize color pairs.
37211 (grub_ncurses_term): New member grub_ncurses_getcolor.
37212
9c2ff3ee 372132008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 37214
9c2ff3ee 37215 High resolution timer support. Implemented for x86 CPUs using TSC.
37216 Extracted generic grub_millisleep() so it's linked in only as needed.
37217 This requires a Pentium compatible CPU; if the RDTSC instruction is
37218 not supported, then it falls back on the generic grub_get_time_ms()
37219 implementation that uses the machine's RTC.
37220
37221 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37222 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37223 `kern/generic/millisleep.c'.
37224
37225 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37226 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37227
37228 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37229 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37230
37231 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37232
37233 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37234 `kern/generic/millisleep.c'.
37235
37236 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37237
37238 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37239
37240 * kern/generic/rtc_get_time_ms.c: New file.
37241
37242 * kern/generic/millisleep.c: New file.
337f5a1e 37243
9c2ff3ee 37244 * kern/misc.c: Don't include
37245 <kern/time.h> anymore.
37246 (grub_millisleep_generic): Removed.
37247
37248 * commands/sleep.c (grub_interruptible_millisleep): Uses
37249 grub_get_time_ms() instead of grub_get_rtc().
37250
37251 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37252 function.
37253 (grub_cpu_is_cpuid_supported): New inline function.
37254 (grub_cpu_is_tsc_supported): New inline function.
37255 (grub_tsc_init): New function prototype.
37256 (grub_tsc_get_time_ms): New function prototype.
37257
37258 * kern/i386/tsc.c (grub_get_time_ms): New file.
37259
37260 * include/grub/time.h: Include <grub/types.h.
37261 (grub_millisleep_generic): Removed.
37262 (grub_get_time_ms): New prototype.
37263 (grub_install_get_time_ms): New prototype.
37264 (grub_rtc_get_time_ms): New prototype.
37265
37266 * kern/time.c (grub_get_time_ms): New function.
37267 (grub_install_get_time_ms): New function.
37268
37269 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37270 <grub/time.h> anymore.
37271 (grub_millisleep): Removed.
37272 (grub_machine_init): Call grub_tsc_init.
37273
37274 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37275 get_time_ms() implementation.
37276
37277 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37278 (ieee1275_get_time_ms): New function.
37279 (grub_machine_init): Install get_time_ms() implementation.
37280
37281 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37282 (grub_machine_init): Call grub_tsc_init().
37283 (grub_millisleep): Removed.
bf06a93f 37284
9c2ff3ee 37285 * kern/ieee1275/init.c (grub_millisleep): Removed.
37286 (grub_machine_init): Install ieee1275_get_time_ms()
37287 implementation.
37288 (ieee1275_get_time_ms): New function.
37289 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
37290 real work.
37291
9ec92aaf 372922008-08-05 Marco Gerards <marco@gnu.org>
37293
37294 * disk/ata.c: Include <grub/pci.h>.
37295 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
37296 (grub_ata_initialize): Rewritten.
37297 (grub_ata_device_initialize): New function.
37298
8d23f507 372992008-08-04 Pavel Roskin <proski@gnu.org>
37300
37301 * kern/main.c: Include grub/mm.h.
37302
5e15ee3d 373032008-08-04 Robert Millan <rmh@aybabtu.com>
37304
37305 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
37306 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
37307 corruption problem).
37308
a9053f8f 373092008-08-04 Robert Millan <rmh@aybabtu.com>
37310
37311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
37312 warnings introduced in my last commit.
37313
dd19c7d7 373142008-08-03 Robert Millan <rmh@aybabtu.com>
37315
37316 Make PCI available on all i386 architectures.
37317
37318 * include/grub/i386/pc/pci.h: Move from here ...
37319 * include/grub/i386/pci.h: ... to here.
37320
37321 * include/grub/i386/pc/pci.h: Remove.
37322 * include/grub/i386/efi/pci.h: Remove.
37323 * include/grub/x86_64/efi/pci.h: Remove.
37324
37325 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
37326 `<grub/cpu/pci.h>'.
37327
37328 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
37329 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
37330 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
37331
37332 * conf/i386-ieee1275.rmk: Likewise.
37333
e14a6184 373342008-08-03 Robert Millan <rmh@aybabtu.com>
37335
37336 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
37337 (grub_console_setcursor): Make it possible to set cursor off.
37338
52768e37 373392008-08-03 Robert Millan <rmh@aybabtu.com>
37340
37341 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
37342 of modules instead of assuming which platform provides what.
37343 * util/update-grub.in: Likewise.
37344
2d52f57f 373452008-08-03 Robert Millan <rmh@aybabtu.com>
37346
37347 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
37348 instead of `grub_install_dos_part' to determine whether a drive needs
37349 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 37350 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 37351
2a5cd121 373522008-08-02 Robert Millan <rmh@aybabtu.com>
37353
37354 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
37355
93808428 373562008-08-02 Robert Millan <rmh@aybabtu.com>
37357
37358 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
37359 of informational grub_dprintf() calls.
37360
3bd0a12a 373612008-08-02 Robert Millan <rmh@aybabtu.com>
37362
37363 * disk/memdisk.c (memdisk_size): Don't initialize.
37364 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
37365
37366 * include/grub/i386/pc/kernel.h
37367 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
37368 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
37369 (grub_memdisk_image_size, grub_arch_memdisk_addr)
37370 (grub_arch_memdisk_size): Remove.
37371
37372 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
37373 field (was only used to transfer a constant). Add `type' field to
37374 support multiple module types.
37375 (grub_module_iterate): New function.
37376
37377 * kern/device.c (grub_device_open): Do not hide error messages
37378 when grub_disk_open() fails. Use grub_print_error() instead.
37379
37380 * kern/i386/pc/init.c (grub_arch_modules_addr)
37381 (grub_arch_memdisk_size): Remove functions.
37382 (grub_arch_modules_addr): Return the module address in high memory
37383 (now that it isn't copied anymore).
37384
37385 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
37386 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
37387 decompression routine (grub_total_module_size already includes that
37388 now). Don't copy modules back to low memory.
37389
37390 * kern/main.c: Include `<grub/mm.h>'.
37391 (grub_load_modules): Split out (and use) ...
37392 (grub_module_iterate): ... this function, which iterates through
37393 module objects and runs a hook.
37394 Comment out grub_mm_init_region() call, as it would cause non-ELF
37395 modules to be overwritten.
37396
37397 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
37398 the memdisk image in its own region, make it part of the module list.
37399 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
37400 (main): Parse --memdisk|-m option, and pass user-provided path as
37401 parameter to generate_image().
37402 (add_segments): Pass `memdisk_path' down to load_modules().
37403 (load_modules): Embed memdisk image in module section when requested.
37404 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
37405 `header.type' instead of `header.offset'.
37406
37407 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
37408 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
37409 (memdisk_mod_LDFLAGS): New variables.
37410 * conf/i386-coreboot.rmk: Likewise.
37411 * conf/i386-ieee1275.rmk: Likewise.
37412
a927cc73 374132008-08-02 Robert Millan <rmh@aybabtu.com>
37414
37415 * loader/i386/pc/multiboot.c (playground, forward_relocator)
37416 (backward_relocator): New variables. Used to allocate and relocate
37417 the payload, respectively.
37418 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 37419 address, install the appropriate relocator code in each bound of
a927cc73 37420 the payload, and set the entry point such that
37421 grub_multiboot_real_boot() will jump to one of them.
37422
37423 * kern/i386/loader.S (grub_multiboot_payload_size)
37424 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37425 (grub_multiboot_payload_entry_offset): New variables.
37426 (grub_multiboot_real_boot): Set cpu context to what the relocator
37427 expects, and jump to the relocator instead of the payload.
37428
37429 * include/grub/i386/loader.h (grub_multiboot_payload_size)
37430 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37431 (grub_multiboot_payload_entry_offset): Export.
37432
b15d8a0c 374332008-08-01 Bean <bean123ch@gmail.com>
37434
37435 * normal/menu_entry.c (editor_getline): Don't return the original
37436 string as result, as it will be released by lexer once it has done
37437 using it.
37438
cdfb3d22 374392008-08-01 Robert Millan <rmh@aybabtu.com>
37440
37441 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
37442 within menuentries, not before them.
37443 util/grub.d/10_hurd.in: Likewise.
37444
9175e93d 374452008-08-01 Bean <bean123ch@gmail.com>
37446
37447 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
37448 (bufio_mod_SOURCES): New macro.
37449 (bufio_mod_CFLAGS): Likewise.
37450 (bufio_mod_LDFLAGS): Likewise.
37451
37452 * include/grub/bufio.h: New file.
37453
37454 * io/bufio.c: Likewise.
37455
37456 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
37457 (grub_video_reader_png): Use grub_buffile_open to open file.
37458
37459 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
37460 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
37461
37462 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
37463 (grub_video_reader_tga): Use grub_buffile_open to open file.
37464
37465 * font/manager.c: Include <grub/bufio.h>.
37466 (add_font): Use grub_buffile_open to open file.
37467
3d8383e7 374682008-07-31 Robert Millan <rmh@aybabtu.com>
37469
37470 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
37471 ELF segments, use a macro for arbitrarily accessing any of them instead
37472 of preparing a pointer that allows access to one at a time.
37473 (grub_multiboot_load_elf64): Likewise.
37474
16e641b6 374752008-07-31 Bean <bean123ch@gmail.com>
37476
37477 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
37478 GRUB_KERNEL_MACHINE_DATA_END.
37479
59198b72 374802008-07-30 Robert Millan <rmh@aybabtu.com>
37481
37482 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
37483 Increase from 0x50 to 0x60.
37484 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
37485 use UUIDs to identify the root drive for them. If that's not
37486 possible, abort.
37487 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
37488 check, for cross-disk installs.
37489
ae88bca3 374902008-07-30 Robert Millan <rmh@aybabtu.com>
37491
37492 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
37493 is non-empty, use it to set the `prefix' environment variable instead
37494 of the usual approach.
37495 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
37496 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
37497 environment variable instead of dummy make_install_device().
37498
37499 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
37500 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 37501 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 37502
37503 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
37504 New variable reference.
37505 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
37506 New macro. Defines offset of `grub_prefix' within startup.S (relative
37507 to `start').
37508 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
37509 section within startup.S (relative to `start').
37510 * include/grub/i386/coreboot/kernel.h: Likewise.
37511
37512 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
37513 Overwrite grub_prefix with its contents, at the beginning of the
37514 first segment.
37515 (main): Understand -p|--prefix.
37516
14f41dd1 375172008-07-30 Robert Millan <rmh@aybabtu.com>
37518
37519 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
37520
4ca049a3 375212008-07-30 Robert Millan <rmh@aybabtu.com>
37522
37523 * term/i386/pc/vga_text.c (grub_console_cls): Use
37524 grub_console_gotoxy() to go back to beginning of the screen.
37525 Found by Patrick Georgi <patrick.georgi@coresystems.de>
37526
2921d337 375272008-07-29 Christian Franke <franke@computer.org>
37528
37529 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37530 Add conversion of emulated mount points on Cygwin.
37531
b609876d 375322008-07-29 Christian Franke <franke@computer.org>
37533
37534 * util/update-grub.in: Add a check for admin
37535 group on Cygwin.
37536 Remove old `grub.cfg.new' before creation.
37537 Add `-f' to `mv' to handle the different filesystem
37538 semantics of Windows.
37539
e93e4679 375402008-07-29 Bean <bean123ch@gmail.com>
37541
37542 * normal/main.c (get_line): Fix buffer overflow bug.
37543
41694fd0 375442008-07-28 Robert Millan <rmh@aybabtu.com>
37545
37546 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
37547 (struct grub_apple_header): New struct. Describes the layout of
37548 the partmap header.
37549 (apple_partition_map_iterate): Check the header magic as well as the
37550 partition magic (which was already being checked).
37551
cfd0b4e6 375522008-07-28 Pavel Roskin <proski@gnu.org>
37553
37554 * genmk.rb: Add a warning to the beginning of the output that
37555 it's a generated file and should not be edited.
37556
93cce016 375572008-07-28 Robert Millan <rmh@aybabtu.com>
37558
37559 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37560 with the same number are found, just use issue a warning with
37561 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 37562
cd1df915 375632008-07-27 Robert Millan <rmh@aybabtu.com>
37564
37565 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
37566 information.
37567
b70a8427 375682008-07-27 Bean <bean123ch@gmail.com>
37569
37570 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
37571 (grub_fat_find_dir): Ignore case when comparing filename.
37572
8f5e379f 375732008-07-27 Bean <bean123ch@gmail.com>
37574
37575 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
37576 smallino, as it's more descriptive, and i8count can be confused with
37577 the other field count.
37578 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
37579 inode type.
37580
a85cd5a0 375812008-07-27 Bean <bean123ch@gmail.com>
37582
37583 * commands/crc.c: New file.
37584
37585 * lib/crc.c: Likewise.
37586
37587 * include/grub/lib/crc.h: Likewise.
37588
37589 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
37590
37591 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
37592 (hexdump): Move this function to ...
37593
37594 * lib/hexdump.c: ... here.
37595
37596 * include/grub/hexdump.h: Renamed to ...
37597
37598 * include/grub/lib/hexdump.h: ... this.
37599
37600 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
37601
37602 * util/grub-editenv.c: Likewise.
37603
37604 * include/envblk.h: Renamed to ...
37605
37606 * include/lib/envblk.h: ... this.
37607
37608 * util/envblk.c: Renamed to ...
37609
37610 * lib/envblk.c: ... this.
37611
37612 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
37613 lib/hexdump.c.
37614 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
37615 (pkglib_MODULES): Add crc.mod.
37616 (hexdump_mod_SOURCES): Add lib/hexdump.c.
37617 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
37618 (crc_mod_SOURCES): New macro.
37619 (crc_mod_CFLAGS): Likewise.
37620 (crc_mod_LDFLAGS): Likewise.
37621
37622 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
37623
37624 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37625
37626 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37627
37628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37629
37630 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37631
c298def0 376322008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 37633
37634 * commands/help.c: Include <grub/term.h>.
37635 (TERM_WIDTH): Removed. Updated all users.
37636
cc349fb3 376372008-07-27 Pavel Roskin <proski@gnu.org>
37638
37639 * util/getroot.c (find_root_device): Rephrase a comment to avoid
37640 spurious warnings about a comment within a comment.
37641
9051607e 376422008-07-25 Robert Millan <rmh@aybabtu.com>
37643
37644 * util/getroot.c (find_root_device): Skip devices that match
37645 /dev/dm-[0-9]. This lets the real device be found for any type of
37646 abstraction (LVM, EVMS, RAID..).
37647 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
37648 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
37649 device is found first, find_root_device() will now skip it.
37650
01453bfc 376512008-07-24 Pavel Roskin <proski@gnu.org>
37652
37653 * include/grub/types.h: Use __builtin_bswap32() and
37654 __builtin_bswap64() with gcc 4.3 and newer.
37655
6af9849f 376562008-07-24 Christian Franke <franke@computer.org>
37657
3a0fa256 37658 * util/i386/pc/grub-install.in: If `--debug' is specified,
37659 pass `--verbose' to grub-setup.
37660 Abort script if make_system_path_relative_to_its_root() fails.
37661
7810e747 376622008-07-24 Bean <bean123ch@gmail.com>
37663
37664 * configure.ac: Fixed a bug caused by the previous cygwin patch,
37665 variable `target_platform' should be `platform'.
37666
42290e17 376672008-07-24 Bean <bean123ch@gmail.com>
37668
51cc5193 37669 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 37670 (grub_png_init_fixed_block): New function.
37671 (grub_png_decode_image_data): Handle fixed huffman code compression.
37672
2a8a80e4 376732008-07-24 Bean <bean123ch@gmail.com>
37674
37675 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
37676 (grub_pe2elf_SOURCES): New macro.
37677 (CLEANFILES): Add grub-pe2elf.
37678
37679 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
37680 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
37681 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
37682 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
37683 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
37684 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
37685 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
37686 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
37687 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
37688 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
37689 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
37690 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
37691 (GRUB_PE32_DT_FUNCTION): Likewise.
37692 (GRUB_PE32_REL_I386_DIR32): Likewise.
37693 (GRUB_PE32_REL_I386_REL32): Likewise.
37694 (grub_pe32_symbol): New structure.
37695 (grub_pe32_reloc): Likewise.
37696
37697 * util/grub-pe2elf.c: New file.
37698
37699 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
37700 start symbol in non pc platform.
37701
37702 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
37703
37704 The following patches are from Christian Franke.
37705
37706 * include/grub/dl.h: Remove .previous, gas supports this only
37707 for ELF format.
37708
37709 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
37710 Remove .type, gas supports this only for ELF format.
37711
37712 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
37713 nullbytes in symbol table. This fixes an infinite loop if table is
37714 zero filled.
37715
37716 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
37717 TARGET_IMG_LDFLAGS and EXEEXT.
37718
37719 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
37720 TARGET_IMG_LDFLAGS_AC.
37721 (grub_CHECK_STACK_ARG_PROBE): New function.
37722
37723 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
37724
37725 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
37726
37727 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
37728 to set TARGET_IMG_LD* accordingly.
37729 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
37730 Add call to grub_CHECK_STACK_ARG_PROBE.
37731 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
37732
37733 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
37734
37735 * genmk.rb: Add EXEEXT to CLEANFILES.
37736
12ccdb75 377372008-07-23 Robert Millan <rmh@aybabtu.com>
37738
37739 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
37740 define the codes for arrows and lines used for the menu).
37741 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
37742 as well.
37743
37744 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
37745 fonts, because the latter are too slow.
37746
18eeaf04 377472008-07-21 Bean <bean123ch@gmail.com>
37748
37749 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
37750 a20. Run keyboard test last, as it will cause macbook to halt.
37751
b095e2ad 377522008-07-18 Pavel Roskin <proski@gnu.org>
37753
37754 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
37755 load foreign architecture modules correctly anyway. Keep
37756 support for loading host architecture modules, whether we
37757 compile them or not.
37758
737feb35 377592008-07-17 Pavel Roskin <proski@gnu.org>
37760
3f4ce737 37761 * configure.ac: Use -m32 or -m64 regardless of whether we had to
37762 change target_cpu. The compiler default can mismatch target_cpu
37763 in any case.
37764
4ad2d049 37765 * disk/efi/efidisk.c: Fix format warnings on x86_64.
37766 * kern/efi/efi.c: Likewise.
37767
f6130a12 37768 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
37769 target compiler is functional.
37770 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
37771 are set up.
37772
58393a2d 37773 * configure.ac: Default to efi platform for x86_64-apple. Allow
37774 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
37775 adjustments from the rest, only do them if target is not
37776 explicitly given. Merge other adjustments with the final sanity
37777 check. Remove an extraneous check for supported CPU. Be
37778 specific which CPU and which platform is not supported.
37779
737feb35 37780 * configure.ac: Default to pc platform for x86_64.
37781
546f966a 377822008-07-17 Robert Millan <rmh@aybabtu.com>
37783
37784 Partial LinuxBIOS -> Coreboot rename.
37785
37786 * conf/i386-linuxbios.rmk: Renamed to ...
37787 * conf/i386-coreboot.rmk: ... this.
37788 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
37789 * configure.ac: Accept "coreboot" as input platform (but maintain
37790 compatibility with "linuxbios").
37791 * include/grub/i386/linuxbios: Renamed to ...
37792 * include/grub/i386/coreboot: ... this.
37793
20011694 377942008-07-17 Bean <bean123ch@gmail.com>
37795
37796 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 37797 (appleldr_mod_SOURCE): New variable.
20011694 37798 (appleldr_mod_CFLAGS): Likewise.
37799 (appleldr_mod_LDFLAGS): Likewise.
37800 (pci_mod_SOURCES): Likewise.
37801 (pci_mod_CFLAGS): Likewise.
37802 (pci_mod_LDFLAGS): Likewise.
37803 (lspci_mod_SOURCES): Likewise.
37804 (lspci_mod_CFLAGS): Likewise.
37805 (lspci_mod_LDFLAGS): Likewise.
37806
37807 * conf/x86_64-efi.rmk: New file.
37808
37809 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37810 macro.
37811 (grub_efidisk_write): Likewise.
37812
37813 * include/efi/api.h (efi_call_0): New macro.
37814 (efi_call_1): Likewise.
37815 (efi_call_2): Likewise.
37816 (efi_call_3): Likewise.
37817 (efi_call_4): Likewise.
37818 (efi_call_5): Likewise.
37819 (efi_call_6): Likewise.
37820
37821 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37822 grub_rescue_cmd_chainloader.
37823
37824 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37825 (grub_pe32_optional_header): Change some fields based on i386 or
37826 x86_64 platform.
37827 (GRUB_PE32_PE32_MAGIC): Likewise.
37828
37829 * include/grub/efi/uga_draw.h: New file.
37830
37831 * include/grub/elf.h (STN_ABS): New constant.
37832 (R_X86_64_NONE): Relocation constant for x86_64.
37833 (R_X86_64_64): Likewise.
37834 (R_X86_64_PC32): Likewise.
37835 (R_X86_64_GOT32): Likewise.
37836 (R_X86_64_PLT32): Likewise.
37837 (R_X86_64_COPY): Likewise.
37838 (R_X86_64_GLOB_DAT): Likewise.
37839 (R_X86_64_JUMP_SLOT): Likewise.
37840 (R_X86_64_RELATIVE): Likewise.
37841 (R_X86_64_GOTPCREL): Likewise.
37842 (R_X86_64_32): Likewise.
37843 (R_X86_64_32S): Likewise.
37844 (R_X86_64_16): Likewise.
37845 (R_X86_64_PC16): Likewise.
37846 (R_X86_64_8): Likewise.
37847 (R_X86_64_PC8): Likewise.
37848
37849 * include/grub/i386/efi/pci.h: New file.
37850
37851 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
37852 Change it value based on platform.
37853 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
37854 (GRUB_E820_RAM): Likewise.
37855 (GRUB_E820_RESERVED): Likewise.
37856 (GRUB_E820_ACPI): Likewise.
37857 (GRUB_E820_NVS): Likewise.
37858 (GRUB_E820_EXEC_CODE): Likewise.
37859 (GRUB_E820_MAX_ENTRY): Likewise.
37860 (grub_e820_mmap): New structure.
37861 (linux_kernel_header): Change the efi field according to different
37862 kernel version, also field from linux_kernel_header.
37863
37864 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37865
37866 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37867 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37868 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37869 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37870 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37871 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37872 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37873 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37874 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37875 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37876
37877 * include/grub/x86_64/efi/kernel.h: New file.
37878
37879 * include/grub/x86_64/efi/loader.h: Likewise.
37880
37881 * include/grub/x86_64/efi/machine.h: Likewise.
37882
37883 * include/grub/x86_64/efi/pci.h: Likewise.
37884
37885 * include/grub/x86_64/efi/time.h: Likewise.
37886
37887 * include/grub/x86_64/linux.h: Likewise.
37888
37889 * include/grub/x86_64/setjmp.h: Likewise.
37890
37891 * include/grub/x86_64/time.h: Likewise.
37892
37893 * include/grub/x86_64/types.h: Likewise.
37894
37895 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37896 GRUB_TARGET_SIZEOF_VOID_P.
37897
37898 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37899 (grub_efi_locate_handle): Likewise.
37900 (grub_efi_open_protocol): Likewise.
37901 (grub_efi_set_text_mode): Likewise.
37902 (grub_efi_stall): Likewise.
37903 (grub_exit): Likewise.
37904 (grub_reboot): Likewise.
37905 (grub_halt): Likewise.
37906 (grub_efi_exit_boot_services): Likewise.
37907 (grub_get_rtc): Likewise.
37908
37909 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37910 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37911 (grub_efi_allocate_pages): Wrap efi calls.
37912 (grub_efi_free_pages): Wrap efi calls.
37913 (grub_efi_get_memory_map): Wrap efi calls.
37914
37915 * kern/x86_64/dl.c: New file.
37916
37917 * kern/x86_64/efi/callwrap.S: Likewise.
37918
37919 * kern/x86_64/efi/startup.S: Likewise.
37920
37921 * loader/efi/appleloader.c: Likewise.
37922
37923 * loader/efi/chainloader.c (cmdline): New variable.
37924 (grub_chainloader_unload): Wrap efi calls.
37925 (grub_chainloader_boot): Likewise.
37926 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37927 command line.
37928
37929 * loader/efi/chainloader_normal.c (chainloader_command):
37930 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37931 command line.
37932
37933 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37934 method.
37935 (grub_e820_add_region): New function.
37936 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37937 booting.
37938 (grub_find_video_card): New function.
37939 (grub_linux_setup_video): New function.
37940 (grub_rescue_cmd_linux): Probe for video information.
37941
37942 * normal/x86_64/setjmp.S: New file.
37943
37944 * term/efi/console.c (map_char): New function.
37945 (grub_console_putchar): Map unicode char.
37946 (grub_console_checkkey): Wrap efi calls.
37947 (grub_console_getkey): Likewise.
37948 (grub_console_getwh): Likewise.
37949 (grub_console_gotoxy): Likewise.
37950 (grub_console_cls): Likewise.
37951 (grub_console_setcolorstate): Likewise.
37952 (grub_console_setcursor): Likewise.
37953
37954 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37955
59652a20 379562008-07-16 Pavel Roskin <proski@gnu.org>
37957
ef294055 37958 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37959 format strings.
37960
59652a20 37961 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37962 pointer, not an integer. This fixes a warning and prevents
37963 precision loss on 64-bit systems.
37964 (relocate_addresses): Remove unneeded cast.
37965
afc3b5d7 379662008-07-15 Pavel Roskin <proski@gnu.org>
37967
506b2b3e 37968 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37969
62ead89c 37970 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37971
c4cd51d7 37972 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37973 Fix comparison between signed and unsigned.
37974
0d3d8f28 37975 * include/grub/i386/ieee1275/console.h: Declare
37976 grub_console_init() and grub_console_fini().
37977
8804b286 37978 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37979 It's empty and unused.
37980
ee01cf35 37981 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37982 beginning to avoid warnings with some compilers.
37983
afc3b5d7 37984 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
37985 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
37986
e4e8eaa5 379872008-07-14 Pavel Roskin <proski@gnu.org>
37988
407aceb4 37989 * kern/env.c (grub_register_variable_hook): Don't copy empty
37990 string, it leaks memory. Pass "" to grub_env_set(), it should
37991 handle constant strings.
37992
e4e8eaa5 37993 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
37994 * commands/cmp.c (grub_cmd_cmp): Likewise.
37995 * kern/dl.c (grub_dl_flush_cache): Likewise.
37996 (grub_dl_load_core): Likewise.
37997 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
37998 (grub_elf64_load_phdrs): Likewise.
37999
d4e2dad3 380002008-07-13 Pavel Roskin <proski@gnu.org>
38001
38002 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38003 between signed and unsigned.
38004 (LzmaEnc_Finish): Fix warning about an unused parameter.
38005
aa24b516 380062008-07-13 Bean <bean123ch@gmail.com>
38007
38008 * Makefile.in (enable_lzo): New rule.
38009
38010 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38011
38012 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38013
38014 * boot/i386/pc/lnxboot.S: #include <config.h>.
38015
38016 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 38017 its value according to the compression algorithm used, lzo or lzma.
aa24b516 38018
38019 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38020 compression algorithm according to configure macro.
38021
38022 * kern/i386/pc/startup.S (codestart): Likewise.
38023
38024 * kern/i386/pc/lzma_decode.S: New file.
38025
38026 * include/grub/lib/LzFind.h: Likewise.
38027
38028 * include/grub/lib/LzHash.h: Likewise.
38029
38030 * include/grub/lib/LzmaDec.h: Likewise.
38031
38032 * include/grub/lib/LzmaEnc.h: Likewise.
38033
38034 * include/grub/lib/LzmaTypes.h: Likewise.
38035
38036 * lib/LzFind.c: Likewise.
38037
38038 * lib/LzmaDec.c: Likewise.
38039
38040 * lib/LzmaEnc.c: Likewise.
38041
4ae821ac 380422008-07-13 Bean <bean123ch@gmail.com>
38043
38044 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38045 (grub_ext4_extent_header): New structure.
38046 (grub_ext4_extent): Likewise.
38047 (grub_ext4_extent_idx): Likewise.
38048 (grub_ext4_find_leaf): New function.
38049 (grub_ext2_read_block): Handle extents.
38050
9a745147 380512008-07-12 Robert Millan <rmh@aybabtu.com>
38052
38053 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38054
d49a4cf6 380552008-07-11 Robert Millan <rmh@aybabtu.com>
38056
38057 * util/grub.d/40_custom.in: New file. Example on how to add custom
38058 entries to /etc/grub.d.
38059 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38060 40_custom (implicitly, by merging all the grub.d rules).
38061
947414b4 380622008-07-11 Pavel Roskin <proski@gnu.org>
38063
0059cf6f 38064 * commands/read.c (grub_getline): Fix invalid memory access.
38065 Don't add newline to the variable value.
38066
947414b4 38067 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38068 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38069 (serial_hw_get_port): Check validity of the port number.
38070 (grub_cmd_serial): Check return value of serial_hw_get_port().
38071
62a02d00 380722008-07-07 Pavel Roskin <proski@gnu.org>
38073
38074 * boot/i386/pc/diskboot.S (notification_string): Replace
38075 "Loading kernel" with just "loading". This is shorter, less
38076 confusing and saves a few bytes for possible future changes.
38077
3e5581b0 380782008-07-05 Pavel Roskin <proski@gnu.org>
38079
ea387a48 38080 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38081 size for ATAPI devices, they are undefined. Output sector
38082 number in decimal form.
38083
3e5581b0 38084 * disk/ata.c: Use named constants for status bits.
38085
fdecb8fd 380862008-07-04 Pavel Roskin <proski@gnu.org>
38087
bcd35b90 38088 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38089 grub_addr_t before casting it to the void pointer to fix a
38090 warning. Non-addressable regions are discarded earlier.
38091 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38092 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38093 (check_signature): Don't shadow table_header.
38094 (grub_linuxbios_table_iterate): Cast numeric constants to
38095 grub_linuxbios_table_header_t.
38096 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38097 grub_stop().
38098
af58ab3d 38099 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38100 prevent warnings.
38101
1759aa57 38102 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38103 pointer, which can cause warnings. Support 64-bit addresses.
38104
fdecb8fd 38105 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38106 of sizeof(long). This fixes PowerPC image generation on x86_64.
38107
8516d2a8 381082008-07-04 Robert Millan <rmh@aybabtu.com>
38109
38110 This fixes a performance issue when pc & gpt partmap iterators
38111 didn't abort iteration even after our hook found what it was
fe987087 38112 looking for (often causing expensive probes of non-existent drives).
8516d2a8 38113
38114 Some callers relied on previous buggy behaviour, since they would
34c44600 38115 raise an error when their own hooks caused early abortion of its
8516d2a8 38116 iteration.
38117
38118 * kern/device.c (grub_device_open): Improve error message.
38119 * disk/lvm.c (grub_lvm_open): Likewise.
38120 * disk/raid.c (grub_raid_open): Likewise.
38121
38122 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38123 when hook requests it, independently of grub_errno.
38124 (pc_partition_map_probe): Do not fail when find_func() caused
38125 early abortion of pc_partition_map_iterate().
38126
38127 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38128 when hook requests it, independently of grub_errno.
38129 (gpt_partition_map_probe): Do not fail when find_func() caused
38130 early abortion of gpt_partition_map_iterate().
38131
38132 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38133 when hook requests it, independently of grub_errno. Do not fail when
38134 part_map_iterate_hook() caused early abortion of p->iterate().
38135
38136 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38137 when grub_partition_iterate() returned with non-zero.
38138
277d0de9 381392008-07-03 Pavel Roskin <proski@gnu.org>
38140
38141 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38142 like we do in grub_ata_pio_read().
38143 (grub_ata_readwrite): Always write individual sectors. Fix the
38144 sector count for the remainder.
38145 (grub_ata_write): Enable writing to ATA devices. Correctly
38146 report error for ATAPI devices.
38147
d4c9b428 381482008-07-02 Pavel Roskin <proski@gnu.org>
38149
e43fc690 38150 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38151 warning.
38152
f707af42 38153 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38154 for every read sector, we already increment it for the whole
38155 batch. This fixes reading more than 256 sectors at once.
38156
11e16b15 38157 * util/grub-editenv.c (cmd_info): Cast argument to long
38158 explicitly. ptrdiff_t reduces to int on i386.
38159
cbabfdd4 38160 * util/grub-editenv.c (main): Be specific which parameter is
38161 missing.
38162
b8fbce0a 38163 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38164 (memdisk): Make memdisk_orig_addr a pointer.
38165
c9c8e606 38166 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38167 for file offsets, use grub_off_t instead. Fix printf format
38168 warnings.
38169
ca62e598 38170 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38171 there. Real unexpected warnings should not drown in the noise
38172 about known problems.
38173
ce8d1766 38174 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38175 grub_disk_addr_t for memory addresses.
38176
00c7a56a 38177 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38178 explicitly to fix a warning.
38179
08d3ef09 38180 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38181
cb71ba20 38182 * Makefile.in (MODULE_LDFLAGS): New variable.
38183 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38184 the linker accepts --build-id=none.
38185 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38186 MODULE_LDFLAGS.
38187 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38188
d4c9b428 38189 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38190 those in Linux XFS code. Provide a way to access 64-bit parent
38191 inode.
38192 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38193 the end of struct grub_xfs_dir_header.
38194
d4156eee 381952008-07-02 Bean <bean123ch@gmail.com>
38196
38197 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38198 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38199 and GRUB_IEEE1275_FLAG_NO_ANSI.
38200
38201 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38202 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38203 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38204
38205 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38206 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38207
38208 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38209 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38210
38211 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38212 esc sequence on non ANSI terminal.
38213 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38214
38215 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38216 beginning of file.
38217
2270f77b 382182008-07-02 Bean <bean123ch@gmail.com>
38219
38220 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38221 (grub_editenv_SOURCES): New variable.
38222 (pkglib_MODULES): Add loadenv.mod.
38223 (loadenv_mod_SOURCES): New variable.
38224 (loadenv_mod_CFLAGS): Likewise.
38225 (loadenv_mod_LDFLAGS): Likewise.
38226
38227 * include/grub/envblk.h: New file.
38228
38229 * util/envblk.c: New file.
38230
38231 * util/grub-editenv.c: New file.
38232
38233 * commands/loadenv.c: New file.
38234
0e9e51ec 382352008-07-01 Pavel Roskin <proski@gnu.org>
38236
d89b7634 38237 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38238 not unsigned char. This fixes warnings and is consistent with
38239 other tags.
38240
bf1835b1 38241 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38242
8222a04b 38243 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38244
6a42d99d 38245 * term/tparm.c (analyze): Always set *popcount.
38246
10b159d1 38247 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38248 cast to fix a warning.
38249
b8789f6c 38250 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38251 cast to suppress a warning.
38252
29d7e38a 38253 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38254 grub_fshelp_read_file() expects.
38255
f341f669 38256 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38257 write uuid as a 32-bit value in CPU byte order, so declare and
38258 use it as such.
38259
0e9e51ec 38260 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38261 long if the format specifier expects it.
38262 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38263 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38264 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38265 long to fix a warning.
38266 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38267 grub_dprintf() arguments to fix warnings.
38268
3aefa857 382692008-06-30 Pavel Roskin <proski@gnu.org>
38270
56c7668b 38271 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38272 install_bsd_part immediately before core.img is embedded or
38273 modified on disk. This fixes core.img verification if core.img
38274 cannot be embedded.
38275
3aefa857 38276 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38277 core_path to calculate the blocklist.
38278 Patch from Javier Martín <lordhabbit@gmail.com>
38279
5444088d 382802008-06-29 Robert Millan <rmh@aybabtu.com>
38281
38282 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38283 block to disk block.
38284 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38285 Patch from Niels Böhm <bitbucket@arcor.de>
38286
674835c8 382872008-06-29 Robert Millan <rmh@aybabtu.com>
38288
38289 * util/update-grub_lib.in (font_path): Search for fonts in
38290 /boot/grub first, which is more likely to be readable (we aren't
38291 deciding where fonts live, just looking for them).
38292
f527dbc8 382932008-06-26 Pavel Roskin <proski@gnu.org>
38294
6c2d8df6 38295 * util/biosdisk.c (read_device_map): Don't leave dead map
38296 entries for devices failing stat() check.
38297
f527dbc8 38298 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
38299 core_path_dev for the core.img path on the target device.
38300
aebe3d13 383012008-06-26 Robert Millan <rmh@aybabtu.com>
38302
38303 * disk/fs_uuid.c: New file.
38304 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
38305 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
38306 (fs_uuid_mod_LDFLAGS): New variables.
38307 * include/grub/disk.h (grub_disk_dev_id): Add
38308 `GRUB_DISK_DEVICE_UUID_ID'.
38309 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
38310 implement iterate().
38311
37aaf354 383122008-06-26 Robert Millan <rmh@aybabtu.com>
38313
38314 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
38315 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
38316 Linux image includes no initrd.
38317
25ff262a 383182008-06-21 Javier Martín <lordhabbit@gmail.com>
38319
38320 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
38321 call to resolve the core image location that effectively appended the
38322 name twice.
38323
76a2bd44 383242008-06-21 Robert Millan <rmh@aybabtu.com>
38325
38326 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
38327 call from here ...
38328
38329 * util/grub.d/10_hurd.in: ... to here ...
38330 * util/grub.d/10_linux.in: ... and here.
38331
650e1c79 383322008-06-19 Robert Millan <rmh@aybabtu.com>
38333
fe987087 38334 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 38335 after it has been set by grub_machine_set_prefix().
38336
6ce63911 383372008-06-19 Robert Millan <rmh@aybabtu.com>
38338
38339 * commands/search.c (search_label, search_fs_uuid, search_file): Print
38340 search result when not saving to variable, not the other way around.
38341 When saving to variable, abort iteration as soon as a match is found.
38342
73940cec 383432008-06-19 Robert Millan <rmh@aybabtu.com>
38344
38345 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
38346 check for partition that provides /boot/grub. Its logic is flawed,
38347 as it prevents prepare_grub_to_access_device() from being called
38348 multiple times.
38349
3c62a39d 383502008-06-19 Robert Millan <rmh@aybabtu.com>
38351
38352 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
38353 "insmod" command directly when abstraction modules are needed,
fe987087 38354 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 38355 since it had already been processed).
38356
47395a42 383572008-06-19 Pavel Roskin <proski@gnu.org>
38358
38359 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
38360 changed. This is needed in case GRUB_LIBDIR changes.
38361 * conf/i386-ieee1275.rmk: Likewise.
38362 * conf/i386-linuxbios.rmk: Likewise.
38363 * conf/i386-pc.rmk: Likewise.
38364 * conf/powerpc-ieee1275.rmk: Likewise.
38365
a145ac2d 383662008-06-18 Pavel Roskin <proski@gnu.org>
38367
38368 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
38369 kernel_elf_symlist.c to symlist.c for consistency with other
38370 architectures. Update all users.
38371 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38372
7847c51e 383732008-06-18 Robert Millan <rmh@aybabtu.com>
38374
38375 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
38376 it in prefix.
38377
38378 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
38379 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
38380 a RAID device, run setup() for all members independently on whether
38381 LVM abstraction is being used.
38382 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
38383 If grub-mkimage has set `*install_dos_part == -2', don't override this
38384 value.
38385 Perform *install_dos_part adjustments independently on whether
38386 we're embedding or not.
38387 Clarify error message when image is too big for embedding.
38388 Remove duplicate *install_dos_part stanza.
38389
b23e5644 383902008-06-17 Robert Millan <rmh@aybabtu.com>
38391
38392 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
38393 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
38394 variables.
38395 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
38396 values in grub_ofconsole_normal_color and
38397 grub_ofconsole_highlight_color (they're not directly related to
38398 background and foreground).
38399 (grub_ofconsole_setcolorstate): Extract background and foreground
38400 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
38401
0aac2f79 384022008-06-17 Robert Millan <rmh@aybabtu.com>
38403
38404 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
38405 /boot/grub for the check in last commit, not /boot (they could be
38406 different partitions).
38407
3cca7ef3 384082008-06-16 Robert Millan <rmh@aybabtu.com>
38409
38410 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
38411 asked to setup access for the same partition that provides /boot,
38412 don't bother using UUIDs since our root already has the value we
38413 want.
38414
347396d8 384152008-06-16 Robert Millan <rmh@aybabtu.com>
38416
38417 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
38418 I2O devices.
38419 Patch from Sven Mueller <sven@debian.org>.
38420
991477f8 384212008-06-16 Robert Millan <rmh@aybabtu.com>
38422
38423 * util/update-grub.in: Check for $EUID instead of $UID.
38424 Reported by Vincent Zweije.
38425
d31a32a1 384262008-06-16 Bean <bean123ch@gmail.com>
38427
fe987087 38428 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 38429 (grub_ext2_read_block): Likewise.
38430 (grub_ext2_read_inode): Likewise.
38431 (grub_ext2_mount): Likewise.
38432 (grub_ext2_close): Likewise.
38433 (grub_ext3_get_journal): Removed.
38434
fe987087 38435 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 38436 (grub_reiserfs_read_symlink): Likewise.
38437 (grub_reiserfs_mount): Likewise.
38438 (grub_reiserfs_open): Likewise.
38439 (grub_reiserfs_read): Likewise.
38440 (grub_reiserfs_close): Likewise.
38441 (grub_reiserfs_get_journal): Removed.
38442
38443 * fs/fshelp.c (grub_fshelp_read): Removed.
38444 (grub_fshelp_map_block): Likewise.
38445
38446 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
38447 (grub_fshelp_journal): Likewise.
38448 (grub_fshelp_read): Likewise.
38449 (grub_fshelp_map_block): Likewise.
38450
3540a760 384512008-06-16 Pavel Roskin <proski@gnu.org>
38452
38453 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
38454 floating point anymore.
38455 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
38456
95614c84 384572008-06-15 Pavel Roskin <proski@gnu.org>
38458
38459 * commands/ls.c (grub_ls_list_files): Use integer calculations
38460 for human readable format, avoid floating point use.
38461 * kern/misc.c (grub_ftoa): Remove.
38462 (grub_vsprintf): Remove floating point support.
38463
50465dd6 384642008-06-15 Robert Millan <rmh@aybabtu.com>
38465
fe6b695a 38466 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 38467 devices.
38468 Reported by Max Vozeler.
38469
a9207284 384702008-06-15 Robert Millan <rmh@aybabtu.com>
38471
38472 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
38473 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
38474 skipped later.
38475 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
38476 the beginning of the prefix.
38477
38478 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
38479 It is assumed that if we have a memdisk, grub-mkimage has set
38480 grub_prefix to include the "(memdisk)" drive in it.
38481
a7cbd45a 384822008-06-15 Robert Millan <rmh@aybabtu.com>
38483
38484 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
38485 Initialize keyboard controller after registering the terminal, so that
38486 grub_printf() can be called from grub_keyboard_controller_init().
38487
21cf716a 384882008-06-15 Robert Millan <rmh@aybabtu.com>
38489
38490 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
38491 extent-btree which is written as big endian on disk.
38492 Reported by Alain Greppin <al@chilibi.org>.
38493
23a64d8e 384942008-06-14 Robert Millan <rmh@aybabtu.com>
38495
38496 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
38497 * util/i386/pc/grub-install.in (modules): Likewise.
38498
d687651c 384992008-06-13 Pavel Roskin <proski@gnu.org>
38500
38501 * commands/ls.c (grub_ls_list_files): Fix format warnings.
38502
dfe9ddd4 385032008-06-13 Bean <bean123ch@gmail.com>
38504
38505 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
38506
38507 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
38508
38509 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
38510 to indicate sparse block.
38511
16ae7781 385122008-06-12 Pavel Roskin <proski@gnu.org>
38513
e6d1a308 38514 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
38515 number, grub_fshelp_read() does it for us.
38516
16ae7781 38517 * fs/fshelp.c (grub_fshelp_read): New function. Implement
38518 linear disk read with journal translation.
38519 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
38520 * include/grub/fshelp.h: Declare grub_fshelp_read().
38521
40fd3a2b 385222008-06-09 Pavel Roskin <proski@gnu.org>
38523
38524 * fs/minix.c (grub_minix_mount): Handle error reading
38525 superblock.
38526
f5679726 385272008-06-08 Robert Millan <rmh@aybabtu.com>
38528
38529 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
38530 don't append the RAID prefix afterwards.
38531 Reported by Clint Adams.
38532
ce525529 385332008-06-08 Robert Millan <rmh@aybabtu.com>
38534
38535 Based on description from Pavel:
38536 * kern/disk.c (grub_disk_check_range): Rename to ...
38537 (grub_disk_adjust_range): ... this. Add a comment explaining the
38538 tasks performed by this function.
38539
ad4936a0 385402008-06-08 Robert Millan <rmh@aybabtu.com>
38541
38542 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
38543 `num_serial' (for consistency with other variables).
38544 (struct grub_ntfs_data): Add `uuid' member.
38545 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
38546 (grub_ntfs_uuid): New function.
38547 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
38548
dc20b0f9 385492008-06-07 Pavel Roskin <proski@gnu.org>
38550
38551 * util/biosdisk.c (open_device): Revert last change to the
38552 function, it broke installation. The sector needs to be
38553 different dependent on which device is opened.
38554
c5e3cfba 385552008-06-06 Robert Millan <rmh@aybabtu.com>
38556
38557 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
38558 rest of GRUB, and breakage doesn't happen if its value were modified.
38559
38560 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38561 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
38562 a constant (same value).
38563 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
38564 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
38565
26a1f8c4 385662008-06-06 Robert Millan <rmh@aybabtu.com>
38567
38568 * util/biosdisk.c (open_device): Do not modify sector offset when
38569 accessing a partition. kern/disk.c already handles this for us.
38570
25d6b327 385712008-06-06 Robert Millan <rmh@aybabtu.com>
38572
38573 * util/grub-emu.c (grub_machine_init): Move code in this function from
38574 here ...
38575 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
38576 segfault in case grub_printf() is called).
38577
38578 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
38579 grub_probe. Update all users not to explicitly add it again.
38580 (grub_device): New variable; contains corresponding device for grubdir.
38581 (fs_module, partmap_module, devabstraction_module): Pass
38582 `--device ${grub_device}' to grub_probe to avoid traversing /dev
38583 every time.
38584
9ece62fb 385852008-06-05 Robert Millan <rmh@aybabtu.com>
38586
38587 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
38588 is found, print it (same layout as with labels).
38589
1ad36d37 385902008-06-04 Robert Millan <rmh@aybabtu.com>
38591
38592 * util/biosdisk.c (get_drive): Rename to ...
38593 (find_grub_drive): ... this. Update all users.
38594
38595 (get_os_disk): Rename to ...
38596 (convert_system_partition_to_system_disk): ... this. Update all users.
38597
38598 (find_drive): Rename to ...
38599 (find_system_device): ... this. Update all users.
38600
e6a30859 386012008-06-04 Robert Millan <rmh@aybabtu.com>
38602
38603 * util/biosdisk.c (get_os_disk): Handle IDA devices.
38604 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38605 (make_device_map): Likewise.
38606
00c108a4 386072008-06-01 Robert Millan <rmh@aybabtu.com>
38608
38609 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
38610 before dereferencing it.
38611
38612 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
38613 union with fat12/fat16-specific ones. Add some new fields, including
38614 `num_serial' for both versions.
38615 (struct grub_fat_data): Add `uuid' member.
38616 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
38617 names. Initialize `data->uuid' using `num_serial'.
38618 (grub_fat_uuid): New function.
38619 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
38620
38621 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
38622 (grub_reiserfs_uuid): New function.
38623 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
38624 member.
38625
38626 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
38627 (grub_xfs_uuid): New function.
38628 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
38629
1385c5bb 386302008-06-01 Robert Millan <rmh@aybabtu.com>
38631
38632 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
38633 code that is backward compatible with pre-uuid search command.
38634
c682dfd7 386352008-05-31 Robert Millan <rmh@aybabtu.com>
38636
38637 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
38638 floppies after everything else, to ensure floppy drive isn't accessed
38639 unnecessarily (patch from Bean).
38640
b7db5d47 386412008-05-31 Robert Millan <rmh@aybabtu.com>
38642
38643 * commands/search.c (search_label, search_fs_uuid, search_file): Do
38644 not print device names when we were asked to set a variable.
38645
6e037aa9 386462008-05-31 Robert Millan <rmh@aybabtu.com>
38647
38648 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
38649 using "cursor-on" and "cursor-off" commands (understood at least by
38650 the Open Firmware flavour on OLPC).
38651
41305bc8 386522008-05-31 Michael Gorven <michael@gorven.za.net>
38653
38654 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
38655 on and off sequences.
38656
69ba137e 386572008-05-31 Robert Millan <rmh@aybabtu.com>
38658
38659 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
38660 * util/update-grub.in: Likewise.
38661
520ae21b 386622008-05-30 Pavel Roskin <proski@gnu.org>
38663
38664 * util/biosdisk.c (linux_find_partition): Simplify logic and
38665 make the code more universal. Keep special processing for
38666 devfs, but use a simple rule for all other devices. If the
38667 device ends with a number, append 'p' and the partition number.
38668 Otherwise, append only the partition number.
38669
5786569b 386702008-05-30 Robert Millan <rmh@aybabtu.com>
38671
38672 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
38673 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
38674 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
38675 the `root' parameter to Linux.
38676
51500452 386772008-05-30 Robert Millan <rmh@aybabtu.com>
38678
38679 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
38680 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
38681 --fs_uuid with --fs-uuid.
38682 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
38683 all filesystems support them).
38684
811d3878 386852008-05-30 Robert Millan <rmh@aybabtu.com>
38686
38687 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 38688 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 38689
cab63c95 386902008-05-30 Robert Millan <rmh@aybabtu.com>
38691
38692 * util/grub.d/00_header.in: Remove obsolete comment referencing
38693 convert_system_path_to_grub_path().
38694 * util/update-grub.in: Likewise.
38695 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
38696 (convert_system_path_to_grub_path): Add a warning message explaining
38697 that this function is deprecated. Rely on is_path_readable_by_grub()
38698 for the readability checks.
38699 (font_path): Use is_path_readable_by_grub() for the readability
38700 check rather than convert_system_path_to_grub_path().
38701
972e2f7a 387022008-05-30 Robert Millan <rmh@aybabtu.com>
38703
38704 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
38705 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
38706 converting it first.
38707 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
38708 grub.cfg for access to font file, and afterwards call it again to set
38709 the root device.
38710
62191274 387112008-05-30 Robert Millan <rmh@aybabtu.com>
38712
38713 * commands/search.c (options): Add --fs_uuid option.
38714 (search_fs_uuid): New function.
38715 (grub_cmd_search): Fix --set argument passing.
38716 Use search_fs_uuid() when requested via --fs_uuid.
38717 (grub_search_init): Update help message.
38718 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
38719 and redeclare it as an array of 16-bit words.
38720 (grub_ext2_uuid): New function.
38721 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
38722 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
38723 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
38724 (GRUB_DEVICE_BOOT_UUID): New variables.
38725 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
38726 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
38727 whenever possible.
38728 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
38729 just assume `root' variable has the right value.
38730 * util/grub.d/10_linux.in: Likewise.
38731 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
38732 via PRINT_FS_UUID.
38733 (main): Recognise `-t fs_uuid' argument.
38734
01b73ec8 387352008-05-30 Robert Millan <rmh@aybabtu.com>
38736
38737 * util/biosdisk.c (map): Redefine structure to hold information
38738 about GRUB drive name.
fe6b695a 38739 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 38740 drive names.
38741 (call_hook): Remove.
38742 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
38743 member. Assume drive has partitions.
38744 (grub_util_biosdisk_open): Access device names via `.device' struct
38745 member.
38746 (open_device): Likewise.
38747 (find_drive): Likewise.
38748 (read_device_map): Adjust map[] usage to match the new struct
38749 definition. Don't check for duplicates (still possible, but not cheap
38750 anymore).
38751 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
38752 (make_device_name): Remove assumption of BIOS-like drive names.
38753
22f16596 387542008-05-30 Pavel Roskin <proski@gnu.org>
38755
38756 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
38757 compiling execute.c doesn't need grub_script.tab.h anymore.
38758 (normal/command.c_DEPENDENCIES): Likewise.
38759 (normal/function.c_DEPENDENCIES): Likewise.
38760 * conf/i386-ieee1275.rmk: Likewise.
38761 * conf/i386-linuxbios.rmk: Likewise.
38762 * conf/i386-pc.rmk: Likewise.
38763 * conf/powerpc-ieee1275.rmk: Likewise.
38764 * conf/sparc64-ieee1275.rmk: Likewise.
38765
528ad8f2 387662008-05-29 Pavel Roskin <proski@gnu.org>
38767
d1dff95d 38768 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
38769 when scanning metadata for volume group name.
38770
528ad8f2 38771 * include/grub/script.h: Don't include grub_script.tab.h. It's
38772 a generated file, which may only be included from the files with
38773 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
38774 use union YYSTYPE, as the later allows forward declaration.
38775 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
38776
47248e08 387772008-05-29 Robert Millan <rmh@aybabtu.com>
38778
38779 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
38780 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
38781 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
38782 (grub_console_checkkey): Add grub_dprintf() call to report unknown
38783 scan codes.
38784
ee632529 387852008-05-29 Robert Millan <rmh@aybabtu.com>
38786
38787 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
38788 control key combinations.
38789
eee96e08 387902008-05-29 Robert Millan <rmh@aybabtu.com>
38791
38792 * util/powerpc/ieee1275/grub-install.in: Move from here ...
38793 * util/ieee1275/grub-install.in: ... to here.
38794 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
38795 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
38796 (grub_install_SOURCES): Likewise.
38797
da9a6a94 387982008-05-29 Robert Millan <rmh@aybabtu.com>
38799
38800 * fs/affs.c: Update copyright year.
38801 * fs/ext2.c: Likewise.
38802 * fs/fshelp.c: Likewise.
38803 * fs/hfsplus.c: Likewise.
38804 * fs/ntfs.c: Likewise.
38805 * fs/xfs.c: Likewise.
38806 * include/grub/fshelp.h: Likewise.
38807 * util/grub-mkdevicemap.c: Likewise.
38808
12e65f3a 388092008-05-28 Robert Millan <rmh@aybabtu.com>
38810
38811 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38812 might need to be fatfs to support some firmware implementations
38813 (e.g. OFW or EFI).
38814
23023641 388152008-05-28 Robert Millan <rmh@aybabtu.com>
38816
38817 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38818 devices.
38819 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38820 (make_device_map): Likewise.
38821
887d2619 388222008-05-20 Bean <bean123ch@gmail.com>
38823
38824 * fs/fshelp.c (grub_fshelp_map_block): New function.
38825 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38826 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38827
38828 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38829 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38830 (grub_fshelp_journal): New structure.
38831 (grub_fshelp_map_block): New function prototype.
38832 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38833 (grub_fshelp_map_block): Likewise.
38834
38835 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38836 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38837 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38838 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38839 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38840 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38841 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38842 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38843 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38844 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38845 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
38846 (grub_ext2_sblock): New members for journal support.
38847 (grub_ext3_journal_header): New structure.
38848 (grub_ext3_journal_revoke_header): Likewise.
38849 (grub_ext3_journal_block_tag): Likewise.
38850 (grub_ext3_journal_sblock): Likewise.
38851 (grub_fshelp_node): New members logfile and journal.
38852 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
38853 grub_fshelp_map_block to get real block number.
38854 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
38855 number.
38856 (grub_ext2_read_inode): Likewise.
38857 (grub_ext3_get_journal): New function.
38858 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
38859 (grub_ext2_close): Release memory used by journal.
38860
38861 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38862 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38863 (grub_reiserfs_transaction_header): Renamed to
38864 grub_reiserfs_description_block, replace field data with real_blocks.
38865 (grub_reiserfs_commit_block): New structure.
38866 (grub_reiserfs_data): New member journal.
38867 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38868 number.
38869 (grub_reiserfs_read_symlink): Likewise.
38870 (grub_reiserfs_iterate_dir): Likewise.
38871 (grub_reiserfs_open): Likewise.
38872 (grub_reiserfs_read): Likewise.
38873 (grub_reiserfs_get_journal): New function.
38874 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38875 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38876 using grub_reiserfs_get_journal.
38877 (grub_reiserfs_close): Release memory used by journal.
38878
38879 * fs/affs.c (grub_affs_read_block): Change block type to
38880 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38881
38882 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38883
38884 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38885
38886 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38887
38888 * fs/udf.c (grub_udf_read_block): Change block type to
38889 grub_disk_addr_t. Use type cast to avoid warning.
38890
38891 * fs/xfs.c (grub_xfs_read_block): Likewise.
38892
b7c6bed5 388932008-05-16 Christian Franke <franke@computer.org>
38894
38895 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38896 to ensure that break with ESC will always work.
38897 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38898 Remove ESC from keyboard queue.
38899
eedf167f 389002008-05-16 Christian Franke <franke@computer.org>
38901
38902 * util/biosdisk.c: [__CYGWIN__] Add includes.
38903 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38904 (get_os_disk): Move variable declarations to OS specific
38905 parts to avoid warning.
38906 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38907 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38908 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38909 Cygwin.
38910 * util/getroot.c: [__CYGWIN__] Add includes.
38911 (strip_extra_slashes): Fix "/" case.
38912 [__CYGWIN__] (get_win32_path): New function.
38913 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38914 [__CYGWIN__] (find_root_device): Disable.
38915 [__CYGWIN__] (get_bootsec_serial): New function.
38916 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38917 [__linux__] (grub_guess_root_device): Add early returns to simplify
38918 structure.
38919 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38920 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38921 check for Linux only.
38922
a079699e 389232008-05-15 Bean <bean123ch@gmail.com>
38924
38925 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38926 keyboard hang problem in apple's intel mac.
38927
1cf4059a 389282008-05-09 Robert Millan <rmh@aybabtu.com>
38929
38930 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38931 devices.
38932 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38933 (make_device_map): Likewise.
38934 Reported by Aurelien Jarno <aurel32@debian.org>
38935
ed759390 389362008-05-07 Ian Campbell <ijc@hellion.org.uk>
38937
38938 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38939 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38940 (make_device_map): Output entries for xvd type disks.
38941
b56c4eaa 389422008-05-07 Robert Millan <rmh@aybabtu.com>
38943
38944 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38945 devices.
38946 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38947 (make_device_map): Likewise.
38948 Reported by Roland Dreier <rdreier@cisco.com>
38949
7f8866ed 389502008-05-07 Robert Millan <rmh@aybabtu.com>
38951
38952 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38953 grub_strstr() call. Correct a few mistakes in failure path handling.
38954
b0346e0f 389552008-05-06 Robert Millan <rmh@aybabtu.com>
38956
38957 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38958 Do not print a trailing slash (therefore, the root directory is an
38959 empty string).
38960 (convert_system_path_to_grub_path): Do not remove trailing slash
38961 from make_system_path_relative_to_its_root() output.
38962
38963 * util/i386/pc/grub-install.in: Add trailing slash to output from
38964 make_system_path_relative_to_its_root().
38965
6cf12cbd 389662008-05-06 Robert Millan <rmh@aybabtu.com>
38967
38968 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38969 ensures that output lines aren't intermangled with those sent to
38970 stderr (via grub_util_info()).
38971 * util/grub-probe.c (grub_refresh): Likewise.
38972 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38973
0fbb3117 389742008-05-05 Christian Franke <franke@computer.org>
38975
38976 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38977 Add Cygwin device names.
38978 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38979 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38980 (check_device): Return error instead of success on empty name.
38981 (make_device_map): Move label inside linux specific code to
38982 prevent compiler warning.
38983
8124cdb7 389842008-04-30 Robert Millan <rmh@aybabtu.com>
38985
38986 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
38987 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
38988 first boot option.
38989 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
38990
094c01d0 389912008-04-29 Robert Millan <rmh@aybabtu.com>
38992
38993 * docs/grub.cfg: New file (example GRUB configuration).
38994
f4b1fc02 389952008-04-26 Robert Millan <rmh@aybabtu.com>
38996
329ce2a5 38997 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
38998 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
38999 and `disk/ieee1275/nand.c'.
f4b1fc02 39000
25f16ec1 390012008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 39002
25f16ec1 39003 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39004 i386-linuxbios.
39005
39006 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39007 change the buffer size to 4096 for cdrom device.
39008
39009 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39010 and nand.mod.
39011 (_linux_mod_SOURCES): New variable.
39012 (_linux_mod_CFLAGS): Likewise.
39013 (_linux_mod_LDFLAGS): Likewise.
39014 (linux_mod_SOURCES): Likewise.
39015 (linux_mod_CFLAGS): Likewise.
39016 (linux_mod_LDFLAGS): Likewise.
39017 (nand_mod_SOURCES): Likewise.
39018 (nand_mod_CFLAGS): Likewise.
39019 (nand_mod_LDFLAGS): Likewise.
39020
39021 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39022 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39023 type property. (nand device in olpc don't have this property)
39024
39025 * include/grub/disk.h (grub_disk_dev_id): New macro
39026 GRUB_DISK_DEVICE_NAND_ID.
39027
39028 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39029 function prototype.
39030 (grub_rescue_cmd_initrd): Likewise.
39031
39032 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39033 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39034 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 39035
25f16ec1 39036 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39037 GRUB_MACHINE_IEEE1275 is defined.
39038
39039 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39040 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39041
39042 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39043 on nested function heap_init.
39044 (grub_upper_mem): New variable for i386-ieee1275.
39045 (grub_get_extended_memory): New function for i386-ieee1275.
39046 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39047
39048 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39049 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39050 property.
f19dbdb7 39051
25f16ec1 39052 * loader/i386/ieee1275/linux.c: New file.
39053
39054 * loader/i386/ieee1275/linux_normal.c: New file.
39055
39056 * disk/ieee1275/nand.c: New file.
39057
e89d61e9 390582008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39059
39060 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39061 value.
39062 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39063
602566f6 390642008-04-18 Robert Millan <rmh@aybabtu.com>
39065
39066 Restructures early code path on ieee1275 to unify grub_main() as
39067 the first C function that is executed in every platform.
39068
39069 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39070 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39071 cmain().
39072 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39073 * kern/ieee1275/cmain.c (cmain): Rename to ...
39074 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39075 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39076 at the beginning.
39077
57490c2b 390782008-04-18 Robert Millan <rmh@aybabtu.com>
39079
39080 * util/update-grub.in: Fix syntax error when setting
39081 `GRUB_PRELOAD_MODULES'.
39082 Reported by Stephane Chazelas <stephane@artesyncp.com>
39083
1977517d 390842008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39085
39086 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39087 section into account, newer toolchains generate unique build ids
39088 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 39089 we want build ids to be preserved
1977517d 39090 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39091 far from other sections don't cause the raw binary images grow
39092 size
39093
bfb1f1a2 390942008-04-15 Robert Millan <rmh@aybabtu.com>
39095
39096 * disk/lvm.c: Update copyright year.
39097 * kern/misc.c: Likewise.
39098
01979850 390992008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39100
39101 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 39102 there is no memory left for physical volume name.
01979850 39103
0a1150e2 391042008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39105
39106 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39107 volume name mapping to support bigger than 9 character names properly.
39108
82ead3fe 391092008-04-13 Robert Millan <rmh@aybabtu.com>
39110
39111 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39112 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39113
e54a72f5 391142008-04-13 Christian Franke <franke@computer.org>
39115
39116 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39117 to create a floppy emulation boot CD when non emulation mode
39118 does not work.
39119 Enable Joliet CD filesystem extension.
39120
9fe86034 391212008-04-13 Robert Millan <rmh@aybabtu.com>
39122
39123 * kern/misc.c (grub_strncat): Fix off-by-one error.
39124 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39125
39126 * kern/env.c (grub_env_context_close): Clear current context, not
39127 previous one.
39128 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39129
39130 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39131
7ceeee39 391322008-04-13 Robert Millan <rmh@aybabtu.com>
39133
39134 Improve robustness when handling LVM.
39135
39136 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 39137 (and leave `*p' unmodified).
7ceeee39 39138 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39139 through it.
39140 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39141 iterating through it.
39142 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39143 through it.
fe6b695a 39144 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 39145 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39146 Don't assume `vg->pvs != NULL' when iterating through it.
39147
58cd3d85 391482008-04-13 Robert Millan <rmh@aybabtu.com>
39149
39150 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39151 * genmk.rb (partmap): New variable.
39152 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39153 (#{partmap}): New target rule.
39154 * genpartmaplist.sh: New file.
39155 * Makefile.in (pkglib_DATA): Add partmap.lst.
39156 (partmap.lst): New target rule.
39157 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39158 modules (including all partition maps), instead of preloading them.
39159
78b51059 391602007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39161
39162 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39163 `linux-boot-prober' (if installed) to detect other operating
39164 systems which are installed on the computer and add them to
39165 the boot menu.
39166 * conf/common.rmk: Build and install 30_os-prober.
39167
a91627b4 391682008-04-12 Robert Millan <rmh@aybabtu.com>
39169
39170 * kern/powerpc/ieee1275/init.c: Move from here ...
39171 * kern/ieee1275/init.c: ... to here. Update all users.
39172
39173 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39174 * kern/ieee1275/cmain.c: ... to here. Update all users.
39175
39176 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39177 * kern/ieee1275/openfw.c: ... to here. Update all users.
39178
39179 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39180 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39181
322562ea 391822008-04-10 Pavel Roskin <proski@gnu.org>
39183
39184 * configure.ac: Always use "_cv_" in cache variables for
39185 compatibility with Autoconf 2.62.
39186
a02a73c5 391872008-04-07 Robert Millan <rmh@aybabtu.com>
39188
39189 Revert grub/machine/init.h addition by Pavel (since it breaks on
39190 i386-ieee1275 and others):
39191 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39192 * util/powerpc/ieee1275/misc.c: Likewise.
39193
25c024b1 391942008-04-07 Robert Millan <rmh@aybabtu.com>
39195
39196 * util/grub-probe.c (probe): Improve error message.
39197
3cbd2f98 391982008-04-07 Robert Millan <rmh@aybabtu.com>
39199
39200 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39201 (this prevents the presence of a bogus entry from ruining the whole
39202 thing).
39203
87a297bf 392042008-04-06 Pavel Roskin <proski@gnu.org>
39205
36747a62 39206 * util/biosdisk.c: Include grub/util/biosdisk.h.
39207 * util/grub-fstest.c (execute_command): Make static.
39208 * util/grub-mkdevicemap.c (check_device): Likewise.
39209 * util/i386/pc/misc.c: Include grub/machine/init.h.
39210 * util/powerpc/ieee1275/misc.c: Likewise.
39211 * util/lvm.c: Include grub/util/lvm.h.
39212 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39213 grub/cache.h.
39214 * util/raid.c: Include grub/util/raid.h.
39215 (grub_util_getdiskname): Make static.
39216
87a297bf 39217 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39218 grub_hostfs_fini(), as they are called from grub_init_all() and
39219 grub_fini_all() respectively. This fixes an infinite loop in
39220 grub-fstest due to double registration of hostfs.
39221 Reported by Christian Franke <Christian.Franke@t-online.de>
39222
f6ce7629 392232008-04-05 Pavel Roskin <proski@gnu.org>
39224
39225 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39226 all 8 functions. Otherwise, probe function 0 only.
39227
070e49e4 392282008-04-04 Pavel Roskin <proski@gnu.org>
39229
8b088a4c 39230 * commands/lspci.c (grub_lspci_iter): Print the bus number
39231 correctly.
39232
4f657021 39233 * commands/lspci.c (grub_pci_classes): Fix typos.
39234 (grub_lspci_iter): Don't print func twice. Print vendor ID
39235 before device ID, as it's normally done.
39236
070e49e4 39237 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39238 Fix signedness warnings.
39239 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39240 Likewise.
39241 * util/ieee1275/get_disk_name.c: Include config.h so that
39242 _GNU_SOURCE is defined and getline() is declared. Mark an
39243 unused argument as such. Fix a signedness warning.
39244
ba7328dc 392452008-04-02 Pavel Roskin <proski@gnu.org>
39246
26887f22 39247 * genkernsyms.sh.in: Use more robust assignments for CC and
39248 srcdir. Quote srcdir.
39249 * gensymlist.sh.in: Likewise. Assert at the compile time that
39250 the symbol table is not empty.
39251
ba7328dc 39252 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39253 * fs/cpio.c (grub_cpio_read): Likewise.
39254
0f582c6b 392552008-04-01 Pavel Roskin <proski@gnu.org>
39256
4b6e1995 39257 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39258 * disk/host.c (grub_host_open): Likewise.
39259 * disk/loopback.c (grub_loopback_open): Likewise.
39260 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39261 disk->id as in disk/host.c, not a multi-character constant.
39262
828a2768 39263 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39264 later is obsolete, potentially dangerous and sets a bad example.
39265 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39266 * util/misc.c (grub_util_get_image_size): Likewise.
39267
2bb4fb47 39268 * disk/loopback.c (options): Improve help for "--partitions".
39269
0f582c6b 39270 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39271 options to align them with the short options, e.g. "echo -e".
39272
a33224e0 392732008-03-31 Bean <bean123ch@gmail.com>
39274
39275 * video/reader/png.c (grub_png_data): New member is_16bit and
39276 image_data.
39277 (grub_png_decode_image_header): Detect 16 bit png image.
39278 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39279 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39280 (grub_video_reader_png): Release memory occupied by image_data.
39281
39282 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39283 4096 bytes.
39284 (grub_nfs_mount): Skip the test for sector per cluster.
39285
39286 * include/grub/ntfs.h (MAX_SPC): Removed.
39287
86cb4f54 392882008-03-31 Bean <bean123ch@gmail.com>
39289
39290 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
39291 (grub_probe_SOURCES): Add fs/afs.c.
39292 (grub_fstest_SOURCES): Likewise.
39293 (afs_mod_SOURCES): New variable.
39294 (afs_mod_CFLAGS): Likewise.
39295 (afs_mod_LDFLAGS): Likewise.
39296
39297 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
39298 (grub_emu_SOURCES): Likewise.
39299
39300 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39301
39302 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39303
39304 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39305
39306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39307
39308 * fs/afs.c: New file.
39309
17c74c21 393102008-03-30 Pavel Roskin <proski@gnu.org>
39311
4cb68e89 39312 * disk/host.c: Include grub/misc.h to fix a warning.
39313 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
39314 warnings about implicit declarations.
39315
8790bb04 39316 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
39317 variable.
39318 * include/grub/i386/loader.h: Change declaration of
39319 grub_linux_boot() to match what grub_loader_set() expects.
39320 * util/getroot.c (grub_guess_root_device): Return const char* to
39321 fix a warning.
39322 * util/grub-probe.c (probe): Fix a warning about uninitialized
39323 abstraction_name variable.
39324 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
39325 second argument as unused to fix a warning.
39326
9a3f3296 39327 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
39328 missing grub_error() call.
39329
0ecef90d 39330 * util/update-grub_lib.in: Define datarootdir, since Autoconf
39331 2.60 and newer uses it to define datadir.
39332
0bf6d401 39333 * commands/sleep.c: Fix warning about implicit declaration.
39334 * disk/memdisk.c: Likewise.
39335 * loader/aout.c: Likewise.
39336 * loader/i386/bsd_normal.c: Likewise.
39337 * util/grub-probe.c: Likewise.
39338
7cdacf97 39339 * commands/i386/cpuid.c (has_longmode): Make static.
39340 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
39341 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
39342
17c74c21 39343 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
39344 GDT. This is more robust, as %ds can change.
39345 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
39346 calling real_to_prot().
39347 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
39348
80a3e68b 393492008-03-28 Pavel Roskin <proski@gnu.org>
39350
39351 * kern/i386/pc/startup.S: Assert that uncompressed functions
39352 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
39353 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
39354 code, as they push parts of the code (error handlers) beyond
39355 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
39356 code as correctness and size.
39357
77bcd272 393582008-03-28 Pavel Roskin <proski@gnu.org>
39359
39360 * kern/i386/pc/startup.S
39361 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
39362 data block address to the real mode, keep offset minimal. This
39363 works around a bug in AWARD BIOS on old Athlon systems, which
39364 makes CD detection hang.
39365
c5dfd43b 393662008-03-26 Pavel Roskin <proski@gnu.org>
39367
39368 * normal/color.c (grub_parse_color_name_pair): Make `name' a
39369 const.
39370 * include/grub/normal.h: Add grub_parse_color_name_pair()
39371 declaration.
39372
bf962df2 393732008-03-24 Bean <bean123ch@gmail.com>
39374
39375 * disk/i386/pc/biosdisk.c (cd_start): Removed.
39376 (cd_count): Removed.
39377 (cd_drive): New variable.
39378 (grub_biosdisk_get_drive): Don't check for (cdN) device.
39379 (grub_biosdisk_call_hook): Likewise.
39380 (grub_biosdisk_iterate): Change cdrom detection method.
39381 (grub_biosdisk_open): Replace cd_start with cd_drive.
39382 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
39383 detect cdrom device.
39384
39385 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
39386 Removed.
39387 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
39388 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
39389 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
39390 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
39391 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
39392 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
39393 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
39394 (grub_biosdisk_cdrp): New structure.
39395 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
39396
39397 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
39398
39399 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
39400 device.
39401
39402 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
39403 New function.
39404
68e7fc7a 394052008-03-20 Robert Millan <rmh@aybabtu.com>
39406
39407 Remove 2 TiB limit in ata.mod.
39408 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
39409 (grub_ata_dumpinfo): Print sector count with 0x%llx.
39410 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
39411 grub_uint64_t instead of grub_uint32_t.
39412
38ad2cf5 394132008-03-05 Bean <bean123ch@gmail.com>
39414
39415 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
39416 (grub_multiboot): Set boot device.
39417
39418 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
39419
2b89344e 394202008-03-02 Bean <bean123ch@gmail.com>
39421
39422 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
39423 symlink_buffer.
39424
87a95d1f 394252008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
39426
39427 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
39428 texinfo.tex.
39429
39430 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
39431 modified.
39432
39433 * docs/fdl.texi: New file.
f19dbdb7 39434
87a95d1f 39435 * docs/mdate-sh: New file. Copied from gnulib.
39436 * docs/texinfo.tex: Likewise.
39437
39438 * config.guess: Updated from gnulib.
39439 * install-sh: Likewise.
39440
7dc15d8e 394412008-02-28 Robert Millan <rmh@aybabtu.com>
39442
39443 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
39444 (aout_mod_SOURCES): New variable.
39445 (aout_mod_CFLAGS): Likewise.
39446 (aout_mod_LDFLAGS): Likewise.
39447
39448 * conf/i386-ieee1275.rmk: Likewise.
39449
b00ab696 394502008-02-28 Robert Millan <rmh@aybabtu.com>
39451
39452 * util/update-grub.in: Reorganise terminal validity check. Accept
39453 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
39454 Based on suggestion by Franklin PIAT.
39455
79ca2d78 394562008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
39457
39458 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
39459 function.
39460 * util/getroot.c (grub_util_check_block_device): New function that
39461 returns the given argument if it is a block device and returns NULL else.
39462 * util/grub-probe.c (argument_is_device): New variable.
39463 (probe): Promote device_name from a variable to an argument. Receive
39464 device_name from grub_util_check_block_device() if path is NULL and from
39465 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 39466 (options): Introduce new parameter '-d, --device'.
79ca2d78 39467 (main): Add description of the new parameter to the help screen.
39468 Rename path variable to argument. Set argument_is_device if the '-d'
39469 option is given. Pass argument to probe() depending on
39470 argument_is_device.
39471
0d16e571 394722008-02-24 Bean <bean123ch@gmail.com>
39473
39474 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
39475 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
39476 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
39477 (GRUB_ISO9660_VOLDESC_PART): Likewise.
39478 (GRUB_ISO9660_VOLDESC_END): Likewise.
39479 (grub_iso9660_primary_voldesc): New member escape.
39480 (grub_iso9660_data): New member joliet.
39481 (grub_iso9660_convert_string): New function.
39482 (grub_iso9660_mount): Detect joliet extension.
39483 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
39484 (grub_iso9660_iso9660_label): Likewise.
39485
39486 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
39487 (grub_setup_SOURCES): Add fs/udf.c.
39488 (grub_fstest_SOURCES): Likewise.
39489 (udf_mod_SOURCES): New variable.
39490 (udf_mod_CFLAGS): Likewise.
39491 (udf_mod_LDFLAGS): Likewise.
39492
39493 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
39494 (grub_emu_SOURCES): Likewise.
39495
39496 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39497
39498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39499
39500 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39501
39502 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39503
39504 * fs/udf.c: New file.
39505
8a594a17 395062008-02-24 Robert Millan <rmh@aybabtu.com>
39507
39508 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
39509 (normal/lexer.c_DEPENDENCIES): New variables.
39510 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39511 (normal/lexer.c_DEPENDENCIES): Likewise.
39512 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
39513 (normal/lexer.c_DEPENDENCIES): Likewise.
39514 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
39515 (normal/lexer.c_DEPENDENCIES): Likewise.
39516 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39517 (normal/lexer.c_DEPENDENCIES): Likewise.
39518 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39519 (normal/lexer.c_DEPENDENCIES): Likewise.
39520
2dc33c03 395212008-02-23 Robert Millan <rmh@aybabtu.com>
39522
39523 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
39524 since they were intended to be in hex. This didn't break previously
39525 because of a bug in gpt_partition_map_iterate() (see below).
39526
39527 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
39528 when checking the validity of GPT header.
39529 Remove `partno', since it always provides the same information as `i'.
39530
f6f4cfb0 395312008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
39532
39533 * include/grub/efi/time.h: Fix a wrong comment.
39534
79ff665f 395352008-02-19 Pavel Roskin <proski@gnu.org>
39536
39537 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
39538 message.
39539
d38e24c2 395402008-02-19 Bean <bean123ch@gmail.com>
39541
39542 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
39543 (aout_mod_SOURCES): New variable.
39544 (aout_mod_CFLAGS): Likewise.
39545 (aout_mod_LDFLAGS): Likewise.
39546 (_bsd_mod_SOURCES): New variable.
39547 (_bsd_mod_CFLAGS): Likewise.
39548 (_bsd_mod_LDFLAGS): Likewise.
39549 (bsd_mod_SOURCES): New variable.
39550 (bsd_mod_CFLAGS): Likewise.
39551 (bsd_mod_LDFLAGS): Likewise.
39552
39553 * include/grub/aout.h: New file.
39554
39555 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
39556
39557 * include/grub/i386/bsd.h: New file.
39558
39559 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
39560 to make it public.
39561
39562 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
39563 function is called, so that it's possible to change it inside the hook.
39564 (grub_elf64_load): Likewise.
39565 (grub_elf_file): Don't close the file if elf header is not found.
39566 (grub_elf_close): Close the file if grub_elf_file fails (The new
39567 grub_elf_file won't close it).
39568 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
39569 (grub_elf64_size): Likewise.
39570
39571 * kern/i386/loader.S (grub_unix_real_boot): New function.
39572
39573 * loader/aout.c: New file.
39574
39575 * loader/i386/bsd.c: New file.
39576
39577 * loader/i386/bsd_normal.c: New file.
39578
39579 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
39580
39581 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 39582 can test other formats.
d38e24c2 39583
b93bdb0f 395842008-02-19 Robert Millan <rmh@aybabtu.com>
39585
39586 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
39587 (grub_gpt_partition_type_empty): Redefine with macro from
39588 `<grub/gpt_partition.h>'.
39589 (gpt_partition_map_iterate): Adjust partition type comparison.
39590
39591 Export `entry' as partmap-specific `part.data' struct.
39592 (grub_gpt_header, grub_gpt_partentry): Move from here ...
39593
39594 * include/grub/gpt_partition.h (grub_gpt_header)
39595 (grub_gpt_partentry): ... to here (new file).
39596
39597 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
39598
39599 (grub_gpt_partition_type_bios_boot): New const variable, defined
39600 with macro from `<grub/gpt_partition.h>'.
39601
39602 (setup): Replace `first_start' with `embed_region', which keeps
39603 track of the embed region (and is partmap-agnostic).
39604
39605 Replace find_first_partition_start() with find_usable_region(),
39606 which finds a usable region for embedding using partmap-specific
39607 knowledge (supports PC/MSDOS and GPT).
39608
39609 Fix all assumptions that the embed region start at sector 1, using
39610 `embed_region.start' from now on. Similarly, use `embed_region.end'
39611 rather than `first_start' to calculate available size.
39612
39613 In grub_util_info() message, replace "into after the MBR" with an
39614 indication of the specific sector our embed region starts at.
39615
66cb40f6 396162008-02-19 Robert Millan <rmh@aybabtu.com>
39617
39618 * DISTLIST: Replace `commands/ieee1275/halt.c' and
39619 `commands/ieee1275/reboot.c' with `commands/halt.c' and
39620 `commands/reboot.c'.
39621 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39622 (halt_mod_SOURCES): Likewise.
39623 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39624 (halt_mod_SOURCES): Likewise.
39625
b7202015 396262008-02-17 Christian Franke <franke@computer.org>
39627
39628 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
39629
32b0fc49 396302008-02-17 Robert Millan <rmh@aybabtu.com>
39631
39632 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39633 set `first_start' to 0 for non-PC/MSDOS partition maps.
39634
aca63502 396352008-02-16 Robert Millan <rmh@aybabtu.com>
39636
39637 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39638 do not assume partition map is PC/MSDOS before performing checks that
39639 are specific to that layout.
39640
0de8be86 396412008-02-13 Robert Millan <rmh@aybabtu.com>
39642
39643 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
39644 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
39645 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
39646
c3db8364 396472008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
39648
39649 * configure.ac: Only a cosmetic change on the handling of
39650 -fno-stack-protector.
39651
f714229e 396522008-02-12 Alexandre Boeglin <alex@boeglin.org>
39653
c3db8364 39654 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
39655 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
39656 reboot.c.
f714229e 39657 (grub_install_SOURCES): Add halt.mod and reboot.mod.
39658 (halt_mod_SOURCES): New variable.
39659 (halt_mod_CFLAGS): Likewise.
39660 (halt_mod_LDFLAGS): Likewise.
39661 (reboot_mod_SOURCES): Likewise.
39662 (reboot_mod_CFLAGS): Likewise.
39663 (reboot_mod_LDFLAGS): Likewise.
39664
c3db8364 39665 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
39666 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
39667 reboot.c.
f714229e 39668 (halt_mod_SOURCES): Likewise.
39669 (reboot_mod_SOURCES): Likewise.
39670
c3db8364 39671 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
39672 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 39673 (reboot_mod_SOURCES): Likewise.
39674
39675 * commands/i386/pc/reboot.c: merge this file ...
39676
39677 * commands/ieee1275/reboot.c: ... and this file ...
39678
39679 * commands/reboot.c: ... to this file.
c3db8364 39680 Add some precompiler directive to include the correct header for
39681 each machine.
f714229e 39682
39683 * commands/ieee1275/halt.c: move this file ...
39684
39685 * commands/halt.c: ... to here.
c3db8364 39686 Add some precompiler directive to include the correct header for
39687 each machine.
f714229e 39688
39689 * include/grub/efi/efi.h (grub_reboot): New function declaration.
39690 (grub_halt): Likewise.
39691
39692 * kern/efi/efi.c (grub_reboot): New function.
39693 (grub_halt): Likewise.
39694
c74493e0 396952008-02-12 Robert Millan <rmh@aybabtu.com>
39696
39697 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
39698 /dev (like it is done for /dev/mapper). This doesn't provide support
39699 for EVMS, but at least it is now easy to identify the problem when it
39700 arises.
39701
d0db4b04 397022008-02-11 Robert Millan <rmh@aybabtu.com>
39703
39704 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
39705 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
39706 comparing it with -1, not 0.
39707
bf748642 397082008-02-10 Robert Millan <rmh@aybabtu.com>
39709
39710 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
39711 `disk/lvm.c'.
39712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39713 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
39714
39715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
39716 `disk/lvm.c' to the end of the list.
39717 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39718 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39719
b5db202a 397202008-02-10 Robert Millan <rmh@aybabtu.com>
39721
39722 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
39723 grub_print_error() instead. This will let user know why we're entering
39724 rescue mode.
39725 Based on suggestions from Sam Morris.
39726
83abee31 397272008-02-10 Alexandre Boeglin <alex@boeglin.org>
39728
39729 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
39730 on remaining N args, instead of "--" arg N times.
39731
78d5a08b 397322008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
39733
39734 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
39735 (fill_with_default_glyph): Changed to use unknown_glyph for fill
39736 pattern for unknown glyphs.
39737
68807e5f 397382008-02-09 Robert Millan <rmh@aybabtu.com>
39739
39740 * configure.ac: Probe for `help2man'.
39741 * Makefile.in (builddir): New variable.
39742 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
39743 or otherwise add a few flags/options to it.
39744 (install-local): For every executable utility or script that is
39745 installed, invoke $(HELP2MAN) to install a manpage based on --help
39746 output.
39747
39748 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
39749 that it doesn't prevent --help from working in build tree.
39750
39751 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
39752 with `bug-grub@gnu.org'.
39753 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
39754 * util/update-grub.in (usage): New function.
39755 Implement proper argument check, with support for --help and --version
39756 (as well as existing -y).
39757
397582008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 39759
39760 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
39761 avoid overwriting previous output.
39762 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
39763
c1962162 397642008-02-09 Robert Millan <rmh@aybabtu.com>
39765
39766 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
39767 drawing the menu.
39768
3dac2e3f 397692008-02-09 Robert Millan <rmh@aybabtu.com>
39770
39771 * commands/sleep.c: New file.
39772 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
39773 (sleep_mod_SOURCES): New variable.
39774 (sleep_mod_CFLAGS): Likewise.
39775 (sleep_mod_LDFLAGS): Likewise.
39776
7a634e08 397772008-02-09 Robert Millan <rmh@aybabtu.com>
39778
39779 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
39780 situations in which we can deduce the RAID size and the superblock
39781 doesn't match it.
39782
b92f0c18 397832008-02-09 Robert Millan <rmh@aybabtu.com>
39784
39785 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
39786 and return a grub_diskmemberlist_t composed of LVM physical volumes.
39787 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
39788
39789 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
39790 and return a grub_diskmemberlist_t composed of physical array members.
39791 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
39792
39793 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
39794 prototype.
39795 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
39796 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
39797 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
39798
39799 * util/grub-probe.c (probe): Move partmap probing code from here ...
39800 (probe_partmap): ... to here.
39801 (probe): Use probe_partmap() once for the disk we're probing, and
39802 additionally, when such disk contains a memberlist() struct member,
39803 once for each disk that is contained in the structure returned by
39804 memberlist().
39805
91a4bf68 398062008-02-09 Robert Millan <rmh@aybabtu.com>
39807
39808 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39809 environment variable to 'all' in order to obtain debug output from
39810 non-util/ code.
39811 * util/i386/pc/grub-setup.c (main): Likewise.
39812
a96f9caa 398132008-02-08 Robert Millan <rmh@aybabtu.com>
39814
39815 * disk/raid.c (grub_raid_scan_device): Check for
39816 `array->device[sb.this_disk.number]' rather than for
39817 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39818 guaranteed to be accessible.
a96f9caa 39819
b37a9222 398202008-02-08 Robert Millan <rmh@aybabtu.com>
39821
39822 * disk/raid.c: Update copyright.
39823 * fs/cpio.c: Likewise.
39824 * include/grub/raid.h: Likewise.
39825 * loader/i386/pc/multiboot.c: Likewise.
39826 * util/hostfs.c: Likewise.
39827
5626aee1 398282008-02-08 Robert Millan <rmh@aybabtu.com>
39829
39830 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39831 to a grub_disk_t array.
39832 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39833 `device[x]'.
39834 (grub_raid_scan_device): Replace `device[x].name' accesses with
39835 `device[x]->name'. Simplify initialization of `array->device[x]'.
39836
554f0187 398372008-02-08 Robert Millan <rmh@aybabtu.com>
39838
39839 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39840 grub_dprintf() calls.
39841 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39842 error message.
39843
1ec8425d 398442008-02-07 Christian Franke <franke@computer.org>
39845
39846 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
39847 instead of fseek and ftell to support large files.
39848 (grub_hostfs_read): Likewise.
39849
f2156fda 398502008-02-07 Robert Millan <rmh@aybabtu.com>
39851
39852 Patch from Jeroen Dekkers.
39853 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 39854 failure, since successfully reading all array members might not be
f2156fda 39855 required.
39856
9216e0e7 398572008-02-06 Robert Millan <rmh@aybabtu.com>
39858
39859 * util/grub-probe.c (probe): Simplify partmap probing (with the
39860 assumption that the first word up to the underscore equals to
39861 the module name).
39862
b0dfd29a 398632008-02-06 Christian Franke <franke@computer.org>
39864
39865 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39866 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39867 last block of a cpio or tar stream.
39868 Check for "TRAILER!!!" instead of any empty data
39869 block to detect last block of a cpio stream.
39870 (grub_cpio_dir): Fix constness of variable np.
39871 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39872 cpio or tar trailer is detected. This fixes a crash
39873 on open of a non existing file.
39874
c32865bf 398752008-02-05 Bean <bean123ch@gmail.com>
39876
39877 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39878 address of entry.
39879 (grub_multiboot_load_elf64): Likewise.
39880 (grub_multiboot): Initialize mbi structure.
39881
39882 * util/grub-fstest.c: Don't include unused header file script.h.
39883
fe6b695a 39884 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39885 of file.
39886 (grub_fstest_SOURCES): Likewise.
39887
409480b7 398882008-02-05 Robert Millan <rmh@aybabtu.com>
39889
39890 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39891 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39892 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39893 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39894
39895 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39896 (translation_table): Replace hardcoded values with macros
39897 provided by `<grub/term.h>'.
39898
39899 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39900 (keyboard_map): Correct/add a few values, with macros provided
39901 by `<grub/term.h>'.
39902 (keyboard_map_shift): Zero values that don't differ from their
39903 `keyboard_map' equivalents.
39904 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39905 Discard the second scan code that is always sent by Caps lock.
39906 Only use `keyboard_map_shift' when it provides a non-zero value,
39907 otherwise fallback to `keyboard_map'.
39908
99fadbaa 399092008-02-04 Bean <bean123ch@gmail.com>
39910
39911 * Makefile.in (enable_grub_fstest): New variable.
39912
39913 * conf/common.rmk (grub_fstest_init.lst): New rule.
39914 (grub_fstest_init.h): Likewise.
39915 (grub_fstest_init.c): Likewise.
39916 (util/grub-fstest.c_DEPENDENCIES): New variable.
39917 (grub_fstest_SOURCES): Likewise.
39918
39919 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39920
39921 * util/grub-fstest.c: New file.
39922
bf567c50 399232008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39924
39925 Make grub-setup handle a separate root device.
f19dbdb7 39926
bf567c50 39927 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39928 so that the root device can be compared with the destination
39929 device.
39930 When embedding the core image, if the root and destination devices
39931 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39932 0xFF.
39933 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39934
9be6b98b 399352008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39936
39937 Add support for having a grub directory in a different drive. This
39938 is still only the data handling part.
f19dbdb7 39939
9be6b98b 39940 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39941 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39942 (grub_root_drive): New variable.
39943
39944 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39945 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39946 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39947 as it was.
39948
39949 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39950
39951 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39952 macro.
39953 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39954
39955 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39956 is bogus, because PXE booting does not specify any drive
39957 correctly.
39958
39959 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39960 am not sure if this is really correct.
39961
39962 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39963 is always identical to the boot drive when booting from a CD.
39964
39965 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39966 longer.
39967 (root_drive): New variable.
39968 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39969 (setup_sectors): Push %dx right after popping it, because %dh will
39970 be modified later.
39971 (copy_buffer): Restore %dx.
39972
e0ca0677 399732008-02-03 Robert Millan <rmh@aybabtu.com>
39974
39975 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39976 use `cdboot.img' for cdrom images.
39977
3b3f6629 399782008-02-03 Robert Millan <rmh@aybabtu.com>
39979
39980 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39981 only setup gfxterm when `font' command has succeeded.
39982
d42b3672 399832008-02-03 Robert Millan <rmh@aybabtu.com>
39984
39985 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
39986 (grub_rescue_cmd_multiboot_loader)
39987 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
39988
fa370ea6 399892008-02-03 Pavel Roskin <proski@gnu.org>
39990
e0c5dacb 39991 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 39992 %edx and %esi from stack only after grub_gate_a20() is called.
39993 grub_gate_a20() clobbers %edx.
39994
f2a76e1d 399952008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39996
39997 * configure.ac (AC_INIT): Bumped to 1.96.
39998
39999 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40000 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40001 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40002 video/readers/png.c.
40003
90fd32d1 400042008-02-03 Bean <bean123ch@gmail.com>
9be665dd 40005
40006 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40007 (cdboot_img_SOURCES): New variable.
40008 (cdboot_img_ASFLAGS): New variable.
40009 (cdboot_img_LDFLAGS): New variable.
40010
40011 * boot/i386/pc/cdboot.S: New file.
40012
40013 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40014 (cd_count): Likewise.
40015 (grub_biosdisk_get_drive): Add support for cd device.
40016 (grub_biosdisk_call_hook): Likewise.
40017 (grub_biosdisk_iterate): Likewise.
40018 (grub_biosdisk_open): Likewise.
40019 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40020 (grub_biosdisk_rw): Support reading from cd device.
40021 (GRUB_MOD_INIT): Iterate cd devices.
40022
40023 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40024 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40025 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40026
40027 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40028
4020aa53 400292008-02-02 Robert Millan <rmh@aybabtu.com>
40030
40031 * commands/read.c: New file.
40032 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40033 (read_mod_SOURCES): New variable.
40034 (read_mod_CFLAGS): Likewise.
40035 (read_mod_LDFLAGS): Likewise.
40036
e03a1132 400372008-02-02 Robert Millan <rmh@aybabtu.com>
40038
40039 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40040 determining whether menu has to be displayed.
40041
58c69220 400422008-02-02 Marco Gerards <marco@gnu.org>
40043
40044 * bus/pci.c: New file.
40045
40046 * include/grub/pci.h: Likewise.
40047
40048 * include/grub/i386/pc/pci.h: Likewise.
40049
40050 * commands/lspci.c: Likewise.
40051
40052 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40053 `lspci.mod'.
40054 (pci_mod_SOURCES): New variable.
40055 (pci_mod_CFLAGS): Likewise.
40056 (pci_mod_LDFLAGS): Likewise.
40057 (lspci_mod_SOURCES): Likewise.
40058 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 40059 (lspci_mod_LDFLAGS): Likewise.
58c69220 40060
c004e1b4 400612008-02-02 Bean <bean123ch@gmail.com>
40062
40063 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40064 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40065
40066 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40067 (grub_xfs_btree_node): New structure.
40068 (grub_xfs_btree_root): New structure.
40069 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40070 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40071 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40072 (GRUB_XFS_EXTENT_SIZE): Likewise.
40073 (grub_xfs_read_block): Support btree format type.
40074 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40075 Use directory block as basic unit.
40076
40077 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40078
40079 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40080 __attribute__ ((__regparm__ (1))).
40081
f95562bf 400822008-02-01 Robert Millan <rmh@aybabtu.com>
40083
40084 Correct a mistake in previous commit.
40085
40086 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40087 top.
40088 (normal/command.c_DEPENDENCIES): New variable.
40089
7d31f41f 400902008-02-01 Robert Millan <rmh@aybabtu.com>
40091
40092 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40093 top.
40094 (normal/command.c_DEPENDENCIES): New variable.
40095 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40096 * conf/i386-ieee1275.rmk: Likewise.
40097 * conf/i386-linuxbios.rmk: Likewise.
40098 * conf/i386-pc.rmk: Likewise.
40099 * conf/sparc64-ieee1275.rmk: Likewise.
40100 * conf/powerpc-ieee1275.rmk: Likewise.
40101 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40102
40103 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40104
60b6be74 401052008-02-01 Robert Millan <rmh@aybabtu.com>
40106
40107 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40108 call at beginning of function.
40109
078522ab 401102008-01-31 Pavel Roskin <proski@gnu.org>
40111
40112 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 40113 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40114 (grub_mkrescue_SOURCES): Likewise.
078522ab 40115 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40116
ccaa8a5f 401172008-01-30 Robert Millan <rmh@aybabtu.com>
40118
40119 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40120 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40121 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40122 (grub_probe_SOURCES): ... to here.
40123
40124 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40125 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40126 * conf/i386-ieee1275.rmk: Likewise.
40127 * conf/i386-linuxbios.rmk: Likewise.
40128 * conf/powerpc-ieee1275.rmk: Likewise.
40129
ae5a9cd7 401302008-01-30 Tristan Gingold <gingold@free.fr>
40131
40132 * kern/rescue.c: Silently accept empty lines.
40133
70bc2ef2 401342008-01-29 Bean <bean123ch@gmail.com>
40135
40136 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40137 (real_code_2): Code cleanup and change comment style.
40138 (move_memory): Avoid using 32-bit address mode.
40139
6a4d50ea 401402008-01-29 Bean <bean123ch@gmail.com>
40141
40142 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40143 (png_mod_SOURCES): New variable.
40144 (png_mod_CFLAGS): Likewise.
40145 (png_mod_LDFLAGS): Likewise.
40146
40147 * video/readers/png.c: New file.
40148
11cc30ac 401492008-01-28 Robert Millan <rmh@aybabtu.com>
40150
40151 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40152 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40153 `ifndef GRUB_MOD_GAP' hack.
40154 * util/elf/grub-mkimage.c (add_segments): Likewise.
40155
3abc589f 401562008-01-27 Robert Millan <rmh@aybabtu.com>
40157
40158 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40159 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 40160 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 40161
e1907778 401622008-01-27 Robert Millan <rmh@aybabtu.com>
40163
40164 Get grub-emu to build again (including parallel builds).
40165
40166 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40167 Split into ...
40168 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40169 (normal/execute.c_DEPENDENCIES): ... this, ...
40170 (grub-emu_DEPENDENCIES): ... and this.
40171
40172 * conf/i386-efi.rmk: Likewise.
40173 * conf/i386-linuxbios.rmk: Likewise.
40174 * conf/i386-ieee1275.rmk: Likewise.
40175 * conf/powerpc-ieee1275.rmk: Likewise.
40176 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40177
2216b101 401782008-01-27 Robert Millan <rmh@aybabtu.com>
40179
40180 * NEWS: Add a few items.
40181
f75172d9 401822008-01-27 Robert Millan <rmh@aybabtu.com>
40183
40184 Fix parallel builds with grub-emu. Based on earlier commit for
40185 grub-probe and grub-setup.
40186
40187 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40188 (util/grub-emu.c_DEPENDENCIES): ... this.
40189 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40190 (util/grub-emu.c_DEPENDENCIES): ... this.
40191 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40192 (util/grub-emu.c_DEPENDENCIES): ... this.
40193 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40194 (util/grub-emu.c_DEPENDENCIES): ... this.
40195 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40196 (util/grub-emu.c_DEPENDENCIES): ... this.
40197
3f51de77 401982008-01-27 Pavel Roskin <proski@gnu.org>
40199
40200 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40201 to create a gap between _end and the modules added to the image
40202 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40203 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40204 * util/elf/grub-mkimage.c (add_segments): Likewise.
40205
2033f53e 402062008-01-26 Pavel Roskin <proski@gnu.org>
40207
40208 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40209 just return an error.
40210
22da1f6f 402112008-01-26 Bean <bean123ch@gmail.com>
40212
40213 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40214 (grub_reiserfs_get_item): Save offset of the next item.
40215 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40216
2a9525e6 402172008-01-25 Robert Millan <rmh@aybabtu.com>
40218
40219 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40220 make all filesystem sources appear together (possibly fixing omissions
40221 while at it).
40222 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40223 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40224 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40226
40227 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40228 add `kern/file.c'.
40229 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40230 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40231 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40232 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40233
40234 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40235 (probe): Add a sanity check to make sure of our ability to read
40236 requested files when probing for filesystem type.
40237
40238 * genmk.rb: Update copyright year (2007).
40239
40240 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40241 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40242 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40243 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40244 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40245 : Remove function prototypes.
40246
b95f71b5 402472008-01-25 Robert Millan <rmh@aybabtu.com>
40248
40249 Revert my previous commits (based on wrong assumption of how grub_errno
40250 works).
40251
fe6b695a 40252 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 40253 * kern/file.c (grub_file_open): Likewise.
40254
d08bbb49 402552008-01-24 Pavel Roskin <proski@gnu.org>
40256
40257 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40258 that hang if GRUB tries to setup colors.
40259 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40260 colors for firmwares that don't support it.
40261 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40262 Recognize Open Hack'Ware, set flags to work around its
40263 limitations.
40264
605e36ed 402652008-01-24 Robert Millan <rmh@aybabtu.com>
40266
40267 * kern/file.c (grub_file_open): Do not account previous failures of
40268 unrelated functions when grub_errno is checked for.
40269 Reported by Oleg Strikov.
40270
bac332a1 402712008-01-24 Bean <bean123ch@gmail.com>
40272
40273 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40274 (grub_ufs_sblock): New member volume name.
40275 (grub_ufs_find_file): Fix string copy bug.
40276 (grub_ufs_label): Implement this function properly.
40277
40278 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40279 (grub_hfs_iterate_records): Use the correct file number for extents
40280 and catalog file. Fix problem in next index calculation.
40281 (grub_hfs_find_node): Replace recursive function call with loop.
40282 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40283
15c80c09 402842008-01-23 Robert Millan <rmh@aybabtu.com>
40285
40286 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
40287 `<grub/symbol.h>' and `<grub/multiboot.h>'.
40288 (grub_multiboot2_real_boot): New function prototype.
40289
40290 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
40291 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
40292
40293 * kern/i386/ieee1275/init.c (grub_os_area_addr)
40294 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
40295
305338fd 402962008-01-23 Robert Millan <rmh@aybabtu.com>
40297
40298 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
40299 #ifdef'ed out grub_printf().
40300
3ea52685 403012008-01-23 Robert Millan <rmh@aybabtu.com>
40302
40303 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
40304 grub_dprintf calls, since they make "debug=all" mode unusable.
40305 (grub_console_checkkey): Likewise.
40306
5882ae4b 403072008-01-23 Robert Millan <rmh@aybabtu.com>
40308
40309 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40310 `term/i386/pc/at_keyboard.c'.
40311 (pkglib_MODULES): Add `serial.mod'.
40312 (serial_mod_SOURCES): New variable.
40313 (serial_mod_CFLAGS): Likewise.
40314 (serial_mod_LDFLAGS): Likewise.
40315
40316 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
40317 `<grub/powerpc/ieee1275/console.h>'.
40318 (grub_keyboard_controller_init): New function prototype.
40319 (grub_console_checkkey): Likewise.
40320 (grub_console_getkey): Likewise.
40321
40322 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
40323 keyboard on i386.
40324
40325 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
40326 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
40327
06ab5303 403282008-01-23 Robert Millan <rmh@aybabtu.com>
40329
40330 * kern/i386/pc/init.c (make_install_device): When memdisk image is
40331 present, "(memdisk)/boot/grub" becomes the default prefix.
40332
40333 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
40334 a memdisk tarball with all the modules. Add --overlay=DIR option that
40335 allows users to overlay additional files into the image.
40336
dbb475a4 403372008-01-23 Robert Millan <rmh@aybabtu.com>
40338
40339 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
40340 and `machine/memory.h'.
40341 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
40342 (_multiboot_mod_SOURCES): New variable.
40343 (_multiboot_mod_CFLAGS): Likewise.
40344 (_multiboot_mod_LDFLAGS): Likewise.
40345 (multiboot_mod_SOURCES): Likewise.
40346 (multiboot_mod_CFLAGS): Likewise.
40347 (multiboot_mod_LDFLAGS): Likewise.
40348
40349 * include/grub/i386/ieee1275/loader.h: New file.
40350
40351 * include/grub/i386/ieee1275/machine.h: Likewise.
40352
40353 * include/grub/i386/ieee1275/memory.h: Likewise.
40354
40355 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
40356 variable declaration.
40357 (grub_os_area_size): Likewise.
40358
40359 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
40360 (grub_lower_mem, grub_upper_mem): New variables.
40361 (grub_stop_floppy): New function (just to make
40362 grub_multiboot2_real_boot() happy).
40363
40364 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
40365 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
40366 (grub_stop): New function.
40367 Include `"../realmode.S"' and `"../loader.S"'.
40368
40369 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
40370 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
40371
40372 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
40373 rely on grub_multiboot2_real_boot() for final boot.
40374
25638629 403752008-01-22 Robert Millan <rmh@aybabtu.com>
40376
40377 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
40378 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
40379 device that doesn't look like an SD card.
40380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40381 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
40382 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
40383 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
40384 found.
40385
9dad816d 403862008-01-22 Robert Millan <rmh@aybabtu.com>
40387
40388 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
40389 avoid claiming over our own code.
40390
34842f2d 403912008-01-22 Bean <bean123ch@gmail.com>
40392
40393 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
40394 (jpeg_mod_SOURCES): New variable.
40395 (jpeg_mod_CFLAGS): Likewise.
40396 (jpeg_mod_LDFLAGS): Likewise.
40397
40398 * video/readers/jpeg.c : New file.
40399
44023a28 404002008-01-22 Bean <bean123ch@gmail.com>
40401
40402 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
40403 there are no more items.
40404
bc2d8ac6 404052008-01-21 Robert Millan <rmh@aybabtu.com>
40406
40407 * kern/mm.c (grub_mm_init_region): Improve debug message.
40408
261bd4bc 404092008-01-21 Robert Millan <rmh@aybabtu.com>
40410
40411 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
40412 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
40413 address.
40414 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
40415 a C macro.
40416 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
40417 Indicates start of upper memory.
40418 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
40419 (generate_image): Abort when image size is big enough to corrupt
40420 upper memory.
40421
40422 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
40423 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
40424 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40425 instead of hardcoding 0xA0000.
40426 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
40427 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40428 instead of hardcoding 0xA0000.
40429
f970b55e 404302008-01-21 Robert Millan <rmh@aybabtu.com>
40431
40432 * disk/memdisk.c (memdisk_size): New variable.
40433 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
40434 `memdisk_size'.
40435 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
40436 image to dynamic memory.
40437 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
40438 `memdisk_size'. Free memdisk block.
40439
1a8b0526 404402008-01-21 Robert Millan <rmh@aybabtu.com>
40441
40442 Fix detection of very small filesystems (like tar).
40443
40444 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
40445 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
40446 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
40447 a problem with this disk).
40448
6e9b4aab 404492008-01-21 Robert Millan <rmh@aybabtu.com>
40450
40451 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
40452 on grub_biosdisk_rw_standard() error.
40453
0d8837b2 404542008-01-21 Robert Millan <rmh@aybabtu.com>
40455
40456 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
40457 recent changes.
40458 * kern/elf.c: Likewise.
40459 * kern/ieee1275/ieee1275.c: Likewise.
40460 * kern/powerpc/ieee1275/openfw.c: Likewise.
40461 * term/ieee1275/ofconsole.c: Likewise.
40462
ffd36e34 404632008-01-21 Robert Millan <rmh@aybabtu.com>
40464
40465 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
40466
3f0093d0 40467 * include/grub/kernel.h (grub_arch_memdisk_addr)
40468 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 40469
3f0093d0 40470 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
40471 (grub_arch_memdisk_size): ... to here.
ffd36e34 40472
6c391b21 404732008-01-21 Robert Millan <rmh@aybabtu.com>
40474
40475 Mostly based on bugfix from Bean.
40476
40477 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
40478 attribute with hook() parameter.
40479 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
40480 declaration.
40481 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
40482 attribute with hook() parameter.
40483 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
40484 declaration.
40485
55a581dc 404862008-01-21 Robert Millan <rmh@aybabtu.com>
40487
40488 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
40489 (pkglib_MODULES): Add `memdisk.mod'.
40490 (memdisk_mod_SOURCES): New variable.
40491 (memdisk_mod_CFLAGS): Likewise.
40492 (memdisk_mod_LDFLAGS): Likewise.
40493
40494 * disk/memdisk.c: New file.
40495
40496 * include/grub/disk.h (grub_disk_dev_id): Add
40497 `GRUB_DISK_DEVICE_MEMDISK_ID'.
40498
40499 * include/grub/i386/pc/kernel.h
40500 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
40501 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
40502 (grub_kernel_image_size): New variable declaration.
40503 (grub_total_module_size): Likewise.
40504 (grub_memdisk_image_size): Likewise.
40505
40506 * include/grub/i386/pc/memory.h
40507 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
40508
40509 * include/grub/kernel.h: Include `<grub/symbol.h>'.
40510 (grub_arch_memdisk_addr): New variable declaration.
40511 (grub_arch_memdisk_size): Likewise.
40512
40513 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
40514 (grub_arch_memdisk_size): Likewise.
40515
40516 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
40517 (codestart): Replace hardcoded `0x100000' with
40518 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
40519
40520 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
40521 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
40522 not NULL, append the contents of the file it refers to, at the end of
40523 the compressed kernel image. Initialize `grub_memdisk_image_size'
40524 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
40525 (options): Add "memdisk"|'m' option.
40526 (main): Parse --memdisk|-m option, and pass user-provided path as
40527 parameter to generate_image().
40528
3d7f54c9 405292008-01-20 Robert Millan <rmh@aybabtu.com>
40530
40531 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
40532 grub_dprintf() calls from here ...
40533 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
40534
0bf74728 405352008-01-20 Robert Millan <rmh@aybabtu.com>
40536
40537 Fix detection of "real mode" when /options/real-mode? doesn't exist.
40538
40539 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
40540 declaration.
40541 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
40542 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
40543 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 40544 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 40545 property).
40546 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
40547 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
40548
33bf70a7 405492008-01-19 Robert Millan <rmh@aybabtu.com>
40550
fe6b695a 40551 Get rid of confusing function (superseded by
33bf70a7 40552 `grub_ieee1275_get_integer_property')
40553 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
40554 prototype.
40555 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
40556 function.
40557 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
40558 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 40559 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 40560
e2da7d26 405612008-01-19 Robert Millan <rmh@aybabtu.com>
40562
40563 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
40564 command after "shut-down", since implementations differ on which
40565 the command for halt is.
40566
59f1fd8d 405672008-01-19 Robert Millan <rmh@aybabtu.com>
40568
40569 * include/grub/i386/linuxbios/console.h: Add header protection.
40570 (grub_keyboard_controller_init): New function prototype.
40571 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
40572 (KEYBOARD_COMMAND_READ): Likewise.
40573 (KEYBOARD_COMMAND_WRITE): Likewise.
40574 (KEYBOARD_SCANCODE_SET1): Likewise.
40575 (grub_keyboard_controller_write): New function.
40576 (grub_keyboard_controller_read): Likewise.
40577 (grub_keyboard_controller_init): Likewise.
40578
40579 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
40580 (grub_console_init): On coreboot/LinuxBIOS, call
40581 grub_keyboard_controller_init().
40582
5f5a7c15 405832008-01-19 Robert Millan <rmh@aybabtu.com>
40584
40585 PowerPC changes provided by Pavel Roskin.
40586
40587 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
40588 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
40589 don't rely on cmain() doing it.
40590 * kern/i386/ieee1275/startup.S (_start): Store %eax in
40591 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
40592
1210e168 405932008-01-16 Robert Millan <rmh@aybabtu.com>
40594
40595 * include/grub/i386/linuxbios/memory.h
40596 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
40597 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
40598 receive `table_header' as argument. Instead, probe for it in the
40599 known memory ranges where it can be present.
40600 (grub_available_iterate): Do not pass a fixed `table_header' address
40601 to grub_linuxbios_table_iterate().
40602
3d04eab8 406032008-01-15 Robert Millan <rmh@aybabtu.com>
40604
40605 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
40606 * conf/i386-ieee1275.rmk: New file.
40607 * include/grub/i386/ieee1275/console.h: Likewise.
40608 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
40609 * include/grub/i386/ieee1275/kernel.h: Likewise.
40610 * include/grub/i386/ieee1275/time.h: Likewise.
40611 * kern/i386/ieee1275/init.c: Likewise.
40612 * kern/i386/ieee1275/startup.S: Likewise.
40613
d1bc1b73 406142008-01-15 Robert Millan <rmh@aybabtu.com>
40615
40616 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
40617 when pointers are 32-bit (but still do set it to one when they are
40618 64-bit).
40619
66a65807 406202008-01-15 Robert Millan <rmh@aybabtu.com>
40621
40622 * include/grub/ieee1275/ieee1275.h
40623 (grub_ieee1275_get_integer_property): New function prototype.
40624
40625 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
40626 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 40627 grub_ieee1275_get_property() to handle endianness.
66a65807 40628
40629 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
40630 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 40631 where appropriate.
66a65807 40632 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
40633 (grub_map): Likewise.
40634 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
40635
a83ccafd 406362008-01-15 Bean <bean123ch@gmail.com>
40637
40638 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
40639 (grub_script_execute_cmdline): Reset grub_errno.
40640
40641 * normal/main.c (read_config_file): Reset grub_errno.
40642
40643 * normal/parse.y (script_init): New.
40644 (script): Move function and menuentry here.
40645 (delimiter): New.
40646 (command): Add delimiter at the end of command.
40647 (commands): Adjust to match the new command.
40648 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 40649 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 40650 (if): Use the new commands.
40651
40652 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
40653
df6ecfc6 406542008-01-15 Robert Millan <rmh@aybabtu.com>
40655
40656 * normal/menu.c (run_menu): Move timeout message from here ...
40657 (print_timeout): ... to here.
40658 (run_menu): Use print_timeout() once during initial draw to print
40659 the whole message, and again in every clock tick to update only
40660 the number of seconds.
40661
87ae25eb 406622008-01-15 Robert Millan <rmh@aybabtu.com>
40663
40664 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
40665 actual size of `available' from grub_ieee1275_get_property(), and
40666 restrict parsing to that bound.
40667
47bf09a4 406682008-01-15 Christian Franke <franke@computer.org>
40669
40670 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
40671 (argp_program_version): Remove variable.
40672 (argp_program_bug_address): Likewise.
40673 (options): Convert from struct argp_option to struct option.
40674 (struct arguments): Remove.
40675 (parse_opt): Remove.
40676 (usage): New function.
40677 (main): Replace struct args members by simple variables.
40678 Replace argp_parse() by getopt_long().
40679 Add switch to evaluate options.
40680 Add missing "(...)" around root_dev in prefix string.
40681
c86f1469 406822008-01-14 Robert Millan <rmh@aybabtu.com>
40683
40684 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
40685 for grub_ieee1275_exit(), in order to improve portability.
40686
e622c559 406872008-01-14 Robert Millan <rmh@aybabtu.com>
40688
40689 * util/grub.d/10_linux.in (prefix): Define.
40690 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
40691
44cb1ec8 406922008-01-13 Pavel Roskin <proski@gnu.org>
40693
40694 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
40695 grub_errno if no errors have been detected.
40696
1eb8c802 406972008-01-12 Robert Millan <rmh@aybabtu.com>
40698
40699 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
40700 (grub_util_get_dev_abstraction): New function prototype.
40701
40702 * util/getroot.c: Include `<grub/util/getroot.h>'
40703 (grub_util_get_grub_dev): Move detection of abstraction type to ...
40704 (grub_util_get_dev_abstraction): ... here (new function).
40705
40706 * util/grub-probe.c: Convert PRINT_* to an enum. Add
40707 `PRINT_ABSTRACTION'.
40708 (probe): Probe for abstraction type when requested.
40709 (main): Understand `--target=abstraction'.
40710
40711 * util/i386/efi/grub-install.in: Add abstraction module to core
40712 image when it is found to be necessary.
40713 * util/i386/pc/grub-install.in: Likewise.
40714 * util/powerpc/ieee1275/grub-install.in: Likewise.
40715
40716 * util/update-grub_lib.in (font_path): Return system path without
40717 converting to GRUB path.
40718 * util/update-grub.in: Convert system path returned by font_path()
40719 to a GRUB path. Use `grub-probe -t abstraction' to determine what
40720 abstraction module is needed for loading fonts (if any). Export
40721 that as `GRUB_PRELOAD_MODULES'.
40722 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
40723 insmod commands).
40724
52bd3de9 407252008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
40726
40727 Remove some unused code from reiserfs.
f19dbdb7 40728
52bd3de9 40729 * fs/reiserfs.c (struct grub_reiserfs_key)
40730 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
40731 (struct grub_reiserfs_node_body): Removed.
40732 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40733 Likewise.
40734 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40735 Likewise.
40736 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40737 Likewise.
40738 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40739 Likewise.
40740 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40741 Likewise.
40742 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
40743 Likewise.
40744 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40745 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40746 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40747
2f80039d 407482008-01-10 Robert Millan <rmh@aybabtu.com>
40749
40750 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
40751 Determines if a file is garbage left by packaging systems, etc.
40752 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
40753 for processing /etc/grub.d scripts.
40754 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
40755 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
40756 as a condition for processing Linux images.
40757
87888032 407582008-01-10 Pavel Roskin <proski@gnu.org>
40759
40760 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
40761 to compile reiserfs.c on PowerPC.
40762
7e54fced 407632008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 40764
40765 * kern/device.c (grub_device_iterate): Do not abort device iteration
40766 when one of the devices cannot be opened.
40767 * kern/disk.c (grub_disk_open): Do not account previous failures of
40768 unrelated functions when grub_errno is checked for.
40769
5aa541e6 407702008-01-08 Robert Millan <rmh@aybabtu.com>
40771
40772 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
40773 `! grub_linux_is_bzimage', change order of address comparison to make
40774 it more intuitive, and improve "too big zImage" error message.
40775
7076340d 407762008-01-08 Robert Millan <rmh@aybabtu.com>
40777
40778 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
40779 `$(update-grub_DATA)'.
40780 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
40781 targets.
40782
9ca70333 407832008-01-07 Robert Millan <rmh@aybabtu.com>
40784
40785 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
40786 which instruction is modified by grub-setup during installation
40787 (since it wasn't obvious by only looking at this file).
40788
38ccf575 407892008-01-07 Robert Millan <rmh@aybabtu.com>
40790
40791 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
40792 listing actual TODO items.
40793
f5db4291 407942008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40795
868967cf 40796 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
40797 correctly.
40798 (grub_reiserfs_get_key_offset): Likewise.
40799 (grub_reiserfs_set_key_offset): Likewise.
40800 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 40801 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 40802
40803 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
40804 better to remove the bitfield version completely.
f19dbdb7 40805
868967cf 408062008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40807
f5db4291 40808 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40809 allocated from the heap, due to the fshelp implementation.
40810 (grub_reiserfs_dir): Free NODE, due to the same reason.
40811
492e6d9d 408122008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40813
40814 Mostly from Vincent Pelletier:
f19dbdb7 40815
492e6d9d 40816 * fs/reiserfs.c: New file.
f19dbdb7 40817
492e6d9d 40818 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40819 (reiserfs_mod_SOURCES): New variable.
40820 (reiserfs_mod_CFLAGS): Likewise.
40821 (reiserfs_mod_LDFLAGS): Likewise.
40822
40823 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40824 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40825 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40826 normal/color.c.
40827
9ce3e7c1 408282008-01-06 Robert Millan <rmh@aybabtu.com>
40829
40830 * normal/color.c: Remove `<grub/env.h>'.
40831
f3b58148 408322008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40833
40834 * include/grub/normal.h: Include <grub/env.h>.
40835
7ac3bcfa 408362008-01-05 Robert Millan <rmh@aybabtu.com>
40837
40838 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40839 usage example with `(hd0,1)'.
fb358190 40840 Reported by Samuel Thibault.
7ac3bcfa 40841
c8ee99d7 408422008-01-05 Robert Millan <rmh@aybabtu.com>
40843
40844 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40845 (grub_linux_boot_zimage): Rename to ...
40846 (grub_linux_boot): ... this.
40847 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
40848 (grub_linux_boot_zimage): Conditionalize zImage copy.
40849
40850 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
40851 (grub_linux_boot_bzimage): Remove prototype.
40852 (grub_linux_boot_zimage): Rename to ...
40853 (grub_linux_boot): ... this.
40854
40855 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
40856 (grub_linux_boot): Remove function.
40857
0ece25b1 408582008-01-05 Robert Millan <rmh@aybabtu.com>
40859
40860 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40861 (grub_env_write_color_highlight): Likewise.
40862 (grub_wait_after_message): Likewise.
40863
40864 * normal/color.c: New file.
40865
40866 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40867 (normal_mod_DEPENDENCIES): Likewise.
40868
40869 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40870 (normal_mod_DEPENDENCIES): Likewise.
40871
40872 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40873 (normal_mod_DEPENDENCIES): Likewise.
40874
40875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40876 (normal_mod_DEPENDENCIES): Likewise.
40877
40878 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40879 for waiting after a message is printed.
40880 * normal/main.c (read_config_file): Likewise.
40881 (grub_normal_init): Register grub_env_write_color_normal() and
40882 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40883 `color_highlight' variables as global.
40884
40885 * normal/menu.c (grub_wait_after_message): New function.
40886 (grub_color_menu_normal): New variable. Replaces ...
40887 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40888 (grub_color_menu_highlight): New variable. Replaces ...
40889 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40890 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40891 `GRUB_TERM_COLOR_STANDARD'.
40892 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40893 `normal_code' and `highlight_code' to `old_color_normal' and
40894 `old_color_highlight', respectively.
40895 (grub_menu_init_page): Update colors when drawing the menu, based on
40896 `menu_color_normal' and `menu_color_highlight' variables.
40897 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40898 a message is printed.
40899
182dd4e5 409002008-01-05 Robert Millan <rmh@aybabtu.com>
40901
40902 * kern/env.c (grub_env_context_open): Propagate hooks for global
40903 variables to new context.
40904
40905 * kern/main.c (grub_set_root_dev): Export `root' variable.
40906
ddf8f6ad 409072008-01-05 Robert Millan <rmh@aybabtu.com>
40908
40909 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40910 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40911 them.
40912
d8b43d9b 409132008-01-05 Robert Millan <rmh@aybabtu.com>
40914
40915 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40916
2bff2de3 409172008-01-04 Christian Franke <franke@computer.org>
40918
40919 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40920 of eisa_mmap.
40921
97eab917 409222008-01-03 Pavel Roskin <proski@gnu.org>
40923
40924 * kern/i386/linuxbios/init.c: Put "void" to all function
40925 declarations with no arguments.
40926 * kern/powerpc/ieee1275/init.c: Likewise.
40927 * term/i386/pc/at_keyboard.c: Likewise.
40928 * term/i386/pc/vga_text.c: Likewise.
40929 * util/grub-mkdevicemap.c: Likewise.
40930
b9416d00 409312008-01-02 Robert Millan <rmh@aybabtu.com>
40932
40933 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40934 message when loaded image is out of bounds.
40935 (grub_multiboot_load_elf64): Likewise.
40936
92695df9 409372008-01-02 Pavel Roskin <proski@gnu.org>
40938
40939 * util/grub.d/10_linux.in: Try version without ".old" when
40940 looking for initrd. It's better to use initrd from the newer
40941 kernel of the same version than no initrd at all.
40942
d98d9cad 409432008-01-01 Robert Millan <rmh@aybabtu.com>
40944
40945 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40946
dbfdce36 409472008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40948
f19dbdb7 40949 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40950 grub_video_get_active_render_target.
40951 (grub_video_adapter): Added unmap_color and get_active_render_target.
40952
f19dbdb7 40953 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40954 grub_video_get_active_render_target.
40955 (grub_video_get_info): Changed method to accept NULL pointer as an
40956 argument to allow detection of active video adapter.
40957
40958 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40959 grub_video_vbe_unmap_color_int.
40960 Added grub_video_vbe_unmap_color and
40961 grub_video_vbe_get_active_render_target.
40962 (grub_video_vbe_adapter): Added unmap_color and
40963 get_active_render_target.
40964
f19dbdb7 40965 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40966 with grub_video_vbe_unmap_color_int.
40967
40968 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40969 (DEFAULT_NORMAL_COLOR): Likewise.
40970 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40971 (DEFAULT_FG_COLOR): Removed.
40972 (DEFAULT_BG_COLOR): Likewise.
40973 (DEFAULT_CURSOR_COLOR): Changed value.
40974 (grub_virtual_screen): Added standard_color_setting,
40975 normal_color_setting, highlight_color_setting and term_color.
40976 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40977 (bitmap_width): Added.
40978 (bitmap_height): Likewise.
40979 (bitmap): Likewise.
40980 (set_term_color): Likewise.
40981 (grub_virtual_screen_setup): Changed to use new terminal coloring
40982 settings.
40983 (grub_gfxterm_init): Added init for bitmap.
40984 (grub_gfxterm_fini): Added destroy for bitmap.
40985 (redraw_screen_rect): Updated to use background bitmap and new
40986 terminal coloring.
40987 (scroll_up): Added optimization for case when there is no bitmap.
40988 (grub_gfxterm_cls): Fixed to use correct background color.
40989 (grub_virtual_screen_setcolorstate): Changed to use new terminal
40990 coloring.
40991 (grub_virtual_screen_setcolor): Likewise.
40992 (grub_virtual_screen_getcolor): Added.
40993 (grub_gfxterm_background_image_cmd): Likewise.
40994 (grub_video_term): Added setcolor and getcolor.
40995 (MOD_INIT): Added registration of background_image command.
40996 (MOD_TERM): Added unregistration for background_image command.
40997
c3c20931 409982007-12-30 Pavel Roskin <proski@gnu.org>
40999
41000 * loader/multiboot_loader.c: Fix multiboot command
41001 unregistration. Fix all typos in the word "multiboot".
41002
df266716 410032007-12-29 Pavel Roskin <proski@gnu.org>
94239199 41004
41005 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41006 support for initrd names used in Fedora.
41007
fc6e896c 410082007-12-26 Bean <bean123ch@gmail.com>
41009
41010 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41011 (cpio_mod_SOURCES): New variable.
41012 (cpio_mod_CFLAGS): Likewise.
41013 (cpio_mod_LDFLAGS): Likewise.
41014
41015 * fs/cpio.c: New file.
41016
41017 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41018
41019 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41020
41021 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41022
41023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41024
533110ad 410252007-12-25 Robert Millan <rmh@aybabtu.com>
41026
41027 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41028 (grub_getcolor): New function.
41029
41030 * kern/term.c (grub_getcolor): New function.
41031 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41032 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41033 (print_entry): Set normal and highlight colors to
41034 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41035 respectively, before printing and restore them to old
41036 values afterwards.
41037 (grub_menu_init_page): Likewise. Fill an additional colored space
41038 that would otherwise be left blank.
41039
41040 * term/efi/console.c (grub_console_getcolor): New function.
41041 (struct grub_console_term.getcolor): New variable.
41042 * term/i386/pc/console.c (grub_console_getcolor): New function.
41043 (struct grub_console_term.getcolor): New variable.
41044 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41045 (struct grub_console_term.getcolor): New variable.
41046
41047 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41048 (struct grub_console_term.setcolor): Remove variable.
41049 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41050 (struct grub_console_term.setcolor): Remove variable.
41051 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41052 (struct grub_console_term.setcolor): Remove variable.
41053 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41054 (struct grub_console_term.setcolor): Remove variable.
41055
4931827f 410562007-12-25 Robert Millan <rmh@aybabtu.com>
41057
41058 * configure.ac: Search for possible unifont.hex locations, and
41059 define UNIFONT_HEX if found.
41060
41061 * Makefile.in (UNIFONT_HEX): Define variable.
41062 (DATA): Rename to ...
41063 (PKGLIB): ... this. Update all users.
41064 (PKGDATA): New variable.
41065 (pkgdata_IMAGES): Rename to ...
41066 (pkglib_IMAGES): ... this. Update all users.
41067 (pkgdata_MODULES): Rename to ...
41068 (pkglib_MODULES): ... this. Update all users.
41069 (pkgdata_PROGRAMS): Rename to ...
41070 (pkglib_PROGRAMS): ... this. Update all users.
41071 (pkgdata_DATA): Rename to ...
41072 (pkglib_DATA): ... this. Update all users.
41073 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41074 (unicode.pff, ascii.pff): New rules.
41075 (all-local): Add `$(PKGDATA)' dependency.
41076 (install-local): Process `$(PKGDATA)'.
41077
41078 * util/update-grub_lib.in (font_path): Search for *.pff files in
41079 a few more locations, including `${pkgdata}'.
41080
57e57e31 410812007-12-23 Robert Millan <rmh@aybabtu.com>
41082
41083 Patch from Bean <bean123ch@gmail.com>:
41084 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41085 `size'.
41086
4bc72aa9 410872007-12-21 Bean <bean123ch@gmail.com>
41088
41089 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41090 (ntfscomp_mod_SOURCES): New variable.
41091 (ntfscomp_mod_CFLAGS): Likewise.
41092 (ntfscomp_mod_LDFLAGS): Likewise.
41093
41094 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41095 (grub_probe_SOURCES): Likewise.
41096 (grub_emu_SOURCES): Likewise.
41097
41098 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41099 (grub_emu_SOURCES): Likewise.
41100
41101 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41102 (grub_emu_SOURCES): Likewise.
41103
41104 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41105 (grub_emu_SOURCES): Likewise.
41106
41107 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41108 (read_run_list): Renamed to grub_ntfs_read_run_list.
41109 (decomp_nextvcn): Moved to ntfscomp.c.
41110 (decomp_getch): Likewise.
41111 (decomp_get16): Likewise.
41112 (decomp_block): Likewise.
41113 (read_block): Likewise.
41114 (read_data): Partially moved to ntfscomp.c.
41115 (fixup): Change unsigned to grub_uint16_t.
41116 (read_mft): Change unsigned long to grub_uint32_t.
41117 (read_attr): Likewise.
41118 (read_data): Likewise.
41119 (read_run_data): Likewise.
41120 (read_run_list): Likewise.
41121 (read_mft): Likewise.
41122
41123 * fs/ntfscomp.c: New file.
41124
41125 * include/grub/ntfs.h: New file.
41126
af680a87 411272007-12-16 Robert Millan <rmh@aybabtu.com>
41128
41129 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41130 IDE disk check, since Linux is known to support 20 IDE disks.
41131 Reported by Colin Watson.
41132
84be7599 411332007-12-15 Bean <bean123ch@gmail.com>
41134
41135 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41136 (lnxboot_img_SOURCES): New variable.
41137 (lnxboot_img_ASFLAGS): Likewise.
41138 (lnxboot_img_LDFLAGS): Likewise.
41139
41140 * boot/i386/pc/lnxboot.S: New file.
41141
6af9db01 411422007-11-24 Pavel Roskin <proski@gnu.org>
41143
41144 * configure.ac: Test if '--build-id=none' is supported by the
41145 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41146 objcopy to generate incorrect binary files (binutils
41147 2.17.50.0.18-1 as shipped by Fedora 8).
41148 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41149 linking, so that build ID doesn't break the test.
41150
7361cfe6 411512007-11-24 Pavel Roskin <proski@gnu.org>
41152
41153 * include/grub/i386/time.h: use "void" in the argument list
41154 of grub_cpu_idle().
41155 * include/grub/powerpc/time.h: Likewise.
41156 * include/grub/sparc64/time.h: Likewise.
41157
1593e10c 411582007-11-18 Christian Franke <franke@computer.org>
41159
41160 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41161 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41162 This fixes the problem that function keys did not work in grub-emu.
41163
3b8db1a8 411642007-11-18 Christian Franke <franke@computer.org>
41165
41166 * disk/host.c (grub_host_open): Remove attribute unused from
41167 name parameter. Add check for "host". This fixes the problem
41168 that grub-emu does not find partitions.
41169
2e29408d 411702007-11-18 Christian Franke <franke@computer.org>
41171
41172 * util/hostfs.c (is_dir): New function.
41173 (grub_hostfs_dir): Handle missing dirent.d_type case.
41174 (grub_hostfs_read): Add missing fseek().
41175 (grub_hostfs_label): Clear label pointer. This fixes a crash
41176 of grub-emu on "ls (host)".
41177
398cd047 411782007-11-18 Christian Franke <franke@computer.org>
41179
41180 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41181 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41182 to 64 bit boundary by default.
41183
c405c391 411842007-11-18 Bean <bean123ch@gmail.com>
41185
41186 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41187 (hexdump_mod_SOURCES): New variable.
41188 (hexdump_mod_CFLAGS): Likewise.
41189 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 41190
c405c391 41191 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41192
41193 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41194
41195 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41196
41197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41198
41199 * include/grub/hexdump.h: New file.
41200
41201 * commands/hexdump.c: New file.
41202
5cced7fd 412032007-11-10 Robert Millan <rmh@aybabtu.com>
41204
41205 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41206 in grub_outb() calls.
41207 (beep_on): Likewise.
41208
8b714eb0 412092007-11-10 Christian Franke <franke@computer.org>
41210
41211 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41212 (grub_menu_run): Likewise.
41213
ce0f1839 412142007-11-10 Robert Millan <rmh@aybabtu.com>
41215
41216 * include/grub/i386/efi/machine.h: New file.
41217 * include/grub/i386/linuxbios/machine.h: Likewise.
41218 * include/grub/i386/pc/machine.h: Likewise.
41219 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41220 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41221
41222 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41223 (serial_hw_io_addr): New variable.
41224 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41225 instead of `(unsigned short *) 0x400'.
41226
270c237d 412272007-11-10 Bean <bean123ch@gmail.com>
41228
41229 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41230
a87783bf 412312007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41232
41233 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41234 (vga_mod_SOURCES): Added.
41235 (vga_mod_CFLAGS): Likewise.
41236 (vga_mod_LDFLAGS): Likewise.
41237
41238 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41239 grub_outb() calls.
41240 (set_map_mask): Likewise.
41241 (set_read_map): Likewise.
41242 (set_read_address): Likewise.
41243 (vga_font): Removed variable.
41244 (get_vga_glyph): Removed function.
41245 (invalidate_char): Likewise.
41246 (write_char): Changed to use grub_font_get_glyph() for font
41247 information.
41248 (grub_vga_putchar): Likewise.
41249 (grub_vga_getcharwidth): Likewise.
41250
6433b448 412512007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41252
41253 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41254 flags.
41255 (pxeboot_img_LDFLAGS): Likewise.
41256 (diskboot_img_LDFLAGS): Likewise.
41257 (kernel_img_LDFLAGS): Likewise.
41258
49178511 412592007-11-06 Robert Millan <rmh@aybabtu.com>
41260
41261 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41262 in grub_outb() calls.
41263 (serial_hw_init): Likewise.
41264
53b052de 412652007-11-05 Robert Millan <rmh@aybabtu.com>
41266
41267 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41268 spaces. Skip non-regular files.
41269
5ab33bba 412702007-11-05 Robert Millan <rmh@aybabtu.com>
41271
41272 * kern/disk.c (grub_disk_firmware_fini)
41273 (grub_disk_firmware_is_tainted): New variables.
41274
41275 * include/grub/disk.h (grub_disk_firmware_fini)
41276 (grub_disk_firmware_is_tainted): Likewise.
41277
41278 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41279 (grub_disk_biosdisk_fini): ... to here.
41280 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41281 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41282 is set. Register grub_disk_biosdisk_fini() in
41283 `grub_disk_firmware_fini'.
41284
41285 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
41286 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
41287 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
41288 to finish existing firmware disk interface.
41289
41290 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
41291 (ata_mod_SOURCES): New variable.
41292 (ata_mod_CFLAGS): Likewise.
41293 (ata_mod_LDFLAGS): Likewise.
41294
0149ab7c 412952007-11-05 Robert Millan <rmh@aybabtu.com>
41296
41297 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
41298 (grub_ata_wait): Reimplement using grub_millisleep().
41299
41300 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
41301 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
41302
be7ac41e 413032007-11-03 Marco Gerards <marco@gnu.org>
41304
41305 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
41306 (CRTC_ADDR_PORT): New macro.
41307 (CRTC_DATA_PORT): Likewise.
41308 (CRTC_CURSOR): Likewise.
41309 (CRTC_CURSOR_ADDR_HIGH): Likewise.
41310 (CRTC_CURSOR_ADDR_LOW): Likewise.
41311 (update_cursor): New function.
41312 (grub_console_real_putchar): Call `update_cursor'.
41313 (grub_console_gotoxy): Likewise.
41314 (grub_console_cls): Set the default color when clearing the
41315 screen.
41316 (grub_console_setcursor): Implemented.
41317
bb06ab2e 413182007-11-03 Marco Gerards <marco@gnu.org>
41319
41320 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
41321 become activate.
41322 (grub_ata_pio_write): Likewise.
41323
41324 (grub_atapi_identify): Wait after issuing an ATA command.
41325 (grub_atapi_packet): Likewise.
41326 (grub_ata_identify): Likewise.
41327 (grub_ata_readwrite): Likewise.
41328
cf8f780b 413292007-11-03 Marco Gerards <marco@gnu.org>
41330
41331 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
41332 (grub_ata_pio_write): Likewise.
41333 (grub_ata_readwrite): Use `grub_error', instead of
41334 returning `grub_errno'.
41335
ed649e54 413362007-11-03 Marco Gerards <marco@gnu.org>
41337
41338 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
41339 grub_ata_pio_write once for every single sector, instead of for
41340 multiple sectors.
41341
ca25d8f0 413422007-10-31 Robert Millan <rmh@aybabtu.com>
41343
41344 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
41345
41346 * conf/i386-linuxbios.rmk: New file.
41347
41348 * kern/i386/pc/hardware.c: Likewise.
41349 * term/i386/pc/at_keyboard.c: Likewise.
41350 * term/i386/pc/vga_text.c: Likewise.
41351
41352 * include/grub/i386/linuxbios/boot.h: Likewise.
41353 * include/grub/i386/linuxbios/console.h: Likewise.
41354 * include/grub/i386/linuxbios/init.h: Likewise.
41355 * include/grub/i386/linuxbios/kernel.h: Likewise.
41356 * include/grub/i386/linuxbios/loader.h: Likewise.
41357 * include/grub/i386/linuxbios/memory.h: Likewise.
41358 * include/grub/i386/linuxbios/serial.h: Likewise.
41359 * include/grub/i386/linuxbios/time.h: Likewise.
41360
41361 * kern/i386/linuxbios/init.c: Likewise.
41362 * kern/i386/linuxbios/startup.S: Likewise.
41363 * kern/i386/linuxbios/table.c: Likewise.
41364
e911ecc1 413652007-10-31 Marco Gerards <marco@gnu.org>
41366
41367 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
41368 (ata_mod_SOURCES): New variable.
41369 (ata_mod_CFLAGS): Likewise.
41370 (ata_mod_LDFLAGS): Likewise.
41371
41372 * disk/ata.c: New file.
41373
41374 * include/grub/disk.h (grub_disk_dev_id): Add
41375 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 41376
7f66d0e0 413772007-10-31 Robert Millan <rmh@aybabtu.com>
41378
41379 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
41380 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
41381
41382 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
41383 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
41384
41385 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
41386 `<grub/types.h>'.
41387
41388 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
41389
5cd7dd46 413902007-10-27 Robert Millan <rmh@aybabtu.com>
41391
3236ca65 41392 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 41393
2ebfc90f 413942007-10-22 Robert Millan <rmh@aybabtu.com>
41395
41396 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
41397 `"../realmode.S"'.
41398 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
41399
73fcb0f3 414002007-10-22 Robert Millan <rmh@aybabtu.com>
41401
41402 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
41403 (pkgdata_MODULES): Add `biosdisk.mod'.
41404 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
41405 variables.
41406
41407 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
41408 (grub_biosdisk_init): Replace with ...
41409 (GRUB_MOD_INIT(biosdisk)): ... this.
41410 (grub_biosdisk_fini): Replace with ...
41411 (GRUB_MOD_FINI(biosdisk)): ... this.
41412
41413 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
41414 (grub_machine_init): Remove call to grub_biosdisk_init().
41415 (grub_machine_fini): Remove call to grub_machine_fini().
41416
41417 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
41418
3381d274 414192007-10-22 Robert Millan <rmh@aybabtu.com>
41420
41421 * include/grub/time.h: New file.
41422 * include/grub/i386/time.h: Likewise.
41423 * include/grub/powerpc/time.h: Likewise.
41424 * include/grub/sparc64/time.h: Likewise.
41425
41426 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
41427 instances to ...
41428 (KERNEL_MACHINE_TIME_HEADER): ... this.
41429 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41430 instances to ...
41431 (KERNEL_MACHINE_TIME_HEADER): ... this.
41432 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41433 instances to ...
41434 (KERNEL_MACHINE_TIME_HEADER): ... this.
41435
41436 * kern/i386/efi/init.c: Include `<grub/time.h>'.
41437 (grub_millisleep): New function.
41438 * kern/i386/pc/init.c: Include `<grub/time.h>'.
41439 (grub_millisleep): New function.
41440 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
41441 Remove `grub/machine/time.h' include.
41442 (grub_millisleep): New function.
41443 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
41444 Remove `grub/machine/time.h' include.
41445 (grub_millisleep): New function.
41446
41447 * include/grub/misc.h (grub_div_roundup): New function.
41448
41449 * kern/misc.c: Include `<grub/time.h>'.
41450 (grub_millisleep_generic): New function.
41451
41452 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
41453 Add `time.h'.
41454 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
41455 Add `time.h'.
41456 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
41457 `machine/time.h'. Add `time.h'.
41458 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41459
a39a0312 414602007-10-21 Robert Millan <rmh@aybabtu.com>
41461
41462 * include/grub/misc.h (grub_max): New function.
41463
2aad70e2 414642007-10-21 Robert Millan <rmh@aybabtu.com>
41465
41466 * util/misc.c (grub_util_info): Call fflush() before returning.
41467
54b71c4b 414682007-10-20 Robert Millan <rmh@aybabtu.com>
41469
41470 * genmk.rb (Image): Copy `extra_flags' from here ...
41471 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
41472
41473 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
41474 to `argc' and `args' arguments.
41475
a979f513 414762007-10-17 Robert Millan <rmh@aybabtu.com>
41477
41478 * kern/i386/loader.S: New file.
41479
41480 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
41481 * kern/i386/loader.S (grub_linux_prot_size)... to here.
41482 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
41483 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
41484 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
41485 * kern/i386/loader.S (grub_linux_real_addr)... to here.
41486 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
41487 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
41488 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
41489 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
41490 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
41491 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
41492 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
41493 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
41494
41495 * kern/i386/realmode.S: New file.
41496
41497 * kern/i386/pc/startup.S (protstack): Moved from here ...
41498 * kern/i386/realmode.S (protstack)... to here.
41499 * kern/i386/pc/startup.S (gdt): Moved from here ...
41500 * kern/i386/realmode.S (gdt)... to here.
41501 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
41502 * kern/i386/realmode.S (prot_to_real)... to here.
41503
41504 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
41505 `kern/i386/realmode.S'.
41506
825fc8fd 415072007-10-17 Robert Millan <rmh@aybabtu.com>
41508
41509 * include/grub/i386/loader.h: New file.
41510
41511 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
41512 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41513 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41514 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41515 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
41516 * include/grub/i386/loader.h (grub_linux_prot_size)
41517 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41518 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41519 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41520 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
41521
41522 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
41523
e179b2f4 415242007-10-15 Robert Millan <rmh@aybabtu.com>
41525
41526 * normal/misc.c (grub_normal_print_device_info): Do not probe for
41527 filesystem when dev->disk is unset.
41528 Do probe for filesystem even when dev->disk->has_partitions is set.
41529 In case a filesystem is found, always report it.
41530 In case it isn't, if dev->disk->has_partitions is set, report that
41531 a partition table was found instead of reporting that no filesystem
41532 could be identified.
41533
5db82af6 415342007-10-12 Robert Millan <rmh@aybabtu.com>
41535
41536 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
41537 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
41538
68f6ac74 41539 * include/grub/types.h (grub_host_to_target16): New macro.
41540 (grub_host_to_target32): Likewise.
41541 (grub_host_to_target64): Likewise.
41542 (grub_target_to_host16): Likewise.
41543 (grub_target_to_host32): Likewise.
41544 (grub_target_to_host64): Likewise.
5db82af6 41545
41546 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41547 Renamed from to ...
41548 (GRUB_MOD_ALIGN): ...this. Update all users.
41549
68f6ac74 41550 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
41551 grub_host_to_target32.
41552 Replace grub_be_to_cpu32 with grub_target_to_host32.
41553 (load_modules): Likewise.
41554 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
41555 Replace grub_be_to_cpu32 with grub_target_to_host32.
41556 Replace grub_cpu_to_be16 with grub_host_to_target16.
41557 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 41558
3cf497cc 415592007-10-12 Robert Millan <rmh@aybabtu.com>
41560
41561 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
41562 * util/elf/grub-mkimage.c: ... here.
41563
41564 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
41565 `util/powerpc/ieee1275/grub-mkimage.c'.
41566
c8cc3692 415672007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 41568
c8cc3692 41569 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
41570 and make it easier to figure out.
41571 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
41572 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
41573 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
41574 leave us with less than HEAP_MIN_SIZE total heap.
41575 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 41576
5c58b791 415772007-10-03 Robert Millan <rmh@aybabtu.com>
41578
41579 * include/grub/i386/io.h: New file.
41580 * commands/i386/pc/play.c (inb): Removed.
41581 (outb): Removed.
41582 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41583 with grub_outb().
afcd2ef8 41584 * term/i386/pc/serial.c (inb): Removed.
41585 (outb): Removed.
41586 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41587 with grub_outb().
41588 * term/i386/pc/vga.c (inb): Removed.
41589 (outb): Removed.
41590 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41591 with grub_outb().
5c58b791 41592
1a477ed6 415932007-10-02 Robert Millan <rmh@aybabtu.com>
41594
41595 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
41596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41597 Reported by Marcin Kurek.
41598
6b5d80fa 415992007-09-07 Robert Millan <rmh@aybabtu.com>
41600
41601 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
41602 SmartFirmware version updates (as released by Sven Luther), and avoid
41603 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
41604 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
41605 known broken.
41606
5618afbf 416072007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41608
41609 From Hitoshi Ozeki:
41610 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
41611 when merging two regions.
41612
6139dcd9 416132007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41614
508e39ee 41615 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
41616 * normal/completion.c (grub_normal_do_completion): Likewise.
41617 Reported by Hitoshi Ozeki.
41618
416192007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 41620
6139dcd9 41621 Do not use devices at boot in chainloading.
f19dbdb7 41622
6139dcd9 41623 * loader/i386/pc/chainloader.c (boot_drive): New variable.
41624 (boot_part_addr): Likewise.
41625 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
41626 with BOOT_DRIVE and BOOT_PART_ADDR.
41627 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
41628 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
41629
38da6516 416302007-08-29 Robert Millan <rmh@aybabtu.com>
41631
41632 Patch from Simon Peter <dn.tlp@gmx.net>:
41633 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
41634 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
41635 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
41636 util/i386/pc/grub-setup.c_DEPENDENCIES.
41637 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
41638 util/grub-probe.c_DEPENDENCIES.
41639 * conf/powerpc-ieee1275.rmk: Likewise.
41640
29d0928c 416412007-08-28 Robert Millan <rmh@aybabtu.com>
41642
41643 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
41644 to tell grub-mkdevicemap how to name devices.
41645 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
41646 feature).
41647
41648 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
41649 util/i386/get_disk_name.c.
41650 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
41651 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
41652 util/ieee1275/get_disk_name.c.
41653
41654 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
41655
41656 * DISTLIST: Add util/i386/get_disk_name.c and
41657 util/ieee1275/get_disk_name.c.
41658
41659 * util/grub-mkdevicemap.c: Replace device naming logic with
41660 grub_util_get_disk_name() calls.
41661
5a0d3cca 416622007-08-20 Robert Millan <rmh@aybabtu.com>
41663
41664 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
41665 (so that it works for both plural and singular quantities).
41666
8b72db2f 416672007-08-05 Robert Millan <rmh@aybabtu.com>
41668
41669 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
41670 so that [xz] isn't taken into account when determining order.
41671
352466bf 416722007-08-02 Marco Gerards <marco@gnu.org>
41673
41674 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
41675 `include/multiboot2.h', `include/grub/elfload.h',
41676 `include/multiboot.h', `include/grub/multiboot.h',
41677 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
41678 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
41679 `kern/elf.c', `loader/multiboot_loader.c',
41680 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
41681 `loader/i386/pc/multiboot2.c',
41682 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
41683 `util/i386/pc/grub-mkrescue.in'. Remove
41684 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
41685 `include/grub/i386/pc/util/biosdisk.h' and
41686 `include/grub/powerpc/ieee1275/multiboot.h'.
41687
8f096014 416882007-08-02 Bean <bean123ch@gmail.com>
41689
41690 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
41691 (ntfs_mod_SOURCES): New variable.
41692 (ntfs_mod_CFLAGS): Likewise.
41693 (ntfs_mod_LDFLAGS): Likewise.
41694
41695 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
41696 (grub_probe_SOURCES): Likewise.
41697 (grub_emu_SOURCES): Likewise.
41698
41699 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41700 (grub_emu_SOURCES): Likewise.
41701
41702 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41703 (grub_emu_SOURCES): Likewise.
f19dbdb7 41704
8f096014 41705 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
41706
41707 * fs/ntfs.c: New file.
41708
9959f7db 417092007-08-02 Bean <bean123ch@gmail.com>
41710
41711 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
41712
41713 * file.h (grub_file): Likewise.
41714
41715 * fshelp.h (grub_fshelp_read_file): Likewise.
41716
41717 * util/i386/pc/grub-setup.c (setup): Likewise.
41718 (save_first_sector): Likewise.
41719 (save_blocklists): Likewise.
f19dbdb7 41720
9959f7db 41721 * fs/affs.c (grub_affs_read_file): Likewise.
41722
41723 * fs/ext2.c (grub_ext2_read_file): Likewise.
41724
41725 * fs/fat.c (grub_fat_read_data): Likewise.
41726
41727 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
41728
41729 * fs/hfs.c (grub_hfs_read_file): Likewise.
41730
41731 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41732
41733 * fs/jfs.c (grub_jfs_read_file): Likewise.
41734
41735 * fs/minix.c (grub_minix_read_file): Likewise.
41736
41737 * fs/sfs.c (grub_sfs_read_file): Likewise.
41738
41739 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 41740
9959f7db 41741 * fs/xfs.c (grub_xfs_read_file): Likewise.
41742
41743 * command/blocklist.c (read_blocklist): Likewise.
41744 (print_blocklist): Likewise.
41745
0a203f83 417462007-08-02 Marco Gerards <marco@gnu.org>
41747
41748 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
41749 `util/hostfs.c'.
41750
41751 * disk/host.c: New file.
41752
41753 * util/hostfs.c: Likewise.
41754
41755 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
41756 return `GRUB_ERR_BAD_FS'.
41757 * fs/sfs.c (grub_sfs_mount): Likewise.
41758 * fs/xfs.c (grub_xfs_mount): Likewise.
41759
41760 * include/grub/disk.h (enum grub_disk_dev_id): Add
41761 `GRUB_DISK_DEVICE_HOST_ID'.
41762
41763 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
41764
e5dfe777 417652007-07-24 Jerone Young <jerone@gmail.com>
41766
f19dbdb7 41767 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 41768 modules for compilation.
41769 * conf/powerpc-ieee1275.rmk: Likewise.
41770
41771 * include/multiboot.h: Move multiboot definitions to one file. Rename
41772 many definitions to not get grub specific.
41773 * include/multiboot2.h: Create header with multiboot 2 definitions.
41774 * include/grub/multiboot.h: Header for grub specific function
41775 prototypes and definitions.
41776 * include/grub/multiboot2.h: Likewise.
41777 * include/grub/multiboot_loader.h: Likewise.
41778 * include/grub/i386/pc/multiboot.h: Removed.
41779 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
41780
41781 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
41782 and 2 to allow for one multiboot and module commands.
41783 * loader/multiboot2.c: Add multiboot2 functionality.
41784 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
41785 and definition names.
41786 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
41787 2 functions.
41788 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
41789 ieee1275 specific multiboot2 code.
41790
41791 * kern/i386/pc/startup.S: Change headers and definition names for
41792 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
41793
daf0f0ba 417942007-07-22 Robert Millan <rmh@aybabtu.com>
41795
41796 * geninitheader.sh: Process file specified in first parameter rather
41797 than hardcoding grub_modules_init.lst.
fe6b695a 41798 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 41799 than hardcoding grub_modules_init.h.
41800
41801 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
41802 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
41803 grub_probe_init.[ch] and grub_setup_init.[ch].
41804
41805 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
41806 grub_modules_init.h with grub_emu_init.h.
41807 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
41808 grub_probe_init.[ch] files.
41809 * conf/i386-efi.rmk: Likewise.
41810 * conf/i386-pc.rmk: Likewise.
41811 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41812 grub_setup_init.[ch] files.
41813
41814 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41815 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41816 to initialize modules rather than a list of hardcoded functions.
41817 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41818 grub_init_all() to initialize modules rather than a list of hardcoded
41819 functions.
41820
54cdc1cc 418212007-07-22 Robert Millan <rmh@aybabtu.com>
41822
41823 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41824 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41825
ad0686cc 418262007-07-22 Robert Millan <rmh@aybabtu.com>
41827
41828 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41829 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41830 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41831 flag when running on SmartFirmware.
41832 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41833 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41834 was set.
41835
41836 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41837 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41838 rather than decreasing it.
41839
41840 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41841 there's not enough space to do it, fail in the same way as when it
41842 can't be done because there are no partitions.
41843
41844 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41845 when nvsetenv failed.
41846
969c02ec 418472007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41848
41849 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
41850 because this rule is automatically generated.
41851 (grub-mkrescue): Removed for the same reason as above.
41852
5a79f472 418532007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41854
41855 Migrate to GNU General Public License Version 3.
f19dbdb7 41856
5a79f472 41857 * COPYING: Replaced with the plain text version of GPLv3.
41858
41859 * config.guess: Updated from gnulib.
41860 * config.sub: Likewise.
41861
41862 * geninit.sh: Output a GPLv3 copyright notice.
41863 * geninitheader.sh: Likewise.
41864 * genmodsrc.sh: Likewise.
41865 * gensymlist.sh.in: Likewise.
41866
41867 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41868 * boot/i386/pc/diskboot.S: Likewise.
41869 * boot/i386/pc/pxeboot.S: Likewise.
41870 * commands/blocklist.c: Likewise.
41871 * commands/boot.c: Likewise.
41872 * commands/cat.c: Likewise.
41873 * commands/cmp.c: Likewise.
41874 * commands/configfile.c: Likewise.
41875 * commands/echo.c: Likewise.
41876 * commands/help.c: Likewise.
41877 * commands/ls.c: Likewise.
41878 * commands/search.c: Likewise.
41879 * commands/terminal.c: Likewise.
41880 * commands/test.c: Likewise.
41881 * commands/videotest.c: Likewise.
41882 * commands/i386/cpuid.c: Likewise.
41883 * commands/i386/pc/halt.c: Likewise.
41884 * commands/i386/pc/play.c: Likewise.
41885 * commands/i386/pc/reboot.c: Likewise.
41886 * commands/i386/pc/vbeinfo.c: Likewise.
41887 * commands/i386/pc/vbetest.c: Likewise.
41888 * commands/ieee1275/halt.c: Likewise.
41889 * commands/ieee1275/reboot.c: Likewise.
41890 * commands/ieee1275/suspend.c: Likewise.
41891 * disk/loopback.c: Likewise.
41892 * disk/lvm.c: Likewise.
41893 * disk/raid.c: Likewise.
41894 * disk/efi/efidisk.c: Likewise.
41895 * disk/i386/pc/biosdisk.c: Likewise.
41896 * disk/ieee1275/ofdisk.c: Likewise.
41897 * font/manager.c: Likewise.
41898 * fs/affs.c: Likewise.
41899 * fs/ext2.c: Likewise.
41900 * fs/fat.c: Likewise.
41901 * fs/fshelp.c: Likewise.
41902 * fs/hfs.c: Likewise.
41903 * fs/hfsplus.c: Likewise.
41904 * fs/iso9660.c: Likewise.
41905 * fs/jfs.c: Likewise.
41906 * fs/minix.c: Likewise.
41907 * fs/sfs.c: Likewise.
41908 * fs/ufs.c: Likewise.
41909 * fs/xfs.c: Likewise.
41910 * hello/hello.c: Likewise.
41911 * include/grub/acorn_filecore.h: Likewise.
41912 * include/grub/arg.h: Likewise.
41913 * include/grub/bitmap.h: Likewise.
41914 * include/grub/boot.h: Likewise.
41915 * include/grub/cache.h: Likewise.
41916 * include/grub/device.h: Likewise.
41917 * include/grub/disk.h: Likewise.
41918 * include/grub/dl.h: Likewise.
41919 * include/grub/elfload.h: Likewise.
41920 * include/grub/env.h: Likewise.
41921 * include/grub/err.h: Likewise.
41922 * include/grub/file.h: Likewise.
41923 * include/grub/font.h: Likewise.
41924 * include/grub/fs.h: Likewise.
41925 * include/grub/fshelp.h: Likewise.
41926 * include/grub/gzio.h: Likewise.
41927 * include/grub/hfs.h: Likewise.
41928 * include/grub/kernel.h: Likewise.
41929 * include/grub/loader.h: Likewise.
41930 * include/grub/lvm.h: Likewise.
41931 * include/grub/misc.h: Likewise.
41932 * include/grub/mm.h: Likewise.
41933 * include/grub/net.h: Likewise.
41934 * include/grub/normal.h: Likewise.
41935 * include/grub/parser.h: Likewise.
41936 * include/grub/partition.h: Likewise.
41937 * include/grub/pc_partition.h: Likewise.
41938 * include/grub/raid.h: Likewise.
41939 * include/grub/rescue.h: Likewise.
41940 * include/grub/script.h: Likewise.
41941 * include/grub/setjmp.h: Likewise.
41942 * include/grub/symbol.h: Likewise.
41943 * include/grub/term.h: Likewise.
41944 * include/grub/terminfo.h: Likewise.
41945 * include/grub/tparm.h: Likewise.
41946 * include/grub/types.h: Likewise.
41947 * include/grub/video.h: Likewise.
41948 * include/grub/efi/api.h: Likewise.
41949 * include/grub/efi/chainloader.h: Likewise.
41950 * include/grub/efi/console.h: Likewise.
41951 * include/grub/efi/console_control.h: Likewise.
41952 * include/grub/efi/disk.h: Likewise.
41953 * include/grub/efi/efi.h: Likewise.
41954 * include/grub/efi/pe32.h: Likewise.
41955 * include/grub/efi/time.h: Likewise.
41956 * include/grub/i386/linux.h: Likewise.
41957 * include/grub/i386/setjmp.h: Likewise.
41958 * include/grub/i386/types.h: Likewise.
41959 * include/grub/i386/efi/kernel.h: Likewise.
41960 * include/grub/i386/efi/loader.h: Likewise.
41961 * include/grub/i386/efi/time.h: Likewise.
41962 * include/grub/i386/pc/biosdisk.h: Likewise.
41963 * include/grub/i386/pc/boot.h: Likewise.
41964 * include/grub/i386/pc/chainloader.h: Likewise.
41965 * include/grub/i386/pc/console.h: Likewise.
41966 * include/grub/i386/pc/init.h: Likewise.
41967 * include/grub/i386/pc/kernel.h: Likewise.
41968 * include/grub/i386/pc/loader.h: Likewise.
41969 * include/grub/i386/pc/memory.h: Likewise.
41970 * include/grub/i386/pc/multiboot.h: Likewise.
41971 * include/grub/i386/pc/serial.h: Likewise.
41972 * include/grub/i386/pc/time.h: Likewise.
41973 * include/grub/i386/pc/vbe.h: Likewise.
41974 * include/grub/i386/pc/vbeblit.h: Likewise.
41975 * include/grub/i386/pc/vbefill.h: Likewise.
41976 * include/grub/i386/pc/vbeutil.h: Likewise.
41977 * include/grub/i386/pc/vga.h: Likewise.
41978 * include/grub/ieee1275/ieee1275.h: Likewise.
41979 * include/grub/ieee1275/ofdisk.h: Likewise.
41980 * include/grub/powerpc/libgcc.h: Likewise.
41981 * include/grub/powerpc/setjmp.h: Likewise.
41982 * include/grub/powerpc/types.h: Likewise.
41983 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
41984 * include/grub/powerpc/ieee1275/console.h: Likewise.
41985 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
41986 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
41987 * include/grub/powerpc/ieee1275/loader.h: Likewise.
41988 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
41989 * include/grub/powerpc/ieee1275/time.h: Likewise.
41990 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
41991 * include/grub/sparc64/libgcc.h: Likewise.
41992 * include/grub/sparc64/setjmp.h: Likewise.
41993 * include/grub/sparc64/types.h: Likewise.
41994 * include/grub/sparc64/ieee1275/console.h: Likewise.
41995 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
41996 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
41997 * include/grub/sparc64/ieee1275/time.h: Likewise.
41998 * include/grub/util/biosdisk.h: Likewise.
41999 * include/grub/util/getroot.h: Likewise.
42000 * include/grub/util/lvm.h: Likewise.
42001 * include/grub/util/misc.h: Likewise.
42002 * include/grub/util/raid.h: Likewise.
42003 * include/grub/util/resolve.h: Likewise.
42004 * io/gzio.c: Likewise.
42005 * kern/device.c: Likewise.
42006 * kern/disk.c: Likewise.
42007 * kern/dl.c: Likewise.
42008 * kern/elf.c: Likewise.
42009 * kern/env.c: Likewise.
42010 * kern/err.c: Likewise.
42011 * kern/file.c: Likewise.
42012 * kern/fs.c: Likewise.
42013 * kern/loader.c: Likewise.
42014 * kern/main.c: Likewise.
42015 * kern/misc.c: Likewise.
42016 * kern/mm.c: Likewise.
42017 * kern/parser.c: Likewise.
42018 * kern/partition.c: Likewise.
42019 * kern/rescue.c: Likewise.
42020 * kern/term.c: Likewise.
42021 * kern/efi/efi.c: Likewise.
42022 * kern/efi/init.c: Likewise.
42023 * kern/efi/mm.c: Likewise.
42024 * kern/i386/dl.c: Likewise.
42025 * kern/i386/efi/init.c: Likewise.
42026 * kern/i386/efi/startup.S: Likewise.
42027 * kern/i386/pc/init.c: Likewise.
42028 * kern/i386/pc/lzo1x.S: Likewise.
42029 * kern/i386/pc/startup.S: Likewise.
42030 * kern/ieee1275/ieee1275.c: Likewise.
42031 * kern/powerpc/cache.S: Likewise.
42032 * kern/powerpc/dl.c: Likewise.
42033 * kern/powerpc/ieee1275/cmain.c: Likewise.
42034 * kern/powerpc/ieee1275/crt0.S: Likewise.
42035 * kern/powerpc/ieee1275/init.c: Likewise.
42036 * kern/powerpc/ieee1275/openfw.c: Likewise.
42037 * kern/sparc64/cache.S: Likewise.
42038 * kern/sparc64/dl.c: Likewise.
42039 * kern/sparc64/ieee1275/init.c: Likewise.
42040 * kern/sparc64/ieee1275/openfw.c: Likewise.
42041 * loader/efi/chainloader.c: Likewise.
42042 * loader/efi/chainloader_normal.c: Likewise.
42043 * loader/i386/efi/linux.c: Likewise.
42044 * loader/i386/efi/linux_normal.c: Likewise.
42045 * loader/i386/pc/chainloader.c: Likewise.
42046 * loader/i386/pc/chainloader_normal.c: Likewise.
42047 * loader/i386/pc/linux.c: Likewise.
42048 * loader/i386/pc/linux_normal.c: Likewise.
42049 * loader/i386/pc/multiboot.c: Likewise.
42050 * loader/i386/pc/multiboot_normal.c: Likewise.
42051 * loader/powerpc/ieee1275/linux.c: Likewise.
42052 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42053 * normal/arg.c: Likewise.
42054 * normal/cmdline.c: Likewise.
42055 * normal/command.c: Likewise.
42056 * normal/completion.c: Likewise.
42057 * normal/execute.c: Likewise.
42058 * normal/function.c: Likewise.
42059 * normal/lexer.c: Likewise.
42060 * normal/main.c: Likewise.
42061 * normal/menu.c: Likewise.
42062 * normal/menu_entry.c: Likewise.
42063 * normal/misc.c: Likewise.
42064 * normal/parser.y: Likewise.
42065 * normal/script.c: Likewise.
42066 * normal/i386/setjmp.S: Likewise.
42067 * normal/powerpc/setjmp.S: Likewise.
42068 * normal/sparc64/setjmp.S: Likewise.
42069 * partmap/acorn.c: Likewise.
42070 * partmap/amiga.c: Likewise.
42071 * partmap/apple.c: Likewise.
42072 * partmap/gpt.c: Likewise.
42073 * partmap/pc.c: Likewise.
42074 * partmap/sun.c: Likewise.
42075 * term/gfxterm.c: Likewise.
42076 * term/terminfo.c: Likewise.
42077 * term/efi/console.c: Likewise.
42078 * term/i386/pc/console.c: Likewise.
42079 * term/i386/pc/serial.c: Likewise.
42080 * term/i386/pc/vesafb.c: Likewise.
42081 * term/i386/pc/vga.c: Likewise.
42082 * term/ieee1275/ofconsole.c: Likewise.
42083 * util/biosdisk.c: Likewise.
42084 * util/console.c: Likewise.
42085 * util/genmoddep.c: Likewise.
42086 * util/getroot.c: Likewise.
42087 * util/grub-emu.c: Likewise.
42088 * util/grub-mkdevicemap.c: Likewise.
42089 * util/grub-probe.c: Likewise.
42090 * util/lvm.c: Likewise.
42091 * util/misc.c: Likewise.
42092 * util/raid.c: Likewise.
42093 * util/resolve.c: Likewise.
42094 * util/update-grub.in: Likewise.
42095 * util/update-grub_lib.in: Likewise.
42096 * util/grub.d/00_header.in: Likewise.
42097 * util/grub.d/10_hurd.in: Likewise.
42098 * util/grub.d/10_linux.in: Likewise.
42099 * util/i386/efi/grub-install.in: Likewise.
42100 * util/i386/efi/grub-mkimage.c: Likewise.
42101 * util/i386/pc/grub-install.in: Likewise.
42102 * util/i386/pc/grub-mkimage.c: Likewise.
42103 * util/i386/pc/grub-mkrescue.in: Likewise.
42104 * util/i386/pc/grub-setup.c: Likewise.
42105 * util/i386/pc/misc.c: Likewise.
42106 * util/powerpc/ieee1275/grub-install.in: Likewise.
42107 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42108 * util/powerpc/ieee1275/misc.c: Likewise.
42109 * video/bitmap.c: Likewise.
42110 * video/video.c: Likewise.
42111 * video/i386/pc/vbe.c: Likewise.
42112 * video/i386/pc/vbeblit.c: Likewise.
42113 * video/i386/pc/vbefill.c: Likewise.
42114 * video/i386/pc/vbeutil.c: Likewise.
42115 * video/readers/tga.c: Likewise.
42116
3572d015 421172007-07-02 Robert Millan <rmh@aybabtu.com>
42118
42119 * conf/i386-efi.rmk: Replace obsolete reference to
42120 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42121 with util/getroot.c.
42122 * conf/powerpc-ieee1275.rmk: Likewise.
42123 * conf/sparc64-ieee1275.rmk: Likewise.
42124
42125 * util/grub-emu.c (main): Fix unchecked pointer handling.
42126
2c2a681b 421272007-07-02 Robert Millan <rmh@aybabtu.com>
42128
42129 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42130 invocation to fail, in order to support partition-less media.
42131
42132 * util/i386/pc/grub-install.in: Likewise.
42133
42134 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42135 which fs or partmap modules are needed (akin to its sister scripts).
42136
42137 Also use grub-probe to get rid of unportable /proc/mounts check.
42138
42139 Print the same informational message that the other scripts do, before
fe6b695a 42140 exiting.
2c2a681b 42141
6193defe 421422007-06-23 Robert Millan <rmh@aybabtu.com>
42143
fe6b695a 42144 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 42145 a font file can be found and, if so, echo the GRUB path to it.
42146
42147 * util/update-grub.in: Handle multiple terminals depending on user
42148 input, platform availability and font file presence. Propagate
42149 variables of our findings to /etc/grub.d/ children.
42150
42151 * util/grub.d/00_header.in: Handle multiple terminals, based on
42152 environment setup by update-grub.
42153
eface1dc 421542007-06-23 Robert Millan <rmh@aybabtu.com>
42155
ba50d28f 42156 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 42157
bf697e28 421582007-06-21 Robert Millan <rmh@aybabtu.com>
42159
42160 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42161 indicate end of data section in kernel image.
42162 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42163 GRUB_KERNEL_MACHINE_DATA_END.
42164
42165 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42166 space for it.
42167 * kern/i386/efi/startup.S: Likewise.
42168
42169 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42170 during image generation. Implement --prefix option to override this
42171 patch.
42172 * util/i386/efi/grub-mkimage.c: Likewise.
42173
42174 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42175 code to make path relative to its root into a separate function.
42176
42177 * util/i386/pc/grub-install.in: Use newly provided
42178 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42179 pass the result to grub-install --prefix.
42180
baa574b4 421812007-06-13 Robert Millan <rmh@aybabtu.com>
42182
42183 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42184 DEFAULT_DEVICE_MAP.
42185 * util/grub-emu.c: Use above definitions from misc.h instead of
42186 defining them.
42187 * util/grub-mkdevicemap.c: Likewise.
42188 * util/i386/pc/grub-setup.c: Likewise.
42189 * util/grub-probe.c: Likewise.
42190 (probe): Abort with grub_util_error() when either
42191 grub_guess_root_device or grub_util_get_grub_dev fails.
42192
0215dcbf 421932007-06-12 Robert Millan <rmh@aybabtu.com>
42194
42195 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42196 "pager" assignment.
42197 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42198 "pcdata".
42199 * util/grub-probe.c (probe): Likewise for "drive_name".
42200
8af2ab7b 422012007-06-11 Robert Millan <rmh@aybabtu.com>
42202
42203 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42204 not just the cdrom one.
42205
59d31694 422062007-06-11 Robert Millan <rmh@aybabtu.com>
42207
42208 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42209 Add --pkglibdir=DIR option to override pkglibdir.
42210 Mention --image-type=TYPE in help output.
42211 Fix --grub-mkimage (it was a no-op).
fe6b695a 42212 Abort gracefully when no parameter is given.
59d31694 42213
7ee367e4 422142007-06-11 Robert Millan <rmh@aybabtu.com>
42215
42216 * util/i386/pc/grub-mkrescue.in: New file.
42217 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42218 * Makefile.in: Handle bin_SCRIPTS.
42219
29b0ed46 422202007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42221
42222 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42223 list of video modes.
42224
c0f90770 422252007-06-06 Robert Millan <rmh@aybabtu.com>
42226
42227 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42228 file doesn't exist, or if it is in a filesystem grub can't read.
42229
42230 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42231 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42232 header comment to fit in 80 columns when the variables are resolved.
42233
42234 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42235 could be identified by update-grub. Remove redundant check for
fe6b695a 42236 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 42237 handles that).
42238
fb36dc26 422392007-06-04 Robert Millan <rmh@aybabtu.com>
42240
42241 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42242
42243 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42244
42245 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42246
0c68c93e 422472007-06-04 Robert Millan <rmh@aybabtu.com>
42248
42249 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42250
42251 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42252 grub_apple_partition_map_fini.
42253
42254 * util/biosdisk.c
42255 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42256 to access >2 TiB disks).
42257
42258 Print disk->total_sectors with %llu instead of %lu, since this
42259 variable is always 64-bit (prevents wrong disk size from being displayed
42260 on either >2 TiB disk or big-endian CPU).
42261
42262 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42263 into a generic case that supports all (sane) partition maps.
42264
42265 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42266 breaks big-endian.
42267
42268 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42269 and grub_apple_partition_map_fini() after that.
42270
0f23eb74 422712007-06-01 Robert Millan <rmh@aybabtu.com>
42272
42273 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42274
42275 * util/grub.d/00_header.in: Only enable gfxterm when
42276 convert_system_path_to_grub_path() succeeds.
42277
42c71976 422782007-05-20 Robert Millan <rmh@aybabtu.com>
42279
42280 * util/update-grub_lib.in: New file.
42281 * DISTLIST: Add update-grub_lib.in.
42282 * conf/common.rmk: Generate update-grub_lib and install it in
42283 $(lib_DATA).
42284 * Makefile.in: Add install routine for $(lib_DATA).
42285
42286 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
42287 function provided by update-grub_lib to support arbitrary paths of
42288 unifont.pff.
42289 * util/update-grub.in: Use convert_system_path_to_grub_path() to
42290 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
42291
5beb2291 422922007-05-19 Robert Millan <rmh@aybabtu.com>
42293
42294 * commands/i386/cpuid.c: New module.
42295 * DISTLIST: Add it.
42296 * conf/i386-efi.rmk: Enable cpuid.mod.
42297 * conf/i386-pc.rmk: Likewise.
42298
7262eca1 422992007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42300
42301 * kern/disk.c (grub_disk_read): Check return value of
42302 grub_realloc().
42303
260ba823 423042007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42305
42306 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
42307 arrays.
42308 * disk/raid.c (grub_raid_open): Likewise.
42309
1ecb6cf2 423102007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42311
42312 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
42313 stack instead of on the heap.
42314
42315 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
42316 before doing a read on it.
42317
42318 * configure.ac: Only use -fno-stack-protector for the target
42319 environment.
f19dbdb7 42320
21c8cbb1 423212007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42322
42323 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
42324 __attribute_ ((unused)) to mode_type argument.
42325
42326 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 42327
21c8cbb1 42328 * kern/misc.c (memcmp): Fix prototype.
42329
42330 * include/grub/partition.h [GRUB_UTIL]
42331 (grub_gpt_partition_map_init): Add prototype.
42332 (grub_gpt_partition_map_fini): Likewise.
42333
42334 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
42335 at the right place.
42336
42337 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
42338 (grub_fat_read_data): Likewise.
42339 (grub_fat_find_dir): Likewise.
42340
42341 * font/manager.c (find_glyph): Make table a const.
42342 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 42343
849d55d3 423442007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
42345
42346 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
42347 code, first search for device in /dev/mapper, then in /dev.
42348 (grub_util_get_grub_dev): New function.
42349 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
42350 prototype.
42351 * util/grub-probe.c (probe): Remove check for RAID, call
42352 grub_util_get_grub_dev() instead of
42353 grub_util_biosdisk_get_grub_dev().
42354 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
42355 grub_util_biosdisk_get_grub_dev().
42356 * util/i386/pc/grub-setup.c (main): Likewise.
42357
8fff7c2f 423582007-05-16 Robert Millan <rmh@aybabtu.com>
42359
42360 * DISTLIST: Update for the latest changes.
42361 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
42362 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
42363 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
42364 grub/util/biosdisk.h.
42365 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
42366 grub/util/biosdisk.h.
42367
48e12b52 423682007-05-16 Robert Millan <rmh@aybabtu.com>
42369
42370 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
42371
46b9d128 423722007-05-16 Robert Millan <rmh@aybabtu.com>
42373
42374 * util/i386/efi/grub-install.in: New.
42375 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
42376 newly added grub-install.
42377 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
42378 include.
42379 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
42380 grub/util/biosdisk.h.
42381 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
42382 grub/util/biosdisk.h.
42383
2d1a40a9 423842007-05-16 Robert Millan <rmh@aybabtu.com>
42385
42386 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
42387 * include/grub/util/biosdisk.h: ... here.
42388 * util/i386/pc/biosdisk.c: Moved to ...
42389 * util/biosdisk.c: ... here.
42390 * util/i386/pc/getroot.c: Moved to ...
42391 * util/getroot.c: ... here.
42392 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
42393 * util/grub-mkdevicemap.c: ... here.
42394 * util/i386/pc/grub-probe.c: Moved to ...
42395 * util/grub-probe.c: ... here.
42396
9e26e3bc 423972007-05-15 Robert Millan <rmh@aybabtu.com>
42398
42399 * util/update-grub.in: Remove duplicated line in grub.cfg header
42400 message.
42401
57f96397 424022007-05-13 Robert Millan <rmh@aybabtu.com>
42403
42404 * util/update-grub.in: Fix a few assumptions about the devices holding
42405 /, /boot and /boot/grub being the same.
42406 * util/grub.d/00_header.in: Likewise.
42407 * util/grub.d/10_hurd.in: Likewise.
42408 * util/grub.d/10_linux.in: Likewise.
42409
42410 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
42411 patterns. Use that to define the `.old' suffix as older than `'.
42412
42413 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
42414
42415 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
42416 the grub.cfg header message.
42417
2e610d62 424182007-05-11 Robert Millan <rmh@aybabtu.com>
42419
42420 * util/update-grub.in: Create device.map if it doesn't already exist,
42421 before attempting to run grub-probe.
42422 Check for grub-probe and grub-mkdevicemap with the same code
42423 grub-install is using.
42424 Remove test mode.
42425
3f6a10ef 424262007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
42427
42428 * Makefile.in: Add the datarootdir autoconf variable.
42429
02e7b75e 424302007-05-09 Robert Millan <rmh@aybabtu.com>
42431
42432 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 42433 fail gracefully if dev->disk->partition == NULL.
02e7b75e 42434
75f396cc 424352007-05-07 Robert Millan <rmh@aybabtu.com>
42436
42437 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
42438 determine partition map module.
42439 * util/i386/pc/grub-install.in: Use this feature to decide which
42440 partition module to load, instead of hardcoding pc and gpt.
42441
da65cb36 424422007-05-07 Robert Millan <rmh@aybabtu.com>
42443
42444 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
42445 source directory differs from build directory.
42446
b57d6a91 424472007-05-05 Robert Millan <rmh@aybabtu.com>
42448
42449 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
42450 initialisation.
42451
509d00f1 424522007-05-05 Robert Millan <rmh@aybabtu.com>
42453
42454 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
42455
c48f23ef 424562007-05-05 Robert Millan <rmh@aybabtu.com>
42457
42458 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
42459 command-line arguments via ${GRUB_CMDLINE_LINUX}.
42460
20b97658 424612007-05-05 Robert Millan <rmh@aybabtu.com>
42462
42463 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
42464 (grub_probe_SOURCES): Likewise.
42465 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
42466 GPT and initialize dos_part and bsd_part accordingly.
42467 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
42468 install_bsd_part.
42469 (main): Activate gpt module for use during partition identification,
42470 and deactivate it afterwards.
42471 * util/i386/pc/grub-install.in: Add gpt module to core.img.
42472 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
42473 partition identification, and deactivate it afterwards.
42474
99123174 424752007-05-05 Robert Millan <rmh@aybabtu.com>
42476
42477 * term/i386/pc/console.c (grub_console_fini): Call
42478 grub_term_set_current() before grub_term_unregister().
42479
ebd97f6e 424802007-05-04 Robert Millan <rmh@aybabtu.com>
42481
42482 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
42483 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
42484 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
42485 and update-grub_DATA.
42486 * conf/common.rmk: Build and install update-grub components.
42487 * conf/common.mk: Regenerate.
42488 * util/update-grub.in: New. Core of update-grub.
42489 * util/grub.d/00_header.in: New. Generates grub.cfg header.
42490 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
42491 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
42492 * util/grub.d/README: New. Document grub.d directory layout.
42493
b06a264d 424942007-05-01 Robert Millan <rmh@aybabtu.com>
42495
42496 * util/grub-emu.c: Move initialization functions
42497 grub_util_biosdisk_init() and grub_init_all() before
42498 grub_util_biosdisk_get_grub_dev(), which relies on them.
42499
41f0050e 425002007-04-19 Robert Millan <rmh@aybabtu.com>
42501
42502 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
42503 it is used later.
42504
04582bb3 425052007-04-18 Jerone Young <jerone@gmail.com>
42506
f19dbdb7 42507 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 42508 stanza.
42509
08db4632 425102007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 42511
08db4632 42512 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
42513 continue on and look for device node with real device name.
42514
801b76be 425152007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 42516
fe6b695a 42517 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 42518 ability.
42519 * Makefile.in: Add autoconf package transformation code.
42520 * util/i386/pc/grub-install.in: Likewise.
42521 * util/powerpc/ieee1275/grub-install.in: Likewise.
42522
6795c4e1 425232007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
42524
42525 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
42526 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
42527 (EXT2_REVISION): Likewise.
42528 (EXT2_INODE_SIZE): Likewise.
42529 (struct grub_ext2_block_group): Added a missing member
42530 "used_dirs".
42531 (grub_ext2_read_inode): Divide by the inode size in a superblock
42532 instead of 128 to obtain INODES_PER_BLOCK.
42533 Use the macro EXT2_INODE_SIZE instead of directly using
42534 SBLOCK->INODE_SIZE.
42535
d70af616 425362007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
42537
42538 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
42539 superblock instead of the structure size to compute an
42540 offset. This fixes the problem that GRUB could not read a
42541 filesystem when inode size is different from 128-byte.
42542
3b801603 425432007-03-05 Marco Gerards <marco@gnu.org>
42544
42545 * normal/main.c (read_config_file): When "menu" is not set, create
42546 an initial context.
42547
4785bfe4 425482007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42549
42550 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
42551 (HEAP_LIMIT): New macro.
42552 (grub_claim_heap): Claim memory up to `heaplimit'.
42553
a0cbb023 425542007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42555
42556 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
42557 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
42558 (_start): Likewise.
42559 (grub_arch_modules_addr): Return address after `_end'.
42560 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
42561 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
42562 (add_segments): Calculate `_end' from phdr size and location.
42563 (ALIGN_UP): Moved to ...
42564 * include/grub/misc.h: here.
42565 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42566 New macro.
42567 (GRUB_IEEE1275_MODULE_BASE): Removed.
42568
fd7d8eba 425692007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42570
42571 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
42572 loop boundary.
42573
9b09e6fc 425742007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42575
42576 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
42577 All users updated.
42578 (grub_elf64_load_hook_t): Likewise.
42579 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
42580 debug output.
42581
3ce27299 425822007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42583
42584 * kern/mm.c: Update copyright.
42585 (grub_mm_debug): Correct syntax error.
42586 (grub_mm_dump_free): New function.
42587 (grub_debug_free): Call `grub_free'.
42588 * include/grub/mm.h: Update copyright.
42589 (grub_mm_dump_free): Add declaration.
42590
077d5fee 425912007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42592
42593 * include/grub/ieee1275/ieee1275.h: Update copyright.
42594 * kern/powerpc/ieee1275/init.c: Likewise.
42595 * kern/powerpc/ieee1275/openfw.c: Likewise.
42596
42597 * loader/powerpc/ieee1275/linux.c: Likewise.
42598 * include/grub/elfload.h: Likewise.
42599 * kern/elf.c: Likewise.
42600 (grub_elf32_load): Pass `base' and `size' parameters. Update all
42601 callers.
42602 (grub_elf64_load): Likewise.
42603 (grub_elf32_load_segment): Move to a nested function.
42604 (grub_elf64_load_segment): Likewise.
42605
dc946850 426062007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42607
42608 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
42609 prototype.
42610 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
42611 (grub_heap_len): Likewise.
42612 (HEAP_SIZE): New macro.
42613 (grub_claim_heap): New function.
42614 (grub_machine_init): Don't claim heap directly. Call
42615 `grub_claim_heap'.
42616 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
42617 (grub_available_iterate): New function.
42618
baa2a121 426192007-02-03 Thomas Schwinge <tschwinge@gnu.org>
42620
42621 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
42622 * configure.ac: Use it for testing the HOST and TARGET compilers.
42623
4fe9862e 426242006-12-13 Thomas Schwinge <tschwinge@gnu.org>
42625
42626 * Makefile.in (enable_grub_emu): New variable.
42627 * configure.ac (--enable-grub-emu): New option.
42628 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
42629 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
42630 * conf/i386-pc.rmk: Likewise.
42631 * conf/powerpc-ieee1275.rmk: Likewise.
42632 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
42633
a8aa5762 426342006-12-12 Marco Gerards <marco@gnu.org>
42635
42636 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
42637
42638 * kern/env.c (grub_env_unset): Don't free the member `value' when
42639 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
42640 pointer.
42641
42642 * normal/main.c (current_menu): Removed.
42643 (free_menu): Unset the `menu' environment variable.
42644 (grub_normal_menu_addentry): Make use of the environment variable
42645 `menu', instead of using the global `current_menu'. Allocate
42646 memory for the sourcecode of this entry.
42647 (read_config_file): New argument `nested', changed all callers.
42648 Only in the case of a new context, initialize a new menu. Set the
42649 `menu' environment variable.
42650 (grub_normal_execute): Don't set and unset the environment
42651 variable `menu' here anymore. Only free the menu when leaving the
42652 context.
42653
42654 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
42655 leak.
42656
957b3a3e 426572006-12-11 Marco Gerards <marco@gnu.org>
42658
42659 * normal/menu_entry.c (run): Fix off by one bug so the last line
42660 is executed. Move the loader check to outside the loop.
42661
ef875714 426622006-12-08 Hollis Blanchard <hollis@penguinppc.org>
42663
42664 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
42665
4e739985 426662006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
42667
42668 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
42669 the number of sectors. Reported by Andrey Shuvikov
42670 <mr_hyro@yahoo.com>.
f19dbdb7 42671
790707f2 426722006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
42673
42674 * kern/disk.c (grub_disk_read): When there is a read error, always
42675 try to read only the necessary data.
f19dbdb7 42676
790707f2 42677 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
42678 disk/raid.c.
42679 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
42680 prototype.
42681 [GRUB_UTIL] (grub_raid_fini): Likewise.
42682 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 42683 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 42684 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
42685 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
42686 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
42687 and grub_raid_fini().
f19dbdb7 42688
03e58196 426892006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42690
42691 * include/grub/types.h (__unused): Rename to UNUSED.
42692 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
42693 (grub_elf64_size): Likewise.
f19dbdb7 42694
ae4f23bf 426952006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42696
42697 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
42698 grub_error_push and grub_error_pop in the error-handling path.
42699 (grub_elf32_load_segment): Only call grub_file_read with non-zero
42700 length.
42701
2166cc83 427022006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42703
42704 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
42705 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42707 (kernel_elf_SOURCES): Likewise.
42708 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
42709 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
42710 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42711 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42712 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
42713 (elf_mod_SOURCES): New variable.
42714 (elf_mod_CFLAGS): Likewise.
42715 (elf_mod_LDFLAGS): Likewise.
42716 * include/grub/types.h (__unused): New macro.
42717 * include/grub/elfload.h: New file.
42718 * kern/elf.c: Likewise.
42719 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
42720 (ELF32_LOADMASK): New macro.
42721 (ELF64_LOADMASK): Likewise.
42722 (vmlinux): Removed.
42723 (grub_linux_load32): New function.
42724 (grub_linux_load64): Likewise.
42725 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
42726 Use grub_elf_t instead of grub_file_t.
42727
a09d5aa5 427282006-11-02 Hollis Blanchard <hollis@penguinppc.org>
42729
42730 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
42731 `catch_result' to struct set_color_args.
42732
d976fc51 427332006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42734
42735 * normal/menu.c: Include grub/script.h.
42736 * normal/menu_entry.c: Likewise.
42737 * include/grub/normal.h: Do not include grub/script.h.
42738
67507549 427392006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42740
42741 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
42742
69203a99 427432006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42744
42745 * kern/disk.c (grub_disk_open): Print debug messages when opening a
42746 disk.
42747 (grub_disk_close): Print debug messages when closing a disk.
42748 (grub_disk_read): Print debug messages when disk read fails.
42749 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
42750 filesystem type.
42751 * kern/partition.c: Include misc.h.
42752 (grub_partition_iterate): Print debug messages when detecting
42753 partition type.
42754
e2b8278c 427552006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42756
42757 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
42758 is negative.
42759 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
42760
97b2f2ff 427612006-10-26 Hollis Blanchard <hollis@penguinppc.org>
42762
42763 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42764 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
42765
6555d655 427662006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
42767
42768 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
42769 instead of sizeof(lv). Patch by Michael Guntsche.
42770
4d42b77f 427712006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
42772
42773 * disk/lvm.c: Rename VGS to VG_LIST.
42774 (grub_lvm_iterate): Change VGS->LV to VG-LV.
42775 (grub_lvm_open): Likewise.
42776 Thanks to Michael Guntsche for finding this bug.
42777
5d74d927 427782006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
42779
42780 * configure.ac (AC_INIT): Bumped to 1.95.
42781
a1bb27e4 427822006-10-14 Robert Millan <rmh@aybabtu.com>
42783
42784 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
42785 with "/dev/.static/dev/md".
42786
e0994b8b 427872006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42788
42789 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
42790 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
42791 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
42792 DRIVE_NAME are always freed.
42793
42794 * util/i386/pc/biosdisk.c (make_device_name): Add one into
42795 DOS_PART, as a DOS partition is counted from one instead of zero
42796 now. Reported by Robert Millan.
42797
ddd5cee9 427982006-10-14 Robert Millan <rmh@aybabtu.com>
42799
42800 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
42801 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
42802 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
42803 string returned by grub_guess_root_device.
42804 * util/i386/pc/grub-setup.c: Likewise.
42805 * util/i386/pc/grub-probefs.c: Likewise.
42806
42807 * util/i386/pc/grub-probefs.c: Rename to ...
42808 * util/i386/pc/grub-probe.c: ... this.
42809 * DISTLIST: Remove grub-probefs, add grub-probe.
42810 * conf/i386-efi.rmk: Likewise.
42811 * conf/i386-pc.rmk: Likewise.
42812 * util/i386/pc/grub-install.in: Likewise.
42813
42814 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42815 choose which information we want to print.
42816
2b002173 428172006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42818
42819 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42820 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42821 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42822 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42823 video/readers/tga.c and video/i386/pc/vbeutil.c.
42824
428252006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42826
42827 Added support for RAID and LVM.
f19dbdb7 42828
2b002173 42829 * disk/lvm.c: New file.
42830 * disk/raid.c: Likewise.
42831 * include/grub/lvm.h: Likewise.
f19dbdb7 42832 * include/grub/raid.h: Likewise.
2b002173 42833 * include/grub/util/lvm.h: Likewise.
42834 * include/grub/util/raid.h: Likewise.
42835 * util/lvm.c: Likewise.
42836 * util/raid.c: Likewise.
42837
42838 * include/grub/disk.h (grub_disk_dev_id): Add
42839 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42840 (grub_disk_get_size): New prototype.
42841 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42842 returns a partition.
42843 (grub_disk_get_size): New function.
f19dbdb7 42844
2b002173 42845 * kern/i386/pc/init.c (make_install_device): Copy the prefix
42846 verbatim if grub_install_dos_part is -2.
42847
42848 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
42849 and LVM devices.
42850
42851 * util/i386/pc/grub-setup.c (setup): New argument
42852 MUST_EMBED. Force embedding of GRUB when the argument is
42853 true. Close FILE before returning.
42854 (main): Add support for RAID and LVM.
f19dbdb7 42855
2b002173 42856 * conf/common.rmk: Add RAID and LVM modules.
42857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
42858 util/lvm.c.
42859 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
42860
42861 * kern/misc.c (grub_strstr): New function.
42862 * include/grub/misc.h (grub_strstr): New prototype.
42863
050548d0 428642006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42865
42866 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42867
da849d2d 428682006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42869
42870 * kern/misc.c (grub_strtoull): Guess the base only if not
42871 specified.
42872
97b2f2ff 428732006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42874
42875 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42876 PowerMac support.
42877
97b2f2ff 428782006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42879
42880 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42881
42882 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42883 Remove `flags' argument. All callers changed.
42884 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42885 (IEEE1275_IHANDLE_INVALID): New variable.
42886 (IEEE1275_CELL_INVALID): New variable.
42887 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42888 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42889 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42890 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42891 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42892 codes from Open Firmware. All callers updated.
42893 (grub_ieee1275_next_property): Directly return Open Firmware return
42894 code.
42895 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42896 Standardize error checking from `grub_ieee1275_get_property'.
42897 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42898 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42899
97b2f2ff 429002006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42901
42902 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42903 `instance_to_package_args' to `instance_to_path_args'.
42904
42905 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42906 `grub_ieee1275_chosen'.
42907
42908 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42909 `grub_ieee1275_interpret'.
42910
97b2f2ff 429112006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42912
42913 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42914
97b2f2ff 429152006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42916
42917 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42918 (__cmpdi): Likewise.
42919
42920 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42921 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42922 `grub_ssize_t'.
42923
02bb8acc 42924 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42925
42926 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42927 to type `grub_ssize_t'.
42928 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42929
7f9a8531 429302006-09-22 Marco Gerards <marco@gnu.org>
42931
42932 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42933 newlines.
42934
b5ef1102 429352006-09-22 Marco Gerards <marco@gnu.org>
42936
42937 * commands/echo.c: New file.
42938
42939 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42940
42941 * conf/common.rmk (echo_mod_SOURCES): New variable.
42942 (echo_mod_CFLAGS): Likewise.
42943 (echo_mod_LDFLAGS): Likewise.
42944
2cff3677 429452006-09-22 Marco Gerards <marco@gnu.org>
42946
42947 * normal/main.c (get_line): Malloc memory instead of using
42948 preallocated memory. Removed the arguments `cmdline' and
42949 `max_len'. Updated all callers.
42950
6ba4688b 429512006-09-22 Marco Gerards <marco@gnu.org>
42952
42953 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42954 (normal_mod_DEPENDENCIES): Likewise.
42955
42956 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42957 (normal_mod_DEPENDENCIES): Likewise.
42958
42959 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42960
e02ac02c 429612006-09-22 Johan Rydberg <jrydberg@gnu.org>
42962
42963 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42964 programs.
42965 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42966 (normal_mod_DEPENDENCIES): Likewise.
42967 * conf/i386-pc.mk: Regenerate.
42968 * conf/i386-efi.mk: Likewise
42969 * conf/common.mk: Likewise.
42970 * conf/powerpc-ieee1275.mk: Likewise.
42971 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42972
8d252e44 429732006-09-22 Robert Millan <rmh@aybabtu.com>
42974
42975 Sync with i386 version.
42976 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42977 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42978
209bf7ac 429792006-09-21 Robert Millan <rmh@aybabtu.com>
42980
42981 Import from GRUB Legacy (lib/device.c):
42982 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
42983 (init_device_map) [__linux__]: Add support for I2O devices.
42984
6b146090 429852006-09-14 Marco Gerards <marco@gnu.org>
42986
42987 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
42988 `-melf_i386'.
42989
e38600a8 429902006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 42991
42992 * util/i386/pc/grub-install.in: Skip menu.lst when removing
42993 /boot/grub/*.lst.
78fa1790 42994
2952da5d 42995 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 42996
2952da5d 42997 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
42998 before adding it to device.map.
42999
01b82a64 430002006-08-15 Johan Rydberg <jrydberg@gnu.org>
43001
fe6b695a 43002 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 43003 compiles a file; using the -MD option.
43004 * conf/common.mk: Regenerate.
43005 * conf/i386-pc.mk: Likewise.
43006 * conf/i386-efi.mk: Likewise.
43007 * conf/powerpc-ieee1275.mk: Likewise.
43008 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 43009
1064790d 430102006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43011
43012 Move the prototypes of grub_setjmp and grub_longjmp to
43013 cpu/setjmp.h, so that each architecture may specify different
43014 attributes.
f19dbdb7 43015
1064790d 43016 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43017 (grub_longjmp): Likewise.
43018 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43019 (grub_longjmp): Likewise.
43020 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43021 (grub_longjmp): Likewise.
43022
43023 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43024 [!GRUB_UTIL] (grub_longjmp): Removed.
43025
29dda3ed 430262006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43027
43028 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43029 "color!" method does not return any value.
43030
ad2a06ed 430312006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43032
43033 * include/grub/bitmap.h: New file.
43034
43035 * include/grub/i386/pc/vbeutil.h: Likewise.
43036
43037 * video/bitmap.c: Likewise.
43038
43039 * video/readers/tga.c: Likewise.
43040
43041 * video/i386/pc/vbeutil.c: Likewise.
43042
43043 * commands/videotest.c: Code cleanup and updated to reflect to new
43044 video API.
43045
43046 * term/gfxterm.c: Likewise.
43047
43048 * video/video.c: Likewise.
43049
43050 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43051 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43052 (bitmap_mod_SOURCES): New entry.
43053 (bitmap_mod_CFLAGS): Likewise.
43054 (bitmap_mod_LDFLAGS): Likewise.
43055 (tga_mod_SOURCES): Likewise.
43056 (tga_mod_CFLAGS): Likewise.
43057 (tga_mod_LDFLAGS): Likewise.
43058
43059 * include/grub/video.h (grub_video_blit_operators): New enum type.
43060 (grub_video_render_target): Changed as forward declaration and moved
43061 actual definition to be video driver specific.
43062 (grub_video_adapter.blit_bitmap): Added blitting operator.
43063 (grub_video_adapter.blit_render_target): Likewise.
43064 (grub_video_blit_bitmap): Likewise.
43065 (grub_video_blit_render_target): Likewise.
43066
43067 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43068 driver specific render target definition.
43069 (grub_video_vbe_map_rgba): Added driver internal helper.
43070 (grub_video_vbe_unmap_color): Updated to use
43071 grub_video_i386_vbeblit_info.
43072 (grub_video_vbe_get_video_ptr): Likewise.
43073
43074 * include/grub/i386/pc/vbeblit.h
43075 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43076 grub_video_i386_vbeblit_info.
43077 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43078 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43079 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43080 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43081 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43082 (grub_video_i386_vbeblit_index_index): Likewise.
43083 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43084 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43085 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43086 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43087 operator.
43088 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43089 operator.
43090
43091 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43092 include/grub/i386/pc/vbeblit.h.
43093
43094 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43095 Updated to use grub_video_i386_vbeblit_info.
43096 (grub_video_i386_vbefill_R8G8B8): Likewise.
43097 (grub_video_i386_vbefill_index): Likewise.
43098 (grub_video_i386_vbefill): Added generic filler.
43099
43100 * video/i386/pc/vbefill.c: Updated to reflect changes on
43101 include/grub/i386/pc/vbefill.h.
43102
43103 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43104 grub_video_i386_vbeblit_info.
43105 (grub_video_vbe_unmap_color): Likewise.
43106 (grub_video_vbe_blit_glyph): Likewise.
43107 (grub_video_vbe_scroll): Likewise.
43108 (grub_video_vbe_draw_pixel): Removed function.
43109 (grub_video_vbe_get_pixel): Likewise.
43110 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43111 updated code to use it.
43112 (common_blitter): Added common blitter for render target and bitmap.
43113 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43114 (grub_video_vbe_blit_render_target): Likewise.
43115
bc8c036d 431162006-07-30 Johan Rydberg <jrydberg@gnu.org>
43117
43118 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43119 is in text mode if there is no console control protocol instance
43120 available.
43121
684a8eff 431222006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43123
43124 * include/grub/video.h: Code cleanup.
43125
43126 * include/grub/i386/pc/vbe.h: Likewise.
43127
43128 * video/i386/pc/vbe.c: Likewise.
43129
43130 * video/i386/pc/vbeblit.c: Likewise.
43131
43132 * video/i386/pc/vbefill.c: Likewise.
43133
43134 * video/video.c: Likewise. Also added more comments.
43135
5915059b 431362006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43137
43138 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43139 (struct grub_biosdisk_dap): Likewise.
43140
43141 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43142 linkage settings for all functions.
43143
90ce5d56 431442006-07-12 Marco Gerards <marco@gnu.org>
43145
43146 * configure.ac (--enable-mm-debug): Fix typo.
43147
43148 * genkernsyms.sh.in: Use proper quoting for `CC'.
43149
43e7f879 431502006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43151
43152 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43153 (normal_mod_ASFLAGS): Remove "-m32".
43154
4889bdec 431552006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43156
43157 * util/misc.c: Include config.h.
43158 [!HAVE_MEMALIGN]: Do not include malloc.h.
43159 (grub_memalign): Use posix_memalign, if present. Then, use
43160 memalign, if present. Otherwise, emit an error.
43161
43162 * util/grub-emu.c: Do not include malloc.h.
43163
43164 * include/grub/util/misc.h: Include unistd.h. This is required for
43165 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43166 D. Eades III <hde@foobar-qux.org>.
43167
43168 * configure.ac (AC_GNU_SOURCE): Added.
43169 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43170 type.
43171
fd39d4da 431722006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43173
43174 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43175 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43176
b786f3b5 431772006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43178
43179 * include/grub/types.h (grub_host_addr_t): Rename to
43180 grub_target_addr_t.
43181 (grub_host_off_t): Rename to grub_target_off_t.
43182 (grub_host_size_t): Rename to grub_target_size_t.
43183 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43184 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43185
43186 * include/grub/kernel.h (struct grub_module_header): Change type
43187 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43188 (grub_module_info): Likewise.
f19dbdb7 43189
051988bb 431902006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43191
43192 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43193 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43194 Velazquez <jesus.velazquez@gmail.com>.
43195
deae281b 431962006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43197
43198 Count partitions from 1 instead of 0 in the string representation
43199 of partitions. Still use 0-based internally.
f19dbdb7 43200
deae281b 43201 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43202 (sun_partition_map_iterate): Use grub_partition_t instead of
43203 struct grub_partition *. Cast DESC->START_CYLINDER to
43204 grub_uint64_t after converting the endian.
43205 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43206 (sun_partition_map_get_name): Add 1 to P->INDEX.
43207
43208 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43209 PCDATA->DOS_PART.
43210 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43211
43212 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43213 zero instead of one.
43214 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43215 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43216
43217 * partmap/apple.c (apple_partition_map_iterate): Change the type
43218 of POS to unsigned.
43219 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43220 (apple_partition_map_get_name): Add 1 into P->INDEX.
43221
43222 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43223 of POS to unsigned.
43224 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43225 calculate the offset of a partition.
43226 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43227 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43228
43229 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43230 SECTOR to grub_disk_addr_t.
43231 (acorn_partition_map_iterate): Likewise.
43232 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43233 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43234 top.
43235 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43236
43237 * kern/i386/pc/init.c (make_install_device): Add 1 into
43238 GRUB_INSTALL_DOS_PART.
43239
43240 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43241 conditional.
43242
524a1e6a 432432006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43244
43245 Clean up the code to support 64-bit addressing in disks and
43246 files. This change is not enough for filesystems yet.
f19dbdb7 43247
524a1e6a 43248 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43249 type of "start" to grub_uint64_t.
43250 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43251 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43252 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43253 convert addresses.
43254
43255 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43256 to grub_disk_addr_t.
43257
43258 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43259 string.
43260
43261 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43262
43263 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43264 to char *.
43265
43266 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43267
43268 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43269
43270 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43271
43272 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43273 to grub_off_t, to detect an error from grub_file_seek.
43274 (grub_multiboot_load_elf32): Likewise.
43275
43276 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43277 maximum unsigned long value when an overflow is detected.
43278 (grub_strtoull): New function.
43279 (grub_divmod64): Likewise.
43280 (grub_lltoa): use grub_divmod64.
43281
43282 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43283 grub_disk_addr_t.
43284 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43285 the pointer to next character. Use grub_strtoull instead of
43286 grub_strtoul.
43287 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
43288 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
43289 respectively.
43290
fe6b695a 43291 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 43292 return value is signed.
43293 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
43294 test if OFFSET is less than zero, as OFFSET is unsigned now.
43295
43296 * kern/disk.c (struct grub_disk_cache): Change the type of
43297 "sector" to grub_disk_addr_t.
43298 (grub_disk_cache_get_index): Change the type of SECTOR to
43299 grub_disk_addr_t. Calculate the hash with SECTOR casted to
43300 unsigned after shifting.
43301 (grub_disk_cache_invalidate): Change the type of SECTOR to
43302 grub_disk_addr_t.
43303 (grub_disk_cache_unlock): Likewise.
43304 (grub_disk_cache_store): Likewise.
43305 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
43306 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
43307 grub_disk_addr_t and grub_uint64_t, respectively.
43308 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
43309 body, as the value of OFFSET is tweaked by
43310 grub_disk_check_range. Change the types of START_SECTOR, LEN and
43311 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
43312 respectively.
43313 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
43314 body, as the value of OFFSET is tweaked by
43315 grub_disk_check_range. Change the types of LEN and N to
43316 grub_size_t.
43317
43318 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
43319 and "saved_offset" to grub_off_t.
43320 (test_header): Cast BUF to char *.
43321 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
43322 to char *.
43323 (grub_gzio_read): Change the types of OFFSET and SIZE to
43324 grub_off_t and grub_size_t, respectively.
43325
43326 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
43327 Removed.
43328 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
43329 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
43330 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
43331 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
43332 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
43333
43334 * include/grub/types.h (grub_off_t): Unconditionally set to
43335 grub_uint64_t.
43336 (grub_disk_addr_t): Changed to grub_uint64_t.
43337
43338 * include/grub/partition.h (struct grub_partition): Change the
43339 types of "start", "len" and "offset" to grub_disk_addr_t,
43340 grub_uint64_t and grub_disk_addr_t, respectively.
43341 (grub_partition_get_start): Return grub_disk_addr_t.
43342 (grub_partition_get_len): Return grub_uint64_t.
43343
43344 * include/grub/misc.h (grub_strtoull): New prototype.
43345 (grub_divmod64): Likewise.
43346
43347 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
43348 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
43349 grub_off_t, respectively.
43350 All callers and references changed.
43351
43352 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
43353 grub_size_t in "read".
43354 All callers and references changed.
43355
43356 * include/grub/file.h (struct grub_file): Change the types of
43357 "offset" and "size" to grub_off_t and grub_off_t,
43358 respectively. Change the type of SECTOR to grub_disk_addr_t in
43359 "read_hook".
43360 (grub_file_read): Change the type of LEN to grub_size_t.
43361 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
43362 grub_off_t.
43363 (grub_file_size): Return grub_off_t.
43364 (grub_file_tell): Likewise.
43365 All callers and references changed.
43366
43367 * include/grub/disk.h (struct grub_disk_dev): Change the types of
43368 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
43369 "write".
43370 (struct grub_disk): Change the type of "total_sectors" to
43371 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 43372 "read_hook".
524a1e6a 43373 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
43374 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
43375 (grub_disk_write): Likewise.
43376 All callers and references changed.
43377
43378 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
43379 char * for grub_strncmp to silence gcc.
43380 (grub_iso9660_mount): Likewise.
43381 (grub_iso9660_mount): Likewise.
43382 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
43383 return statement.
43384 (grub_iso9660_iterate_dir): Likewise.
43385 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
43386
43387 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
43388 LEN to grub_disk_addr_t and grub_size_t, respectively.
43389
43390 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43391
43392 * fs/jfs.c (grub_jfs_read_file): Likewise.
43393
43394 * fs/minix.c (grub_jfs_read_file): Likewise.
43395
43396 * fs/sfs.c (grub_jfs_read_file): Likewise.
43397
43398 * fs/ufs.c (grub_jfs_read_file): Likewise.
43399
43400 * fs/xfs.c (grub_jfs_read_file): Likewise.
43401
43402 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
43403 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
43404 respectively.
43405
43406 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
43407 BLKNR to -1 instead of returning GRUB_ERRNO.
43408 (grub_ext2_read_file): Change the types of SECTOR and
43409 LEN to grub_disk_addr_t and grub_size_t, respectively.
43410
43411 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
43412 LEN to grub_disk_addr_t and grub_size_t, respectively.
43413
43414 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
43415 grub_file_read.
43416
43417 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
43418 string. Do not cast SECTOR explicitly.
43419
43420 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
43421 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
43422 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
43423 grub_disk_addr_t and grub_size_t, respectively. If the sector is
43424 over 2TB and LBA mode is not supported, raise an error.
43425 (get_safe_sectors): New function.
43426 (grub_biosdisk_read): Use get_safe_sectors.
43427 (grub_biosdisk_write): Likewise.
43428
43429 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
43430 (grub_efidisk_write): Likewise.
43431
43432 * disk/loopback.c (delete_loopback): Cosmetic changes.
43433 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
43434 correctly.
43435 (grub_loopback_open): Likewise.
43436 (grub_loopback_read): Likewise. Also, change the type of POS to
43437 grub_off_t, and fix the usage of grub_memset.
43438
43439 * commands/i386/pc/play.c: Include grub/machine/time.h.
43440
43441 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
43442 print FILE->SIZE.
43443
43444 * commands/configfile.c: Include grub/env.h.
43445
43446 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
43447 GRUB_ERRNO directly instead. Change the type of POS to
43448 grub_off_t. Follow the coding standard.
43449
43450 * commands/blocklist.c: Include grub/partition.h.
43451 (grub_cmd_blocklist): Return an error if the underlying device is
43452 not a disk. Take the starting sector of a partition into account,
43453 if a partition is used.
43454
43455 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
43456 a length field.
43457 (lba_mode): Support 64-bit addresses.
43458 (chs_mode): Likewise.
43459 (copy_buffer): Adapted to the new offsets of a length field and a
43460 segment field.
43461 (blocklist_default_start): Allocate 64-bit space.
43462
43463 * boot/i386/pc/boot.S (force_lba): Removed.
43464 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 43465 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 43466 space.
43467 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
43468 is useless.
43469 (lba_mode): Refactored to support a 64-bit address. More size
43470 optimization.
43471 (setup_sectors): Likewise.
43472
53af98ad 434732006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43474
43475 * DISTLIST: Added include/grub/i386/linux.h. Removed
43476 include/grub/i386/pc/linux.h
43477
43478 * configure.ac (AC_INIT): Bumped to 1.94.
43479
43480 * config.guess: Updated from gnulib.
43481 * config.sub: Likewise.
43482 * install-sh: Likewise.
43483 * mkinstalldirs: Likewise.
43484
b4c1940a 434852006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43486
43487 * conf/common.rmk (grub_modules_init.lst): Depended on
43488 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
43489 MODSRCFILES.
43490
43491 * genmk.rb (PModule::rule): Reverted the previous change.
43492
cfca1cfd 434932006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43494
43495 * conf/common.rmk (grub_modules_init.lst): Depends on
43496 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
43497 that the target does not exist before producing.
43498 (grub_modules_init.h): Remove the target before generating.
43499 (grub_emu_init.c): Likewise.
43500
43501 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
43502
aa6d7826 435032006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
43504
43505 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
43506 for the target-specific tests. Make sure that we also have the
43507 up-to-date target variables for those tests.
43508
26c607b9 435092006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43510
43511 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
43512 (PModule::rule): Likewise.
43513
0162321a 435142006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43515
43516 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
43517 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
43518 target-specific flags should be prefixed.
43519 (PModule::rule): Likewise.
43520
6c826348 435212006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
43522
43523 * configure.ac (CMP): Check if cmp is available explicitly.
43524
b977bf01 435252006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
43526
43527 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
43528 (target_cpu): New variable.
43529 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 43530
b977bf01 43531 * util/i386/pc/grub-install.in (host_cpu): Removed.
43532 (target_cpu): New variable.
43533 (pkglibdir): Use target_cpu instead of host_cpu.
43534
43535 * util/genmoddep.c: Removed.
f19dbdb7 43536
b977bf01 43537 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
43538 instead of GRUB_HOST_SIZEOF_VOID_P.
43539 * kern/dl.c: Likewise.
43540
43541 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
43542 ...
43543 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43544 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43545 (GRUB_TARGET_SIZEOF_LONG): ... this.
43546 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43547 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43548 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43549 to ...
43550 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43551 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43552 (GRUB_TARGET_SIZEOF_LONG): ... this.
43553 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43554 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43555 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43556 to ...
43557 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43558 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43559 (GRUB_TARGET_SIZEOF_LONG): ... this.
43560 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43561 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43562
43563 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
43564 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
43565 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
43566 instead of GRUB_HOST_SIZEOF_LONG.
43567 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
43568 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
43569 GRUB_CPU_WORDS_BIGENDIAN.
43570 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
43571 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
43572 grub_host_ssize_t.
43573
43574 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
43575 (genmoddep_SOURCES): Likewise.
43576 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
43577 (genmoddep_SOURCES): Likewise.
43578 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
43579 (genmoddep_SOURCES): Likewise.
43580 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
43581 Likewise.
43582 (genmoddep_SOURCES): Likewise.
43583
43584 * genmoddep.awk: New file.
43585
43586 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
43587 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
43588 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
43589 (PModule::rule): Likewise.
43590 (Program::rule): Likewise.
43591 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
43592 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
43593 respectively.
43594
43595 * configure.ac: Rewritten intensively to use host and target
43596 instead of build and host, respectively.
43597
43598 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
43599 (host_cpu): Removed.
43600 (target_cpu): New variable.
43601 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
43602 (BUILD_CC): Removed.
43603 (BUILD_CFLAGS): Likewise.
43604 (BUILD_CPPFLAGS): Likewise.
43605 (TARGET_CC): New variable.
43606 (TARGET_CFLAGS): Likewise.
43607 (TARGET_CPPFLAGS): Likewise.
43608 (TARGET_LDFLAGS): Likewise.
43609 (AWK): Likewise.
43610 (include): Use target_cpu instead of host_cpu.
43611 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 43612
b977bf01 43613 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
43614
f09771a1 436152006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
43616
43617 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
43618 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
43619 field 'false' to 'exec_on_false'.
43620 (grub_script_create_cmdif): Renamed argument names to reflect above
43621 changes.
43622
43623 * normal/execute.c (grub_script_execute_cmdif): Likewise.
43624
43625 * normal/script.c (grub_script_create_cmdif): Likewise.
43626
118f4fb3 436272006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
43628
43629 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
43630 top.
43631 (grub_hfsplus_btree_recptr): Likewise.
43632 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
43633 FILEBLOCK both to pass a block number and store next block
43634 number.
43635 (grub_hfsplus_read_block): Rewritten heavily to support an extent
43636 overflow file correctly. Specify errors appropriately, because
43637 fshelp expects that GRUB_ERRNO is set when fails. Reuse
43638 grub_hfsplus_btree_recptr to get the pointer to a found key.
43639 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
43640 is found.
43641
43642 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
43643 linux.mod.
43644 (_linux_mod_SOURCES): New variable.
43645 (_linux_mod_CFLAGS): Likewise.
43646 (_linux_mod_LDFLAGS): Likewise.
43647 (linux_mod_SOURCES): Likewise.
43648 (linux_mod_CFLAGS): Likewise.
43649 (linux_mod_LDFLAGS): Likewise.
43650
43651 * DISTLIST: Added loader/i386/efi/linux.c,
43652 loader/i386/efi/linux_normal.c and
43653 include/grub/i386/efi/loader.h.
43654
43655 * loader/i386/efi/linux.c: New file.
43656 * loader/i386/efi/linux_normal.c: Likewise.
43657 * include/grub/i386/efi/loader.h: Likewise.
43658
89a7d726 436592006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
43660
43661 * commands/blocklist.c: New file.
43662
43663 * DISTLIST: Added commands/blocklist.c.
43664
43665 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 43666 color for the background, and a darker color for the foreground.
89a7d726 43667 (grub_console_checkkey): Return READ_KEY.
43668 (grub_console_cls): Set the background to
43669 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
43670
43671 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
43672
43673 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
43674 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
43675
43676 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
43677 prototype.
43678
43679 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
43680 BG. The spec is wrong again.
43681
43682 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
43683 prototype.
43684 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
43685
43686 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
43687 commands/blocklist.c.
43688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 43689
89a7d726 43690 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
43691 (blocklist_mod_SOURCES): New variable.
43692 (blocklist_mod_CFLAGS): Likewise.
43693 (blocklist_mod_LDFLAGS): Likewise.
43694
75c8f258 436952006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
43696
43697 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
43698 duplication.
43699 (lba_mode): Use %eax more intensively to reduce the code size.
43700
da2eb181 437012006-05-20 Marco Gerards <marco@gnu.org>
43702
43703 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
43704
43705 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
43706 for `menuentry'.
43707 (script): Accept leading newlines.
43708 (newlines): New rule to describe 0 or more newlines.
43709 (commands): Accept `command' with trailing newline. Fixed the
43710 order in which arguments were passed to `grub_script_add_cmd'.
43711 Accept commands separated by newlines.
43712 (function): Changed to accept newlines.
43713 (menuentry) Rewritten.
43714
43715 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
43716 front of the list, instead of to the end.
43717
577b4050 437182006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
43719
43720 * util/i386/pc/grub-install.in (bindir): New variable.
43721 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
43722 Shaver <lbgwjl@gmail.com>.
43723
0d6e1189 437242006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
43725
43726 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
43727 grub/machine/linux.h
43728 * loader/i386/pc/linux.c: Likewise.
43729
43730 * include/grub/i386/pc/linux.h: Moved to ...
43731 * include/grub/i386/linux.h: ... here.
43732
43733 * include/grub/i386/linux.h (struct linux_kernel_params): New
43734 struct.
f19dbdb7 43735
31b86e9f 437362006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
43737
43738 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
43739 checking.
43740 (grub_video_vbe_blit_glyph): Likewise.
43741 (grub_video_vbe_blit_bitmap): Likewise.
43742 (grub_video_vbe_blit_render_target): Likewise.
43743
83b984de 437442006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
43745
43746 * configure.ac (--with-platform): Properly quote the square
43747 brackets.
43748
5f0413bd 437492006-05-08 Marco Gerards <marco@gnu.org>
43750
43751 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
43752 this...
43753 (kernel_elf_HEADERS): ...to this. Updated all users.
43754 (grubof_symlist.c): Renamed from this...
43755 (kernel_elf_symlist.c): ...to this. Updated all users.
43756 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43757 (grubof_SOURCES): Renamed from this...
43758 (kernel_elf_SOURCES): ...to this.
43759 (grubof_HEADERS): Renamed from this...
43760 (kernel_elf_HEADERS): ...to this.
43761 (grubof_CFLAGS): Renamed from this...
43762 (kernel_elf_CFLAGS): ...to this.
43763 (grubof_ASFLAGS): Renamed from this...
43764 (kernel_elf_ASFLAGS): ...to this.
43765 (grubof_LDFLAGS): Renamed from this...
43766 (kernel_elf_LDFLAGS): ...to this.
43767
43768 * conf/sparc64-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 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
43786 `kernel.elf' instead of `grubof'.
43787
05568c2e 437882006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
43789
43790 Add --with-platform to configure. Use pkglibdir instead of
43791 pkgdatadir. This is reported by Roger Leigh.
43792
43793 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
43794 (host_vendor): Likewise.
43795 (host_os): Likewise.
43796 (pkgdatadir): Likewise.
43797 (platform): New variable.
43798 (pkglibdir): Likewise.
43799 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 43800
05568c2e 43801 * util/i386/pc/grub-install.in (datadir): Removed.
43802 (host_vendor): Likewise.
43803 (host_os): Likewise.
43804 (pkgdatadir): Likewise.
43805 (platform): New variable.
43806 (pkglibdir): Likewise.
43807 Use PKGLIBDIR instead of PKGDATADIR.
43808
43809 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43810 instead of GRUB_DATADIR.
43811 (main): Likewise.
43812 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43813 (main): Likewise.
43814 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43815 (main): Likewise.
43816
43817 * configure.ac (--with-platform): New option.
43818 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43819
43820 * Makefile.in: Include a makefile based on PLATFORM instead of
43821 HOST_VENDOR.
43822 (pkgdatadir): Not appended by the machine type.
43823 (pkglibdir): Appended by the machine type.
43824 (host_vendor): Removed.
43825 (platform): New variable.
43826 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43827 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43828 (uninstall): Likewise.
43829
4e93851c 438302006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43831
43832 Use the environment context in the menu. Remove the commands
43833 "default" and "timeout", and use variables instead.
f19dbdb7 43834
4e93851c 43835 * normal/menu.c: Include grub/env.h.
43836 (print_entry): Cast TITLE to silence gcc.
43837 (get_timeout): New function.
43838 (set_timeout): Likewise.
43839 (get_entry_number): Likewise.
43840 (run_menu): Use a default entry, a fallback entry and a timeout
43841 in the environment variables "default", "fallback" and
43842 "timeout". Also, tweak the default entry if it is not within the
43843 current menu entries.
43844 (grub_menu_run): Use a fallback entry in the environment variable
43845 "fallback".
43846
43847 * normal/main.c (read_config_file): Do not initialize
43848 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
43849 NEWMENU->TIMEOUT.
43850 (grub_normal_execute): Use a data slot to store the menu.
43851
43852 * include/grub/normal.h (struct grub_menu): Removed default_entry,
43853 fallback_entry and timeout.
43854 (struct grub_menu_list): Removed.
43855 (grub_menu_list_t): Likewise.
43856 (struct grub_context): Likewise.
43857 (grub_context_t): Likewise.
43858 (grub_context_get): Likewise.
43859 (grub_context_get_current_menu): Likewise.
43860 (grub_context_push_menu): Likewise.
43861 (grub_context_pop_menu): Likewise.
43862 (grub_default_init): Likewise.
43863 (grub_default_fini): Likewise.
43864 (grub_timeout_init): Likewise.
43865 (grub_timeout_fini): Likewise.
43866
43867 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43868 and timeout.mod.
43869 (normal_mod_SOURCES): Removed normal/context.c.
43870
43871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43872 commands/default.c, commands/timeout.c and normal/context.c.
43873 (normal_mod_SOURCES): Removed normal/context.c.
43874
43875 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43876 commands/timeout.c and normal/context.c.
43877 (normal_mod_SOURCES): Removed normal/context.c.
43878
43879 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43880 commands/default.c, commands/timeout.c and normal/context.c.
43881 (normal_mod_SOURCES): Removed normal/context.c.
43882
43883 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43884 timeout.mod.
43885 (default_mod_SOURCES): Removed.
43886 (default_mod_CFLAGS): Likewise.
43887 (default_mod_LDFLAGS): Likewise.
43888 (timeout_mod_SOURCES): Removed.
43889 (timeout_mod_CFLAGS): Likewise.
43890 (timeout_mod_LDFLAGS): Likewise.
43891
43892 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43893 normal/context.c.
43894
43895 * commands/default.c: Removed.
43896 * commands/timeout.c: Likewise.
43897 * normal/context.c: Likewise.
43898
1eb9cc1d 438992006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43900
43901 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43902
385bd9c1 439032006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43904
43905 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43906 "next" to "prev" for readability.
43907 (struct grub_env_sorted_var): New struct.
43908 (grub_env_context): Renamed to ...
43909 (initial_context): ... this.
43910 (grub_env_var_context): Renamed to ...
43911 (current_context): ... this.
43912 (grub_env_find): Look only at CURRENT_CONTEXT.
43913 (grub_env_context_open): Rewritten to copy exported variables from
43914 previous context.
43915 (grub_env_context_close): Rewritten according to the new
43916 scheme. Also, add an assertion to prevent the initial context from
43917 removed.
43918 (grub_env_insert): Removed the code for the sorted list.
43919 (grub_env_remove): Likewise.
43920 (grub_env_export): Simply mark the variable with
43921 GRUB_ENV_VAR_GLOBAL.
43922 (grub_env_set): A cosmetic change for naming consistency.
43923 (grub_env_get): Likewise.
43924 (grub_env_unset): Likewise.
43925 (grub_env_iterate): Rewritten to sort variables within this
43926 function.
43927 (grub_register_variable_hook): Fixed for naming consistency. Call
43928 grub_env_find again, only if NAME is not found at the first time.
43929 (mangle_data_slot_name): New function.
43930 (grub_env_set_data_slot): Likewise.
43931 (grub_env_get_data_slot): Likewise.
43932 (grub_env_unset_data_slot): Likewise.
43933
43934 * include/grub/env.h (grub_env_var_type): New enum.
43935 (GRUB_ENV_VAR_LOCAL): New constant.
43936 (GRUB_ENV_VAR_GLOBAL): Likewise.
43937 (GRUB_ENV_VAR_DATA): Likewise.
43938 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43939 "type".
43940 (grub_env_set): Replace VAR with NAME for consistency.
43941 (grub_register_variable_hook): Likewise.
43942 (grub_env_export): Specify the name of the argument.
43943 (grub_env_set_data_slot): New prototype.
43944 (grub_env_get_data_slot): Likewise.
43945 (grub_env_unset_data_slot): Likewise.
43946
7f362539 439472006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43948
43949 Extend the loader so that GRUB can accept a loader which comes
43950 back to GRUB when a loaded image exits. Also, this change adds
43951 support for a chainloader on EFI.
f19dbdb7 43952
7f362539 43953 * term/efi/console.c: Include grub/misc.h.
43954 (grub_console_checkkey): Display a scan code on the top for
43955 debugging. This will be removed once the EFI port gets stable.
43956 Correct the scan code mapping.
43957
43958 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43959 allocate memory from larger regions, in order to reduce the number
43960 of allocated regions. Otherwise, the MacOSX loader panics.
43961 (filter_memory_map): Avoid less than 1MB for compatibility with
43962 other loaders.
43963 (add_memory_regions): Allocate from the tail of a region, if
43964 possible, to avoid allocating a region near to 1MB, for the MacOSX
43965 loader.
43966
43967 * kern/efi/init.c (grub_efi_set_prefix): Specify
43968 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43969
43970 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43971 argument IMAGE_HANDLE and specify it to get a loaded image.
43972 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43973 grub_efi_get_loaded_image.
fe6b695a 43974 (grub_efi_get_filename): Divide the length by the size of
7f362539 43975 grub_efi_char16_t.
43976 (grub_efi_get_device_path): New function.
43977 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43978 the length by the size of grub_efi_char16_t for a file path device
43979 path node.
43980
43981 * kern/loader.c (grub_loader_noreturn): New variable.
43982 (grub_loader_set): Accept a new argument NORETURN. Set
43983 GRUB_LOADER_NORETURN to NORETURN.
43984 All callers changed.
43985 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
43986 grub_machine_fini.
43987
43988 * include/grub/efi/efi.h (grub_efi_get_device_path): New
43989 prototype.
43990 (grub_efi_get_loaded_image): Take an argument to specify an image
43991 handle.
43992
43993 * include/grub/loader.h (grub_loader_set): Added one more argument
43994 NORETURN.
43995
43996 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
43997 instead of grub_efi_open_protocol.
43998 (grub_efidisk_get_device_name): Likewise.
43999 (grub_efidisk_close): Print a newline.
44000 (grub_efidisk_get_device_handle): Fixed to use
44001 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44002 GRUB_EFI_DEVICE_PATH_TYPE.
44003
44004 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44005 * kern/efi/efi.c (device_path_guid): ... here.
44006
44007 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44008 chain.mod.
44009 (kernel_mod_HEADERS): Added efi/disk.h.
44010 (_chain_mod_SOURCES): New variable.
44011 (_chain_mod_CFLAGS): Likewise.
44012 (_chain_mod_LDFLAGS): Likewise.
44013 (chain_mod_SOURCES): Likewise.
44014 (chain_mod_CFLAGS): Likewise.
44015 (chain_mod_LDFLAGS): Likewise.
44016
44017 * DISTLIST: Added include/grub/efi/chainloader.h,
44018 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44019
44020 * include/grub/efi/chainloader.h: New file.
44021 * loader/efi/chainloader.c: Likewise.
44022 * loader/efi/chainloader_normal.c: Likewise.
44023
c0111d6e 440242006-04-30 Marco Gerards <marco@gnu.org>
44025
44026 * commands/configfile.c (grub_cmd_source): New function.
44027 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44028 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44029
df5341da 440302006-04-30 Marco Gerards <marco@gnu.org>
44031
44032 * normal/execute.c (grub_script_execute_cmd): Change the return
44033 type to `grub_err_t'. Correctly return the error.
44034 (grub_script_execute_cmdline): In case a command line is not a
44035 command or a function, try to interpret it as an assignment.
44036
f85934bd 440372006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44038
44039 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44040 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44041 skip a node whose name is obviously invalid as UTF-16,
44042 i.e. contains a NUL character. Stop the iteration when the last
44043 directory entry is found. Instead of using the return value of
44044 grub_hfsplus_btree_iterate_node, store the value in RET and use
44045 it, because the iterator can be stopped by the last directory
44046 entry.
44047
8f8a2cf8 440482006-04-30 Marco Gerards <marco@gnu.org>
44049
44050 * include/grub/env.h (grub_env_export): New prototype. Reported
44051 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44052
a27e84ce 440532006-04-30 Marco Gerards <marco@gnu.org>
44054
44055 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44056 size of the extents in a catalog file record.
44057
eaef0553 440582006-04-29 Marco Gerards <marco@gnu.org>
44059
44060 * commands/configfile.c (grub_cmd_configfile): Execute the
44061 configfile within its own context.
44062
44063 * include/grub/env.h (grub_env_context_open): New prototype.
44064 (grub_env_context_close): Likewise.
44065
44066 * kern/env.c (grub_env): Removed.
44067 (grub_env_sorted): Likewise.
44068 (grub_env_context): New variable.
44069 (grub_env_var_context): Likewise.
44070 (grub_env_find): Search both the active context and the global
44071 context.
44072 (grub_env_context_open): New function.
44073 (grub_env_context_close): Likewise.
44074 (grub_env_insert): Likewise.
44075 (grub_env_remove): Likewise.
44076 (grub_env_export): Likewise.
44077 (grub_env_set): Changed to use helper functions to avoid code
44078 duplication.
44079 (grub_env_iterate): Rewritten so both the current context and the
44080 global context are being used.
44081
44082 * normal/command.c (export_command): New function.
44083 (grub_command_init): Register the `export' function.
44084
7b455f4d 440852006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44086
44087 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44088 explicitly to suppress gcc's warnings.
44089 * fs/fat.c (grub_fat_find_dir): Likewise.
44090 (grub_fat_label): Likewise.
44091 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44092 (grub_xfs_mount): Likewise.
44093 (grub_xfs_label): Likewise.
44094 * fs/affs.c (grub_affs_mount): Likewise.
44095 (grub_affs_label): Likewise.
44096 (grub_affs_iterate_dir): Likewise.
44097 * fs/sfs.c (grub_sfs_mount): Likewise.
44098 (grub_sfs_iterate_dir): Likewise.
44099 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44100 * fs/hfs.c (grub_hfs_mount): Likewise.
44101 (grub_hfs_cmp_catkeys): Likewise.
44102 (grub_hfs_find_dir): Likewise.
44103 (grub_hfs_dir): Likewise.
44104 (grub_hfs_label): Likewise.
44105 * fs/jfs.c (grub_jfs_mount): Likewise.
44106 (grub_jfs_opendir): Likewise.
44107 (grub_jfs_getent): Likewise.
44108 (grub_jfs_lookup_symlink): Likewise.
44109 (grub_jfs_label): Likewise.
44110 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44111 (grub_hfsplus_iterate_dir): Likewise.
44112 (grub_hfsplus_btree_iterate_node): Made static.
44113
44114 * util/grub-emu.c (prefix): New variable.
44115 (grub_machine_set_prefix): New function.
44116 (main): Do not set the environment variable "prefix" here. Only
44117 set PREFIX, which is used later by grub_machine_set_prefix.
44118
44119 * include/grub/video.h: Do not include grub/symbol.h.
44120 (grub_video_register): Not exported. This symbol is not defined in
44121 the kernel.
44122 (grub_video_unregister): Likewise.
44123 (grub_video_iterate): Likewise.
44124 (grub_video_setup): Likewise.
44125 (grub_video_restore): Likewise.
44126 (grub_video_get_info): Likewise.
44127 (grub_video_get_blit_format): Likewise.
44128 (grub_video_set_palette): Likewise.
44129 (grub_video_get_palette): Likewise.
44130 (grub_video_set_viewport): Likewise.
44131 (grub_video_get_viewport): Likewise.
44132 (grub_video_map_color): Likewise.
44133 (grub_video_map_rgb): Likewise.
44134 (grub_video_map_rgba): Likewise.
44135 (grub_video_fill_rect): Likewise.
44136 (grub_video_blit_glyph): Likewise.
44137 (grub_video_blit_bitmap): Likewise.
44138 (grub_video_blit_render_target): Likewise.
44139 (grub_video_scroll): Likewise.
44140 (grub_video_swap_buffers): Likewise.
44141 (grub_video_create_render_target): Likewise.
44142 (grub_video_delete_render_target): Likewise.
44143 (grub_video_set_active_render_target): Likewise.
44144
44145 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44146 Undefined.
44147 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44148
44149 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44150 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44151 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44152 instead of $(srcdir)/genkernsyms.sh.
44153
44154 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44155 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44156 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44157 instead of $(srcdir)/genkernsyms.sh.
44158
44159 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44160 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44161 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44162 instead of $(srcdir)/genkernsyms.sh.
44163
44164 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44165 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44166 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44167 instead of $(srcdir)/genkernsyms.sh.
44168
44169 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44170 genkernsyms.sh.
44171
44172 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44173 genkernsyms.sh.
44174 (gensymlist.sh): New target.
44175 (genkernsyms.sh): Likewise.
44176
44177 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44178 genkernsyms.sh.in and gensymlist.sh.in.
44179
44180 * genkernsyms.sh: Removed.
44181 * gensymlist.sh: Likewise.
f19dbdb7 44182
7b455f4d 44183 * genkernsyms.sh.in: New file.
44184 * gensymlist.sh.in: Likewise.
44185
1885bb27 441862006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44187
44188 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44189 clobber "prefix", since we may have already set it manually.
44190
71538dff 441912006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44192
44193 * kern/misc.c (abort): New alias for grub_abort.
44194
2965c7cc 441952006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44196
44197 A new machine-specific function "grub_machine_set_prefix" is
44198 defined. This is called after loading modules, so that a prefix
44199 initialization can use modules. Also, this change adds an
44200 intensive debugging feature for the memory manager via the
44201 configure option "--enable-mm-debug".
f19dbdb7 44202
2965c7cc 44203 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44204 PART.LEN.
44205
44206 * kern/sparc64/ieee1275/init.c (abort): Removed.
44207 (grub_stop): Likewise.
44208 (grub_exit): New function.
44209 (grub_set_prefix): Renamed to ...
44210 (grub_machine_set_prefix): ... this.
44211 (grub_machine_init): Do not call grub_set_prefix.
44212
44213 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44214 (grub_machine_set_prefix): ... this.
44215 (grub_machine_init): Do not call grub_set_prefix.
44216
44217 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44218 (grub_machine_init): Do not set the prefix here.
44219
44220 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44221
44222 * kern/efi/init.c: Include grub/mm.h.
44223 (grub_efi_set_prefix): New function.
44224
44225 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44226 (grub_efi_get_filename): New function.
44227 (grub_print_device_path): Renamed to ...
44228 (grub_efi_print_device_path): ... this.
44229
44230 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44231 [MM_DEBUG] (grub_realloc): Likewise.
44232 [MM_DEBUG] (grub_free): Likewise.
44233 [MM_DEBUG] (grub_memalign): Likewise.
44234 [MM_DEBUG] (grub_mm_debug): New variable.
44235 [MM_DEBUG] (grub_debug_malloc): New function.
44236 [MM_DEBUG] (grub_debug_free): New function.
44237 [MM_DEBUG] (grub_debug_realloc): New function.
44238 [MM_DEBUG] (grub_debug_memalign): New function.
44239
44240 * kern/misc.c (grub_abort): Print a newline to distinguish
44241 the message.
44242
44243 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44244 grub_set_root_dev after loading modules. This is necessary when
44245 setting a prefix depends on modules.
44246
44247 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44248 (grub_efi_print_device_path): ... this.
44249 (grub_efi_get_filename): New prototype.
44250 (grub_efi_set_prefix): Likewise.
44251
44252 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44253 and grub/disk.h.
44254 (grub_efidisk_get_device_handle): New prototype.
44255 (grub_efidisk_get_device_name): Likewise.
44256
44257 * include/grub/mm.h: Include config.h.
44258 (MM_DEBUG): Removed.
44259 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44260 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44261 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44262 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44263 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44264 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44265 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44266 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44267 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44268
44269 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44270
44271 * disk/efi/efidisk.c: Include grub/partition.h.
44272 (iterate_child_devices): New function.
44273 (add_device): First, compare only last device path nodes, so that
44274 devices are sorted by the types.
44275 (grub_efidisk_get_device_handle): New function.
44276 (grub_efidisk_get_device_name): Likewise.
44277
44278 * configure.ac (--enable-mm-debug): New option to enable the
44279 memory manager debugging feature. This makes the binary much
44280 bigger, so is disabled by default.
44281
9cacaa17 442822006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44283
44284 Use grub_abort instead of grub_stop, and grub_exit must be
44285 define in each architecture now. Also, this change adds support
44286 for EFI disks.
f19dbdb7 44287
9cacaa17 44288 * util/i386/pc/grub-probefs.c: Include grub/term.h.
44289 (grub_getkey): New function.
44290 (grub_term_get_current): Likewise.
44291
44292 * util/i386/pc/grub-setup.c: Include grub/term.h.
44293 (grub_getkey): New function.
44294 (grub_term_get_current): Likewise.
44295
44296 * util/misc.c (grub_stop): Renamed to ...
44297 (grub_exit): ... this.
44298
44299 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
44300 (grub_exit): ... this.
44301 (grub_machine_init): Use grub_abort instead of abort.
44302 (grub_stop): Removed.
44303
44304 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
44305 abort.
44306
44307 * kern/i386/pc/startup.S (grub_exit): New function.
44308 (cold_reboot): New label.
44309
44310 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
44311 (grub_efi_init): Call grub_efidisk_init.
44312 (grub_efi_fini): Call grub_efidisk_fini.
44313
44314 * kern/efi/efi.c: Include grub/mm.h.
44315 (grub_efi_console_control_guid): Renamed to ...
44316 (console_control_guid): ... this.
44317 (grub_efi_loaded_image_guid): Renamed to ...
44318 (loaded_image_guid): ... this.
44319 (grub_efi_locate_handle): New function.
44320 (grub_efi_open_protocol): Likewise.
44321 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
44322 GRUB_EFI_CONSOLE_CONTROL_GUID.
44323 (grub_efi_exit): Removed.
44324 (grub_stop): Likewise.
44325 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
44326 (grub_exit): New function.
44327 (grub_print_device_path): Likewise.
44328
44329 * kern/rescue.c (grub_rescue_cmd_exit): New function.
44330 (grub_enter_rescue_mode): Register "exit".
44331
44332 * kern/misc.c (grub_real_dprintf): A cosmetic change.
44333 (grub_abort): New function.
44334
44335 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
44336
44337 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
44338
44339 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
44340
44341 * include/grub/efi/efi.h (grub_efi_exit): Removed.
44342 (grub_print_device_path): New prototype.
44343 (grub_efi_locate_handle): Likewise.
44344 (grub_efi_open_protocol): Likewise.
44345
44346 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
44347 * disk/efi/efidisk.c: Likewise.
44348
44349 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
44350
44351 * include/grub/efi/console_control.h
44352 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
44353
44354 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
44355 last 8 bytes as an array.
44356 (GRUB_EFI_DISK_IO_GUID): New macro.
44357 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
44358 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
44359 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
44360 grub_uint8_t.
44361 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
44362 (struct grub_efi_device_path): Rename the member "sub_type" to
44363 "subtype".
44364 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
44365 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
44366 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
44367 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
44368 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
44369 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
44370 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
44371 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
44372 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
44373 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
44374 (struct grub_efi_pci_device_path): New structure.
44375 (grub_efi_pci_device_path_t): New type.
44376 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
44377 (struct grub_efi_pccard_device_path): New structure.
44378 (grub_efi_pccard_device_path_t): New type.
44379 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
44380 (struct grub_efi_memory_mapped_device_path): New structure.
44381 (grub_efi_memory_mapped_device_path_t): New type.
44382 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
44383 (struct grub_efi_vendor_device_path): New structure.
44384 (grub_efi_vendor_device_path_t): New type.
44385 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
44386 (struct grub_efi_controller_device_path): New structure.
44387 (grub_efi_controller_device_path_t): New type.
44388 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
44389 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
44390 (struct grub_efi_acpi_device_path): New structure.
44391 (grub_efi_acpi_device_path_t): New type.
44392 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
44393 (struct grub_efi_expanded_acpi_device_path): New structure.
44394 (grub_efi_expanded_acpi_device_path_t): New type.
44395 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
44396 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
44397 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
44398 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
44399 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
44400 (struct grub_efi_atapi_device_path): New structure.
44401 (grub_efi_atapi_device_path_t): New type.
44402 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
44403 (struct grub_efi_fibre_channel_device_path): New structure.
44404 (grub_efi_fibre_channel_device_path_t): New type.
44405 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
44406 (struct grub_efi_1394_device_path): New structure.
44407 (grub_efi_1394_device_path_t): New type.
44408 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
44409 (struct grub_efi_usb_device_path): New structure.
44410 (grub_efi_usb_device_path_t): New type.
44411 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
44412 (struct grub_efi_usb_class_device_path): New structure.
44413 (grub_efi_usb_class_device_path_t): New type.
44414 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
44415 (struct grub_efi_i2o_device_path): New structure.
44416 (grub_efi_i2o_device_path_t): New type.
44417 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
44418 (struct grub_efi_mac_address_device_path): New structure.
44419 (grub_efi_mac_address_device_path_t): New type.
44420 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
44421 (struct grub_efi_ipv4_device_path): New structure.
44422 (grub_efi_ipv4_device_path_t): New type.
44423 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
44424 (struct grub_efi_ipv6_device_path): New structure.
44425 (grub_efi_ipv6_device_path_t): New type.
44426 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
44427 (struct grub_efi_infiniband_device_path): New structure.
44428 (grub_efi_infiniband_device_path_t): New type.
44429 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
44430 (struct grub_efi_uart_device_path): New structure.
44431 (grub_efi_uart_device_path_t): New type.
44432 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
44433 (struct grub_efi_vendor_messaging_device_path): New structure.
44434 (grub_efi_vendor_messaging_device_path_t): New type.
44435 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
44436 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
44437 (struct grub_efi_hard_drive_device_path): New structure.
44438 (grub_efi_hard_drive_device_path_t): New type.
44439 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
44440 (struct grub_efi_cdrom_device_path): New structure.
44441 (grub_efi_cdrom_device_path_t): New type.
44442 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
44443 (struct grub_efi_vendor_media_device_path): New structure.
44444 (grub_efi_vendor_media_device_path_t): New type.
44445 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
44446 (struct grub_efi_file_path_device_path): New structure.
44447 (grub_efi_file_path_device_path_t): New type.
44448 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
44449 (struct grub_efi_protocol_device_path): New structure.
44450 (grub_efi_protocol_device_path_t): New type.
44451 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
44452 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
44453 (struct grub_efi_bios_device_path): New structure.
44454 (grub_efi_bios_device_path_t): New type.
44455 (struct grub_efi_disk_io): New structure.
44456 (grub_efi_disk_io_t): New type.
44457 (struct grub_efi_block_io_media): New structure.
44458 (grub_efi_block_io_media_t): New type.
44459 (struct grub_efi_block_io): New structure.
44460 (grub_efi_block_io_t): New type.
44461
44462 * include/grub/misc.h (grub_stop): Removed.
44463 (grub_exit): New prototype.
44464 (grub_abort): Likewise.
44465
44466 * include/grub/disk.h (enum grub_disk_dev_id): Added
44467 GRUB_DISK_DEVICE_EFIDISK_ID.
44468
44469 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
44470 disk/efi/efidisk.c.
44471 (kernel_syms.lst): Remove the target if an error occurs.
44472
49986a9f 444732006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
44474
44475 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
44476 as it was simply too buggy.
44477
970d3b8a 444782006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
44479
44480 * kern/misc.c (grub_lltoa): New function.
44481 (grub_vsprintf): Added support for the long long suffix,
44482 i.e. "ll".
44483
ff04ec24 444842006-04-20 Hollis Blanchard <hollis@penguinppc.org>
44485
44486 * Makefile.in (LDFLAGS): Add variable.
44487 (LD): Remove variable.
44488 * configure.ac: Add -m32 to LDFLAGS.
44489 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
44490 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
44491 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
44492 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
44493 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
44494 variables.
44495 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
44496 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
44497 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
44498
37e5e1a4 444992006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
44500
44501 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
44502 length for unknown glyph.
44503
c352d8dd 445042006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
44505
2eab1c0d 44506 Add support for pre-loaded modules into the EFI port.
f19dbdb7 44507
2eab1c0d 44508 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
44509 completely. Accept one more argument DIR. The caller has changed.
44510
44511 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
44512
44513 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
44514 (grub_efi_loaded_image_guid): New variable.
44515 (grub_efi_get_loaded_image): New function.
44516 (grub_arch_modules_addr): Likewise.
44517
44518 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
44519 prototype.
44520
44521 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
44522 (struct grub_efi_loaded_image): New structure.
44523 (grub_efi_loaded_image_t): New type.
44524
445252006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44526
c352d8dd 44527 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
44528 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
44529 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
44530
6d01d6b4 445312006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
44532
44533 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
44534
976a4ea0 445352006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
44536
44537 * DISTLIST: Added include/grub/efi/console.h,
44538 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
44539 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44540
44541 * include/grub/efi/console.h: New file.
44542 * include/grub/efi/time.h: Likewise.
44543 * include/grub/i386/efi/kernel.h: Likewise.
44544 * kern/efi/init.c: Likewise.
44545 * kern/efi/mm.c: Likewise.
44546 * term/efi/console.c: Likewise.
f19dbdb7 44547
976a4ea0 44548 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
44549 (grub_stop): Removed.
44550 (grub_get_rtc): Likewise.
44551 (grub_machine_init): Simply call grub_efi_init.
44552 (grub_machine_fini): Call grub_efi_fini.
44553
44554 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
44555 (grub_efi_output_string): Removed.
44556 (grub_efi_stall): New function.
44557 (grub_stop): Likewise.
44558 (grub_get_rtc): Likewise.
44559
44560 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
44561 (grub_efi_stall): New prototype.
44562 (grub_efi_allocate_pages): Likewise.
44563 (grub_efi_free_pages): Likewise.
44564 (grub_efi_get_memory_map): Likewise.
44565 (grub_efi_mm_init): Likewise.
44566 (grub_efi_mm_fini): Likewise.
44567 (grub_efi_init): Likewise.
44568 (grub_efi_fini): Likewise.
44569
44570 * include/grub/i386/efi/time.h: Do not include
44571 grub/symbol.h. Include grub/efi/time.h.
44572 (GRUB_TICKS_PER_SECOND): Removed.
44573 (grub_get_rtc): Likewise.
44574
44575 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
44576 Added padding. The EFI spec is buggy.
44577 (GRUB_EFI_BLACK): New macro.
44578 (GRUB_EFI_BLUE): Likewise.
44579 (GRUB_EFI_GREEN): Likewise.
44580 (GRUB_EFI_CYAN): Likewise.
44581 (GRUB_EFI_RED): Likewise.
44582 (GRUB_EFI_MAGENTA): Likewise.
44583 (GRUB_EFI_BROWN): Likewise.
44584 (GRUB_EFI_LIGHTGRAY): Likewise.
44585 (GRUB_EFI_BRIGHT): Likewise.
44586 (GRUB_EFI_DARKGRAY): Likewise.
44587 (GRUB_EFI_LIGHTBLUE): Likewise.
44588 (GRUB_EFI_LIGHTGREEN): Likewise.
44589 (GRUB_EFI_LIGHTCYAN): Likewise.
44590 (GRUB_EFI_LIGHTRED): Likewise.
44591 (GRUB_EFI_LIGHTMAGENTA): Likewise.
44592 (GRUB_EFI_YELLOW): Likewise.
44593 (GRUB_EFI_WHITE): Likewise.
44594 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
44595 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
44596 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
44597 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
44598 (GRUB_EFI_BACKGROUND_RED): Likewise.
44599 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
44600 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
44601 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
44602 (GRUB_EFI_TEXT_ATTR): Likewise.
44603
44604 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
44605 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44606 (kernel_mod_HEADERS): Added efi/time.h.
44607
83709125 446082006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
44609
44610 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
44611 include/grub/efi/api.h, include/grub/efi/console_control.h,
44612 include/grub/efi/efi.h, include/grub/efi/pe32.h,
44613 include/grub/i386/efi/time.h, kern/efi/efi.c,
44614 kern/i386/efi/init.c, kern/i386/efi/startup.S,
44615 and util/i386/efi/grub-mkimage.c.
44616
44617 * Makefile.in (RMKFILES): Added i386-efi.rmk.
44618
44619 * genmk.rb (PModule#rule): Do not export symbols if
44620 #{prefix}_EXPORTS is set to "no".
44621
44622 * conf/i386-efi.mk: New file.
44623 * conf/i386-efi.rmk: Likewise.
44624 * include/grub/efi/api.h: Likewise.
44625 * include/grub/efi/console_control.h: Likewise.
44626 * include/grub/efi/efi.h: Likewise.
44627 * include/grub/efi/pe32.h: Likewise.
44628 * include/grub/i386/efi/time.h: Likewise.
44629 * kern/efi/efi.c: Likewise.
44630 * kern/i386/efi/init.c: Likewise.
44631 * kern/i386/efi/startup.S: Likewise.
44632 * util/i386/efi/grub-mkimage.c: Likewise.
44633
446342006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 44635
44636 * include/grub/script.h: Include <grub/parser.h> and
44637 "grub_script.tab.h".
44638 (struct grub_lexer_param): New struct.
44639 (struct grub_parser_param): Likewise.
44640 (grub_script_create_arglist): Pass the state in an argument.
44641 (grub_script_add_arglist): Likewise.
44642 (grub_script_create_cmdline): Likewise.
44643 (grub_script_create_cmdblock): Likewise.
44644 (grub_script_create_cmdif): Likewise.
44645 (grub_script_create_cmdmenu): Likewise.
44646 (grub_script_add_cmd): Likewise.
44647 (grub_script_arg_add): Likewise.
44648 (grub_script_lexer_ref): Likewise.
44649 (grub_script_lexer_deref): Likewise.
44650 (grub_script_lexer_record_start): Likewise.
44651 (grub_script_lexer_record_stop): Likewise.
44652 (grub_script_mem_record): Likewise.
44653 (grub_script_mem_record_stop): Likewise.
44654 (grub_script_malloc): Likewise.
44655 (grub_script_yylex): Likewise.
44656 (grub_script_yyparse): Likewise.
44657 (grub_script_yyerror): Likewise.
44658 (grub_script_yylex): Likewise.
44659 (grub_script_lexer_init): Return the state.
44660
44661 * normal/lexer.c (grub_script_lexer_state): Removed variable.
44662 (grub_script_lexer_done): Likewise.
44663 (grub_script_lexer_getline): Likewise.
44664 (grub_script_lexer_refs): Likewise.
44665 (script): Likewise.
44666 (newscript): Likewise.
44667 (record): Likewise.
44668 (recording): Likewise.
44669 (recordpos): Likewise.
44670 (recordlen): Likewise.
44671 (grub_script_lexer_init): Return the state instead of setting
44672 global variables.
44673 (grub_script_lexer_ref): Use the newly added argument for state
44674 instead of globals.
44675 (grub_script_lexer_deref): Likewise.
44676 (grub_script_lexer_record_start): Likewise.
44677 (grub_script_lexer_record_stop): Likewise.
44678 (recordchar): Likewise.
44679 (nextchar): Likewise.
44680 (grub_script_yylex2): Likewise.
44681 (grub_script_yylex): Likewise.
44682 (grub_script_yyerror): Likewise.
44683
44684 * normal/parser.y (func_mem): Removed variable.
44685 (menu_entry): Likewise.
44686 (err): Likewise.
44687 (%lex-param): New parser option.
44688 (%parse-param): Likewise.
44689 (script): Always return the AST.
44690 (argument): Pass the state around.
44691 (arguments): Likewise.
44692 (grubcmd): Likewise.
44693 (commands): Likewise.
44694 (function): Likewise.
44695 (menuentry): Likewise.
44696 (if_statement): Likewise.
44697 (if): Likewise.
44698
44699 * normal/script.c (grub_script_memused): Removed variable.
44700 (grub_script_parsed): Likewise.
44701 (grub_script_malloc): Added a state argument. Use that instead of
44702 global variables.
44703 (grub_script_mem_record): Likewise.
44704 (grub_script_mem_record_stop): Likewise.
44705 (grub_script_arg_add): Likewise.
44706 (grub_script_add_arglist): Likewise.
44707 (grub_script_create_cmdline): Likewise.
44708 (grub_script_create_cmdif): Likewise.
44709 (grub_script_create_cmdmenu): Likewise.
44710 (grub_script_add_cmd): Likewise.
44711 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 44712
e2a8c904 447132006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 44714
44715 * normal/command.c (grub_command_init): Remove the title command.
44716
44717 * normal/lexer.c (grub_script_yylex): Renamed from this...
44718 (grub_script_yylex2): ... to this.
44719 (grub_script_yylex): New function. Temporary
44720 introduced to filter some tokens.
44721 (grub_script_yyerror): Print a newline.
44722
44723 * normal/main.c (read_config_file): Output information about the
44724 lines that contain errors. Wait for a key after all lines have
44725 been processed. Don't return an empty menu.
44726
44727 * normal/parser.y (func_mem): Don't initialize.
44728 (menu_entry): Likewise.
44729 (err): New variable.
44730 (script): Don't return anything when an error was encountered.
44731 (ws, returns): Removed rules.
44732 (argument): Disabled concatenated variable support.
44733 (arguments): Remove explicit separators.
44734 (grubcmd): Likewise.
44735 (function): Likewise.
44736 (menuentry): Likewise.
44737 (if): Likewise.
44738 (commands): Likewise. Add error handling.
44739
44740 * normal/script.c (grub_script_create_cmdline): If
44741 `grub_script_parsed' is 0, assume the parser encountered an error.
44742
c9a86192 447432006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
44744
44745 * configure.ac: Add support for EFI. Fix the typo
44746 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
44747
70f3b243 447482006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44749
44750 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
44751 foreign multibyte characters should be shown correctly.
44752
65f201ad 447532006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44754
44755 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
44756 calculation.
44757 (read_config_file): Made it to close file before returning.
44758
b4b93674 447592006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
44760
44761 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
44762 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
44763 video/i386/pc/vbefill.c.
44764
44765 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
44766 video/i386/pc/vbefill.c.
44767
44768 * include/grub/video.h (grub_video_blit_format): New enum.
44769 (grub_video_mode_info): Added new member blit_format.
44770 (grub_video_get_blit_format): New function prototype.
44771
44772 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
44773 function prototype.
44774 (grub_video_vbe_map_rgb): Likewise.
44775 (grub_video_vbe_unmap_color): Likewise.
44776
44777 * include/grub/i386/pc/vbeblit.h: New file.
44778
44779 * include/grub/i386/pc/vbefill.h: New file.
44780
44781 * video/video.c (grub_video_get_blit_format): New function.
44782 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
44783 (grub_video_vbe_map_rgb): Likewise.
44784 (grub_video_vbe_unmap_color): Likewise.
44785
44786 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
44787 optimized fills.
44788 (grub_video_vbe_blit_render_target): Changed to use more optimized
44789 blits.
44790 (grub_video_vbe_setup): Added detection for optimized settings.
44791 (grub_video_vbe_create_render_target): Likewise.
44792
44793 * video/i386/pc/vbeblit.c: New file.
44794
44795 * video/i386/pc/vbefill.c: New file.
44796
c2379b9c 447972006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
44798
44799 * font/manager.c (grub_font_get_glyph): Removed font fixup from
44800 here...
44801
44802 * util/unifont2pff.rb: ... and moved it to here. Improved argument
44803 parsing to support both hex and dec ranges. If filename was missing
44804 show usage information.
44805
bd0d7896 448062006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
44807
44808 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44809 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44810
44811 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44812 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44813 (video_mod_SOURCES): Added.
44814 (video_mod_CFLAGS): Likewise.
44815 (video_mod_LDFLAGS): Likewise.
44816 (gfxterm_mod_SOURCES): Likewise.
44817 (gfxterm_mod_CFLAGS): Likewise.
44818 (gfxterm_mod_LDFLAGS): Likewise.
44819 (videotest_mod_SOURCES): Likewise.
44820 (videotest_mod_CFLAGS): Likewise.
44821 (videotest_mod_LDFLAGS): Likewise.
44822 (vesafb_mod_SOURCES): Removed.
44823 (vesafb_mod_CFLAGS): Likewise.
44824 (vesafb_mod_LDFLAGS): Likewise.
44825 (vga_mod_SOURCES): Likewise.
44826 (vga_mod_CFLAGS): Likewise.
44827 (vga_mod_LDFLAGS): Likewise.
44828
44829 * commands/videotest.c: New file.
44830
44831 * font/manager.c (fill_with_default_glyph): Modified to use
44832 grub_font_glyph.
44833 (grub_font_get_glyph): Likewise.
44834 (fontmanager): Renamed from this...
44835 (font_manager): ... to this.
44836
44837 * include/grub/font.h (grub_font_glyph): Added new structure.
44838 (grub_font_get_glyph): Modified to use grub_font_glyph.
44839
44840 * include/grub/misc.h (grub_abs): Added as inline function.
44841
44842 * include/grub/video.h: New file.
44843
44844 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44845 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
44846 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
44847 (grub_vbe_get_controller_info): Renamed from this...
44848 (grub_vbe_bios_get_controller_info): ... to this.
44849 (grub_vbe_get_mode_info): Renamed from this...
44850 (grub_vbe_bios_get_mode_info): ... to this.
44851 (grub_vbe_set_mode): Renamed from this...
44852 (grub_vbe_bios_set_mode): ... to this.
44853 (grub_vbe_get_mode): Renamed from this...
44854 (grub_vbe_bios_get_mode): ... to this.
44855 (grub_vbe_set_memory_window): Renamed from this...
44856 (grub_vbe_bios_set_memory_window): ... to this.
44857 (grub_vbe_get_memory_window): Renamed from this...
44858 (grub_vbe_bios_get_memory_window): ... to this.
44859 (grub_vbe_set_scanline_length): Renamed from this...
44860 (grub_vbe_set_scanline_length): ... to this.
44861 (grub_vbe_get_scanline_length): Renamed from this...
44862 (grub_vbe_bios_get_scanline_length): ... to this.
44863 (grub_vbe_set_display_start): Renamed from this...
44864 (grub_vbe_bios_set_display_start): ... to this.
44865 (grub_vbe_get_display_start): Renamed from this...
44866 (grub_vbe_bios_get_display_start): ... to this.
44867 (grub_vbe_set_palette_data): Renamed from this...
44868 (grub_vbe_bios_set_palette_data): ... to this.
44869 (grub_vbe_set_pixel_rgb): Removed.
44870 (grub_vbe_set_pixel_index): Likewise.
44871
44872 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44873 from this...
44874 (grub_vbe_bios_get_controller_info): ... to this.
44875 (grub_vbe_get_mode_info): Renamed from this...
44876 (grub_vbe_bios_get_mode_info): ... to this.
44877 (grub_vbe_set_mode): Renamed from this...
44878 (grub_vbe_bios_set_mode): ... to this.
44879 (grub_vbe_get_mode): Renamed from this...
44880 (grub_vbe_bios_get_mode): ... to this.
44881 (grub_vbe_set_memory_window): Renamed from this...
44882 (grub_vbe_bios_set_memory_window): ... to this.
44883 (grub_vbe_get_memory_window): Renamed from this...
44884 (grub_vbe_bios_get_memory_window): ... to this.
44885 (grub_vbe_set_scanline_length): Renamed from this...
44886 (grub_vbe_set_scanline_length): ... to this.
44887 (grub_vbe_get_scanline_length): Renamed from this...
44888 (grub_vbe_bios_get_scanline_length): ... to this.
44889 (grub_vbe_set_display_start): Renamed from this...
44890 (grub_vbe_bios_set_display_start): ... to this.
44891 (grub_vbe_get_display_start): Renamed from this...
44892 (grub_vbe_bios_get_display_start): ... to this.
44893 (grub_vbe_set_palette_data): Renamed from this...
44894 (grub_vbe_bios_set_palette_data): ... to this.
44895 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44896 getting corrupted after calling it. Added more pushes and pops.
44897 (grub_vbe_bios_set_mode): Likewise.
44898 (grub_vbe_bios_get_mode): Likewise.
44899 (grub_vbe_bios_get_memory_window): Likewise.
44900 (grub_vbe_bios_set_scanline_length): Likewise.
44901 (grub_vbe_bios_get_scanline_length): Likewise.
44902 (grub_vbe_bios_get_display_start): Likewise.
44903 (grub_vbe_bios_set_palette_data): Likewise.
44904
44905 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44906 (cl_insert): Likewise.
44907 (cl_delete): Likewise.
44908
44909 * term/gfxterm.c: New file.
44910
44911 * term/i386/pc/vesafb.c: Removed file.
44912
44913 * video/video.c: New file.
44914
44915 * video/i386/pc/vbe.c (real2pm): Added new function.
44916 (grub_video_vbe_draw_pixel): Likewise.
44917 (grub_video_vbe_get_video_ptr): Likewise.
44918 (grub_video_vbe_get_pixel): Likewise
44919 (grub_video_vbe_init): Likewise.
44920 (grub_video_vbe_fini): Likewise.
44921 (grub_video_vbe_setup): Likewise.
44922 (grub_video_vbe_get_info): Likewise.
44923 (grub_video_vbe_set_palette): Likewise.
44924 (grub_video_vbe_get_palette): Likewise.
44925 (grub_video_vbe_set_viewport): Likewise.
44926 (grub_video_vbe_get_viewport): Likewise.
44927 (grub_video_vbe_map_color): Likewise.
44928 (grub_video_vbe_map_rgb): Likewise.
44929 (grub_video_vbe_map_rgba): Likewise.
44930 (grub_video_vbe_unmap_color): Likewise.
44931 (grub_video_vbe_fill_rect): Likewise.
44932 (grub_video_vbe_blit_glyph): Likewise.
44933 (grub_video_vbe_blit_bitmap): Likewise.
44934 (grub_video_vbe_blit_render_target): Likewise.
44935 (grub_video_vbe_scroll): Likewise.
44936 (grub_video_vbe_swap_buffers): Likewise.
44937 (grub_video_vbe_create_render_target): Likewise.
44938 (grub_video_vbe_delete_render_target): Likewise.
44939 (grub_video_vbe_set_active_render_target): Likewise.
44940 (grub_vbe_set_pixel_rgb): Remove function.
44941 (grub_vbe_set_pixel_index): Likewise.
44942 (index_color_mode): Remove static variable.
44943 (active_mode): Likewise.
44944 (framebuffer): Likewise.
44945 (bytes_per_scan_line): Likewise.
44946 (grub_video_vbe_adapter): Added new static variable.
44947 (framebuffer): Likewise.
44948 (render_target): Likewise.
44949 (initial_mode): Likewise.
44950 (mode_in_use): Likewise.
44951 (mode_list): Likewise.
44952
5f97350b 449532006-03-10 Marco Gerards <marco@gnu.org>
44954
44955 * configure.ac (AC_INIT): Bumped to 1.93.
44956
44957 * DISTLIST: Added `include/grub/hfs.h'.
44958
a3c5c6f8 449592006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44960
44961 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44962 18H, which might help the BIOS falling back to next boot media.
44963
6de53d26 449642006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44965
44966 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44967 Poe Chen <poe.poechen@gmail.com>.
44968
77c4a393 449692006-01-17 Marco Gerards <marco@gnu.org>
44970
44971 * include/grub/normal.h: Include <grub/script.h>.
44972 (grub_command_list): Removed struct.
44973 (grub_command_list_t): Removed type.
44974 (grub_menu_entry): Remove members `num' and `command_list'. Add
44975 members `commands' and `sourcecode'.
44976 * include/grub/script.h: Add inclusion guards.
44977 (grub_script_cmd_menuentry): New struct.
44978 (grub_script_execute_menuentry): New prototype.
44979 (grub_script_lexer_record_start): Likewise.
44980 (grub_script_lexer_record_stop): Likewise.
44981 * normal/execute.c (grub_script_execute_menuentry): New function.
44982 * normal/lexer.c (record, recording, recordpos, recordlen): New
44983 variables.
44984 (grub_script_lexer_record_start): New function.
44985 (grub_script_lexer_record_stop): Likewise.
44986 (recordchar): Likewise.
44987 (nextchar): Likewise.
44988 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
44989 2048 as the buffer size. Add the tokens `menuentry' and `@'.
44990 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
44991 (current_menu): New variable.
44992 (free_menu): Mainly rewritten.
44993 (grub_normal_menu_addentry): New function.
44994 (read_config_file): Rewritten.
44995 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 44996 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 44997 the menu entry.
44998 (run): Mainly rewritten.
44999 * normal/parser.y (menu_entry): New variable.
45000 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45001 (menuentry): New rule.
45002 (command): Add `menuentry'.
45003 (if_statement): Allow additional returns before `fi'.
45004 * normal/script.c (grub_script_create_cmdmenu): New function.
45005
144f1f98 450062006-01-03 Marco Gerards <marco@gnu.org>
45007
45008 * INSTALL: GNU Bison is required.
45009 * configure.ac: Rewritten the test to detect Bison.
45010 * Makefile.in (YACC): New variable. Reported by Xun Sun
45011 <xun.sun.cn@gmail.com>.
45012
af4b2d89 450132006-01-03 Marco Gerards <marco@gnu.org>
45014
45015 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45016 the HFS+ filesystem to filesystem blocks.
45017 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45018 GCC warning is silenced.
45019
15643b71 450202006-01-03 Marco Gerards <marco@gnu.org>
45021
45022 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45023 read from disk from big endian to host byte order.
45024
00905879 450252006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45026
45027 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45028 documentation.
45029 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45030 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45031 embedded HFS+ filesystem.
45032 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45033 (grub_hfs_sblock): Move from here...
45034 * include/grub/hfs.h: To here... New file.
45035 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45036 documentation.
45037 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45038 New macros.
45039 (grub_hfsplus_volheader): Change type of member `magic' to
45040 `grub_uint16_t'.
45041 (grub_hfsplus_data): Add new member `embedded_offset'.
45042 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45043 returned block.
45044 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45045 Calculate the offset.
45046
8899bc3e 450472005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45048
45049 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45050 Removed.
45051 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45052
ae8c0277 450532005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45054
45055 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45056 ENV->NAME is NULL after allocating ENV->VALUE.
45057
07084456 450582005-12-25 Marco Gerards <marco@gnu.org>
45059
45060 * kern/env.c (grub_env_set): Rewritten the error handling code.
45061
4750f5f1 450622005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45063
45064 * geninit.sh: Made more robust, and more portable.
45065
50214199 450662005-12-25 Marco Gerards <marco@gnu.org>
45067
45068 Add support for Apple HFS+ filesystems.
f19dbdb7 45069
50214199 45070 * fs/hfsplus.c: New file.
45071
45072 * DISTLIST: Added `fs/hfsplus.c'.
45073
45074 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45075 (hfsplus_mod_SOURCES): New variable.
45076 (hfsplus_mod_CFLAGS): Likewise.
45077 (hfsplus_mod_LDFLAGS): Likewise.
45078 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45079 (grub_setup_SOURCES): Likewise.
45080 (grub_mkdevicemap_SOURCES): Likewise.
45081 (grub_emu_SOURCES): Likewise.
45082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45083
45084 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45085
45086 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45087
befaed6c 450882005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45089
45090 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45091 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45092 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45093 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45094 normal/lexer.c, normal/parser.y, normal/script.c, and
45095 partmap/gpt.c.
45096 Removed kern/sparc64/cache.c.
45097
45098 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45099 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45100 grub_emu_init.c.
45101
45102 * configure.ac (AC_INIT): Bumped to 1.92.
45103
6a124103 451042005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45105
45106 * kern/err.c (grub_error_push): Added new function to support error
45107 stacks.
45108 (grub_error_pop): Likewise.
45109 (grub_error_stack_items): New local variable to support error stacks.
45110 (grub_error_stack_pos): Likewise.
45111 (grub_error_stack_assert): Likewise.
45112 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45113 stack depth.
45114 (grub_print_error): Added support to print errors from error stack.
45115
45116 * include/grub/err.h (grub_error_push): Added function prototype.
45117 (grub_error_pop): Likewise.
45118
be973c1b 451192005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45120
45121 * configure.ac: Accept `powerpc64' as host_cpu.
45122 (amd64): Rename to `biarch32'.
45123
45124 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45125 non-cacheline-aligned addresses.
45126
45127 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45128 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45129 if `size' is non-zero.
45130
b04216ab 451312005-12-03 Marco Gerards <mgerards@xs4all.nl>
45132
45133 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45134 and `cd' to make sure the filename is not prefixed with a
45135 directory name.
45136 (pkgdata_MODULES): Add `gpt.mod'.
45137 (gpt_mod_SOURCES): New variable.
45138 (gpt_mod_CFLAGS): Likewise.
45139 (gpt_mod_LDFLAGS): Likewise.
45140
45141 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45142
45143 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45144 New macro.
45145
45146 * partmap/gpt.c: New file.
45147
45148 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45149 GPT partition map is detected.
45150
41730ed9 451512005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45152
45153 * commands/i386/pc/play.c: New file.
45154 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45155 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45156 macros.
f19dbdb7 45157
95dc3643 451582005-11-27 Marco Gerards <mgerards@xs4all.nl>
45159
45160 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45161 ((unused))' to silence gcc warning.
45162
1569ec51 451632005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45164
45165 * configure.ac: Correct `AC_PROG_YACC' test.
45166
9abde152 451672005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45168
45169 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45170 check before installing files.
45171
44b83271 451722005-11-22 Mike Small <smallm@panix.com>
45173
45174 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45175 number regex so multidigit numbers are recognized correctly.
45176
451772005-11-22 Mike Small <smallm@panix.com>
45178
45179 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45180 debugging message before attempting to claim memory.
45181 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45182 multiple addresses in case of failure.
45183
9c12956b 451842005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45185
45186 * term/tparm.c (get_space): Remove empty `if' statement.
45187
45188 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45189
45190 * kern/parser.c (check_varstate): Rename `state' to 's'.
45191
aeaf81d9 451922005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45193
45194 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45195 variable definitions to the beginning of each function. Sort stack
45196 variables by size.
45197 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45198 `buf' argument to `char *'.
45199
79bbb63f 452002005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45201
45202 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45203 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45204 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 45205 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45206 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45207 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45208 configfile.mod, search.mod, gzio.mod and test.mod.
45209 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45210 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45211 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45212 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45213 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45214 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45215 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45216 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45217 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45218 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45219 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45220 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45221 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45222 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45223 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45224 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45225 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45226 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45227 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45228 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45229 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45230 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45231 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45232
45233 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45234 `grep --include'.
45235 (pkgdata_MODULES): Add test.mod.
45236
233b1628 452372005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45238
45239 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45240 appending to variables with "+=".
45241 (PModule): Use full pathname to generate *.lst filenames.
45242
45243 * Makefile.in: Fixed list rules moved from genmk.rb.
45244 (.DELETE_ON_ERROR): New special target.
45245 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45246
45247 * conf/i386-pc.rmk: Include conf/common.mk.
45248 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45249 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 45250 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45251 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45252 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45253 configfile.mod, search.mod, gzio.mod and test.mod.
45254 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45255 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45256 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45257 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45258 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45259 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45260 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45261 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45262 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45263 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45264 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45265 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45266 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45267 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45268 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45269 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45270 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45271 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45272 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45273 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45274 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45275 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45276 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45277 here...
45278 * conf/common.rmk: ... to here. New file.
45279
45280 * conf/common.mk: New file.
45281
16f820c8 452822005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45283
45284 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45285 (grub_script.tab.c): ... here.
45286
45287 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
45288 (grub_script.tab.c): ... here.
45289
45290 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
45291 (grub_script.tab.c): ... here.
45292
45293 * normal/command.c (grub_command_find): Fixed a memory leak of
45294 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
45295
63ba1554 452962005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45297
45298 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
45299 "@" which marks the start of a comment on ARM.
45300 (VARIABLE): Likewise.
45301
7f67dc13 453022005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45303
79bbb63f 45304 Add support for Linux/ADFS partition tables.
7f67dc13 45305
45306 * partmap/acorn.c: New file.
45307
45308 * include/grub/acorn_filecore.h: Likewise.
45309
45310 * DISTLIST: Added `partmap/acorn.c' and
45311 `include/grub/acorn_filecore.h'.
f19dbdb7 45312
7f67dc13 45313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45314 `partmap/acorn.c'.
45315 (pkgdata_MODULES): Add `acorn.mod'.
45316 (acorn_mod_SOURCES): New variable.
45317 (acorn_mod_CFLAGS): Likewise.
45318
45319 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45320 `partmap/acorn.c'.
45321 (pkgdata_MODULES): Add `acorn.mod'.
45322 (acorn_mod_SOURCES): New variable.
45323 (acorn_mod_CFLAGS): Likewise.
45324
45325 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
45326 (pkgdata_MODULES): Add `acorn.mod'.
45327 (acorn_mod_SOURCES): New variable.
45328 (acorn_mod_CFLAGS): Likewise.
45329 (acorn_mod_LDFLAGS): Likewise.
45330
45331 * include/types.h (grub_disk_addr_t): New typedef.
45332
6d099807 453332005-11-13 Marco Gerards <mgerards@xs4all.nl>
45334
45335 * geninit.sh: New file.
45336
45337 * geninitheader.sh: Likewise.
45338
45339 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
45340 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
45341 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
45342 * commands/configfile.c (grub_configfile_init)
45343 (grub_configfile_fini): Likewise.
45344 * commands/default.c (grub_default_init, grub_default_fini):
45345 Likewise.
45346 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
45347 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
45348 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
45349 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
45350 Likewise.
45351 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
45352 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
45353 Likewise.
45354 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 45355 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 45356 Likewise.
45357 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
45358 Likewise.
fe6b695a 45359 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 45360 Likewise.
45361 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
45362 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
45363 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
45364 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
45365 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
45366 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
45367 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
45368 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
45369 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
45370 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
45371 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
45372 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
45373 * partmap/amiga.c (grub_amiga_partition_map_init)
45374 (grub_amiga_partition_map_fini): Likewise.
45375 * partmap/apple.c (grub_apple_partition_map_init)
45376 (grub_apple_partition_map_fini): Likewise.
45377 * partmap/pc.c (grub_pc_partition_map_init)
45378 (grub_pc_partition_map_fini): Likewise.
45379 * partmap/sun.c (grub_sun_partition_map_init,
45380 grub_sun_partition_map_fini): Likewise.
45381 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
45382 Likewise.
45383
45384 * util/grub-emu.c: Include <grub_modules_init.h>.
45385 (main): Don't initialize and de-initialize any modules directly,
45386 use `grub_init_all' and `grub_fini_all' instead.
45387
45388 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
45389 `grub_vesafb_mod_init'.
45390 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
45391 all users.
45392 * term/i386/pc/vga.c (grub_vga_init): Renamed to
45393 `grub_vga_mod_init'. Updated all users.
45394 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 45395
6d099807 45396 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
45397 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
45398 rules.
45399
45400 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
45401 Generate a function to initialize the module in utilities.
45402 Updated all callers.
45403 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
45404 initialize the module in utilities. Updated all callers.
45405
9046bcf0 454062005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45407
45408 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
45409 escape sequence and a literal ^L to clear the screen.
45410
45411 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
45412 when returning from Open Firmware.
45413
d13ea639 454142005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45415
45416 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
45417 (grub_ofconsole_height): Likewise.
45418 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
45419 manually insert a '\n'.
45420 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
45421 `grub_ofconsole_height'. Return early if these are already set.
45422
a8fcf206 454232005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
45424
45425 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45426 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
45427 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
45428 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
45429 and `normal/script.c'.
45430 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45431 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45432 (test_mod_SOURCES): New variable.
45433 (test_mod_CFLAGS): Likewise.
45434 (test_mod_LDFLAGS): Likewise.
45435 (pkgdata_MODULES): Add `test.mod'.
45436 (grub_script.tab.c): New rule.
45437 (grub_script.tab.h): Likewise.
45438
b6b32745 454392005-11-07 Marco Gerards <mgerards@xs4all.nl>
45440
45441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45442 `commands/test.c', `normal/execute.c', `normal/lexer.c',
45443 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45444 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45445 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45446 (test_mod_SOURCES): New variable.
45447 (test_mod_CFLAGS): Likewise.
45448 (pkgdata_MODULES): Add `test.mod'.
45449 (grub_script.tab.c): New rule.
45450 (grub_script.tab.h): Likewise.
45451
daac212a 454522005-11-06 Marco Gerards <mgerards@xs4all.nl>
45453
45454 Add initial scripting support.
45455
45456 * commands/test.c: New file.
45457 * include/grub/script.h: Likewise.
45458 * normal/execute.c: Likewise.
45459 * normal/function.c: Likewise.
45460 * normal/lexer.c: Likewise.
45461 * normal/parser.y: Likewise.
45462 * normal/script.c: Likewise.
45463
45464 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 45465
daac212a 45466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
45467 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
45468 `normal/function.c' and `normal/script.c'.
45469 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45470 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 45471 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
45472 variables.
daac212a 45473 (pkgdata_MODULES): Add `test.mod'.
45474 (grub_script.tab.c): New rule.
45475 (grub_script.tab.h): Likewise.
45476
45477 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
45478
45479 * include/grub/normal.h (grub_test_init): New prototype.
45480 (grub_test_fini): Likewise.
f19dbdb7 45481
daac212a 45482 * normal/command.c: Include <grub/script.h>.
45483 (grub_command_execute): Rewritten.
f19dbdb7 45484
daac212a 45485 * util/grub-emu.c (main): Call `grub_test_init' and
45486 `grub_test_fini'.
45487
77500b2b 454882005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45489
45490 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
45491 to 0.
45492 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
45493 there are no pending characters.
45494
e45deb9e 454952005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45496
45497 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
45498 `grub_strndup' to drop device arguments. Replace unnecessary
45499 `grub_strndup' with `grub_strdup'.
45500
4ce32619 455012005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45502
45503 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
45504 `debug' environment variable has been set.
45505
455062005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 45507
4ce32619 45508 * Makefile.in (install-local): Use $(DATA).
45509 (uninstall): Likewise.
45510 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
45511 (sbin_UTILITIES): ... to here.
45512 (sbin_SCRIPTS): New variable.
45513 (grub_install_SOURCES): New variable.
45514 * util/powerpc/ieee1275/grub-install.in: New file.
45515 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
45516 variable.
45517 (add_segments): Call `grub_util_get_path'.
45518
25fe6f03 455192005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45520
45521 From Timothy Baldwin:
45522 * commands/ls.c (grub_ls_list_files): Close FILE with
45523 grub_file_close.
45524 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
45525
04ccf3ec 455262005-10-24 Marco Gerards <mgerards@xs4all.nl>
45527
45528 * include/grub/parser.h: New file.
45529
45530 * kern/parser.c: Likewise.
45531
45532 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
45533 (grub_setup_SOURCES): Likewise.
45534 (grub_probefs_SOURCES): Likewise.
45535 (grub_emu_SOURCES): Likewise.
45536 (kernel_img_HEADERS): Add `parser.h'.
45537
45538 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45539 (grub_emu_SOURCES): Add `kern/parser.c'.
45540 (grubof_SOURCES): Likewise.
45541
45542 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45543 (grubof_SOURCES): Add `kern/parser.c'.
45544
45545 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
45546
45547 * kern/misc.c (grub_split_cmdline): Removed function.
45548
45549 * kern/rescue.c: Include <grub/parser.h>.
45550 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
45551 of `grub_split_cmdline'.
45552
45553 * normal/command.c: Include <grub/parser.h>.
45554 (grub_command_execute): Use `grub_parser_split_cmdline' instead
45555 of `grub_split_cmdline'.
45556
45557 * normal/completion.c: Include <grub/parser.h>.
45558 (cmdline_state): New variable.
45559 (iterate_dir): End the filename with a quote depending on the
45560 command line state.
45561 (get_state): new function.
45562 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
45563 split the arguments and determine the current argument. When the
45564 argument string is not quoted, escape all spaces.
45565
6d8f4b0e 455662005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45567
45568 * normal/sparc64/setjmp.S: New file.
45569
15cf03ed 455702005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45571
45572 * include/grub/sparc64/libgcc.h: New file.
45573 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
45574 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
45575 normal/sparc64/setjmp.c.
45576
03e8661a 455772005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45578
45579 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
45580 * kern/sparc64/cache.S: New file.
45581 * kern/sparc64/cache.c: Removed.
45582 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
45583 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
45584 -mtune=ultrasparc.
45585 (COMMON_LDFLAGS): Add -melf64_sparc.
45586 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
45587 (grubof_SOURCES): Use cache.S instead of cache.c.
45588 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
45589 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
45590 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
45591 commented though.
45592 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
45593 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
45594 (linux_mod_CFLAGS): Commented out.
45595 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
45596 out because module isn't built.
45597 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
45598 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
45599 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
45600 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
45601 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
45602 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45603 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45604 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
45605 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
45606 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
45607 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45608 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45609 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
45610 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
45611
34eeec8a 456122005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
45613
45614 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
45615 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
45616 longer, because HFS should not be used on PC.
45617
708367a3 456182005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45619
45620 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
45621 consistently within the loop.
45622
6fa1251a 456232005-10-15 Marco Gerards <mgerards@xs4all.nl>
45624
45625 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
45626 directory can not be read.
45627
4801580b 456282005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45629
45630 * configure.ac (AC_INIT): Increase the version number to 1.91.
45631
45632 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
45633 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
45634 term/i386/pc/serial.c.
45635
219ad426 456362005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45637
45638 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
45639 file size must be permitted.
45640
45641 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
45642 between %ah and %al.
45643
688e5699 456442005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45645
45646 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
45647 grub_uint64_t.
45648 Call the hook with a NUL-terminated filename.
45649 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
45650 grub_cpu_to_be32.
45651
45652 * kern/term.c (cursor_state): New variable.
45653 (grub_term_set_current): Reset the cursor state on a new
45654 terminal.
45655 (grub_setcursor): Rewritten to use CURSOR_STATE.
45656 (grub_getcursor): New function.
45657
45658 * include/grub/term.h (grub_getcursor): New prototype.
45659
45660 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
45661 integers on ARM. Reported by Timothy Baldwin
45662 <T.E.Baldwin99@members.leeds.ac.uk>.
45663
bb34586c 456642005-10-11 Marco Gerards <mgerards@xs4all.nl>
45665
45666 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
45667 allocated.
45668 (grub_sfs_dir): Likewise.
45669
9a909877 456702005-10-09 Marco Gerards <mgerards@xs4all.nl>
45671
45672 Add support for the SFS filesystem.
45673
45674 * fs/sfs.c: New file.
45675
45676 * DISTLIST: Added `fs/sfs.c'.
45677
45678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
45679 (grub_probefs_SOURCES): Likewise.
45680 (grub_emu_SOURCES): Likewise.
45681 (pkgdata_MODULES): Add `sfs.mod'.
45682 (sfs_mod_SOURCES): New variable.
45683 (sfs_mod_CFLAGS): Likewise.
45684 (sfs_mod_LDFLAGS): Likewise.
45685
45686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
45687 (pkgdata_MODULES): Add `sfs.mod'.
45688 (sfs_mod_SOURCES): New variable.
45689 (sfs_mod_CFLAGS): Likewise.
45690
45691 * util/grub-emu.c (main): Call `grub_sfs_init' and
45692 `grub_sfs_fini'.
45693
45694 * include/grub/fs.h (grub_sfs_init): New prototype.
45695 (grub_sfs_fini): Likewise.
45696
57bdbde3 456972005-10-07 Marco Gerards <mgerards@xs4all.nl>
45698
45699 Add support for the AFFS filesystem.
45700
45701 * fs/affs.c: New file.
45702
45703 * DISTLIST: Added `fs/affs.c'.
45704
45705 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
45706 (grub_probefs_SOURCES): Likewise.
45707 (grub_emu_SOURCES): Likewise.
45708 (pkgdata_MODULES): Add `affs.mod'.
45709 (affs_mod_SOURCES): New variable.
45710 (affs_mod_CFLAGS): Likewise.
45711 (affs_mod_LDFLAGS): Likewise.
45712
45713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
45714 (pkgdata_MODULES): Add `affs.mod'.
45715 (affs_mod_SOURCES): New variable.
45716 (affs_mod_CFLAGS): Likewise.
45717
45718 * util/grub-emu.c (main): Call `grub_affs_init' and
45719 `grub_affs_fini'.
45720
45721 * include/grub/fs.h (grub_affs_init): New prototype.
45722 (grub_affs_fini): Likewise.
45723
047b67e0 457242005-10-01 Marco Gerards <mgerards@xs4all.nl>
45725
45726 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
45727
59b8208a 457282005-10-01 Marco Gerards <mgerards@xs4all.nl>
45729
45730 * configure.ac: Accept `x86_64' as host_cpu. In that case add
45731 `-m32' to CFLAGS.
45732
45733 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
45734 linking.
f19dbdb7 45735
59b8208a 45736 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
45737 (COMMON_LDFLAGS): New variable.
45738 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
45739 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
45740 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
45741 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
45742 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
45743 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
45744 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
45745 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
45746 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
45747 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
45748 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45749 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45750 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
45751 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
45752 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
45753 variables.
45754 (normal_mod_ASFLAGS): Add `-m32'.
45755
45756 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
45757 (grub_host_size_t, grub_host_ssize_t): New types.
45758 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 45759 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 45760 `GRUB_HOST_SIZEOF_VOID_P'.
45761
45762 * include/grub/kernel.h (struct grub_module_header): Type of
45763 member offset changed to `grub_host_off_t'. Type of member size
45764 changed to `grub_host_size_t'.
45765 (struct grub_module_info): Type of member offset changed to
45766 `grub_host_off_t'. Type of member size changed to
45767 `grub_host_size_t'.
45768
b4093103 457692005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
45770
45771 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 45772
b4093103 45773 * kern/i386/pc/startup.S (multiboot_header): New label.
45774 (multiboot_entry): Likewise.
45775 (multiboot_trampoline): Likewise.
45776
45777 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45778 Increased to 0x4A0.
45779
45780 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
45781 put parentheses after a question mark.
45782 [!GRUB_UTIL] (my_mod): New variable.
45783
45784 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
45785
b2499b29 457862005-09-28 Marco Gerards <mgerards@xs4all.nl>
45787
45788 Adds support for the XFS filesystem. Btrees are not supported
45789 yet.
45790
45791 * fs/xfs.c: New file.
45792
45793 * DISTLIST: Added `fs/xfs.c'.
45794
45795 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
45796 (grub_probefs_SOURCES): Likewise.
45797 (grub_emu_SOURCES): Likewise.
45798 (pkgdata_MODULES): Add `xfs.mod'.
45799 (xfs_mod_SOURCES): New variable.
45800 (xfs_mod_CFLAGS): Likewise.
45801
45802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
45803 (pkgdata_MODULES): Add `xfs.mod'.
45804 (xfs_mod_SOURCES): New variable.
45805 (xfs_mod_CFLAGS): Likewise.
45806
45807 * util/grub-emu.c (main): Call `grub_xfs_init' and
45808 `grub_xfs_fini'.
45809
45810 * include/grub/fs.h (grub_xfs_init): New prototype.
45811 (grub_xfs_fini): Likewise.
45812
f19dbdb7 45813
83d37a62 458142005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45815
45816 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45817 color modes, allow greater than 16 colors to be configured as
45818 a default palette.
45819
47d2d65e 458202005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45821
45822 * normal/completion.c (complete_arguments): Add the qualifier
45823 const into OPTIONS.
45824
45825 From Omniflux <omniflux+lists@omniflux.com>:
45826 * include/grub/terminfo.h: New file.
45827 * include/grub/tparm.h: Likewise.
45828 * include/grub/i386/pc/serial.h: Likewise.
45829 * term/terminfo.c: Likewise.
45830 * term/tparm.c: Likewise.
45831 * term/i386/pc/serial.c: Likewise.
45832 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45833 serial.mod.
45834 (terminfo_mod_SOURCES): New variable.
45835 (terminfo_mod_CFLAGS): Likewise.
45836 (serial_mod_SOURCES): Likewise.
45837 (serial_mod_CFLAGS): Likewise.
45838
48b671ff 458392005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45840
45841 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45842 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45843 and kern/powerpc/ieee1275/cmain.c, respectively.
45844
45845 * boot/powerpc/ieee1275/crt0.S: Moved to ...
45846 * kern/powerpc/ieee1275/crt0.S: ... here.
45847
45848 * boot/powerpc/ieee1275/cmain.c: Moved to ...
45849 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 45850
48b671ff 45851 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
45852 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
45853 instead of boot/powerpc/ieee1275/crt0.S and
45854 boot/powerpc/ieee1275/cmain.c, respectively.
45855
45856 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
45857 sectors. It was not used anyway.
45858
09fc77a7 458592005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45860
45861 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45862 `unused parameter' warning.
45863
003789c7 458642005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45865
45866 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45867 function.
45868 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45869 getcharwidth.
45870
67f44c86 458712005-08-28 Marco Gerards <metgerards@student.han.nl>
45872
45873 * include/grub/normal.h (enum grub_completion_type): Added
45874 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45875
45876 * normal/cmdline.c (print_completion): Handle
45877 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45878 * normal/menu_entry.c (store_completion): Likewise.
45879
45880 * normal/completion.c (complete_arguments): New function.
45881 (grub_normal_do_completion): Call `complete_arguments' when the
45882 current words start with a dash.
45883
0b5abe02 458842005-08-27 Marco Gerards <metgerards@student.han.nl>
45885
45886 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45887 `gzio.mod' instead of `io.mod').
45888
d9864ee1 458892005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45890
45891 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45892 (DISTDIRS): Added io and video.
45893 Rewrite the search routine to make an output consistently.
45894
45895 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45896 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45897 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45898 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45899 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45900 util/powerpc/ieee1275/misc.c.
f19dbdb7 45901
d9864ee1 45902 * include/grub/gzio.h: New file.
45903 * io/gzio.c: Likewise.
f19dbdb7 45904
d9864ee1 45905 * kern/file.c (grub_file_close): Call grub_device_close only if
45906 FILE->DEVICE is not NULL.
45907
45908 * include/grub/mm.h [!NULL] (NULL): New macro.
45909
45910 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45911
45912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45913 (pkgdata_MODULES): Added gzio.mod.
45914 (gzio_mod_SOURCES): New variable.
45915 (gzio_mod_CFLAGS): Likewise.
45916
45917 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45918 (pkgdata_MODULES): Added gzio.mod.
45919 (gzio_mod_SOURCES): New variable.
45920 (gzio_mod_CFLAGS): Likewise.
45921
45922 * commands/cat.c: Include grub/gzio.h.
45923 (grub_cmd_cat): Use grub_gzfile_open instead of
45924 grub_file_open.
f19dbdb7 45925
d9864ee1 45926 * commands/cmp.c: Include grub/gzio.h.
45927 (grub_cmd_cmp): Use grub_gzfile_open instead of
45928 grub_file_open.
45929
45930 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45931 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45932 grub_file_open.
45933 (grub_rescue_cmd_module): Likewise.
45934
fa46f4b5 459352005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45936
45937 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45938 kern/sparc64/ieee1275/init.c because it contains _start.
45939 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45940
e9211b5d 459412005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45942
45943 * configure.ac: Add support for sparc64 host with ieee1275
45944 firmware.
45945 * configure: Generated from configure.ac.
45946 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45947 instead of int.
45948 (grub_ofdisk_read): Likewise.
45949 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45950 pointers as (void *) to remove a warning.
45951 (grub_ofdisk_close): Likewise.
45952 (grub_ofdisk_read): Likewise.
45953 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45954 returns, so make it return void to remove a warning.
45955 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45956 Corresponding prototype change.
45957 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45958 values, and cast the pointers as (void *) to remove a warning.
45959 (grub_mm_dump): Likewise.
45960 * conf/sparc64-ieee1275.mk: New file.
45961 * conf/sparc64-ieee1275.rmk: Likewise.
45962 * include/grub/sparc64/setjmp.h: Likewise.
45963 * include/grub/sparc64/types.h: Likewise.
45964 * include/grub/sparc64/ieee1275/console.h: Likewise.
45965 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45966 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45967 * include/grub/sparc64/ieee1275/time.h: Likewise.
45968 * kern/sparc64/cache.c: Likewise.
45969 * kern/sparc64/dl.c: Likewise.
45970 * kern/sparc64/ieee1275/init.c: Likewise.
45971 * kern/sparc64/ieee1275/openfw.c: Likewise.
45972
385c6a92 459732005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45974
45975 * util/console.c (grub_ncurses_putchar): If C is greater than
45976 0x7f, set C to a question mark.
45977 (grub_ncurses_getcharwidth): New function.
45978 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45979 getcharwidth.
45980
45981 * normal/menu.c (print_entry): Made aware of Unicode. First,
45982 convert TITLE to UCS-4, and predict the cursor position by
45983 grub_getcharwidth.
45984
45985 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
45986 const to SRC.
45987 * kern/misc.c (grub_utf16_to_utf8): Likewise.
45988
16ccb8b1 459892005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45990
45991 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
45992 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45993 grub_strcat.
45994
45995 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
45996 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45997 grub_strcpy and grub_strlen. Take it into account that a space
45998 character is inserted as a delimiter.
45999
6a85ce79 460002005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46001
46002 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 46003 invalid magic in the error.
6a85ce79 46004
46005 * commands/search.c: New file.
f19dbdb7 46006
6a85ce79 46007 * util/grub-emu.c (main): Call grub_search_init and
46008 grub_search_fini.
46009
46010 * kern/rescue.c (grub_rescue_print_disks): Removed.
46011 (grub_rescue_print_devices): New function.
46012 (grub_rescue_cmd_ls): Use grub_device_iterate with
46013 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46014 grub_rescue_print_disks.
46015
46016 * kern/partition.c (grub_partition_iterate): Return the result of
46017 PARTMAP->ITERATE instead of GRUB_ERRNO.
46018
46019 * kern/device.c: Include grub/partition.h.
46020 (grub_device_iterate): New function.
46021
46022 * include/grub/partition.h (grub_partition_iterate): Return int
46023 instead of grub_err_t.
46024
46025 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46026 prototype.
46027 [GRUB_UTIL] (grub_search_fini): Likewise.
46028
46029 * include/grub/device.h (grub_device_iterate): New prototype.
46030
46031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46032 commands/search.c.
46033 (pkgdata_MODULES): Added search.mod.
46034 (search_mod_SOURCES): New variable.
46035 (search_mod_CFLAGS): Likewise.
46036
46037 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46038 (pkgdata_MODULES): Added search.mod.
46039 (search_mod_SOURCES): New variable.
46040 (search_mod_CFLAGS): Likewise.
46041
46042 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46043 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46044 All callers changed.
46045
46046 * DISTLIST: Added commands/search.c.
46047
ef095434 460482005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46049
46050 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46051 conversion.
46052 (grub_getcharwidth): New function.
46053
46054 * kern/misc.c (grub_utf8_to_ucs4): New function.
46055
46056 * include/grub/term.h (struct grub_term): Added a new member
46057 "getcharwidth".
46058 (grub_getcharwidth): New prototype.
46059
46060 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46061
46062 * term/i386/pc/console.c (map_char): New function. Segregated from
46063 grub_console_putchar.
46064 (grub_console_putchar): Use map_char.
46065 (grub_console_getcharwidth): New function.
46066 (grub_console_term): Specified grub_console_getcharwidth as
46067 getcharwidth.
46068
46069 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46070 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46071
46072 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46073 GRUB_ERRNO.
46074 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46075 on grub_strtoul completely.
46076 (write_char): Declare local variables in the beginning of the
46077 function.
46078 (grub_vesafb_getcharwidth): New function.
46079 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46080 getcharwidth.
46081
1f0a95e4 460822005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46083
46084 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46085 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46086 commands/i386/pc/vbetest.c.
46087
46088 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46089 call grub_vbe_get_controller_info again, because the returned
46090 information is volatile.
46091 (grub_vbe_set_video_mode): Mostly rewritten.
46092 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46093 grub_vbe_status_t correctly.
46094 (grub_vbe_get_video_mode_info): Likewise.
46095 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46096 several if statements.
46097
46098 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46099 * commands/i386/pc/vbeinfo.c: ... this.
46100
46101 * commands/i386/pc/vbe_test.c: Renamed to ...
46102 * commands/i386/pc/vbetest.c: ... this.
46103
46104 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46105 ...
46106 (grub_cmd_vbeinfo): ... this. Save video modes before
46107 iterating. Skip a video mode, if it is not available, not enough
46108 information is given or it is monochrome. Show the memory
46109 model. Leave the interpretation of MODEVAR to grub_strtoul
46110 completely.
46111 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46112 (GRUB_MOD_FINI): Likewise.
46113
46114 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46115 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46116 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46117 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46118 grub_strtoul completely.
46119 (real2pm): Removed.
46120 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46121 (GRUB_MOD_FINI): Likewise.
46122
46123 * normal/misc.c: Include grub/mm.h.
46124
46125 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46126 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46127 (vbe_list_modes_mod_SOURCES): Removed.
46128 (vbe_list_modes_mod_CFLAGS): Likewise.
46129 (vbe_test_mod_SOURCES): Likewise.
46130 (vbe_test_mod_CFLAGS): Likewise.
46131 (vbeinfo_mod_SOURCES): New variable.
46132 (vbeinfo_mod_CFLAGS): Likewise.
46133 (vbetest_mod_SOURCES): Likewise.
46134 (vbetest_mod_CFLAGS): Likewise.
46135
992ffbbe 461362005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46137
46138 * normal/misc.c: New file.
46139
46140 * DISTLIST: Added normal/misc.c.
f19dbdb7 46141
992ffbbe 46142 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46143 DISK to HOOK. Call HOOK with DISK.
46144 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46145 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46146 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46147
46148 * normal/menu_entry.c (struct screen): Added a new member
46149 "completion_shown".
46150 (completion_buffer): New global variable.
46151 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46152 (store_completion): New function.
46153 (complete): Likewise.
46154 (clear_completions): Likewise.
46155 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46156 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46157 a tab, call complete.
46158
46159 * normal/completion.c (disk_dev): Removed.
46160 (print_simple_completion): Likewise.
46161 (print_partition_completion): Likewise.
46162 (print_func): New global variable.
46163 (add_completion): Do not take the arguments WHAT or PRINT any
46164 longer. Added a new argument TYPE. Instead of printing directly,
46165 call PRINT_FUNC if not NULL.
46166 All callers changed.
46167 (complete_device): Use a local variable DEV instead of
46168 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46169 (grub_normal_do_completion): Take a new argument HOOK. Do not
46170 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46171 empty string, return NULL instead.
46172 All callers changed.
46173
46174 * normal/cmdline.c (print_completion): New function.
46175
46176 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46177 to HOOK.
46178 All callers changed.
46179
46180 * kern/disk.c (grub_print_partinfo): Removed.
46181
46182 * include/grub/partition.h (struct grub_partition_map): Add a new
46183 argument DISK into HOOK of ITERATE.
46184 (grub_partition_iterate): Add a new argument DISK to HOOK.
46185
46186 * include/grub/normal.h (enum grub_completion_type): New enum.
46187 (grub_completion_type_t): New type.
46188 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46189 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46190 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46191 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46192 (grub_normal_do_completion): Added a new argument HOOK.
46193 (grub_normal_print_device_info): New prototype.
46194
46195 * include/grub/disk.h (grub_print_partinfo): Removed.
46196
46197 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46198 (normal_mod_SOURCES): Likewise.
46199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46200 (normal_mod_SOURCES): Likewise.
46201
46202 * commands/ls.c (grub_ls_list_disks): Use
46203 grub_normal_print_device_info instead of grub_print_partinfo. Free
46204 PNAME.
46205 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46206 duplicating the code.
46207
0bd41162 462082005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46209
46210 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 46211 follow GCS more precisely.
46212 * commands/i386/pc/vbe_test.c: Likewise.
46213 * include/grub/i386/pc/vbe.h: Likewise.
46214 * term/i386/pc/vesafb.c: Likewise.
46215 * video/i386/pc/vbe.c: Likewise.
0bd41162 46216
6323696a 462172005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46218
46219 * DISTLIST: Added term/i386/pc/vesafb.c
46220 DISTLIST: Added video/i386/pc/vbe.c
46221 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46222 DISTLIST: Added commands/i386/pc/vbe_test.c.
46223 * commands/i386/pc/vbe_list_modes.c: New file.
46224 * commands/i386/pc/vbe_test.c: Likewise.
46225 * term/i386/pc/vesafb.c: Likewise.
46226 * video/i386/pc/vbe.c: Likewise.
46227 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46228 (grub_vbe_probe) Added prototype.
46229 (grub_vbe_set_video_mode) Likewise.
46230 (grub_vbe_get_video_mode) Likewise.
46231 (grub_vbe_get_video_mode_info) Likewise.
46232 (grub_vbe_set_pixel_rgb) Likewise.
46233 (grub_vbe_set_pixel_index) Likewise.
46234 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46235 (pkgdata_MODULES): Added vesafb.mod.
46236 (pkgdata_MODULES): Added vbe_list_modes.mod.
46237 (pkgdata_MODULES): Added vbe_test.mod.
46238 (vbe_mod_SOURCES): Added.
46239 (vbe_mod_CFLAGS): Likewise.
46240 (vesafb_mod_SOURCES): Likewise.
46241 (vesafb_mod_CFLAGS): Likewise.
46242 (vbe_list_modes_mod_SOURCES): Likewise.
46243 (vbe_list_modes_mod_CFLAGS): Likewise.
46244 (vbe_test_mod_SOURCES): Likewise.
46245 (vbe_test_mod_CFLAGS): Likewise.
46246
0a74e62f 462472005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46248
0a74e62f 46249 * normal/command.c (grub_command_execute): If INTERACTIVE is
46250 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46251 CMDLINE. Disable the pager if INTERACTIVE is true.
46252 All callers are changed.
46253
46254 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46255 before reading a config file.
46256 * normal/main.c (read_config_file): Even if a command is not
46257 found, register it if it is within an entry.
46258
46259 * util/grub-emu.c: Include sys/types.h and unistd.h.
46260 (options): Added --hold.
46261 (struct arguments): Added a new member "hold".
46262 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46263 missing.
46264 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46265 cleared by a debugger, if it is not zero.
46266
46267 * include/grub/normal.h (grub_command_execute): Add an argument
46268 INTERACTIVE.
46269
e51f85ae 462702005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46271
46272 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46273
e9c6f39b 462742005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46275
46276 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46277 program with another one, because the old one didn't detect a bug
46278 in gcc-3.4. Always use regparm 2, because the new test is still
46279 not enough for gcc-4.0. Someone must investigate a simple test
46280 case which detects a bug in gcc-4.0.
46281
8de3495c 462822005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46283
46284 * DISTLIST: Added normal/completion.c.
46285
46286 * normal/completion.c: New file.
f19dbdb7 46287
8de3495c 46288 * term/i386/pc/console.c (grub_console_getwh): New function.
46289 (grub_console_term): Assign grub_console_getwh to getwh.
46290
46291 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
46292 function is defined in normal/completion.c as
46293 grub_normal_do_completion.
46294 (grub_cmdline_get): Use grub_normal_do_completion instead of
46295 grub_tab_complete.
46296
46297 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
46298 returns non-zero, otherwise return 0.
46299 (grub_partition_iterate): First, probe the partition map. Then,
46300 call ITERATE only for this partition map.
46301
46302 * kern/misc.c (grub_strncmp): Rewritten.
46303
46304 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
46305 returns non-zero. Otherwise return 0.
46306
46307 * include/grub/partition.h (grub_partition_map_iterate): Return
46308 int instead of void.
46309
46310 * include/grub/normal.h (grub_normal_do_completion): New prototype.
46311
46312 * include/grub/misc.h (grub_strncmp): Change the type of N to
46313 grub_size_t.
46314
46315 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
46316 of void.
46317
46318 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 46319 unsigned explicitly before comparing it with I.
8de3495c 46320
46321 * kern/main.c (grub_env_write_root): Add the attribute unused into
46322 VAR.
46323
46324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46325 normal/completion.c.
46326 (normal_mod_SOURCES): Likewise.
46327 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
46328 (normal_mod_SOURCES): Likewise.
46329
46330 * normal/command.c (grub_iterate_commands): If ITERATE returns
46331 non-zero, return one immediately.
46332
e85e144b 463332005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
46334
46335 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
46336 * kern/i386/pc/startup.S: Updated Global Descriptor table's
46337 descriptions.
46338 (grub_vbe_get_controller_info): New function.
46339 (grub_vbe_get_mode_info): Likewise.
46340 (grub_vbe_set_mode): Likewise.
46341 (grub_vbe_get_mode): Likewise.
46342 (grub_vbe_set_memory_window): Likewise.
46343 (grub_vbe_get_memory_window): Likewise.
46344 (grub_vbe_set_scanline_length): Likewise.
46345 (grub_vbe_get_scanline_length): Likewise.
46346 (grub_vbe_set_display_start): Likewise.
46347 (grub_vbe_get_display_start): Likewise.
46348 (grub_vbe_set_palette_data): Likewise.
46349 * include/grub/i386/pc/vbe.h: New file.
46350
c46153d2 463512005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46352
46353 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46354 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
46355 * DISTLIST: Likewise.
46356 * kern/ieee1275/of.c: Moved to ...
46357 * kern/ieee1275/ieee1275.c: ... here.
46358
0cb90c45 463592005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46360
46361 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
46362 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
46363 Pass 0 as `end' parameter to grub_strtoul().
46364
a19fb360 463652005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46366
46367 * include/grub/powerpc/ieee1275/console.h: Do not include
46368 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
46369 ifdef.
46370 (grub_console_cur_color): Remove i386-specific prototype.
46371 (grub_console_real_putchar): Likewise.
46372 (grub_console_checkkey): Likewise.
46373 (grub_console_getkey): Likewise.
46374 (grub_console_getxy): Likewise.
46375 (grub_console_gotoxy): Likewise.
46376 (grub_console_cls): Likewise.
46377 (grub_console_setcursor): Likewise.
46378 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
46379 Include <grub/machine/console.h>.
46380 * term/ieee1275/ofconsole.c: Likewise.
46381
4ac9bd04 463822005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
46383
46384 * Makefile.in (LIBLZO): New variable.
46385
46386 * configure.ac: Check for LZO version 2.
46387
46388 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
46389 lzo/lzo1x.h instead of lzo1x.h.
46390
46391 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
46392 of -llzo.
46393
46394 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
46395 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
46396
46397 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
46398 copying the data from PARTITION to P.
46399
f4917dfd 464002005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46401
46402 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
46403 negative, unload the module.
46404
46405 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
46406 map is "pc_partition_map" but not "pc".
46407 (usage): Fix the description. The options are --boot-image and
46408 --core-image but not --boot-file or --core-file.
46409 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
46410 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
46411 DEFAULT_DIRECTORY.
46412
46413 * util/i386/pc/grub-install.in: Do not specify --boot-file or
46414 --core-file. Specify INSTALL_DEVICE as an argument.
46415
46416 * util/console.c: Include config.h.
46417 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
46418 [HAVE_NCURSES_H]: Include ncurses.h.
46419 [HAVE_CURSES_H]: Include curses.h.
46420 [!A_NORMAL] (A_NORMAL): Defined as zero.
46421 [!A_STANDOUT] (A_STANDOUT): Likewise.
46422
46423 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
46424 -lncurses.
46425 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
46426
46427 * configure.ac: Check for curses libraries and headers.
46428
46429 * Makefile.in (LIBCURSES): New variable.
46430
46431 * genmk.rb (Script::rule): Set the executable bits.
46432
46433 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
46434 name of the PC partition map is "pc_partition_map" but not "pc".
46435
0e143073 464362005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46437
46438 * util/i386/pc/grub-install.in (grub_probefs): New variable.
46439 (modules): Likewise.
46440 (usage): Added descriptions for --modules and --grub-probefs.
46441 Handle --modules and --grub-probefs. Save the arguments in MODULES
46442 and GRUB_PROBEFS, respectively.
46443 Auto-detect a filesystem module against GRUBDIR. If the result is
46444 empty and modules are not specified explicitly, abort the
46445 installation. Add the result to MODULES.
46446
46447 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
46448 disk/powerpc/ieee1275/ofdisk.c,
46449 include/grub/powerpc/ieee1275/init.h and
46450 term/powerpc/ieee1275/ofconsole.c.
46451 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
46452 term/ieee1275/ofconsole.c.
46453
46454 * include/grub/powerpc/ieee1275/console.h: Resurrected.
46455
46456 * COPYING: Upgraded to the latest version. Only the address of the
46457 FSF office has changed.
f19dbdb7 46458
efd6e6d5 464592005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46460
46461 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46462 kern/ieee1275.c with kern/ieee1275/of.c.
46463
46464 * kern/ieee1275.c: Moved to ...
46465 * kern/ieee1275/of.c: ... here.
46466
8ceafda2 464672005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
46468
46469 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 46470 readability.
8ceafda2 46471
46472 * config.guess: Updated to the latest version from gnulib.
46473 * config.sub: Likewise.
46474 * install.sh: Likewise.
46475 * mkinstalldirs: Likewise.
46476
46477 * include/grub/console.h: Removed. This file is arch-specific. Do
46478 not put this in include/grub.
46479
46480 * include/grub/i386/pc/console.h: Resurrected.
46481
46482 * util/console.c: Include grub/machine/console.h instead of
46483 grub/console.h.
46484 * util/grub-emu.c: Likewise.
46485
267f6cd9 464862005-08-04 Marco Gerards <metgerards@student.han.nl>
46487
46488 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
46489 hardcoded value.
f19dbdb7 46490
267f6cd9 46491 From Vincent Pelletier <subdino2004@yahoo.fr>
46492 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
46493 Redefined to use grub_getwh.
46494 (grub_term): New member named getwh.
46495 (grub_getwh): New prototype.
46496 * kern/term.c (grub_getwh): New function.
46497 * term/i386/pc/console.c (grub_console_getwh): New function.
46498 (grub_console_term): New member `getwh'.
46499 * term/i386/pc/vga.c (grub_vga_getwh): New function.
46500 (grub_vga_term): New member `getwh'.
0b5abe02 46501 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 46502 grub_ssize_t.
46503 (grub_ofconsole_getw): New function.
46504 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
46505 (grub_ofconsole_term): New field named getwh and new initial
46506 value.
46507
3be7266d 465082005-08-03 Hollis Blanchard <hollis@penguinppc.org>
46509
46510 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
46511 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
46512 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
46513 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
46514 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
46515 of <grub/machine/ieee1275.h>.
46516 * commands/ieee1275/reboot.c: Likewise.
46517 * boot/powerpc/ieee1275/ieee1275.c: Move ...
46518 * kern/ieee1275.c: ... to here. All users updated. Change all
46519 parameter structs to use new type `grub_ieee1275_cell_t'.
46520 * term/powerpc/ieee1275/ofconsole.c: Move ...
46521 * term/ieee1275/ofconsole.c: ... to here. All users updated.
46522 * disk/powerpc/ieee1275/ofdisk.c: Move ...
46523 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
46524 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
46525 to return int.
46526 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
46527 Remove unused prototypes. All users updated.
46528 * include/grub/powerpc/ieee1275/console.h: Removed.
46529 * include/grub/powerpc/ieee1275/ieee1275.h: Define
46530 `grub_ieee1275_cell_t'.
46531 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
46532 Cast comparisons with -1 to the correct type.
46533 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
46534 type to match `grub_ieee1275_entry_fn'.
46535
8b5f3938 465362005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
46537
46538 * DISTLIST: Added util/i386/pc/grub-probefs.c.
46539
46540 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
46541 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
46542 partmap/sun.c.
46543 (grub_probefs_SOURCES): New variable.
46544
46545 * util/i386/pc/grub-probefs.c: New file.
46546
46547 * util/i386/pc/grub-setup.c (main): Call
46548 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
46549 grub_hfs_init and grub_jfs_init to initialize the system. Call
46550 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
46551 grub_pc_partition_map_fini to finish the system.
46552
ea409713 465532005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
46554
46555 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
46556 function.
46557 (grub_multiboot_load_elf32): Likewise.
46558 (grub_multiboot_is_elf64): Likewise.
46559 (grub_multiboot_load_elf64): Likewise.
46560 (grub_multiboot_load_elf): Likewise.
46561 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
46562 an ELF32 or ELF64 file.
46563 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
46564
46565 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
46566 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
46567 NULL before calling FS->LABEL.
46568 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
46569 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
46570 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
46571 before calling FS->LABEL.
46572
141a288b 465732005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
46574
46575 * util/i386/pc/grub-install.in (datadir): New variable.
46576 (libdir): Removed.
46577 (pkgdatadir): New variable.
46578 (pkglibdir): Removed.
46579
0d5f8a54 465802005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
46581
46582 * DISTLIST: Added util/i386/pc/grub-install.in.
46583
46584 * util/i386/pc/grub-install.in: New file.
46585
46586 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
46587 (grub_install_SOURCES): Likewise.
46588
46589 * genmk.rb: Added support for scripts.
46590 (Script): New class.
46591 (scripts): New variable.
46592
46593 * Makefile.in (install-local): Install sbin_SCRIPTS by
46594 INSTALL_SCRIPT.
46595 (uninstall): Remove sbin_SCRIPTS.
46596
46597 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
46598 device, try to get a GRUB device by
46599 grub_util_biosdisk_get_grub_dev.
46600 Free DEST_DEV.
46601
46602 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
46603 description for --device-map.
46604
5f968e1e 466052005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46606
46607 Change the semantics of variable hooks. They now return strings
46608 instead of error values.
f19dbdb7 46609
5f968e1e 46610 * util/i386/pc/grub-setup.c: Include grub/env.h.
46611 (setup): Use grub_device_set_root instead of grub_env_set.
46612
46613 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
46614 grub_env_get instead of grub_device_set_root and
46615 grub_device_get_root, respectively.
46616
46617 * kern/main.c (grub_env_write_root): New function.
46618 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
46619 grub_env_set instead of grub_device_set_root.
46620
46621 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
46622 many variables.
46623 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
46624 rather than calling ENV->WRITE_HOOK afterwards.
46625 (grub_env_get): Return the result of ENV->READ_HOOK rather than
46626 passing a pointer of a pointer.
46627 (grub_register_variable_hook): Change the types of "read_hook" and
46628 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
46629 respectively.
46630 Allocate the default empty string on the heap, because this string
46631 may be freed later.
46632
46633 * kern/device.c: Include grub/env.h.
46634 (grub_device_set_root): Removed.
46635 (grub_device_get_root): Likewise.
46636 (grub_device_open): Use grub_env_get instead of
46637 grub_device_get_root.
46638
46639 * include/grub/env.h (grub_env_read_hook_t): New type.
46640 (grub_env_write_hook_t): Likewise.
46641 (grub_env_var): Change the types of "read_hook" and "write_hook"
46642 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
46643 (grub_register_variable_hook): Likewise.
46644
46645 * include/grub/device.h (grub_device_set_root): Removed.
46646 (grub_device_set_root): Likewise.
46647
46648 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
46649 make sure that DIRNAME terminates with '/', so that
46650 grub_fat_find_dir will fail if PATH is not a directory.
46651
46652 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
46653 from DIRNAME.
46654 Use the qualifier auto for print_files and print_files_long.
46655 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
46656 as a regular file.
46657 Put a newline only if there is no error.
46658 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
46659 used.
46660
896f0afd 466612005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46662
46663 * kern/partition.c (grub_partition_probe): Initialize PART to
46664 NULL. Otherwise, when no partition map is registered, this returns
46665 a garbage.
46666
b28b81b2 466672005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
46668
46669 * partmap/apple.c (apple_partition_map_iterate): Check if POS
46670 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
46671 valid.
46672
5f3607e0 466732005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
46674
46675 * commands/ls.c (grub_ls_list_disks): Print the filesystem
46676 information on each device, if it does not have partitions. Print
46677 "Device" instead of "Disk", because this function is not specific
46678 to disk devices.
46679
46680 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
46681 static to ensure that it is put on the memory rather than a
46682 register.
46683
502c87e8 466842005-07-17 Yoshinori Okuji <okuji@enbug.org>
46685
46686 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
46687 (grub_cat_init): Likewise.
46688 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
46689 (options): Likewise.
46690 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
46691 (grub_configfile_init): Likewise.
46692 * font/manager.c (GRUB_MOD_INIT): Likewise.
46693 * commands/help.c (GRUB_MOD_INIT): Likewise.
46694 (grub_help_init): Likewise.
46695 * normal/command.c (grub_command_init): Likewise.
46696 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
46697 * disk/loopback.c (grub_loop_init): Likewise.
46698 (GRUB_MOD_INIT): Likewise.
46699 * commands/ls.c (grub_ls_init): Likewise.
46700 (GRUB_MOD_INIT): Likewise.
46701 (options): Likewise.
46702 * commands/boot.c (grub_boot_init): Likewise.
46703 (GRUB_MOD_INIT): Likewise.
46704 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
46705 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
46706 (GRUB_MOD_INIT): Likewise.
46707 * commands/cmp.c (grub_cmp_init): Likewise.
46708 (GRUB_MOD_INIT): Likewise.
46709
46710 * normal/arg.c: Use <> instead of "" to include header files.
46711 (SHORT_ARG_HELP): New macro.
46712 (SHORT_ARG_USAGE): Likewise.
46713 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
46714 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
46715 descriptions.
46716 (find_short): Check if C is 'h' or 'u' explicitly.
46717 (grub_arg_show_help): Use space characters instead of tabs. Treat
46718 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
46719 are shown with --help and --usage only if they are not used for
46720 the command itself.
46721 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
46722 'h' and 'u'.
46723
46724 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
46725 const into "longarg". Change the type of "shortarg" to int.
46726
f806d18e 467272005-07-17 Yoshinori Okuji <okuji@enbug.org>
46728
46729 * boot/i386/pc/boot.S (boot_drive_check): New label.
46730
46731 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
46732 macro.
46733
46734 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
46735 which do not pass a boot drive correctly. Copied from GRUB Legacy.
46736
e293232b 467372005-07-17 Yoshinori Okuji <okuji@enbug.org>
46738
46739 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
46740 When turning off Gate A20, skip the check and return immediately,
46741 because this is not fatal usually.
46742
ebedfd00 467432005-07-17 Yoshinori Okuji <okuji@enbug.org>
46744
46745 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
46746 be 0x7C00 instead of 0x8000.
46747
46748 * boot/i386/pc/pxeboot.S: Rewritten.
46749
46750 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
46751 EXT_C.
46752 (gate_a20_check_state): Read a byte from 0x108000. Invert the
46753 result.
46754
654fc59f 467552005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
46756
46757 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
46758 robustness. This routine now supports a BIOS call and System
46759 Control Port A to modify the gate A20.
46760
46761 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46762 Increased to 0x440.
46763
09f9923f 467642005-07-12 Hollis Blanchard <hollis@penguinppc.org>
46765
46766 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
46767 device path and resulting ihandle.
46768 (grub_ofdisk_close): dprintf the ihandle being closed.
46769 (grub_ofdisk_read): dprintf function parameters.
46770 * kern/mm.c (grub_mm_init_region): Likewise.
46771 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
46772 (grub_linux_boot): dprintf the Linux entry point, initrd address and
46773 size, and boot arguments.
46774 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
46775 before loading into memory.
46776 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
46777 before loading into memory.
46778
7ef504d8 467792005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
46780
46781 * kern/mm.c: Added much documentation.
46782 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
46783 8, set to 5 instead of 8.
46784
e0f050c2 467852005-07-10 Yoshinori Okuji <okuji@enbug.org>
46786
46787 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
46788
46789 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
46790 (grub_mkdevicemap_SOURCES): New variable.
46791
46792 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
46793 lib/device.c of GRUB Legacy.
46794
7224189a 467952005-07-10 Yoshinori Okuji <okuji@enbug.org>
46796
46797 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
46798 instead of PATH is NULL.
46799
68c864eb 468002005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
46801
46802 * commands/cmp.c (BUFFER_SIZE): New macro.
46803 (grub_cmd_cmp): Close the right file at the right time. Compare
46804 only data just read. Don't report files of different size as
46805 identical. Dynamically allocate buffers. Move variable
46806 declarations at the beginning of function.
46807
e6f3e614 468082005-07-09 Yoshinori Okuji <okuji@enbug.org>
46809
46810 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46811 reverse.
46812
f8f1559a 468132004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46814
46815 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46816 when backspace is pressed at beginning of line.
46817
39c9d41d 468182005-07-03 Yoshinori Okuji <okuji@enbug.org>
46819
46820 * DISTLIST: Added genfslist.sh.
46821
46822 * normal/main.c (fs_module_list): New variable.
46823 (autoload_fs_module): New function.
46824 (read_fs_list): Likewise.
46825 (grub_normal_execute): Call read_fs_list.
46826
46827 * kern/fs.c (grub_fs_autoload_hook): New variable.
46828 (grub_fs_probe): Added support for auto-loading.
46829
46830 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46831 (grub_fs_module_list_t): New type.
46832
46833 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46834 (grub_fs_autoload_hook): New prototype.
46835
46836 * genfslist.sh: New file.
f19dbdb7 46837
39c9d41d 46838 * genmk.rb: Added a rule to generate a filesystem list.
46839
121c1d83 468402005-06-30 Marco Gerards <metgerards@student.han.nl>
46841
46842 * configure.ac: Fix the test for cross-compiling.
46843
46844 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46845 define GRUB_UTIL anymore.
46846
46847 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
46848 so this function works on other systems than just big endian.
46849 (load_modules): Likewise.
46850 (add_segments): Likewise.
46851
e75d76e1 468522005-06-23 Hollis Blanchard <hollis@penguinppc.org>
46853
46854 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
46855 contains `l' modifier, get a long from va_arg().
46856
50b5a0a7 468572005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
46858
46859 * kern/mm.c (grub_free): If the next free block which is being
46860 merged is the first free block, set the first block to the block
46861 being freed.
46862 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46863
89371b20 468642005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46865
46866 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46867 `grub_ieee1275_chosen'.
46868
168d6e58 468692005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46870
46871 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46872 (grub_ieee1275_chosen): New variable.
46873 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46874 `chosen'.
46875 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46876 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46877 Rename first argument to `phandle' for consistency.
46878 (grub_ieee1275_get_property_length): Likewise.
46879 (grub_ieee1275_next_property): Likewise. Change type of first argument
46880 to grub_ieee1275_phandle_t.
46881 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46882 Move export next to declaration.
46883 (grub_ieee1275_chosen): New variable.
46884 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46885 Correct cosmetic typo.
46886 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46887 `grub_ieee1275_chosen'.
46888 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46889 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46890 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46891 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46892 `grub_ieee1275_chosen'.
46893
ca5baa3f 468942005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46895
46896 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46897 /chosen/bootargs.
46898 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46899 /chosen/bootargs as "variable=value" pairs.
46900
708b345f 469012005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46902
46903 * include/grub/misc.h (grub_dprintf): New macro.
46904 (grub_real_dprintf): New prototype.
46905 (grub_strword): Likewise.
46906 (grub_iswordseparator): Likewise.
46907 * kern/misc.c (grub_real_dprintf): New function.
46908 (grub_strword): Likewise.
46909 (grub_iswordseparator): Likewise.
46910
f4c5e67c 469112005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46912
46913 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46914 (roundup): Remove macro.
46915 (grub_ieee1275_flags): Make static.
46916 (grub_ieee1275_realmode): Remove.
46917 (grub_ieee1275_test_flag): New function.
46918 (grub_ieee1275_set_flag): Likewise.
46919 (find_options): Rename to `grub_ieee1275_find_options'; update
46920 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46921 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46922 (cmain): New prototype.
46923 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46924 `grub_ieee1275_flags' directly.
46925 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46926 machine/biosdisk.h.
46927 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46928 Don't include grub/machine/init.h.
46929 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46930 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46931 Remove prototype.
46932 (grub_ieee1275_realmode): Likewise.
46933 (grub_ieee1275_flag): New enum.
46934 (grub_ieee1275_test_flag): New prototype.
46935 (grub_ieee1275_set_flag): New prototype.
46936 * include/grub/powerpc/ieee1275/init.h: Remove file.
46937 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46938 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46939 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46940 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46941 comment.
46942 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46943 `grub_ieee1275_test_flag'.
46944 (grub_ieee1275_encode_devname): Likewise.
46945
ed16607e 469462005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46947
46948 * include/grub/powerpc/ieee1275/ieee1275.h
46949 (grub_ieee1275_encode_devname): New prototype.
46950 (grub_ieee1275_get_filename): Likewise.
46951 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46952 function.
46953 (grub_set_prefix): Likewise.
46954 (grub_machine_init): Call grub_set_prefix.
46955 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46956 (grub_parse_type): New enum.
46957 (grub_ieee1275_get_devargs): New function.
46958 (grub_ieee1275_get_devname): Likewise.
46959 (grub_ieee1275_parse_args): Likewise.
46960 (grub_ieee1275_get_filename): Likewise.
46961 (grub_ieee1275_encode_devname): Likewise.
46962
be369920 469632005-03-30 Marco Gerards <metgerards@student.han.nl>
46964
46965 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46966 `grub_loader_unset'.
46967
a5ce3a4a 469682005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46969
46970 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46971 instead of grub_ieee1275_interpret.
46972 (grub_halt_init): New function.
46973 (grub_halt_fini): Likewise.
46974 (GRUB_MOD_INIT): Correct message grammar.
46975 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46976 instead of grub_ieee1275_interpret.
46977 (grub_reboot_init): New function.
46978 (grub_reboot_fini): Likewise.
46979 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46980 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46981 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46982 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
46983 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
46984 function.
46985 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
46986 Add prototype.
46987 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
46988 prototype.
46989 (grub_halt): Likewise.
46990 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
46991 (cmain): Remove __attribute__((unused)).
46992 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
46993 (grub_heap_len): Likewise.
46994 (grub_machine_fini): New function.
46995 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
46996 (grub_halt): Likewise.
46997 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
46998 function.
46999 * util/powerpc/ieee1275/misc.c: New file.
47000
0058f771 470012005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47002
47003 * DISTLIST: New file.
47004 * gendistlist.sh: Likewise.
f19dbdb7 47005
0058f771 47006 * Makefile.in (COMMON_DISTFILES): Removed.
47007 (BOOT_DISTFILES): Likewise.
47008 (CONF_DISTFILES): Likewise.
47009 (DISK_DISTFILES): Likewise.
47010 (FS_DISTFILES): Likewise.
47011 (INCLUDE_DISTFILES): Likewise.
47012 (KERN_DISTFILES): Likewise.
47013 (LOADER_DISTFILES): Likewise.
47014 (TERM_DISTFILES): Likewise.
47015 (UTIL_DISTFILES): Likewise.
47016 (DISTFILES): Likewise.
47017 (uninstall): Uninstall files in $(pkgdata_DATA).
47018 (DISTLIST): New target.
47019 (distdir): Use the contents of the file DISTLIST to get a list of
47020 distributed files.
47021
46b3b8a5 470222005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47023
47024 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47025 descriptor. This is ported from GRUB Legacy.
47026
47027 * gencmdlist.sh: Added an extra semicolon to make it work with
47028 old sed versions. Reported by Robert Bihlmeyer
47029 <robbe@orcus.priv.at>.
47030
5822ff87 470312005-03-08 Yoshinori Okuji <okuji@enbug.org>
47032
47033 Automatic loading of commands is supported.
f19dbdb7 47034
5822ff87 47035 * normal/main.c (read_command_list): New function.
47036 (grub_normal_execute): Call read_command_list.
47037
47038 * normal/command.c (grub_register_command): Return zero or CMD.
47039 Allocate CMD->NAME from the heap.
47040 Initialize CMD->MODULE_NAME to zero.
47041 Find the same name as well. If the same command is found and it is
47042 a dummy command, overwrite members. If it is not a dummy command,
47043 return zero.
47044 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47045 (grub_command_find): If a dummy command is found, load a module
47046 and retry to find a command only once.
47047
47048 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47049 make sure that each command is loaded.
47050
47051 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47052 macro.
47053 (struct grub_command): Remove const from the member `name'.
47054 Add a new member `module_name'.
47055 (grub_register_command): Return grub_command_t.
47056
47057 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47058 sure that each command is loaded.
47059
47060 * genmk.rb (PModule::rule): Specify a module name without the
47061 suffix ".mod" to gencmdlist.sh.
47062
7b1f4b57 470632005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47064
47065 * gencmdlist.sh: New file.
f19dbdb7 47066
7b1f4b57 47067 * genmk.rb (PModule::rule): Generate a rule for a command list.
47068 Clean command.lst.
47069 Generate command.lst from $(COMMANDFILES).
47070
47071 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47072 (DATA): Added $(pkgdata_DATA).
47073 (install-local): Install files in $(pkgdata_DATA).
47074
062aaf39 470752005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47076
47077 * term/i386/pc/vga.c (debug_command): Removed.
47078 (GRUB_MOD_INIT): Do not register the command "debug".
47079
47080 From Hollis Blanchard:
47081 * commands/configfile.c: New file.
47082 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47083 commands/configfile.c.
47084 (pkgdata_MODULES): Added configfile.mod.
47085 (configfile_mod_SOURCES): New variable.
47086 (configfile_mod_CFLAGS): Likewise.
47087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47088 commands/configfile.c.
47089 (pkgdata_MODULES): Added configfile.mod.
47090 (configfile_mod_SOURCES): New variable.
47091 (configfile_mod_CFLAGS): Likewise.
47092 * util/grub-emu.c (main): Call grub_configfile_init and
47093 grub_configfile_fini.
47094 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47095 prototype.
47096 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 47097
cee01aa6 470982005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47099
47100 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47101 address.
47102
47103 * commands/help.c (grub_cmd_help): Do not print newlines after
47104 the last command in print_command_help.
47105
93f3a1d8 471062005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47107
47108 * commands/default.h: New file.
47109 * commands/timeout.h: Likewise.
47110 * normal/context.c: Likewise.
f19dbdb7 47111
93f3a1d8 47112 * util/misc.c: Do not include sys/times.h.
47113 Include sys/time.h and grub/machine/time.h.
47114 (grub_get_rtc): Rewritten with gettimeofday.
47115
47116 * util/grub-emu.c (main): Call grub_default_init and
47117 grub_timeout_init before grub_normal_init, and call
47118 grub_timeout_fini and grub_default_fini after grub_main.
47119
47120 * util/console.c (grub_ncurses_checkkey): Return the read
47121 character or -1.
47122
47123 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47124 timeouts.
47125
47126 * normal/main.c (read_config_file): Push MENU. If this fails,
47127 print an error and wait for a user input.
47128 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47129 If a menu is empty or an error occurs, pop MENU.
47130 (grub_normal_execute): Pop and free MENU after grub_menu_run
47131 returns.
47132
47133 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47134
47135 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47136 include time.h.
47137 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47138 without GRUB_UTIL.
47139 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47140 time.h.
47141 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47142 without GRUB_UTIL.
47143
47144 * include/grub/normal.h (struct grub_menu_list): New struct.
47145 (grub_menu_list_t): New type.
47146 (struct grub_context): New struct.
47147 (grub_context_t): New type.
47148 (grub_register_command): Got rid of EXPORT_FUNC.
47149 (grub_unregister_command): Likewise.
47150 (grub_context_get): New prototype.
47151 (grub_context_get_current_menu): Likewise.
47152 (grub_context_push_menu): Likewise.
47153 (grub_context_pop_menu): Likewise.
47154 [GRUB_UTIL] (grub_default_init): Likewise.
47155 [GRUB_UTIL] (grub_default_fini): Likewise.
47156 [GRUB_UTIL] (grub_timeout_init): Likewise.
47157 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47158
47159 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47160 commands/timeout.c and normal/context.c.
47161 (pkgdata_MODULES): Added default.mod and timeout.mod.
47162 (normal_mod_SOURCES): Added normal/context.c.
47163 (default_mod_SOURCES): New variable.
47164 (default_mod_CFLAGS): Likewise.
47165 (timeout_mod_SOURCES): Likewise.
47166 (timeout_mod_CFLAGS): Likewise.
47167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47168 conf/i386-pc.rmk.
47169 (pkgdata_MODULES): Added default.mod and timeout.mod.
47170 (normal_mod_SOURCES): Added normal/context.c.
47171 (default_mod_SOURCES): New variable.
47172 (default_mod_CFLAGS): Likewise.
47173 (timeout_mod_SOURCES): Likewise.
47174 (timeout_mod_CFLAGS): Likewise.
47175
47176 * Makefile.in (all-local): Added $(MKFILES).
47177
4ed2e1dd 471782005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47179
47180 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47181 (grub_emu_SOURCES): Likewise.
47182 (pkgdata_MODULES): Add `sun.mod'.
47183 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47185 `partmap/sun.c'.
47186 (pkgdata_MODULES): Add `sun.mod'.
47187 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47188 * include/grub/partition.h (grub_sun_partition_map_init): New
47189 prototype.
47190 (grub_sun_partition_map_fini): Likewise.
47191 * partmap/sun.c: New file.
47192 * util/grub-emu.c (main): Initialize and de-initialize the sun
47193 partitionmap support.
47194
4d4e372e 471952005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47196
47197 This implements an Emacs-like menu entry editor.
f19dbdb7 47198
4d4e372e 47199 * normal/menu_entry.c: New file.
f19dbdb7 47200
4d4e372e 47201 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47202 characters to ASCII.
47203 (saved_char): New variable.
47204 (grub_ncurses_checkkey): Rewritten completely.
47205 (grub_ncurses_getkey): Likewise.
47206 (grub_ncurses_init): Call raw instead of cbreak.
47207
47208 * normal/menu.c (print_entry): Do not put a space.
47209 (init_page): Renamed to ...
47210 (grub_menu_init_page): ... this. All callers changed.
47211 (edit_menu_entry): Removed.
47212 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47213
47214 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47215
47216 * kern/misc.c (grub_vprintf): Call grub_refresh.
47217
47218 * normal/menu.c (DISP_LEFT): Renamed to ...
47219 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47220 * normal/menu.c (DISP_UP): Renamed to ...
47221 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47222 * normal/menu.c (DISP_RIGHT): Renamed to ...
47223 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47224 * normal/menu.c (DISP_DOWN): Renamed to ...
47225 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47226 * normal/menu.c (DISP_HLINE): Renamed to ...
47227 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47228 * normal/menu.c (DISP_VLINE): Renamed to ...
47229 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47230 * normal/menu.c (DISP_UL): Renamed to ...
47231 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47232 * normal/menu.c (DISP_UR): Renamed to ...
47233 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47234 * normal/menu.c (DISP_LL): Renamed to ...
47235 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47236 * normal/menu.c (DISP_LR): Renamed to ...
47237 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47238 * normal/menu.c (TERM_WIDTH): Renamed to ...
47239 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47240 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47241 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47242 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47243 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47244 * normal/menu.c (TERM_MARGIN): Renamed to ...
47245 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47246 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47247 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47248 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47249 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47250 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47251 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47252 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47253 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47254 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47255 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47256 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47257 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47258 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47259 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47260 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47261 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47262 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47263 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47264 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47265 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47266 All callers changed.
47267
47268 * include/grub/normal.h: New prototype.
47269
47270 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47271 normal/menu_entry.c.
47272 (normal_mod_SOURCES): Likewise.
47273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47274 (normal_mod_SOURCES): Likewise.
47275
e6b92c8a 472762005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47277
47278 * include/grub/normal.h (grub_halt_init): New prototype.
47279 (grub_halt_fini): Likewise.
47280 (grub_reboot_init): Likewise.
47281 (grub_reboot_fini): Likewise.
47282
47283 * util/grub-emu.c: Include signal.h.
47284 (main_env): New global variable.
47285 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
47286 catch C-c.
47287 (grub_machine_fini): New function.
47288 (main): Call grub_halt_init and grub_reboot_init before
47289 grub_main, and grub_reboot_fini and grub_halt_fini after it.
47290 Call setjmp with MAIN_ENV to go back afterwards.
47291 Call grub_machine_fini right before return.
47292
47293 * include/grub/util/misc.h: Include setjmp.h.
47294 (main_env): New prototype.
47295
47296 * include/grub/kernel.h (grub_machine_fini): New prototype.
47297 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
47298 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
47299
47300 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
47301 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
47302 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 47303
e6b92c8a 47304 * util/i386/pc/misc.c: New file.
f19dbdb7 47305
e6b92c8a 47306 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47307 util/i386/pc/misc.c, commands/i386/pc/halt.c and
47308 commands/i386/pc/reboot.c.
47309
c642636f 473102005-02-14 Guillem Jover <guillem@hadrons.org>
47311
47312 * include/grub/dl.h (grub_dl_check_header): New prototype.
47313 (grub_arch_dl_check_header): Change return type to grub_err_t,
47314 remove size parameter and export function. Update all callers.
47315 * kern/dl.c (grub_dl_check_header): New function.
47316 (grub_dl_load_core): Use `grub_dl_check_header' instead of
47317 `grub_arch_dl_check_header'. Check ELF type. Check if sections
47318 are inside the core.
47319 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
47320 independent ELF header checks.
47321 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47322 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
47323 `grub_dl_check_header' instead of explicit checks. Check for the
47324 ELF type.
47325 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
47326 `grub_dl_check_header' instead of explicit checks. Remove arch
47327 specific ELF header checks.
47328
e6b92c8a 47329 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
47330 argument SIZE.
47331
5eabe94b 473322005-02-13 Hollis Blanchard <hollis@penguinppc.org>
47333
47334 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
47335 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
47336
1b14a681 473372005-02-12 Hollis Blanchard <hollis@penguinppc.org>
47338
47339 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 47340 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 47341 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 47342 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 47343 * partmap/amiga.c (amiga_partition_map_iterate): Return
47344 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
47345 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47346
aca108aa 473472005-02-01 Guillem Jover <guillem@hadrons.org>
47348
47349 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
47350 help info.
47351
c9f9c556 473522005-01-31 Marco Gerards <metgerards@student.han.nl>
47353
47354 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
47355 Removed prototype.
47356 (grub_rescue_cmd_linux): New prototype.
47357 (grub_rescue_cmd_initrd): Likewise.
47358 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
47359 `bi_rec'.
47360 (grub_linux_release_mem): Release the memory for the initrd.
47361 (grub_load_linux): Renamed from this...
47362 (grub_rescue_cmd_linux): ...To this. Changed all callers.
47363 Changed `entry' not to be static. Loop over memory regions to
47364 find another one when the default fails.
47365 (grub_rescue_cmd_initrd): New function.
47366 (grub_linux_init): Remove function.
47367 (grub_linux_fini): Likewise.
47368 (GRUB_MOD_INIT): Register `initrd'.
47369 (GRUB_MOD_FINI): Unregister `initrd'.
47370 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
47371 Function removed.
47372 (grub_linux_normal_fini): Likewise.
47373 (GRUB_MOD_INIT): Register `initrd'.
47374 (GRUB_MOD_FINI): Unregister `initrd'.
47375
990cf3aa 473762005-01-31 Marco Gerards <metgerards@student.han.nl>
47377
47378 * commands/help.c: New file.
47379 * normal/arg.c (show_help): Renamed to...
47380 (grub_arg_show_help): ... this.
47381 * commands/i386/pc/halt.c: New file.
47382 * commands/i386/pc/reboot.c: Likewise.
47383 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
47384 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
47385 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
47386 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
47387 variables.
47388 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47389 `commands/help.c'.
47390 (pkgdata_MODULES): Add `help.mod'.
47391 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
47392 * grub/i386/pc/init.h (grub_reboot): New prototype.
47393 (grub_halt): Likewise.
47394 * include/grub/normal.h (grub_arg_show_help): New prototype.
47395 (grub_help_init): Likewise.
47396 (grub_help_fini): Likewise.
47397 * util/grub-emu.c (main): Initialize and deinitialize the help
47398 command.
47399
47400 * normal/cmdline.c (grub_cmdline_get): Doc fix.
47401
47402 * normal/command.c (grub_command_init): Fixed the description of
47403 the `set' and `unset' commands.
47404
474052005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 47406
47407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
47408 function.
47409 * commands/ieee1275/halt.c: New file.
47410 * commands/ieee1275/reboot.c: Likewise.
47411 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
47412 `__attribute__ ((unused))'. Some GCS related fixed.
47413 (grub_suspend_init) [GRUB_UTIL]: Function removed.
47414 (grub_suspend_fini): Likewise.
47415 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
47416 and `halt.mod'.
47417 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
47418 (halt_mod_CFLAGS): New variables.
47419 * include/grub/powerpc/ieee1275/ieee1275.h
47420 (grub_ieee1275_interpret): New prototype.
47421
1ab09cc7 474222005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
47423
47424 * include/grub/misc.h (memmove): New prototype.
47425 (memcpy): Likewise.
47426
8b8cbdb2 474272005-01-22 Hollis Blanchard <hollis@penguinppc.org>
47428
47429 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
47430 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
47431
e3741a27 474322005-01-22 Marco Gerards <metgerards@student.han.nl>
47433
47434 * kern/misc.c (grub_strndup): Function rewritten.
47435
776bd780 474362005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
47437
47438 * normal/menu.c (TERM_WIDTH): Macro redefined.
47439 (TERM_TOP_BORDER_Y): Likewise.
47440 (draw_border): Replaced while-loop by a for-loop. Make the number
47441 of lines consistent with the number of lines displayed in
47442 print_entries. Added a margin below the rectangle.
47443 (print_entry): Make the entry fit in the rectangle.
47444 (print_entries): Display the scroll arrows next to the right
47445 border.
47446
78026bce 474472005-01-21 Marco Gerards <metgerards@student.han.nl>
47448
47449 * fs/minix.c (grub_minix_find_file): Reserve more space for
47450 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
47451 `grub_strncpy' to copy `path' into it.
47452
67bbaf0f 474532005-01-21 Marco Gerards <metgerards@student.han.nl>
47454
47455 Add the loopback device, a device via which files can be accessed
47456 as devices.
f19dbdb7 47457
67bbaf0f 47458 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
47459 (pkgdata_MODULES): Add loopback.mod.
47460 (loopback_mod_SOURCES): New variable.
47461 (loopback_mod_CFLAGS): Likewise.
47462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47463 `disk/loopback.c'.
47464 (pkgdata_MODULES): Add loopback.mod.
47465 (loopback_mod_SOURCES): New variable.
47466 (loopback_mod_CFLAGS): Likewise.
47467 * disk/loopback.c: new file.
47468 * include/grub/normal.h (grub_loop_init): New prototype.
47469 (grub_loop_fini): New prototype.
47470 * util/grub-emu.c (main): Initialize and de-initialize loopback
47471 support.
47472 * include/grub/disk.h (grub_disk_dev_id): Add
47473 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
47474
6f1c18bd 474752005-01-20 Hollis Blanchard <hollis@penguinppc.org>
47476
47477 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
47478 function.
47479 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
47480 (suspend_mod_SOURCES): New variable.
47481 (suspend_mod_CFLAGS): Likewise.
47482 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
47483 New prototype.
47484 * commands/ieee1275/suspend.c: New file.
47485
b38551da 474862005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47487
47488 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 47489 ((unused))' to `__attribute__ ((used))'.
b38551da 47490 (GRUB_MOD_FINI): Likewise.
47491 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
47492 * genmk.rb (PModule): Assign space to common symbols when linking
47493 modules.
47494
777aff39 474952005-01-20 Marco Gerards <metgerards@student.han.nl>
47496
47497 * include/grub/mm.h (grub_mm_init_region): Change the type of the
47498 `unsigned' arguments to `grub_size_t'.
47499 (grub_malloc): Likewise.
47500 (grub_realloc): Likewise.
47501 (grub_memalign): Likewise.
47502 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
47503 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47504 * util/misc.c (grub_malloc): Likewise.
47505 (grub_realloc): Likewise.
47506 * kern/mm.c (get_header_from_pointer): Change the casts to
47507 `unsigned' into a cast to `grub_size_t'.
47508
47509 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
47510 point to `currnode' when `currnode' is changed.
47511
47512 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
47513 Schottelius <nico-linux@schottelius.org>.
47514
d0ff18e1 475152005-01-09 Hollis Blanchard <hollis@penguinppc.org>
47516
47517 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
47518 (note_path): Remove variable.
47519 (GRUB_IEEE1275_NOTE_NAME): New macro.
47520 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
47521 (grub_ieee1275_note_hdr): New structure.
47522 (grub_ieee1275_note_desc): Likewise.
47523 (grub_ieee1275_note): Likewise.
47524 (load_note): Remove `dir' argument. All callers updated. Remove
47525 `note_img' and `path'. Do not load a file from `note_path'.
47526 Initialize a struct grub_ieee1275_note and write that to `out'.
47527 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
47528
4ca7004c 475292005-01-05 Marco Gerards <metgerards@student.han.nl>
47530
47531 * util/misc.c (grub_util_read_image): Revert last change. It
47532 called `grub_util_read_at', which seeks from the beginning of the
47533 file.
47534
0b412211 475352005-01-04 Hollis Blanchard <hollis@penguinppc.org>
47536
47537 * TODO: Add note about endianness in grub-mkimage.
47538 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
47539 section.
47540 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
47541 (grub_mkimage_SOURCES): New target.
47542 * include/grub/kernel.h (grub_start_addr): Remove variable.
47543 (grub_end_addr): Likewise.
47544 (grub_total_module_size): Likewise.
47545 (grub_kernel_image_size): Likewise.
47546 (GRUB_MODULE_MAGIC): New constant.
47547 (grub_module_info): New structure.
47548 (grub_arch_modules_addr): New prototype.
47549 (grub_get_end_addr): Remove prototype.
47550 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
47551 * include/grub/powerpc/ieee1275/kernel.h: New file.
47552 * include/grub/util/misc.h (grub_util_get_fp_size): New
47553 prototype.
47554 (grub_util_read_at): Likewise.
47555 (grub_util_write_image_at): Likewise.
47556 * kern/main.c (grub_get_end_addr): Remove function.
47557 (grub_load_modules): Call grub_arch_modules_addr instead of using
47558 grub_end_addr. Look for a grub_module_info struct in memory. Use
47559 the grub_module_info fields instead of calling grub_get_end_addr
47560 as loop conditions. Move grub_add_unused_region code here.
47561 (grub_add_unused_region): Remove function.
47562 * kern/i386/pc/init.c: Include grub/cache.h.
47563 (grub_machine_init): Remove call to grub_get_end_addr. Remove
47564 one call to add_mem_region.
47565 (grub_arch_modules_addr): New function.
47566 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
47567 (grub_total_module_size): Likewise.
47568 Include grub/machine/kernel.h.
47569 (grub_arch_modules_addr): New function.
47570 * util/grub-emu.c (grub_end_addr): Remove variable.
47571 (grub_total_module_size): Likewise.
47572 (grub_arch_modules_addr): New function.
47573 * util/misc.c: Include unistd.h.
47574 (grub_util_get_fp_size): New function.
47575 (grub_util_read_at): Likewise.
47576 (grub_util_write_image_at): Likewise.
47577 (grub_util_read_image): Call grub_util_read_at.
47578 (grub_util_write_image): Call grub_util_write_image_at.
47579 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
47580 additional memory in kernel_img for a struct grub_module_info.
47581 Fill in that grub_module_info.
47582 * util/powerpc/ieee1275/grub-mkimage.c: New file.
47583
458786f8 475842005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47585
47586 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
47587 New function.
47588 * include/grub/powerpc/ieee1275/ieee1275.h
47589 (grub_ieee1275_milliseconds): New prototype.
47590 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
47591 Change to 1000.
47592 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
47593 grub_ieee1275_milliseconds.
47594
ac507d1b 475952005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47596
47597 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
47598 variable.
47599 (find_options): New function.
47600 (cmain): Call find_options.
47601 * include/grub/powerpc/ieee1275/ieee1275.h
47602 (grub_ieee1275_realmode): New extern variable.
47603 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
47604 grub_map if grub_ieee1275_realmode is false.
47605
6b8fd1c4 476062004-12-29 Marco Gerards <metgerards@student.han.nl>
47607
47608 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
47609 lines are inserted and make it work like readline. Reported by
47610 Vincent Pelletier <subdino2004@yahoo.fr>.
47611
8514a1e0 476122004-12-28 Marco Gerards <metgerards@student.han.nl>
47613
47614 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
47615
47616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
47617 `kern/powerpc/cache.S'.
47618
924b6140 476192004-12-27 Marco Gerards <metgerards@student.han.nl>
47620
47621 * genmk.rb: Handle the `Program' class in the main loop. Written
47622 by Johan Rydberg <jrydberg@gnu.org>.
47623 (Program): New class.
47624 (programs): New variable.
47625 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
47626 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
47627 instead of "grub/kernel.h". Include <grub/machine/init.h>.
47628 (help_arch): Function removed.
47629 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
47630 `powerpc/libgcc.h' and `loader.h'.
47631 (pkgdata_PROGRAMS): New variable.
47632 (sbin_UTILITIES): Variable removed.
47633 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
47634 (grubof_SOURCES): Variable re-defined so it only includes the
47635 core functionality.
47636 (grubof_CFLAGS): Remove `-DGRUBOF'.
47637 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
47638 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
47639 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
47640 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
47641 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
47642 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
47643 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
47644 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
47645 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
47646 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
47647 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47648 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
47649 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
47650 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
47651 (pc_mod_CFLAGS): New variables.
47652 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
47653 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
47654 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
47655 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
47656 Moved from here...
47657 * include/grub/i386/pc/init.h (grub_os_area_addr)
47658 (rub_os_area_size): ... to here.
47659 * include/grub/powerpc/ieee1275/ieee1275.h
47660 (grub_ieee1275_entry_fn): Export symbol.
47661 * include/grub/powerpc/ieee1275/init.h: New file.
47662 * include/grub/powerpc/libgcc.h: Likewise.
47663 * include/grub/cache.h: Likewise.
47664 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
47665 <hollis@penguinppc.org>.
47666 * kern/dl.c: Include <grub/cache.h>.
47667 (grub_dl_flush_cache): New function.
47668 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
47669 for this module.
47670 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
47671 (grub_console_init): Removed prototypes.
47672 (grub_machine_init): Don't initialize the modules anymore.
47673 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
47674 static.
47675 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
47676 Macro undef removed.
47677 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
47678 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
47679 relocation `R_PPC_REL32'. Return an error when the relocation is
47680 unknown.
47681 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
47682 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
47683 * util/misc.c (grub_arch_sync_caches): Likewise.
47684
e4b47e0c 476852004-12-19 Marco Gerards <metgerards@student.han.nl>
47686
47687 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
47688 `symlist.c', add `grubof_symlist.c'.
47689 (symlist.c): Variable removed.
47690 (grubof_HEADERS): Variable added.
47691 (grubof_symlist.c): New target.
47692 (kernel_syms.lst): Use `grubof_HEADERS' instead of
47693 `kernel_img_HEADERS'.
47694 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
47695 * kern/powerpc/dl.c: New file.
47696 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
47697 Function removed.
47698 (grub_arch_dl_relocate_symbols): Likewise.
47699 (grub_register_exported_symbols): Likewise.
47700
4ceb3636 477012004-12-13 Marco Gerards <metgerards@student.han.nl>
47702
47703 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
47704 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
47705 to fail instead. Reported by Vincent Pelletier
47706 <subdino2004@yahoo.fr>.
47707
47708 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
47709 it is not allocated. Reported by Vincent Pelletier
47710 <subdino2004@yahoo.fr>.
47711
47712 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
47713 output so the output looks better.
f19dbdb7 47714
3f1578fe 477152004-12-04 Marco Gerards <metgerards@student.han.nl>
47716
47717 Modulize the partition map support and add support for the amiga
47718 partition map.
f19dbdb7 47719
3f1578fe 47720 * commands/ls.c: Include <grub/partition.h> instead of
47721 <grub/machine/partition.h>.
47722 * kern/disk.c: Likewise.
47723 * kern/rescue.c: Likewise.
47724 * loader/i386/pc/chainloader.c: Likewise.
47725 * normal/cmdline.c: Likewise.
47726 * kern/powerpc/ieee1275/init.c: Likewise.
47727 (grub_machine_init): Call `grub_pc_partition_map_init',
47728 `grub_amiga_partition_map_init' and
47729 `grub_apple_partition_map_init'.
47730 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
47731 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
47732 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
47733 `partition.h' and `pc_partition.h'.
47734 (grub_setup_SOURCES): Remove
47735 `disk/i386/pc/partition.c'. Add `kern/partition.c',
47736 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47737 (grub_emu_SOURCES): Likewise.
47738 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
47739 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
47740 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
47741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47742 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
47743 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47744 (grubof_SOURCES): Likewise.
47745 * disk/i386/pc/partition.c: File removed.
47746 * disk/powerpc/ieee1275/partition.c: Likewise.
47747 * include/grub/powerpc/ieee1275/partition.h: Likewise.
47748 * include/grub/i386/pc/partition.h: Likewise.
47749 * kern/partition.c: New file.
47750 * partmap/amiga.c: Likewise.
47751 * partmap/apple.c: Likewise.
47752 * partmap/pc.c: Likewise.
47753 * include/grub/partition.h: Likewise..
47754 * include/grub/pc_partition.h: Likewise.
47755 * util/grub-emu.c: Include <grub/partition.h> instead of
47756 <grub/machine/partition.h>.
47757 (main): Call `grub_pc_partition_map_init',
47758 `grub_amiga_partition_map_init' and
47759 `grub_apple_partition_map_init' and deinitialize afterwards.
47760 * util/i386/pc/biosdisk.c: Include `#include
47761 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47762 `<grub/machine/partition.h>'.
47763 * util/i386/pc/grub-setup.c: Likewise.
47764 * util/i386/pc/biosdisk.c: Likewise.
47765 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
47766 partition information in case of a PC partition.
47767 * util/i386/pc/grub-setup.c: Include `#include
47768 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47769 `<grub/machine/partition.h>'.
47770 (setup): Only access the PC specific partition information in case
47771 of a PC partition.
47772
0ef4ced9 477732004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47774
0ef4ced9 47775 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
47776 (grub_longjmp): Likewise.
47777 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
47778 20.
47779 * normal/powerpc/setjmp.S: New file.
47780 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47781 `normal/powerpc/setjmp.S'.
47782 (grubof_CFLAGS): Add `-DGRUBOF'.
47783 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
47784 [GRUB_UTIL && !GRUBOF].
f19dbdb7 47785
19950e29 477862004-11-16 Marco Gerards <metgerards@student.han.nl>
47787
47788 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
47789 property named `name'. Correctly handle the error returned by
47790 `grub_ieee1275_finddevice' if a device can not be opened.
47791
a2fea427 477922004-11-02 Hollis Blanchard <hollis@penguinppc.org>
47793
47794 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
47795 `actual' for negativity.
47796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47797 kern/fshelp.c.
47798
41ea0ea3 477992004-11-01 Marco Gerards <metgerards@student.han.nl>
47800
47801 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
47802 (PAGE_OFFSET): New macro.
47803 (CRTC_ADDR_PORT): Likewise.
47804 (CRTC_DATA_PORT): Likewise.
47805 (START_ADDR_HIGH_REGISTER): Likewise.
47806 (START_ADDR_LOW_REGISTER): Likewise.
47807 (GRAPHICS_ADDR_PORT): Likewise.
47808 (GRAPHICS_DATA_PORT): Likewise.
47809 (READ_MAP_REGISTER): Likewise.
47810 (INPUT_STATUS1_REGISTER): Likewise.
47811 (INPUT_STATUS1_VERTR_BIT): Likewise.
47812 (page): New variable.
47813 (wait_vretrace): New function.
47814 (set_read_map): Likewise.
47815 (set_start_address): Likewise.
47816 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47817 the right page.
47818 (check_vga_mem): Take the page into account.
47819 (write_char): Likewise.
47820 (write_cursor): Likewise.
47821 (scroll_up): Likewise. Copy the page to the page that is not
47822 shown and switch between both pages.
47823 (grub_vga_putchar): Fix off by one error.
47824 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47825 account.
47826
ad0bd20b 478272004-11-01 Marco Gerards <metgerards@student.han.nl>
47828
47829 Add support for iso9660 (including rockridge).
f19dbdb7 47830
ad0bd20b 47831 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47832 (iso9660_mod_SOURCES): New variable.
47833 (iso9660_mod_CFLAGS): Likewise.
47834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47835 * include/grub/fs.h (grub_iso9660_init): New prototype.
47836 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47837 * fs/iso9660.c: New file.
47838
47839 * include/grub/misc.h (grub_strncat): New prototype.
47840 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47841
ad0bd20b 47842 * fs/hfs.c (grub_hfs_mount): Translate the error
47843 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47844 * fs/jfs.c (grub_jfs_mount): Likewise.
47845 * fs/ufs.c (grub_ufs_mount): Likewise.
47846
a5477a59 478472004-10-28 Hollis Blanchard <hollis@penguinppc.org>
47848
47849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
47850 which initialized BAT registers.
47851 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
47852 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47853 Move from here...
47854 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
47855 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47856 ... to here.
47857 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
47858 (grub_mapclaim): Likewise.
47859 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
47860 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47861 hand.
47862
9304c1f8 478632004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47864
47865 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47866 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47867 -ffreestanding and -msoft-float.
47868
86f4ae25 478692004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47870
47871 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47872 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47873 set in grub_ieee1275_flags.
47874
38912228 478752004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47876
47877 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47878 prototype.
47879 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47880 grub_console_init first.
47881 Change the memory range used for grub_ieee1275_claim and
47882 grub_mm_init_region.
47883 Print an error message if the claim fails.
47884 Include <grub/misc.h>.
47885
d1923dc8 478862004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47887
47888 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47889 Call grub_children_iterate for device nodes of type `scsi',
47890 `ide', or `ata'.
47891 (grub_ofdisk_open): Remove manual device alias resolution.
47892 Fix memory leak when device cannot be opened.
f19dbdb7 47893 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47894 (grub_children_iterate): New prototype.
47895 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47896 New function.
47897 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47898 Return -1 if args.size was -1.
47899
4512e4f3 479002004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47901
47902 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47903 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47904 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47905 Open Firmware's memory for it; claim memory from _start to _end.
47906 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47907 (_end): New extern.
47908 (_start): Zero BSS from __bss_start to _end.
47909 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47910 New extern.
47911 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47912
4d61feb0 479132004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47914
ad0bd20b 47915 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47916 -1 if args.base was -1.
4d61feb0 47917
026fa2f9 479182004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47919
47920 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47921 escape sequence instead of a literal ^L. Also call
47922 grub_ofconsole_gotoxy.
47923
9f2220ef 479242004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47925
47926 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47927 void * arguments to grub_addr_t. All callers updated. Also make
47928 the `result' argument optional.
47929 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47930 All callers updated.
47931
8a572cd7 479322004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47933
47934 * commands/ls.c (grub_ls_list_files): Use the string following the
47935 initial ')', if present, as the filesystem path.
47936 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47937
47938 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47939
18aa81f2 479402004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47941
47942 Make the source code of the menu interface more readable.
f19dbdb7 47943
18aa81f2 47944 * normal/menu.c: Include grub/mm.h.
47945 (TERM_WIDTH): New macro.
47946 (TERM_HEIGHT): Likewise.
47947 (TERM_INFO_HEIGHT): Likewise.
47948 (TERM_MARGIN): Likewise.
47949 (TERM_SCROLL_WIDTH): Likewise.
47950 (TERM_TOP_BORDER_Y): Likewise.
47951 (TERM_LEFT_BORDER_X): Likewise.
47952 (TERM_BORDER_WIDTH): Likewise.
47953 (TERM_MESSAGE_HEIGHT): Likewise.
47954 (TERM_BORDER_HEIGHT): Likewise.
47955 (TERM_NUM_ENTRIES): Likewise.
47956 (TERM_FIRST_ENTRY_Y): Likewise.
47957 (TERM_ENTRY_WIDTH): Likewise.
47958 (TERM_CURSOR_X): Likewise.
47959 (draw_border): Use macros instead of magic numbers.
47960 (print_entry): Likewise.
47961 (print_entries): Likewise.
47962 (run_menu): Likewise. Also, handle the key 'e'.
47963 (run_menu_entry): Ignore empty command lines.
47964 (print_message): Added a new argument EDIT. If EDIT is true,
47965 print a different message.
47966 (init_page): Likewise.
47967 (edit_menu_entry): New function. Not implemented yet.
47968
b47efe30 479692004-09-17 Marco Gerards <metgerards@student.han.nl>
47970
47971 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47972 can be loaded from normal mode.
f19dbdb7 47973
b47efe30 47974 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47975 `multiboot.mod'.
47976 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47977 (multiboot_mod_CFLAGS): New variables.
47978 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47979 * loader/i386/pc/multiboot_normal.c: Likewise.
47980
b47efe30 47981 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47982 attribute `unused'.
f19dbdb7 47983
b47efe30 47984 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
47985 `fdiro' to read the mode information from instead of `diro'.
47986
47987 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
47988 looking up a symlink.
47989
47990 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
47991 macro.
47992 * normal/command.c (grub_command_execute): Don't parse the
47993 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
47994 flags of the command.
47995
47996 * normal/menu.c (grub_menu_run): Fix typo.
47997
da75ac71 479982004-09-14 Hollis Blanchard <hollis@penguinppc.org>
47999
48000 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48001
48002 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48003 `y + 1' instead of `y - 1'.
48004
48005 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 48006
062b24c2 480072004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48008
48009 From Hollis Blanchard <hollis@penguinppc.org>:
48010 * kern/misc.c (memmove): New alias for grub_memmove.
48011 (memcmp): New alias for grub_memcmp.
48012 (memset): New alias for grub_memset.
f19dbdb7 48013 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 48014 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 48015 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 48016 (grub_ieee1275_get_property): Likewise.
f19dbdb7 48017
8ddad845 480182004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48019
48020 Added normal mode command `chainloader' as module chain.mod, which
48021 depends on normal.mod and _chain.mod.
f19dbdb7 48022
8ddad845 48023 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48024 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48025 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48026 Deleted prototype.
48027 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48028 but arguments parsing moved to ...
48029 (grub_chainloader_cmd): ... here. New function.
48030 * include/grub/i386/pc/chainloader.h: New file.
48031 * loader/i386/pc/chainloader_normal.c: Likewise.
48032
2c1f4ce3 480332004-09-11 Marco Gerards <metgerards@student.han.nl>
48034
48035 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48036 (grub_mkimage_LDFLAGS): Likewise.
48037 (grub_emu_SOURCES): Likewise.
48038 (kernel_img_HEADERS): Added fshelp.h.
48039 * fs/ext2.c: Include <grub/fshelp.h>.
48040 (FILETYPE_REG): New macro.
48041 (FILETYPE_INO_REG): Likewise.
48042 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48043 Changed all users.
48044 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48045 all users.
48046 (grub_fshelp_node): New struct.
48047 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48048 to a pointer.
48049 (grub_ext2_get_file_block): Removed function.
48050 (grub_ext2_read_block): New function.
48051 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48052 This function was written.
48053 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48054 (grub_ext2_find_file): Removed function.
48055 (grub_ext2_read_symlink): New function.
48056 (grub_ext2_iterate_dir): Likewise.
48057 (grub_ext2_open): Rewritten.
48058 (grub_ext2_dir): Rewritten.
48059 * include/grub/fshelp.h: New file.
48060 * fs/fshelp.c: Likewise.
48061
3c52136a 480622004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48063
48064 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48065 (print_message): Add a missing newline.
48066 (run_menu): Added timeout support.
48067 (run_menu_entry): New local function.
48068 (grub_menu_run): Added support for booting.
48069
48070 * kern/loader.c (grub_loader_is_loaded): New function.
48071
48072 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48073 (grub_get_rtc): Exported.
48074
48075 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48076 (grub_get_rtc): Exported.
48077
48078 * include/grub/normal.h (struct grub_command_list): Remove
48079 constant from the member `command'.
48080
48081 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48082
48083 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48084
48085 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48086
aa033560 480872004-08-28 Marco Gerards <metgerards@student.han.nl>
48088
48089 Add support for the JFS filesystem.
48090
48091 * fs/jfs.c: New file.
48092 * include/grub/fs.h (grub_jfs_init): New prototype.
48093 (grub_jfs_fini): New prototype.
48094 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48095 (grub_emu_SOURCES): Likewise.
48096 (pkgdata_MODULES): Add jfs.mod.
48097 (jfs_mod_SOURCES): New variable.
48098 (jfs_mod_CFLAGS): Likewise.
48099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48100 (grubof_SOURCES): Likewise.
48101 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48102
48103 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48104 endian to the host endian.
48105 (grub_fat_utf16_to_utf8): Move function from there...
48106 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 48107 the endianness of the source string anymore.
aa033560 48108 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48109
94bc45af 481102004-08-24 Marco Gerards <metgerards@student.han.nl>
48111
48112 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48113 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48114 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48115 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 48116
94bc45af 48117 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48118 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48119 for `node_found' and `it_dir'.
48120 (grub_hfs_dir): Add prototype for `dir_hook'.
48121
48122 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48123 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48124 and `indir32' to silence a gcc warning.
48125
48126 * include/grub/fs.h (grub_hfs_init): New prototype.
48127 (grub_hfs_fini): Likewise.
f19dbdb7 48128
48129
97543f08 481302004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48131
48132 Each disk device has its own id now. This is useful to make use
48133 of multiple disk devices.
f19dbdb7 48134
97543f08 48135 * include/grub/disk.h (grub_disk_dev_id): New enum.
48136 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48137 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48138
48139 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48140 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48141
48142 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48143 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48144
48145 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48146 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48147
48148 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48149 "id" which is used by the cache manager.
48150
48151 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48152 of just "GRUB".
48153
64372eb4 481542004-08-18 Marco Gerards <metgerards@student.han.nl>
48155
48156 * fs/hfs.c: New file.
48157 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48158 (grub_emu_SOURCES): Likewise.
48159 (pkgdata_MODULES): Add hfs.mod.
48160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48161 (grubof_SOURCES): Likewise.
48162 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48163
48164 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48165 * kern/misc.c (grub_strncasecmp): Add function.
48166
cc61b58f 481672004-08-14 Marco Gerards <metgerards@student.han.nl>
48168
48169 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48170 with parentheses.
48171
48172 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48173 (grub_ext2_dir): In case the directory entry type is unknown, read
48174 it from the inode.
48175
0ef123f6 481762004-08-02 Peter Bruin <pjbruin@dds.nl>
48177
48178 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48179 grub_load_linux instead of grub_rescue_cmd_linux as second
48180 argument of grub_rescue_register_command.
48181
48182 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48183
a447c5df 481842004-07-27 Marco Gerards <metgerards@student.han.nl>
48185
48186 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48187 function.
48188 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48189 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48190 `loader/powerpc/ieee1275/linux.c',
48191 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48192 * include/grub/powerpc/ieee1275/ieee1275.h
48193 (grub_ieee1275_release): New prototype.
48194 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48195 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48196 normal, boot, linux and linux_normal.
48197 * loader/powerpc/ieee1275/linux.c: New file.
48198 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48199
5a9e3546 482002004-07-12 Marco Gerards <metgerards@student.han.nl>
48201
48202 * normal/arg.c (grub_arg_parse): Correct error handling after
48203 reallocating the argumentlist (check if `argl' is not null instead
48204 of checking if `args' is not null).
48205 * kern/mm.c (grub_realloc): Return the same pointer when using the
48206 same region, instead of returning the header address.
48207
e15199cb 482082004-07-11 Marco Gerards <metgerards@student.han.nl>
48209
48210 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48211 one block instead of two when looking for the initial partition.
48212 (grub_partition_probe): Initialize the local variable `p' with 0.
48213 Use base 10 for the grub_strtoul call.
48214 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48215 need for one local variable.
48216 (grub_strtoul): Don't add the new value to `num', instead of that
48217 just assign it.
48218
020616c2 482192004-07-11 Marco Gerards <metgerards@student.han.nl>
48220
48221 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48222 (pxeboot_img_SOURCES): New variable.
48223 (pxeboot_img_ASFLAGS): Likewise.
48224 (pxeboot_img_LDFLAGS): Likewise.
48225 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48226 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48227 <lode_leroy@hotmail.com>.
48228
6c51eb64 482292004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48230
48231 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48232 there was no input.
48233
cfb12aff 482342004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48235
48236 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48237 the history buffer logic.
48238
6eabba74 482392004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48240
48241 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48242 (FILETYPE_INO_SYMLINK): New macros.
48243 (grub_ext2_find_file): Check if the node is a directory using the
48244 inode stat information instead of using the filetype in the
48245 dirent. Exclude the first character of an absolute symlink.
48246 (grub_ext2_dir): Mask out the filetype part of the mode member of
48247 the inode.
48248
66e19ef8 482492004-05-24 Marco Gerards <metgerards@student.han.nl>
48250
48251 Add support for UFS version 1 and 2. Add support for the minix
48252 filesystem version 1 and 2, both the variants with 14 and 30 long
48253 filenames.
f19dbdb7 48254
66e19ef8 48255 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48256 fs/minix.c.
48257 (grub_emu_SOURCES): Likewise.
48258 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48259 (ufs_mod_SOURCES): New variable.
48260 (ufs_mod_CFLAGS): Likewise.
48261 (minix_mod_SOURCES): Likewise.
48262 (minix_mod_CFLAGS): Likewise.
48263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48264 fs/minix.c.
48265 (grubof_SOURCES): Likewise.
48266 * fs/ufs.c: New file.
48267 * fs/minix.c: New file.
48268 * include/grub/fs.h (grub_ufs_init): New prototype.
48269 (grub_ufs_fini): Likewise.
48270 (grub_minix_init): Likewise.
48271 (grub_minix_fini): Likewise.
48272 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48273 minix fs.
48274
cc2e748a 482752004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48276
48277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48278 commands/ls.c, commands/terminal.c, commands/boot.c,
48279 commands/cmp.c and commands/cat.c.
48280 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48281
48282 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48283 "env.h"
48284
4b13b216 482852004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48286
48287 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
48288 and grub_, respectively. Because the conversion is trivial and
48289 mechanical, I omit the details here. Please refer to the CVS
48290 if you need more information.
48291
6a142551 482922004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48293
48294 * include/pupa: Renamed to ...
48295 * include/grub: ... this.
48296 * util/i386/pc/pupa-mkimage.c: Renamed to ...
48297 * util/i386/pc/grub-mkimage.c: ... this.
48298 * util/i386/pc/pupa-setup.c: Renamed to ...
48299 * util/i386/pc/grub-setup.c: ... this.
48300 * util/pupa-emu.c: Renamed to ...
48301 * util/grub-emu.c: ... this.
48302
e56cdf21 483032004-03-29 Marco Gerards <metgerards@student.han.nl>
48304
48305 Add support for the newworld apple macintosh (PPC). This has been
48306 tested on the powerbook 2000 only. It only adds support for
48307 generic ieee1275 functions, console and disk support. This should
48308 be easy to port to other architectures with support for Open
48309 Firmware.
f19dbdb7 48310
e56cdf21 48311 * configure.ac: Accept the powerpc as host_cpu. In the case of
48312 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
48313 specific tests are only executed while building for the i386.
48314 Inverse test for crosscompile.
48315 * genmk.rb (Utility): Allow assembler files.
48316 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
48317 * conf/powerpc-ieee1275.rmk: New file.
48318 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
48319 * disk/powerpc/ieee1275/partition.c: Likewise.
48320 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
48321 * include/pupa/powerpc/ieee1275/console.h: Likewise.
48322 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
48323 * include/pupa/powerpc/ieee1275/time.h: Likewise.
48324 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
48325 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
48326 * include/pupa/powerpc/ieee1275/loader.h
48327 * include/pupa/powerpc/setjmp.h: Likewise.
48328 * include/pupa/powerpc/types.h: Likewise.
48329 * kern/powerpc/ieee1275/init.c: Likewise.
48330 * kern/powerpc/ieee1275/openfw.c: Likewise.
48331 * term/powerpc/ieee1275/ofconsole.c: Likewise.
48332
48333 These files were written by Johan Rydberg
48334 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 48335
e56cdf21 48336 * boot/powerpc/ieee1275/cmain.c: New file.
48337 * boot/powerpc/ieee1275/crt0.S: Likewise.
48338 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
48339 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
48340
8c8cc205 483412004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
48342
48343 * Makefile.in: Update copyright.
48344 * genmodsrc.sh: Likewise.
48345 * gensymlist.sh: Likewise.
48346 * term/i386/pc/vga.c: Indent correctly.
48347
48348 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
48349 bugreporting address.
48350 * util/i386/pc/pupa-setup.c (usage): Likewise,
48351 (main): Call pupa_ext2_init and pupa_ext2_fini.
48352
f19dbdb7 48353 * fs/fat.c (log2): Renamed to ...
8c8cc205 48354 (fat_log2): ... this.
48355 All callers changed.
48356 * kern/misc.c (memcpy): Alias to pupa_memmove.
48357 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
48358 lvalue cast.
48359 * util/console.c (pupa_ncurses_fini): Return 0.
48360
48361 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
48362 Move fail label here.
48363 [__GNU__]: Don't warn when using stat.
48364 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
48365 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
48366 long int. Use strtol instead of strtoul.
f19dbdb7 48367
db1771cf 483682004-03-14 Marco Gerards <metgerards@student.han.nl>
48369
48370 * commands/boot.c: New file.
48371 * commands/cat.c: Likewise.
48372 * commands/cmp.c: Likewise.
48373 * commands/ls.c: Likewise.
48374 * commands/terminal.c: Likewise.
48375 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
48376 (pupa_register_command): Changed interface to match the new
48377 argument parser.
48378 (pupa_command_execute): Changed (almost rewritten) so it uses
48379 pupa_split_command. Added support for setting variables using the
48380 syntax `foo=bar'.
48381 (rescue_command): Changed to work with the new argument parser.
48382 (terminal_command): Moved from here to commands/terminal.c.
48383 (set_command): New function.
48384 (unset_command): New function.
48385 (insmod_command): New function.
48386 (rmmod_command): New function.
48387 (lsmod_command): New function.
48388 (pupa_command_init): Don't initialize the command terminal
48389 anymore. Initialize the commands set, unset, insmod, rmmod and
48390 lsmod.
48391 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
48392 (kernel_img_HEADERS): Add arg.h and env.h.
48393 (pupa_mkimage_LDFLAGS): Add kern/env.c.
48394 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
48395 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
48396 normal/arg.c.
48397 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
48398 terminal.mod.
48399 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
48400 (boot_mod_SOURCES): New variable.
48401 (terminal_mod_SOURCES): Likewise.
48402 (ls_mod_SOURCES): Likewise.
48403 (cmp_mod_SOURCES): Likewise.
48404 (cat_mod_SOURCES): Likewise.
48405
48406 * normal/arg.c: New file.
48407 * kern/env.c: Likewise.
48408 * include/pupa/arg.h: Likewise.
48409 * include/pupa/env.h: Likewise.
48410 * font/manager.c (font_command): Changed to match argument parsing
48411 interface changes.
48412 (PUPA_MOD_INIT): Likewise.
48413 * hello/hello.c (pupa_cmd_hello): Likewise.
48414 (PUPA_MOD_INIT): Likewise.
48415 * include/pupa/disk.h: Include <pupa/device.h>.
48416 (pupa_print_partinfo): New prototype.
48417 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
48418 (pupa_dl_get_prefix): Likewise.
48419 * include/pupa/misc.h: Include <pupa/err.h>.
48420 (pupa_isgraph): New prototype.
48421 (pupa_isdigit): Likewise.
48422 (pupa_split_cmdline): Likewise.
48423 * include/pupa/normal.h: Include <pupa/arg.h>.
48424 (pupa_command): Changed the prototype of the member `func' to
48425 match the argument parsing interface. Added member `options'.
48426 (pupa_register_command): Updated to match function.
48427 (pupa_arg_parse): New prototype.
48428 (pupa_hello_init) [PUPA_UTIL]: New prototype.
48429 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
48430 (pupa_ls_init) [PUPA_UTIL]: Likewise.
48431 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
48432 (pupa_cat_init) [PUPA_UTIL]: Likewise.
48433 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
48434 (pupa_boot_init) [PUPA_UTIL]: Likewise.
48435 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
48436 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
48437 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
48438 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
48439 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
48440 * kern/disk.c: Include <pupa/file.h>.
48441 (pupa_print_partinfo): New function.
48442 * kern/dl.c: Include <pupa/env.h>.
48443 (pupa_dl_dir): Variable removed.
48444 (pupa_dl_load): Use the environment variable `prefix' instead of
48445 the variable pupa_dl_dir.
48446 (pupa_dl_set_prefix): Function removed.
48447 (pupa_dl_get_prefix): Likewise.
48448 * kern/i386/pc/init.c: Include <pupa/env.h>.
48449 (pupa_machine_init): Use the environment variable `prefix' instead of
48450 using pupa_dl_set_prefix to set the prefix.
48451 * kern/main.c: Include <pupa/env.h>.
48452 (pupa_set_root_dev): Use the environment variable `prefix' instead of
48453 using pupa_dl_get_prefix to get the prefix.
48454 * kern/misc.c: Include <pupa/env.h>.
48455 (pupa_isdigit): New function.
48456 (pupa_isgraph): Likewise.
48457 (pupa_ftoa): Likewise.
48458 (pupa_vsprintf): Added support for printing values of the type
48459 `double'. Make it possible to format variable output when using
48460 formatting like `%1.2%f'.
48461 (pupa_split_cmdline): New function.
48462 * kern/rescue.c: Include <pupa/env.h>.
48463 (next_word): Removed function.
48464 (pupa_rescue_cmd_prefix): Likewise.
48465 (pupa_rescue_cmd_set): New function.
48466 (pupa_rescue_cmd_unset): New function.
48467 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
48468 split the command line instead of splitting it here. Added
48469 support for setting variables using the syntax `foo=bar'. Don't
48470 initialize the prefix command anymore. Initialized the set and
48471 unset commands.
48472 * normal/cmdline.c: Include <pupa/env.h>.
48473 (pupa_tab_complete): Added prototypes for print_simple_completion,
48474 print_partition_completion, add_completion, iterate_commands,
48475 iterate_dev, iterate_part and iterate_dir. Moved code to print
48476 partition information from here to kern/disk.c.
fe6b695a 48477 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 48478 * normal/main.c: Include <pupa/env.h>.
48479 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
48480 instead of using pupa_dl_get_prefix to get the prefix.
48481 * term/i386/pc/vga.c: Include <pupa/arg.h>.
48482 (check_vga_mem): Cast pointers to `void *' to silence a gcc
48483 warning.
48484 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
48485 (pupa_vga_setcolor): Declare unused variables with `__attribute__
48486 ((unused))' to silence a gcc warning.
48487 (pupa_vga_setcolor): Likewise.
48488 (debug_command): Changed to match argument parsing
48489 interface changes.
48490 * util/pupa-emu.c: Include <pupa/env.h>.
48491 (options): Added 0's for unused fields to silence a gcc warning.
48492 (argp): Likewise.
48493 (main): Use the environment variable `prefix' instead of using
48494 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
48495 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
48496 and terminal.
48497
48498 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
48499 * util/misc.c: Include <malloc.h>.
48500 (pupa_malloc): Rewritten so errors are correctly reported.
48501 (pupa_realloc): Likewise.
48502 (pupa_memalign): Likewise.
48503 (pupa_mm_init_region): Declare unused variables with
48504 `__attribute__ ((unused))' to silence a gcc warning.
48505 * normal/i386/setjmp.S: Remove tab at the end of the file to
48506 silence a gcc warning.
48507 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
48508 variables with `__attribute__ ((unused))' to silence a gcc
48509 warning.
48510 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
48511 local variable i unsigned to silence a gcc warning.
48512
48513 * kern/term.c: Include <pupa/misc.h>.
48514 (pupa_more_lines): New variable.
48515 (pupa_more): Likewise.
48516 (pupa_putcode): When the pager is active pause at the end of every
48517 screen.
48518 (pupa_set_more): New function.
48519 * include/pupa/term.h (pupa_set_more): New prototype.
48520
48521
3b1139cb 485222004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
48523
48524 Now this project is GRUB 2 rather than PUPA. The location of
48525 the CVS repository was moved to GRUB's.
f19dbdb7 48526
3b1139cb 48527 * configure.ac: Use bug-grub as the reporting address.
48528 Use GRUB instead of PUPA.
48529 Change the version number to 1.90.
48530
8367695c 485312004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
48532
48533 * genkernsyms.sh: Updated copyright information.
48534 * genmk.rb: Likewise.
48535 * genmodsrc.sh: Likewise.
48536 * gensymlist.sh: Likewise.
48537 * boot/i386/pc/boot.S: Likewise.
48538 * boot/i386/pc/diskboot.S: Likewise.
48539 * disk/i386/pc/biosdisk.c: Likewise.
48540 * disk/i386/pc/partition.c: Likewise.
48541 * font/manager.c: Likewise.
48542 * fs/ext2.c: Likewise.
48543 * fs/fat.c: Likewise.
48544 * include/pupa/boot.h: Likewise.
48545 * include/pupa/device.h: Likewise.
48546 * include/pupa/disk.h: Likewise.
48547 * include/pupa/dl.h: Likewise.
48548 * include/pupa/elf.h: Likewise.
48549 * include/pupa/err.h: Likewise.
48550 * include/pupa/file.h: Likewise.
48551 * include/pupa/font.h: Likewise.
48552 * include/pupa/fs.h: Likewise.
48553 * include/pupa/kernel.h: Likewise.
48554 * include/pupa/loader.h: Likewise.
48555 * include/pupa/misc.h: Likewise.
48556 * include/pupa/mm.h: Likewise.
48557 * include/pupa/net.h: Likewise.
48558 * include/pupa/normal.h: Likewise.
48559 * include/pupa/rescue.h: Likewise.
48560 * include/pupa/setjmp.h: Likewise.
48561 * include/pupa/symbol.h: Likewise.
48562 * include/pupa/term.h: Likewise.
48563 * include/pupa/types.h: Likewise.
48564 * include/pupa/i386/setjmp.h: Likewise.
48565 * include/pupa/i386/types.h: Likewise.
48566 * include/pupa/i386/pc/biosdisk.h: Likewise.
48567 * include/pupa/i386/pc/boot.h: Likewise.
48568 * include/pupa/i386/pc/console.h: Likewise.
48569 * include/pupa/i386/pc/init.h: Likewise.
48570 * include/pupa/i386/pc/kernel.h: Likewise.
48571 * include/pupa/i386/pc/linux.h: Likewise.
48572 * include/pupa/i386/pc/loader.h: Likewise.
48573 * include/pupa/i386/pc/memory.h: Likewise.
48574 * include/pupa/i386/pc/multiboot.h: Likewise.
48575 * include/pupa/i386/pc/partition.h: Likewise.
48576 * include/pupa/i386/pc/time.h: Likewise.
48577 * include/pupa/i386/pc/vga.h: Likewise.
48578 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
48579 * include/pupa/util/getroot.h: Likewise.
48580 * include/pupa/util/misc.h: Likewise.
48581 * include/pupa/util/resolve.h: Likewise.
48582 * kern/device.c: Likewise.
48583 * kern/disk.c: Likewise.
48584 * kern/dl.c: Likewise.
48585 * kern/err.c: Likewise.
48586 * kern/file.c: Likewise.
48587 * kern/fs.c: Likewise.
48588 * kern/loader.c: Likewise.
48589 * kern/main.c: Likewise.
48590 * kern/misc.c: Likewise.
48591 * kern/mm.c: Likewise.
48592 * kern/rescue.c: Likewise.
48593 * kern/term.c: Likewise.
48594 * kern/i386/dl.c: Likewise.
48595 * kern/i386/pc/init.c: Likewise.
48596 * kern/i386/pc/lzo1x.S: Likewise.
48597 * kern/i386/pc/startup.S: Likewise.
48598 * loader/i386/pc/chainloader.c: Likewise.
48599 * loader/i386/pc/linux.c: Likewise.
48600 * loader/i386/pc/multiboot.c: Likewise.
48601 * normal/cmdline.c: Likewise.
48602 * normal/command.c: Likewise.
48603 * normal/main.c: Likewise.
48604 * normal/menu.c: Likewise.
48605 * normal/i386/setjmp.S: Likewise.
48606 * term/i386/pc/console.c: Likewise.
48607 * term/i386/pc/vga.c: Likewise.
48608 * util/console.c: Likewise.
48609 * util/genmoddep.c: Likewise.
48610 * util/misc.c: Likewise.
48611 * util/pupa-emu.c: Likewise.
48612 * util/resolve.c: Likewise.
48613 * util/unifont2pff.rb: Likewise.
48614 * util/i386/pc/biosdisk.c: Likewise.
48615 * util/i386/pc/getroot.c: Likewise.
48616 * util/i386/pc/pupa-mkimage.c: Likewise.
48617 * util/i386/pc/pupa-setup.c: Likewise.
48618
e6eced71 486192004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
48620
48621 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
48622 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
48623 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
48624 reading and reset it after reading.
48625 (pupa_ext2_close): Return PUPA_ERR_NONE.
48626
48627 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
48628 Correct value.
48629 (struct linux_kernel_header): Add kernel_version and
48630 initrd_addr_max.
48631 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
48632 pupa_file_read succeeds.
48633 (pupa_rescue_cmd_initrd): Implement.
48634
5aded270 486352003-12-03 Marco Gerards <metgerards@student.han.nl>
48636
48637 * fs/ext2.c (pupa_ext2_label): New function.
48638 (pupa_ext2_fs): Added label.
48639 * fs/fat.c (pupa_fat_label): New function.
48640 (pupa_fat_fs): Added label.
48641 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
48642
48643 * kern/misc.c (pupa_strndup): New function.
48644 * include/pupa/misc.h (pupa_strndup): New prototype.
48645
48646 * include/pupa/normal.h: Include <pupa/err.h>.
48647 (pupa_set_history): New prototype.
48648 (pupa_iterate_commands): New prototype.
48649 * normal/cmdline.c: Include <pupa/machine/partition.h>,
48650 <pupa/disk.h>, <pupa/file.h>.
48651 (hist_size): New variable.
48652 (hist_lines): Likewise.
48653 (hist_end): Likewise.
48654 (hist_used): Likewise.
48655 (pupa_set_history): New function.
48656 (pupa_history_get): Likewise.
48657 (pupa_history_add): Likewise.
48658 (pupa_history_replace): Likewise.
48659 (pupa_tab_complete): Likewise.
48660 (pupa_cmdline_run): Added tab completion and history buffer. Tab
48661 completion shows partitionnames while completing partitions, this
48662 feature was suggested by Jeff Bailey.
48663 * normal/command.c (pupa_iterate_commands): New function.
48664 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
48665 (pupa_normal_init): Initialize history buffer.
48666 (PUPA_MOD_INIT): Likewise.
48667 (pupa_normal_fini): Free the history buffer.
48668 (PUPA_MOD_FINI): Likewise.
48669
48670 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
48671 key.
48672
48673 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
48674 * configure.ac [i386]: Check for regparam bug.
48675 (NESTED_FUNC_ATTR) [! i386]: Defined.
48676
1f7315a3 486772003-11-17 Marco Gerards <metgerards@student.han.nl>
48678
48679 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
48680 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
48681 (pupa_emu_SOURCES): New variable.
48682 (pupa_emu_LDFLAGS): Likewise.
48683 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
48684 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
48685 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
48686 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48687 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
48688 (pupa_jmp_buf): New typedef.
48689 (pupa_setjmp) [PUPA_UTIL]: New macro.
48690 (pupa_longjmp) [PUPA_UTIL]: Likewise.
48691 * include/pupa/term.h (struct pupa_term): New member `refresh'.
48692 (pupa_refresh): New prototype.
48693 * include/pupa/util/getroot.h: New file.
48694 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
48695 it.
48696 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
48697 (pupa_rescue_cmd_cat): Likewise.
48698 (pupa_rescue_cmd_ls): Likewise.
48699 (pupa_rescue_cmd_testload): Likewise.
48700 (pupa_rescue_cmd_lsmod): Likewise.
48701 * normal/cmdline.c (pupa_cmdline_get): Likewise.
48702 * normal/menu.c (run_menu): Likewise.
48703 * kern/term.c (pupa_cls): Likewise.
48704 (pupa_refresh): New function.
48705 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
48706 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48707 * util/console.c: New file.
f19dbdb7 48708
1f7315a3 48709 * util/i386/pc/getroot.c: New file.
48710 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
48711 (pupa_putchar): New function.
48712 (pupa_refresh): Likewise.
48713 (xgetcwd): Function moved to ...
48714 (strip_extra_slashes): Likewise.
48715 (get_prefix): Likewise.
f19dbdb7 48716 * util/i386/pc/getroot.c: ... here.
1f7315a3 48717 (find_root_device): Function moved and renamed to...
48718 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
48719 Changed all callers.
48720 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
48721 and renamed to...
48722 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
48723 Changed all callers.
48724 * util/misc.c (pupa_memalign): New function.
48725 (pupa_mm_init_region): Likewise.
48726 (pupa_register_exported_symbols): Likewise.
48727 (pupa_putchar): Function removed.
48728 * util/pupa-emu.c: New file.
48729
9a5c1ade 487302003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
48731
48732 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
48733 (_multiboot_mod_SOURCES): New variable.
48734 (_multiboot_mod_CFLAGS): Likewise.
48735 * loader/i386/pc/multiboot.c: New file.
48736 * include/pupa/i386/pc/multiboot.h: Likewise.
48737 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
48738 (pupa_multiboot_real_boot): New function.
48739 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
48740 (pupa_multiboot_real_boot): New prototype.
48741 (pupa_rescue_cmd_multiboot): Likewise
48742 (pupa_rescue_cmd_module): Likewise.
48743
48744 * kern/loader.c (pupa_loader_set): Continue when
48745 pupa_loader_unload_func() fails.
48746 (pupa_loader_unset): New function.
48747 * include/pupa/loader.h (pupa_loader_unset): New prototype.
48748
48749 * kern/misc.c (pupa_stpcpy): New function.
48750 * include/pupa/misc.h (pupa_stpcpy): New prototype.
48751
8e72a9c0 487522003-11-12 Marco Gerards <metgerards@student.han.nl>
48753
48754 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
48755 for available extensions.
48756
48757 * include/pupa/i386/pc/time.h: New file.
48758 * kern/disk.c: Include <pupa/machine/time.h>.
48759 (PUPA_CACHE_TIMEOUT): New macro.
48760 (pupa_last_time): New variable.
48761 (pupa_disk_open): Flush the cache when there was a timeout.
48762 (pupa_disk_close): Reset the timer.
48763 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
48764 pupa_currticks.
48765 * util/misc.c: Include <sys/times.h>
48766 (pupa_get_rtc): New function.
48767
c4adbd32 487682003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48769
48770 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
48771 as blocks.
48772 (pupa_ext2_get_file_block): Use blocks member.
48773
48774 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
48775 first block. Return -1 instead of pupa_errno on error.
48776
bfd30f06 487772003-10-27 Marco Gerards <metgerards@student.han.nl>
48778
48779 * README: In the pupa-mkimage example use _chain instead of chain
48780 and ext2 instead of fat.
48781 * TODO: Replace ext2fs with jfs as an example. Add an item for
48782 adding journal playback for ext2fs.
48783 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
48784 (pkgdata_MODULES): Added ext2.mod.
48785 (ext2_mod_SOURCES): New variable.
48786 (ext2_mod_CFLAGS): Likewise.
48787 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
48788 * include/pupa/misc.h (pupa_strncpy): New prototype.
48789 (pupa_strcat): Likewise.
48790 (pupa_strncmp): Likewise.
48791 * kern/misc.c (pupa_strcat): Enable function.
48792 (pupa_strncpy): New function.
48793 (pupa_strncmp): Likewise.
48794 * fs/ext2.c: New file.
f19dbdb7 48795
bfd30f06 48796 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
48797 when the read failed before retrying.
48798 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
48799 (_FILE_OFFSET_BITS): Likewise.
48800 * configure.ac: Added AC_SYS_LARGEFILE.
48801
98d15063 488022003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48803
48804 * genmk.rb (PModule#rule): Make sure to get only symbol names
48805 from the output of nm.
59cad637 48806 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 48807
18d9c7cd 488082003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48809
48810 I forgot to check in these changes for a long time. This adds
48811 incomplete support for VGA console, and this is still very
48812 buggy. Also, a lot of consideration is required for I18N,
48813 UNICODE, and VGA font issues. Therefore, assume that this is
48814 such that "better than nothing".
f19dbdb7 48815
18d9c7cd 48816 * font/manager.c: New file.
48817 * include/pupa/font.h: Likewise.
48818 * include/pupa/i386/pc/vga.h: Likewise.
48819 * term/i386/pc/vga.c: Likewise.
48820 * util/unifont2pff.rb: Likewise.
48821
48822 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48823 (pkgdata_MODULES): Added vga.mod and font.mod.
48824 (vga_mod_SOURCES): New variables.
48825 (vga_mod_CFLAGS): Likewise.
48826 (font_mod_SOURCES): Likewise.
48827 (font_mod_CFLAGS): Likewise.
48828
48829 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48830
48831 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48832 (struct pupa_term): Added init and fini.
18d9c7cd 48833 Changed the argument of putchar to pupa_uint32_t.
48834
48835 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48836 (pupa_console_real_putchar): New prototype.
48837 (pupa_console_putchar): Removed.
48838 (pupa_console_checkkey): Exported.
48839 (pupa_console_getkey): Likewise.
48840
48841 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48842 characters.
48843
48844 * kern/term.c (pupa_term_set_current): Rewritten.
48845 (pupa_putchar): Likewise.
48846 (pupa_putcode): New function.
48847
48848 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
48849 (pupa_console_real_putchar): ... this.
48850 (pupa_vga_set_mode): New function.
48851 (pupa_vga_get_font): Likewise.
48852
48853 * normal/command.c: Include pupa/term.h.
48854 (terminal_command): New function.
48855 (pupa_command_init): Register the command "terminal".
48856
48857 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
48858 (DISP_UP): Likewise.
48859 (DISP_RIGHT): Likewise.
48860 (DISP_DOWN): Likewise.
48861 (DISP_HLINE): Likewise.
48862 (DISP_VLINE): Likewise.
48863 (DISP_UL): Likewise.
48864 (DISP_UR): Likewise.
48865 (DISP_LL): Likewise.
48866 (DISP_LR): Likewise.
48867
48868 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48869
977329f5 488702003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48871
48872 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48873 FIX. Reverse the path_list.
48874
48875 * include/pupa/normal.h: Export pupa_register_command and
48876 pupa_unregister_command.
48877
48878 * hello/hello.c (pupa_cmd_hello): New module.
48879 * conf/i386-pc.rmk: Added hello.mod.
48880
1f5ab428 488812003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48882
48883 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48884
1f5ab428 48885 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48886 (compress_kernel): New variable.
48887 (generate_image): Heavily modified to support compressing a
48888 large part of the core image.
48889
48890 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48891 leak.
48892 (pupa_util_load_image): New function.
48893
48894 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48895 (pupa_compressed_size): New variable.
48896 (codestart): Enable Gate A20 here.
48897 Decompress the compressed part of the core image.
48898 Rearrange the code to put functions and variables which are
48899 required for initialization in the non-compressed part.
48900 Include lzo1x.S.
48901
48902 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48903 here.
48904
48905 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48906
f19dbdb7 48907 * include/pupa/i386/pc/kernel.h
1f5ab428 48908 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48909 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48910 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48911 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48912 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48913
48914 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48915
48916 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48917 (Utility#rule): Likewise.
48918
48919 * configure.ac: Check if LZO is available.
48920
ce5bf700 489212003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48922
48923 * include/pupa/normal.h: New file.
48924 * include/pupa/setjmp.h: Likewise.
48925 * include/pupa/i386/setjmp.h: Likewise.
48926 * normal/cmdline.c: Likewise.
48927 * normal/command.c: Likewise.
48928 * normal/main.c: Likewise.
48929 * normal/menu.c: Likewise.
48930 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48931
ce5bf700 48932 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48933 (pupa_rescue_cmd_initrd): Likewise.
48934
48935 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48936 Likewise.
48937
48938 * kern/i386/pc/startup.S (translation_table): New variable.
48939 (translate_keycode): New function.
48940 (pupa_console_getkey): Call translate_keycode.
48941
48942 * kern/rescue.c (attempt_normal_mode): New function.
48943 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48944 it failed, print a message.
48945
48946 * kern/mm.c (pupa_real_malloc): Print more information when a
48947 free magic is broken.
48948 (pupa_free): If the first free header is not free actually, set
48949 it to P.
48950
48951 * kern/main.c (pupa_load_normal_mode): Just load the module
48952 "normal".
48953 (pupa_main): Don't print the message
48954 "Entering into rescue mode..." here.
48955
48956 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48957 Declared.
48958 (pupa_rescue_cmd_initrd): Likewise.
48959 (pupa_rescue_cmd_initrd): Likewise.
48960
48961 * include/pupa/symbol.h (FUNCTION): Specify the type.
48962 (VARIABLE): Likewise.
48963
48964 * include/pupa/err.h (pupa_err_t): Added
48965 PUPA_ERR_UNKNOWN_COMMAND.
48966
48967 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48968 (pupa_dl_get_prefix): Likewise.
48969
48970 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48971 Added _chain.mod and _linux.mod instead of chain.mod and
48972 linux.mod.
48973 (chain_mod_SOURCES): Renamed to ...
48974 (_chain_mod_SOURCES): ... this.
48975 (chain_mod_CFLAGS): Renamed to ...
48976 (_chain_mod_CFLAGS): ... this.
48977 (linux_mod_SOURCES): Renamed to ...
48978 (_linux_mod_SOURCES): ... this.
48979 (linux_mod_CFLAGS): Renamed to ...
48980 (_linux_mod_CFLAGS): ... this.
48981 (normal_mod_SOURCES): New variable.
48982 (normal_mod_CFLAGS): Likewise.
48983 (normal_mod_ASFLAGS): Likewise.
48984
489852003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
48986
48987 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
48988 possible.
48989
fe6b695a 48990 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 48991 recursively.
48992 (pupa_dl_unref): Unrefer depending modules recursively.
48993 Don't call pupa_dl_unload implicitly, because PUPA can crash if
48994 a module is unloaded before one depending on that module is
48995 unloaded.
48996 (pupa_dl_unload): Unload depending modules explicitly,
48997 if possible.
48998
c04da074 489992003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49000
49001 * include/pupa/i386/pc/linux.h: New file.
49002 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 49003
c04da074 49004 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49005 Removed.
49006 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49007 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49008 of PUPA_CHAINLOADER_BOOT_SECTOR.
49009
49010 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49011 (pupa_linux_prot_size): New variable.
49012 (pupa_linux_tmp_addr): Likewise.
49013 (pupa_linux_real_addr): Likewise.
49014 (pupa_linux_boot_zimage): New function.
49015 (pupa_linux_boot_bzimage): Likewise.
49016
49017 * kern/i386/pc/init.c (struct mem_region): New structure.
49018 (MAX_REGIONS): New macro.
49019 (mem_regions): New variable.
49020 (num_regions): Likewise.
49021 (pupa_os_area_addr): Likewise.
49022 (pupa_os_area_size): Likewise.
49023 (pupa_lower_mem): Likewise.
49024 (pupa_upper_mem): Likewise.
49025 (add_mem_region): New function.
49026 (compact_mem_regions): Likewise.
49027 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49028 the size of the conventional memory and that of so-called upper
49029 memory (before the first memory hole).
49030 Instead of adding each found region to free memory, use
49031 add_mem_region and add them after removing overlaps.
49032 Also, add only 1/4 of the upper memory to free memory. The rest
49033 is used for loading OS images. Maybe this is ad hoc, but this
49034 makes it much easier to relocate OS images when booting.
49035
49036 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49037 (pupa_enter_rescue_mode): Don't register initrd and module.
49038
49039 * kern/mm.c: Include pupa/dl.h.
49040
49041 * kern/main.c: Include pupa/file.h and pupa/device.h.
49042
49043 * kern/loader.c (pupa_loader_load_module_func): Removed.
49044 (pupa_loader_load_module): Likewise.
49045
49046 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49047 ``.o''.
49048
49049 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49050 (pupa_linux_tmp_addr): Likewise.
49051 (pupa_linux_real_addr): Likewise.
49052 (pupa_linux_boot_zimage): Likewise.
49053 (pupa_linux_boot_bzimage): Likewise.
49054
49055 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49056 (pupa_upper_mem): Likewise.
49057 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49058 module is too dangerous.
49059
49060 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49061 (pupa_os_area_size): Likewise.
49062 (pupa_loader_set): Remove the first argument. Loader doesn't
49063 manage modules or initrd any longer.
49064 (pupa_loader_load_module): Removed.
49065
49066 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49067 (linux_mod_SOURCES): New variable.
49068 (linux_mod_CFLAGS): Likewise.
49069
a13f9237 490702003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49071
49072 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49073 the length of a blocklist correctly.
49074
49075 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49076 Use ioctl only if the OS file is a block device.
49077 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49078 not very useful for normal files.
49079
49080 * kern/main.c (pupa_set_root_dev): New function.
49081 (pupa_load_normal_mode): Likewise.
49082 (pupa_main): Call those above.
49083
49084 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49085 pupa_uint16_t.
49086
49087 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49088
a5ffe966 490892003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49090
49091 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49092 (setup): Configure the installed partition information and the
49093 dl prefix.
49094
49095 * loader/i386/pc/chainloader.c (my_mod): New variable.
49096 (pupa_chainloader_unload): New function.
49097 (pupa_rescue_cmd_chainloader): Refer itself.
49098 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49099
49100 * kern/i386/pc/startup.S (install_partition): Removed.
49101 (version_string): Likewise.
49102 (config_file): Likewise.
49103 (pupa_install_dos_part): New variable.
49104 (pupa_install_bsd_part): Likewise.
49105 (pupa_prefix): Likewise.
49106 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49107
49108 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49109 and pupa/misc.h.
49110 (make_install_device): New function.
49111 (pupa_machine_init): Set the dl prefix.
49112
49113 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49114 (buf): Renamed to ...
49115 (linebuf): ... this.
49116 (pupa_rescue_cmd_prefix): New function.
49117 (pupa_rescue_cmd_insmod): Likewise.
49118 (pupa_rescue_cmd_rmmod): Likewise.
49119 (pupa_rescue_cmd_lsmod): Likewise.
49120 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49121 rmmod and lsmod.
49122
49123 * kern/mm.c (pupa_memalign): If failed even after invalidating
49124 disk caches, unload unneeded modules and retry.
49125
49126 * kern/misc.c (pupa_memmove): New function.
49127 (pupa_memcpy): Removed.
49128 (pupa_strcpy): New function.
49129 (pupa_itoa): Made static.
49130
49131 * kern/dl.c (pupa_dl_iterate): New function.
49132 (pupa_dl_ref): Likewise.
49133 (pupa_dl_unref): Likewise.
49134 (pupa_dl_unload): Return if succeeded or not.
49135 (pupa_dl_unload_unneeded): New function.
49136 (pupa_dl_unload_all): Likewise.
49137 (pupa_dl_init): Renamed to ...
49138 (pupa_dl_set_prefix): ... this.
49139 (pupa_dl_get_prefix): New function.
49140
49141 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49142 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49143 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49144 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49145 (pupa_install_dos_part): Declared.
49146 (pupa_install_bsd_part): Likewise.
49147 (pupa_prefix): Likewise.
49148 (pupa_boot_drive): Likewise.
49149
49150 * include/pupa/types.h: Fix a typo.
49151
49152 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49153 pupa_memmove.
49154 (pupa_memmove): Declared.
49155 (pupa_strcpy): Likewise.
49156
49157 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49158 pupa_mod_init takes one argument, its own module.
49159 (pupa_dl_unload_unneeded): Declared.
49160 (pupa_dl_unload_all): Likewise.
49161 (pupa_dl_ref): Likewise.
49162 (pupa_dl_unref): Likewise.
49163 (pupa_dl_iterate): Likewise.
49164 (pupa_dl_init): Renamed to ...
49165 (pupa_dl_set_prefix): ... this.
49166 (pupa_dl_get_prefix): Declared.
49167
49168 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 49169 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 49170 unloaded.
49171 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49172 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49173
49174 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49175 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49176
012d7999 491772003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49178
49179 * util/i386/pc/pupa-setup.c (setup): Define the internal
49180 function find_first_partition_start at the top level, because GCC
49181 3.0.x cannot compile internal functions in deeper scopes
49182 correctly.
49183 (find_root_device): Use lstat instead of stat.
49184 Don't follow symbolic links.
49185 Fix the path-constructing code.
49186
49187 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49188 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49189 by a BLKGETSIZE ioctl first, because block devices don't fill
49190 the member st_mode of the structure stat on Linux.
49191 [__linux__] (linux_find_partition): Use a temporary buffer
49192 REAL_DEV for the working space. Copy it to DEV before returning.
49193 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49194 buffer cache consistent.
49195 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49196 strncmp. The previous value was merely wrong.
49197 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49198
49199 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49200 FAT size is 12. The previous value was merely wrong.
49201
49202 * kern/main.c (pupa_main): Don't split the starting message from
49203 newlines.
49204
49205 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49206 LF, because BIOS goes crazy about character attributes in this
49207 case.
49208
1cc73a62 492092003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49210
49211 * include/i386/pc/util/biosdisk.h: New file.
49212 * util/i386/pc/biosdisk.c: Likewise.
49213 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 49214
1cc73a62 49215 * Makefile.in (INCLUDE_DISTFILES): Added
49216 include/pupa/i386/pc/util/biosdisk.h.
49217 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49218 directory util/i386/pc.
49219 (install-local): Added a rule for sbin_UTILITIES.
49220 (uninstall): Likewise.
49221
49222 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49223
49224 * util/misc.c (xrealloc): New function.
49225 (pupa_malloc): Likewise.
49226 (pupa_free): Likewise.
49227 (pupa_realloc): Likewise.
49228 (pupa_stop): Likewise.
49229 (pupa_putchar): Likewise.
49230
49231 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49232
49233 * include/pupa/util/misc.h (xrealloc): Declared.
49234
49235 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49236 macro.
49237 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49238 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49239
49240 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49241 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49242
49243 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49244 way should be implemented.
49245 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49246
49247 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49248 the size of NAME for safety.
49249 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49250 0x88.
49251
49252 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49253 (pupa_setup_SOURCES): Likewise.
49254
49255 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49256
08b70fe8 492572002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49258
49259 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49260 bunch of pushl's from pusha, because this destroys the return
49261 value.
49262
62ddcc8f 492632002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49264
49265 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49266 This means that any missing prototypes could be fatal. Also, you
49267 must take care when writing assembly code. See the comments at
49268 the beginning of startup.S, for more details.
f19dbdb7 49269
62ddcc8f 49270 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49271 compilation mechanism.
49272 (pupa_chainloader_real_boot): Likewise.
49273 (pupa_biosdisk_rw_int13_extensions): Likewise.
49274 (pupa_biosdisk_rw_standard): Likewise.
49275 (pupa_biosdisk_check_int13_extensions): Likewise.
49276 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49277 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49278 (pupa_get_memsize): Likewise.
49279 (pupa_get_mmap_entry): Likewise.
49280 (pupa_console_putchar): Likewise.
49281 (pupa_console_setcursor): Likewise.
49282 (pupa_getrtsecs): Use pushl instead of push.
49283
49284 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49285 memory instead of the stack for a mmap entry, because some
49286 BIOSes may ignore the maximum size and overflow.
49287
49288 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
49289
49290 * genmk.rb (PModule#rule): Compile automatically generated
49291 sources with module-specific CFLAGS as well as other sources.
49292
9962ed99 492932002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49294
49295 * configure.ac: Check ld.
49296 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
49297 respectively, before checking endianness and sizes.
49298
49299 * Makefile.in (LD): New variable.
f19dbdb7 49300
abdfc3c5 493012002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49302
49303 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
49304
6a161fa9 493052002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49306
49307 * Changelog: New file.
49308