]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
[grub2.git] / ChangeLog
CommitLineData
4ed41392
VS
12013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
4 analysis.
5
3719fbc5
VS
62013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/loader/arm/linux.c: Change printf to dprintf.
9
459b1d91
VS
102013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
13 inappropriate printf.
14
f4e1ab9d
AB
152013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
16
17 * .bzrignore: Remove grub-core/lib/dtc-grub,
18 grub-core/Makefile.libfdt.def
19 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
20
fa471bfa
VS
212013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * include/grub/video.h (grub_video_register): Keep double-linked as
24 well as single-linked invariants.
25 Reported by: qwertial.
26
d65be02b
VS
272013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/commands/nativedisk.c (get_uuid): Handle
30 GRUB_DISK_DEVICE_UBOOTDISK_ID.
31
ba8bc620
VT
322013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
33
34 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
35 maximum of NW, N, NE heights instead of N's height and maximum of
36 NW, W, SW widths instead of W's width. (So the box will be always
37 correctly drawn)
38
4f0ad029
GS
392013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
40
41 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
42 Fix misuse of variable count.
43
43d53b72
LL
442013-07-18 Leif Lindholm <leif.lindholm@arm.com>
452013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
462013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 47
43d53b72
LL
48 New ports to arm-uboot and arm-efi.
49 Mostly by Leif Lindholm with some additions from
50 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 51
88f8d146
VS
522013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
55 and not before.
56 Reported by: Leon Drugi.
57
3f42504c
VS
582013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
59
60 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
61 Reported by: Paulo Flabiano Smorigo.
62
d110499b
VT
632013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
64
65 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
66
a8674ad3
VT
672013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
68
69 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
70
286fe4b3
VS
712013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
74
1bd57aa3
VS
752013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
78
7a87d69f
AB
792013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
80
81 * grub-core/net/bootp.c: Export net_* variables.
82 * grub-core/net/net.c: Likewise.
83
b2182299
VS
842013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
87
795b3dc0
VS
882013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
91
68714c43
VS
922013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
95
af211bab
VS
962013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
99
0036f02d
MM
1002013-07-14 Massimo Maggi <me@massimo-maggi.eu>
101
102 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
103 <= 0.
104
6d0ddff3
MM
1052013-07-14 Massimo Maggi <me@massimo-maggi.eu>
106
107 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
108 functions.
109
038016f4
MM
1102013-07-14 Massimo Maggi <me@massimo-maggi.eu>
111
112 * grub-core/fs/zfs/zfs_lz4.c: New file.
113 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
114
776bdce2
MM
1152013-07-14 Massimo Maggi <me@massimo-maggi.eu>
116
117 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
118
c71dbd40
MM
1192013-07-14 Massimo Maggi <me@massimo-maggi.eu>
120
121 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
122 (check_pool_label): Likewise.
123 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
124
1252013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
126
127 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
128
8e67b50f
AB
1292013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
130
131 * docs/grub.texi (Commands): Document postition parameters
132 for menuentry command.
133
f5ae3717
AB
1342013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
135
136 * util/grub-mknetdir.in: Remove stray line from help output.
137
9c28da2a
VS
1382013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
139
140 Remove early sm712 init as there is no reason for it (the "watchdog"
141 effect was due to wrong GPIO map).
142
139072b8
VS
1432013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/commands/pcidump.c: Remove static variables.
146
c6a61bda
VS
1472013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/commands/sleep.c: Refresh screen before sleeping.
150
51369614
VS
1512013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
152
153 * configure.ac: Move delimiter after the infos.
154
efa8640a
VS
1552013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
158
6f80a7b2
VS
1592013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
162 not filling whole 8x16 space.
163
a2371e19
VS
1642013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
167
64fce2d8
VS
1682013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * configure.ac: Indicate which liblzma is used if any.
171
eb272d84
PW
1722013-06-21 Paul Wise <pabs3@bonedaddy.net>
1732013-06-21 Craig Sanders <savannah@taz.net.au>
174
175 * util/grub-reboot.in: Document submenu usage.
176
a9e5abee
CW
1772013-06-25 Colin Watson <cjwatson@ubuntu.com>
178
179 * .bzrignore: Update with a number of new test-related files.
180
e639c204
CW
1812013-06-25 Colin Watson <cjwatson@ubuntu.com>
182
183 * util/grub-script-check.c: Fail on scripts containing no
184 commands, to guard against corrupted grub-mkconfig setups that
185 produce no useful output.
186 * tests/grub_script_no_commands.in: New test.
187 * Makefile.util.def (grub_script_no_commands): Add.
188 Reported by Hans Putter. Fixes Debian bug #713886.
189
a4c89b17
AB
1902013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
191
192 * grub-core/disk/diskfilter.c: Forgot to remove comment
193 from previous commit.
194
5b06b53c
AB
1952013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
196
197 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
198 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
199
702da5c9
AB
2002013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
201
202 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
203
aa62a5b7
AB
2042013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
205
206 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
207 rescan diskfilter devices until nothing new is found.
208
4aa237c8
VS
2092013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
210
211 Fix casts when compiling coreboot-specific code for 64-bit EFI.
212
93d8479b
VS
2132013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
214
215 Don't try to detect cbfs on *-emu.
216
837222cc
VS
2172013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * grub-core/term/gfxterm.c: USe right background color when scrolling.
220
99c971af
VS
2212013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
222
223 Add support for processed coreboot payload chainloading.
224
e6930a45
VS
2252013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
226
227 Enable coreboot information commands even when not loaded as
228 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
229
5027af38
VS
2302013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
231
232 Support for cbfs. Also factor out the part which is common
233 for all archives to a separate module. This splits tar from cpio
234 as they are very different but keeps cpio, cpio_be, odc and newc
235 together since they're very similar.
236
a5b55c4b
DM
2372013-06-15 David Michael <fedora.dm0@gmail.com>
238
239 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
240 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
241
0301a8b3
VS
2422013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * tests/grub_script_eval.in: Really add the eval test.
245
3d84cb17
VS
2462013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
247
248 Move flavour-specific parts out of common cpio.c file and
249 rename remaining to cpio_common.c
250
593e430c
AB
2512013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
252
253 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
254 off new function grub_script_execute_new_scope. Change callers to use
255 either of them as appropriate.
256 * grub-core/commands/eval.c: New command eval.
257 * docs/grub.texi (Commands): Document it.
258
63c29849
AB
2592013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
260
261 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
262 to fetch values when listing.
263
cc284112
AB
2642013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
265
266 Fix make dist on non-pc.
267
2682013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
269
270 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
271 without a device name.
272
69544d1e
VS
2732013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Remove enable_executable_check as it's not needed anymore.
276 Reported by: dougray.
277
96dbe648
VS
2782013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
281 ambigouos RAID before discovering RAIDs on top of it.
282 Reported by: bodom.
283
ccfc0bdb
VS
2842013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
285
286 Fix typo (failback vs fallback).
287
f2587088
AB
2882013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
289
290 * util/grub.d/30_os-prober.in: Add support for probing EFI
291 System Partition (as of os-prober 1.58).
292
cec5cf0c
VS
2932013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * configure.ac: Add yet another path to unifont. For parabola.
296
e40b4596
JT
2972013-05-30 Josh Triplett <josh@joshtriplett.org>
298
299 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
300 handling to copy the killed characters to the kill buffer as
301 UCS4 stored as grub_uint32_t rather than as 8-bit characters
302 stored as char. Eliminates UCS4 truncation and corruption
303 observed when killing characters with Ctrl-u and yanking them
304 back with Ctrl-y.
305
fc4c4fdd
VS
3062013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
307
308 Detach optional parts of gfxterm and integrate in with coreboot init.
309
6570b205
VS
3102013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Move blit and fill dispatcher to appropriate files to decrease export
313 and relocation overhead.
314
b8323067
VS
3152013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/font/font.c, include/grub/font.h: Inline simple font
318 functions.
319
3cc1878f
VS
3202013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/Makefile.am: Fix compilation problem with some
323 automake versions.
324
4b80e43c
VS
3252013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
328
57e0c20c
VS
3292013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
332 automake versions.
333
4fd42c53
VS
3342013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
337 SSDT.
338
1e908b34
RS
3392013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
340
341 * grub-core/partmap/dfly.c: New partition map.
342
1359e474
VS
3432013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
346 checking.
347 Reported by: Francesco Lavra.
348
17806392
AB
3492013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
350
351 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
352 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
353 false conditions.
354 * conf/Makefile.common: define dist_grubconf_DATA
355
cdce14fa
VS
3562013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
357
358 Progressively skip menu elements on small terminals rather
359 than crashing.
360
c8d6cc3c
VS
3612013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
364 to avoid losing last column.
365
a73b31ce
VS
3662013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * po/exclude.pot: Add missing string "%C".
369
1202c764
VS
3702013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
373 after the test.
374
50268344
VS
3752013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * util/grub-install.in: Gettextize "Not found" message.
378
62b15edf
VS
3792013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Fix distfiles list.
382 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
383
3842013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
385
386 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
387 present.
388 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
389
709ad61b
VS
3902013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
391
392 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
393
d128901a
VS
3942013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
395
396 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
397 attribute since structure is not necessarily aligned.
398
34b22f5c
AB
3992013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
400
401 * docs/grub.texi (Device syntax): Clarify description of network
402 drives.
403
0f7e980b
VS
4042013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
405
406 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
407 for vasprintf presence.
408
30b03dc2
VS
4092013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
410
411 * util/grub-install.in: Handle efibootmgr presence check.
412 Reported by: Leif Lindholm.
413
0dc11c08
VS
4142013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
417 new strings to translate.
418
f8024c3f
VS
4192013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
422 yet another string (pun intended) to translate.
423
b4c1da62
VS
4242013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * po/POTFILES-shell.in: Autogenerate it.
427
0ef7478b
VS
4282013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
429
430 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
431
8200fa15
VS
4322013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
435 misnomer.
436
091945b2
AB
4372013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
438
439 * docs/grub.texi (Network): Add description of net_default_interface,
440 net_default_ip and net_default_mac. Rewrite variables description
441 to emphasize that they are per-interface.
442
0e7b2e32
VS
4432013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
444
445 New test: cmdline and cat.
446
16f7c8f6
VS
4472013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * grub-core/commands/cat.c: Show UTF-8 characters.
450
3e912fda
VS
4512013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * conf/Makefile.common: Poison float and double on non-emu.
454
ee0220bc
VS
4552013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * configure.ac: Don't disable extended registers on emu.
458
89e0240c
VS
4592013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * configure.ac: Don't use extended registers on x86_64.
462 Reported by: Peter Jones.
463
e56d9637
VS
4642013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * grub-core/term/efi/console.c: Fix compile error.
467
8098f655
VS
4682013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
469
470 Compressed HFS+ support.
471
16940e07
VS
4722013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
475 pixel".
476
c5dbc13d
VS
4772013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
478
479 Menu color test.
480
011f8ae8
VS
4812013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/tests/setjmp_test.c: New test.
484
2aa072d7
VS
4852013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
486
487 New variables 'net_default_*' to determine MAC/IP of default interface.
488
43fe02cb
VS
4892013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * tests/gettext_strings_test.in: A test to check for strings not
492 marked for translation.
493
bed06142
VS
4942013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
495
496 * autogen.sh: Exclude unused libgcrypt files from translation.
497
fb2666b5
VS
4982013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
499
500 Simplify few strings.
501
d22840ec
VS
5022013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
503
504 Mark few forgotten strings for translation.
505
e34092fd
VS
5062013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
509 rather than printf.
510
47cf82b4
VS
5112013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
512
513 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
514 rather than printf.
515 * grub-core/video/readers/tga.c: Likewise.
516
1eed0e6e
VS
5172013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * tests/priority_queue_unit_test.cc: New test.
520
c5b7697b
VS
5212013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
524 than printf.
525
5945c2f8
AB
5262013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
527
528 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
529 variable for one time boot menu entry.
530
fa292343
B
5312013-05-05 Bean <bean123ch@gmail.com>
532
533 * grub-core/commands/testspeed.c: New command testspeed.
534
310d4214
VS
5352013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
536
537 Factor-out human-size printing.
538
85002bf3
VS
5392013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
540
541 Agglomerate more mallocs to speed-up gfxterm.
542
22b06e96
VS
5432013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
544
545 Speed-up gfxterm by slightly agglomerating mallocs.
546
b7c036bc
VS
5472013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
548
549 More video checks.
550
92323d1f
VS
5512013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
552
553 Speed-up gfxterm by saving intermediate results in index+alpha
554 format.
555
0fb356a3
VS
5562013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
559 test.
560
44dea3f9
VS
5612013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
564 line of timeout as it may contain the rest of long line.
565
14af86e4
VS
5662013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/normal/main.c: Fix freed memory dereference.
569
03f7c8c3
VS
5702013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
571
572 Fix several memory leaks.
573
c686014c
VS
5742013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
577
0788a695
VS
5782013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
581
daf01d61
VS
5822013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
583
584 Fix test -a and -o precedence.
585 Reported by: adrian15.
586
82ae74d7
VS
5872013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
590
8cec7bd4
AB
5912013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
592
593 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
594 and add it as source to functional_test module.
595
aa73d688
VS
5962013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
599
c104b6f9
VS
6002013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
601
602 New series of tests for gfxterm and gfxmenu.
603
7391c4d5
VS
6042013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
607 the theme path relative to $prefix/themes.
608
cff50118
VS
6092013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
612 Fix order bug.
613 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
614
7c332bdc
VS
6152013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
618 descriptor.
619
a4f9a5ff
VS
6202013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
623 grub_gfxmenu_timeout_notifications.
624 (grub_gfxmenu_view_destroy): Likewise.
625
b5a2114d
VS
6262013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
629
a8905e8a
VS
6302013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
631
632 Several fixes to ieee1275 and big-endian video.
633
813c1622
VS
6342013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
635
636 Add missing exports on mips.
637
3f3e7326
VS
6382013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
641 if no unifont is found.
642 Restore original keyboard.
643
095accd1
VS
6442013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
647 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
648
50361660
VS
6492013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
650
651 First automated video test (running videotest and comparing results)
652
cd0f6eec
VS
6532013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
656 instead of 2 to have full RGB/CMY test pattern.
657
3f9634e5
VS
6582013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
659
660 Add few more tests.
661
583e5b64
VS
6622013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * include/grub/arc/arc.h: Account for missing "other" peripheral on
665 ARCS. All users updated.
666
aa7bcb99
VS
6672013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
668
669 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
670
95ef1a54
VS
6712013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/partmap/amiga.c: Fix size of checksummed block.
674
46546fc5
VS
6752013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
678 Reported by: qwertial.
679
3476e0ef
VT
6802013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
681
682 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
683 with syntax "XXX deg"/"XXX °".
684
96f33fed
VS
6852013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
686
687 Make PCI init in i386-qemu port more robust.
688
6892013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
690
691 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
692 cached view is reused.
693 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
694 open boot menus.
695
c53b4e67
VS
6962013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Unify more code in grub-install_header.
699
f7457fb2
VS
7002013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
701
702 Add few new tests.
703
e2f27a8c
VS
7042013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Enforce disabling of firmware disk drivers when native drivers kick in.
707
ef9d8cd5
VS
7082013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/commands/nativedisk.c: Customize the list of modules on
711 platform. Don't try to search for disks already using native drivers.
712
f7bf6c31
VS
7132013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
716 platforms.
717
bdc4add8
VS
7182013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
721 handling of variables containing backslash.
722
e9e46c9a
VS
7232013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
724
725 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
726 dereference.
727 Reported by: qwertial.
728
0e90dee8
VS
7292013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
732
e0aacf24
VS
7332013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
736 dereference.
737 Reported by: qwertial.
738
3c0003c3
VS
7392013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * docs/grub.texi: Add a comment about usefullness of nativedisk.
742
adb7d667
VS
7432013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
746
7cd0df84
VS
7472013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
748
749 New command `nativedisk'.
750
02adbb93
VS
7512013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
752
753 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
754 * grub-core/loader/i386/bsd.c: Likewise.
755
9fb0fd4f
VS
7562013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
759
bd69257a
VS
7602013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
763 grub_get_unaligned16 rather than shifts.
764
178c2764
VS
7652013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/kern/file.c: Use const char * rather than casting to
768 non-const.
769
eadfad24
VS
7702013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
771
772 * grub-core/commands/probe.c: Add missing grub_device_close.
773
9f73ebd4
VS
7742013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * INSTALL: Document linguas.sh.
777
965fa829
VS
7782013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
779
780 Remove POTFILES.in and regenerate it in autogen.sh.
781
d417ddc4
VS
7822013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Move --directory/--override-directorry to grub-install_header and unify.
785
f97ec546
VS
7862013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/term/morse.c: Macroify dih and dah.
789
b2d7470c
PFS
7902013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
791
792 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
793
141e2a78
VS
7942013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * grub-core/term/ns8250.c: Systematically probe ports by writing
797 to SR before using them.
798
1dd70ebd
PFS
7992013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
800
801 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
802 disks.
803 (check_sas): Get sas_adress info.
804
c796a107
VS
8052013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
806
807 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
808 ports.
809
43168646
LD
8102013-04-27 Leon Drugi <eyak>
811
812 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
813 BSS clearing.
814
e7b8fd08
VS
8152013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
816
817 Core compression test.
818
17f9fd29
VS
8192013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
820
821 Implement grub_machine_get_bootlocation for ARC.
822
dc2a6c8b
VS
8232013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
824
825 Improve AHCI detection and command issuing.
826
f25a2ba6
VS
8272013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Fix pseries test.
830
a6393224
VS
8312013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Make 'make check' work on emu.
834
db99fbe8
VS
8352013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
836
837 Replace libcurses with our own vt100 handling for the ease of testing
838 and decreasing prerequisites.
839
b24ca7cd
VS
8402013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
843
63314aa4
VS
8442013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
847 compile when not needed.
848
c1b00fff
VS
8492013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * tests/pseries_test.in: New test.
852
f93e89ef
VS
8532013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
854
855 Add test to check that different boot mediums work.
856
c4b456d3
VS
8572013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
860 ofw limited ISO support.
861
5fe67f39
VS
8622013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * configure.ac: Fix loongson conditional.
865
7f63a64f
VS
8662013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
867
868 Enable mipsel-arc.
869
b04b5990
VS
8702013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Add serial on ARC platform.
873
88d2f302
VS
8742013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
877 commit.
878
86eb23bc
VS
8792013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
880
881 * tests/partmap_test.in: Add missing double semicolon.
882
eec3bb75
VS
8832013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
884
885 * util/grub-mkrescue.in: Fix loongson filename.
886
e0810df3
VS
8872013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * util/grub-mkrescue.in: Move all files that don't have a location
890 set in stone under /boot/grub. Use ISO hard links rather than copies
891 to save some space.
892
65a6b30b
VS
8932013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
896 bogus SLOF values.
897
6aff0107
VS
8982013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
899
900 Make check work on mips-arc.
901
5e013e56
VS
9022013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * util/grub-mkrescue.in: Alias sashARCS as sash.
905
d1989e2e
VS
9062013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
907
908 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
909 it's serial.
910
1a25e72c
VS
9112013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * util/grub-install.in: Fix target fo qemu_mips.
914 Fix extension on EFI.
915
a59a9826
VS
9162013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
919 in front of chosen entry to mark it even if highlighting is lost.
920
1a40f80c
VS
9212013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
924 gfxpayload=keep if cbfb is active.
925
e343549c
VS
9262013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
929
45fbd9a2
VS
9302013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
931
932 Add missing video ids to coreboot and ieee1275 video.
933
ab1440bd
VS
9342013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * util/grub-mkrescue.in: Add mips-arc support.
937
cdeb8324
VS
9382013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
939
940 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
941
8528c879
VS
9422013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Move mips-arc link address. Previous link address was chosen
945 in belief that RAM on SGI platforms grows down while in fact it
946 grows up from an unusual base.
947
17fca573
VS
9482013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
951 Fix a type which prevented CD-ROM and floppy boot.
952
d178788e
VS
9532013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
954
955 Support coreboot framebuffer.
956
957 * grub-core/video/i386/coreboot/cbfb.c: New file.
958
fe4c3e7e
VS
9592013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
962 detecting too small regions.
963
ec2dd179
VS
9642013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
967
872dac83
VS
9682013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
971 Remove dprintf.
972 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
973
90ec4b7f
VS
9742013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
977 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
978 * grub-core/loader/powerpc/ieee1275/linux.c
979 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
980
f32555dd
VS
9812013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
984 Look for /boot-rom as well as /rom/boot-rom.
985
38649799
VS
9862013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
989 handling when creating text_layer failed.
990 * grub-core/video/video.c (grub_video_create_render_target):
991 Set result to 0 on error.
992 (grub_video_delete_render_target): Do not dereference NULL.
993
aeace7f7
VS
9942013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
997 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
998 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
999 (grub_linux_load64): Mask out 2 high bits.
1000
4eafa175
AB
10012013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
1002
1003 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
1004 more place.
1005
daaa64bd
VS
10062013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 Add support for pseries and other bootinfo machines to grub-mkrescue.
1009
1010 Tested by: Paulo Flabiano Smorigo.
1011
d0d2daa6
VS
10122013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 * util/grub-mkrescue.in: Add GPT for EFI boot.
1015
b193e100
VS
10162013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
1019 It improves performance in qemu.
1020
a0f8f3ac
VS
10212013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * build-aux/snippet: Add missing gnulib files.
1024
284df0e2
AB
10252013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1026
1027 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
1028
740201f3
AB
10292013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1030
1031 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
1032
a7e03923
PJ
10332013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
10342013-04-15 Peter Jones <pjones@redhat.com>
1035
1036 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
1037 sectors.
1038 Based on patch by Peter Jones.
1039
25fc51a8
VS
10402013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 Fix DMRAID partition handling.
1043
88017d47
VS
10442013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * tests/grub_cmd_date.in: Skip on sparc64.
1047
fa7d914e
VS
10482013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
1051 firmware error messages.
1052
cbe57a48
VS
10532013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
1056 source and destination differ.
1057
21aecce0
VS
10582013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
1061 detection.
1062
25092d29
VS
10632013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
1066 match config-util.h to avoid warnings and increase compatibility.
1067
79451522 10682013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 10692013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
1070
1071 Add option to compress files on install/image creation.
1072
78b7d77b
VS
10732013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 * docs/grub-dev.texi: Rearrange menu to match the section order.
1076 Reported by: Bryan Hundven.
1077
cc2fa5ec
VS
10782013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
1081
b49fe879
VS
10822013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 Move GRUB out of system area when using xorriso 1.2.9 or later.
1085
5351da81
VS
10862013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * tests/grub_cmd_date.in: Add missing exit 1.
1089
c9d586ea
VS
10902013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * tests/partmap_test.in: Skip on sparc64.
1093
3f729741
VS
10942013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Support grub-shell on sparc64.
1097
8ca86b3a
VS
10982013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Support mkrescue on sparc64.
1101
aa1af9bb
VS
11022013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 Allow IEEE1275 ports on path even if it wasn't detected automatically.
1105 Needed on OpenBIOS due to incomplete device tree.
1106
ac4fea79
VS
11072013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
1110 would be otherwise excluded.
1111
11122013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
1113
1114 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1115 Inline name defines used only once.
1116
fe22b071
VS
11172013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Fix memory leaks in ofnet.
1120 Reported by: Francesco Lavra.
1121
9d21381b
VS
11222013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 * docs/man/grub-glue-efi.h2m: Add missing file.
1125
07aec23c
VS
11262013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
1129
67ab8353
VS
11302013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 Better support Apple Intel Macs on CD.
1133
ba44ca6d
VS
11342013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Replace stpcpy with grub_stpcpy in tools.
1137
bbdd6305
VS
11382013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Handle Japanese special keys.
1141 Reported by: Hiroyuki YAMAMORI.
1142 Codes supplied by: Hiroyuki YAMAMORI.
1143
8573d302
VS
11442013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * util/grub-mkimage.c: Document memdisk implying --prefix.
1147
d70dbab7
VS
11482013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
1151 much we can do about it anyway.
1152
51a4c3e3
AN
11532013-04-12 Aleš Nesrsta <starous@volny.cz>
1154
1155 Fix handling of split transfers.
1156
92c8f58d
VS
11572013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/net/http.c: Fix bad free.
1160
b7d17a49
VS
11612013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1164 than buffer size.
1165
a3d566d4
VS
11662013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1169
a936af56
VS
11702013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * tests/util/grub-shell.in: Fix it on powerpc.
1173
51212234
VS
11742013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 Turn off QEMU ACPI-way since new releases don't have shutdown port
1177 anymore.
1178
a21eec9e
VS
11792013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * docs/grub.texi: Update coreboot status info.
1182
e3734b84
VS
11832013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 * tests/grub_cmd_date.in: New test for datetime.
1186
f9d40055
VS
11872013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * tests/partmap_test.in: Fix missing qemudisk setting.
1190
dbc56d8f
VS
11912013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1192
1193 Support i386-ieee1275 grub-mkrescue and make check on it.
1194
a79b8a15
VS
11952013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1198 feature for it.
1199
48f39bb4
VS
12002013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1203 GRUB_CMDLINE_XEN_DEFAULT.
1204 Reported by: Marc Warne (GigaTux) <gigatux>
1205
053cfcdd
VS
12062013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 Import new gnulib.
1209
93cd84df
VS
12102013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Use ACPI shutdown intests as traditional port was removed.
1213
f4b1fa4f
AB
12142013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1215
1216 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1217 distinction.
1218
49818a59
VS
12192013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1222 Fix few warining messages and leaks while on it.
1223
9277a306
AB
12242013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1225
1226 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1227 links under grub-core/lib/libgcrypt-grub/mpi.
1228
d5e2a158
VS
12292013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 Fix ia64-efi image generation on big-endian machines. Deduplicate
1232 some code while on it.
1233 Reported by: Leif Lindholm.
1234
18866643
AB
12352013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1236
1237 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1238 as extra_dist.
1239
ca53deb8
AB
12402013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1241
1242 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1243
d4c4b8e1
BH
12442013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1245
1246 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1247 texinfo-5.1.
1248
47043f95
VS
12492013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * grub-core/normal/term.c: Few more fixes for menu entry editor
1252 rendering.
1253 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1254
a3216068
VS
12552013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/normal/term.c: Few more fixes for menu entry editor
1258 rendering.
1259 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1260
21026747
AB
12612013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1262
1263 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1264 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1265
59624ca8
AB
12662013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1267
1268 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1269 instead of hardcoding grub.mo.
1270
1f44478c
FN
12712013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1272
1273 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1274
eeada7b1
VS
12752013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1278 grub-core/disk/geli.c.
1279
132867de
VS
12802013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 * util/grub-mkfont.c: Prefer enum to #define.
1283
de73de17
VS
12842013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1287
1865baa7
VS
12882013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1291
ce7d92a9
VS
12922013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1295
52eab656
VS
12962013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1299
98b23b95
VS
13002013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * include/grub/bsdlabel.h: Use enums.
1303
0467a5dd
VS
13042013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 Move GRUB_CHAR_BIT to types.h.
1307
16cc9f03
AB
13082013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1309
1310 * docs/grub.texi: Document more user commands.
1311
3152aecb
AB
13122013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1313
1314 * docs/grub.texi: Document menuentry --id option.
1315
c506fc30
FL
13162013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1317
1318 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1319
aa428238
VS
13202013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 Unify file copying setup across different install scripts. Add
1323 options for performing partial install.
1324
efe0cdda
PJ
13252013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13262013-04-04 Peter Jones <pjones@redhat.com>
1327
1328 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1329
f75835bd
VS
13302013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 Use TSC as a possible time source on i386-ieee1275.
1333
2cd5ce6c
VS
13342013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1337 Init err.
1338
c9625630
VS
13392013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 * util/grub-setup.c (setup): Handle some corner cases.
1342
be008941
VS
13432013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1346
1a78d573
VS
13472013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * grub-core/commands/verify.c: Save verified file to avoid it being
1350 tampered with after verification was done.
1351
db8ff59f
VS
13522013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1355 reported width by one to compensate for curesor algorithm problem.
1356
91bf46b1
VS
13572013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 Fix screen corruption in menu entry editor and simplify the code
1360 flow while on it.
1361
a7b1d693
AB
13622013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1363
1364 * util/grub-mount.c (fuse_init): Return error if fuse_main
1365 failed.
1366
31df9ad8
FL
13672013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1368
1369 * include/grub/elf.h: Add missing ARM relocation codes and fix
1370 existing ones.
1371
07f392eb
VT
13722013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1373
1374 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1375
9efd73ec 13762013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
13772013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1380 into account when calculating radius.
1381
13822013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
1383
1384 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1385
4985ddaa
VT
13862013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1387
1388 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1389
8c3635ff
RS
13902013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1391
1392 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1393 missing closing bracket.
1394
74a35e69
RS
13952013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1396
1397 * INSTALL: Mention xorriso requirement.
1398
40f1c000
AB
13992013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1400
1401 * grub-core/commands/verify.c: Fix hash algorithms values for
1402 the first three hashes - they start with 1, not with 0.
1403
e75fdee4
VS
14042013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1407 Try terminating EFI services several times due to quirks in some
1408 implementations.
1409
33028f4c
CW
14102013-03-26 Colin Watson <cjwatson@ubuntu.com>
1411
1412 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1413 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1414 BankField extended opcodes.
1415 (get_sleep_type): Add minimal scope handling (just enough to
1416 handle setting the scope to the root path).
1417 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1418 * include/grub/acpi.h: Add enumeration values for Event, Device,
1419 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1420
33871a10
VT
14212013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1422
1423 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1424 memory leak.
1425
8990963a
VS
14262013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * grub-core/disk/ahci.c: Give more time for AHCI request.
1429
daae8f9e
VS
14302013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1433 command.
1434
6a7fb94b
VS
14352013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 Replace the region at 0 from coreboot tables to available in BSD
1438 memory map.
1439
ff99babd
VS
14402013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
1443 non-BIOS platforms.
1444
30d6b1b2
VS
14452013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
1448 platforms.
1449
6ccd0b31
VS
14502013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1453 handling of multi-device filesystems.
1454
23c9cc04
VS
14552013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
1458 platforms.
1459
ce50dbd7
VS
14602013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 Add new 'proc' filesystem framework and put luks_script into it.
1463
d975e8d5
VS
14642013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
1467 and qemu.
1468
e73ba5e8
VS
14692013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
1472
92750e4c
VS
14732013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 Add ability to generate newc additions on runtime.
1476
0ec45a68
VS
14772013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
1480 description.
1481
320abd43
VS
14822013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * po/POTFILES.in: Regenerate.
1485
d7a6506e
VS
14862013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/commands/verify.c (hashes): Add several hashes
1489 from the spec.
1490
8fe05def
VS
14912013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 Slight improve in USB-related boot-time checkpoints.
1494
524e2766
VS
14952013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * grub-core/commands/boottime.c: Fix copyright header.
1498
cc19857a
VS
14992013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
1502 coreboot tables content. Support for cbmemc.
1503
ef8810e9
VS
15042013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 Fix a conflict between ports structures with 2 controllers of
1507 same kind.
1508
e9dabdfa
VS
15092013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * include/grub/boottime.h: Add missing file.
1512
f6df57d2
VS
15132013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 Initialize USB ports in parallel to speed-up boot.
1516
d745dda7
VS
15172013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 Fix USB devices not being detected when requested
1520 due to delayed attach.
1521
e5a2dd7b
VS
15222013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1523
e744219b
VS
1524 Implement boot time analysis framework.
1525
15262013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
1529 descriptor to just receive it as argument rather than endpoint
1530 address.
1531
5dd6f587
VS
15322013-03-19 Aleš Nesrsta <starous@volny.cz>
1533
1534 Better estimate the maximum USB transfer size.
1535
2f1071d5
VS
15362013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 Resend a packet if we got the wrong buffer in status.
1539
46ecfc49
VS
15402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
1543 multiplication rather than division.
1544
ea811130
VS
15452013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
1548 than divisions.
1549
d2789cf0
VS
15502013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
1553 operations to have intended shifts and not divisions.
1554
a9c94590
VS
15552013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
1558 intended shifts rather than division.
1559
84cfe81b
VS
15602013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
1563 computation for some years before epoch. Avode confusing division
1564 while on it.
1565
21344ef6
VS
15662013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 * grub-core/video/i386/pc/vbe.c
1569 (grub_video_vbe_print_adapter_specific_info): Replace division by
1570 shifts.
1571
3f2b4d1a
VS
15722013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 Adjust types in gdb module to have intended unsigned shifts rather than
1575 signed divisions.
1576
3dac5878
VS
15772013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
1580 maximum size is 4G - 1 on hfs
1581
5341c0fb
VS
15822013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
1585
fc3ff2a2
VS
15862013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
1589 function.
1590
81455e8e
AB
15912013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
1592
1593 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
1594 causing gcc error with gcc 4.7.1.
1595
efd4f117
NZ
15962013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1597
1598 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
1599 dereference null pointer. While the code is technically correct, gcc
1600 may eliminate a null check if pointer is already dereferenced.
1601
e11645f4
NZ
16022013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1603
1604 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
1605 OOM check.
1606 * grub-core/normal/term.c (read_terminal_list): Likewise.
1607
77468368
VS
16082013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 Lift up core size limits on some platforms. Fix potential memory
1611 corruption with big core on small memory systems. Document remaining
1612 limits.
1613
f6b58fe5
VS
16142013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
1617 gotoxy to 0,0.
1618
19ce697d
VS
16192013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 Remove all trampoline support. Add -Wtrampolines when
1622 present. Remove symbols used for trampolines to make
1623 link fail if trampolines are present.
1624
73b5d90f
VS
16252013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
1628 append out of its parent.
1629
cb758e96
VS
16302013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
1633 parent.
1634
3188131f
VS
16352013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
1638 all vars to a macro. All users updated.
1639
e42b2514
VS
16402013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/disk/ieee1275/nand.c: Fix compilation on
1643 i386-ieee1275.
1644
83e1a1a1
VS
16452013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
1648
1d5a880f
VS
16492013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
1652
6e4146c4
VS
16532013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 Move to more hookless approach in IEEE1275 devices handling.
1656
99fcda8a
VS
16572013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * grub-core/kern/term.c (grub_term_normal_color),
1660 (grub_term_highlight_color): Add back lost defaults.
1661
73bf57e2
VS
16622013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 Make elfload not use hooks. Opt for flags and iterators instead.
1665
7f8c105f
VS
16662013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
1669 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
1670
396d4091
VS
16712013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/script/execute.c (gettext_append): Remove nested functions.
1674
16752013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
1678 hook pass-through parameter. All users updated and unnested.
1679
74a27421
VS
16802013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
1683 out of its parent.
1684
b46d4213
VS
16852013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1686
1687 * grub-core/fs/hfs.c: Remove nested functions.
1688
e114c3cc
VS
16892013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
1692 the context through.
1693 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
1694
f9b7d780
VS
16952013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * util/grub-editenv.c (list_variables): Move print_var out of its
1698 parent.
1699
ca9c2608
VS
17002013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
1703 function.
1704
5d983f5f
VS
17052013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * grub-core/gentrigtables.c: Make tables const.
1708
3056d3e7
VS
17092013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 Remove nested functions from videoinfo iterators.
1712
e2303774
VS
17132013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
1716 for 64-bit platforms.
1717
f42e3a2f
VS
17182013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
1721 a FOR_CHILDREN macro.
1722
be174e5e
VS
17232013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
1726 platform from firmware path.
1727
0789b672
VS
17282013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 Enable linux16 on non-BIOS systems for i.a. memtest.
1731
1732 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
1733 correctly.
1734 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
1735
005a9c32
VS
17362013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
1739 Fix end of table condition.
1740
ff2b3cd9
VS
17412013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
1744 out of its parent.
1745
4fc40ff8
VS
17462013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/fs/jfs.c: Remove nested functions.
1749
be42d97a
VS
17502013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 * grub-core/fs/minix.c: Remove nested functions.
1753
99373ce4
VS
17542013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * grub-core/fs/iso9660.c: Remove nested functions.
1757
5aec2afe
VS
17582013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
1761 of parent function.
1762
6c69e691
VS
17632013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 * util/grub-fstest.c: Remove nested functions.
1766
43c91882
VS
17672013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * grub-core/loader/machoXX.c: Remove nested functions.
1770
4eb8b756
CW
17712013-02-27 Colin Watson <cjwatson@ubuntu.com>
1772
1773 Remove nested functions from disk and file read hooks.
1774
1775 * include/grub/disk.h (grub_disk_read_hook_t): New type.
1776 (struct grub_disk): Add read_hook_data member.
1777 * include/grub/file.h (struct grub_file): Likewise.
1778 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
1779 argument.
1780
1781 Update all callers.
1782
df6da5a5
AB
17832012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
1784
1785 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
1786 Fix off by one error in enumerating extended partitions.
1787
21aecde5
AB
17882013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
1789
1790 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
1791 memory leak if device name is not found.
1792
f1a19118
AB
17932013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1794
1795 * grub-core/normal/menu_entry.c (update_screen): remove
1796 unused variable `off' which caused scroll down arrow to be always shown.
1797
958bfd20
AB
17982013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1799
1800 * grub-core/normal/menu_entry.c (insert_string): fix off by one
1801 access to unallocated memory.
1802
b7b78edb
AB
18032013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1804
1805 * Makefile.util.def: Add partmap/msdos.c to common library.
1806 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
1807 * grub-core/disk/ldm.c: Check for existence of
1808 GRUB_PC_PARTITION_TYPE_LDM.
1809
28d468d6
VS
18102013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
1813 sizes and display sector size.
1814
d55ffb02
VS
18152013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 Implement new command cmosdump.
1818
b5ea6ce0
VS
18192013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1820
1821 Support Openfirmware disks with non-512B sectors.
1822
1823 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
1824 size of the disk.
1825 * (grub_ofdisk_get_block_size): New function.
1826 * (grub_ofdisk_prepare): Use the correct block size.
1827 * (grub_ofdisk_read): Likewise.
1828 * (grub_ofdisk_write): Likewise.
1829 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
1830 New proto.
1831
cc0e476f
VS
18322013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
1835
c5dbdc33
VS
18362013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
1839 on first error.
1840
3f078c0f
VS
18412013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
1844 freeing it.
1845
66a93674
VS
18462013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 Implement USBDebug (full USB stack variant).
1849
c9f0c134
VS
18502013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
1853 unless they have unexpected values.
1854
cfe1288b
VS
18552013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
1858 grub_print_error.
1859
e42b9969
VS
18602013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
1863 zero-out of port structure.
1864
cf94fd62
VS
18652013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
1868 of extended attributes.
1869
f81ef4b5
AB
18702013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
1871
1872 * util/grub-install.in: change misleading comment about
1873 device.map creation
1874
af18fdb4
VS
18752013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
1878 when menu highlight color isn't set.
1879
08bcec50
M
18802013-01-27 C. Masloch <pushbx@38.de>
1881
1882 Improve FreeDOS direct loading support compatibility.
1883
1884 * include/grub/i386/relocator.h (grub_relocator16_state):
1885 New member ebp.
1886 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
1887 variable.
1888 (grub_relocator16_boot): Handle %ebp.
1889 * grub-core/lib/i386/relocator16.S: Likewise.
1890 * grub-core/loader/i386/pc/freedos.c:
1891 Load BPB to pass kernel which partition to load from.
1892 Check that kernel file is not too large.
1893 Set register dl to BIOS unit number as well.
1894
7782b8a6
CW
18952013-01-22 Colin Watson <cjwatson@ubuntu.com>
1896
1897 * util/grub-reboot.in (usage): Document the need for
1898 GRUB_DEFAULT=saved.
1899 * util/grub-set-default.in (usage): Likewise.
1900 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
1901
e661c180
VS
19022013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
1905 than defining WORDS_BIGENDIAN manually.
1906
1c22ca9a
VS
19072013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
1910 invariants.
1911
d44892fe
CW
19122013-01-21 Colin Watson <cjwatson@ubuntu.com>
1913
1914 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
1915 nested.
1916 (blit_comb: add_device_width): Likewise.
1917
5fdbaed1
CW
19182013-01-21 Colin Watson <cjwatson@ubuntu.com>
1919
1920 Remove nested functions from USB iterators.
1921
1922 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
1923 (grub_usb_controller_iterate_hook_t): Likewise.
1924 (grub_usb_iterate): Add hook_data argument.
1925 (grub_usb_controller_iterate): Likewise.
1926 (struct grub_usb_controller_dev.iterate): Likewise.
1927
1928 Update all implementations and callers.
1929
4250985a
VS
19302013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
1933 margin when not needed.
1934
7d8848f3
VS
19352013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1936
bc136973 1937 Make color variables global instead of it being per-terminal.
7d8848f3
VS
1938
19392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1940
bc136973
VS
1941 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
1942 asterisk.
7d8848f3 1943
ed12a003
CW
19442013-01-21 Colin Watson <cjwatson@ubuntu.com>
1945
1946 Fix powerpc and sparc64 build failures caused by un-nesting memory
1947 map iterators.
1948
6a0db449
CW
19492013-01-21 Colin Watson <cjwatson@ubuntu.com>
1950
1951 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
1952 parameter declarations.
1953
ccd86b21
VS
19542013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
1957
822b726b
VS
19582013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 Improve spkmomdem reliability by adding a separator between bytes.
1961
115c2cc1
CW
19622013-01-21 Colin Watson <cjwatson@ubuntu.com>
1963
1964 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1965 an Acer registration utility with several sightings in the wild.
1966 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1967
fc524edf
CW
19682013-01-21 Colin Watson <cjwatson@ubuntu.com>
1969
1970 Remove nested functions from filesystem directory iterators.
1971
1972 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1973 (struct grub_fs.dir): Add hook_data argument.
1974
1975 Update all implementations and callers.
1976
53d3e4e3
CW
19772013-01-21 Colin Watson <cjwatson@ubuntu.com>
1978
1979 * docs/grub.texi (Multi-boot manual config): Fix typo for
1980 "recommended".
1981
c821711f
LL
19822013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1983
1984 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1985 until after its use in generate_image.
1986
6a0debbd
CW
19872013-01-20 Colin Watson <cjwatson@ubuntu.com>
1988
1989 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1990 initrd size to addr_min, since the initrd will be allocated after
1991 this address.
1992
f41e08db
AB
19932013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1994
1995 * conf/Makefile.common: Fix autogen rules to pass definition
1996 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1997
77529e0f
LL
19982013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1999
2000 * include/grub/elf.h: Update ARM definitions based on binutils.
2001
b879aa7b
VS
20022013-01-20 Aleš Nesrsta <starous@volny.cz>
2003
2004 Split long USB transfers into short ones.
2005
8eb8284d
AB
20062013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2007
2008 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
2009 is interrupted by ESC.
2010
08dad2dc
VS
20112013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * util/grub-script-check.c (main): Uniform the error message.
2014
6c724b85
CW
20152013-01-20 Colin Watson <cjwatson@ubuntu.com>
2016
2017 Remove nested functions from ELF iterators.
2018
25239370
CW
20192013-01-20 Colin Watson <cjwatson@ubuntu.com>
2020
2021 Remove nested functions from device iterators.
2022
2023 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
2024 (grub_arc_iterate_devs): Add hook_data argument.
2025 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
2026 (struct grub_ata_dev.iterate): Add hook_data argument.
2027 * include/grub/device.h (grub_device_iterate_hook_t): New type.
2028 (grub_device_iterate): Add hook_data argument.
2029 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
2030 (struct grub_disk_dev.iterate): Add hook_data argument.
2031 (grub_disk_dev_iterate): Likewise.
2032 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
2033 Likewise.
2034 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
2035 Likewise.
2036 * include/grub/partition.h (grub_partition_iterate_hook_t): New
2037 type.
2038 (struct grub_partition_map.iterate): Add hook_data argument.
2039 (grub_partition_iterate): Likewise.
2040 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
2041 (struct grub_scsi_dev.iterate): Add hook_data argument.
2042
2043 Update all callers.
2044
6c0314d6
CW
20452013-01-20 Colin Watson <cjwatson@ubuntu.com>
2046
2047 Fix typos for "developer" and "development".
2048
600dc5f1
VS
20492013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 Add license header to spkmodem-recv.c.
2052
17334a6b
VS
20532013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 Rewrite spkmodem to use PIT for timing. Double the speed.
2056
7d462559
VS
20572013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 Add new command pcidump.
2060
b78d6c32
VS
20612013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2062
2063 New terminal outputs using serial: morse and spkmodem.
2064
34f71cb8
VS
20652013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 Improve bidi handling in entry editor.
2068
4542e71b
VS
20692013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2072 argument to prevent name collision.
2073
09fd6d82
CW
20742013-01-15 Colin Watson <cjwatson@ubuntu.com>
2075
2076 Remove nested functions from script reading and parsing.
2077
2078 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
2079 getline_data argument, passed to getline.
2080 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
2081 getline_data argument, passed to grub_parser_split_cmdline.
2082 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
2083 lexerstate->getline_data to lexerstate->getline.
2084 (grub_script_lexer_init): Add getline_data argument, saved in
2085 lexerstate->getline_data.
2086 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
2087 argument, passed to grub_script_parse.
2088 * grub-core/script/script.c (grub_script_parse): Add getline_data
2089 argument, passed to grub_script_lexer_init.
2090 * include/grub/parser.h (grub_parser_split_cmdline): Update
2091 prototype. Update all callers to pass appropriate getline data.
2092 (struct grub_parser.parse_line): Likewise.
2093 (grub_rescue_parse_line): Likewise.
2094 * include/grub/reader.h (grub_reader_getline_t): Add void *
2095 argument.
2096 * include/grub/script_sh.h (struct grub_lexer_param): Add
2097 getline_data member.
2098 (grub_script_parse): Update prototype. Update all callers to pass
2099 appropriate getline data.
2100 (grub_script_lexer_init): Likewise.
2101 (grub_normal_parse_line): Likewise.
2102
2103 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
2104 data argument.
2105 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
2106 static instead of nested. Rename to ...
2107 (grub_parser_execute_getline): ... this.
2108 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
2109 data argument.
2110 * grub-core/normal/main.c (read_config_file: getline): Make static
2111 instead of nested. Rename to ...
2112 (read_config_file_getline): ... this.
2113 (grub_normal_read_line): Add unused data argument.
2114 * grub-core/script/execute.c (grub_script_execute_sourcecode:
2115 getline): Make static instead of nested. Rename to ...
2116 (grub_script_execute_sourcecode_getline): ... this.
2117 * util/grub-script-check.c (main: get_config_line): Make static
2118 instead of nested.
2119
d0d4b8a0
CW
21202013-01-15 Colin Watson <cjwatson@ubuntu.com>
2121
2122 Remove nested functions from memory map iterators.
2123
2124 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
2125 argument, passed to hook.
2126 * grub-core/kern/i386/coreboot/mmap.c
2127 (grub_linuxbios_table_iterate): Likewise.
2128 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
2129 instead of nested.
2130 (grub_machine_mmap_iterate): Add hook_data argument.
2131 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
2132 Add hook_data argument, passed to hook.
2133 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
2134 Likewise.
2135 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2136 Likewise.
2137 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
2138 Likewise.
2139 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
2140 Likewise.
2141 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
2142 Likewise.
2143 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
2144 Likewise.
2145 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
2146 (grub_machine_mmap_iterate): Likewise.
2147 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
2148 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
2149 prototype.
2150 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
2151 Remove NESTED_FUNC_ATTR from here and from all users.
2152 (grub_mmap_iterate): Update prototype.
2153 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2154 pass appropriate hook data.
2155 (grub_machine_mmap_iterate): Likewise.
2156
2157 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2158 static instead of nested.
2159 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2160 Rename to ...
2161 (lsmmap_hook): ... this.
2162 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2163 Likewise.
2164 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2165 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2166 heap_init): Likewise.
2167 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2168 Rename to ...
2169 (mmap_iterate_hook): ... this.
2170 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2171 Likewise.
2172 * grub-core/lib/ieee1275/relocator.c
2173 (grub_relocator_firmware_get_max_events: count): Likewise.
2174 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2175 to ...
2176 (grub_relocator_firmware_fill_events_iter): ... this.
2177 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2178 hook): Likewise. Rename to ...
2179 (grub_relocator_alloc_chunk_align_iter): ... this.
2180 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2181 Rename to ...
2182 (generate_e820_mmap_iter): ... this.
2183 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2184 Rename to ...
2185 (count_hook): ... this.
2186 (grub_linux_boot: hook): Likewise. Rename to ...
2187 (grub_linux_boot_mmap_find): ... this.
2188 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2189 (grub_linux_boot_mmap_fill): ... this.
2190 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2191 hook): Likewise. Rename to ...
2192 (grub_fill_multiboot_mmap_iter): ... this.
2193 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2194 hook): Likewise. Rename to ...
2195 (count_hook): ... this.
2196 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2197 hook): Likewise. Rename to ...
2198 (grub_fill_multiboot_mmap_iter): ... this.
2199 * grub-core/loader/powerpc/ieee1275/linux.c
2200 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2201 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2202 Likewise. Rename to ...
2203 (alloc_phys_choose): ... this.
2204 (determine_phys_base: get_physbase): Likewise.
2205 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2206 find_hook): Likewise.
2207 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2208 (malloc_hook: count_hook): Likewise.
2209 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2210 Likewise. Rename to ...
2211 (lower_hook): ... this.
2212 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2213 (upper_hook): ... this.
2214 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2215 (post64_hook): ... this.
2216 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2217 Likewise. Rename to ...
2218 (lower_hook): ... this.
2219 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2220 (upper_hook): ... this.
2221 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2222 (grub_mmap_iterate: fill_hook): Likewise.
2223 (fill_mask): Pass addr and mask within a single struct.
2224 (grub_cmd_badram: hook): Make static instead of nested. Rename
2225 to ...
2226 (badram_iter): ... this.
2227 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2228 (cutmem_iter): ... this.
2229
22099030
VS
22302013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2233 delimit path in strings using quotes.
2234 * util/getroot.c (grub_guess_root_devices): Likewise.
2235 (grub_make_system_path_relative_to_its_root): Likewise.
2236 * util/grub-probe.c (probe): Likewise.
2237 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2238 (xrealpath): Likewise.
2239
4a9950ec
VS
22402013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 Fix compilation with older compilers.
2243
2244 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2245 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2246 declarations.
2247 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2248 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2249 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2250 identifier with b.
2251 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2252 * include/grub/crypto.h: Add type defines.
2253 * util/import_gcrypth.sed: Remove duplicate type defines.
2254
adcc6020
VS
22552013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 New command list_trusted.
2258
2259 * grub-core/commands/verify.c (grub_cmd_list): New function.
2260
a4528937
CW
22612013-01-13 Colin Watson <cjwatson@ubuntu.com>
2262
2263 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2264 info message.
2265
ca3a7446
CW
22662013-01-13 Colin Watson <cjwatson@ubuntu.com>
2267
2268 Remove nested functions from PCI iterators.
2269
2270 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2271 passed to hook. Update all callers to pass appropriate hook data.
2272 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2273 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2274 Remove NESTED_FUNC_ATTR from here and from all users.
2275 (grub_pci_iterate): Update prototype.
2276 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2277 instead of nested. Rename to ...
2278 (grub_cs5536_find_iter): ... this.
2279 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2280 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2281 Likewise.
2282 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2283 Likewise.
2284 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2285 Likewise.
2286 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2287 Likewise.
2288 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2289 * grub-core/video/radeon_fuloong2e.c
2290 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2291 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2292 find_card): Likewise.
2293 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2294 Likewise.
2295
f8e98fee
VS
22962013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/commands/verify.c: Mark messages for translating.
2299
055b36b6
VS
23002013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2303 fatal.
2304
f7ff879b
VS
23052013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2308 fatal.
2309
23102013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
2311
2312 * autogen.sh: Do not try to delete nonexistant files.
2313 * util/import_gcrypth.sed: Add some missing header removals.
2314
01323d49
CW
23152013-01-12 Colin Watson <cjwatson@ubuntu.com>
2316
2317 Clean up dangling references to grub-setup.
2318 Fixes Ubuntu bug #1082045.
2319
2320 * docs/grub.texi (Images): Refer generally to grub-install rather
2321 than directly to grub-setup.
2322 (Installing GRUB using grub-install): Remove direct reference to
2323 grub-setup.
2324 (Device map) Likewise.
2325 (Invoking grub-install): Likewise.
2326 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2327 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2328 * util/grub-install.in (usage): Likewise.
2329
2330 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2331 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2332 grub-setup.
2333 * configure.ac: Remove grub_setup output variable.
2334
2335 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2336 to grub-bios-setup.
2337 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2338 grub-setup to grub-sparc64-setup.
2339
5e3b8dcb
VS
23402013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 Import gcrypt public-key cryptography and implement signature checking.
2343
535714bd
VS
23442013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * grub-core/fs/ntfs.c: Ue more appropriate types.
2347 * grub-core/fs/ntfscomp.c: Likewise.
2348 * include/grub/ntfs.h: Likewise.
2349
3e4f3566
VS
23502013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 Support Apple FAT binaries on non-Apple platforms.
2353
2354 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2355 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2356 Likewise.
2357 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2358 Apple FAT binaries.
2359
4dedb13f
VS
23602013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2363 sector devices.
2364
f8861eaf
CW
23652013-01-07 Colin Watson <cjwatson@ubuntu.com>
2366
2367 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2368 explicitly zeroing elements.
2369 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2370 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2371 of elements in a structure already allocated using grub_zalloc.
2372 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2373
86065b0a
CW
23742013-01-07 Colin Watson <cjwatson@ubuntu.com>
2375
2376 * docs/grub.texi (grub_cpu): New subsection.
2377 (grub_platform): Likewise.
2378
c6f1e92f
VS
23792013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2382
f797ec85
VS
23832013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2386 divisions.
2387
033d0b4b
VS
23882013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2391 * grub-core/fs/ntfscomp.c: Likewise.
2392 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2393 (grub_ntfs_comp): Likewise.
2394
21d1b9a0
VS
23952013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2398 Rename to ...
2399 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2400 of groups_per_block. All users updated.
2401
10ca8645
VS
24022013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2405 grub_error properly.
2406 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2407 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2408
a4c3ed4c
VS
24092013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2412 always in /boot/zfs.
2413 Reported by: Yuta Satoh.
2414
0b716507
YS
24152013-01-03 Yuta Satoh <nigoro>
2416
2417 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2418 ${grub_probe}
2419
00c05e22
VS
24202013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * configure.ac: Extend -Wno-trampolines to host.
2423
dadddb76
VS
24242013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2427 entry->len = 0.
2428
54ce53ca
CW
24292013-01-03 Colin Watson <cjwatson@ubuntu.com>
2430
2431 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2432 (Invoking grub-script-check): Likewise.
2433
8912efca
CW
24342013-01-03 Colin Watson <cjwatson@ubuntu.com>
2435
2436 * docs/grub.texi (Invoking grub-mount): New section.
2437 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2438
c3fc8394
CW
24392013-01-02 Colin Watson <cjwatson@ubuntu.com>
2440
2441 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
2442 test failures, so that a failing unit test correctly causes 'make
2443 check' to fail.
2444
45d26abb
CW
24452013-01-02 Colin Watson <cjwatson@ubuntu.com>
2446
2447 Fix failing printf test.
2448
2449 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
2450 '$' in the correct order when collecting type information.
2451
971dd2c6
CW
24522013-01-02 Colin Watson <cjwatson@ubuntu.com>
2453
2454 * docs/grub.texi (configfile): Explain environment variable
2455 handling.
2456 (source): New section.
2457 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
2458
5c67ea6c
CW
24592012-12-31 Colin Watson <cjwatson@ubuntu.com>
2460
2461 Remove several trivially-unnecessary uses of nested functions.
2462
2463 * grub-core/commands/i386/pc/sendkey.c
2464 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
2465 instead of nested.
2466 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
2467 Rename to ...
2468 (legacy_file_getline): ... this.
2469 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
2470 Likewise.
2471 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
2472 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
2473 to ...
2474 (probe_dummy_iter): ... this.
2475 * grub-core/kern/i386/coreboot/mmap.c
2476 (grub_linuxbios_table_iterate: check_signature): Likewise.
2477 * grub-core/kern/parser.c (grub_parser_split_cmdline:
2478 check_varstate): Likewise. Mark inline.
2479 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
2480 an additional parameter.
2481 (find_long: fnd_long): Likewise. Pass two additional parameters.
2482 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
2483 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
2484 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
2485 Likewise. Rename to ...
2486 (grub_cmos_find_port_iter): ... this.
2487 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
2488 Rename to ...
2489 (find_rtc_iter): ... this.
2490
2491 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
2492 function directly into the function body, since it is only called
2493 once.
2494
33a68ac6
CW
24952012-12-30 Colin Watson <cjwatson@ubuntu.com>
2496
2497 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
2498 __attribute__ ((unused)).
2499 * grub-core/video/bochs.c (find_card): Likewise.
2500 * grub-core/video/cirrus.c (find_card): Likewise.
2501 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
2502 * grub-core/video/sis315pro.c (find_card): Likewise.
2503 * grub-core/video/sm712.c (find_card): Likewise.
2504
608b647a
CW
25052012-12-28 Colin Watson <cjwatson@ubuntu.com>
2506
2507 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
2508 Fixes Savannah bug #37821.
2509
fd49ceb3
CW
25102012-12-28 Colin Watson <cjwatson@ubuntu.com>
2511
2512 Apply program name transformations at build-time rather than at
2513 run-time. Fixes Debian bug #696465.
2514
2515 * acinclude.m4 (grub_TRANSFORM): New macro.
2516 * configure.ac: Create output variables with transformed names for
2517 most programs.
2518 * util/bash-completion.d/grub-completion.bash.in: Use
2519 pre-transformed variables for program names.
2520 * util/grub-install.in: Likewise.
2521 * util/grub-kbdcomp.in: Likewise.
2522 * util/grub-mkconfig.in: Likewise.
2523 * util/grub-mkconfig_lib.in: Likewise.
2524 * util/grub-mknetdir.in: Likewise.
2525 * util/grub-mkrescue.in: Likewise.
2526 * util/grub-mkstandalone.in: Likewise.
2527 * util/grub-reboot.in: Likewise.
2528 * util/grub-set-default.in: Likewise.
2529 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2530 * tests/util/grub-shell-tester.in: Remove unused assignment.
2531 * tests/util/grub-shell.in: Likewise.
2532 * util/grub.d/00_header.in: Likewise.
2533
7024b3c0
CW
25342012-12-28 Colin Watson <cjwatson@ubuntu.com>
2535
2536 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
2537
2538 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
2539 HAVE_RAW_DECL_GETS.
2540 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
2541
e3501b13
VS
25422012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
2545 Reported by: Eriks Latosheks <foresterlv>.
2546
b40c88a9
VS
25472012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * docs/grub.texi (Network): Update instructions on generating netboot
2550 image.
2551
ce96d01c
VS
25522012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
2555 around device name if necessarry.
2556
0f596201
PFS
25572012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2558
2559 * util/grub-install.in: Follow the symbolic link parameter added
2560 to the file command.
2561
600d5bdb
AB
25622012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
2563
2564 * util/grub-install.in: Remove stale TODO.
2565
64ebd2f4
PFS
25662012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2567
2568 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
2569 dynamic allocation for the bootpath buffer.
2570
74b2fe3e
DTB
25712012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
2572
2573 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
2574 window too small.
2575
969b804f
VS
25762012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
2579 argument rather than font name. All users updated.
2580 (grub_gfxterm_set_window): Likewise.
2581
b9f5ebd6
VT
25822012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2583
2584 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
2585 from working.
2586
258f43b7
VS
25872012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * util/getroot.c (convert_system_partition_to_system_disk): Support
2590 nbd disks.
2591
cc1ce5f9
VS
25922012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
2595 infinite loop on corrupted FS.
2596
e77a16ca
VS
25972012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 Fix big-endian mtime.
2600
2601 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
2602 together sec and usec.
2603 (grub_ufs_dir): Use correct byteswapping for UFS time.
2604
d9c48c7b
VS
26052012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 Support big-endian UFS1.
2608
2609 * Makefile.util.def (libgrubmods): Add ufs_be.c
2610 * grub-core/Makefile.core.def (ufs1_be): New module.
2611 * grub-core/fs/ufs_be.c: New file.
2612 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
2613 the file.
2614
2f9f40ba
LL
26152012-11-28 Leif Lindholm <leif.lindholm@arm.com>
2616
2617 * include/grub/types.h: Fix functionality unaffecting typo in
2618 GRUB_TARGET_WORDSIZE conditional macro.
2619
48ff0889
PFS
26202012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2621
2622 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
2623
03711240
GS
26242012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2625
2626 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
2627 that /netbsd appears first (when it exists).
2628
a31b11bd
CJ
26292012-10-12 Christoph Junghans <ottxor@gentoo.org>
2630
2631 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
2632 Fixes Savannah bug #37558.
2633
e8a5d5d4
CW
26342012-10-12 Colin Watson <cjwatson@ubuntu.com>
2635
2636 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
2637 description of extract_entries_configfile.
2638
26392012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
2640
2641 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
2642 preferred_address.
2643 (grub_cmd_linux): Likewise.
2644 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
2645 preferred_lifetime. Update all users.
2646
288c757d
CW
26472012-09-26 Colin Watson <cjwatson@ubuntu.com>
2648
2649 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
2650 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
2651
0d35da3f
CW
26522012-09-26 Colin Watson <cjwatson@ubuntu.com>
2653
2654 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
2655 errors from grub-probe to /dev/null, not stdout.
2656
b78c3127
VS
26572012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
2660 sector 1.
2661
473959f0
CW
26622012-09-24 Colin Watson <cjwatson@ubuntu.com>
2663
2664 * util/grub-install.in: Make the error message if $source_dir
2665 doesn't exist more useful.
2666
794c8c33
CW
26672012-09-22 Colin Watson <cjwatson@ubuntu.com>
2668
2669 Fix grub-emu build on FreeBSD.
2670
2671 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
2672 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
2673 headers on Linux.
2674 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
2675 implementation is currently Linux-specific.
2676 * util/getroot.c (exec_pipe): Define only on Linux or when either
2677 libzfs or libnvpair is unavailable.
2678 (find_root_devices_from_poolname): Remove unused path variable.
2679
86d08fdb
CW
26802012-09-19 Colin Watson <cjwatson@ubuntu.com>
2681
2682 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
2683 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
2684 should fit before end == 63.
2685
735abf54
CW
26862012-09-19 Colin Watson <cjwatson@ubuntu.com>
2687
2688 * util/grub-setup.c (write_rootdev): Remove unused core_img
2689 parameter. Update all callers.
2690 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
2691 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
2692 GRUB_SETUP_BIOS.
2693
140acd3c
VS
26942012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * util/grub-mkconfig_lib.in (grub_tab): New variable.
2697 (grub_add_tab): New function.
2698 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
2699 * util/grub.d/10_illumos.in: Likewise.
2700 * util/grub.d/10_kfreebsd.in: Likewise.
2701 * util/grub.d/10_linux.in: Likewise.
2702 * util/grub.d/10_netbsd.in: Likewise.
2703 * util/grub.d/10_windows.in: Likewise.
2704 * util/grub.d/10_xnu.in: Likewise.
2705 * util/grub.d/20_linux_xen.in: Likewise.
2706 * util/grub.d/30_os-prober.in: Likewise.
2707
7ddffdad
VS
27082012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2711 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
2712 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
2713 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
2714 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
2715 ieee1275-nocursor.
2716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2717 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
2718
4e092454
VS
27192012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2720
2721 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
2722 le-conversion.
2723 Reported by: BURETTE, Bernard.
2724
735abf54 27252012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
2726
2727 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
2728 from comment.
2729
dfd39dbd
CW
27302012-09-14 Colin Watson <cjwatson@ubuntu.com>
2731
2732 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
2733 IEEE1275 machines. Fixes powerpc-emu compilation.
2734 * include/grub/terminfo.h: Likewise.
2735
3bfa763c
VS
27362012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
2739 a const pointer.
2740 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
2741 const pointer.
2742 (efiemu_set_variable): Make vendor_guid a const pointer.
2743
250e475b
VS
27442012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 Don't require grub-mkconfig_lib to generate manpages for programs.
2747
2748 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
2749 dependencies, don't add grub-mkconfig_lib.
2750 (program): Pass empty adddeps.
2751 (script): Pass grub-mkconfig_lib as adddeps.
2752
592fd0e4
VS
27532012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2754
2755 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
2756 * util/getroot.c (grub_find_device): Likewise.
2757 (get_mdadm_uuid): Likewise.
2758 (grub_util_is_imsm): Likewise.
2759 (grub_util_pull_device): Likewise.
2760 * util/grub-probe.c (probe): Likewise.
2761
801a3027
BG
27622012-09-10 Benoit Gschwind <gschwind>
2763
2764 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
2765 (devs): Add devpath_8.
2766
c5052c81
PJ
27672012-09-08 Peter Jones <pjones@redhat.com>
2768
2769 * grub-core/Makefile.core.def (efifwsetup): New module.
2770 * grub-core/commands/efi/efifwsetup.c: New file.
2771 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
2772 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
2773 New define.
2774 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
2775
8e832f71
JS
27762012-09-05 Jiri Slaby <jslaby@suse.cz>
2777
2778 * configure.ac: Add SuSe path.
2779
f0f55752
CW
27802012-09-05 Colin Watson <cjwatson@ubuntu.com>
2781
2782 * NEWS: Fix typo.
2783
ecadc4c2
CW
27842012-09-05 Colin Watson <cjwatson@ubuntu.com>
2785
2786 * util/import_gcry.py: Sort cipher_files, to make build system
2787 generation more deterministic.
2788
64498f25
VS
27892012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
2792 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
2793 (grub_set_datetime): Likewise.
2794
9cc836a2
VS
27952012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
2798 warnings.
2799
bcfcea01
VS
28002012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
2803
a4099485
VS
28042012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
2807
265c162a
CW
28082012-09-04 Colin Watson <cjwatson@ubuntu.com>
2809
2810 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
2811 required for checkouts from bzr, but it may be useful for users or
2812 distributors wishing to update translations against a tarball
2813 distribution, and it can be helpful for the tarball to be a superset
2814 of what's in bzr.
2815
3d171e95
CW
28162012-09-04 Colin Watson <cjwatson@ubuntu.com>
2817
2818 * Makefile.am (EXTRA_DIST): Add
2819 grub-core/tests/boot/linux.init-mips.S,
2820 grub-core/tests/boot/linux.init-ppc.S, and
2821 grub-core/tests/boot/linux-ppc.cfg.
2822
f2c2503e
CW
28232012-09-04 Colin Watson <cjwatson@ubuntu.com>
2824
2825 * grub-core/mmap/mips/loongson: Remove empty directory.
2826
28272012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
2828
2829 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
2830 gone.
2831
ab2163d5
CW
28322012-09-04 Colin Watson <cjwatson@ubuntu.com>
2833
2834 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
2835 grub-sparc64-setup.
2836
ce938140
GS
28372012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2838
2839 * configure.ac: Strengthen the test for working -nostdinc -isystem.
2840
529f58a5
GS
28412012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2842
2843 * po/POTFILES.in: Regenerated.
2844
16cf79e9
GS
28452012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2846
2847 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
2848 (NetBSD): New subsection.
2849
39b27f1e 28502012-07-22 Ales Nesrsta <starous@volny.cz>
2851
2852 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
2853 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
2854
a885261b
VS
28552012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
2858 * util/grub.d/10_hurd.in: Add missing quoting.
2859 * util/grub.d/10_illumos.in: Likewise.
2860 * util/grub.d/10_kfreebsd.in: Likewise.
2861 * util/grub.d/10_linux.in: Likewise.
2862 * util/grub.d/20_linux_xen.in: Likewise.
2863
7bd29c01
VS
28642012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 New command `lsefi'.
2867
2868 * grub-core/Makefile.core.def (lsefi): New module.
2869 * grub-core/commands/efi/lsefi.c: New file.
2870 * include/grub/efi/api.h: Add more GUIDs.
2871
ac625d8f
VS
28722012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
2875 (grub_bsd_elf32_hook): Likewise.
2876 (grub_bsd_elf64_size_hook): Likewise.
2877 (grub_bsd_elf64_hook): Likewise.
2878 (grub_bsd_load_elf): Likewise.
2879
e73bb801
VS
28802012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
2883 if hash function is unavailable.
2884 (dec_stream_header): Likewise.
2885
e81db8b5
VS
28862012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
2889 filter state.
2890
d187a1c3
VS
28912012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 Fix coreboot compilation.
2894
2895 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
2896 (grub_vga_text_init_real): ... this.
2897 (grub_vga_text_fini): Rename to ...
2898 (grub_vga_text_fini_real): ... this.
2899
91a05f64
VS
29002012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
2903
6af96df7
VS
29042012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * grub-core/lib/legacy_parse.c: Support clear and testload.
2907
4d569e12
VS
29082012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
2911
073b57bb
VS
29122012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/fs/ext2.c: Experimental support for 64-bit.
2915
a706f4cc
VS
29162012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * grub-core/net/tftp.c (ack): Fix endianness problem.
2919 (tftp_receive): Likewise.
2920 Reported by: Michael Davidsaver.
2921
e7850aa9
VS
29222012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2923
2924 * gentpl.py: Make mans depend on grub-mkconfig_lib.
2925
29262012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
2929 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
2930 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
2931
35692881
VS
29322012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
2935 efi_mmap_size.
2936 Reported by: Stuart Hayes.
2937
c35fc5bd
VS
29382012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
2941
2942 * grub-core/Makefile.core.def (mda_text): New module.
2943 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
2944 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
2945 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
2946 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
2947 here.
2948 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
2949 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
2950 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
2951 here.
2952 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
2953 to ..
2954 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
2955 ... here
2956 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
2957 here.
2958 * grub-core/term/i386/vga_common.c: Removed.
2959 * include/grub/i386/vga_common.h: Likewise.
2960 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
2961 (grub_vga_cr_bw_read): Likewise.
2962 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2963 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2964 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2965 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2966 grub_vga_cr_read/grub_vga_cr_write.
2967 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2968
5f91f701
VS
29692012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * configure.ac: Bump version to 2.00.
2972 * grub-core/normal/main.c (features): Add feature_200_final.
2973
0c4f85f6
VS
29742012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
29752012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2976
2977 * NEWS: Fix unclarity and language mistakes.
2978
f923ad22
VS
29792012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2982 additional size to 3 pages.
2983 Reported by: Stuart Hayes.
2984
d22029ba
VS
29852012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * NEWS: Add 2.00 entry.
2988
58eee08f
VS
29892012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2992 put explicit "/" for empty path.
2993 (wildcard_expand): Improve dprintf.
2994
c59bdff7
VS
29952012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2998 it's equal to currnode. This can happen with "" symlink.
2999
5e6a440a
YB
30002012-06-27 Yves Blusseau <blusseau@zetam.org>
3001
3002 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
3003 echo shell command by printf command.
3004
73a68bcb
VS
30052012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
3008 the value returned by firmware is the maximal position, not diumension.
3009 (grub_terminfo_output_state): Use a more sane fallback.
3010
392a603b
VS
30112012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
3014
42d0867f
VS
30152012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
3018 frequency to 150 MHz.
3019
489509f4
VS
30202012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 Apple fixes.
3023
3024 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
3025 __APPLE_
3026 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
3027 definition.
3028 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
3029
9f3fc883
VS
30302012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 Handle slash in HFS label.
3033
3034 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
3035 (grub_hfs_dir): Tanslate slash.
3036 (grub_hfs_label): Don't translate slash.
3037
54853fd7
VS
30382012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
3041 network protocol listing since it introduces problematic dependency on
3042 net module.
3043
4dc02ddf
VS
30442012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
3047
c50c867d
VS
30482012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 Init video early on yeeloong to avoid being rebooted by watchdog.
3051
3052 * grub-core/Makefile.am (gensm712): New target.
3053 (sm712_start.S): Likewise.
3054 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
3055 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
3056 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
3057 description.
3058 * include/grub/vga.h: Move registry definitions to...
3059 * include/grub/vgaregs.h: ... here.
3060
5f92c8a1
VS
30612012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
3064 signedness.
3065
e9e6f111
VS
30662012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3067
3068 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
3069 platforms with firmware disk drivers in the core.
3070
754ad9eb
VS
30712012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
3074 informative verbose message.
3075 (read_lv): Handle 64-bit segment size.
3076
315654c2
VS
30772012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
3080
fb022c79
VS
30812012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
3084 character but still remove trainling spaces.
3085 (grub_fat_label): Ignore archive flag.
3086
8645f72c
VS
30872012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
3090 cast between linux_kernel_header and linux_kernel_params.
3091
36498496
VS
30922012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
3095 type for size.
3096 (grub_raid6_recover_func_t): Likewise.
3097 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
3098 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3099
0b5ea6b8
VS
31002012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
3103
650cfcfe
GS
31042012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3105
3106 Fix overflow.
3107
3108 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
3109 [__NetBSD__]: Add explicit cast before bitshift.
3110
8a4d6a44
VS
31112012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * configure.ac: Bump to 2.00~rc1.
3114
2fb97ed3
VS
31152012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
3118 half of $a0.
3119
1fa097dc
VS
31202012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
31212012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
3122
3123 * docs/grub.texi: Fix search syntax.
3124 (Multi-boot manual config): Put msdos rather than GPT example.
3125 Grammar corrections.
3126
c890ba78
VS
31272012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
3130
0f92dca7
VS
31312012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
3134
3988c4a0
VS
31352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
3138 message on double free. Put the value of magic in case of mismatch.
3139
9e86d4c5
VS
31402012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 Speed-up video on yeeloong.
3143
3144 * grub-core/video/sm712.c (framebuffer): Remove render_target and
3145 add cached_ptr.
3146 (grub_video_sm712_video_fini): Unmap cached_ptr.
3147 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
3148 (grub_video_sm712_set_active_render_target): Removed.
3149 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3150 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
3151 sync caches.
3152
ed24c312
VS
31532012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 Avoid flushing the same line multiple times on loongson.
3156
3157 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3158 Step in 32 bytes and not 1 byte.
3159 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3160 Likewise.
3161
d1718e7d
VS
31622012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3165 subvolumes.
3166
982f1909
VS
31672012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Implement flow control for http.
3170
3171 * grub-core/net/http.c (parse_line): Handle response 206.
3172 (http_receive): Stall if too many packets are in the queue.
3173 (http_establish): Fix range header.
3174 (http_seek): Fix double free.
3175 (http_close): Likewise.
3176 (http_packets_pulled): New function.
3177 (grub_http_protocol): Set http_seek
3178 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3179 (ack_real): Set window depending on i_stall.
3180 (grub_net_send_tcp_packet): Likewise.
3181 (grub_net_tcp_stall): New function.
3182 (grub_net_tcp_unstall): Likewise.
3183 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3184 (grub_net_tcp_unstall): Likewise.
3185
bd407d6e
VS
31862012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3189
c7564b8e
VS
31902012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3193
a3706162
VS
31942012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * tests/util/grub-shell.in: Fix a typo.
3197
b27069e0
VS
31982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 Implement flow control for tftp.
3201
3202 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3203 packets but stop only if stop condition is satisfied.
3204 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3205 `stall' instead of `eof' as stop condition.
3206 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3207 (http_err): Likewise.
3208 * grub-core/net/tftp.c (ack): Replace the first argument with data
3209 instead of socket.
3210 (tftp_receive): Stall if too many packets are in wait queue.
3211 (tftp_packets_pulled): New function.
3212 (grub_tftp_protocol): Set packets_pulled.
3213 * include/grub/net.h (grub_net_packets): New field count.
3214 (grub_net_put_packet): Increment count.
3215 (grub_net_remove_packet): Likewise.
3216 (grub_net_app_protocol): New field `packets_pulled'.
3217 (grub_net): New field `stall'.
3218
6b9cfac6
VS
32192012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3222 sync part to handle them.
3223
f35abd81
VS
32242012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3227 * grub-core/net/drivers/ieee1275/ofnet.c
3228 (grub_ieee1275_net_config_real): Likewise.
3229
0e7ec820
VS
32302012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3233 the direct route for server/gateway.
3234
9d611a31
VS
32352012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3238 IP address to server name since we may not hame the DNS.
3239
418f45ab
VS
32402012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3243 freeing random buffer on failure.
3244 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3245
44a0efc1
VS
32462012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3249
531e2241
VS
32502012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3253 reserved bytes.
3254 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3255 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3256 Handle malloc error correctly.
3257
cde393c9
VS
32582012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3261 blocks.
3262
538478d0
VS
32632012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3266 increment.
3267
9b55efe0
VS
32682012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3271 none is explicitly specified.
3272
9eb832c3
VS
32732012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3276 while reallocating.
3277
d6b7c7c9
VS
32782012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 Respect netmask from bootp/dhcp.
3281
3282 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3283 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3284 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3285 into ...
3286 (grub_net_add_ipv4_local): ... this.
3287 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3288 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3289 (grub_net_add_ipv4_local): New proto.
3290
67caf9eb
VS
32912012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3294 determining EFI memory map size.
3295
43657558
VS
32962012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3299
eb6d0dd3
VS
33002012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3303 when looking for partition separator.
3304
31230544
VS
33052012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3308 Escape commas.
3309
918a2517
VS
33102012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 Restructure FAT driver to avoid hook in label reading as it hits a
3313 GCC bug.
3314
3315 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3316 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3317 (grub_fat_iterate_dir): Split into ...
3318 (grub_fat_iterate_init): ... this, ...
3319 (grub_fat_iterate_fini): ... this, ...
3320 (grub_fat_iterate_dir_next): ... and this. All users updated.
3321
9f1d654e
VS
33222012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3325 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3326 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3327 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3328 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3329 New fields last_key and last_key_time.
3330 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3331 extended key-esc into extended key-extended key.
3332
52f0f643
VS
33332012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Avoid unnecessary memcpy of whole video buffer.
3336
3337 * grub-core/video/fb/video_fb.c (dirty): New struct.
3338 (framebuffer): Add members current_dirty and previous_dirty.
3339 (dirty): New function.
3340 (grub_video_fb_fill_rect): Update dirty.
3341 (common_blitter): Likewise.
3342 (grub_video_fb_scroll): Likewise.
3343 (doublebuf_blit_update_screen): Copy only dirty part.
3344 (doublebuf_pageflipping_update_screen): Likewise.
3345 (grub_video_fb_doublebuf_blit_init): Init dirty.
3346 (doublebuf_pageflipping_init): Likewise.
3347 (grub_video_fb_setup): Likewise.
3348
e169a180
VS
33492012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3352 poll rate.
3353
48556879
VS
33542012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 Fix wildcard regexp dot and other special characters handling.
3357 Reported by: Robert Mabee.
3358
3359 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3360 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3361 (split_path): Trigger expansion on '?'.
3362 (unescape): New function.
3363 (wildcard_expand): Unescape parts copied without globbing.
3364 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3365 (grub_script_arglist_to_argv): Don't unescape expansions.
3366
0494408e
VS
33672012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 * include/grub/net.h (grub_net_card): New member txbufsize.
3370 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3371 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3372 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3373 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3374 txbufsize.
3375 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3376 compatible property to check for macs. Set
3377 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3378 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3379 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3380 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3381 (send_card_buffer): Use txbuf.
3382 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3383 nested function out of the parent while on it.
3384
cc35fe8f
VS
33852012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3388 presence check.
3389 (grub_ieee1275_net_config_real): Fix config pointer.
3390
970a0a09
VS
33912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3394 filename parsing to non-block devices.
3395
3e19bf87
VS
33962012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3399
c62d1a0c
VS
34002012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3403 All users updated.
3404
ef76bec3
VS
34052012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3408 UUID search command even if hints probing failed.
3409
34102012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
3411
3412 * po/POTFILES.in: Regenerated.
3413
70aaf305
VS
34142012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 Speed-up video on fuloong.
3417
3418 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3419 New function.
3420 (grub_pci_device_unmap_range): Handle non-cached address.
3421 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3422 add direct_ptr.
3423 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3424 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3425 (grub_video_sis315pro_set_active_render_target): Removed.
3426 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3427 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3428 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3429 sync caches.
3430 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3431 New proto.
3432
10400f0b
VS
34332012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * docs/grub.texi (Multi-boot manual config): New section.
3436
ba67e2c6
VS
34372012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 Avoid slow read-back from VRAM.
3440
3441 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3442 Move from here ...
3443 * grub-core/video/fb/video_fb.c
3444 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
3445 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
3446 (front_target): Remove front_target. Add pages.
3447 (grub_video_fb_init): Skip setting front_pages.
3448 (grub_video_fb_fini): Likewise.
3449 (doublebuf_blit_update_screen): Use pages.
3450 (grub_video_fb_doublebuf_blit_init): Likewise.
3451 (doublebuf_pageflipping_init): Allocate offscreen buffer.
3452 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
3453 (grub_video_fb_setup): Prefer doublebuffing.
3454
377c98cb
VS
34552012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
3458 gzio.
3459
eac49cff
VS
34602012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 Add loongson tests.
3463
3464 * tests/util/grub-shell.in: Handle loongson.
3465 * tests/partmap_test.in: Add loongson to the list of platform using ATA
3466 drivers.
3467 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
3468 Reboot instead of shutdown if REBOOT is defined.
3469
0321415e
VS
34702012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
3473 sized ports since unlike on real hardware qemu supports only 32-bit
3474 regs.
3475
3f2bdd8f
VS
34762012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * Makefile.util.def (grub-mkrescue): Enable on loongson.
3479 * util/grub-mkrescue.in: Handle loongson.
3480
29a049c9
VS
34812012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
3484 Set is_part appropriately.
3485 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
3486 names. Canonicalize partition without full disk.
3487
4abde346
VS
34882012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 Revert usb-quiesce since it's wrong.
3491
3492 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
3493 (grub_ofdisk_init): Don't do quiesce.
3494
61f1d93b
VS
34952012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
3498 PowerMac workaround to Xserves as well.
3499 Information supplied by: Benjamin Herrenschmidt.
3500
a09eb541
VS
35012012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 Don't assume that beginning address is also the entry point on ppc.
3504
3505 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
3506 (grub_linux_boot): Use linux_entry.
3507 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
3508 (grub_linux_load64): Likewise.
3509
505b3c9b
VS
35102012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
3513
cbe0b4ef
VS
35142012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
3517 needlessly lose the console.
3518
3006e981
VS
35192012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
3522 space.
3523
4e5a96b0
VS
35242012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3525
7da036bb
VS
3526 Remove non-functional EFI grub_get_rtc. Put a better fatal message
3527 than current grub_get_rtc() not implemented when booted with
3528 coreboot without TSC.
3529
3530 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
3531 Add machine/time.h to kernel headers on loongson.
3532 * grub-core/Makefile.core.def (kernel): Remove
3533 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
3534 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
3535 (grub_get_rtc): Likewise.
3536 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
3537 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
3538 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
3539 * grub-core/kern/i386/tsc.c (grub_tsc_init)
3540 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
3541 rather than installing known non-working time source.
3542 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
3543 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
3544 * include/grub/time.h: Don't include machine/time.h.
3545 * include/grub/efi/time.h: Removed.
3546 * include/grub/i386/efi/time.h: Likewise.
3547 * include/grub/i386/ieee1275/time.h: Likewise.
3548 * include/grub/powerpc/ieee1275/time.h: Likewise.
3549 * include/grub/sparc64/ieee1275/time.h: Likewise.
3550 * include/grub/x86_64/efi/time.h: Likewise.
3551
35522012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
3555
3556 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
3557 value.
3558 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
3559 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
3560 with dotless variants when any combining above is present.
3561
5561c22d
VS
35622012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
3565 text and not binary.
3566
96f7e60e
VS
35672012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 Stop polling as soon as we have the packet we were waiting for.
3570
3571 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
3572 All users updated.
3573 * grub-core/net/arp.c (have_pending): New var.
3574 (pending_req): Likewise.
3575 (grub_net_arp_send_request): Fill pending_req and use have_pending as
3576 stop indicator.
3577 (grub_net_arp_receive): Set have_pending.
3578 * grub-core/net/dns.c (recv_data): New field stop.
3579 (recv_hook): Set stop.
3580 (grub_net_dns_lookup): Init stop and use as stop condition.
3581 * grub-core/net/http.c (http_establish): Use headers_recv as stop
3582 condition.
3583 * grub-core/net/net.c (grub_net_poll_cards): New argument
3584 stop_condition. Stop when it goes true.
3585 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
3586 indicator.
3587 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
3588
3e747239
VS
35892012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3590
3591 Keep TX and RX buffers on EFI rather than always allocate new ones.
3592
3593 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
3594 card. All users updated.
3595 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
3596 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
3597 (get_card_packet): Likewise.
3598 (grub_efinet_findcards): Init new fields.
3599
f695e99a
VS
36002012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
3603 compilation error on sparc64.
3604
9e5e66d1
VS
36052012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 Use ITC on IA64 rather than broken routine based on daytime.
3608
3609 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
3610 ia64.
3611 (grub_get_rtc) [__ia64__]: Likewise.
3612 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
3613 (get_itc): New function.
3614 (grub_rtc_get_time_ms): Likewise.
3615 (grub_machine_init): Calibrate ITC.
3616 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
3617 Keep only on non-ia64. Don't export since it's broken and used only
3618 if TSC is unavailable.
3619
a1767404
VS
36202012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
3623 even if it's used.
3624 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
3625 Skip if parent is unused.
3626
34b2bced
VS
36272012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
3630
5e619f40
VS
36312012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 Fix wildcard escaping.
3634
3635 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
3636 * grub-core/script/execute.c (wildcard_escape): .. to here.
3637 Don't escape dot.
3638 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
3639 * grub-core/script/execute.c (wildcard_unescape): .. to here.
3640 Don't escape dot.
3641 * grub-core/script/execute.c (gettext_append): Always escape.
3642 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
3643 * grub-core/script/yylex.l: Don't cut away the escaping.
3644 * tests/grub_script_echo1.in: Add tests with wildcard.
3645
c8ca5855
VS
36462012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
3649 (ftdi_hw_configure): Likewise.
3650 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
3651 define.
3652 (real_config): Handle 1.5 stop bits.
3653 (pl2303_hw_configure): Likewise.
3654
7183452c
VS
36552012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * Makefile.am: Add ppc linux bootcheck.
3658 * grub-core/tests/boot/linux-ppc.cfg: New file.
3659 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
3660
f57c84cd
VS
36612012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * tests/grub_script_expansion.in: Skip network protocols.
3664
ecfc6207
VS
36652012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
3668
8d03d284
VS
36692012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
3672 --rom-directory.
3673 Add -graft-points.
3674
61c42af0
VS
36752012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 ESCC serial driver for conducting sautomated tests in qemu.
3678 Not tested on real hardware.
3679
3680 * include/grub/serial.h (grub_serial_port): New field escc_desc.
3681 * grub-core/term/ieee1275/escc.c: New file.
3682 * grub-core/Makefile.core.def (escc): New module.
3683
08fd1291
VS
36842012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
3687 invalid on error.
3688 (serial_hw_fetch): Don't read invalid handle.
3689 (serial_hw_put): Don't write into invalid handle.
3690
08dafeea
VS
36912012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 Add a 1.5 stop bits value.
3694
3695 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
3696 * include/grub/serial.h (grub_serial_stop_bits_t): Add
3697 GRUB_SERIAL_STOP_BITS_1_5.
3698
9068fdcf
VS
36992012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
3702 value rather than let it uninited.
3703
f4d5820f
VS
37042012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * grub-core/commands/wildcard.c (+check_file): New function.
3707 (wildcard_expand): Don't expand to non-existing files, expand with
3708 suffix and not attempt to expand if not needed.
3709
3d2de9a7
VS
37102012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
3713 out of partitions containing other partitions.
3714
c5c81ff9
VS
37152012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
3718 on some qemu versions with GRUB.
3719
3720 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
3721 define.
3722 (grub_openbsd_bootarg_pcibios): New struct.
3723 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
3724 Add PCIINFO.
3725
08a14e0b
VS
37262012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * tests/util/grub-shell.in: Trim firmware output on EFI.
3729
cede3ca3
VS
37302012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
3733 and coreboot since it's already in kernel.
3734
558d3a60
VS
37352012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
3738 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3739 to here. New return value start. All users updated.
3740 Recursively scan linear mappings.
3741 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
3742 proto.
3743 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3744 Use grub_util_get_dm_node_linear_info.
3745 * util/getroot.c (convert_system_partition_to_system_disk): Use
3746 grub_util_info rather than grub_dprintf.
3747 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
3748
60fde14d
VS
37492012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
3752
3753 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
3754 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
3755
24bd8838
VS
37562012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * include/grub/types.h (grub_set_unaligned64): New function.
3759 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
3760 (setup): Likewise.
3761
7bc06a49
VS
37622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
3765 (grub_ofdisk_fini): Quiesce USB devices.
3766
49cea015
VS
37672012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
3770 caches.
3771
8dcbe03b
VS
37722012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
3775
5b258735
VS
37762012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/disk/pata.c (grub_pata_pio_read)
3779 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
3780 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
3781
37ba07eb
VS
37822012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Extend automated tests to qemu-mips.
3785
3786 * Makefile.am: reorganise tests and enable qemu-mips.
3787 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
3788 * grub-core/tests/boot/linux.init-mips.S: New file.
3789 * tests/partmap_test.in: Handle ata0 disks.
3790 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
3791 non-pc i386.
3792
070038f8
VS
37932012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3794
3795 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
3796 ia64.
3797 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
3798 quotes while on it.
3799
004be2cd
VS
38002012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
3803 (grub_halt): Likewise.
3804 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
3805
b1622487
VS
38062012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/term/serial.c (grub_serial_register)
3809 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
3810 the behaviour in line with x86 platforms.
3811
b7b4ab33
VS
38122012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
3815 (grub_ata_strncpy): Likewise.
3816 (grub_ata_identify): Add missing byteswaps.
3817
5e3535ae
VS
38182012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
3821 byte-swap.
3822 (screen_read_char): Likewise.
3823 (grub_vga_text_cls): Likewise.
3824
c21b17e6
VS
38252012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
3828 filenames.
3829 (make_file_path): Likewise.
3830
bf293dec
VS
38312012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
3834 machines.
3835 Tested by: Paulo Flabiano Smorigo.
3836 Crucial information about API supplied by: Coleen <Last name unknown>.
3837 Reviewed by: Coleen <Last name unknown>.
3838
81f6ef0e
VS
38392012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * util/grub-mkimage.c: Disable -Wcast-align.
3842
7284143a
VS
38432012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3844
3845 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
3846 as they are fatal.
3847
b99f3e00
VS
38482012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
3851
944f752d
VS
38522012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * util/grub-probe.c (escape_of_path): Fix double free.
3855
6cce6f38
VS
38562012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/commands/videoinfo.c (hook): Show pitch.
3859
1e1eb50e
VS
38602012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * util/grub.d/20_linux_xen.in: Skip xen-syms.
3863
1c715b5a
VS
38642012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
3867 (probe): Add ieee1275 to OFW devices.
3868
007ae52d
VS
38692012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
3872
4557a36d
VS
38732012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Handle IBM OFW path.
3876
3877 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
3878 available.
3879 (of_path_of_scsi): Handle vdevice.
3880
efbeefe9
VS
38812012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
3884 Allocate in multiples of 16 to avoid adding a few bytes free region the
3885 windows bugs upon.
3886
15a940bb
VS
38872012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
3890 Allocate in multiples of 16 to avoid adding a few bytes free region the
3891 windows bugs upon.
3892 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
3893
6e5efd60
VS
38942012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
3897 resolutions.
3898 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
3899 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
3900
0d3d137e
IS
39012012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
3902
3903 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
3904
45dbe300
VS
39052012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
3908 resulted in \\ at the end of the line.
3909
6d8db947
VS
39102012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
3913 (grub_parser_cmdline_state): Likewise.
3914 (grub_parser_split_cmdline): Likewise.
3915
de89d338
VS
39162012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
3919 /dev/root and /dev/dm-*.
3920
00d41dee
VS
39212012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
3924 fix partially stale display.
3925
f95d1f11
VS
39262012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/normal/menu_entry.c (backward_char): Use right line for
3929 substraction.
3930
6297e197
VS
39312012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
3934 Fix MBR remapping workaround.
3935 (grub_util_biosdisk_read) [__linux__]: Likewise.
3936
8a7ecad3
VS
39372012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * util/grub-install.in: Check for ieee1275 and not ieee1276.
3940
2b34f944
VS
39412012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * configure.ac: Bump to beta6.
3944
684aef11
CW
39452012-05-31 Christer Weinigel <christer@weinigel.se>
3946
3947 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
3948
05b0bb91
VS
39492012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
3952 (grub_cmd_linux): Likewise.
3953
bda36bfa
CW
39542012-05-31 Christer Weinigel <christer@weinigel.se>
3955
3956 Fix EHCI low-speed.
3957
3958 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
3959 (GRUB_EHCI_MULT_TWO): Likewise.
3960 (GRUB_EHCI_MULT_THREE): Likewise.
3961 (GRUB_EHCI_CMASK_MASK): New enum value.
3962 (GRUB_EHCI_SMASK_MASK): Likewise.
3963 (GRUB_EHCI_CMASK_OFF): Likewise.
3964 (GRUB_EHCI_SMASK_OFF): Likewise.
3965 (grub_ehci_pci_iter): Enable periodic schedule.
3966 (grub_ehci_parse_notrun): Likewise.
3967 (grub_ehci_restore_hw): Likewise.
3968 (grub_ehci_setup_qh): Set flags for low speed transfers.
3969 (grub_ehci_find_qh): Use periodic list for low speed.
3970 (grub_ehci_setup_transfer): Check periodic queue as well.
3971 (grub_ehci_check_transfer): Likewise.
3972 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3973
e12bcb1c
PFS
39742012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3975
3976 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3977 parameter is used.
3978
bcc75fb3
PJ
39792012-05-31 Peter Jones <pjones@redhat.com>
3980
3981 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3982 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3983 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3984
f19cb95e
VS
39852012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3988 uninited variable. Allocate at least setup_sects.
3989
a4e5ca80
VS
39902012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 Fix handling of EFI with big memory maps.
3993
3994 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3995 (real_mode_mem): Likewise.
3996 (real_mode_target): Likewise.
3997 (real_mode_pages): Likewise.
3998 (prot_mode_pages): Likewise.
3999 (linux_params): New var.
4000 (linux_cmdline): Likewise.
4001 (free_pages): Don't set real mode variables.
4002 (allocate_pages): Don't allocate real mode memory.
4003 (grub_e820_add_region): Remove the limit.
4004 (grub_linux_boot): Allocate and copy real mode memory.
4005 (grub_linux_unload): Free linux_cmdline.
4006 (grub_cmd_linux): Use temporary storage for parameters.
4007 (grub_cmd_initrd): Likewise.
4008 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
4009 (linux_kernel_params): Make it 1K big.
4010
ddb73558
VS
40112012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * Makefile.util.def: Remove -Wno-format.
4014 * grub-core/Makefile.core.def: Likewise.
4015
1c4afb60
VS
40162012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * tests/cmp_unit_test.c: Add missing failure message.
4019 * tests/example_unit_test.c: Likewise.
4020 * tests/printf_unit_test.c: Likewise.
4021
941e3a6d
VS
40222012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
4025 relaxation of protective MBR requirements.
4026
b105df76
VS
40272012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4028
4029 * configure.ac: Add condition for COND_HOST_XNU.
4030 * Makefile.util.def (10_xnu): New script.
4031 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
4032
84e1569e
VS
40332012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
4036 objconv bug.
4037
130c0f77
VS
40382012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
4041 Binary on other platforms stays identical.
4042
6fd0b143
VS
40432012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
4046 Apple.
4047
0af1751d
VS
40482012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
4051
176d5f7d
VS
40522012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
4055 rather than defining size_t ourselves to avoid conflict.
4056
7de5e20a
VS
40572012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
4060 initialisation to avoid __bzero reference.
4061
f7143efe
VS
40622012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
4065 version.
4066 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
4067 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
4068 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
4069 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
4070 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
4071
e6ad0555
VS
40722012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
4075 * grub-core/kern/misc.c: Likewise.
4076 * grub-core/loader/i386/xnu.c: Likewise.
4077 * include/grub/i386/tsc.h: Likewise.
4078 * include/grub/symbol.h: Likewise.
4079
4a5a3c4a
VS
40802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
4083 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
4084 on older compiler.
4085
037f6d90
VS
40862012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
4089 Implement Apple flavour.
4090 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
4091
f7194551
VS
40922012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
4095 (memmove) [__APPLE__]: Likewise.
4096 (memcpy) [__APPLE__]: Likewise.
4097 (memset) [__APPLE__]: Likewise.
4098 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
4099 (memmove) [__APPLE__]: Likewise.
4100 (memcpy) [__APPLE__]: Likewise.
4101 (memset) [__APPLE__]: Likewise.
4102
85a730ca
VS
41032012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
4106 dependency discard.
4107
40e80b94
VS
41082012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * grub-core/normal/main.c (read_config_file): Provide config_file and
4111 config_directory.
4112 * util/grub.d/41_custom.in: Use config_directoy when available.
4113
9da59c32
VS
41142012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
4117 (grub_bfs_dir): Likewise.
4118
2787ae53
PJ
41192012-05-27 Peter Jones <pjones@redhat.com>
4120
4121 The old code gives arguments to a printf function which can't work
4122 correctly, and the compiler complains.
4123
4124 * grub-core/tests/example_functional_test.c (example_test): Add
4125 missing text.
4126 * grub-core/tests/lib/test.c (add_failure): Rewrite.
4127 * include/grub/test.h (grub_test_assert_helper): New declaration.
4128 (grub_test_assert): Use grub_test_assert_helper.
4129
526ef13d
VS
41302012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
4133 (exfctest): ... this to avoid overlong filenames.
4134 All users updated.
4135
20dd511c
VS
41362012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 Handle "." and ".." on squashfs.
4139
4140 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
4141 Make inode numbers into stack.
4142 (grub_squash_read_symlink): Use stack.
4143 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
4144 (make_root_node): Fill stack.
4145 (grub_squash_open): Use stack.
4146
1d80c62a
VS
41472012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
4150 freeing.
4151
d336f652
VS
41522012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4155 stderr on test calls.
4156
8b43f587
VS
41572012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4160
80a3dc3f
VS
41612012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4164
47e297d4
VS
41652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4168 "..".
4169
df042ccb
VS
41702012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4173 (grub_hfsplus_iterate_dir): Add "." and "..".
4174
fc977f48
VS
41752012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4178 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4179
f3250e5f
VS
41802012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4183 (find_path): Handle "." and "..".
4184
fd8ed4c5
VS
41852012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4188 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4189 (grub_affs_iterate_dir): Handle hardlinks.
4190
4ce776d2
MG
41912012-05-26 Matthew Garrett <mjg@redhat.com>
4192
4193 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4194 (grub_efi_console_fini): Likewise.
4195 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4196 (grub_video_gop_fill_mode_info): Rename to ...
4197 (grub_video_gop_fill_real_mode_info): ... this.
4198 (grub_video_gop_fill_mode_info): New function.
4199 (grub_video_gop_setup): Setup double framebuffer.
4200 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4201 Free offscreen.
4202 (grub_video_gop_swap_buffers): Copy framebuffer.
4203 (grub_video_gop_fini): Free offscreen buffer.
4204 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4205 New enum.
4206 (grub_efi_gop_blt_pixel): New struct.
4207
683031ba
VS
42082012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * gentpl.py: Remove error disabling for objconv.
4211
c2deb798
VS
42122012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * configure.ac: Remove -Wunitialized as it's not available on older
4215 compilers.
4216
42172012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
4218
4219 Fix extent overflow comparator.
4220
4221 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4222 (grub_hfsplus_read_block): Set type.
4223 (grub_hfsplus_cmp_extkey): Compare type.
4224
d6b1fd36
VS
42252012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4228
0a9aa0f6
VS
42292012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4232 than 0.
4233
8360e159
VS
42342012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4237 (dejavu_bold_14.pf2): New target.
4238
501b9e4b
VS
42392012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * configure.ac: Fix djvu font detection.
4242
7026b0e2
VS
42432012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4244
4245 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4246 ext* instead of ext2.
4247
c2a51ade
VS
42482012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4251 name with \0.
4252
8f803a5d
JU
42532012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4254
4255 * docs/grub-dev.texi: Remove dot from .png.
4256
13c6353f
VS
42572012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4260 protective entry in any slot.
4261 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4262 if protective entry is found in any slot.
4263
4264 Protective entry in non-first slot make no sense but is a widespread
4265 brain damage.
4266
4cf6be1b
VS
42672012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4270
937d1c44
VS
42712012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4274 with old reiserfs.
4275 (grub_reiserfs_open): Don't free root.
4276
021d90ec
VS
42772012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4280 after freeing for safety.
4281
967b2b64
VS
42822012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4285 Reported by: Jordan Uggla.
4286
34274d02
JU
42872012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4288
967b2b64
VS
4289 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4290 actual implementation. Specifically, clarify that the grub menu will
4291 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4292 passed.
34274d02 4293
dcaaae9d
BH
42942012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4295
4296 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4297 of r0.
4298
7086ad52
VS
42992012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 Remove unjustified hard dependency of normal.mod on gfxterm.
4302
4303 * include/grub/term.h (grub_term_output): New member fullscreen.
4304 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4305 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4306 (grub_gfxterm): Set .fullscreen.
4307 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4308 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4309
37ed2c9b
VS
43102012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4313 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 4314 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 4315
a4469c88
VS
43162012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4319
4e461486
VS
43202012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4323 a bad FS.
4324
aa78f5c4
VS
43252012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4328 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4329
197626b5
VS
43302012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4333 (grub_jfs_mount): Fill caseins.
4334 (grub_jfs_find_file): Respect caseins.
4335
8ad3f28c
VS
43362012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4339 through UTF-16.
4340
0c6c324e
VS
43412012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4344 New argument origpath. All users updated.
4345
c6666ba6
VS
43462012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4349 (read_attr): Ensure that we read start of possibly compressed block.
4350
e28e5fe5
VS
43512012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4354 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4355 All users updated.
4356
5fc23ab2
VS
43572012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4358
4359 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4360 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4361 (dejavu.pf2): Replace with ...
4362 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4363 this.
4364
79dbc21c
VS
43652012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 * util/grub.d/20_linux_xen.in: Add missing line.
4368
d2fcfb0c
VS
43692012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4372 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4373 (grub_utf16_to_utf8): Likewise.
4374
5560e9d6
VS
43752012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4378 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4379 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4380 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4381 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4382 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4383
43842012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
4385
4386 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4387 a bad FS.
4388
5560e9d6 43892012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
4390
4391 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4392 (grub_udf_read_symlink): Handle read_string failure.
4393
5eae3175
VS
43942012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4397 comment.
4398
c1ad82db
VS
43992012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 Fix handling of UDF symlinks.
4402
4403 * grub-core/fs/udf.c (read_string): New argument outbuf.
4404 All users updated.
4405 (grub_ufs_read_symlink): Rename to ...
4406 (grub_udf_read_symlink): ... this. All users updated.
4407 Handle symlinks with more than one component.
4408
33eca6e0
VS
44092012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4412 symlinks. Replace leading colon with a slash.
4413
57f4a70b
VS
44142012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4417 filename.
4418
38c8ee20
VS
44192012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4422 match in inner node.
4423
2e57f28f
VS
44242012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4427 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4428 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4429 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4430 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4431 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4432 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4433 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4434 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4435
fe8c2f11
VS
44362012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 Use grub-probe and not cmp to check that disk is empty.
4439
4440 * util/grub-install.in: Use grub-probe for zero-check.
4441 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
4442 (probe): Handle PRINT_ZERO_CHECK.
4443 (argp_parser): Handle -t zero_check.
4444
44452012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
4446
4447 Flush block cache on adding disk to device map.
4448
4449 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
4450 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
4451 adding.
4452 (read_device_map): Likewise.
4453 (open_device): Flush on opening.
4454
690434e8
VS
44552012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
4458 (handle_symlink): Fix off-by-one error.
4459 Canonicalize the target.
4460 (grub_cpio_dir): Canonicalize the name.
4461 Fix memory leak.
4462 Set directory.
4463 (grub_cpio_open): Canonicalize the name.
4464
742d2be6
VS
44652012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
4468 handling.
4469
3244fe96
VS
44702012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
4473 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
4474
8aeb1837
VS
44752012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
4478 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 4479 All users updated.
8aeb1837 4480
9133fd05
VS
44812012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
4484 counterpart.
4485
6d521c5b
VS
44862012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 Fix UFS1 big file support.
4489
4490 * grub-core/fs/ufs.c (INODE): Removed.
4491 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
4492 64-bit.
4493 (INODE_MODE): Simplify.
4494 (grub_ufs_inode): Use uint64_t for size and not int64_t.
4495 (grub_ufs_lookup_symlink): Don't use INODE.
4496
21b82e17
VS
44972012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 Fix minixfs with non-power-of-two blocks since it's supported by minix.
4500
4501 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
4502 (grub_minix_data): Replace log_block_size with block_size.
4503 (grub_minix_read_file): Use block_size but avoid 64-bit division.
4504 (grub_minix_mount): Fill block_size.
4505
45062012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
4507
4508 * configure.ac: Bump to beta5.
4509
f417ed04
VS
45102012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 Fix wrapped HFS+ handling.
4513
4514 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
4515 blocks_start. All users updated.
4516 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
4517 wrapping offset.
4518 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
4519
607d282b
VS
45202012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Fix long symlinks on reiserfs.
4523
4524 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
4525 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
4526 (grub_reiserfs_iterate_dir): Save size for non-directories.
4527 (grub_reiserfs_open): Don't reread stat block as we already know the
4528 size.
4529 (grub_reiserfs_read): Split into...
4530 (grub_reiserfs_read_real): ... and ...
4531 (grub_reiserfs_read): ...this.
4532
ae16024d
VS
45332012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 Fix non-indexed JFS.
4536
4537 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
4538 (grub_jfs_data): New field namecomponentlen.
4539 (grub_jfs_mount): Fill namecomponentlen.
4540 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
4541
eea1e26e
VS
45422012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
4545 * tests/grub_script_echo1.in: Add tests.
4546
df760f77
VS
45472012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * util/grub-install.in: Ignore empty devicetree directory.
4550
5efb817d
B
45512012-05-08 Bean <bean123ch@gmail.com>
4552
4553 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
4554 All users updated.
4555 (free_rsm): Free header as well.
4556 (free_old_fragments): Fix memory leak.
4557 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
4558 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
4559 (destroy_pq): Likewise.
4560 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
4561
668ea6d2
VS
45622012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
4565 resulting hash as a precaution.
4566
1739b1fe
VS
45672012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
4570 '_' in variable names.
4571 * grub-core/net/net.c (grub_net_network_level_interface_register):
4572 Likewise.
4573
6ae485aa
VS
45742012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 Fix AFFS with non-512B blocks.
4577
4578 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
4579 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
4580 (grub_affs_data): Replace blocksize with log_blocksize.
4581 (grub_affs_read_block): Fix non-512B blocks.
4582 (grub_affs_read_symlink): Likewise.
4583 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
4584 (grub_affs_read): Fix non-512B blocks.
4585 (grub_affs_label): Likewise.
4586 (grub_affs_mtime): Likewise.
4587 (grub_affs_mount): Fix block detection routine.
4588
d20fab84
VS
45892012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 Add filesystem mtime to AFFS.
4592
4593 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
4594 (aftime2ctime): New function.
4595 (grub_affs_dir): Use aftime2ctime.
4596 (grub_affs_label): Fix return value.
4597 (grub_affs_mtime): New function.
4598 (grub_affs_fs): Add mtime.
4599
e87b10f5
VS
46002012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
4603 UTF-8.
4604
7dceec9b
VS
46052012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
4608 UTF-8.
4609
2f48221f
VS
46102012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
4613
dacd85cf
VS
46142012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
4617 flags.
4618 (FLAGS_CASE_SENSITIVE): New enum value.
4619 (cache_entry): New struct.
4620 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
4621 cache_size and cache.
4622 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
4623 Add log_blocksize and fshelp_flags.
4624 (grub_sfs_read_extent): Handle non-512 blocks.
4625 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
4626 (grub_sfs_read_file): Handle non-512 blocks.
4627 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
4628 fshelp_flags.
4629 (grub_sfs_read_symlink): Handle non-512 blocks.
4630 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
4631 (grub_sfs_dir): Free cache.
4632 (grub_sfs_close): Likewise.
4633
24e9a854
VS
46342012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
4637 filesystems.
4638
62ace64d
VS
46392012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
4642
83b2e89c
VS
46432012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
4646
75ccaea3
VS
46472012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
4650 (grub_sfs_read_extent): Likewise.
4651 (grub_sfs_read_block): Likewise.
4652 (grub_sfs_mount): Likewise.
4653 (grub_sfs_iterate_dir): Likewise.
4654 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
4655 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
4656
1b8463f2
VS
46572012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 Fix errors on compressed NTFS with 512B clusters.
4660
4661 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
4662 types.
4663 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
4664 not 0.
4665 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
4666 Relax check for inline extents.
4667 (ntfscomp): Return correct -1 on error and not 0.
4668
4f8e368f
VS
46692012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * util/grub-install.in: Fix handling of prefix containing spaces.
4672
6f5d5ee8
VS
46732012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
4676 (grub_squash_read_data): Fix offset byte-swapping.
4677
ce41ab7a
VS
46782012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
4681 per common usage and preffered in several parts of code.
4682 (grub_memcmp): Likewise.
4683 (grub_strncmp): Likewise.
4684 * include/grub/misc.h (grub_strcasecmp): Likewise.
4685 (grub_strncasecmp): Likewise.
4686 * Makefile.util.def (cmp_test): New test.
4687 (grub_script_strcmp): Likewise.
4688 * tests/cmp_unit_test.c: New file.
4689 * tests/grub_script_strcmp.in: Likewise.
4690 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
4691
49717bf4
VS
46922012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * include/grub/pci.h: Move enums into no-asm part.
4695
0a308f64
VS
46962012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
4699
1796965f
ST
47002012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4701
4702 * util/getroot.c (find_hurd_root_device): Try to make error message
4703 and comments to translators clearer.
4704
4e9b2819
VS
47052012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
4708
076aeb50
VS
47092012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
4712 btrfs.
4713
19424d94
VS
47142012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * docs/grub.cfg: Update.
4717
ebb73076
VS
47182012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * docs/grub.texi (PXE): Remove not present variables.
4721
9a1b669c
VS
47222012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * grub-core/net/net.c (defserver_set_env): New function.
4725 (defserver_get_env): Likewise.
4726 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
4727
d38bf7d3
VS
47282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
4731 entries.
4732
47332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
4734
4735 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
4736 * grub-core/kern/emu/hostdisk.c: Likewise.
4737
e5e4ca48
ST
47382012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4739
4740 Handle hurd userspace partitions.
4741
4742 * util/getroot.c (find_hurd_root_device): New function.
4743 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
4744
56bb5dd5
VS
47452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
4748 names.
4749 Reported by: Bastian Blank.
4750
9e8bc27a
VS
47512012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
4754 crossing page boundary.
4755
aa01499d
VS
47562012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 Fix B-tree search in BFS, especially in presence of non-ASCII
4759 characters.
4760
4761 * grub-core/fs/bfs.c (bfs_strcmp): New function.
4762 (find_in_b_tree): Use standard bsearch + btree algorithm.
4763
57006035
VS
47642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
4767 and so on.
4768
9d34bb85
MG
47692012-05-03 Matthew Garrett <mjg@redhat.com>
47702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 Suspend broadcom cards in order to stop their DMA.
4773
4774 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
4775 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
4776 (pci): Don't build on x86 EFI.
4777 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
4778 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
4779 New function.
4780 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
4781 stop_broadcom if running on EFI.
4782 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
4783 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
4784 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
4785 (grub_pci_find_capability): New proto.
4786
01aab997
VS
47872012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * docs/grub.texi: Remove dot from the extension as it apparently
4790 doesn't work with some makeinfo versions.
4791
fbd8dca6
VS
47922012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
4795 with GRUB expectance.
4796
dab797f4
VS
47972012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
4800
1516bfb4
VS
48012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
4804 zero after directory block since last entry may be not 0-terminated if
4805 it ends on block boundary. Use continue instead of if spanning whole
4806 loop.
4807
a3a0eace
VS
48082012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 Support 4K sectors UDF inline files.
4811
4812 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
4813 (grub_udf_extended_file_entry): Likewise.
4814 (grub_fshelp_node): Name the anonymous union. Put block at the end.
4815 All users updated.
4816 (get_fshelp_size): New function.
4817 (grub_udf_read_icb): Read whole block.
4818 (grub_udf_iterate_dir): Likewise.
4819 (grub_udf_dir): Likewise.
4820 (grub_udf_open): Likewise.
4821
c82f16c1
VS
48222012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
4825
59fd2aac
VS
48262012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
4829 inline symlinks in addition to workaround.
4830
3b4afb4d
VS
48312012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
4834
f45c794a
VS
48352012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
4838
f25cecbd
VS
48392012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
4842
bb9a34e8
VS
48432012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 Fix reiserfs big seek times.
4846
4847 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
4848 exact. All users updated.
4849 (grub_reiserfs_read): Use nearest btree search for seeking.
4850 Fix return value on error.
4851
dc478aea
VS
48522012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
4855 entries.
4856 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
4857 * docs/grub.texi: Update menuentry description.
4858
8db10f47
VS
48592012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
4862 crash when embedding onto filesystem.
4863
bcb288ed
VS
48642012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
4867 name.
4868
a626fdd7
VS
48692012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
4872
b2f68477
VS
48732012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
4876 commit.
4877
ba15b2af
B
48782012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
48792012-05-01 Bean <bean123ch@gmail.com>
4880
4881 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
4882
a188012e
VS
48832012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
4886 Special behaviour for len = 0 to read whole file isn't used anywhere and
4887 can cause buffer ovewrflows in several places.
4888
f0a53ed2
VS
48892012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
4892
5ed554f0
VS
48932012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 Handle RAIDZ on non-512B sectors.
4896
4897 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
4898 max_children_ashift.
4899 (fill_vdev_info_real): Fill max_children_ashift.
4900 (read_device): Use max_children_ashift.
4901
ddc58357
VS
49022012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
4905
e3282399
VS
49062012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
4909 disk names.
4910 * docs/grub.texi: Update device.map parts.
4911
ee618bd4
VS
49122012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 Don't scan into non-diskfilter devices having diskfilter names.
4915
4916 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
4917 (scan_disk): New argument accept_diskfilter. Fix recursion depth
4918 handling.
4919 (scan_disk_hook): New function.
4920
bdf88864
B
49212012-04-29 Bean <bean123ch@gmail.com>
4922
4923 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
4924 allocation.
4925
32745f51
MK
49262012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
4927
4928 * configure.ac: Detect starfield theme font path
4929 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
4930
bc95c8c0
VS
49312012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
4934 geometry on serial consoles.
4935
147fbcab
VS
49362012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
4939 because of network consoles.
4940
0f42c889
VS
49412012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
4944 handling.
4945
4a3594c9
VS
49462012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
4949 falls on Q syndrom.
4950
5cb53879
VS
49512012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
4954 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
4955
b282dfe5
VS
49562012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
4959 Allocate at lest 8192 for temporary buffer as required for lzo.
4960
daa59f47
VS
49612012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4964 to cluster_bits, since it's already added in.
4965 (grub_fat_read_data): Likewise.
4966
986748ce
VS
49672012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4970 as long as cluster size is multiple of 512 bytes.
4971
a20f6ad0
VS
49722012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * util/grub-mkrescue.in: Fix locale directory.
4975
385f9abb
VS
49762012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * grub-core/kern/emu/hostdisk.c (map): Make static.
4979
1c557d30
B
49802012-04-23 Bean <bean123ch@gmail.com>
4981
4982 * util/grub-fstest.c (fstest): Add missing break.
4983
524b5d3a
ST
49842012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4985
4986 Fix hurd build.
4987
4988 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4989 not define nr variable.
fe4824e9 4990 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4991 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4992 grub_find_device): Do not define.
524b5d3a 4993
9a06490c
VS
49942012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 Fix kfreebsd compile and behaviour.
4997
4998 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4999 format-security.
5000 * util/getroot.c: Fix wait.h include.
5001 (grub_guess_root_devices): Error if grub_find_device fails.
5002 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
5003 (grub_util_get_dev_abstraction): Likewise.
5004 (grub_util_pull_device): Likewise.
5005 (grub_util_get_grub_dev): Likewise.
5006 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
5007
48143d96
VS
50082012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 Fix and unify wholedisk detection.
5011
5012 * util/getroot.c (convert_system_partition_to_system_disk): New argument
5013 is_part. All users updated.
5014 (device_is_wholedisk): Removed.
5015 (grub_util_biosdisk_get_grub_dev): Use is_part.
5016
ebbd24f3
VS
50172012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
5020 mode.
5021
56f7aa1e
VS
50222012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * configure.ac: Bump to beta4.
5025
9c815e01
VS
50262012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
5029 --fs-uuid --set UUID syntax.
5030
59e2651a
VS
50312012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
5034 disunification.
5035
54e03cfc
VS
50362012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5037
5038 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
5039
81092a75
MK
50402012-04-18 Mads Kiilerich <mads@kiilerich.com>
5041
5042 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
5043
f8315e14
MG
50442012-04-18 Mike Gilbert <floppym@gentoo.org>
5045
5046 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
5047
1501ac21
B
50482012-04-18 Bean <bean123ch@gmail.com>
5049
5050 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
5051 place.
5052
cb7f944e
VS
50532012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
5056 users updated.
5057 (grub_util_biosdisk_read): Handle Linux partitions not exactly
5058 corresponding to GRUB partitions.
5059 (grub_util_biosdisk_write): Likewise.
5060
b72d44a1
VS
50612012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 Scan mdraid before LVM.
5064
5065 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
5066 (grub_diskfilter_register_front): ... this.
5067 (grub_diskfilter_register_back): New function.
5068 All users of grub_diskfilter_register updated.
5069
33d918b8
VS
50702012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * util/grub-install.in: Fix an automatic target detection bug.
5073
c6ca973d
VS
50742012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * util/grub-install.in: New option --efi-directory.
5077
b41be562
VS
50782012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
5081 boot services if we have no other choice.
5082
50832012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * util/grub-mknetdir.in: Rename --override-directory to --directory and
5086 document it.
5087 * tests/util/grub-shell.in: Update to --directory.
5088
e0595a73
VS
50892012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
5092
4ed80652
VS
50932012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
5096 (grub_minix_read_file): Likewise.
5097 (grub_minix_read_inode): Likewise.
5098 (grub_minix_find_file): Likewise.
5099 (grub_minix_dir): Likewise.
5100
56008077
VS
51012012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 * util/grub-setup.c (setup): Fix partition handling and blocklist
5104 check.
5105
ee520775
VS
51062012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
5109 redundant buggy overlap check.
5110
16fc9293
VS
51112012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
5114 and grub-mknetdir.
5115
9bab65c4
VS
51162012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
5119 kh.loadflags on pre-2.00 kernels.
5120
3c491b47
VS
51212012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 Terminate UNDI and PXE before launching the payload to avoid problems
5124 with DMA.
5125
5126 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
5127 (grub_loader_flags): ... this. All users updated.
5128 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
5129 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
5130 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
5131 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
5132 function.
5133 (grub_pxe_restore): Likewise.
5134 (fini_hnd): New var.
5135 (GRUB_MOD_INIT): Register shutdown hook.
5136 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
5137 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
5138 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
5139 (grub_loader_set): Rename second argument to flags.
5140
851ffada
VS
51412012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
5144 written bytes.
5145 (grub_get_num_of_utf8_bytes): New function.
5146 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
5147 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
5148 executing it.
5149 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
5150 (grub_ucs4_to_utf8): Change return type.
5151
491c57a8
VS
51522012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5155 warning.
851ffada
VS
5156 * grub-core/fs/bfs.c (hop_level): Likewise.
5157 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 5158
756773df
VS
51592012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * grub-core/lib/adler32.c: Recode due to license unclearness.
5162
fd556a96
VS
51632012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5166 (test_header): Likewise.
5167
9f9d3f69
VS
51682012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Fix --help formatting.
5171
5172 * util/grub-mkconfig_lib.in (print_option_help): New function.
5173 (grub_fmt): Likewise.
5174 * util/grub-install.in: Use print_option_help and grub_fmt.
5175 * util/grub-kbdcomp.in: Likewise.
5176 * util/grub-mkconfig.in: Likewise.
5177 * util/grub-mknetdir.in: Likewise.
5178 * util/grub-mkrescue.in: Likewise.
5179 * util/grub-mkstandalone.in: Likewise.
5180 * util/grub-reboot.in: Likewise.
5181 * util/grub-set-default.in: Likewise.
5182 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5183
561ec77e
VS
51842012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * linguas.sh: Remove autogenerated *.po.
5187
7ec2b021
VS
51882012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * po/README: Move language fetcing to ...
5191 * linguas.sh: ... here.
5192 * po/README: Point to linguas.sh.
5193
a88f3270
VS
51942012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * po/README: Exclude ko.po due to disclaimer problems.
5197
d61357ce
VS
51982012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5201 len = 0.
5202 (grub_gettext_translate_real): Handle 0th string.
5203 (grub_gettext_translate): Ensure that "" isn't translated.
5204
505e41dc
VS
52052012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5208 TRANSLATORS comment.
5209 (grub_diskfilter_print_partmap): Propagate changing of error into
5210 warning.
5211
e44092db
VS
52122012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5215 to uint64_t to prevent overflow.
5216 (grub_diskfilter_lv): Increase start_extent and extent_count
5217 to uint64_t to prevent overflow.
5218
9b83956a
VS
52192012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * configure.ac: Increase version.
5222
da0d5b3f
VS
52232012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5226
5227 * po/Rules-translit: New file.
5228 * po/arabic.sed: Likewise.
5229 * po/cyrillic.sed: Likewise.
5230 * po/greek.sed: Likewise.
5231 * po/hebrew.sed: Likewise.
5232 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5233 * po/Makefile.in.in: Add extra_dist4.
5234
ac66b453
VS
52352012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5238
5239 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5240 modify names. Introduce MODE_BIGENDIAN.
5241 * grub-core/fs/minix_be.c: New file.
5242 * grub-core/fs/minix2_be.c: Likewise
5243 * grub-core/fs/minix3_be.c: Likewise.
5244 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5245 minix3_be.
5246 * grub-core/Makefile.core.def (minix_be): New module.
5247 (minix2_be): Likewise.
5248 (minix3_be): Likewise.
5249
52502012-04-01 Felix <email@hamburg.de>
5251
5252 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5253 (devs): Add MBP 2011.
5254
0a2d5a82
VS
52552012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5258
d1625889
VS
52592012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 * grub-core/normal/cmdline.c (print_completion): New field
5262 prompt_len.
5263 (grub_cmdline_get): Handle width properly.
5264
6d36a236
VS
52652012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5268
9576977e
VS
52692012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 5272 after 29th of February.
9576977e 5273
d73ff15d
VS
52742012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 Fix exfat endianness handling.
5277
5278 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5279 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5280 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5281 Byte-swap utf16 when necessary.
5282 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5283
bbb39a45
AB
52842012-03-31 Anton Blanchard <anton@samba.org>
52852012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 Fix btrfs endianness handling.
5288
5289 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5290 (lower_bound): Make root uint64_t. Use root in le.
5291 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5292 (find_path): Fix template key init.
5293 (grub_btrfs_dir): Fix mtime byteswap.
5294 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5295
354e0af7
VS
52962012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5299 recursion_depth. Break infinite resursions. All users updated.
5300
4e75f21c
VS
53012012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5304 after free.
5305 Reported by: Peter Jones.
5306
25581802
AB
53072012-03-31 Anton Blanchard <anton@samba.org>
5308
5309 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5310 8 bit values.
5311
08fbf92e
VS
53122012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * util/grub-install.in: Fix nvram call for PreP.
5315
5d1182a6
VS
53162012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5319 the error when some elements are missing into a warning.
5320
3f8cdd90
VS
53212012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5324
51006716
CW
53252012-03-28 Colin Watson <cjwatson@ubuntu.com>
5326
5327 * docs/grub.texi (Invoking grub-probe): New section.
5328 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5329
e1bd676b
VS
53302012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 Fix tab and wide character handling in editor and menu.
5333
5334 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5335 agglomerate control characters with combining marks.
5336 (bidi_line_wrap): Allow break on tab.
5337 (grub_unicode_get_comb_start): New function.
5338 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5339 and tab correctly.
5340 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5341 with a space.
5342 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5343 fixed_tab_size. All users updated.
5344 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5345 (grub_term_getcharwidth): Handle \t.
5346 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5347 and copy.
5348
22e6a774
VS
53492012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 Handle big-endian mdraid.
5352
5353 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5354 * grub-core/Makefile.core.def (mdraid09_be): New module.
5355 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5356 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5357 * grub-core/disk/mdraid_linux_be.c: New file.
5358
3c0eae66
VS
53592012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5362
b6cf74c9
VS
53632012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5366 missing quotes which caused confusion among translators.
5367
83c93b9c
VS
53682012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * util/grub-mkconfig_lib.in: Fix typo.
5371
ac6fd218
VS
53722012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5375 spaces.
5376 * tests/grub_script_leading_whitespace.in: New file.
5377 * Makefile.util.def (grub_script_leading_whitespace): New test.
5378
ba287dd8
VS
53792012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5382 to work.
5383
d2d58d0a
VS
53842012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5387 starts with control character.
5388
0382d9bb
VS
53892012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5392 overflow.
5393 (grub_gdb_outbuf): Likewise.
5394
d83ff9f9
VS
53952012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5398 zero terminator. Fixes a crash.
5399
2282da4a
VS
54002012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5403 beyond 4 GiB.
5404 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5405 images independently of preffered adderss field.
5406
0ae4f0bd
VS
54072012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5410 * grub-core/commands/regexp.c: Likewise.
5411 * grub-core/loader/i386/linux.c: Likewise.
5412 * grub-core/partmap/msdos.c: Likewise.
5413 * grub-core/script/execute.c: Likewise.
5414 * grub-core/term/gfxterm.c: Likewise.
5415
546fbe9b
VS
54162012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 Add variable parsing in $"..." and fix several mismatches with bash.
5419
5420 * Makefile.util.def (grub_script_gettext): New test.
5421 * grub-core/script/execute.c (parse_string): New function.
5422 (gettext_append): Likewise.
5423 (grub_script_arglist_to_argv): Use gettext_append.
5424 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5425 * tests/grub_script_gettext.in: New file.
5426
9fdb2d7b
VS
54272012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5428
5429 Fix handling of leading spaces in scripts.
5430
5431 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5432 spaces.
5433 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5434 other than skipping \r. All users updated.
5435 * tests/grub_script_echo1.in: Add space-related tests.
5436 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5437
1a1ac4f6
VS
54382012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5439
5440 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
5441
b63d89b6
VS
54422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * configure.ac: Bump up the version to beta2.
5445
17f38c0f
VS
54462012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 Fix gettext reload bugs (e.g. inability to disable gettext
5449 once enabled).
5450
5451 * grub-core/gettext/gettext.c: Encapsulate all static variables in
5452 main_context and secondary_context. All functions updated.
5453 (grub_gettext_translate): Rename to ...
5454 (grub_gettext_translate_real): ... this. Return NULL on failed
5455 translate.
5456 (grub_gettext_translate): Handle secondary context.
5457 (grub_gettext_delete_list): Close file and zero-out the context.
5458 (grub_mofile_open): Don't call grub_gettext_delete_list.
5459 Don't close file.
5460 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
5461 if locale="" to avoid pointless error message.
5462 (grub_gettext_env_write_lang): Update lang even if load fails.
5463 Handle secondary context.
5464 (grub_gettext_reread_prefix): New function.
5465 (read_main): Likewise.
5466 (read_secondary): Likewise.
5467 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
5468 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
5469 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
5470 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
5471
8e56f870
VS
54722012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * configure.ac: Decrease warning level to avoid spurious warnings and
5475 to be able to compile with GCC 4.2.
5476 * Makefile.util.def: Remove -Wno-error=logical-op.
5477
82f6d455
WB
54782012-03-10 William Bittner <william.bittner@gmail.com>
5479
5480 * util/import_unicode.py: Add missing brackets around string for
5481 python 3 support.
5482
1ecd61a4
VS
54832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 Fix efi chainloader on network root.
5486
5487 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
5488 network devices.
5489 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
5490 New function.
5491
14361ee8
VS
54922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
5495 unused show_text member.
5496 * docs/grub.texi: Document "text" property.
5497
922aabf3
VS
54982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
5501 in dprintf.
5502
ec316771
VS
55032012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 Fix IMSM handling on Fedora.
5506
5507 * util/getroot.c (grub_util_is_imsm): New function.
5508 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
5509
0f021838
VS
55102012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * Makefile.am: Strip gold section.
5513 * conf/Makefile.common: Likewise.
5514 * gentpl.py: Likewise.
5515 * grub-core/Makefile.core.def: Likewise.
5516 * grub-core/genmod.sh.in: Likewise.
5517
1039c8eb
VS
55182012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
5521 * util/grub.d/20_linux_xen.in: Likewise.
5522 Based on Debian patch.
5523
6dd412cd
VS
55242012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * util/grub.d/10_linux.in: Fix syntax error resulting in
5527 Richard Laager's patch.
5528 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
5529
3fd8bae5
VS
55302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5531
5532 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
5533 dependencies.
5534
7eea1671
RL
55352012-03-10 Richard Laager <rlaager@wiktel.com>
5536
5537 * util/grub.d/10_linux.in: Fix ZFS root passing.
5538
e8e0566b
VS
55392012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5542 * grub-core/commands/xnu_uuid.c: Likewise.
5543 * grub-core/loader/efi/appleloader.c: Likewise.
5544 * grub-core/script/execute.c: Likewise.
5545 * grub-core/script/main.c: Likewise.
5546 * util/grub-mkfont.c: Likewise.
5547
1acc5b1f
VS
55482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 * util/grub-mkfont.c (options): Use more appropriate "select" that
5551 "set" for face index.
5552
35d70620
VS
55532012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * util/grub-editenv.c (options): Gettextize command summaries.
5556
c9eb96b5
VS
55572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
5560 "out of memory" error messagge.
5561
1f493136
VS
55622012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
5565 of diskfilter for diskfilter on diskfilter support.
5566
6d790129
VS
55672012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
5570
005f46c9
VS
55712012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * util/grub-install.in: Check for themes/starfield/theme.txt and not
5574 themes/starfield.
5575
c8f778a0
VS
55762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
5579
de1e64eb
VS
55802012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5581
5582 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
5583
c6d54211
VS
55842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
5587 of error message.
5588
dd390777
VS
55892012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
5592
5fd1c522
VS
55932012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
5596 message.
c6d54211 5597 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 5598
fae01f6c
VS
55992012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
5602 Gettextize.
5603 * util/grub-mount.c (options): Likewise.
5604
292fdaff
VS
56052012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
5608 gettextize.
5609 * grub-core/commands/search_wrap.c (options): Likewise.
5610
ecdbae77
VS
56112012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
5614
52bfedfa
VS
56152012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
5618 size calculation.
5619 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
5620 none is known.
5621
55b20e58
VS
56222012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
5625 "temporary" since it's used in identifier and is limited in space.
5626
fda9d101
VS
56272012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * po/POTFILES.in: Regenerate. Include *.h since they contain
5630 translatable strings as well.
5631
6a0295e2
VS
56322012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5635 byte-swap on big-endian.
5636 Reported by: Lennart Sorensen
5637
807fb77c
VS
56382012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
5641 (allocate_pages): Improve dprintf.
5642 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
5643 code32_start. Fill code32_start and kernel_alignment in params.
5644 (grub_cmd_initrd): Use prot_init_space.
5645
61ac50ba
VS
56462012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5647
5648 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
5649
abdd26dd
VS
56502012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * util/grub-install.in: Add missing dot at the end of sentence.
5653
6e69da9c
VS
56542012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5657 * grub-core/commands/videotest.c: Likewise.
5658 * grub-core/loader/i386/linux.c: Likewise.
5659
4a929343
VS
56602012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5661
5662 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
5663 sentence.
5664 Reported by: Milo Casagrande.
5665
bb51c6c6
VS
56662012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
5669 * grub-core/commands/gptsync.c: Likewise.
5670 * grub-core/commands/hashsum.c: Likewise.
5671 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5672 * grub-core/commands/legacycfg.c: Likewise.
5673 * grub-core/io/gzio.c: Likewise.
5674 * grub-core/net/net.c: Likewise.
5675 * grub-core/term/gfxterm.c: Likewise.
5676 * grub-core/term/terminfo.c: Likewise.
5677 * grub-core/tests/test_blockarg.c: Likewise.
5678 * grub-core/video/video.c: Likewise.
5679 * util/grub-install.in: Likewise.
5680 * util/grub-mkfont.c: Likewise.
5681
b2b149cb
VS
56822012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
5685
c7c080ad
VS
56862012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 5689 Reported by: David Prévot.
c7c080ad 5690
f2e243c0
VS
56912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
5694 description.
5695
09963c76
VS
56962012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * util/grub-script-check.c (main): Fix a syntax error message which was
5699 unclear.
5700
a50514a8
VS
57012012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
5704
4650daec
VS
57052012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
5708 messages.
5709
57102012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
5711
5712 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
5713 without argument.
5714 * util/grub-mount.c (options): Likewise.
5715
bbc5a342
VS
57162012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
5719
ef292a87
VS
57202012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * grub-core/net/http.c: Add TRANSLATORS comments.
5723 * grub-core/normal/cmdline.c: Likewise.
5724 * grub-core/normal/misc.c: Likewise.
5725 * grub-core/partmap/msdos.c: Likewise.
5726 * grub-core/parttool/msdospart.c: Likewise.
5727 * grub-core/script/execute.c: Likewise.
5728 * grub-core/script/main.c: Likewise.
5729 * grub-core/term/terminfo.c: Likewise.
5730 * grub-core/video/bitmap.c: Likewise.
5731 * util/grub-install.in: Likewise.
5732 * util/grub-mkimage.c: Likewise.
5733 * util/grub-mklayout.c: Likewise.
5734 * util/grub-setup.c: Likewise.
5735
0fc19bd0
VS
57362012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
5739 with similar messages in grub-fstest.
5740
d95862ef
VS
57412012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5742
5743 * util/grub-install.in: Unify "option requires an argument" message
5744 with similar messages in other files.
5745 * util/grub-mkconfig.in: Likewise.
5746
b7308f90
VS
57472012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * util/grub-set-default.in: Replace printf with gettext_printf (the
5750 string in in question is already translated from grub-reboot)
5751
559dc587
VS
57522012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * configure.ac: Bump up the version to beta1.
5755
1a11761f
VS
57562012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
5759 case when min_align = 0.
5760
24539abd
VS
57612012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
5764 and fix a case when line_start overflows.
5765
32bd735b
VS
57662012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * util/grub-reboot.in (usage): Mention id posibility.
5769 * util/grub-set-default.in (usage): Likewise.
5770
1a2fd1e6
VS
57712012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
5774 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
5775 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
5776 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
5777 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
5778 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5779 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5780
90eeab76
VS
57812012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/commands/menuentry.c (options): Remove
5784 GRUB_ARG_OPTION_REPEATABLE.
5785 Reported by: Andreas Vogel
5786
5ad1be82
AV
57872012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
5788
5789 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
5790
cb055286
HE
57912012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
5792
5793 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
5794 error.
5795
93b1cd79
VS
57962012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 Use sort -V by the idea of Georgi Georgiev.
5799
5800 * util/grub-mkconfig_lib.in (version_sort): New function.
5801 (version_test_numeric): Use version_sort.
5802
0cdc126c
VS
58032012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5804
5805 Use submenus in grub-mkconfig.
5806
5807 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
5808 * util/grub-mkconfig_lib.in (grub_quote): New function.
5809 (gettext_printf): Use gettext and not gettext_quoted to fix several
5810 messages.
5811 * util/grub.d/10_hurd.in: Use submenus.
5812 * util/grub.d/10_kfreebsd.in: Likewise.
5813 * util/grub.d/10_linux.in: Likewise.
5814 * util/grub.d/10_netbsd.in: Likewise.
5815 * util/grub.d/20_linux_xen.in: Likewise.
5816 * util/grub.d/30_os-prober.in: Likewise.
5817 * util/grub.d/10_illumos.in: Add missing quoting.
5818 * util/grub.d/10_windows.in: Likewise.
5819
d9bef9bc
VS
58202012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 Fix menu title instability bug.
5823
5824 * grub-core/commands/menuentry.c (options): New option --id.
5825 (grub_normal_add_menu_entry): New argument id. All users updated.
5826 (grub_cmd_menuentry): Handle --id.
5827 (grub_menu_init): Accept unknown arguments.
5828 * grub-core/normal/main.c (features): Add feature_menuentry_id and
5829 feature_menuentry_options.
5830 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
5831 saved_entry.
5832 (get_entry_number): Match with id as well.
5833 * include/grub/menu.h (grub_menu_entry): New member id.
5834 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
5835 * util/grub.d/00_header.in: Define menuentry_id_option.
5836 * util/grub.d/10_hurd.in: Define id.
5837 * util/grub.d/10_illumos.in: Likewise.
5838 * util/grub.d/10_kfreebsd.in: Likewise.
5839 * util/grub.d/10_linux.in: Likewise.
5840 * util/grub.d/10_netbsd.in: Likewise.
5841 * util/grub.d/10_windows.in: Likewise.
5842 * util/grub.d/20_linux_xen.in: Likewise.
5843 * util/grub.d/30_os-prober.in: Likewise.
5844
58452012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
5846
5847 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
5848 "scope" with "body".
5849
7c8d0ce7
VS
58502012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
5853 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
5854 prot_size and prot_file_size.
5855
49de079b
VS
58562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
5859 All users updated. If easily=1 require raid-5/-6 to be full.
5860 (is_node_readable): Likewise.
5861 (scan_devices): Scan incomplete but readable LVs at the end.
5862 (grub_diskfilter_memberlist): Pull missing devices.
5863 (insert_array): Skip scanning until device is complete or scan is
5864 done otherwise.
5865 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
5866 check.
5867 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
5868 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
5869
aff05d45
MG
58702012-03-03 Matthew Garrett <mjg@redhat.com>
58712012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 Avoid EFI boot services when loading Linux.
5874
5875 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
5876 avoid_efi_bootservices. All users updated.
5877 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
5878 argument avoid_efi_bootservices. All users updated.
5879 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
5880 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
5881 align, min_align, relocatable, prefered_address. All users updated.
5882 Allocate avoiding boot services if kernel is relocatable.
5883 (grub_cmd_linux): Check if kernel is relocatable.
5884 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
5885 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
5886 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
5887 avoid_efi_boot_services.
5888 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
5889 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
5890 (linux_kernel_params): Likewise.
5891
3935dde2
MG
58922012-03-03 Matthew Garrett <mjg@redhat.com>
58932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 Use EDID on EFI.
5896
5897 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
5898 datasize_out.
5899 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
5900 modes. Set gop_handle.
5901 (grub_video_gop_get_edid): New function.
5902 (grub_gop_get_preferred_mode): Likewise.
5903 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
5904 (grub_video_efi_gop_adapter): Set .get_edid.
5905 * include/grub/efi/edid.h: New file.
5906 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
5907
32107ec0
VS
59082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 * util/grub-install.in: Load efivars unconditionally.
5911
e70a2c50
VS
59122012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * po/Rules-piglatin: Change suffix from .po-update-en to
5915 .po-update-en-piglatin.
5916
8f9cace1
VS
59172012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 Add a pig farm.
5920
5921 * po/piglatin.sed: New file.
5922 * po/en@piglatin.header: Likewise.
5923 * po/Rules-piglatin: Likewise.
5924 * po/README: Add en@piglatin to autogenerated languages.
5925
8f95d002
VS
59262012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
5929 "Command for ...".
5930 * grub-core/commands/hdparm.c (options): Use "Display" rather than
5931 "Check" since we don't check anything.
5932 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
5933 is 64-bit one.
5934 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
5935 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
5936 (grub_md_sha512_real): Likewise.
5937
805a8dcc
VS
59382012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5939
5940 * grub-core/commands/gptsync.c: Fix typographic quoting.
5941 * grub-core/commands/ieee1275/suspend.c: Likewise.
5942 * grub-core/commands/parttool.c: Likewise.
5943 * grub-core/commands/search_wrap.c: Likewise.
5944 * grub-core/commands/videoinfo.c: Likewise.
5945 * grub-core/gfxmenu/gui_label.c: Likewise.
5946 * grub-core/hello/hello.c: Likewise.
5947 * grub-core/kern/emu/main.c: Likewise.
5948 * grub-core/net/net.c: Likewise.
5949 * grub-core/normal/menu.c: Likewise.
5950 * grub-core/normal/menu_text.c: Likewise.
5951 * grub-core/normal/misc.c: Likewise.
5952 * util/grub-editenv.c: Likewise.
5953 * util/grub-install.in: Likewise.
5954 * util/grub-kbdcomp.in: Likewise.
5955 * util/grub-mkconfig.in: Likewise.
5956 * util/grub-mknetdir.in: Likewise.
5957 * util/grub-mkrescue.in: Likewise.
5958 * util/grub-mkstandalone.in: Likewise.
5959 * util/grub-reboot.in: Likewise.
5960 * util/grub-set-default.in: Likewise.
5961 * util/grub-setup.c: Likewise.
5962 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5963
40211ab8
VS
59642012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5967 * grub-core/commands/keystatus.c: Likewise.
5968 * grub-core/commands/loadenv.c: Likewise.
5969 * grub-core/commands/probe.c: Likewise.
5970 * grub-core/commands/regexp.c: Likewise.
5971 * grub-core/commands/true.c: Likewise.
5972 * grub-core/commands/videoinfo.c: Likewise.
5973 * grub-core/disk/cryptodisk.c: Likewise.
5974 * grub-core/disk/ldm.c: Likewise.
5975 * grub-core/disk/loopback.c: Likewise.
5976 * grub-core/disk/luks.c: Likewise.
5977 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5978 * grub-core/kern/disk.c: Likewise.
5979 * grub-core/kern/emu/hostdisk.c: Likewise.
5980
0c7d99c7
VS
59812012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5984 * util/grub-install.in: Add missing quote in the comment.
5985
e7d2559b
VS
59862012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5989 * grub-core/commands/lsmmap.c: Likewise.
5990 * grub-core/commands/minicmd.c: Likewise.
5991 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5992 * grub-core/commands/regexp.c: Likewise.
5993 * grub-core/gdb/gdb.c: Likewise.
5994 * grub-core/term/gfxterm.c: Likewise.
5995 * util/grub-mkconfig.in: Likewise.
5996 * util/grub-mkfont.c: Likewise.
5997 * util/grub-mklayout.c: Likewise.
5998 * util/grub-mknetdir.in: Likewise.
5999 * util/grub-mkrescue.in: Likewise.
6000 * util/grub.d/30_os-prober.in: Likewise.
6001
49ce9e50
VS
60022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
6005 with "Direct color" and "Packed" with "Packed pixel".
6006 (grub_cmd_videoinfo): Simplify legend.
6007
e4b791fa
VS
60082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6011 absolutely unclear error message.
6012
fd1265cb
VS
60132012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * util/grub-mkstandalone.in: Remove confusing leftover print.
6016
8822a8a0
VS
60172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6018
6019 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
6020 comments.
6021 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
6022 (GRUB_MOD_INIT): Likewise.
6023 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
6024 VGA mode.
6025 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
6026 comments.
6027 * util/grub-install.in (usage): Likewise.
6028 Spell ID in whole letters.
6029 Add missing ending dot.
6030 Quote variables.
6031 * util/grub-reboot.in: Fix capitalisation.
6032 * util/grub-set-default.in: Likewise.
6033
937fd0cc
VS
60342012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6035
6036 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
6037 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
6038 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
6039 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
6040 Disable -Werror for -Wdeprecated-declarations.
6041 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
6042 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
6043 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
6044 (grub_util_get_grub_dev): Make luks handling dependent on
6045 HAVE_DEVICE_MAPPER and not __linux__.
6046 (get_win32_path): Fix format security.
6047 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
6048 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
6049 Don't try grub_find_zpool_from_dir.
6050 (grub_make_system_path_relative_to_its_root) [!__linux__]:
6051 #ifdef-out paresdir.
6052
1bab1ae3
VS
60532012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * util/grub-pe2elf.c (usage): Add missing noreturn.
6056 (write_section_data): Rename name to shname to avoid shadowing.
6057 (write_symbol_table): Rename name to symname to avoid shadowing.
6058 Fix write_reloc_section call.
6059
ef023e42
VS
60602012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
6063 to ensure that it's after the last byte of .text.
6064
48afcb75
VS
60652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * util/ieee1275/ofpath.c (my_isdigit): New function.
6068 (trailing_digits): Use my_isdigit.
6069 (strip_trailing_digits): Likewise.
6070
88d51eff
VS
60712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
6074 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
6075
17edc2ba
VS
60762012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * grub-core/kern/i386/pc/startup.S: Define __start.
6079
ad5518d7
VS
60802012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6081
6082 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
6083 strip already transforms he format.
6084
9e95e1bf
VS
60852012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
6088
9cc3ee5c
VS
60892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * util/grub-install.in: Add missing gettext init.
6092 * util/grub-kbdcomp.in: Likewise.
6093 * util/grub-mkconfig.in: Likewise.
6094 * util/grub-mknetdir.in: Likewise.
6095 * util/grub-mkrescue.in: Likewise.
6096 * util/grub-mkstandalone.in: Likewise.
6097 * util/grub-reboot.in: Likewise.
6098 * util/grub-set-default.in: Likewise.
6099 * util/grub.d/00_header.in: Likewise.
6100 * util/grub.d/10_hurd.in: Likewise.
6101 * util/grub.d/10_windows.in: Likewise.
6102 * util/grub.d/30_os-prober.in: Likewise.
6103 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6104
49e08a06
VS
61052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 * po/Rules-swiss: Fix header comment.
6108
3809cb41
AV
61092012-02-29 Andreas Vogel <anvoit>
6110
6111 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
6112 resulted in leak of arguments.
6113
fa6ec573
VS
61142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * grub-core/boot/i386/pc/startup_raw.S: Use separate
6117 reed_solomon_size const definition instead of computing it since
6118 Apple assembler doesn't support the later.
6119
22899b9c
VS
61202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * gentpl.py (kernel): Rewrite Apple part.
6123
a132afc3
VS
61242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * include/grub/kernel.h (FOR_MODULES): Check module magic.
6127
9d742bd4
VS
61282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * util/grub-mkimagexx.c (locate_sections): Support non-standard
6131 ELF section gap.
6132 (load_image): Likewise.
6133
f04a9a21
VS
61342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * configure.ac: Fix a typo in previous commit.
6137
46cf439c
VS
61382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 Don't add -Wl,-N on Apple platform.
6141
6142 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
6143 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
6144
c4c48c54
VS
61452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * grub-core/Makefile.core.def (lzma_decompress): Use
6148 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
6149
31a12124
VS
61502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * grub-core/genmod.sh.in: Rewrite the Apple part.
6153
4f3aa1af
VS
61542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6157 comparison.
6158
7bd8b0c7
VS
61592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * acinclude.m4 (grub_CHECK_PIC): New test.
6162 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6163
97304d7c
VS
61642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6167 to avoid the warning.
6168
fb883812
VS
61692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6172 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6173 after. All users updated.
6174
a121c964
VS
61752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 Use the common size routine in hostfs so we can read disks as well.
6178
6179 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6180 (grub_util_get_fd_size): ... this. Return size in bytes.
6181 All users updated.
6182 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6183 grub_util_get_fd_size.
6184
c66d6410
VS
61852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6188 Add blocksize retrieval.
6189
dfc8aeb0
VS
61902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * configure.ac: Restore CFLAGS after efiemu check.
6193
403e25a5
VS
61942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6197 Apple bug.
6198
382775d1
VS
61992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6202
6fd4e6e4
VS
62032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6206 (grub_cmd_halt): Likewise.
6207
bea359d6
VS
62082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6211 for local arithmetics.
6212 Break %sp init into 2 instructions.
6213 Add 0 byte at the end.
6214
32eb6ee1
VS
62152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6218 before loops.
6219
e8377389
VS
62202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6223 for context.
6224
8cb17de7
VS
62252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * grub-core/disk/ldm.c (make_vg): Init part.name.
6228 (grub_ldm_detect): Silence spurious warning.
6229 (grub_util_is_ldm): Likewise.
6230
595717e6
VS
62312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6234 sane value to avoid a spurious warning.
6235
c4b7e588
VS
62362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6237
6238 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6239 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6240
59824957
VS
62412012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6244 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6245
70115b99
VS
62462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6249 hardcoding the relevant info.
6250
56733740
VS
62512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6254 missing const qualifiers.
6255 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6256
43481481
VS
62572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 * util/getroot.c [__APPLE__]: Add missing includes.
6260 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6261
3cb38f01
VS
62622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6265
d9dbf11e
VS
62662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6269 avoid conflicts.
6270
0c42a45d
VS
62712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6274
46c34eb0
VS
62752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6278 and grub_file_close call.
6279
99ce1597
VS
62802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 Add LZSS Mach-O support (needed for new xnu kernelcache).
6283
6284 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6285 * grub-core/loader/lzss.c: New file.
6286 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6287 on Mach-O open failure.
6288 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6289 Don't free cmdsXX in uncompressedXX is set.
6290 (grub_macho_file): Init new fields.
6291 New argument is_64bit. All users updated.
6292 Handle compressed. Error out if no suitable architecture is found.
6293 Don't close file.
6294 (grub_macho_open): New argument is_64bit. All users updated.
6295 * grub-core/loader/macho32.c: Add defines for new fields.
6296 * grub-core/loader/macho64.c: Likewise.
6297 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6298 (grub_macho_parse): Handle compressed.
6299 Defer actual processing if compressed.
6300 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6301 "filename". All users updated.
6302 (grub_macho_size): New argument "filename". All users updated.
6303 (grub_macho_get_entry_point): Likewise.
6304 (grub_macho_load): Handle compressed.
6305 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6306 (GRUB_MACHO_LZSS_OFFSET): New define.
6307 (grub_decompress_lzss): New proto.
6308 * include/grub/machoload.h (grub_macho_file): New fields to handle
6309 compressed.
6310 (grub_macho_contains_macho64): Remove proto.
6311 (grub_macho_contains_macho32): Likewise.
6312 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6313
ebd17d6f
VS
63142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6317
2702b4e4
VS
63182012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 Fix make dist.
6321
6322 * Makefile.am (starfield_theme_files): New var.
6323 (starfield_DATA): Use starfield_theme_files.
6324 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6325 Add bootcheck-related files.
6326 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6327 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6328 and font_char_metrics.txt.
6329 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6330 (setjmp): Add lib/ia64/longjmp.S.
6331 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6332 * po/POTFILES.in: Regenerate.
6333 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6334 DISTFILES.common.extra1.
6335 * util/devicemap.c: Removed.
6336 * grub-core/lib/i386/relocator_backward.S: Likewise.
6337 * util/import_gcry.py: Remove unused files. Add extra_dist for
6338 ChangeLog.
6339
cf1adfdf
VS
63402012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6343 grub_gettext_delete_list before changing grub_gettext_max to avoid
6344 running out of array bounds.
6345
63462012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
6347
6348 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6349 grub_vga_text_init/grub_vga_text_fini.
6350
cf1adfdf 63512012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
6352
6353 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6354
541d92e9
VS
63552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 * configure.ac: Bump to 2.00~beta0.
6358
7931dddf
VS
63592012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6362 missing initialisation.
6363
f1b16fa3
VS
63642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6367
83ddae23
VS
63682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 Support v2 xnu boot arguments.
6371
6372 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6373 New argument fsbfreq_out.
6374 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6375 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6376 be used.
6377 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6378 darwin_version.
6379 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6380 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6381 (grub_xnu_boot_params): Rename to ...
6382 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6383 (grub_xnu_boot_params_v2): New struct.
6384
dc693fe6
VS
63852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6388 zeroing of CRC field before computing CRC.
6389
5a6e39c2
VS
63902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6393 Change order of allocations to decrease fragmentation.
6394
6c21f5d7
VS
63952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6398
cfe456dc
CW
63992012-02-27 Colin Watson <cjwatson@ubuntu.com>
6400
6401 Use write-combining MTRR to speed up video with buggy BIOSes.
6402
6403 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6404 (cpuid): New define.
6405 (rdmsr): Likewise.
6406 (wrmsr): Likewise.
6407 (mtrr_base): Likewise.
6408 (mtrr_mask): Likewise.
6409 (grub_vbe_enable_mtrr_entry): New function.
6410 (grub_vbe_enable_mtrr): Likewise.
6411 (grub_vbe_disable_mtrr): Likewise.
6412 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6413 control off to BIOS.
6414 (grub_video_vbe_init): Fill mtrr.
6415 (grub_video_vbe_fini): Disable mtrr.
6416 (grub_video_vbe_get_info_and_fini): Likewise.
6417 (grub_video_vbe_setup): Enable mtrr.
6418
e3c78337
CW
64192012-02-27 Colin Watson <cjwatson@ubuntu.com>
6420
6421 * include/grub/partition.h (grub_partition_map): Change prototype of
6422 embed to take a maximum value for nsectors.
6423 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6424 * include/grub/fs.h (grub_fs): Likewise.
6425 * grub-core/partmap/msdos.c (embed_signatures): New array.
6426 (pc_partition_map_embed): Check for and avoid sectors matching any
6427 of the signatures in embed_signatures, up to max_nsectors.
6428 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6429 returned sector map to max_nsectors.
6430 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6431 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6432 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6433 * util/grub-setup.c (setup): Allow for the embedding area being
6434 split into multiple blocklists. Tell dest_partmap->embed the
6435 maximum number of sectors we care about.
6436
64372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
6440 Specify blocklist_install and reserver_first_sector for all fs.
6441 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
6442 blocklists.
6443
984b973f
VS
64442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * util/grub-install.in: Clarify strings.
6447 Fix source dir check.
6448
f122e0d6
RL
64492012-02-27 Richard Laager <rlaager@wiktel.com>
6450
6451 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
6452 "zfs" and "fuse.zfs" as synonyms.
6453
071114bb
VS
64542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * configure.ac: Put platform and target_cpu substitutions back since
6457 they are used for directories.
6458
817e6abc
RL
64592012-02-27 Richard Laager <rlaager@wiktel.com>
64602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 * util/grub.d/10_linux.in: Add ZFS-related arguments.
6463 * util/grub.d/20_linux_xen.in: Likewise.
6464
897b7419
RL
64652012-02-27 Richard Laager <rlaager@wiktel.com>
6466
6467 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6468 with full paths.
6469
a414bd15
RL
64702012-02-27 Richard Laager <rlaager@wiktel.com>
6471
6472 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
6473 unescape.
6474
30ac48c4
VS
64752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 Don't use insecure popen in getroot.
6478
6479 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
6480 (exec_pipe): ... here.
6481 (find_root_devices_from_poolname): Use exec_pipe.
6482
53f13848
VS
64832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 Remove platform and target_cpu replacement.
6486
6487 * configure.ac: Remove platform and target_cpu substitutions.
6488 * tests/util/grub-shell.in: Use modinfo.
6489 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
6490 explicitly.
6491
90cb2803
VS
64922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 Autodetect platform in grub-install but allow override.
6495
6496 * util/grub-install.in: Autodetect platform. Support --target and
6497 --directory. Read platform from modinfo.sh.
6498
b9136427
VS
64992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 Support btrfs multi-volume probe.
6502
6503 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
6504 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
6505 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
6506 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
6507 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
6508 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
6509 grub_find_root_devices_from_btrfs if on btrfs.
6510
c36e5cd1
VS
65112012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 Remove any awareness of *.c util files about target.
6514
6515 * Makefile.util.def (grub-setup): Split to ...
6516 (grub-bios-setup): ... and this.
6517 (grub-sparc64-setup): ... and this.
6518 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
6519 * docs/man/grub-setup.h2m: Split into ...
6520 * docs/man/grub-sparc64-setup.h2m: ... this.
6521 * docs/man/grub-bios-setup.h2m: ... and this.
6522 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
6523 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
6524 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
6525 (grub_target_addr_t): Remove.
6526 (grub_target_size_t): Remove.
6527 (grub_target_ssize_t): Remove.
6528 * util/grub-install.in: Use new grub-*-setup.
6529 * util/grub-mkimagexx.c (Elf_Word): New define.
6530 (Elf_Half): Likewise.
6531 (Elf_Section): Likewise.
6532 (ELF_ST_TYPE): Likewise.
6533 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
6534 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
6535
584b2f8a
VS
65362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 Replace grub_target_addr with more appropriate types.
6539
6540 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
6541 grub_target_addr with grub_addr.
6542 * grub-core/commands/iorw.c (grub_cmd_read): Replace
6543 grub_target_addr with grub_port.
6544 (grub_cmd_write): Likewise.
6545 * grub-core/commands/memrw.c (grub_cmd_read): Replace
6546 grub_target_addr with grub_addr.
6547 (grub_cmd_write): Likewise.
6548 * grub-core/video/efi_uga.c (find_line_len): Likewise.
6549
5a0dc6fb
VS
65502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
6553 const qualifier for vendor_guid.
6554
786aff6e
VS
65552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
6558 const qualifier.
6559 (efiemu_memequal): Likewise.
6560 (find_variable): Likewise.
6561
49017b17
VS
65622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 Fix missing console prototype on qemu-mips.
6565
6566 * include/grub/mips/qemu_mips/console.h: New file.
6567
c5988629
MG
65682012-02-27 Matthew Garrett <mjg@redhat.com>
65692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
6572 * include/grub/efi/efi.h: Likewise.
6573 * include/grub/efi/api.h: Add guid for EFI-specified variables.
6574 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
6575 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
6576 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
6577 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
6578 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
6579
e33f8d69
MG
65802012-02-27 Matthew Garrett <mjg@redhat.com>
6581
6582 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
6583
fb312cd9
VS
65842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
6587 error.
6588
7134247c
VS
65892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * configure.ac: Remove inappropriate use of program_transform_name
6592 on grubdir and bootdir but allow explicit specification of those
6593 variables.
6594
6a313124
VS
65952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 * util/grub-mknetdir.in (grub_prefix): Removed.
6598 (subdir): Use @bootdirname@ and @grubdirname@.
6599
2311c5ca
VS
66002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
6603
7d5d60f7
VS
66042012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * po/POTFILES.in: Regenerated.
6607
8151bc82
VS
66082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 Remove improper use of program_transform_name on pkglibrootdir.
6611
6612 * configure.ac (pkglibrootdir): Removed.
6613 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
6614 * util/grub-mkimage.c: Likewise.
6615
b4a6a533
VS
66162012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
6619 warning.
6620
668f304f
VS
66212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * util/grub-install.in: Use file identifier if no UUID is available
6624 or user explicitly prompted for it.
6625
665f2341
NP
66262012-02-27 Navdeep Parhar <nparhar@gmail.com>
6627
6628 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
6629 (freebsd_get_zfs): New function.
6630 (grub_freebsd_boot): Pass zfs UUID.
6631 (grub_cmd_freebsd): Set zfs UUID.
6632
8151bc82 66332012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
6634
6635 * conf/Makefile.common (platformdir): Base on pkglibdir and not
6636 pkglibrootdir.
6637
e4c498a1
MG
66382012-02-27 Mike Gilbert <floppym@gentoo.org>
6639
6640 Add configure flag to control libzfs integration.
6641
6642 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
6643
1e9a9a3f
VS
66442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
6647 device.
6648 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
6649 small devices.
6650
036985b8
VS
66512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 Remove grub_{modname}_init and grub_{modname}_fini. They should never
6654 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
6655 be used on non-modules.
6656
6657 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
6658 Rename to grub_boot_init.
6659 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
6660 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
6661 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
6662 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
6663 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
6664 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
6665 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
6666 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
6667 includes.
6668 (grub_machine_init): Remove empty inits.
6669 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
6670 includes.
6671 (grub_machine_init): Remove empty inits.
6672 * grub-core/term/arc/console.c: Remove explicit proto.
6673 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
6674 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
6675 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6676 grub_at_keyboard_fini.
6677 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
6678 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
6679 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6680 grub_gfxterm_fini.
6681 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
6682 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
6683 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6684 grub_vgatext_fini.
6685 * grub-core/term/ieee1275/console.c: Remove explicit proto.
6686 * grub-core/term/serial.c (GRUB_MOD_INIT)
6687 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
6688 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6689 grub_serial_fini.
6690 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
6691 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
6692 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6693 grub_terminfo_fini.
6694 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
6695 (GRUB_MOD_FINI): Likewise.
6696 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
6697 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
6698 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6699 grub_video_radeon_fuloong2e_fini.
6700 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
6701 [LOONGSON]: Rename to grub_video_sis315pro_init.
6702 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6703 grub_video_sis315pro_fini.
6704 * grub-core/video/sm712.c (GRUB_MOD_INIT)
6705 [LOONGSON]: Rename to grub_video_sm712_init.
6706 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6707 grub_video_sm712_fini.
6708 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
6709 (grub_at_keyboard_fini): Likewise.
6710 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
6711 Don't declare grub_{modname}_init.
6712 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
6713 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
6714 New proto.
6715 (grub_keylayouts_fini) [!EMU]: Likewise.
6716 * include/grub/serial.h (grub_serial_init) [!EMU]:
6717 New proto.
6718 (grub_serial_fini) [!EMU]: Likewise.
6719 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
6720 New proto.
6721 (grub_terminfo_fini) [!EMU]: Likewise.
6722 * include/grub/video.h (grub_font_init) [!EMU]:
6723 New proto.
6724 (grub_font_fini) [!EMU]: Likewise.
6725 (grub_gfxterm_init) [!EMU]: Likewise.
6726 (grub_gfxterm_fini) [!EMU]: Likewise.
6727 (grub_video_sm712_init) [!EMU]: Likewise.
6728 (grub_video_sm712_fini) [!EMU]: Likewise.
6729 (grub_video_sis315pro_init) [!EMU]: Likewise.
6730 (grub_video_sis315pro_fini) [!EMU]: Likewise.
6731 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
6732 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
6733
d5534665
VS
67342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6735
6736 Make nand a prefix for nand devices.
6737
6738 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
6739
10133b5f
VS
67402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
6743 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
6744
8e307a62
VS
67452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * include/grub/env.h (grub_env_find): Remove prototype.
6748 * grub-core/kern/env.c (grub_env_find): Make static.
6749 (grub_env_set): Remove useless set.
6750
a4c65f34
VS
67512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/kern/i386/realmode.S: Remove useless align.
6754
d87893d5
VS
67552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * include/grub/dl.h (grub_dl_load_file): Don't export.
6758
50159add
VS
67592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
6762 grub_dprintf.
6763
b2582b84
VS
67642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
6767 grub_errors.
6768 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
6769 not reloading whole superblock but only the part which is really needed.
6770 Remove useless grub_errors.
6771 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
6772 grub_errors.
6773
e2a83395
VS
67742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 Don't export grub_get_rtc.
6777
6778 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
6779 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
6780
e7d2a906
VS
67812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6782
6783 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
6784
6cf1363b
VS
67852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 6788 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 6789
eece3349
VS
67902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 Remove prio_list.
6793
6794 * include/grub/list.h (grub_prio_list): Removed.
6795 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
6796 GRUB_COMMAND_PRIO_MASK.
6797 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
6798 GRUB_COMMAND_FLAG_ACTIVE.
6799 (grub_prio_list_insert): Removed.
6800 (grub_prio_list_remove): Likewise.
6801 (GRUB_AS_PRIO_LIST): Likewise.
6802 (GRUB_AS_PRIO_LIST_P): Likewise.
6803 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
6804 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
6805 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
6806 * grub-core/kern/command.c (grub_register_command_prio): Inline
6807 the prio_list code.
6808 (grub_unregister_command): Likewise.
6809
94f064b4
VS
68102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 Fix interrupt mixup from previous commit.
6813
6814 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
6815 (grub_realidt): New var.
6816 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
6817 Load idt.
6818 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
6819 New declaration.
6820 (grub_relocator16_boot): Set grub_relocator16_idt.
6821 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
6822 (LOCAL(realidt)): ... this.
6823 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
6824 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
6825 (grub_realidt): New variable.
6826
27317084
VS
68272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
6830 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
6831 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
6832 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
6833 Gettextize.
6834 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
6835 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
6836 * po/POTFILES.in: Regenerate.
6837
47b40053
VS
68382012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
6841 errors.
6842
2b343101
VS
68432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
6846 \0.
6847 (add_length): Likewise.
6848
ff27c3dd
LK
68492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
68502012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
6851
6852 GDB serial and backtrace support.
6853
6854 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
6855 (prot_to_real): Likewise.
6856 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
6857 * grub-core/Makefile.core.def (backtrace): New module.
6858 (gdb): Likewise.
6859 * grub-core/gdb/cstub.c: New file.
6860 * grub-core/gdb/gdb.c: Likewise.
6861 * grub-core/gdb/i386/idt.c: Likewise.
6862 * grub-core/gdb/i386/machdep.S: Likewise.
6863 * grub-core/gdb/i386/signal.c: Likewise.
6864 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 6865 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
6866 * include/grub/backtrace.h: Likewise.
6867 * include/grub/gdb.h: Likewise.
6868 * include/grub/i386/gdb.h: Likewise.
6869
68702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
6871
6872 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
6873 New function.
6874 (add_length): Likewise.
6875 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
6876 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
6877 proto.
6878 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
6879 __argp_get_display_len.
6880
ff27c3dd 68812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
6882
6883 $"..." support in scripts.
6884
6885 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
6886 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
6887 * grub-core/script/yylex.l: Likewise.
6888 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
6889 value.
6890
ff27c3dd 68912012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
6892
6893 * gentpl.py: Remove obsolete pkglib_DATA handling.
6894
ff27c3dd 68952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
6896
6897 Don't transform PACKAGE_TARNAME following a discussion on autoconf
6898 mailing list.
6899
6900 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
6901 * util/grub-kbdcomp.in: Likewise.
6902 * util/grub-mkconfig.in: Likewise.
6903 * util/grub-mkconfig_lib.in: Likewise.
6904 * util/grub-mknetdir.in: Likewise.
6905 * util/grub-mkrescue.in: Likewise.
6906 * util/grub-mkstandalone.in: Likewise.
6907 * util/grub-reboot.in: Likewise.
6908 * util/grub-set-default.in: Likewise.
6909 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6910
ff27c3dd 69112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
6912
6913 Remove GRUB_PREFIX.
6914
6915 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
6916 * util/grub.d/00_header.in: Compute prefix in the only place it's still
6917 used for backward compatibility.
6918
ff27c3dd 69192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
6920
6921 Add new all_video module.
6922
6923 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
6924 * grub-core/Makefile.core.def (all_video): New module.
6925 * grub-core/genmoddep.awk: Generate dependency of all_video from
6926 video.lst.
6927 * grub-core/lib/fake_module.c: New file.
6928 * grub-core/normal/main.c (features): Add feature_all_video_module.
6929 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
6930 don't do explicit search again.
47454da5 6931 insmod all_video in load_video if available.
22c7ce85 6932
ff27c3dd 69332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
6934
6935 Another round of string clarification and adding TRANSLATORS comments.
6936
ff27c3dd 69372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
6938
6939 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
6940
ff27c3dd 69412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
6942
6943 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
6944 to grub_ssize_t.
6945 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
6946 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
6947
ff27c3dd 69482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
6949
6950 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
6951 trailing newline implicitly. All users updated.
6952
ff27c3dd 69532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
6954
6955 Implement serial on IEEE1275 and EFI.
6956
6957 * docs/grub.texi (Platform-specific limitations): Fix the columen video
6958 on emu. Mention arc and emu as the only platforms without serial
6959 support.
6960 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
6961 ieee1275 platforms.
6962 * grub-core/term/efi/serial.c: New file.
6963 * grub-core/term/ieee1275/serial.c: Likewise.
6964 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6965 specification if no ns8250 driver is available.
6966 (grub_cmd_serial): Likewise.
6967 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6968 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6969 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6970 (grub_efi_parity_type_t): New type.
6971 (grub_efi_stop_bits_t): Likewise.
6972 (grub_efi_serial_io_interface): New struct.
6973 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6974 available for all interfaces.
6975 Add EFI and IEEE1275 fields.
6976 (grub_ofserial_init): New proto.
6977 (grub_efiserial_init): Likeiwse.
6978 * util/grub.d/00_header.in: Don't check for the presence of serial
6979 module.
6980
ff27c3dd 69812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6982
6983 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6984 name as if it was an alias.
6985
114076ef
VS
69862012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * grub-core/commands/lsacpi.c (options): Fix typo.
6989
6a656b0e
VS
69902012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 Convert grub-emu to argp.
6993
6994 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6995 emu.
6996 * util/argp_common.c: Rename to ...
6997 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6998 Add missing includes.
6999 * grub-core/kern/emu/main.c: Convert to argp.
7000 * po/POTFILES.in: Regenerate.
7001 * util/grub-install.in (usage): Make first letter lowcase in messages
7002 for uniformity.
7003 * util/grub-setup.c (options): Likewise.
7004
1e3f8ae8
VS
70052012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
7008 Put back accidently commented-out code.
7009
ed167a80
VS
70102012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
7013 loop check using Brent algorithm.
7014 (grub_hfsplus_btree_search): Likewise.
7015
6753c0ec
VS
70162012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * util/grub-install.in: Fix usage of wrong device for PreP install.
7019
4e27343f
VS
70202012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 * conf/Makefile.common (CFLAGS_GNULIB): Add
7023 -Wno-unsafe-loop-optimizations.
7024 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
7025 on tools.
7026 * grub-core/commands/legacycfg.c: Add pragma to skip
7027 -Wunsafe-loop-optimizations.
7028 (check_password_md5_real): Fix loop counter type.
7029 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
7030 reading.
7031 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
7032 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
7033 loop condition.
7034 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
7035 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
7036 * grub-core/net/net.c (grub_net_route_address): Add safety loop
7037 condition.
7038 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
7039 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
7040 avoid possible infinite loops.
7041 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
7042 and -Wunsafe-loop-optimizations.
7043 * grub-core/script/yylex.l: Likewise.
7044 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
7045 (print_glyphs): Avoid infinite loops.
7046 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
7047
697f18b0
GS
70482012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
7049
7050 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
7051 to avoid infinite loop.
7052 (disp_acpi_rsdt_table): Likewise.
7053
274416e8
VS
70542012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/font/font.c (grub_font_load): Add support for default
7057 path for fonts ($prefix/fonts).
7058 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
7059 for checking if string is a path.
7060 * grub-core/normal/main.c (features): Add feature_default_font_path.
7061 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
7062 * util/grub.d/00_header.in: Use default directory if possible.
7063 * util/grub-install.in: Install unicode.pf2.
7064
b3e08622
VS
70652012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
7068 * po/Rules-swiss: New file.
7069 * po/swiss.sed: Likewise.
7070
fe42ce09
VS
70712012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 * grub-core/fs/btrfs.c (find_device): Fix typos.
7074 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
7075 * util/grub-mkrelpath.c (argp_parser): Likewise.
7076 Reported by: Yuri Chornoivan.
7077
72f1d065
DO
70782012-02-23 Dalet Omega <daletomega@gmail.com>
7079
7080 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
7081 for usual informative messages.
7082
c5884973
DO
70832012-02-23 Dalet Omega <daletomega@gmail.com>
7084
7085 Starfield theme.
7086
7087 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
7088 * conf/Makefile.common: Define starfielddir.
7089 * configure.ac: Configure starfield.
7090 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
7091 * themes/starfield/README: Likewise.
7092 * themes/starfield/blob_w.png: Likewise.
7093 * themes/starfield/boot_menu_c.png: Likewise.
7094 * themes/starfield/boot_menu_e.png: Likewise.
7095 * themes/starfield/boot_menu_n.png: Likewise.
7096 * themes/starfield/boot_menu_ne.png: Likewise.
7097 * themes/starfield/boot_menu_nw.png: Likewise.
7098 * themes/starfield/boot_menu_s.png: Likewise.
7099 * themes/starfield/boot_menu_se.png: Likewise.
7100 * themes/starfield/boot_menu_sw.png: Likewise.
7101 * themes/starfield/boot_menu_w.png: Likewise.
7102 * themes/starfield/slider_c.png: Likewise.
7103 * themes/starfield/slider_n.png: Likewise.
7104 * themes/starfield/slider_s.png: Likewise.
7105 * themes/starfield/src/blob_nw.xcf: Likewise.
7106 * themes/starfield/src/bootmenu/: Likewise.
7107 * themes/starfield/src/bootmenu/center.xcf: Likewise.
7108 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
7109 * themes/starfield/src/bootmenu/side.xcf: Likewise.
7110 * themes/starfield/src/slider_c.xcf: Likewise.
7111 * themes/starfield/src/slider_n.xcf: Likewise.
7112 * themes/starfield/src/slider_s.xcf: Likewise.
7113 * themes/starfield/src/terminalbox/: Likewise.
7114 * themes/starfield/src/terminalbox/center.xcf: Likewise.
7115 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
7116 * themes/starfield/src/terminalbox/side.xcf: Likewise.
7117 * themes/starfield/starfield.png: Likewise.
7118 * themes/starfield/terminal_box_c.png: Likewise.
7119 * themes/starfield/terminal_box_e.png: Likewise.
7120 * themes/starfield/terminal_box_n.png: Likewise.
7121 * themes/starfield/terminal_box_ne.png: Likewise.
7122 * themes/starfield/terminal_box_nw.png: Likewise.
7123 * themes/starfield/terminal_box_s.png: Likewise.
7124 * themes/starfield/terminal_box_se.png: Likewise.
7125 * themes/starfield/terminal_box_sw.png: Likewise.
7126 * themes/starfield/terminal_box_w.png: Likewise.
7127 * themes/starfield/theme.txt: Likewise.
7128
17d73325
VS
71292012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * util/grub.d/00_header.in: Add missing export theme.
7132
dbebaf92
VS
71332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
7136 already included.
7137 Reported by: Eren D.
7138
3d68bffb
VS
71392012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 * conf/Makefile.common (grubdatadir): Removed.
7142 (Makefile.am): Move eveything grubdata to pkgdata.
7143
4b59234d
VS
71442012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/commands/acpihalt.c (get_sleep_type):
7147 Remove unused variable.
7148
463dcadc
VS
71492012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
7152 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
7153 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7154 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7155 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7156 i18n with gettext no-op.
7157 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7158 GRUB_ACPI_OPCODE_STRING_CONST.
7159 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7160 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7161
e5b90c82
VS
71622012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * po/POTFILES.in: Regenerate.
7165
2a704ca9
VS
71662012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7169 -Wno-error=missing-noreturn.
7170
84f9d341
VS
71712012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7174 condition to avoid possibly infinite loops.
7175 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7176 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7177
d46683f9
VS
71782012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7181 condition to avoid possibly infinite loops.
7182
c44866b2
VS
71832012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7186 on show_error.
7187
96790539
VS
71882012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7189
7190 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7191
1ba7e295
VS
71922012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7195
21ffe8f1
VS
71962012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 * util/bin2h.c (usage): Add missing attribute noreturn.
7199
0ccb6b3c
VS
72002012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7203 if the size isn't divisible by 512.
7204
b00d7fb6
VS
72052012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 Make list_push and list_remove functions rather than inline functions
7208 to decrease size and avoid aliasing violations.
7209
7210 * include/grub/list.h (grub_list_push): Move to ...
7211 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7212 * include/grub/list.h (grub_list_remove): Move to ...
7213 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7214
9d369087
VS
72152012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7216
7217 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7218 and -Wunused-result.
7219
af0250d9
VS
72202012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7223 Reported by: Seth Goldberg
7224
aad32b14
VS
72252012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7228
ac96441c
ST
72292012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7230
7231 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7232 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7233 command line.
7234 * docs/grub.texi (Simple configuration): Document
7235 GRUB_CMDLINE_GNUMACH.
7236
72372012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
7238
7239 * conf/Makefile.common (platform_SCRIPTS): New variable.
7240 (platform_PROGRAMS): Likewise.
7241 * gentpl.py: Mark *,module and *.image for install.
7242 * grub-core/gdb_grub.in: Add a notice of expected environment.
7243 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7244 (gmodule.pl): Likewise.
7245
ac96441c 72462012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
7247
7248 Replace grub_checkkey with grub_getkey_noblock.
7249
7250 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7251 (grub_getkey_noblock): ... this. All users updated.
7252
ac96441c 72532012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
7254
7255 * grub-core/kern/emu/console.c: Move to ...
7256 * grub-core/term/emu/console.c: ...here.
7257 (grub_ncurses_getkey): Fix return value if no key is detected.
7258
e51b5666
VS
72592012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7262 (grub_unit_test_fini): Likewise.
7263 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7264
72652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * include/grub/test.h (GRUB_UNIT_TEST)
7268
d9a62292
VS
72692012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7270
7271 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7272 Better error handling.
7273 (grub_script_return): Likewise.
7274 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7275
77c9182f
VS
72762012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7279 rimplicit redifinition.
7280
edb13cf9
VS
72812012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7284 GRUB.
7285
a9e9dc7c
VS
72862012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7289 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7290 prompt here.
7291
b4ba8e02
VS
72922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7295 as GRUB_ERR_BUG. Don't malloc if no device is available.
7296
dded5540
VS
72972012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7300 Mark calling with invalid term as GRUB_ERR_BUG.
7301
0cf69874
VS
73022012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7305 packets rather than raising an error.
7306
59bfe502
VS
73072012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7310 in if.
7311
db5fc596
VS
73122012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7315 diagnostic to dprintf.
7316 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7317
e4b7f404
VS
73182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7321 device name.
7322
e7b02f9e
VS
73232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7326 (grub_ntfs_iterate_dir): Likewise.
7327
0331e102
VS
73282012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 Efiemu stylistic fixes and gettext.
7331
7332 * grub-core/efiemu/i386/loadcore32.c
7333 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7334 * grub-core/efiemu/i386/loadcore64.c
7335 (grub_arch_efiemu_relocate_symbols64): Likewise.
7336 * grub-core/efiemu/i386/pc/cfgtables.c
7337 (grub_machine_efiemu_init_tables): Likewise.
7338 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7339 (grub_efiemu_loadcore_initXX): Add a filename argument.
7340 All users updated.
7341 Improved error message.
7342 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7343 Add a filename argument.
7344 All users updated.
7345 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7346 Reclassify double relocation as GRUB_ERR_BUG.
7347
306fc074
VS
73482012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7351 handling.
7352
794d8ef2
VS
73532012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7356 on partition.
7357
73582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
7359
7360 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7361
794d8ef2 73622012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
7363
7364 Improve string. Gettextize.
7365
78dde88e
VS
73662012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7369 utils.
7370 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7371
4786a90f
VS
73722012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7375 [GRUB_UTIL]: New function.
7376 (insert_array) [GRUB_UTIL]: Store partmaps.
7377 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7378 partmaps.
7379 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7380 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7381 (probe_abstraction): Print diskfilter and not raid.
7382 Reported by: Lennart Sorensen
7383
0b6225bd
VS
73842012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7385
7386 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7387 * util/grub-mkimagexx.c (MASK3): New define.
7388 (add_value_to_slot_20b): Use MASK3.
7389 (add_value_to_slot_21): Likewise.
7390 (relocate_addresses): Fix format specification.
7391 (load_image): Explicitly init symtab_section.
7392
b055f8f6
VS
73932012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7394
7395 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7396 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7397
b77c2fb7
VS
73982012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7401 on powerpc.
7402 Reported by: Lennart Sorensen
7403
e3ec28ab
VS
74042012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * gentpl.py: Add missing license header.
7407 * docs/grub.texi: Update copyright year.
7408
c8d9ead6
GS
74092012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7410
7411 Source grub-mkconfig_lib from the build directory at build time.
7412 Suggested by: Vladimir Serbinenko.
7413
7414 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7415 * util/grub-install.in: Define pkgdatadir if not already set, and source
7416 grub-mkconfig_lib from there.
7417 * util/grub-kbdcomp.in: Likewise.
7418 * util/grub-mkconfig.in: Likewise.
7419 * util/grub-mknetdir.in: Likewise.
7420 * util/grub-mkrescue.in: Likewise.
7421 * util/grub-mkstandalone.in: Likewise.
7422 * util/grub-reboot.in: Likewise.
7423 * util/grub-set-default.in: Likewise.
7424 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7425
ebcecdf1
VS
74262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 Increase warning level.
7429
7430 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7431 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7432 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7433 (TARGET_CFLAGS): Likewise.
7434 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7435 * grub-core/Makefile.core.def (decompressor_xz): Add
7436 -Wno-unreachable-code.
7437 (normal): Add -Wno-redundant-decls.
7438 (xzio): Add -Wno-unreachable-code.
7439 (lzopio): Add -Wno-redundant-decls -Wno-error.
7440 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
7441 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
7442 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
7443 * grub-core/kern/dl.c: Add exception to -Wcast-align.
7444 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
7445 * grub-core/kern/i386/coreboot/init.c: Add exception to
7446 -Wsuggest-attribute=noreturn.
7447 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
7448 * grub-core/kern/ia64/dl_helper.c: Likewise.
7449 * grub-core/kern/mips/dl.c: Likewise.
7450 * grub-core/kern/sparc64/dl.c: Likewise.
7451 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
7452 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
7453 (memcmp): Likewise.
7454 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
7455 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
7456 * grub-core/loader/mips/linux.c: Likewise.
7457 * grub-core/loader/multiboot_elfxx.c: Likewise.
7458 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
7459 * grub-core/video/sm712.c: Add exception to -Wcast-align.
7460 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
7461 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
7462 fixme.
7463 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7464 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
7465 Fix prototype.
7466
37bb97fe
VS
74672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
7470 address.
7471
29a3550b
VS
74722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7475 Avoid improper use of strings.
7476 (grub_cmd_legacy_initrdnounzip): Likewise.
7477
dfdffd0d
VS
74782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * include/grub/emu/misc.h (grub_util_warn): Add missing format
7481 attribute.
7482 (grub_util_info): Likewise.
7483 (grub_util_error): Likewise.
7484
102fae4a
VS
74852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
7488 * util/grub-fstest.c (fstest): Likewise.
7489
7e94d044
VS
74902012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
7493 (grub_md_sha512_real): Likewise.
7494 (grub_util_get_geli_uuid): Likewise.
7495 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
7496 (grub_util_biosdisk_open): Fix format specification.
7497 Respect format security.
7498 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
7499 (xrealloc): Likewise.
7500 (xasprintf): Likewise.
7501
5ebd9769
VS
75022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 * util/import_gcry.py: Include grub/crypto.h in init.c.
7505
495fc8c1
VS
75062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
7509 (generate_image): Make prefix a const char *.
7510 Fix format specifications. Respect format security.
7511 Avoid void * arithmetics.
7512 Avoid shadowing.
7513 (argp_parser): Remove unused variable. Respect format security.
7514 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
7515 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
7516 (count_funcs): Remove unused variable.
7517 (relocate_addresses): Fix format specification.
7518 Disable x86-64 with elf32. Remove unused variables.
7519 (add_fixup_entry): Avoid shadowing.
7520 (make_reloc_section): Fix format specification.
7521 Use assert.
7522 (locate_sections): Fix format specifications.
7523 (load_image): Avoid shadowing.
7524
043c2ea3
VS
75252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
7528 Fix format specifications. Respect format security.
7529 Don't translate already translated grub_errmsg.
7530 (argp_parser): Remove unused variable
7531
3ec65a81
VS
75322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
7535
a4d9fe4a
VS
75362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
7539 (main): Likewise. Use xmalloc. Respect format security.
7540
15b81d49
VS
75412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
7544 a const char *.
7545 (argp_parser): Remove unused variable.
7546
31731fc0
VS
75472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
7550 (add_pixel): Make static.
7551 (add_font): Likewise.
7552 (write_string_section): Make name and str a const char *.
7553 (write_be16_section): Make name a const char *.
7554 (print_glyphs): Make static.
7555 (write_font_ascii_bitmap): Likewise.
7556 (write_font_width_spec): Likewise.
7557 (write_font_pf2): Likewise.
7558 (argp_parser): Remove unused variable.
7559 Respect format security.
7560 (main): Avoid shadowing. Respect format security.
7561
0809527b
VS
75622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * util/grub-editenv.c (argp_parser): Make static.
7565 (create_envblk_file): Use xmalloc.
7566 (open_envblk_file): Likewise.
7567 Resepect format security.
7568 (set_variables): Respect format security.
7569
45b0c8b7
VS
75702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * util/getroot.c (grub_find_device): Respect format security.
7573 (get_mdadm_uuid): Remove unused variable.
7574 (grub_util_pull_device): Dont call gettext on already translated
7575 grub_errmsg.
7576 (find_system_device): Remove unused variable.
7577 (grub_util_get_grub_dev): Likewise.
7578 (grub_make_system_path_relative_to_its_root): Respect format security.
7579
1b024b4e
VS
75802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * util/grub-fstest.c (execute_command): Make first argument
7583 a const char *.
7584 (read_file): Avoid shadowing.
7585 Reuse underlying error message if device open fails.
7586 (cmd_cmp): Respect format security.
7587 (root): Make const char *.
7588 (fstest): Remove args argument and use global copy.
7589 Respect format security.
7590 (argp_parser): Make static.
7591 (main): Make default_root const char *.
7592
5d1d4e28
VS
75932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * util/grub-mount.c (root): Make const char *.
7596 (execute_command): Make first argument a const char *.
7597 (fuse_init): Respect format security.
7598 (argp_parser): Make static. Remove unused variable.
7599 (main): Make default_root a const char *.
7600 Respect format security.
7601
36eb7379
VS
76022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * util/grub-probe.c (probe): Don't call gettext on already translated
7605 grub_errmsg.
7606 Remove unused variables.
7607 (argp_parser): Remove unused variable.
7608
76fb2ea9
VS
76092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * util/grub-script-check.c (argp_parser): Remove unused variable.
7612 (main): Rename read to curread to avoid shadowing.
7613
56c98584
VS
76142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * util/misc.c (grub_util_write_image_at): Fix format specification.
7617 (grub_util_write_image): Likewise.
7618 (grub_script_execute_argument_to_string): Removed (unused).
7619 (grub_script_execute_menuentry): Likewise.
7620 (grub_putchar): Likewise.
7621
164ebb48
VS
76222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
7625 (FUNCTION) [GRUB_UTIL]: Likewise.
7626 (VARIABLE) [GRUB_UTIL]: Likewise.
7627
44318d61
VS
76282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
7631 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
7632
31a26002
VS
76332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
7636 buffer.
7637
76382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
7641 (LzmaEnc_SaveState): Removed (unused).
7642 (LzmaEnc_RestoreState): Likewise.
7643 (LzmaEnc_InitPriceTables): Made static.
7644 (LzmaEnc_Construct): Likewise.
7645 (LzmaEnc_FreeLits): Likewise.
7646 (LzmaEnc_Destruct): Likewise.
7647 (LzmaEnc_Init): Likewise.
7648 (LzmaEnc_InitPrices): Likewise.
7649 (LzmaEnc_Finish): Likewise.
7650 (LzmaEnc_PrepareForLzma2): Removed (unused).
7651 (LzmaEnc_MemPrepare): Likewise.
7652 (LzmaEnc_GetNumAvailableBytes): Likewise.
7653 (LzmaEnc_GetCurBuf): Likewise.
7654 (LzmaEnc_CodeOneMemBlock): Likewise.
7655
6fa67967
VS
76562012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
7659 (grub_util_ldm_embed): Likewise.
7660
9a7428e6
VS
76612012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * util/grub-editenv.c (print_var): Rename name to varname to
7664 avoid shadowing.
7665 (main): Rename index to curindex to avoid shadowing.
31a26002 7666 Make filename a const char *.
9a7428e6 7667
4f96abd1
VS
76682012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7671 to arg_getline to avoid shadowing.
7672
44d10dad
VS
76732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
7676 disk_ to avoid shadowing.
7677
340ba63e
VS
76782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
7681 curindex to avoid shadowing.
7682 Make static.
7683 (MatchFinder_GetNumAvailableBytes): Make static.
7684
22965bce
VS
76852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
7688 avoid shadowing.
7689
7b5784d4
VS
76902012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
7693 argument from encrypt to do_encrypt to avoid shadowing.
7694
6f48ca01
VS
76952012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
7698 incorrect nesting of #if's.
7699
a4ea2dff
VS
77002012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
7703 checks which are always false on some platforms.
7704 (grub_cmd_lsacpi): Likewise.
7705 * grub-core/kern/misc.c (grub_strtoul): Likewise.
7706 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
7707 Likewise.
7708
def9fc1b
VS
77092012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
7712 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
7713
a67b2a04
VS
77142012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
7717 re_dfa_t to avoid breaking alignment invariants.
7718 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
7719 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
7720
44c6828d
VS
77212012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
7724 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
7725
bebe0dd0
VS
77262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
7729 Fix declaration.
7730
a9cdb3cf
VS
77312012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
7734 conserve alignment invariants.
7735 (grub_ehci_ehcc_read16): Likewise.
7736 (grub_ehci_oper_read32): Likewise.
7737 (grub_ehci_oper_write32): Likewise.
7738 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7739 Conserve alignment invariants.
7740
ccc3b1b8
VS
77412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
7744 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
7745 declarations.
7746
987fbd95
VS
77472012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
7750 Remove unused variable.
7751
0df363f3
VS
77522012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
7755 Remove set in if.
7756
b2c0c4a6
VS
77572012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * include/grub/net.h: Remove double declarations.
7760
690c531f
VS
77612012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 Remove "payload" command in ia64 Linux loader since I couldn't
7764 find any evidence of it being used for anything.
7765 Replace "relocate" command with an environment variable
7766
7767 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
7768 fields.
7769 (ia64_boot_payload): Removed.
7770 (last_payload): Likewise.
7771 (RELOCATE_OFF): Likewise.
7772 (RELOCATE_ON): Likewise.
7773 (RELOCATE_FORCE): Likewise.
7774 (relocate): Likewise.
7775 (free_pages): Don't free payloads.
7776 (grub_load_elf64): Use common error messages.
7777 Use "linux_relocate" variable.
7778 Increase the space after boot_params.
7779 (grub_cmd_payload): Removed.
7780 (grub_cmd_relocate): Likewise.
7781 (grub_cmd_fpswa): Improve messages.
7782 (cmd_payload): Removed.
7783 (cmd_relocate): Likewise.
7784 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
7785 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
7786
01783768
VS
77872012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 Convert UHCI to DMA framework.
7790
7791 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
7792 (grub_uhci_pci_iter): Fill new members
7793 (grub_alloc_td): Use P2V and V2P functions.
7794 (grub_free_queue): Likewise.
7795 (grub_alloc_qh): Likewise.
7796 (grub_uhci_setup_transfer): Likewise.
7797 (grub_uhci_check_transfer): Likewise.
7798
43206939
VS
77992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7800
7801 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
7802 Remove assignment in if while on it.
7803
571e140e
VS
78042012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7805
7806 * util/grub-mkstandalone.in: Fix modules directory.
7807
a9d96eeb
VS
78082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
7811 on i386-pc target.
7812 (argp_parser): Accept "auto" as compression specification.
7813
e4e37e8d
VS
78142012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 Fix `help' with unloaded modules.
7817
7818 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
7819 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
7820 (grub_dyncmd_dispatcher): Small stylistic fix.
7821 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
7822 explicit help is requested.
7823
e1ea3ade
VS
78242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
7827 Explicitly init restart while on it.
7828
27556881
VS
78292012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
7832 uninited variable.
7833
d65f6b36
VS
78342012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * util/grub-mknetdir.in: Use . rather than source for POSIX
7837 compatibility.
7838
0a1e473c
VS
78392012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
7842
ce6647c8
VS
78432012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7844
7845 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
7846 variable.
7847
66747894
VS
78482012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
7851 without quotes.
7852
71645f6e
VS
78532012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
7856
0e1c1f61
VS
78572012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
7860 iteration of partitions.
7861
9c4b5c13
VS
78622012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 Improve gettext support. Stylistic fixes and error handling fixes while
7865 on it.
7866
215c90cb
VS
78672012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
7870 part. Instead setup the correct stack in RM.
7871 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
7872 for stack.
7873 * include/grub/i386/relocator_private.h: New file.
7874
b5c1f9bf
VS
78752012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
7878 argument.
7879 * util/grub-fstest.c (options): Add missing DEVICE part.
7880
b525fd83
VS
78812012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 Clarify and unify messages.
7884
7885 * grub-core/commands/hashsum.c (options): Unify messages.
7886 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
7887 literal-only message as translatable.
7888 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
7889 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
7890 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
7891 commands.
7892 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
7893 key, not the key used to unlock. Clarify what it's used for.
7894 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
7895 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
7896 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
7897 * util/grub-editenv.c (options): Unify "verbose" message.
7898 * util/grub-fstest.c (read_file): Unify error message.
7899 (fstest): Add quotes around commands.
7900 (options): Unify "verbose" message.
7901 * util/grub-install.in: Add quotes around variable name.
7902 * util/grub-kbdcomp.in: Unify error message.
7903 * util/grub-mkfont.c (main): Likewise.
7904 * util/grub-mkrescue.in: Likewise.
7905 * util/grub-mklayout.c (options): Unify "verbose" message.
7906 * util/grub-mkstandalone.in: Unify help and verbose messages.
7907 * util/grub-mount.c (options): Unify "verbose" message.
7908 * util/grub-probe.c (options): Likewise.
7909 * util/grub-script-check.c (options): Likewise.
7910 * util/grub-setup.c (setup): Unify no-terminator message.
7911 (options): Use DEVICE and not DEV.
7912 Unify "verbose" message.
7913 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
7914
0ae70393
VS
79152012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7916
7917 Improve and unify messages.
7918
7919 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
7920 name. All users updated.
7921 Print filename in error.
7922 (read_device_map): Print filename in error.
7923 * util/getroot.c (grub_guess_root_devices): Print filename in error.
7924 (grub_util_get_os_disk): Likewise.
7925 (grub_util_biosdisk_get_grub_dev): Likewise.
7926 (grub_util_check_block_device): Likewise.
7927 (grub_util_check_char_device): Likewise.
7928 (grub_make_system_path_relative_to_its_root): Likewise.
7929 * util/grub-editenv.c (create_envblk_file): Likewise.
7930 (open_envblk_file): Likewise.
7931 (write_envblk): Likewise.
7932 * util/grub-fstest.c (cmd_cp): Likewise.
7933 (cmd_cat): Likewise.
7934 (cmd_cmp): Likewise.
7935 * util/grub-menulst2cfg.c (main): Likewise.
7936 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
7937 (write_font_width_spec): Likewise.
7938 (write_font_pf2): Likewise.
7939 * util/grub-mkimage.c (generate_image): New argument outname.
7940 All users updated.
7941 Remove unreacheable message.
7942 (options): Unify messages.
7943 (help_filter): Likewise.
7944 * util/grub-mklayout.c (usage): Removed (unused).
7945 (main): Print filename in error.
7946 * util/grub-mkrescue.in: Fix wrong quoting.
7947 * util/grub-setup.c (setup): Print filename in error.
7948 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
7949 (check_sas): Likewise.
7950 * util/misc.c (grub_util_get_fp_size): Removed.
7951 (grub_util_get_image_size): Print filename in error.
7952 (grub_util_read_at): Removed.
7953 (grub_util_read_image): Print filename in error.
7954 (grub_util_load_image): Likewise.
7955 (grub_util_write_image_at): New argument filename. All users updated.
7956 Print filename in error.
7957 (grub_util_write_image): New argument filename. All users updated.
7958 Print filename in error.
7959 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
7960 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
7961
0a96117d
VS
79622012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7963
7964 * grub-core/Makefile.core.def (pxechain): New module.
7965 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7966 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7967 function.
7968 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7969 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7970
aca002f7
VS
79712012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7974 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7975 * include/grub/err.h (grub_error_saved): New struct.
7976 (grub_errmsg): Make array size explicit.
7977 * include/grub/misc.h (grub_error_save): New function.
7978 (grub_error_load): Likewise.
7979 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7980 (grub_error_push): Update `errno' member name.
7981 (grub_error_pop): Likewise
7982 * grub-core/net/tftp.c (tftp_data): New member save_err.
7983 (tftp_receive): Save error.
7984 (tftp_open): Restore error.
7985
a51dab13
VS
79862012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7989 to real mode down to execute A20-related code in protected mode as
7990 intended.
7991
eb6e6649
GS
79922012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7993
7994 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7995 NULL when the argument `level' has an unexpected value.
7996
92cd0f6e
VS
79972012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 Move platform-dependent files from $prefix to $prefix/$platform.
8000
8001 * config.h.in (GRUB_TARGET_CPU): New definition.
8002 (GRUB_PLATFORM): Likewise.
8003 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
8004 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
8005 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8006 * grub-core/kern/dl.c (grub_dl_load): Likewise.
8007 * grub-core/normal/autofs.c (read_fs_list): Likewise.
8008 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
8009 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
8010 * grub-core/normal/term.c (read_terminal_list): Likewise.
8011 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
8012 $prefix/locale.
8013 (grub_gettext_init_ext): Likewise.
8014 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
8015 grub_platform.
8016 * util/grub-install.in: Update directories.
8017 * util/grub-mknetdir.in: Likewise.
8018 * util/grub-mkrescue.in: Likewise.
8019
db606889
VS
80202012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
8023 grub_error framework. All users updated.
8024
c39992a4
VS
80252012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
8028 lists (by always binsearching), improve caching (cache strings
8029 used for binsearch, not only results), improve
8030 maintainability (by using more structured binary search) and correct
8031 error handling.
8032
1e5ec32f
VS
80332012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 * grub-core/script/execute.c (grub_script_return): Fix warning.
8036
ac576cde
VS
80372012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 * grub-core/script/execute.c (grub_script_return): Fix potential
8040 NULL-dereference.
8041 Reported by: Jim Meyering.
8042
498453f6
VS
80432012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8044
8045 * po/POTFILES.in: Regenerate.
8046 * util/grub-install.in: Gettextize the strings missed in first pass.
8047
8be63f2e
VS
80482012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8049
8050 * Makefile.util.def (grub-mkdevicemap): Removed.
8051 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
8052 * include/grub/util/deviceiter.h: Removed.
8053 * util/deviceiter.c: Likewise.
8054 * util/getroot.c (grub_util_get_os_disk): New function.
8055 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
8056 replacement for EFI.
8057 * util/grub-mkdevicemap.c: Removed.
8058 * util/grub-probe.c (probe): Handle PRINT_DISK.
8059 (argp_parser): Handle -t disk.
8060
8e1e4e39
VS
80612012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * util/grub-mkfont.c: Migrate to argp.
8064 * util/grub-mklayout.c: Likewise.
8065 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8066 * util/grub-mkrelpath.c: Likewise.
8067 * util/grub-probe.c: Likewise.
8068 * util/grub-script-check.c: Likewise.
8069
4459819a
VS
80702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * util/grub-reboot.in: Add missing datarootdir.
8073 Add missing newline.
8074 * util/grub-set-default.in: Add missing datarootdir.
8075 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
8076 * util/grub-mkrescue.in: Likewise.
8077
f65741c7
VS
80782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
8081
c1a33466
VS
80822012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 * util/grub-kbdcomp.in: Add decent help and gettextize.
8085 * docs/man/grub-kbdcomp.h2m: New file.
8086
c76899a0
VS
80872012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 Migrate grub-mkimage.c to argp.
8090
8091 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
8092 (grub-setup): Likewise.
8093 * util/grub-setup.c (print_version): Move to ...
8094 * util/argp_common.c (print_version): ... here.
8095 * util/grub-setup.c (argp_program_version_hook): Move to ...
8096 * util/argp_common.c (argp_program_version_hook): ... here.
8097 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
8098 safety.
8099 * util/grub-mkimage.c (main): Migrate to argp.
8100
57db0757
VS
81012012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * util/grub-mkrescue.in: Use same message as
8104 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
8105 for better translations.
8106
18534ad9
VS
81072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
8110 options with generic grub-mkrescue.in with the goal of future
8111 merge.
8112
c84ba308
VS
81132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/kern/mm.c: Add missing include of i18n.h
8116 * grub-core/lib/relocator.c: Likewise.
8117
347998c2
VS
81182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
8121 error.
8122 (allocate_pages): Check return value.
8123 Replace fatal with error.
8124 (grub_linux_boot): Replace printf with dprintf.
8125 Check find_mmap_size return value.
8126 Replace fatal with error.
8127 Don't call grub_machine_fini.
8128 (grub_load_elf64): Replace printf with dprintf.
8129 (grub_cmd_linux): Likewise.
8130 (grub_cmd_initrd): Likewise.
8131 (grub_cmd_payload): Likewise.
8132
c779226e
VS
81332012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
8136 message.
8137 * grub-core/video/radeon_fuloong2e.c
8138 (grub_video_radeon_fuloong2e_setup): Likewise.
8139 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
8140 * grub-core/video/video.c (grub_video_set_mode): Don't override
8141 standard out of memory message.
8142
dc87d45a
GS
81432012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8144
8145 NetBSD disk wedge support.
8146
8147 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
8148 [__NetBSD__]: Handle NetBSD disk wedges.
8149 * util/getroot.c (convert_system_partition_to_system_disk)
8150 [__NetBSD__]: Likewise.
8151
055f856f
MW
81522012-02-03 Mark Wooding <mdw@distorted.org.uk>
8153
8154 * util/grub-mkconfig.in: Use umask rather than chmod to create
8155 grub.cfg.new to avoid insecure grub.cfg.
8156
4a9f8346
VS
81572012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8158
8159 * grub-core/commands/ls.c: Gettextize.
8160 * grub-core/commands/setpci.c: Likewise.
8161 * grub-core/commands/videotest.c: Likewise.
8162 * grub-core/disk/geli.c: Likewise.
8163 * grub-core/kern/mm.c: Likewise.
8164 * grub-core/lib/relocator.c: Likewise.
8165 * grub-core/loader/efi/appleloader.c: Likewise.
8166 * grub-core/loader/i386/xnu.c: Likewise.
8167 * grub-core/loader/ia64/efi/linux.c: Likewise.
8168 * grub-core/loader/xnu.c: Likewise.
8169 * grub-core/net/dns.c: Likewise.
8170 * grub-core/net/net.c: Likewise.
8171 * grub-core/script/lexer.c: Likewise.
8172 * grub-core/script/parser.y: Likewise.
8173 * grub-core/script/yylex.l: Likewise.
8174 * util/getroot.c: Likewise.
8175 * util/grub-setup.c: Likewise.
8176
a646a366
VS
81772012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8180 number.
8181
54e2be26
VS
81822012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8185
f7c71e68
VS
81862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8189 macro.
8190 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8191 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8192
a32d5c71
VS
81932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8196 * util/grub-install.in: Gettextize.
8197 * util/grub-mkconfig.in: Likewise.
8198 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8199 if not available.
8200 (grub_warn): Gettextize.
8201 * util/grub-mknetdir.in: Gettextize.
8202 * util/grub-mkrescue.in: Likewise.
8203 * util/grub-mkstandalone.in: Likewise.
8204 * util/grub-reboot.in: Likewise.
8205 * util/grub-set-default.in: Likewise.
8206 * util/grub.d/00_header.in: Likewise.
8207 * util/grub.d/10_hurd.in: Likewise.
8208 * util/grub.d/10_kfreebsd.in: Likewise.
8209 * util/grub.d/10_linux.in: Likewise.
8210 * util/grub.d/10_netbsd.in: Likewise.
8211 * util/grub.d/10_windows.in: Likewise.
8212 * util/grub.d/20_linux_xen.in: Likewise.
8213 * util/grub.d/30_os-prober.in: Likewise.
8214 * po/POTFILES-shell.in: Regenerate.
8215
69edd81a
RL
82162012-02-03 Richard Laager <rlaager@wiktel.com>
8217
8218 * util/grub-mkimage.c (main): Fix format-security warning.
8219 * util/grub-mkrelpath.c (main): Likewise.
8220 * util/grub-probe.c (main): Likewise.
8221
65f08dbf
RL
82222012-02-03 Richard Laager <rlaager@wiktel.com>
8223
8224 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8225 failure.
8226 Put back lost PRINT_DRIVE.
8227
e9084abe
RL
82282012-02-03 Richard Laager <rlaager@wiktel.com>
8229
8230 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8231 (grub_guess_root_devices): Replace strlen with sizeof.
8232 Avoid crash.
8233 (find_root_devices_from_poolname): Remove unused variable.
8234 Handle raidzN.
8235
cf5f7ee7
VS
82362012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 Support install on multi-device filesystems.
8239
8240 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8241 (grub_guess_root_devices): ...this. Return char **. All users updated.
8242 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8243 Removed.
8244 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8245 (find_root_devices_from_poolname): ... here.
8246 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8247 Support zfs-fuse.
8248 (grub_guess_root_device): Rename to ...
8249 (grub_guess_root_devices): ... this. Return char **. All users updated.
8250 * util/grub-install.in: Handle multi-device filesystems.
8251 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8252 argument. All users updated.
8253 Handle multi-device filesystems.
8254 Use 'delim' as separator.
8255 Remove device check to allow filesystems on file.
8256 (main): Support -0 argument. Handle multi-device.
8257 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8258 Fix a cross-device check while on it.
8259 (arguments): Remove root_dev.
8260 (argp_parser): Remove -r.
8261 (main): Remove root_dev.
8262
2f53a9ed
VS
82632012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8266
17e1d934
VS
82672012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8268
8269 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8270 symbol.
8271 Reported by: NODA, Kai <nodakai>.
8272
d3e3fab5
VS
82732012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 Fix ehci on amd64.
8276
8277 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8278 pointers.
8279 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8280 (grub_ehci_setup_qh): Likewise.
8281 (grub_ehci_find_qh): Likewise.
8282 (grub_ehci_transaction): Likewise.
8283 (grub_ehci_setup_transfer): Likewise.
8284 (grub_ehci_check_transfer): Likewise.
8285 (grub_ehci_portstatus): Likewise.
8286 (grub_ehci_detect_dev): Likewise.
8287 (grub_ehci_transfer_controller_data): New field td_last_phys.
8288 (grub_ehci_setup_transfer): Fill td_last_phys.
8289 (grub_ehci_check_transfer): Use td_last_phys.
8290
3008675b
SG
82912012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8292
8293 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8294 if no submenu is present.
8295
fc9b5652
AN
82962012-02-01 Aleš Nesrsta <starous@volny.cz>
8297
8298 CBI support.
8299
8300 * include/grub/usb.h (grub_usbms_protocol_t): New values
8301 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8302 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8303 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8304 (grub_usbms_dev): Add subclass, protocol and intrpt.
8305 Remove in_maxsz and out_maxsz.
8306 (grub_usbms_reset): Rename to ...
8307 (grub_usbms_bo_reset): .. this.
8308 (grub_usbms_cbi_cmd): New function.
8309 (grub_usbms_cbi_reset): Likewise.
8310 (grub_usbms_reset): Likewise.
8311 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8312 (grub_usbms_transfer): Rename to ...
8313 (grub_usbms_transfer_bo): ... this.
8314 (grub_usbms_transfer_cbi): Likewise.
8315 (grub_usbms_transfer): Likewise.
8316
a2b81d53
AN
83172012-02-01 Aleš Nesrsta <starous@volny.cz>
83182012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8321 the support for the CS5536 modification thereos and few bugfixes.
8322
8323 * grub-core/Makefile.core.def (ehci): New module.
8324 * grub-core/bus/usb/ehci.c: New file.
8325 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8326 port and hubaddr. All users updated.
8327 Save port and hubaddr into dev structure.
8328 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8329 define.
8330 * include/grub/pci.h (grub_dma_phys2virt): New function.
8331 (grub_dma_virt2phys): Likewise.
8332 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8333
b1d51f02
VS
83342012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8337 check as some mkfs implementations omit it.
8338
fc694106
VS
83392012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8342
6c0920e3
VS
83432012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8346 Add new member volname2.
8347 (grub_jfs_label): Use volname2 if available.
8348
d1a46f9a
VS
83492012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8352 over last_mounted as seen in image generated by mkfs.nilfs2.
8353 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8354
dec8ed14
VS
83552012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8358 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8359 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8360
7397c69b
VS
83612012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8364 over the sector.
8365
b3fe42ad
VS
83662012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8367
8368 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8369 subvolume name (by removing a bogus and useless check).
8370
10476bb0
VS
83712012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8374 sizeof while on it.
8375
9c08ad87
VS
83762012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8377
8378 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8379 (grub_scsi_read_capacity10): ... this.
8380 (grub_scsi_read_capacity16): New function.
8381 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8382 0xffffffff.
8383 Fix off-by-one error.
8384 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8385 64-bit unsigned.
8386 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8387 (grub_scsi_read_capacity10): ... this.
8388 (grub_scsi_read_capacity_data): Rename to ...
8389 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8390 (grub_scsi_read_capacity16): New struct.
8391 (grub_scsi_read_capacity16_data): Likewise.
8392 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8393 grub_scsi_cmd_read_capacity10.
8394 New command grub_scsi_cmd_read_capacity16.
8395
bc8d0f45
VS
83962012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8397
8398 SCSI >2TiB support.
8399
8400 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8401 (grub_scsi_write16): Likewise.
8402 (grub_scsi_read): Use read16 when necessary.
8403 (grub_scsi_write): Likewise.
8404 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8405 (grub_scsi_write16): Likewise.
8406 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8407
cc774926
VS
84082012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8409
8410 SCSI write support (for usbms mainly).
8411
8412 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8413 a const pointer.
8414 (grub_scsi_write): Implement.
8415 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8416
67639fd7
VS
84172012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8420 variable.
8421
9079d3ed
VS
84222012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8425
c6a6f204
VS
84262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * po/POTFILES.in: Regenerate.
8429
ecbf8cd1
VS
84302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8433 with grub_printf to avoid unnecessary fatal failure.
8434
0b3b3b38
VS
84352012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8438 (INT_MAX): Likewise.
8439 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
8440 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
8441 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
8442 (strcpy): Likewise.
8443 (strstr): Likewise.
8444 (strchr): Likewise.
8445 (strncpy): Likewise.
8446 (strcat): Likewise.
8447 (strncat): Likewise.
8448 (strcoll): Likewise.
8449 * include/grub/types.h (GRUB_SHRT_MAX): New define.
8450 (GRUB_INT_MAX): Likewise.
8451
db7337a3
VS
84522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8453
8454 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
8455 unexpected error.
8456 (optimize_utf8): Likewise.
8457 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
8458
f37c87e1
VS
84592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * grub-core/boot/i386/pc/lnxboot.S: Use
8462 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
8463 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
8464 location.
8465 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
8466 definition.
8467 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
8468
63fe43f3
VS
84692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8470
8471 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
8472 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
8473 now to avoid double free.
8474 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
8475 hostdisk.
8476 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
8477 * util/grub-probe.c (escape_of_path): Always return a new copy.
8478 (print_full_name): Escape path.
8479 (probe): Don't call grub_util_devname_to_ofpath on NULL.
8480 Fix hints on abstractions.
8481
ebe2c961
VS
84822012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
8485 Don't add "root" line if no compatibility hont is available.
8486 Suggested by: Seth Goldberg.
8487
2b5336a2
VS
84882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
8491 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
8492 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
8493 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
8494
74310bd8
VS
84952012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8496
8497 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
8498
c30582ba
VS
84992012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * util/grub-pe2elf.c (ehdr): Make static.
8502 (shdr): Likewise.
8503 (num_sections): Likewise.
8504 (offset): Likewise.
8505
5f47782c
VS
85062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 Eliminate ofpath limits and possible overflows.
8509
8510 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
8511 (OF_PATH_MAX): Removed.
8512 (MAX_DISK_CAT): New const.
8513 (find_obppath): Use allocated rather than preallocated buffer.
8514 Return result. Argument of_path removed. All users updated.
8515 Add missing fdstat.
8516 (xrealpath): New function.
8517 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
8518 Allocate rather than use preallocated buffer. All users updated.
8519 (__of_path_common): Use allocated rather than preallocatecd buffer.
8520 Return result. Argument of_path removed. All users updated.
8521 (vendor_is_ATA): Read only needed part form the file.
8522 (check_sas): Allocate depending on contents rather than fixed.
8523 (main) [STANDALONE]: Handle NULL result.
8524
f990cbf9
VS
85252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8526
8527 * grub-core/normal/completion.c (iterate_dev): Close the disk.
8528
9c6e84b8
VS
85292012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 Cryptodisk write support.
8532
8533 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
8534 (grub_cryptodisk_decrypt): Moved logic to ...
8535 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
8536 (grub_cryptodisk_write): Implement.
8537 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
8538 (grub_util_fd_write): ... this. Make global.
8539 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
8540
87cf9744
VS
85412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * include/grub/list.h (grub_list_remove): Don't crash if element is
8544 removed twice.
8545
ca8c0baf
VS
85462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 Rename ofconsole to console.
8549
8550 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
8551 as sysnonym to console.
8552 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
8553 * grub-core/term/ieee1275/console.c: ... this. All users updated.
8554 Rename grub_ofconsole_ to grub_console_. All users updated
8555 (grub_console_term_output): Rename "ofconsole" to "console".
8556 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
8557 as "console".
8558
64c8b8f6
VS
85592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
8562 handling.
8563 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
8564 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
8565 GRUB_DISK_DEVICE_FILE_ID.
8566
f6c434d5
VS
85672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
8570 and improve performance.
8571
5858b42d
VS
85722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
8575 missing ieee1275/ prefix on whole disk.
8576
4ed3c26b
VS
85772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8578
8579 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
8580 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
8581
df71143e
VS
85822012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
8585
076e7c0f
VS
85862012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Merge common RAID and LVM logic to an abstract diskfilter.
8589 Add LDM support using the same framework.
8590
8591 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
8592 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
8593 (libgrubmods): Remove grub-core/disk/raid.c and
8594 grub-core/partmap/gpt.c.
8595 * grub-core/Makefile.core.def (ldm): New module.
8596 (raid): Renamed to diskfilter. All users updated.
8597 * grub-core/disk/raid.c: Moved to ...
8598 * grub-core/disk/diskfilter.c: ... here.
8599 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
8600 (lv_num): New var.
8601 (find_array): Renamed to ...
8602 (find_lv): ... this. Support multi-LV. Skip nameless LVs
8603 (grub_is_array_readable): Renamed to ...
8604 (grub_is_lv_readable): ... this. Support multinode hierarchy.
8605 (insert_array): New argument id.
8606 (is_node_readable): New function.
8607 (scan_device): Rename to ...
8608 (scan_disk): .. this. Restrict to one disk.
8609 (scan_devices): New function.
8610 (grub_diskfilter_iterate): Support multi-LV.
8611 Skip invisible and nameless LVs.
8612 (grub_diskfilter_memberlist): Support multi-LV.
8613 (grub_diskfilter_read_node): New function.
8614 (grub_raid_read): Most of logic moved to ...
8615 (read_segment): ... here
8616 (read_lv): New function.
8617 (grub_diskfilter_get_vg_by_uuid): New function.
8618 (grub_diskfilter_make_raid): Likewise.
8619 * grub-core/disk/ldm.c: New file.
8620 * grub-core/disk/lvm.c (vg_list): Removed.
8621 (lv_count): Likewise.
8622 (scan_depth): Likewise.
8623 (is_lv_readable): Likewise.
8624 (grub_lvm_getvalue): Advance pointer past the number.
8625 (find_lv): Removed.
8626 (do_lvm_scan): Refactored into ...
8627 (grub_lvm_detect): ... this. Support raid.
8628 (grub_lvm_iterate): Removed.
8629 (grub_lvm_memberlist): Likewise.
8630 (grub_lvm_open): Likewise.
8631 (grub_lvm_close): Likewise.
8632 (read_lv): Likewise.
8633 (read_node): Likewise.
8634 (is_node_readable): Likewise.
8635 (is_lv_readable): Likewise.
8636 (grub_lvm_read): Likewise.
8637 (grub_lvm_write): Likewise.
8638 (grub_lvm_dev): Use diskfilter
8639 (GRUB_MOD_INIT): Likewise.
8640 (GRUB_MOD_FINI): Likewise.
8641 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
8642 new interface.
8643 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
8644 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8645 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
8646 grub_diskfilter_read_node.
8647 Fix a bug with xor.
8648 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
8649 grub_diskfilter_read_node.
8650 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
8651 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
8652 (grub_disk_dev_iterate): Move from here...
8653 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
8654 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8655 Make global.
8656 (grub_hostdisk_find_partition_start): Likewise.
8657 (grub_hostdisk_os_dev_to_grub_drive): New function.
8658 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
8659 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
8660 * util/getroot.c (make_device_name): ... here.
8661 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8662 Move to ...
8663 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
8664 * grub-core/kern/emu/hostdisk.c
8665 (convert_system_partition_to_system_disk): Move to ...
8666 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
8667 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
8668 * util/getroot.c (device_is_wholedisk): ... here.
8669 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
8670 * util/getroot.c (find_system_device): ... here.
8671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
8672 Move to ...
8673 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
8674 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8675 Move to ...
8676 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
8677 Handle LDM.
8678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
8679 Move to ...
8680 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
8681 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
8682 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
8683 DISKFILTER.
8684 * include/grub/raid.h: Renamed to ...
8685 * include/grub/diskfilter.h: ... this.
8686 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
8687 (GRUB_RAID_LAYOUT_*): Make into array.
8688 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
8689 (grub_diskfilter_vg): New struct.
8690 (grub_diskfilter_pv_id): Likewise.
8691 (grub_raid_member): Removed.
8692 (grub_raid_array): Likewise.
8693 (grub_diskfilter_pv): New struct.
8694 (grub_diskfilter_lv): Likewise.
8695 (grub_diskfilter_segment): Likewise.
8696 (grub_diskfilter_node): Likewise.
8697 (grub_diskfilter_get_vg_by_uuid): New proto.
8698 (grub_raid_register): Inline.
8699 (grub_diskfilter_unregister): Likewise.
8700 (grub_diskfilter_make_raid): New proto.
8701 (grub_diskfilter_vg_register): Likewise.
8702 (grub_diskfilter_read_node): Likewise.
8703 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
8704 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
8705 (grub_util_is_ldm): Likewise.
8706 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
8707 (grub_hostdisk_find_partition_start): Likewise.
8708 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
8709 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
8710 New definition.
8711 (grub_gpt_partition_map_iterate): New proto.
8712 * include/grub/lvm.h (grub_lvm_vg): Removed.
8713 (grub_lvm_pv): Likewise.
8714 (grub_lvm_lv): Likewise.
8715 (grub_lvm_segment): Likewise.
8716 (grub_lvm_node): Likewise.
8717 * util/getroot.c [...]
8718 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
8719 (probe_abstraction): Likewise.
8720 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
8721 (main): Remove dead logic.
8722
8a7f9b9c
VS
87232012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 Simplify root device discover and don't fail when trying to open
8726 incorrect devices.
8727
8728 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
8729 function.
8730 (get_diskname_from_path): Likewise.
8731 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
8732 of iterating.
8733
30545b85
VS
87342012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
8737
28ea58cf
VS
87382012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8739
8740 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
8741 pastthe end.
8742
692dabca
VS
87432012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * util/grub-install.in: Add missing \.
8746 Reported by: gentoofan
8747
f6e4ea70
VS
87482012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
8751 (direct_read): Use correct compressed size.
8752 (grub_squash_read_data): Likewise.
8753
87542012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
8755
8756 * docs/grub.texi (Platform limitations): New section.
8757 (Platform-specific operations): Likewise.
8758 * docs/grub-dev.texi (Porting): Likewise.
8759
76261110
VS
87602012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 IEEE1275 disk write support.
8763
8764 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
8765 const void *.
8766 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
8767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
8768 and seek loginc to ...
8769 (grub_ofdisk_prepare): ... here.
8770 (grub_ofdisk_write): Implement.
8771
fc36d603
VS
87722012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 ARC disk write support.
8775
8776 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
8777 (reopen): New argument writable. All users updated.
8778 Handle required access mode.
8779 (grub_arcdisk_write): Implement.
8780 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
8781 (grub_arc_firmware_vector): Make buffer to write a const buffer.
8782
e06c2e7a
VS
87832012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
8786 (read_sblock): Don't attempt to read superblocks outside the disk size.
8787
ff447958
VS
87882012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
8791 first superblock to find the second one when possible.
8792
9e88df39
VS
87932012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * util/grub-install.in: Fix an ARC bug.
8796 Print a warning if no platform-specific setup is available.
8797
bb26e4ff
VS
87982012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 Use static allocation rather than scratch pointer in reed_solomon.
8801 It decreases its size significantly and avoids a variable in .text.
8802
8803 * grub-core/lib/reed_solomon.c (scratch): Removed.
8804 (chosenstat): New const or static array.
8805 (sigma): Likewise.
8806 (errpot): Likewise.
8807 (errpos): Likewise.
8808 (sy): Likewise.
8809 (mstat): Likewise.
8810 (errvals): Likewise.
8811 (eqstat): Likewise.
8812 (pol_evaluate): Replace x with log_x argument. All users updated.
8813 (syndroms): Removed.
8814 (gauss_solve): Use statically allocated arrays.
8815 (rs_recover): Likewise.
8816 Calculate syndroms directly.
8817 (decode_block): Use statically allocated arrays.
8818 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
8819 (main) [TEST]: Allow -DTEST -DSTANDALONE.
8820
2e13ede5
VS
88212012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 Eliminate fixed limit on reed solomon decoder length.
8824
8825 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
8826 rather than hardcoding the address.
8827 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
8828 no_reed_solomon_length.
8829 Move gate_a20 to no-reed-solomon part.
8830 Don't force a particular size of no reed-solomon part.
8831 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8832 Removed.
8833 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
8834 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
8835
f8a9ab12
VS
88362012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 * grub-core/commands/wildcard.c (match_files): Handle filenames
8839 without explicit device.
8840 (wildcard_expand): Don't add explicit device if not already present.
8841 * tests/grub_script_echo1.in: Add a new expansion test.
8842
87edb894
VS
88432012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 Replace single-linked with double-linked lists. It results in more
8846 compact and more efficient code.
8847
8848 * grub-core/kern/list.c (grub_list_push): Moved from here ...
8849 * include/grub/list.h (grub_list_push): ... to here. Set prev.
8850 (grub_list_remove): Moved from here ...
8851 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
8852 (grub_prio_list_insert): Set prev.
8853 * include/grub/list.h (grub_list): Add prev. All users updated.
8854
48b391e9
VS
88552012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 Handle newer autotools. Add some missing quotes while on it.
8858
8859 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
8860 (pkglib_DATA): Move grub-mkconfig_lib from here ...
8861 (pkgdata_DATA): ... here.
8862 * Makefile.util.def (update-grub_lib): Removed.
8863 * conf/Makefile.common (pkglib_DATA): Removed.
8864 (pkglib_SCRIPTS): Likewise.
8865 (pkgdata_DATA): New variable.
8866 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
8867 needed.
8868 Add missing quotes.
8869 Remove unused variable while on it.
8870 * tests/util/grub-shell.in: Likewise.
8871 * util/grub-install.in: Likewise.
8872 * util/grub-mkconfig.in: Likewise.
8873 * util/grub-mknetdir.in: Likewise.
8874 * util/grub-mkrescue.in: Likewise.
8875 * util/grub-mkstandalone.in: Likewise.
8876 * util/grub.d/00_header.in: Likewise.
8877 * util/grub.d/10_hurd.in: Likewise.
8878 * util/grub.d/10_illumos.in: Likewise.
8879 * util/grub.d/10_kfreebsd.in: Likewise.
8880 * util/grub.d/10_linux.in: Likewise.
8881 * util/grub.d/10_netbsd.in: Likewise.
8882 * util/grub.d/10_windows.in: Likewise.
8883 * util/grub.d/20_linux_xen.in: Likewise.
8884 * util/grub.d/30_os-prober.in: Likewise.
8885 * util/update-grub_lib.in: Removed.
8886
88872012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
8888
8889 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
8890 a workaround for intel problem.
8891
66832792
PRP
88922012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
88932012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
88942012-01-23 pfsmorigo
8895
8896 * util/grub-install.in: Support dd'in into PreP partition.
8897 * util/grub-probe.c (probe): Support discovering partition type.
8898 (main): Support -t msdos_parttype.
8899
7816a17e
VS
89002012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
8903 infinite recursion using counter.
8904 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
8905 init to skip it if the magic check fails.
8906 (dec_stream_header): Init s->crc32.
8907
8f9d3a8c
ZB
89082012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
89092012-01-22 Zachary Bedell <pendorbound@gmail.com>
89102012-01-22 Richard Laager <rlaager@wiktel.com>
8911
8912 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
8913 All users updated.
8914 (find_bestub): Determine correct size.
8915 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
8916 (scan_disk): Align the size down.
8917 Call check pool before find_bestub to have ashift.
8918
b055dd32
VS
89192012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
8922 dprintf in no-malloc zone.
8923
d779e9bd
ML
89242012-01-22 Mario Limonciello <mario_limonciello@dell.com>
8925
8926 * configure.ac: Add back in test for limits.h.
8927
b508af69
VS
89282012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 Support 4K-sector NTFS.
8931
8932 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
8933 (grub_ntfs_data): Remove blocksize.
8934 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
8935 Remove data argument. All users updated.
8936
dad9c8b5
VS
89372012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
8940 being in .text to avoid dprel references.
8941 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
8942 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
8943 (grub_arch_highmemsize): Likewise.
8944 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
8945 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
8946 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
8947
d43a777e
VS
89482012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
8951
8952 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
8953 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
8954
34e4208f
VS
89552012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
8958 GRUB_UTIL.
8959 (grub_set_datetime_cmos): Likewise.
8960
3ec0fc1c
VS
89612012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 Make XZ compression parameters dependent on target and not host CPU.
8964
8965 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8966 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8967
22489834
VS
89682012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8971 set but not used variable.
8972
8502fbca
VS
89732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8976 created when no uuid support is compiled into mkfs.reiser.
8977
76df2068
VS
89782012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8981 (utf8_to_macroman): Do the opposite.
8982 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8983
64e3f8f6
VS
89842012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8985
8986 * configure.ac: Refise build qemu_mips w/o unifont.
8987
9c271078
VS
89882012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 Eliminate grub_min/grub_max prone to overflow usage.
8991
8992 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8993 (poll_nonroot_hub): Likewise.
8994 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8995 (grub_affs_label): Likewise.
8996 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8997 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8998 (grub_hfs_label): Likewise.
8999 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
9000 * grub-core/fs/zfs/zfs.c (MIN): Remove.
9001 (zap_leaf_array_equal): Use grub_size. Remove MIN.
9002 (zap_leaf_array_get): Likewise.
9003 (dnode_get_path): Likewise.
9004 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
9005 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
9006 * grub-core/script/execute.c (grub_script_break): Likewise.
9007 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
9008 grub_max.
9009 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
9010 * include/grub/misc.h (grub_min): Removed.
9011 (grub_max): Likewise.
9012
80662dbc
VS
90132012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9014
9015 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
9016 direct.inode = 0.
9017
e6da1467
VS
90182012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
9021
b1ac4cb1
VS
90222012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
9025
b4bf7c3b
VS
90262012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
9029 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
9030
8ee1101a
VS
90312012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
9034 rather than a hack for grub_strncasemap.
9035
90362012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 Support multiple initrds
9039 Note: part of this was accidently committed in r3739.
9040
9041 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
9042 initrd.
9043 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
9044 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
9045 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9046 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9047 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9048
4d1e2bc9
VS
90492012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
9052 disks with unknown size.
9053 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
9054
75b49ebe
VS
90552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 Remove defines pertaining to arbitrary limits not affecting GRUB
9058 anymore.
9059
9060 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
9061 (EXT2_MAX_SYMLINKCNT): Likewise.
9062 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
9063 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
9064 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
9065 (GRUB_PXE_MAX_BLKSIZE): Likewise.
9066 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
9067 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
9068 (DN_MAX_OBJECT_SHIFT): Likewise.
9069 (DN_MAX_OFFSET_SHIFT): Likewise.
9070 (DN_MAX_OBJECT): Likewise.
9071 (DNODES_PER_LEVEL_SHIFT): Likewise.
9072 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
9073 (SPA_MAXBLOCKSIZE): Likewise.
9074 (SPA_BLOCKSIZES): Likewise.
9075 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
9076 (MZAP_MAX_BLKSZ): Likewise.
9077
74a1dce7
VS
90782012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
9081 handle NULL appropriately.
9082 Remove MIN.
9083
30c7d3ce
VS
90842012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9085
9086 Fix efiemu.
9087
9088 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
9089 cpu/types.h.
9090 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
9091 * configure.ac: Fix efiemu check.
9092
3c76ea0c
VS
90932012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
9096 grub_probe.
9097 Reported by: adamwill
9098
7e532280
SG
90992012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
9100
9101 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
9102
30492374
VS
91032012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 Fix handling of wide characters in gfxterm.
9106
9107 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
9108 (clear_char): Likewise.
9109 (paint_char): Skip code == NULL chars.
9110 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
9111
e70cb72f
VS
91122012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * grub-core/normal/charset.c: Move comment to right place.
9115
5c827cf9
VS
91162012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
9119 (GRUB_AFFS_FLAG_FFS): Put back where it was.
9120 (grub_affs_mount): Revert the correct version checking.
9121
53603892
VS
91222012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * docs/grub.texi (Unicode): Mention several other unsupported features.
9125
ff094b9b
VS
91262011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
9129 case statements as compile-time one.
9130 (direct_read): Prevent spurious warnings.
9131 (grub_squash_read_data): Likewise.
9132
c029da8a
VS
91332011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 Various squash4 fixes and LZO and XZ support.
9136
9137 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
9138 Add xzembed source files.
9139 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
9140 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
9141 (grub_squash_inode): New subtype long_dir.
9142 (SQUASH_TYPE_LONG_DIR): New inode type.
9143 (COMPRESSION): New enum.
9144 (XZBUFSIZ): New const.
9145 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
9146 (read_chunk): Use data->decompress.
9147 (zlib_decompress): New function.
9148 (lzo_decompress): Likewise.
9149 (xz_decompress): Likewise.
9150 (squash_mount): Set new data fields.
9151 (grub_squash_iterate_dir): Handle long dir.
9152 (squash_unmount): Free xzdec and xzbuf.
9153 (grub_squash_open): Check ino type.
9154 (direct_read): Stylistic fixes. Use data->decompress.
9155 (grub_squash_read_data): Likewise.
9156 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9157 (get_byte): Likewise.
9158 (grub_zlib_disk_read): Removed.
9159 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9160 (GRUB_POSIX_BOOL_DEFINED): New define.
9161 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9162 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9163 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9164 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9165
7a45a539
VS
91662011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 Don't override more informative errors.
9169
9170 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9171 * grub-core/font/font.c (open_section): Likewise.
9172 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9173 filename. Don't override errors.
9174 (grub_cmd_openbsd_ramdisk): Don't override errors.
9175 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9176 (grub_cmd_initrd): Likewise.
9177 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9178 (grub_cmd_initrd): Likewise.
9179 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9180 (grub_cmd_linux): Likewise.
9181 (grub_cmd_initrd): Likewise.
9182 (grub_cmd_payload): Likewise.
9183 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9184 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9185 (grub_cmd_module): Likewise.
9186 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9187 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9188 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9189 (grub_cmd_xnu_mkext): Likewise.
9190 (grub_cmd_xnu_ramdisk): Likewise.
9191 (grub_xnu_check_os_bundle_required): Likewise.
9192 (grub_xnu_load_kext_from_dir): Likewise.
9193 (grub_cmd_xnu_kextdir): Likewise.
9194 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9195
b2d004db
VS
91962011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9199 as 1024 in block size field. Found on one of my test images.
9200 Small optimisation while on it.
9201
ec000eac
VS
92022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9205 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9206 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9207 performance fixes while on it.
9208 (grub_sfs_close): Fix memory leak while on it.
9209 (grub_sfs_label): Convert Latin1 to UTF-8.
9210
f50e1165
VS
92112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9214 space to avoid overflows.
9215 (grub_hfs_label): Convert from macroman to UTF-8.
9216
2ae254de
VS
92172011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9218
9219 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9220
0108f491
VS
92212011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9222
9223 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9224
f45f5f89
VS
92252011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * unicode: Import Unicode 6.0 data.
9228
4d8c4765
VS
92292011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9230
63fa8ef9
VS
9231 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9232 outside of range.
9233
92342011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
9237
9238 * include/grub/charset.h (grub_getend): New function.
9239 * grub-core/script/function.c (grub_script_function_find): Use
9240 grub_getend.
9241 * grub-core/normal/completion.c (add_completion): Likewise.
9242
f3cb4a4e
VS
92432011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9246 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9247 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9248 (GRUB_UNICODE_TAG_END): Likewise.
9249 (GRUB_UNICODE_LAST_VALID): Likewise.
9250
5da8dbc5
VS
92512011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9254 len and make it smaller. All users updated.
9255 * util/import_unicode.py: Put length and not end character.
9256 Check length.
9257
8569f13d
VS
92582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 Make better Unicode-compliant and unify some UTF-8 code pathes.
9261
9262 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9263 valid character.
9264 (grub_is_valid_utf8): Use grub_utf8_process.
9265 Check resulting code range.
9266 (grub_utf8_to_ucs4): Use grub_utf8_process.
9267 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9268 valid character.
9269
cc4fddf5
VS
92702011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9273
bbc47747
VS
92742011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * docs/grub.texi (Filesystems): Mention AFS.
9277
f63d6bf4
VS
92782011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * docs/grub.texi (Filesystems): Clarify restrictions.
9281 (Regexp): Mention non-Unicode regexp behaviour.
9282 (Other): Mention non-Unicode matching behaviour.
9283
74bbf0db
VS
92842011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9285
f63d6bf4 9286 Make HFS implementation use MacRoman.
74bbf0db
VS
9287
9288 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9289 (macroman): New const array.
9290 (macroman_to_utf8): New function.
9291 (utf8_to_macroman): Likewise.
9292 (grub_hfs_find_dir): Use utf8_to_macroman.
9293 (grub_hfs_dir): Use macroman_to_utf8.
9294 Set case_insensitive.
9295
4ea0316e
VS
92962011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9299
d3c13cbd
VS
93002011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 Integrate hints into autogeneration scripts.
9303
9304 * docs/grub.texi (Filesystems): Add a hostdisk example.
9305 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9306 (grub-probe): Add ofpath.
9307 * gentpl.py: Remove group nosparc64.
9308 * grub-core/commands/search.c (cache_entry): New struct.
9309 (cache): New var.
9310 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9311 * grub-core/commands/search_wrap.c (options): Add platform-specific
9312 hint options.
9313 (grub_cmd_search): Handle platform-specific hints.
9314 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9315 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9316 (grub_util_biosdisk_data): Likewise.
9317 (grub_util_biosdisk_open): Set device_map.
9318 (read_device_map): Handle "" as indication of no map.
9319 Set device_map.
9320 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9321 (grub_util_biosdisk_get_compatibility_hint): New function.
9322 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9323 * include/grub/emu/hostdisk.h
9324 (grub_util_biosdisk_get_compatibility_hint): New proto.
9325 * util/grub-install.in: Don't call grub-mkdevicemap.
9326 Add platform-specific hint to load.cfg.
9327 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9328 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9329 hints. Set root preliminary to compatibility hint, not to OS name.
9330 * util/grub-probe.c (PRINT_*): Add hints.
9331 (print): Make static.
9332 (escape_of_path): New function.
9333 (guess_bios_drive): Likewise.
9334 (guess_efi_drive): Likewise.
9335 (guess_baremetal_drive): Likewise.
9336 (print_full_name): Likewise.
9337 (probe): Handle hints.
9338 (main): Likewise.
9339 * util/ieee1275/devicemap.c: Removed.
9340 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9341 updated.
9342 (grub_util_devname_to_ofpath): Return NULL on failure.
9343
9344 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9345 resource leak.
9346 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9347
9348 * po/POTFILES.in: Regenerated.
9349
9350 Allow purely long options
9351
9352 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9353 (SHORT_ARG_USAGE): Likewise.
9354 (grub_arg_show_help): Compare opt with help_options.
9355 (parse_option): Receive opt as argument. If makes big simplificatons.
9356 All users updated
9357
00ce2df3
VS
93582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9361 Restructure to avoid warning.
9362
e77e325f
VS
93632011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 * util/grub-install.in: Account for possible escaped comma in device
9366 name.
9367
165099ea
VS
93682011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9369
9370 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9371 channel.
9372
ce4a999d
VS
93732011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9376 allocation and zero-setting.
9377 (grub_ieee1275_get_devname): Check that alias is complete.
9378
379586ad
VS
93792011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9382 unaligned segments.
9383
9197b0ad
VS
93842011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9385
9386 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9387 prefix.
9388 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9389 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9390 Add ieee1275 prefix.
9391
edddb7f9
VS
93922011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * docs/grub.texi (Filesystems): Update.
9395
a1a8b1b9
VS
93962011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 Support odc, newc and bigendian cpio formats.
9399
9400 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9401 * grub-core/Makefile.core.def (newc): New module.
9402 (odc): Likewise.
9403 (cpio_be): Likewise.
9404 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9405 (MAGIC): Likewise.
9406 (MAGIC2): Likewise.
9407 (head) [MODE_ODC]: Adapt for the format.
9408 (head) [MODE_NEWC]: Likewise.
9409 (head) [!MODE_*]: Write fields of interest as arrays.
9410 (MAGIC_USTAR): Removed.
9411 (read_number) [MODE_NEWC]: Change to hex.
9412 (read_number) [!MODE_*]: Parse binary arrays.
9413 (grub_cpio_find_file): Factor out the code for better structure and
9414 always use read_number.
9415 (grub_cpio_mount): Use MAGIC and MAGIC2.
9416 (grub_cpio_dir): Exit on first hook non-0 return.
9417 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9418 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9419 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9420 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9421 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9422 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9423 * grub-core/fs/newc.c: New file.
9424 * grub-core/fs/odc.c: Likewise.
9425 * grub-core/fs/cpio_be.c: Likewise.
9426
58eba9ee
VS
94272011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 Fix handling of tar numbers occupying the whole field.
9430
9431 * grub-core/fs/cpio.c (read_number): New function.
9432 (grub_cpio_find_file): Use read_number instead of strtoull.
9433
a54a0e12
VS
94342011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9437 occupying the whole field size.
9438
a6120aca
LA
94392011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
9440
9441 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
9442
a93964ce
VS
94432011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
9446
3ea1ca46
SG
94472011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
9448
9449 * grub-core/Makefile.core.def (lzma_decompress): Add missing
9450 TARGET_IMG_LDFLAGS.
9451
b87f7ef2
VS
94522011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9453
9454 * util/getroot.c (ESCAPED_PATH_MAX): New define.
9455 (mountinfo_entry): Increase the field size to take escaping into
9456 account.
9457 (find_root_device_from_libzfs): Add one byte to size of strings for
9458 security.
9459
62092395
VS
94602011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
9463 an assert.
9464 * util/grub-setup.c (setup): Likewise.
9465
1f0b1a77
VS
94662011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
9469 _LzmaDecodeA.
9470
8eba9997
VS
94712011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * docs/grub.texi (Internationalisation): New section.
9474
dd0c91e9
VS
94752011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * docs/grub.texi (Loopback booting): New section.
9478
94792011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
9480
9481 * util/grub-mkstandalone.in: Fix minor typo errors.
9482
198e150a
VS
94832011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
9486
9487 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
9488 net/icmp.c and net/icmp6.c.
9489 (http): New module.
9490 (priority_queue): Likewise.
9491 * grub-core/io/bufio.c: Rewritten.
9492 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
9493 TYPE_WITH_CONFIGFILE_OPTION.
9494 (legacy_commands): Add bootp and dhcp.
9495 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
9496 (grub_legacy_parse): Likewise.
9497 * grub-core/lib/priority_queue.c: New file.
9498 * grub-core/net/arp.c: Add missing license header.
9499 (arp_find_entry): Removed.
9500 (arp_find_entry): Likewise.
9501 (grub_net_arp_resolve): Rename to ...
9502 (grub_net_arp_send_request): ...this.
9503 (grub_net_arp_receive): New card argument.
9504 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
9505 Set router and DNS server.
9506 (grub_net_configure_by_dhcp_ack): Handle routing information.
9507 (grub_cmd_bootp): Set checksum.
9508 (grub_bootp_init): Remove net_dhcp.
9509 * grub-core/net/dns.c: New file.
9510 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
9511 completion.
9512 (get_card_packet): Handle allocation.
9513 (grub_efinet_findcards): Set mtu.
9514 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
9515 (get_card_packet): Handle allocation.
9516 (emucard): Set mtu.
9517 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
9518 (GRUB_MOD_INIT): Set mtu.
9519 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
9520 mtu.
9521 (get_card_packet): Handle allocation.
9522 (grub_ofnet_findcards): Set mtu.
9523 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
9524 assert.
9525 (grub_net_recv_ethernet_packet): Handle IPv6.
9526 * grub-core/net/http.c: New file.
9527 * grub-core/net/icmp.c: Likewise.
9528 * grub-core/net/icmp6.c: Likewise.
9529 * grub-core/net/ip.c (ip6addr): New type.
9530 (ip6hdr): Likewise.
9531 (reassemble): Likewise.
9532 (cmp): New function.
9533 (reassembles): New variable.
9534 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
9535 (id): New variable.
9536 (send_fragmented): New function.
9537 (grub_net_send_ip_packet): Rename to ...
9538 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
9539 Handle non-UDP.
9540 (grub_net_recv_ip_packets): Rename to ...
9541 (handle_dgram): ... this. Check checksum. Handle non-UDP.
9542 (free_rsm): New function.
9543 (free_old_fragments): Likewise.
9544 (grub_net_recv_ip4_packets): New function.
9545 (grub_net_send_ip6_packet): Likewise.
9546 (grub_net_send_ip_packet): Likewise.
9547 (grub_net_recv_ip6_packets): Likewise.
9548 (grub_net_recv_ip_packets): Likewise.
9549 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
9550 (LINK_LAYER_CACHE_SIZE): New const.
9551 (link_layer_find_entry): New function.
9552 (grub_net_link_layer_add_address): Likewise.
9553 (grub_net_link_layer_resolve_check): Likewise.
9554 (grub_net_link_layer_resolve): Likewise.
9555 (grub_net_ipv6_get_slaac): Likewise.
9556 (grub_net_ipv6_get_link_local): Likewise.
9557 (grub_cmd_ipv6_autoconf): Likewise.
9558 (parse_ip): Handle one number representation.
9559 (parse_ip6): New functoion.
9560 (match_net): Handle IPv6.
9561 (grub_net_resolve_address): Handle IPv6 and DNS.
9562 (grub_net_resolve_net_address): Handle IPv6.
9563 (route_cmp): New function.
9564 (grub_net_route_address): Find best route.
9565 (grub_net_addr_to_str): Handle IPv6.
9566 (grub_net_addr_cmp): New function.
9567 (grub_net_add_addr): Register local route.
9568 (print_net_address): Handle net address.
9569 (grub_net_poll_cards): Retransmit TCP.
9570 (grub_net_poll_cards_idle_real): Likewise.
9571 (have_ahead): New function.
9572 (grub_net_seek_real): Use underlying seek.
9573 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
9574 * grub-core/net/tcp.c: New file.
9575 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
9576 (cmp): New function.
9577 (ack): Likewise.
9578 (tftp_receive): Handle unordered input.
9579 (destroy_pq): New function.
9580 (tftp_close): Close pq.
9581 * grub-core/net/udp.c: Put missing license header.
9582 (grub_net_udp_socket): New function.
9583 (udp_socket_register): Likewise.
9584 (grub_net_udp_close): Likewise.
9585 (grub_net_recv_udp_packet): Check checksum.
9586 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
9587 * include/grub/misc.h (grub_memchr): New function.
9588 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
9589 (grub_net_card_driver): Return buf in recv.
9590 (grub_net_slaac_mac_list): New struct.
9591 (grub_network_level_protocol_id): Add ipv6.
9592 (grub_net_network_level_addr): Likewise.
9593 (grub_net_network_level_net_addr): Likewise.
9594 (grub_net_app_protocol): Add seek.
9595 (grub_net_socket): Removed.
9596 (grub_net_sockets): Likewise.
9597 (grub_net_socket_register): Likewise.
9598 (grub_net_socket_unregister): Likewise.
9599 (FOR_NET_SOCKETS): Likewise.
9600 (grub_net_add_addr): Add const.
9601 (GRUB_NET_BOOTP_*): New enum.
9602 (grub_net_addr_cmp): New proto.
9603 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
9604 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
9605 (grub_net_hwaddr_to_str): NEw proto.
9606 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
9607 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
9608 (grub_dns_init): New proto.
9609 (grub_dns_fini): Likewise.
9610 (grub_net_tcp_retransmit): Likewise.
9611 (grub_net_link_layer_add_address): Likewise.
9612 (grub_net_link_layer_resolve_check): Likewise.
9613 (grub_net_link_layer_resolve): Likewise.
9614 (grub_net_dns_lookup): Likewise.
9615 (grub_net_add_dns_server): Likewise.
9616 (grub_net_remove_dns_server): Likewise.
9617 (GRUB_NET_TRIES): New const.
9618 (GRUB_NET_INTERVAL): Likewise.
9619 * include/grub/net/arp.h: Mostly rewritten.
9620 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
9621 * include/grub/net/ip.h: Mostly rewritten.
9622 * include/grub/net/netbuff.h: Indent.
9623 * include/grub/net/tcp.h: New file.
9624 * include/grub/net/udp.h: Mostly rewritten.
9625 * include/grub/priority_queue.h: New file.
9626 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
9627 (grub_swap_bytes64_compile_time): Likewise.
9628 (grub_cpu_to_be16_compile_time): Likewise.
9629 (grub_cpu_to_be32_compile_time): Likewise.
9630 (grub_cpu_to_be64_compile_time): Likewise.
9631 (grub_be_to_cpu64_compile_time): Likewise.
9632
215c1800
VS
96332011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
9636 UINT_TO_PTR with cast.
9637
c17e546c
VS
96382011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
9641 don't use them.
9642
ff6b18b6
VS
96432011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9644
9645 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
9646 already there.
9647
70ffcc93
VS
96482011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
9651 confusing ipxe.
9652
e5f4d260
VS
96532011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
9656 Add missing const attribute.
9657 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
9658 Likewise.
9659 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
9660 Likewise.
9661
8e54b4b7
VS
96622011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
9665 misaligned access.
9666 (serpent_setkey): Likewise.
9667 (serpent_encrypt_internal): Likewise.
9668 (serpent_decrypt_internal): Likewise.
9669 (serpent_encrypt): Don't put an alignment-increasing cast.
9670 (serpent_decrypt): Likewise.
9671 (serpent_test): Likewise.
9672
813c0a2b
VS
96732011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
9676
f2b60fbd
VS
96772011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
9680
9681 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
9682 grub_addr_t casts.
9683 (PTR_TO_UINT64): Likewise.
9684 (PTR_TO_UINT32): Likewise.
9685
5ef5c511
VS
96862011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * util/grub-mkimage.c (generate_image): Decrease the higher limit
9689 because of stack.
9690 * util/grub-setup.c (setup): Don't add redundancy past the higher load
9691 limit.
9692
c476e6df
VS
96932011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
9696 text_width > available width a bit more gracefully.
9697
384ad7cc
VS
96982011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
9701 current address calculation.
9702
96f8caf8
VS
97032011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
9706 stack.
9707 (encode_block): Likewise.
9708
276b7a8b
VS
97092011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
9712 certainety.
9713
e3fd394a
VS
97142011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
9717 non-RS part to avoid RS messing with GDT.
9718 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9719 Increase to suit in realmode routines.
9720
97212011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/kern/i386/realmode.S: Increase alignment.
9724 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
9725
ee9c2e7a
VS
97262011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
9729 be deterministic.
9730 (syndroms): Compute 0 syndrom.
9731 (rs_recover): Use 0 syndrom.
9732
7a7f7cc9
VS
97332011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
9736
a14b16d1
VS
97372011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
9740 brackets.
9741
9f59e9fc
VS
97422011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9743
ca1b552c
VS
9744 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
9745 account.
9746 (get_top_pad): Likewise.
9747 (get_right_pad): Likewise.
9748 (get_bottom_pad): Likewise.
9749
97502011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 9753
e739d698
VS
97542011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9755
9756 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
9757 attribute as the structure isn't guaranteed to be properly aligned.
9758 (grub_efi_pci_device_path): Likewise.
9759 (grub_efi_pccard_device_path): Likewise.
9760 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
9761 specify the size of `memory_type'.
9762 (grub_efi_vendor_device_path): Likewise.
9763 (grub_efi_controller_device_path): Likewise.
9764 (grub_efi_acpi_device_path): Likewise.
9765 (grub_efi_expanded_acpi_device_path): Likewise.
9766 (grub_efi_atapi_device_path): Likewise.
9767 (grub_efi_scsi_device_path): Likewise.
9768 (grub_efi_fibre_channel_device_path): Likewise.
9769 (grub_efi_1394_device_path): Likewise.
9770 (grub_efi_usb_device_path): Likewise.
9771 (grub_efi_usb_class_device_path): Likewise.
9772 (grub_efi_i2o_device_path): Likewise.
9773 (grub_efi_mac_address_device_path): Likewise.
9774 (grub_efi_ipv4_device_path): Likewise.
9775 (grub_efi_ipv6_device_path): Likewise.
9776 (grub_efi_infiniband_device_path): Likewise.
9777 (grub_efi_uart_device_path): Likewise.
9778 (grub_efi_vendor_messaging_device_path): Likewise.
9779 (grub_efi_hard_drive_device_path): Likewise.
9780 (grub_efi_cdrom_device_path): Likewise.
9781 (grub_efi_vendor_media_device_path): Likewise.
9782 (grub_efi_file_path_device_path): Likewise.
9783 (grub_efi_protocol_device_path): Likewise.
9784 (grub_efi_piwg_device_path): Likewise.
9785 (grub_efi_bios_device_path): Likewise.
9786
cb8f88ea
VS
97872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9788
9789 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
9790 (grub_ucs4_to_utf8_alloc): Likewise.
9791 (grub_ucs4_to_utf8): Likewise.
9792 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
9793 (grub_ucs4_to_utf8_alloc): Likewise.
9794
309e5352
VS
97952011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9796
9797 AFFS never uses unicode.
9798
9799 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
9800 (grub_latin1_to_utf8): New inline function.
9801 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
9802
e7987e1b
VS
98032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
9806 overflow.
9807
efc2616e
VS
98082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
9811 (grub_squash_dirent_header): Likewise.
9812 (read_chunk): Don't double swap.
9813 (grub_squash_iterate_dir): Fix swap sizes.
9814
3c349f5a
VS
98152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
9818
b453412d
VS
98192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
9822 (grub_hfs_iterate_dir): Likewise.
9823
12e9d4d1
VS
98242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 Fix video on platforms where unaligned access is forbidden.
9827 Make several optimisations while on it.
9828
9829 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
9830 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9831 (grub_video_fbblit_replace_32bit_1bit): Likewise.
9832 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9833 Disable.
9834 (grub_video_fbblit_replace_16bit_1bit):
9835 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9836 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9837 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
9838 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
9839 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9840 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9841 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
9842 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
9843 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
9844 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
9845 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
9846 (grub_video_fbblit_replace_index_RGB888): Likewise.
9847 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
9848 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
9849 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
9850 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
9851 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
9852 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9853 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9854 Disable.
9855 (grub_video_fbblit_blend_XXX565_1bit):
9856 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9857 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
9858 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
9859 void *.
9860 * grub-core/video/fb/video_fb.c (common_blitter)
9861 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
9862 (grub_video_fb_create_render_target_from_pointer)
9863 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9864 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
9865 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
9866 definition.
9867 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
9868
ace96609
VS
98692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
9872 HH22 and HM10 relocations.
9873
fd261d73
VS
98742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
9877
e59b7857
VS
98782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
9881 allocation succeeded.
9882
9b4baaa4
VS
98832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
9886 argument a u8 pointer. All users updated.
9887 Handle unaligned buffers.
9888
dc713193
VS
98892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
9892 add_part to workaround compiler bug.
9893
30dd48c2
VS
98942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
9897
0c6087a8
VS
98982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
9901 Reserve alignment invariants.
9902 (grub_multiboot_load): Likewise.
9903 (retrieve_video_parameters): Likewise.
9904 (grub_multiboot_make_mbi): Likewise.
9905
c2e77777
VS
99062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
9909 incorrect pointer.
9910
b70b6d11
VS
99112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
9914 (grub_pata_pio_write): Likewise.
9915
02a2bf83
VS
99162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 Add noreturn attributes and remove unreachable code.
9919
9920 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
9921 code.
9922 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
9923 code. Mark as noreturn.
9924 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
9925 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
9926 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
9927 unreachable code.
9928 * grub-core/kern/main.c (grub_main): Mark as noreturn.
9929 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
9930 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
9931 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
9932 * include/grub/kernel.h (grub_main): Mark as noreturn.
9933 * include/grub/reader.h (grub_rescue_run): Likewise.
9934
2019d09e
VS
99352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
9938 redundant declaration.
9939
d1c501ee
VS
99402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * include/grub/net.h (grub_net_network_level_interfaces): Remove
9943 redundant declaration.
9944 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
9945
61664420
VS
99462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
9949 to ensure alignment.
9950 (grub_hdparm_print_identify): Make argument uint16 * to ensure
9951 alignment. Ensure tmp alignment.
9952 (grub_cmd_hdparm): Ensure buf alignment.
9953 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
9954 to ensure alignment.
9955 (grub_ata_dumpinfo): Ensure text alignment.
9956 (grub_atapi_identify): Preserve alignment invariant.
9957 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
9958
0d51ee20
VS
99592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
9962 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9963 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9964 * include/grub/misc.h (grub_reboot)
9965 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9966 (grub_halt) [__mips__]: Likewise.
9967
753ef8c1
VS
99682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9971 Remove redundant declaration.
9972 (grub_mmap_get_post64): Likewise.
9973 (grub_mmap_get_upper): Likewise.
9974 (grub_mmap_get_lower): Likewise.
9975
85c85365
VS
99762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9979 uint32_t * to ensure alignment.
9980 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9981
a23f2cc4
VS
99822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9983
93018f64
VS
9984 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9985 uint16_t * to ensure alignment.
9986 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9987 alignment.
9988
99892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9992 to ensure alignment.
9993 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9994
58acccd6
VS
99952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9996
9997 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9998 Handle unaligned pointers.
9999 (u32at): Likewise.
10000 (u64at): Likewise.
10001 (fixup): Use byte access instead of v16at.
10002 (find_attr): Fix imporper usage of v32at.
10003 (read_data): Likewise.
10004 (list_file): Handle byte-swapping and unaligned strings.
10005 (grub_ntfs_label): Likewise.
10006
9b05cad7
VS
100072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
10010 as it's not necessarily aligned.
10011
b3950b84
VS
100122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
10015 redundant declaration.
10016 (grub_serial_init): Likewise.
10017 (grub_terminfo_init): Likewise.
10018
fcd232b7
VS
100192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
10022 function.
10023 (ZAP_HASH_IDX): Likewise.
10024 (ZAP_LEAF_HASH_SHIFT): Likewise.
10025 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
10026 (LEAF_HASH): Likewise.
10027 (ZAP_LEAF_NUMCHUNKS): Likewise.
10028 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
10029 alignment invariants. Return pointer. All users updated.
10030 (ZAP_LEAF_ENTRY): Make into inline function.
10031 (NBBY): Removed.
10032 (xor): LIkewise.
10033 (xor_out): Use grub_crypto_xor.
10034 (dnode_get_path): Use grub_get_unaligned.
10035 (nvlist_find_value): Likewise.
10036 (grub_zfs_nvlist_lookup_uint64): Likewise.
10037 (grub_zfs_nvlist_lookup_string): Likewise.
10038 (get_nvlist_size): Likewise.
10039 (grub_zfs_open): Likewise.
10040 (fill_fs_info): Likewise.
10041 (grub_zfs_dir): Likewise.
10042 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
10043 alignment invariants.
10044 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
10045 necessarily aligned.
10046
f138623a
VS
100472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
10050
564840dc
VS
100512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
10054 arithmetic to conserve alignment invariants.
10055
9b40df20
VS
100562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
10059 redundant declaration.
10060 (grub_efiemu_mm_obtain_request): Likewise.
10061 (grub_efiemu_prepare): Likewise.
10062
d1c930f9
VS
100632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
10066 to match types.
10067
4c5f3056
VS
100682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
10071 case of aunaligned recptr.
10072 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
10073 alignment.
10074 (grub_hfsplus_btree_search): Handle unaligned index.
10075
728cba91
VS
100762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
10079 to get freetag and skip.
10080
eb561f31
VS
100812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
10084 array.
10085 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
10086 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
10087
20993fbb
VS
100882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10089
10090 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
10091 name for checksum and fix allocation algorithm.
10092
1f313b94
VS
100932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10094
10095 * include/grub/types.h (grub_properly_aligned_t): New type.
10096 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
10097 (grub_get_unaligned16): Add explicit casts.
10098 (grub_get_unaligned32): Likewise.
10099 (grub_get_unaligned64): Likewise.
10100 (grub_set_unaligned16): New function.
10101 (grub_set_unaligned32): Likewise.
10102
47ae27ec
VS
101032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10104
10105 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10106
78c2cd1c
VS
101072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
10110 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
10111 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
10112
53072f9b
VS
101132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
10116 conditionals.
10117
055dc239
VS
101182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
10121 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
10122
496bd074
VS
101232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 Unify and improve RAID and crypto xor.
10126
10127 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
10128 changed to grub_crypto_xor
10129 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
10130 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
10131 Use bigger types when possible.
10132
ef6e4335
VS
101332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * grub-core/disk/raid.c (scan_devices): Fix condition.
10136
5d048bf2
VS
101372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10138
10139 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
10140 Make name a const ptr.
10141
ee533335
VS
101422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
10145 first argument a const pointer.
10146 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10147 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
10148 proto.
10149 (grub_children_iterate): Likewise.
10150 (grub_machine_mmap_iterate): Remove redundant declaration.
10151
cc8f3668
VS
101522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10155 (grub_cmd_acpi) [!x86]: Disable EBDA.
10156
c5fc563a
VS
101572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10158
10159 Enable UTF8 in gnulib regexp.
10160
10161 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10162 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10163 (isupper): Use grub_isupper.
10164 (isascii): New inline function.
10165 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10166 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10167 * grub-core/normal/charset.c (grub_utf8_process): New function.
10168 (grub_utf8_to_utf16): Use grub_utf8_process.
10169 (grub_encode_utf8_character): New function.
10170 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10171 * include/grub/charset.h (grub_utf8_process): New declaration.
10172 (grub_encode_utf8_character): Likewise.
10173 * include/grub/misc.h (grub_islower): New inline function.
10174 (grub_isupper): Likewise.
10175 (grub_strchrsub): Moved down to fix the definitions.
10176
0af2346f
VS
101772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10180 specification.
10181
74dbd244
VS
101822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * include/grub/loader.h (grub_loader_register_preboot_hook):
10185 Use struct preboot * and not void * for handle. All users updated.
10186 (grub_loader_unregister_preboot_hook): Likewise.
10187
1bc8f60d
VS
101882011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10191 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10192 UTF-16-BE. All users updated.
10193 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10194 (grub_hfsplus_iterate_dir): Likewise.
10195 (grub_hfsplus_label): Likewise.
10196
48d6e456
VS
101972011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10198
10199 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10200
bf3a3857
VS
102012011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 Add missing const qualifiers.
10204
10205 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10206 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10207 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10208 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10209 (grub_lvm_check_flag): Likewise.
10210 * grub-core/efiemu/i386/coredetect.c
10211 (grub_efiemu_get_default_core_name): Likewise
10212 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10213 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10214 * grub-core/fs/ntfs.c (fixup): Likewise.
10215 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10216 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10217 (fzap_lookup): Likewise.
10218 (zap_lookup): Likewise.
10219 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10220 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10221 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10222 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10223 (grub_freebsd_add_meta_module): Likewise.
10224 (grub_cmd_freebsd_module): Likewise.
10225 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10226 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10227 (grub_xnu_writetree_get_size): Likewise.
10228 (grub_xnu_writetree_toheap_real): Likewise.
10229 (grub_xnu_find_key): Likewise.
10230 (grub_xnu_create_key): Likewise.
10231 (grub_xnu_create_value): Likewise.
10232 (grub_xnu_register_memory): Likewise.
10233 (grub_xnu_check_os_bundle_required): Likewise.
10234 (grub_xnu_scan_dir_for_kexts): Likewise.
10235 (grub_xnu_load_kext_from_dir): Likewise.
10236 * grub-core/normal/color.c (color_list): Likewise.
10237 * grub-core/normal/completion.c (current_word): Likewise.
10238 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10239 * grub-core/term/serial.c (grub_serial_find): Likewise.
10240 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10241 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10242 Likewise.
10243 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10244 (grub_freebsd_add_meta_module): Likewise.
10245 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10246 * include/grub/net.h (grub_net_card_driver): Likewise.
10247 (grub_net_card): Likewise.
10248 (grub_net_app_protocol): Likewise.
10249 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10250 * include/grub/serial.h (grub_serial_find): Likewise.
10251 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10252 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10253 (grub_xnu_create_value): Likewise.
10254 (grub_xnu_find_key): Likewise.
10255 (grub_xnu_scan_dir_for_kexts): Likewise.
10256 (grub_xnu_load_kext_from_dir): Likewise.
10257
10258 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10259 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10260 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10261 Moved from here ...
10262 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10263
112b4837
CW
102642011-11-28 Colin Watson <cjwatson@ubuntu.com>
10265
10266 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10267
49e891ac
VS
102682011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10271 (read_device): Fix size calculation.
10272
fd258e5c
RM
102732011-11-25 Robert Millan <rmh@gnu.org>
10274
10275 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10276 (find_root_device_from_libzfs): Add zpool output parser to be used
10277 as fallback when libzfs isn't available.
10278
78845dc2
SG
102792011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10280
10281 * po/Makefile.in.in: Add missing escape-continuation.
10282
adac5211
VS
102832011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10286
10b64f1c
VS
102872011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10290
bb416954
VS
102912011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10294
bdfe9eeb
VS
102952011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10298
581ffa8a
VS
102992011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * grub-core/lib/adler32.c: Add missing license specification.
10302 * grub-core/lib/crc64.c: Likewise.
10303 * grub-core/loader/i386/pc/plan9.c: Likewise.
10304 * grub-core/partmap/plan.c: Likewise.
10305
2536cf64
LK
103062011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10307
10308 Add facility to debug GRUB with gdb under qemu.
10309
10310 * grub-core/gdb_grub.in: New file.
10311 * grub-core/gmodule.pl.in: Likewise.
10312 * grub-core/Makefile.core.def (gmodule.pl): New script.
10313 (gdb_grub): Likewise.
10314
bc108a4a
VS
103152011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * util/grub-mount.c (argp_parser): Accept relative pathes.
10318 * util/grub-fstest.c (argp_parser): Likewise.
10319
111c1778
VS
103202011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 Plan9 support.
10323
10324 * Makefile.util.def (libgrubmods): Add
10325 grub-core/partmap/plan.c.
10326 * docs/grub.texi: Notice Plan9 support.
10327 * grub-core/Makefile.core.def (plan9): New module.
10328 (part_plan): Likewise.
10329 * grub-core/loader/i386/pc/plan9.c: New file.
10330 * grub-core/partmap/plan.c: Likewise.
10331 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10332 define.
10333 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10334 * include/grub/mm.h (grub_extend_alloc): New inline function.
10335
c30be3b6
VS
103362011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10337
10338 Make Reed-Solomon faster by using power of generator representation of
10339 GF(256)*.
10340
10341 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10342 (gf_double_t): Likewise.
10343 (gf_invert): Removed.
10344 (gf_powx): New array.
10345 (gf_powx_inv): Likewise.
10346 (scratch): Move higher.
10347 (gf_reduce): Removed.
10348 (gf_mul): Use powx.
10349 (gf_invert): Likewise.
10350 (init_inverts): Replaced with ...
10351 (init_powx): ...this. All users updated.
10352 (pol_evaluate): Replace multiplications with additions.
10353 (rs_encode): Likewise.
10354 (gauss_eliminate): Call gf_invert.
10355 (grub_reed_solomon_add_redundancy): Call init_powx.
10356 (grub_reed_solomon_recover): Call init_powx unconditionally.
10357
fa5aeffc
VS
103582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10361
a346b81c
VS
103622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10365 disk->partiton for safety.
10366
d89ee414
VS
103672011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10368
10369 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10370 Fix a memory leak.
10371 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10372
91ee7b6d
VS
103732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10376
91e5a33d
VS
103772011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10380
9edd7be2
VS
103812011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 Fix spaces handling in proc/self/mountinfo.
10384
10385 * util/getroot.c (unescape): New function.
10386 (grub_find_root_device_from_mountinfo): Use unescape.
10387
ba102053
VS
103882011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 Support ZFS embedding.
10391
10392 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10393 (grub_zfs_fs): Register grub_zfs_embed.
10394
aa94b870
VS
103952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 Fix MIPS compilation.
10398
10399 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10400 * include/grub/offsets.h: Rename decompressor fields from
10401 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10402 * util/grub-mkimage.c (image_targets): Use new names.
10403
5fbdac14
VS
104042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10405
10406 Defer multiboot device parsing until we're in compressed part.
10407
10408 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10409 bsd_part. setdevice has fallen into disuse.
10410 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10411 (bsd_part): Likewise.
10412 (boot_dev): New variable.
10413 (multiboot_trampoline): Don't parse multiboot device.
10414 Pass multiboot device in %edx.
10415 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10416 grub_boot_device.
10417 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10418 Likewise.
10419 * grub-core/kern/i386/pc/startup.S: Save edx.
10420 (grub_boot_drive): Removed.
10421 (grub_install_dos_part): Likewise.
10422 (grub_install_bsd_part): Likewise.
10423 (grub_boot_device): New variable.
10424 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10425 (grub_install_bsd_part): Likewise.
10426 (grub_boot_drive): Likewise.
10427 (grub_boot_device): New variable.
10428 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10429 Removed.
10430 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10431 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10432 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10433 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10434 * util/grub-install.in: Remove redundant condition.
10435
691cbb58
VS
104362011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 Fix bug introduced by previous commit.
10439
10440 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
10441
60240b8b
VS
104422011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 Use decompressors framework on i386-pc. It increases core size
10445 by 46 bytes but improves compatibility and maintainability.
10446
10447 * grub-core/Makefile.core.def (lzma_decompress): New image.
10448 (kernel): Add i386_pc_ldflags.
10449 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
10450 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
10451 to real_to_prot, prot_to_real and device info.
10452 * include/grub/offsets.h: Renamed decompressor offsets.
10453 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
10454 (image_target_desc): Remove raw_size and rename decompressor fields.
10455 (compress_kernel): Handle lzma.
10456 (generate_image): Handle decompressors on i386-pc.
10457
e9d3421c
VS
104582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10459
10460 * configure.ac: Add -fno-asynchronous-unwind-tables.
10461
2b23074a
VS
104622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10463
10464 Move assembly code to C by using intwrap. It increases core size
10465 by 88 bytes but improves compatibility and maintainability.
10466
10467 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
10468 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
10469 ... here. Translated to C.
10470 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
10471 * grub-core/term/i386/pc/console.c (grub_console_getkey):
10472 ... here. Translated to C.
10473 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
10474 * grub-core/term/i386/pc/console.c (grub_console_getxy):
10475 ... here. Translated to C.
10476 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
10477 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
10478 ... here. Translated to C.
10479 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
10480 * grub-core/term/i386/pc/console.c (grub_console_cls):
10481 ... here. Translated to C.
10482 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
10483 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
10484 ... here. Translated to C.
10485 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
10486 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
10487 Translated to C.
10488 * grub-core/term/i386/pc/console.c (int10_9): New function.
10489 (grub_console_putchar): Likewise.
10490 * include/grub/i386/pc/console.h: Removed the not anymore shared
10491 functions.
10492
678f4b67
VS
104932011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 Move grub_chainloader_real_boot out of the kernel.
10496
10497 * grub-core/Makefile.am: Remove machine/loader.h.
10498 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10499 Removed.
10500 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
10501 variable.
10502 (grub_relocator16_keep_a20_enabled): Likewise.
10503 (grub_relocator16_boot): Fill new variables.
10504 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
10505 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
10506 relocator.
10507 (grub_chainloader_unload): Likewise.
10508 (grub_chainloader_cmd): Likewise.
10509 * include/grub/i386/pc/loader.h: Removed.
10510 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
10511 and esi. All initialisers updated.
10512
4626edf6
VS
105132011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
105142011-11-12 Colin Watson <cjwatson@ubuntu.com>
10515
10516 * Makefile.util.def (grub-mount): New util.
10517 * .bzrignore: Add grub-mount.
10518 * configure.ac: Check for fuse and enable grub-mount if available.
10519 * docs/man/grub-mount.h2m: New file.
10520 * util/grub-mount.c: Likewise.
10521
10f0117b
VS
105222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/commands/efi/fixvideo.c: Gettextize.
10525 * grub-core/commands/hashsum.c: Likewise.
10526 * grub-core/commands/i386/cmostest.c: Likewise.
10527 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10528 * grub-core/commands/i386/pc/lsapm.c: Likewise.
10529 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10530 * grub-core/commands/lsmmap.c: Likewise.
10531 * grub-core/commands/menuentry.c: Likewise.
10532 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10533 * grub-core/commands/setpci.c: Likewise.
10534 * grub-core/loader/i386/bsd.c: Likewise.
10535 * grub-core/loader/i386/linux.c: Likewise.
10536 * util/getroot.c: Likewise.
10537 * util/grub-editenv.c: Likewise.
10538 * util/grub-fstest.c: Likewise.
10539 * util/grub-mkfont.c: Likewise.
10540 * util/grub-mkimage.c: Likewise.
10541 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10542 * util/grub-pe2elf.c: Likewise.
10543 * util/grub-probe.c: Likewise.
10544 * util/grub-setup.c: Likewise.
10545 * util/ieee1275/ofpath.c: Likewise.
10546 * util/misc.c: Likewise.
10547 * util/raid.c: Likewise.
10548
566f779b
RM
105492011-11-11 Robert Millan <rmh@gnu.org>
10550
10551 * util/getroot.c (grub_util_get_geom_abstraction): Remove
10552 __attribute__((unused)) from `os_dev', which *is* being used.
10553
b50787de
VS
105542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10555
10556 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
10557 forgotten define.
10558 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
10559 GRUB_IA64_DL_GOT_ALIGN.
10560 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
10561 GRUB_IA64_DL_TRAMP_ALIGN.
10562
119d11c8
VS
105632011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 Replace grub_fatal with normal errors in i386 linux loader.
10566
10567 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
10568 (allocate_pages): Check find_efi_mmap_size return value.
10569 (grub_e820_add_region): Return error.
10570 (grub_linux_boot): Check mmap return value.
10571
6e0632e2
VS
105722011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * grub-core/commands/acpihalt.c: Gettextized.
10575 * grub-core/commands/cacheinfo.c: Likewise.
10576 * grub-core/commands/cmp.c: Likewise.
10577 * grub-core/commands/efi/loadbios.c: Likewise.
10578 * grub-core/commands/gptsync.c: Likewise.
10579 * grub-core/commands/ieee1275/suspend.c: Likewise.
10580 * grub-core/commands/legacycfg.c: Likewise.
10581 * grub-core/commands/memrw.c: Likewise.
10582 * grub-core/commands/minicmd.c: Likewise.
10583 * grub-core/commands/parttool.c: Likewise.
10584 * grub-core/commands/time.c: Likewise.
10585 * grub-core/commands/videoinfo.c: Likewise.
10586 * grub-core/disk/geli.c: Likewise.
10587 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
10588 * grub-core/disk/luks.c: Likewise.
10589 * grub-core/disk/lvm.c: Likewise.
10590 * grub-core/font/font_cmd.c: Likewise.
10591 * grub-core/fs/zfs/zfscrypt.c: Likewise.
10592 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10593 * grub-core/gfxmenu/view.c: Likewise.
10594 * grub-core/kern/emu/hostdisk.c: Likewise.
10595 * grub-core/kern/emu/main.c: Likewise.
10596 * grub-core/kern/emu/misc.c: Likewise.
10597 * grub-core/kern/emu/mm.c: Likewise.
10598 * grub-core/kern/mips/arc/init.c: Likewise.
10599 * grub-core/kern/mips/loongson/init.c: Likewise.
10600 * grub-core/kern/partition.c: Likewise.
10601 * grub-core/lib/i386/halt.c: Likewise.
10602 * grub-core/lib/mips/arc/reboot.c: Likewise.
10603 * grub-core/lib/mips/loongson/reboot.c: Likewise.
10604 * grub-core/loader/i386/pc/chainloader.c: Likewise.
10605 * grub-core/loader/i386/xnu.c: Likewise.
10606 * grub-core/loader/multiboot.c: Likewise.
10607 * grub-core/net/bootp.c: Likewise.
10608 * grub-core/net/net.c: Likewise.
10609 * grub-core/normal/term.c: Likewise.
10610 * grub-core/partmap/bsdlabel.c: Likewise.
10611 * grub-core/parttool/msdospart.c: Likewise.
10612 * grub-core/term/gfxterm.c: Likewise.
10613 * grub-core/term/terminfo.c: Likewise.
10614 * grub-core/video/i386/pc/vbe.c: Likewise.
10615 * util/grub-menulst2cfg.c: Likewise.
10616 * util/grub-mkdevicemap.c: Likewise.
10617 * util/grub-mklayout.c: Likewise.
10618 * util/grub-mkrelpath.c: Likewise.
10619 * util/grub-script-check.c: Likewise.
10620 * util/ieee1275/grub-ofpathname.c: Likewise.
10621 * util/resolve.c: Likewise.
10622
073aa7a9
VS
106232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Support %1$d syntax.
10626
10627 * tests/printf_unit_test.c: New file.
10628 * Makefile.util.def (printf_test): New test.
10629 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
10630
c76b5417
VS
106312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10632
10633 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
10634 fix.
10635
df067ad1
VS
106362011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
10639 dprintf.
10640 * grub-core/font/font.c (grub_font_load): Likewise.
10641
5b289bc5
VS
106422011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 * util/grub-macho2img.c: Add comment concerning gettext.
10645 * grub-core/lib/legacy_parse.c: Likewise.
10646
c1860f87
VS
106472011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10648
10649 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
10650 (grub_xvasprintf): Likewise.
10651
d35d0d37
VS
106522011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10653
10654 Add const keyword to grub_env_get and gettextize week days.
10655
10656 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
10657 (grub_read_hook_datetime): Return const char *.
10658 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
10659 updated.
10660 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10661 Mark for gettext.
10662 (grub_get_weekday_name): Return const char *. Call gettext.
10663 * grub-core/script/argv.c (grub_script_argv_append): Receive const
10664 char * and len as the argument. All users updated.
10665 (grub_script_argv_split_append): Receive const char *.
10666 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
10667 * include/grub/env.h (grub_env_get): Likewise.
10668 (grub_env_read_hook_t): Return const char *.
10669 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
10670 (grub_script_argv_split_append): Likewise.
10671
9aed8a71
VS
106722011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
10675
067fdf00
VS
106762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
10679 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
10680
a8bd9d39
VS
106812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10682
10683 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
10684 Fix prototype.
10685
f7ce5baf
VS
106862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 Fix mips compilation.
10689
10690 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
10691 normal decoder.
10692 (hashes): Use in embed decoder as well (for sizes).
10693 (dec_stream_header): Fix embed decompressor logic.
10694 (dec_stream_footer): Likewise.
10695
9bb182f3
VS
106962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
10699 an error and not a fatal on unrecognised relocation types.
10700
63a9e6f6
VS
107012011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10704 Issue error rather than printf on unknown arguments.
10705
4c458569
VS
107062011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
10709 Make buf a const.
10710
e2d22baf
VS
107112011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
10714 Fix module name.
10715
53dc8590
VS
107162011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
10719 leftover debug printf.
10720
6c189294
VS
107212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
10724
f7688369
VS
107252011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
10728 A stylistic fix.
10729
11a775a3
VS
107302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
10733
33f784e8
SL
107342011-11-10 Shea Levy <slevy@tieronedesign.com>
10735
10736 Allow all modules to perform serial IO
10737
10738 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
10739 * include/grub/serial.h (grub_serial_port_configure): New inline
10740 function.
10741 (grub_serial_port_fetch): Likewise.
10742 (grub_serial_port_put): Likewise.
10743 (grub_serial_port_fini): Likewise.
10744 (grub_serial_find): New proto.
10745
f6276525
VS
107462011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 Put symlink at the end of the node and fix a potential
10749 memory corruption.
10750
10751 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
10752 Make symlink into an array.
10753 (set_rockridge): Set have_symlink and alloc_dirents.
10754 (grub_iso9660_read_symlink): Use new layout.
10755 (grub_iso9660_iterate_dir): Fix memory corruption.
10756 Use new layout.
10757 (grub_iso9660_dir): Set have_symlink.
10758 (grub_iso9660_open): Likewise.
10759
c3591189
VS
107602011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 Remove local keyword.
10763
10764 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
10765 (version_test_gt): Likewise.
10766 (version_find_latest): Likewise.
10767 (gettext_printf): Likewise.
10768 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
10769
cb544caa
VS
107702011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
10773
45bd824d
VS
107742011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10775
10776 Fix ZFS memory and resource leaks.
10777
10778 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
10779 All users updated.
10780 Free type on exit.
10781 (fill_vdev_info): New parameter inserted. All users updated.
10782 (check_pool_label): Likewise.
10783 (scan_disk): Likewise.
10784 (scan_devices): Close non-inserted disks.
10785 (fzap_iterate): Free l.
10786 (unmount_device): Free children descripto memory.
10787
ad9a2f44
VS
107882011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
10791 argument (access out of bounds).
10792
6b68db81
VS
107932011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
10796 >= 6 drives.
10797
28840fda
VS
107982011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10799
10800 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
10801 Fix declaration.
10802
8a5a3a5b
VS
108032011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10804
10805 Fix several memory leaks.
10806
10807 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
10808 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
10809 (grub_cpio_dir): Likewise.
10810 * grub-core/fs/fat.c (grub_fat_label): Likewise.
10811 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
10812 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
10813 (grub_romfs_label): Likewise.
10814 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
10815 (squash_unmount): New function.
10816 (grub_squash_dir): Fix memory leak.
10817 (grub_squash_open): Likewise.
10818 (grub_squash_read): Likewise.
10819 (grub_squash_mtime): Likewise.
10820 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
10821 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
10822 * util/grub-fstest.c (fstest): Likewise.
10823
57b01250
VS
108242011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
10827 avoid accessing beyond the array.
10828
19e81ba7
VS
108292011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
10832
52b656c0
VS
108332011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 Several AFFS fixes.
10836
10837 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
10838 (GRUB_AFFS_FLAG_FFS): Removed.
10839 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
10840 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
10841 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
10842 (grub_fshelp_node): Make block 32-bit.
10843 Add block_cache and last_block_cache.
10844 (grub_affs_read_block): Fill and use block cache.
10845 (grub_affs_read_file): Removed.
10846 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
10847 boot block.
10848 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
10849 safety.
10850 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
10851 space.
10852 (grub_affs_close): Free block cache.
10853 (grub_affs_read): Use grub_fshelp_read_file directly.
10854
438a746a
VS
108552011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
10858 with no error set.
10859
49a45021
VS
108602011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
10863 used variable.
10864 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10865 Likewise.
10866
3ae17eb8
VS
108672011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
10870
10871 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
10872 byteswap when needed.
10873
27610c38
VS
108742011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 Fix FreeBSD compilation.
10877
10878 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
10879 to avoid circular dependency.
10880 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
10881 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
10882 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
10883
4a19b601
VS
108842011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10885
10886 Fix ZFS crypto error types.
10887
10888 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
10889 (grub_gcm_decrypt): Likewise.
10890 (grub_zfs_load_key_real): Fix error code type. Handle possible error
10891 from PBKDF2.
10892
958ee221
VS
108932011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 Illumos support.
10896
10897 * Makefile.util.def (10_illumos): New script.
10898 * configure.ac: Set COND_HOST_ILLUMOS.
10899 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
10900 Support Illumos calls.
10901 (find_partition_start) [__sun__]: Likewise.
10902 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
10903 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
10904 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
10905 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
10906 device.
10907 * util/grub-probe.c (probe) [__sun__]: Do character check.
10908 * util/grub.d/10_illumos.in: New file.
10909
cac14fb6
VS
109102011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 Support escaped commas in hostdisk.
10913
10914 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
10915 (find_grub_drive): Use unescape_cmp.
10916 (make_device_name): Escape commas.
10917
78e08dc3
VS
109182011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
10921
9f421dd1
VS
109222011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
10925 variable.
10926
ed64e9e2
VS
109272011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 Support trampoline jumps on powerpc.
10930
10931 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
10932 __ia64__ path.
10933 (grub_dl_load_segments): Set mod->sz.
10934 (grub_dl_flush_cache): Flush whole space occupied by module, not just
10935 segments.
10936 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
10937 (jump): Likewise.
10938 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
10939 function.
10940 (trampoline): New struct.
10941 (trampoline_template): New const.
10942 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
10943 * include/grub/dl.h (grub_dl): Add sz element.
10944 [__powerpc__]: Follow __ia64__.
10945 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
10946 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
10947 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
10948 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
10949
3084ede4
VS
109502011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 ZFS crypto support.
10953
10954 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
10955 * grub-core/Makefile.core.def (zfscrypt): New module.
10956 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
10957 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
10958 it. All users updated.
10959 (grub_zfs_decrypt): New var.
10960 (grub_zfs_load_key): Likewise.
10961 (zio_checksum_functions): Add SHA256+MAC.
10962 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10963 (zio_read): Handle encrypted blocks.
10964 (zap_verify): Remove incorrect check.
10965 (fzap_iterate): Handle non-standard fzap.
10966 (zap_iterate): Likewise.
10967 (zap_iterate_u64): New function.
10968 (dnode_get_fullpath): Load keys.
10969 * grub-core/fs/zfs/zfscrypt.c: New file.
10970 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10971 (grub_crypto_ecb_encrypt): Make input const.
10972 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10973 (grub_crypto_ecb_encrypt): Make input const.
10974 (GRUB_CIPHER_AES): New macro.
10975 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10976 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10977 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10978 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10979 prefix. All users updated.
10980 (grub_zfs_add_key): New proto.
10981 (grub_zfs_decrypt): Likewise.
10982 (grub_zfs_load_key): Likewise.
10983 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10984 * util/grub-fstest.c (options): Add -K option.
10985 (argp_parser): Likewise.
10986
b632b404
VS
109872011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 Support zle compression on ZFS.
10990
10991 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10992 (decomp_table): Add zle.
10993 * include/grub/zfs/zio.h (zio_compress): Add zle.
10994
c7ba4f69
VS
109952011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 Support BtrFS embedding.
10998
10999 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
11000 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
11001 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
11002 * util/grub-setup.c (setup): Use fs embedding if available.
11003 Add additional sanity check.
11004
455377d9
VS
110052011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * util/grub-install.in: Fix condition for config_opt.
11008
c2fd16ca
VS
110092011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11010
11011 Support third redundancy strip on raidz3.
11012
11013 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
11014 Return error on singularity. All users updated.
11015 (read_device): Don't stop on 3rd failure on raidz3.
11016
8622923b
VS
110172011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11018
11019 Support case-insensitive ZFS subvolumes.
11020
11021 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
11022 All users updated.
11023 (zap_hash): Likewise.
11024 (name_cmp): New function.
11025 (zap_leaf_array_equal): New parameter case_insensitive.
11026 All users updated.
11027 (zap_leaf_lookup): Likewise.
11028 (fzap_lookup): Likewise.
11029 (zap_lookup): Likewise.
11030 (dnode_get_path): New parameter case_insensitive. Retrieve case
11031 sensitiviness of a volume. All users updated.
11032 (dnode_get_fullpath): New parameter case_insensitive.
11033 All users updated.
11034 (grub_zfs_dir): Set info.case_insensitiveness.
11035
95f2e860
VS
110362011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 Support second redundancy strip on raidz(2,3).
11039
11040 * grub-core/fs/zfs/zfs.c (powx): New array.
11041 (powx_inv): Likewise.
11042 (poly): New const.
11043 (xor_out): New function.
11044 (gf_mul): Likewise.
11045 (recovery): Likewise.
11046 (read_device): Use second redundancy strip.
11047
11ee4389
VS
110482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 Use a power of generator representation of GF(256) multiplication group
11051 to save space time and complexity.
11052
11053 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
11054 (raid6_table2): Likewise.
11055 (powx): New array.
11056 (powx_inv): Likewise.
11057 (poly): New const.
11058 (grub_raid_block_mul): Replace with ...
11059 (grub_raid_block_mulx): ...this.
11060 (grub_raid6_init_table): Rewritten.
11061 (grub_raid6_recover): Use power of generator representation.
11062
09e2763f
VS
110632011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
11066 for the right device.
11067
8bec9a28
VS
110682011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
11071 expected by grub-mkimage and it's more clear since there is no implicit
11072 padding.
11073
dbd3a32e
VS
110742011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11075
11076 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
11077 disk.
11078 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11079
182c872a
PMH
110802011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
11081
11082 * util/grub-mkrescue.in: Fix handling xorriso option.
11083
1e51cabd
VS
110842011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
11087 NULL.
11088
9cc3581d 110892011-11-03 crocket <crockabiscuit@gmail.com>
11090
11091 * util/grub.d/10_linux.in: Add Slackware initrd naming.
11092
158dc1ea
VS
110932011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 XZ CRC64 and SHA256 support.
11096
11097 * Makefile.util.def (libgrubmods): Add crc64.c.
11098 * grub-core/Makefile.core.def (crc64): New module.
11099 * grub-core/lib/crc64.c: New file.
11100 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
11101 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
11102 Fix the type.
11103 (MAX_HASH_SIZE): New define.
11104 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
11105 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
11106 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11107 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11108 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
11109 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
11110 Handle non-crc32 hashes.
11111 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
11112 (dec_stream_header): Handle non-crc32 hashes.
11113 (dec_stream_footer): Likewise.
11114 (dec_block_header): Likewise.
11115 (dec_main): Likewise.
11116 (xz_dec_init): Likewise.
11117 (xz_dec_reset): Likewise.
11118 (xz_dec_end): Likewise.
11119 * util/import_gcry.py: Add CRC64 line.
11120
9d9b3d2f
VS
111212011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
11124 as well.
11125
7d0ac931
VS
111262011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 Make reiserfs label retrieval similar to other *_label functions.
11129
11130 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
11131 (REISERFS_MAX_LABEL_LENGTH): Removed.
11132 (REISERFS_LABEL_OFFSET): Likewise.
11133 (grub_reiserfs_label): Rewritten.
11134
111352011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
11138 field.
11139
cf5ba824
VS
111402011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
11143
17744004
VS
111442011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
11147 drive failure on both raidz and raidz2.
11148
aca5aefc
VS
111492011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 Fix RAIDZ(2) for >= 5 devices.
11152
11153 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11154 asize argument. All users updated.
11155
ce8ca56e
VS
111562011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 Fix RAIDZ(2).
11159
11160 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11161 (fill_vdev_info_real): Set ashift.
11162 (read_device): Rewrite RAIDZ part based on reverse engineering.
11163
7c01e783
VS
111642011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11167 don't report potentially unavialiable fields in debug output.
11168 (find_path): Fix double-free and memory leak.
11169
ce109e84
VS
111702011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Read label on UFS1.
11173
11174 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11175 (grub_ufs_fs): Always set .label.
11176
87661123
VS
111772011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 Use shifts in UFS.
11180
11181 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11182 (grub_ufs_data): New field log2_blksz.
11183 (grub_ufs_read_file): Use shifts.
11184 (grub_ufs_mount): Check block size and logarithm it.
11185
46bc1dc2
VS
111862011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11187
11188 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11189 long symlinks.
11190
19ee2987
VS
111912011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 Handle symlinks and long names on tar and cpio.
11194
11195 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11196 (ATTR_FILE): Likewise.
11197 (ATTR_DIR): Likewise.
11198 (ATTR_LNK): Likewise.
11199 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11200 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11201 L and K entries.
11202 (grub_cpio_mount): Zero-fill data.
11203 (handle_symlink): New function.
46bc1dc2
VS
11204 (grub_cpio_dir): Handle symlinks.
11205 (grub_cpio_open): Likewise.
11206 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 11207
c83a08d8
VS
112082011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 Fix iso9660 filename limitations and fix memory leaks.
11211
11212 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11213 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11214
45cdd3ea
VS
112152011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 Fix JFS file name length limitations.
11218
11219 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11220 (grub_jfs_diropen): Fix maximum filename length.
11221 (grub_jfs_getent): Fix filename length.
11222 (grub_jfs_lookup_symlink): Fix size checks.
11223
94ef05c2
VS
112242011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11227 string.
11228
785ab8c7
VS
112292011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11230
eb0b6b45
VS
11231 Leverage BFS implementation to read AFS.
11232
11233 * Makefile.util.def (libgrubmods): Add afs.c.
11234 * grub-core/Makefile.core.def (afs): New module
11235 * grub-core/fs/afs.c: New file.
11236 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11237
112382011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 11241
c4a1628f
VS
112422011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/fs/bfs.c: Run indent.
11245
5825b379
VS
112462011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 BFS implementation based on the specification.
11249
11250 * grub-core/fs/bfs.c: New file.
11251 * Makefile.util.def (libgrubmods): Add bfs.c.
11252 * grub-core/Makefile.core.def (bfs): New module.
11253
42b2a706
VS
112542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * util/grub-fstest.c (cmd_cp): Clarify error message.
11257 (cmd_cmp): Likewise.
11258
61b99bfc
YB
112592011-10-30 Yves Blusseau <blusseau@zetam.org>
11260
11261 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11262 and befs_be.
11263
faba3d16
VS
112642011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11265
11266 Remove afs and befs because of copyright problem.
11267
11268 * grub-core/fs/afs.c: Removed.
11269 * grub-core/fs/afs_be.c: Removed.
11270 * grub-core/fs/befs.c: Removed.
11271 * grub-core/fs/befs_be.c: Removed.
11272 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11273 * grub-core/Makefile.core.def (afs): Removed.
11274 (afs_be): Likewise.
11275 (befs): Likewise.
11276 (befs_be): Likewise.
11277
c39224b0
VS
112782011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 Prefer rockridge over Joliet.
11281
11282 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11283 to ...
11284 (set_rockridge): ... here.
11285 (grub_iso9660_mount): Check rockridge on the primary label when
11286 discovering. Ignore Joliet if Rockridge is present.
11287
e551115a
VS
112882011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 Use shifts in nilfs2.
11291
11292 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11293 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11294 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11295 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11296 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11297 (grub_nilfs2_entries_per_block): Replaced with ...
11298 (grub_nilfs2_log_entries_per_block_log): ... this.
11299 (grub_nilfs2_blocks_per_group): Replaced with ...
11300 (grub_nilfs2_blocks_per_group_log): ... this.
11301 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11302 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11303 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11304 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11305 (grub_nilfs2_palloc_entry_offset): Replaced ...
11306 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11307 (grub_nilfs2_dat_translate): Use shifts.
11308 (grub_nilfs2_read_inode): Likewise.
11309 (GRUB_MOD_INIT): Ensure that logs are correct.
11310
564dd58c
VS
113112011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 Use shifts in minix filesystem.
11314
11315 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11316 (GRUB_MINIX_ZONE2SECT): Likewise.
11317 (grub_minix_data): Replace block_size with log_block_size.
11318 (grub_minix_read_file): Use shifts.
11319 (grub_minix_mount): Check block size and take a logarithm.
11320
ed9ba06d
VS
113212011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 Use shifts in squash4.
11324
11325 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11326 (squash_mount): Check block size and take logarithm.
11327 (direct_read): Use shifts.
11328
ad03fe76
VS
113292011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 Correct befs block counting logic.
11332
11333 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11334 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11335 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11336 (grub_afs_read_inode): Use block_shift.
11337 (RANGE_SHIFT): New definition.
11338 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11339 unexpected conditions, use shifts and appropriate types.
11340 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11341
6563f63d
VS
113422011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * grub-core/disk/raid.c (scan_devices): Check partition.
11345 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11346
5b1ae25f
VS
113472011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 Support BFS (befs) UUID.
11350
11351 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11352 (grub_afs_small_data_element_header): New struct.
11353 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11354 (grub_afs_read_attribute) [MODE_BFS]: New function.
11355 (grub_afs_iterate_dir): Allocate for complete inode.
11356 (grub_afs_mount): Likewise.
11357 (grub_afs_uuid) [MODE_BFS]: New function.
11358 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11359
f8d82408
VS
113602011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11363 (zfs_unmount): Fix memory leak.
11364
5773fb64
VS
113652011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 Support NTFS reparse points.
11368
11369 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11370 (symlink_descriptor): New struct.
11371 (grub_ntfs_read_symlink): New function.
11372 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11373 (grub_ntfs_open): Likewise.
11374
91c3fdde
VS
113752011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11378
3be82e10
VS
113792011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 fstest xnu_uuid subcommand.
11382
11383 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11384 grub-core/commands/xnu_uuid.c.
11385 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11386 (fstest): Handle xnu_uuid.
11387 (options): Document xnu_uuid.
11388 (argp_parser): Parse xnu_uuid.
11389
8e32442e
VS
113902011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11393 -l argument. Add newline at the end if printing.
11394 (GRUB_MOD_INIT): Document -l.
11395
52a05075
VS
113962011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11397
11398 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11399
1869edb5
VS
114002011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 ZFS multi-device and version 33 support.
11403
11404 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11405 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11406 (grub_zfs_data): Add multidev-ice-related fields.
11407 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11408 (dva_get_offset): Make dva const.
11409 (zfs_fetch_nvlist): New function.
11410 (fill_vdev_info_real): Likewise.
11411 (fill_vdev_info): Likewise.
11412 (check_pool_label): Likewise.
11413 (scan_disk): Likewise.
11414 (scan_devices): Likewise.
11415 (read_device): Likewise.
11416 (read_dva): Likewise.
11417 (zio_read_gang): Use read_dva.
11418 (zio_read_data): Likewise.
11419 (zap_leaf_lookup): Add missing endian conversion.
11420 (zap_verify): Add missing endian conversion. All users updated.
11421 (fzap_lookup): Likewise.
11422 (fzap_iterate): Likewise.
11423 (dnode_get_path): Handle SA bonus.
11424 (nvlist_find_value): Make input const. All users updated.
11425 (unmount_device): New function.
11426 (zfs_unmount): Use unmount_device.
11427 (zfs_mount): Use scan_disk.
11428 (zfs_mtime): New function.
11429 (grub_zfs_open): Handle system attributes.
11430 (fill_fs_info): Likewise.
11431 (grub_zfs_dir): Likewise.
11432 (grub_zfs_fs): Add mtime.
11433 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11434 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11435 (SA_MTIME_OFFSET): Likewise.
11436 (SA_SYMLINK_OFFSET): Likewise.
11437 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11438 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11439 (fstest): Support zfsinfo.
11440 (argp_parser): Likewise.
11441
186b4028
VS
114422011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
11445 error.
11446
114472011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
11448
11449 ZFS fixes.
11450
11451 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
11452 sharing the same block. Iterate over correct number of indices.
11453 (dnode_get_path): Handle symlinks correctly.
11454
c0584900
VS
114552011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
11458
67e2bd71
VS
114592011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 Read label on HFS+.
11462
11463 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
11464 (grub_hfsplus_btree_search): Fix types.
11465 (grub_hfsplus_label): Implement.
11466
e9cc6b7b
VS
114672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
11470
19832ddb
VS
114712011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
11474
66b40850
VS
114752011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 Fix symlink handling on iso9660.
11478
11479 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
11480 All users updated.
11481 (grub_iso9660_susp_iterate): Accept zero-size iterate.
11482 (grub_iso9660_read_symlink): Moved most of code ...
11483 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
11484
db821363
VS
114852011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11488 Use union to avoid breaking strict-aliasing rules.
11489
e1211949
VS
114902011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 Support multi-extent iso files.
11493
11494 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
11495 Add node.
11496 (grub_fshelp_node): Revamp. All users updated.
11497 (FLAG_*): New enum.
11498 (read_node): New function.
11499 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
11500 All users updated.
11501 (grub_iso9660_mount): Don't attempt to read sua when there is none.
11502 (get_node_size): New function.
11503 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
11504 entries.
11505 Fix memory leak on . and ..
11506 (grub_iso9660_read): Use read_node.
11507 (grub_iso9660_close): Free node.
11508
d4888031
VS
115092011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11510
11511 Fix tar 4G limit and handle paths containing dot.
11512
11513 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
11514 (canonicalize): New function.
11515 (grub_cpio_find_file): Use canonicalize. Store offs in
11516 grub_disk_addr_t.
11517 (grub_cpio_dir): Use grub_disk_addr_t.
11518 (grub_cpio_open): Likewise.
11519
9f12e664
VS
115202011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 Fix handling of uncompressed blocks on squashfs and break 4G limit.
11523
11524 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
11525 unused flags.
11526 (grub_squash_inode): Add long_file and block_size.
11527 (grub_squash_cache_inode): New struct.
11528 (grub_squash_dirent): Make types into enum.
11529 (SQUASH_TYPE_LONG_REGULAR): New type.
11530 (grub_squash_frag_desc): Add field size.
11531 (SQUASH_BLOCK_FLAGS): New enum.
11532 (grub_squash_data): Use grub_squash_cache_inode.
11533 (grub_fshelp_node): Make ino_chunk 64-bit.
11534 (read_chunk): Minor argument change. All users updated.
11535 (squash_mount): Use correct le_to_cpu.
11536 (grub_squash_open): Handle LONG_REGULAR.
11537 (direct_read): New function.
11538 (grub_squash_read_data): Handle blocks correctly.
11539
9f326fba
VS
115402011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
11543
f4d9b64b
VS
115442011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
11547
5bbd28b8
VS
115482011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11549
11550 Fix 2G limit on ZFS.
11551
11552 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
11553 types.
11554 (uberblock_verify): Likewise.
11555 (dmu_read): Likewise.
11556 (grub_zfs_read): Likewise. Remove invalid cast.
11557
68c72069
VS
115582011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
11561 (grub_jfs_blkno): Fix incorrect shift.
11562 (grub_jfs_read_file): Use more appropriate types.
11563
6e536dc8
VS
115642011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11565
11566 Support triple indirect on minix2 and minix3.
11567
11568 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
11569 Declare triple_indir_zone.
11570 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
11571 indirect.
11572
e0864e7a
VS
115732011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 Minix FS fixes.
11576
11577 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
11578 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
11579 Rename ctime to mtime. All users updated.
11580 (grub_minix_get_file_block): Fix types and double indirect computations.
11581
89481cab
VS
115822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11583
11584 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
11585 if no label is found.
11586 (grub_fat_iterate_dir): Fix file size type.
11587 (grub_fat_iterate_dir): Likewise.
11588
f646e143
VS
115892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
11592 save some space.
11593 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11594 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11595
534d769e
VS
115962011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
11599
e084ba18
VS
116002011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 * util/import_gcry.py: Accept space between # and include.
11603
3471ecdf
VS
116042011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
11607
124df5f6
VS
116082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11609
11610 Fine grainely disable warnings on lexer. Remove Wno-error on it.
11611
11612 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
11613 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
11614 yylex_strncpy.
11615 * grub-core/script/yylex.l: Add fine-grained #pragma.
11616
4defb8d5
VS
116172011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11618
11619 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
11620 New inline function.
11621 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
11622 Likewise.
11623 (memset) [GRUB_UTIL]: Likewise.
11624 (memcmp) [GRUB_UTIL]: Likewise.
11625
4e94ae65
VS
116262011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11627
11628 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
11629 inline function rather than a define.
11630
18c575e5
VS
116312011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 * util/grub-setup.c: Add missing include.
11634
f8bc22a8
VS
116352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 * util/ieee1275/grub-ofpathname.c: Add missing include.
11638
3ce69fc9
VS
116392011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
11642 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
11643 Likewise.
11644
d1e293bb
VS
116452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11646
11647 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
11648 grub_memcmp usage.
11649
7a5c54a4
VS
116502011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11651
11652 * util/grub-install.in: Add datarootdir as per automake manual
11653 suggestion.
11654 * util/grub-mknetdir.in: Likewise.
11655
116562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
11657
11658 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
11659 suggestion.
11660 * util/grub.d/10_kfreebsd.in: Likewise.
11661 * util/grub.d/10_linux.in: Likewise.
11662 * util/grub.d/10_netbsd.in: Likewise.
11663 * util/grub.d/10_windows.in: Likewise.
11664 * util/grub.d/20_linux_xen.in: Likewise.
11665
766f7d08
VS
116662011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 Remove redundant grub_kernel_image_size.
11669
11670 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
11671 _edata and _start.
11672 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
11673 the small code. It moves it only by few bytes but simplifies the code.
11674 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
11675 _start.
11676 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
11677 (grub_kernel_image_size): Removed.
11678 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
11679 (grub_kernel_image_size): Removed.
11680 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
11681 compiled with Apple toolchain.
11682 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
11683 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
11684 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
11685 (grub_total_module_size): Likewise.
11686 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
11687 Removed.
11688 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
11689 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
11690 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11691 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
11692 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
11693 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
11694 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
11695 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
11696 Removed.
11697 (grub_total_module_size): Removed.
11698 * util/grub-mkimage.c (image_target_desc): Remove image_size.
11699 (image_targets): Likewise.
11700 Set .compressed_size to no field on sparc.
11701 (generate_image): Remove kernel_image_size handling.
11702
fcf1d672
SJ
117032011-10-19 Szymon Janc <szymon@janc.net.pl>
11704
11705 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
11706 NULL pointer dereference.
11707
de9c615e
VS
117082011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11709
11710 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
11711 done with a dedicated section.
11712
11713 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
11714 Ensure the correct position of boot_path.
11715 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
11716 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
11717 other fields.
11718 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
11719 * include/grub/boot.h: Removed. All references removed.
11720 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
11721 Removed.
11722 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
11723
e55599dc
VS
117242011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11725
11726 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
11727 name.
11728
36dd20ad
VS
117292011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
11732
f8f72eb8
VS
117332011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11736 Don't add the bogus brackets.
11737
a374751b
VS
117382011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 ExFAT support.
11741
11742 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
11743 * grub-core/Makefile.core.def (exfat): New module.
11744 * grub-core/fs/exfat.c: New file.
11745 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
11746 (GRUB_FAT_ATTR_*): Make into an enum.
11747 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
11748 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
11749 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
11750 (GRUB_FAT_MAXFILE): Removed.
11751 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
11752 (grub_current_fat_bpb_t): New type.
11753 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
11754 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
11755 (grub_fat_dir_node_t): New type.
11756 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
11757 (fat_log2) [MODE_EXFAT]: Removed.
11758 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
11759 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
11760 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
11761 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
11762 (grub_fat_label) [MODE_EXFAT]: New function.
11763 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
11764 reserved_first_sector to 0.
11765
544c2487
VS
117662011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 Move grub_reboot out of the kernel.
11769
11770 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
11771 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
11772 * grub-core/lib/efi/reboot.c: ... here.
11773 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
11774 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
11775 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
11776 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
11777 * grub-core/lib/i386/reboot_trampoline.S: ... here.
11778 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
11779 * grub-core/lib/ieee1275/reboot.c: ... here.
11780 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
11781 * grub-core/lib/mips/arc/reboot.c: ... here.
11782 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
11783 * grub-core/lib/mips/loongson/reboot.c: ...here.
11784 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
11785 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
11786 * include/grub/emu/misc.h (grub_reboot): New function declaration.
11787 * include/grub/i386/reboot.h: New file.
11788 * include/grub/mips/loongson/ec.h: Fix includes.
11789 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
11790 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
11791 * grub-core/lib/i386/reboot.c: New file.
11792
a97501d2
VS
117932011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
11794
11795 Make grub_prefix into module to fix the arbitrary limit and save
11796 some space.
11797
11798 * grub-core/kern/emu/main.c (grub_prefix): Removed.
11799 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
11800 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
11801 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
11802 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
11803 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
11804 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
11805 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
11806 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11807 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
11808 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
11809 * include/grub/ia64/efi/kernel.h: Removed.
11810 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
11811 (grub_prefix): Removed.
11812 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
11813 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
11814 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
11815 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
11816 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
11817 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
11818 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
11819 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
11820 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
11821 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
11822 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11823 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11824 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11825 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11826 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
11827 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
11828 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
11829 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11830 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
11831 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
11832 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
11833 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
11834 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
11835 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
11836 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
11837 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
11838 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
11839 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
11840 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
11841 from module.
11842 * util/grub-mkimage.c (image_target_desc): Removed prefix and
11843 prefix_end.
11844 (image_targets): Likewise.
11845 (generate_image): Put prefix as a module.
11846
39705fad
VS
118472011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 Replace grub_module_iterate with FOR_MODULES.
11850
11851 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
11852 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
11853 (grub_efi_modules_addr): ...this.
11854 * grub-core/kern/efi/init.c (grub_modbase): New variable.
11855 (grub_efi_init): Set grub_modbase.
11856 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
11857 (grub_modbase): New variable.
11858 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
11859 (grub_modbase): New variable.
11860 (grub_machine_init): Set grub_modbase.
11861 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
11862 (grub_modbase): New variable.
11863 (grub_machine_init): Set grub_modbase.
11864 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
11865 (grub_modbase): New variable.
11866 (grub_machine_init): Set grub_modbase.
11867 * grub-core/kern/main.c (grub_module_iterate): Remove.
11868 (grub_modules_get_end): Use grub_modbase.
11869 (grub_load_modules): Use FOR_MODULES.
11870 (grub_load_config): Likewise.
11871 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
11872 (grub_modbase): New variable.
11873 (grub_machine_init): Set grub_modbase.
11874 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
11875 (grub_modbase): New variable.
11876 (grub_machine_init): Set grub_modbase.
11877 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
11878 Removed.
11879 (grub_modbase): New variable.
11880 (grub_machine_init): Set grub_modbase.
11881 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
11882 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
11883 (grub_module_iterate): Likewise.
11884 (grub_modbase): New variable declaration.
11885 (FOR_MODULES): New macro.
11886
2afb7f6c
VS
118872011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * configure.ac: Check for __ctzdi2 and __ctzsi2.
11890 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
11891
366e34fa
VS
118922011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 Fix few obvious type discrepancies.
11895
11896 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11897 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
11898 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
11899 variable.
11900 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
11901 and connected types.
11902 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
11903 offset.
11904 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
11905 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
11906 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
11907 and connected types.
11908
177b960e
VS
119092011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11910
11911 Fix python 3.x incompatibilities.
11912
11913 * gentpl.py: Put brackets around print strings.
11914 * util/import_gcry.py: Open explicitly as utf-8.
11915 Use in instead of has_key.
11916
3b619ae1
VS
119172011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
11920 (GRUB_XFS_INO_AGBITS): Make into inline function.
11921 (GRUB_XFS_INO_INOINAG): Likewise.
11922 (GRUB_XFS_INO_AG): Likewise.
11923 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11924 (GRUB_XFS_EXTENT_OFFSET): Likewise.
11925 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11926 (GRUB_XFS_EXTENT_SIZE): Likewise.
11927 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
11928 (GRUB_XFS_NEXT_DIRENT): Likewise.
11929 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
11930 (grub_xfs_read_file): Fix offset type.
11931
8bcebcb8
RM
119322011-10-15 Robert Millan <rmh@gnu.org>
11933
11934 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
11935
0017e5ef
RM
119362011-10-15 Robert Millan <rmh@gnu.org>
11937
11938 Fix build problem on FreeBSD and GNU/kFreeBSD.
11939
11940 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
11941
d8919552
VS
119422011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
11945
11946 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
11947 types.
11948 (grub_hfsplus_btree_recoffset): Likewise.
11949 (grub_hfsplus_btree_recptr): Likewise.
11950 (grub_hfsplus_find_block): Likewise.
11951 (grub_hfsplus_btree_search): Likewise.
11952 (grub_hfsplus_read_block): Likewise.
11953 (grub_hfsplus_read_file): Likewise.
11954 (grub_hfsplus_mount): Likewise.
11955 (grub_hfsplus_btree_iterate_node): Likewise.
11956 (grub_hfsplus_btree_search): Likewise.
11957 (grub_hfsplus_iterate_dir): Likewise.
11958 (grub_hfsplus_read): A small code simplification.
11959
c81296b6
VS
119602011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * grub-core/kern/emu/hostdisk.c
11963 (convert_system_partition_to_system_disk): Don't assume that children
11964 of mapper nodes are mapper nodes.
11965
0eb8ffb1
VS
119662011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11967
11968 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11969 * include/grub/misc.h (grub_isxdigit): New function.
11970 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11971 switched to grub_isxdigit.
11972 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11973 number starting with a letter.
11974
a98f4a08
RM
119752011-10-09 Robert Millan <rmh@gnu.org>
11976
11977 LVM support for FreeBSD and GNU/kFreeBSD.
11978
11979 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11980 GNU/kFreeBSD.
11981 (LVM_DEV_MAPPER_STRING): Move from here ...
11982 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11983 * util/getroot.c: Include `<grub/util/lvm.h>'.
11984 (grub_util_get_dev_abstraction): Enable
11985 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11986 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11987 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11988 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11989 support it.
11990 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11991 GNU/kFreeBSD.
11992 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11993 when LVM abstraction is required for ${GRUB_DEVICE}.
11994
050e8e90
SJ
119952011-10-06 Szymon Janc <szymon@janc.net.pl>
11996
11997 Add support for LZO compression in GRUB:
11998 - import of minilzo library,
11999 - LZO decompression for btrfs,
12000 - lzop files decompression.
12001
12002 * grub-core/io/lzopio.c: New file.
12003 * grub-core/lib/adler32.c: Likewise.
12004 * grub-core/lib/minilzo/lzoconf.h: Likewise.
12005 * grub-core/lib/minilzo/lzodefs.h: Likewise.
12006 * grub-core/lib/minilzo/minilzo.c: Likewise.
12007 * grub-core/lib/minilzo/minilzo.h: Likewise.
12008 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
12009 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
12010 grub-core/lib/minilzo/minilzo.c to common.
12011 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
12012 cflags in cppflags.
12013 * grub-core/Makefile.core.def (btrfs): Likewise.
12014 * grub-core/Makefile.core.def (lzopio): New module.
12015 (adler32): Likewise.
12016 * grub-core/fs/btrfs.c: Include minilzo.h.
12017 (GRUB_BTRFS_COMPRESSION_LZO): New define.
12018 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
12019 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
12020 (grub_btrfs_lzo_decompress): New function.
12021 (grub_btrfs_extent_read): Add support for LZO compression type.
12022 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
12023 (GRUB_USHRT_MAX): Likewise.
12024 (GRUB_UINT_MAX): Likewise.
12025 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
12026 (UINT_MAX): Likewise.
12027 (CHAR_BIT): Likewise.
12028 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
12029 grub-core/lib/posix_wrap/limits.h
12030 (UCHAR_MAX): Likewise.
12031 * include/grub/file.h (grub_file_filter_id): New compression filter
12032 GRUB_FILE_FILTER_LZOPIO.
12033 * include/grub/file.h (grub_file_filter_id): Set
12034 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
12035 * include/grub/types.h (grub_get_unaligned16): New function.
12036 (grub_get_unaligned32): Likewise.
12037 (grub_get_unaligned64): Likewise.
12038 * util/import_gcry.py (cryptolist): Add adler32.
12039
0eb8ffb1
VS
120402011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
12043 in perspective decreases the complexity of build system and fixes
12044 compilation right now.
12045
ce79cc99 120462011-10-01 Ales Nesrsta <starous@volny.cz>
12047
12048 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
12049 (fixed problem related to using UHCI with coreboot).
12050
8667a314
BC
120512011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12052
12053 * gentpl.py: Use Autogen macros so that the output template file
12054 (Makefile.tpl) size is reduced.
12055
fc5efcc0
MK
120562011-09-29 Mads Kiilerich <mads@kiilerich.com>
12057
12058 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
12059 extra_dist.
12060
d1ab689d
ML
120612011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12062
12063 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
12064 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
12065
c05de032
ML
120662011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12067
12068 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
12069 _fullpath.
12070
cca7ccd8
ML
120712011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12072
12073 Remove extra declaration of sleep for mingw32.
12074
12075 * util/misc.c (sleep) [__MINGW32__]: Removed.
12076 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
12077
e0b0dc83
GS
120782011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
12079
12080 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
12081 type and packname.
12082 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
12083 Resurrected.
12084 (NETBSD_BTINFO_BOOTWEDGE): New definition.
12085 (grub_netbsd_btinfo_bootwedge): New struct.
12086 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12087 New function.
12088 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
12089
91a1a164
TH
120902011-09-28 Thomas Haller <thomas.haller@fen-net.de>
12091
12092 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
12093 loader.
12094
2ded951e
AB
120952011-09-28 Andreas Born <futur.andy@googlemail.com>
12096
12097 Fix incorrect identifiers in bash-completion.
12098
12099 * util/bash-completion.d/grub-completion.bash.in
12100 (_grub_mkpasswd-pbkdf2): Rename to ...
12101 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
12102 (_grub_script-check): Rename to ...
12103 (_grub_script_check): ... this. All users updated.
12104
69915030
VS
121052011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
12108 Return 0 if disk isn't biosdisk.
12109
20fd15f9
GS
121102011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12111
12112 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
12113 on NetBSD.
12114 * Makefile.util.def (grub-fstest): Likewise.
12115
1a7d7db9
GS
121162011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12117
12118 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
12119 Get sector size from disk label.
12120
2221ab6c
CW
121212011-09-05 Colin Watson <cjwatson@ubuntu.com>
12122
12123 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
12124 */README* as well as README*.
12125 Reported by: Axel Beckert.
12126
ca51c4a0
VS
121272011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
12130 case of less than 256 MiB of RAM.
12131
ab80f326
VS
121322011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * grub-core/commands/wildcard.c (make_regex): Handle @.
12135
4155e697
VS
121362011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12137
12138 * util/grub-install.in: Move cryptodisk logic to appropriate place.
12139
ab178c08
SJ
121402011-08-21 Szymon Janc <szymon@janc.net.pl>
12141
12142 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
12143 AC_LANG_CONFTEST macros.
12144
7dc3c686
SJ
121452011-08-20 Szymon Janc <szymon@janc.net.pl>
12146
12147 Add grub-fstest option to uncompress data for commands.
12148
12149 * util/grub-fstest.c (uncompress): New var.
12150 (options): New option -u.
12151
fe8d4a7b
SJ
121522011-08-20 Szymon Janc <szymon@janc.net.pl>
12153
12154 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12155 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12156
a5219af1
SJ
121572011-08-20 Szymon Janc <szymon@janc.net.pl>
12158
12159 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12160 file type was not recognized correctly (not gzip or corrupted).
12161
f87abff5
VS
121622011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12163
12164 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12165 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12166
d94497ea
VS
121672011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12170 loongson.
12171 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12172 video_radeon_fuloong2e.
12173 * grub-core/video/radeon_fuloong2e.c: New file.
12174 * include/grub/video.h (grub_video_id_t): Add new ID
12175 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12176
0d1fd011
VS
121772011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12180 define.
12181 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12182 that PRID matches the detected subplatform and reset the subplatform
12183 if it doesn't.
12184
84beb0ee
VS
121852011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12186
12187 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12188
1227c133
VS
121892011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 Fix PCI iterating on functions >= 4.
12192
12193 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12194 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12195 Removed.
12196 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12197 (grub_pci_read): Fix bitmask.
12198 (grub_pci_read_word): Likewise.
12199 (grub_pci_read_byte): Likewise.
12200 (grub_pci_write): Likewise.
12201 (grub_pci_write_word): Likewise.
12202 (grub_pci_write_byte): Likewise.
12203
9594c689
VS
122042011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12207 can still be specified in TARGET_CFLAGS)
12208
14a2562c
VS
122092011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12210
12211 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12212
12213 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12214 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12215 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12216 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12217 (FULOONG): Rename to ...
12218 (FULOONG2F): ... this. All users updated.
12219 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12220 (machtype_fuloong2f_str): ... this.
12221 (machtype_fuloong2e_str): New string.
12222 Check for machtype_fuloong2e_str.
12223 * grub-core/loader/mips/linux.c (loongson_machtypes)
12224 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12225 * grub-core/term/serial.c (loongson_defserial)
12226 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12227 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12228 loongson_defserial.
12229 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12230 Rename to ...
12231 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12232 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12233 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12234 to IMAGE_FULOONG2F_FLASH. All users updated.
12235 (image_targets): Rename images.
12236 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12237
b526cbb6
SJ
122382011-08-19 Szymon Janc <szymon@janc.net.pl>
12239
12240 Make enable of disk cache statistics code configurable.
12241
12242 * configure.ac: --enable-cache-stats added.
12243 * config.h.in (DISK_CACHE_STATS): New define.
12244 * grub-core/Makefile.core.def (cacheinfo): New command.
12245 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12246 * grub-core/commands/cacheinfo.c: New file.
12247 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12248 moved to cacheinfo.c.
12249 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12250 debug code.
12251 * include/grub/disk.h: Likewise.
12252
fb739ccd
SJ
122532011-08-19 Szymon Janc <szymon@janc.net.pl>
12254
12255 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12256 * grub-core/Makefile.am: Likewise.
12257
2bba8cfd
VS
122582011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12261 non-zero pull.
12262
43526629
VS
122632011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12266 All users updated.
12267 (grub_jfs_lookup_symlink): Use correct starting inode.
12268
5c144cc8
VS
122692011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 * util/grub-setup.c (main): Add missing gcry initialisation.
12272
b1257f65
VS
122732011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 Don't accept text modes on EFI when booting Linux.
12276
12277 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12278 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12279
828bc390
ML
122802011-08-15 Mario Limonciello <mario_limonciello@dell.com>
122812011-08-15 Colin Watson <cjwatson@ubuntu.com>
12282
12283 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12284 use of "/path/.." as in grub-install for EFI as well as handling
12285 symlinks correctly.
12286 Fixes Debian bug #637768.
12287
5f60ccac
CW
122882011-08-15 Colin Watson <cjwatson@ubuntu.com>
12289
12290 * util/grub-probe.c: Remove duplicate #include.
12291
6dc212f9
RM
122922011-08-10 Robert Millan <rmh@gnu.org>
12293
12294 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12295
12296 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12297 function.
12298 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12299 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12300
66816d85
RM
123012011-08-03 Robert Millan <rmh@gnu.org>
12302
12303 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12304 la_array as packed.
12305 Reported by: Zachary Bedell
12306
20168fca
CW
123072011-07-26 Colin Watson <cjwatson@ubuntu.com>
12308
12309 * configure.ac: The Loongson port requires grub-mkfont due to its
12310 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12311 be built.
12312
303b6246
CW
123132011-07-26 Colin Watson <cjwatson@ubuntu.com>
12314
12315 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12316 processing arguments (otherwise help2man fails when GRUB has not yet
12317 been installed).
12318
6795300e
VS
123192011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12320
41aa28ea
VS
12321 New script grub-mkstandalone.
12322
12323 * Makefile.util.def (grub-mkstandalone): New script.
12324 * docs/man/grub-mkstandalone.h2m: New file.
12325 * util/grub-mkstandalone.in: Likewise.
12326
123272011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12328
12329 Support ATA disks with 4K sectors.
6795300e
VS
12330
12331 * include/grub/ata.h (grub_ata): New member log_sector_size.
12332 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12333 (grub_ata_identify): Read sector size.
12334 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12335
92227597
VS
123362011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * util/grub-install.in: Don't use uhci outside of x86.
12339
c77069f5
VS
123402011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * util/grub-mkrescue.in: Add missing quotes.
12343
123442011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
12345
12346 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12347 dereference.
12348
583168a2
VS
123492011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12352
6be1c01f
VS
123532011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * include/grub/video.h: add missing EXPORT_FUND on
12356 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12357
a1167439
VS
123582011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12359
12360 * include/grub/mips/kernel.h: Fix define conflict.
12361
bf66054f
VS
123622011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12363
12364 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12365 all four ways.
12366
8fc4fa45
CW
123672011-07-21 Colin Watson <cjwatson@ubuntu.com>
12368
12369 Preferred resolution detection for VBE.
12370
12371 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12372 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12373 the Flat Panel extension, in line with the X.org VESA driver.
12374 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12375 New function.
12376 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12377 (grub_vbe_bios_read_edid): Likewise.
12378 (grub_vbe_get_preferred_mode): Likewise.
12379 (grub_video_vbe_setup): When the mode is "auto", try to get the
12380 preferred mode from VBE, and use the largest mode that is no larger
12381 than the preferred mode (some BIOSes expose a preferred mode that is
12382 not in their mode list!). If this fails, fall back to 640x480 as a
12383 safe conservative choice.
12384 (grub_video_vbe_get_edid): New function.
12385 (grub_video_vbe_adapter): Add get_edid.
12386 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12387 (struct grub_video_adapter): Add get_edid.
12388 (grub_video_edid_checksum): Add prototype.
12389 (grub_video_edid_preferred_mode): Likewise.
12390 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12391 structure.
12392
12393 * grub-core/commands/videoinfo.c (print_edid): New function.
12394 (grub_cmd_videoinfo): Print EDID if available.
12395
12396 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12397 is more appropriate on a wider range of platforms than 640x480.
12398 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12399 documentation.
12400
ca5572a9
VS
124012011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12402
12403 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12404
e4bcf625
VS
124052011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12406
12407 * po/POTFILES.in: Regenerate.
12408
c4edd548
VS
124092011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12412 incorrect memory usage.
12413
16a2bab0
VS
124142011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 * util/grub-install.in: Source grub-mkconfig_lib.
12417
2e418de6
VS
124182011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 Remove getroot.c from core on emu platform.
12421
12422 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12423 kern/emu/raid.c.
12424 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12425 useless.
12426 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12427 * util/getroot.c (get_win32_path): ... here.
12428 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12429 * util/getroot.c (fini_libzfs): ... here.
12430 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12431 * util/getroot.c (grub_get_libzfs_handle): ... here.
12432 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12433 Moved from here...
12434 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12435 * grub-core/kern/emu/misc.c
12436 (grub_make_system_path_relative_to_its_root): Moved from here...
12437 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12438 * grub-core/kern/emu/getroot.c: Moved from here ...
12439 * util/getroot.c: ... here. All users updated.
12440 * grub-core/kern/emu/raid.c: Moved from here ...
12441 * util/raid.c: ... here. All users updated.
12442
def9832a
VS
124432011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 * po/POTFILES.in: Regenerate.
12446
cd8fe79a
VS
124472011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 Fix compilation on GNU/Linux.
12450
12451 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
12452 Disable geli.
12453 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
12454 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
12455 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
12456
a251b719
VS
124572011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
124582011-07-07 Michael Gorven <michael@gorven.za.net>
124592011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
12460
12461 LUKS and GELI support.
12462
12463 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
12464 grub-core/disk/luks.c, grub-core/disk/geli.c,
12465 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
12466 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
12467 grub-core/lib/arg.c.
12468 (libgrubmods.a): Remove gcrypts cflags and cppflags.
12469 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
12470 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
12471 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
12472 (grub-bin2h): Add libgcry.a.
12473 (grub-mkimage): Likewise.
12474 (grub-mkrelpath): Likewise.
12475 (grub-script-check): Likewise.
12476 (grub-editenv): Likewise.
12477 (grub-mkpasswd-pbkdf2): Likewise.
12478 (grub-pe2elf): Likewise.
12479 (grub-fstest): Likewise.
12480 (grub-mkfont): Likewise.
12481 (grub-mkdevicemap): Likewise.
12482 (grub-probe): Likewise.
12483 (grub-ofpath): Likewise.
12484 (grub-mklayout): Likewise.
12485 (example_unit_test): Likewise.
12486 (grub-menulst2cfg): Likewise.
12487 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
12488 * grub-core/Makefile.core.def (cryptodisk): New module.
12489 (luks): Likewise.
12490 (geli): Likewise.
12491 * grub-core/disk/AFSplitter.c: New file.
12492 * grub-core/disk/cryptodisk.c: Likewise.
12493 * grub-core/disk/geli.c: Likewise.
12494 * grub-core/disk/luks.c: Likewise.
12495 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
12496 grub_util_is_lvm.
12497 (grub_util_get_dm_abstraction): New function.
12498 (grub_util_follow_gpart_up): Likewise.
12499 (grub_util_get_geom_abstraction): Likewise.
12500 (grub_util_get_dev_abstraction): Use new functions.
12501 (grub_util_pull_device): Pull GELI and LUKS.
12502 (grub_util_get_grub_dev): Handle LUKS and GELI.
12503 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
12504 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
12505 (follow_geom_up): Removed.
12506 (grub_util_fd_seek): New function.
12507 (open_device): Use grub_util_fd_seek.
12508 (nread): Rename to ..
12509 (grub_util_fd_read): ... this. All users updated.
12510 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
12511 (grub_crypto_cbc_decrypt): Likewise.
12512 (grub_crypto_hmac_write): Likewise.
12513 (grub_crypto_hmac_buffer): Likewise.
12514 (grub_password_get): Extend to util.
12515 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
12516 New member modname.
12517 (gcry_md_spec) [GRUB_UTIL]: Likewise.
12518 * include/grub/cryptodisk.h: New file.
12519 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
12520 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
12521 LUKS and GELI.
12522 (grub_util_follow_gpart_up): New proto.
12523 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
12524 (grub_util_fd_read): Likewise.
12525 (grub_cryptodisk_cheat_mount): Likewise.
12526 (grub_util_cryptodisk_print_uuid): Likewise.
12527 (grub_util_get_fd_sectors): Likewise.
12528 * util/grub-fstest.c (mount_crypt): New var.
12529 (fstest): Mount crypto if requested.
12530 (options): New option -C.
12531 (argp_parser): Parse -C.
12532 (main): Init and fini gcry.
12533 * util/grub-install.in: Support cryptodisk install.
12534 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
12535 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
12536 cryptodisk.
12537 (prepare_grub_to_access_device): Likewise.
12538 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
12539 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
12540 (probe_cryptodisk_uuid): New function.
12541 (probe_abstraction): Likewise.
12542 (probe): Use new functions.
12543 * util/import_gcry.py: Create Makefile.utilgcry.def.
12544 Add modname member.
12545
9bfdcbbc
VS
125462011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 Lazy device scanning.
12549
12550 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
12551 (grub-setup): Remove util/raid.c.
12552 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
12553 * grub-core/disk/lvm.c (scan_depth): New variable.
12554 (grub_lvm_iterate): Rescan if necessary.
12555 (find_lv): New function based on grub_lvm_open.
12556 (grub_lvm_open): Use find_lv. Rescan on error.
12557 (is_node_readable): New function.
12558 (is_lv_readable): Likewise.
12559 (grub_lvm_scan_device): Skip already found disks.
12560 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
12561 Stop if searched device is found and readable.
12562 * grub-core/disk/raid.c (inscnt): New variable.
12563 (scan_depth): Likewise.
12564 (scan_devices): New function based on grub_raid_register. Abort if
12565 looked for device is found.
12566 (grub_raid_iterate): Rescan if needed.
12567 (find_array): NEw function based on -grub_raid_open.
12568 (grub_raid_open): Use find_array and rescan.
12569 (insert_array): Set became_readable_at.
12570 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
12571 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
12572 New function.
12573 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
12574 (grub_util_pull_device): New function.
12575 (grub_util_get_grub_dev): Call grub_util_pull_device.
12576 * util/raid.c: Moved to ..
12577 * grub-core/kern/emu/raid.c: ... here.
12578 (grub_util_raid_getmembers): New parameter "bootable".
12579 All users updated. Support 1.x.
12580 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
12581 All users updated.
12582 * include/grub/disk.h (grub_disk_pull_t): New enum.
12583 (grub_disk_dev): Change iterate prototype.
12584 All users updated.
12585 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
12586 New proto.
12587 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
12588 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
12589 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
12590 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
12591 All users updated.
12592 * include/grub/util/raid.h: Removed.
12593
1c358e59
VS
125942011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12595
12596 * po/POTFILES.in: Regenerate.
12597
abee94ed
VS
125982011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12599
12600 Unify sparc init with other ieee1275.
12601
12602 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
12603 instead of kern/sparc64/ieee1275/init.c.
12604 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
12605 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
12606 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
12607 grub/machine/kernel.h.
12608 (grub_ieee1275_original_stack) [__sparc__]: New variable.
12609 (grub_claim_heap) [__sparc__]: Use sparc version.
12610 (grub_machine_init): Moved args parsing to
12611 (grub_parse_cmdline): ...this.
12612 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
12613 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
12614 New definition.
12615 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
12616
12617 Move BOOTP to separate file.
12618
12619 * grub-core/Makefile.core.def (net): Add net/bootp.c.
12620 * grub-core/net/net.c: Move all BOOTP functions to
12621 * grub-core/net/bootp.c: ... here.
12622
12623 Use frame interface on PXE.
12624
12625 * grub-core/Makefile.core.def (pxecmd): Removed.
12626 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
12627 * grub-core/commands/i386/pc/pxecmd.c: Removed.
12628 * grub-core/i386/pc/pxe.c: Moved from here ...
12629 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
12630 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
12631 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
12632
12633 EFI network support.
12634
12635 * grub-core/Makefile.core.def (efinet): New module.
12636 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
12637 here...
12638 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
12639 All users updated.
12640 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
12641 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
12642 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
12643 * grub-core/net/drivers/efi/efinet.c: New file.
12644 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
12645 (grub_efi_net_config): New extern var.
12646
12647 Various cleanups and bugfixes.
12648
12649 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
12650 error.
12651 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
12652 disk declared as partition.
12653 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
12654 leak on failure.
12655 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
12656 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
12657 (grub_debug_zalloc): Likewise.
12658 (grub_debug_realloc): Likewise.
12659 (grub_debug_memalign): Likewise.
12660 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
12661 Check that target is IPv4.
12662 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
12663 local-mac-address as fallback.
12664 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
12665 memory leak.
12666 * grub-core/net/ip.c (ipchksum): Rename to ...
12667 (grub_net_ip_chksum): ... this. All users updated.
12668 (grub_net_recv_ip_packets): Special handling for DHCP.
12669 * util/grub-mkimage.c (generate_image): Zero-out aout header.
12670
12671 Unify prefix handling
12672
12673 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
12674 (grub_machine_get_bootlocation): ... this.
12675 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
12676 (grub_machine_get_bootlocation): ... this.
12677 (grub_prefix): New variable.
12678 (prefix): Removed.
12679 (root_dev): New variable.
12680 (dir): Likewise.
12681 (main): Use new variables.
12682 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
12683 Revamped into ...
12684 (grub_machine_get_bootlocation): ... this.
12685 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
12686 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
12687 (grub_machine_get_bootlocation): ... this.
12688 (grub_machine_set_prefix): Removed.
12689 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
12690 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
12691 Revamped into ...
12692 (grub_machine_get_bootlocation): ... this.
12693 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
12694 (grub_set_prefix_and_root): ... this. All users updated.
12695 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
12696 Revamped into ...
12697 (grub_machine_get_bootlocation): ... this.
12698 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
12699 (grub_machine_get_bootlocation): New proto.
12700 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
12701
12702 Less intrusive and more reliable seek on network implementation.
12703
12704 * grub-core/kern/file.c (grub_file_net_seek): Removed.
12705 (grub_file_seek): Don't call grub_file_net_seek.
12706 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
12707 (grub_net_fs_read_real): .. this.
12708 (grub_net_seek_real): Use net->offset.
12709 (grub_net_fs_read): Seek if necessary.
12710
12711 Unify IEEE1275 netwotk config with the other platforms.
12712
12713 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
12714 New variable.
12715 (grub_machine_get_bootlocation): Support network.
12716 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12717 Support type and device parsing.
12718 (grub_ieee1275_get_device_type): New function.
12719 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
12720 into ...
12721 (grub_ieee1275_net_config_real): ... this.
12722 (grub_ofnet_probecards): Removed.
12723 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
12724 * include/grub/ieee1275/ofnet.h: Removed.
12725 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
12726 extern var.
12727 (grub_ieee1275_get_device_type): New function.
12728
12729 Unify network device closing across platforms and make more robust.
12730
12731 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
12732 grub_grubnet_fini.
12733 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
12734 already.
12735 * grub-core/net/net.c (grub_net_network_level_interface_register):
12736 Update num_ifaces.
12737 (grub_net_card_unregister): Close all interfaces.
12738 (receive_packets): Don't poll if no iterfaces are registered.
12739 Open if necessary.
12740 (grub_net_fini_hw): New function.
12741 (grub_net_restore_hw): Likewise.
12742 (fini_hnd): New variable.
12743 (GRUB_MOD_INIT): Register preboot hook.
12744 (GRUB_MOD_FINI): Run and unregister preboot hook.
12745
12746 Poll network cards when idle.
12747
12748 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
12749 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
12750 * grub-core/net/net.c (receive_packets): Save last poll time.
12751 (grub_net_poll_cards_idle_real): New function.
12752 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
12753 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
12754 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
12755
12756 Rename ofnet interfaces.
12757
12758 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
12759 (grub_ofnet_findcards): Use ofnet_%s names.
12760
12761 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
12762
12763 Cleanup socket opening.
12764
12765 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
12766 (grub_net_fs_close): Likewise.
12767 (grub_net_fs_read_real): Use eof member.
12768 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
12769 (+grub_net_udp_close): New inline function.
12770
12771 * include/grub/net/tftp.h: Moved to the top of ...
12772 * grub-core/net/tftp.c: ... here.
12773 * include/grub/net/ip.h: Moved mostly to the top of ...
12774 * grub-core/net/ip.c: ... here.
12775 * include/grub/net/ethernet.h: Moved mostly to the top of ...
12776 * grub-core/net/ethernet.c: ... here.
12777
12778 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
12779
12780 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
12781 FS name.
12782
12783 * include/grub/net/ip.h (ipv4_ini): Removed.
12784 (ipv4_fini): Likewise.
12785
12786 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
12787 (grub_net_send_ip_packets): Likewise.
12788
cf1337aa
VS
127892011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
12792 grub_read_cmos prototype.
12793
93c06ff9
VS
127942011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 VGA text support in qemu-mips
12797
12798 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
12799 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
12800 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
12801 text.
12802 * grub-core/kern/i386/qemu/init.c: Renamed to ...
12803 * grub-core/kern/vga_init.c: ... this.
12804 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
12805 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
12806 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
12807 Adjust.
12808 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
12809 GRUB_MACHINE_PCI_IO_BASE.
12810
748ccabe
VS
128112011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 MIPS qemu flash support.
12814
12815 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
12816 magic.
12817 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
12818 (grub_machine_init): Probe memory if its size isn't known.
12819 * util/grub-mkimage.c (image_targets): Add flash targets.
12820 (generate_image): Handle flash targets.
12821
d7345994
VS
128222011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 MIPS qemu at_keyboard support.
12825
12826 * gentpl.py (videoinkernel): Add qemu-mips.
12827 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
12828 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
12829 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
12830 modules.
12831 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
12832 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
12833 * grub-core/term/serial.c (grub_serial_register)
12834 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
12835
a07a81b3
VS
128362011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 CMOS support on sparc.
12839
12840 * gentpl.py (cmos): Add powerpc and sparc.
12841 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
12842 powerpc and sparc.
12843 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
12844 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
12845 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
12846 grub_set_datetime_cmos.
12847 * grub-core/lib/ieee1275/cmos.c: New file.
12848 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
12849 (find_rtc): Set no_ieee1275_rtc on error.
12850 (grub_get_datetime): Call grub_get_datetime_cmos on error.
12851 (grub_set_datetime): Call grub_set_datetime_cmos on error.
12852 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
12853 fail. Move value to argument. All users updated
12854 (grub_cmos_write): Likewise.
12855 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
12856 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
12857 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
12858 grub_get_datetime_cmos and grub_set_datetime_cmos.
12859
77546584
GS
128602011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12861
12862 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
12863 sourcing grub-mkconfig_lib.
12864 * util/update-grub_lib.in: Likewise.
12865 * util/grub.d/00_header.in: Likewise.
12866 * util/grub.d/10_hurd.in: Likewise.
12867 * util/grub.d/10_kfreebsd.in: Likewise.
12868 * util/grub.d/10_linux.in: Likewise.
12869 * util/grub.d/10_netbsd.in: Likewise.
12870 * util/grub.d/10_windows.in: Likewise.
12871 * util/grub.d/20_linux_xen.in: Likewise.
12872 * util/grub.d/30_os-prober.in: Likewise.
12873
54894791
CW
128742011-06-28 Colin Watson <cjwatson@ubuntu.com>
12875
12876 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
12877 default_bg_color rather than black.
12878 (grub_gfxterm_fullscreen): Likewise.
12879 (grub_gfxterm_background_color_cmd): Save new background color in
12880 default_bg_color.
12881
8d5d8444
VS
128822011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
12885
5afeb5bd
VS
128862011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12887
12888 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
12889 mismerge.
12890
ba7df45e
VS
128912011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 Chainloading on coreboot support.
12894
12895 * grub-core/Makefile.core.def (chain): Add coreboot.
12896 * grub-core/loader/i386/coreboot/chainloader.c: New file.
12897
d0b526b2
VS
128982011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
12901 if it happens.
12902
5ff1d945
VS
129032011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 Implement time command.
12906
12907 * grub-core/Makefile.core.def (time): New module.
12908 * grub-core/commands/time.c: New file.
12909 * grub-core/script/parser.y: Remove "time" keyword.
12910 * grub-core/script/yylex.l: Likewise.
12911
5ebaad7e
VS
129122011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12913
12914 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
12915
bdea3798
VS
129162011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12917
12918 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
12919 when handling leftovers.
12920
b28c5655
VS
129212011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
12924 so that help2man doesn't fail.
12925
b6f945dc
VS
129262011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12927
12928 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
12929 type in pointers on sparc64.
12930 (get_card_packet): Likewise.
12931
f9b75e8a
CW
129322011-06-27 Colin Watson <cjwatson@ubuntu.com>
12933
12934 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
12935 with `*'.
12936 (grub_cmd_videoinfo): Fetch current video mode.
12937
1e3d9b86
VS
129382011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12939
12940 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
12941 because of underlying system restrictions.
12942
efff4b1c
VS
129432011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
12946 necessary.
12947
9fc9ce37
VS
129482011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 Coreboot video support.
12951
12952 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
12953 (vbe): Likewise.
12954 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
12955 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
12956 here ...
12957 * grub-core/kern/i386/int.S: ... here.
12958 * grub-core/video/i386/pc/vbe.c: Updated includes.
12959 * grub-core/video/i386/pc/vga.c: Likewise.
12960 * include/grub/i386/coreboot/memory.h
12961 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
12962 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12963 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12964 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12965 Disable interrupts.
12966 * include/grub/i386/pc/vga.h: Removed. All users updated.
12967
41bec7fe
VS
129682011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12971 definitions for dprintf.
12972 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12973
ca80309d
VS
129742011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12977 prototype.
12978 (get_card_packet): Likewise.
12979
9e322ce8
YB
129802011-06-26 Yves Blusseau <blusseau@zetam.org>
12981
12982 Display the path of the file when file is not found
12983
12984 * grub-core/fs/fat.c: Display the filename when file is not found.
12985 * grub-core/fs/fshelp.c: Likewise.
12986 * grub-core/fs/hfs.c: Likewise.
12987 * grub-core/fs/jfs.c: Likewise.
12988 * grub-core/fs/minix.c: Likewise.
12989 * grub-core/fs/ufs.c: Likewise.
12990 * grub-core/fs/btrfs.c: Likewise.
12991 * grub-core/commands/i386/pc/play.c: Likewise.
12992
cbf597af
SJ
129932011-06-26 Szymon Janc <szymon@janc.net.pl>
12994
12995 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12996 pointer checks before calling grub_free().
12997 * grub-core/commands/wildcard.c (match_devices): Likewise.
12998 * grub-core/commands/wildcard.c (match_files): Likewise.
12999 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
13000 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
13001 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
13002 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
13003 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
13004 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
13005 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
13006 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
13007 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
13008
6295b32f
P
130092011-06-25 Patrick <p55@mailinator.com>
13010
13011 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
13012
77c0840b
VS
130132011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
13016 (grub_pxe_send): Likewise.
13017 (GRUB_MOD_INIT): Fix types.
13018
40ea05de
SJ
130192011-06-24 Szymon Janc <szymon@janc.net.pl>
13020
13021 * grub-core/io/xzio.c: Fix code style issues
13022
90162423
MRA
130232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
130242011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
13025
13026 Network infrastructure.
13027 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
13028
13029 * include/grub/net/arp.h: New file.
90162423
MRA
13030 * include/grub/net/device.h: Likewise.
13031 * include/grub/net/ethernet.h: Likewise.
13032 * include/grub/net/ip.h: Likewise.
13033 * include/grub/net/netbuff.h: Likewise.
13034 * include/grub/net/tftp.h: Likewise.
13035 * include/grub/net/udp.h: Likewise.
13036 * include/grub/ieee1275/ofnet.h: Likewise.
13037 * include/grub/emu/export.h: Likewise.
13038 * include/grub/net.h: Likewise.
13039 * grub-core/net/arp.c: Likewise.
13040 * grub-core/net/ethernet.c: Likewise.
13041 * grub-core/net/ip.c: Likewise.
13042 * grub-core/net/udp.c: Likewise.
13043 * grub-core/net/tftp.c: Likewise.
13044 * grub-core/net/netbuff.c: Likewise.
13045 * grub-core/net/net.c: Likewise.
13046 * grub-core/net/drivers/emu/emunet.c: Likewise.
13047 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
13048 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
13049 export.h.
13050 * grub-core/Makefile.core.def (net): New module.
13051 (tftp): Likewise.
13052 (ofnet): Likewise.
13053 (emunet): Likewise.
13054 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
13055 network protocols.
13056 * grub-core/kern/device.c (grub_net_open) : New variable.
13057 (grub_device_open): Handle network device.
13058 (grub_device_close): Likewise.
13059 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
13060 (grub_grubnet_fini): Likewise.
13061 (grub_file_seek): Seek in network device.
13062 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
13063 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
13064 network root.
13065 (grub_machine_fini): Call grub_grubnet_fini.
13066 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
13067 network.
13068 (grub_ieee1275_get_aliasdevname): New function.
13069 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
13070 Add unofficial Solaris network info.
13071 (grub_multiboot_make_mbi): Likewise.
13072 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
13073 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
13074 * include/grub/device.h (grub_fs): Removed.
13075 * include/grub/err.h (grub_err_t): Add network-related values.
13076 * include/grub/i386/pc/pxe.h: Removed bootp parts.
13077 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
13078 (grub_ieee1275_get_aliasdevname): New proto.
13079 * include/grub/net.h: Rewritten.
423a1849 13080
031f22a0
VS
130812011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
13084 names.
13085
4388ca72
VS
130862011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13087
13088 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
13089 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
13090 it truncates the output.
13091 Reported by: Ximin Luo.
13092
98e2f506
VS
130932011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13094
13095 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
13096
2a5e94d8
VS
130972011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13100 partmap before abstraction.
13101
535c1910
AK
131022011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
13103
13104 * util/grub-mkconfig_lib.in: Add missing quotes.
13105
bc09e1a2
VS
131062011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
13109 old method if mountinfo would return /dev/root and /dev/root doesn't
13110 exist.
13111
290766fb
VS
131122011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 ZFS zlib support
13115
13116 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
13117 (decomp_table): Add zlib entries.
13118 (zio_read): USe 8 bits for compression function rather than 3.
13119 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
13120
131212011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * grub-core/disk/ahci.c: Add missing license statements.
13124 * grub-core/fs/romfs.c: Likewise.
13125 * grub-core/lib/ia64/setjmp.S: Likewise.
13126 * grub-core/loader/i386/pc/freedos.c: Likewise.
13127 * grub-core/loader/ia64/efi/linux.c: Likewise.
13128 * grub-core/video/colors.c: Likewise.
13129 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
13130
5ab3f48a
VS
131312011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 AHCI support.
13134
13135 * grub-core/Makefile.core.def (ata_pthru): Removed.
13136 (ahci): New module.
13137 (pata): Likewise.
13138 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
13139 on unload.
13140 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
13141 readwrite.
13142 (grub_hdparm_do_check_powermode_cmd): Likewise.
13143 (grub_hdparm_do_smart_cmd): Likewise.
13144 (grub_hdparm_set_val_cmd): Likewise.
13145 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
13146 * grub-core/disk/ahci.c: New file.
13147 * grub-core/disk/ata.c: Factor out the low-level part into ...
13148 * grub-core/disk/pata.c: ... here.
13149 * grub-core/disk/ata_pthru.c: Contents moved to ...
13150 * grub-core/disk/pata.c: ... here.
13151 * grub-core/disk/scsi.c (grub_scsi_names): New array.
13152 (grub_scsi_iterate): Use grub_scsi_names.
13153 (grub_scsi_open): Likewise.
13154 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13155 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13156 (grub_ata_regs_t): New struct.
13157 (grub_disk_ata_pass_through_parms): Likewise.
13158 (grub_ata_device): Renamed to ...
13159 (grub_ata): ... this.
13160 (grub_ata_dev): New struct.
13161 Removed all low-level inline functions.
13162 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13163 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13164 iterate hooks and open. All users updated.
13165 * util/grub-install.in: Handle AHCI disk module.
13166
c31dc5f5
SJ
131672011-06-23 Szymon Janc <szymon@janc.net.pl>
13168
13169 Add support for DRI and RSTn markers in JPEG files.
13170
13171 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13172 (JPEG_MARKER_RST0): Likewise.
13173 (JPEG_MARKER_RST1): Likewise.
13174 (JPEG_MARKER_RST2): Likewise.
13175 (JPEG_MARKER_RST3): Likewise.
13176 (JPEG_MARKER_RST4): Likewise.
13177 (JPEG_MARKER_RST5): Likewise.
13178 (JPEG_MARKER_RST6): Likewise.
13179 (JPEG_MARKER_RST7): Likewise.
13180 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13181 (grub_jpeg_decode_dri): New function.
13182 (grub_jpeg_decode_sos): Move image data related part into
13183 grub_jpeg_decode_data function.
13184 (grub_jpeg_decode_data): New function.
13185 (grub_jpeg_reset): New function.
13186 (grub_jpeg_decode_jpeg): Handle new markers.
13187
fe12fd5b
VS
131882011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13189
13190 * util/ieee1275/ofpath.c (check_sas): Close fd.
13191 (main): Free of_path.
13192 Reported by: David Volgyes <dvolgyes>.
13193
03147f46
VS
131942011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13195
13196 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13197 Reported by: David Volgyes <dvolgyes>.
13198
cad3237f
VS
131992011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13202 file after stat.
13203 Reported by: David Volgyes <dvolgyes>.
13204
13548d26
VS
132052011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13208
13209 Reported by: David Volgyes <dvolgyes>.
13210
e061a1b5
VS
132112011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13214 Prevent memory leak.
13215
1abe47dc
VS
132162011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13219 (main): Close file.
e061a1b5 13220 Reported by: David Volgyes <dvolgyes>.
1abe47dc 13221
fbc62666
VS
132222011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13225 to continue if allocation is failed.
13226
13227 Reported by: David Volgyes <dvolgyes>.
13228
e98c83e9
DV
132292011-06-23 David Volgyes <dvolgyes>
13230
13231 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13232 dereference.
13233
a199a8cd
VS
132342011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13235
13236 Fix spurious warning.
13237
13238 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13239 (acorn_partition_map_find): Use .bin member.
13240
e2d1dba0
VS
132412011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13244 /dev/root as a valid device.
13245
8a5d6919
JM
132462011-06-23 Jim Meyering <meyering@redhat.com>
13247
e2d1dba0
VS
13248 Avoid NULL deref in grub_device_open.
13249
8a5d6919
JM
13250 * grub-core/kern/device.c (grub_device_open): Don't dereference
13251 a NULL pointer upon failed grub_env_get.
13252
f7db6f4a
VS
132532011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13254
13255 Support non-512B sectors and agglomerate reads.
13256
13257 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13258 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13259 (disk_io_guid): Removed.
13260 (make_devices): Locate solely by BlockIO.
13261 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13262 (grub_efidisk_read): Use read_blocks.
13263 (grub_efidisk_write): Use write_blocks.
13264 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13265 log_sector_size.
13266 (get_safe_sectors): Handle non-512B sectors.
13267 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13268 sectors.
13269 (grub_biosdisk_write): Handle non-512B sectors.
13270 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13271 (grub_scsi_read): Remove special non-512B block handling (now handled
13272 one level up).
13273 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13274 and do sanity checks.
13275 (grub_disk_adjust_range): Handle non-512B sectors.
13276 (transform_sector): New function.
13277 (grub_disk_read_small): Likewise.
13278 (grub_disk_read): Rewritten.
13279 (grub_disk_write): Handle non-512B sectors.
13280 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13281 log_sector_size.
13282 (open_device): Use log_sector_size.
13283 (grub_util_biosdisk_read): Likewise.
13284 (grub_util_biosdisk_write): Likewise.
13285 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13286 non-512B sectors.
13287 (pc_partition_map_embed): Likewise.
13288 * include/grub/disk.h (grub_disk): New field log_sector_size.
13289 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13290 (GRUB_DISK_CACHE_BITS): Increased to 6.
13291 * util/grub-fstest.c (fstest): New command testload.
13292 (argp_parser): Likewise.
13293
881ac815
RM
132942011-06-16 Robert Millan <rmh@gnu.org>
13295
13296 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13297 `ata' driver on kernel of FreeBSD 9.
13298
13299 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13300 (get_ataraid_disk_name): New functions.
13301 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13302 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13303 get_ataraid_disk_name() and get_ada_disk_name().
13304
1e9aef7d
CW
133052011-06-13 Colin Watson <cjwatson@ubuntu.com>
13306
13307 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13308 input format.
13309
351c7c8a
CW
133102011-05-29 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13313 `ftp.gnu.org' for `alpha.gnu.org'.
13314
6b4e6430
CW
133152011-05-27 Colin Watson <cjwatson@ubuntu.com>
13316
13317 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13318 partitions under /dev/disk/by-id/.
13319
c64db050
CW
133202011-05-27 Colin Watson <cjwatson@ubuntu.com>
13321
13322 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13323 after ten consecutive open failures. Scanning all the way up to
13324 10000 is excessive and can cause serious performance problems in
13325 some configurations.
13326 Fixes Ubuntu bug #787461.
13327
245f4aba
VS
133282011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13331 opening new one.
13332
f767c929
VS
133332011-05-21 Colin Watson <cjwatson@ubuntu.com>
133342011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 Don't stat devices unless we have to.
13337
13338 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13339 dir == /dev/mapper.
13340 (grub_guess_root_device): Use already known os_dev if possible.
13341 * grub-core/kern/emu/hostdisk.c
13342 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13343 if device is known to be a dm one.
13344
f35fa3a6
CW
133452011-05-20 Colin Watson <cjwatson@ubuntu.com>
13346
13347 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13348 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13349 Reported by: Pawel Tecza.
13350
9a79fcf2
VS
133512011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13352
13353 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13354 (lsefisystab): Likewise.
13355 (lssal): Likewise.
13356 (lsefimmap): Likewise.
13357 (hdparm): Enable on qemu-mips.
13358 (setjmp): Add ia64 nodist.
13359 (serial): Simplify tags.
13360
63e3eea9
CW
133612011-05-18 Colin Watson <cjwatson@ubuntu.com>
13362
13363 * Makefile.util.def (grub-ofpathname): Install manual page.
13364
09728256
CW
133652011-05-18 Colin Watson <cjwatson@ubuntu.com>
13366
13367 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13368
8b63a142
CW
133692011-05-18 Colin Watson <cjwatson@ubuntu.com>
13370
13371 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13372
e775d8ed
VS
133732011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13376 into dprintf.
13377
bf947d36
VS
133782011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 Use full 64-bit division.
13381
13382 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13383 (grub_divmod64): ... this.
13384 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13385 version.
13386
b84f26c5
CW
133872011-05-18 Colin Watson <cjwatson@ubuntu.com>
13388
13389 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13390 `source'.
13391
5626056f
CW
133922011-05-18 Colin Watson <cjwatson@ubuntu.com>
13393
13394 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13395 to avoid accidents when debugging with 'sh -x'.
13396 * grub-core/gensyminfo.sh.in: Likewise.
13397 * tests/example_scripted_test.in: Likewise.
13398 * tests/grub_cmd_regexp.in: Likewise.
13399 * tests/grub_script_blanklines.in: Likewise.
13400 * tests/grub_script_dollar.in: Likewise.
13401 * tests/grub_script_expansion.in: Likewise.
13402 * tests/grub_script_final_semicolon.in: Likewise.
13403 * tests/partmap_test.in: Likewise.
13404 * tests/util/grub-shell-tester.in: Likewise.
13405 * tests/util/grub-shell.in: Likewise.
13406
e2965f4a
CW
134072011-05-18 Colin Watson <cjwatson@ubuntu.com>
13408
13409 Move gfxmenu color handling to video, so that gfxterm can use it
13410 too.
13411
13412 * grub-core/gfxmenu/named_colors.c: Move to ...
13413 * grub-core/video/colors.c: ... here. Rename
13414 grub_gui_get_named_color to grub_video_get_named_color.
13415 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13416 * grub-core/video/colors.c (my_isxdigit): ... here.
13417 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13418 Move to ...
13419 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13420 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13421 to ...
13422 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13423
13424 * include/grub/gui.h (grub_gui_color_t): Move to ...
13425 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13426 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13427 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13428 * include/grub/gui.h (grub_gui_map_color): Move to ...
13429 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13430 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13431 to ...
13432 * include/grub/video.h (grub_video_get_named_color): ... here.
13433 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13434 * include/grub/video.h (grub_video_parse_color): ... here.
13435
13436 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13437 video/colors.c.
13438 (gfxmenu): Remove gfxmenu/named_colors.c.
13439 (video) [videomodules]: Add video/colors.c.
13440
13441 Add a background_color command.
13442
13443 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
13444 function.
13445 (GRUB_MOD_INIT): Register background_color command.
13446 (GRUB_MOD_FINI): Unregister background_color command.
13447 (redraw_screen_rect): Allow blend/replace of text layer to be
13448 controlled independently from whether there is a background bitmap.
13449 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
13450 changing bitmap.
13451
1e4b4390
VS
134522011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13453
26618ff0
VS
13454 Patch BPB in ntldr and chainloader --bpb.
13455
1e4b4390
VS
13456 * grub-core/fs/fat.c: Include grub/fat.h.
13457 (grub_fat_bpb): Moved to ...
13458 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
13459 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
13460 grub/ntfs.h.
13461 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
13462 Moved from here...
13463 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
13464 here.
13465 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
13466 New function.
13467 (grub_chainloader_cmd): Patch BPB if --bpb is given.
13468 (GRUB_MOD_INIT): Show --bpb.
13469 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
13470 * grub-core/normal/main.c (features): New variable.
13471 (GRUB_MOD_INIT): Set feature_* variables.
13472 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
13473 proto.
13474 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
13475
cf02731e
VS
134762011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
13479 for cleanness.
13480
e3a1073f
VS
134812011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 FreeDOS direct loading support.
13484
13485 * docs/grub.texi (Supported OS): Add FreeDOS.
13486 * grub-core/Makefile.core.def (freedos): New module.
13487 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
13488 variable.
13489 (grub_relocator16_boot): Handle %ebx.
13490 * grub-core/lib/i386/relocator16.S: Likewise.
13491 * grub-core/loader/i386/pc/freedos.c: New file.
13492
05caa461
VS
134932011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13494
13495 Long Linux command line support.
13496
13497 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13498 (maximal_cmdline_size): New variable.
13499 (allocate_pages): Use maximal_cmdline_size.
13500 (grub_cmd_linux): Set and use maximal_cmdline_size.
13501 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13502 (allocate_pages): Use maximal_cmdline_size.
13503 (grub_cmd_linux): Set and use maximal_cmdline_size.
13504 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
13505 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
13506 and cmdline_size.
13507
a2491e23
VS
135082011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
135092011-05-18 Colin Watson <cjwatson@ubuntu.com>
13510
13511 Improve devmapper support
13512
13513 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
13514 (grub_util_is_lvm): New function.
13515 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
13516 than lvm if not dmraid.
13517 Handle mapped md nodes.
13518 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
13519 (grub_util_device_is_mapped): ... this. Make always available. All users
13520 updated.
13521 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
13522 (convert_system_partition_to_system_disk): Handle lvm, mpath and
13523 dmraid nodes.
13524 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
13525
6ad6223e
VS
135262011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13527
13528 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
13529
13530 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
13531 * grub-core/modinfo.sh.in: New file.
13532 * grub-core/Makefile.core.def (modinfo.sh): New script.
13533 * util/grub-mknetdir.in: Use modinfo.sh.
13534 * util/grub-mkrescue.in: Likewise.
13535
543a8f6e
VS
135362011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13539 Fix potential usage of Elf32 instead of Elf64 when compiling on
13540 32-bit architecture. Add endianness macros while on it.
13541
4959e111
VS
135422011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13543
13544 Use mipsel- rather than mips- in directories involving mipsel ports to
13545 allow both endiannesses coexist.
13546
13547 * configure.ac: proparate target_cpu=mipsel rather than resetting to
13548 mips. All conditions adjusted.
13549 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
13550 variable.
13551 * util/grub-install.in: Adjust conditions to take renaming into account.
13552 * util/grub-mkimage.c (image_targets): Likewise. New target
13553 mips-qemu_mips-elf for bigendian mips.
13554
35341bbc
VS
135552011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 Avoid unnecessary copying on MIPS.
13558
13559 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
13560 early if src == dest.
13561 * util/grub-mkimage.c (generate_image): Arange for src == dest if
13562 compression is none.
13563
b772baed
VS
135642011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13565
13566 Reduce memory footprint on SGI by putting modules before the kernel
13567 as opposed to after.
13568
13569 * grub-core/Makefile.core.def (kernel): Increase linking address.
13570 (none_decompress): Likewise.
13571 (xz_decompress): Likewise.
13572 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
13573 address.
13574 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
13575 layout change.
13576 (grub_arch_modules_addr): New function.
13577 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
13578 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
13579 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
13580 here.
13581 * grub-core/kern/mips/startup.S (total_size): Rename to ...
13582 (grub_total_modules_size): ... this. Make global.
13583 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
13584 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
13585 New definition.
13586 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
13587 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
13588 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
13589 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
13590 * util/grub-mkimage.c (image_target_desc): New flag
13591 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
13592 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
13593 (generate_image): Handle images with modules before kernel.
13594
566a1917
VS
135952011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 Prevent potential loss of memory map by overwrite on qemu-mips.
13598
13599 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13600 Save ram size in $s4.
13601 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
13602 All users changed to grub_arch_memsize.
13603 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
13604 Loongson.
13605 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
13606 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
13607 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
13608 external variable.
13609
5d420cd9
CW
136102011-05-17 Colin Watson <cjwatson@ubuntu.com>
13611
13612 * .bzrignore: Remove grub-dumpbios.
13613
d064b830
CW
136142011-05-17 Colin Watson <cjwatson@ubuntu.com>
13615
13616 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
13617 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
13618 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
13619 existing options which append).
13620 * docs/grub.texi (Simple configuration): Document new options.
13621 Reported by: Ian Jackson. Fixes Debian bug #617538.
13622
3ca2b466
CW
136232011-05-17 Colin Watson <cjwatson@ubuntu.com>
13624
13625 * util/grub-fstest.c (cmd_cat): New function.
13626 (fstest): Handle CMD_CAT.
13627 (options): Add cat.
13628 (argp_parser): Handle cat.
13629
24c9143a
CW
136302011-05-17 Colin Watson <cjwatson@ubuntu.com>
13631
13632 * Makefile.util.def (grub-bin2h): Don't install.
13633 * docs/man/grub-bin2h.h2m: Remove.
13634
90f7ac19
VS
136352011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
13638 place.
13639
8d4a5178
VS
136402011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 Reenable qemu-mips port.
13643
13644 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
13645 Fix small arc bug while on it.
13646 * gentpl.py: Handle qemu_mips.
13647 * grub-core/Makefile.am: Likewise.
13648 * grub-core/Makefile.core.def: Likewise.
13649 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
13650 inappropriate includes.
13651 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
13652 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
13653 * grub-core/kern/main.c (grub_modules_get_end)
13654 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
13655 * grub-core/kern/mips/qemu-mips: Moved to ..
13656 * grub-core/kern/mips/qemu_mips: ... this.
13657 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
13658 (grub_machine_init): Call terminfo_init and serial_init.
13659 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
13660 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13661 New variable.
13662 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
13663 parameter passing.
13664 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
13665 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
13666 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
13667 * include/grub/mips/qemu_mips/cmos.h: New file.
13668 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
13669 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
13670 Removed.
13671 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
13672 Use correct mips-style address.
13673 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
13674 (GRUB_TICKS_PER_SECOND): Removed.
13675 (grub_get_rtc): Likewise.
13676 (grub_cpu_idle): Likewise.
13677 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
13678 New definition.
13679 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
13680 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
13681 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
13682 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
13683 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13684 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13685 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
13686 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
13687
400b9371
VS
136882011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13689
13690 SGI ARCS port.
13691
13692 * Makefile.util.def (libgrubmods.a): Add dvh.c.
13693 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
13694 platforms.
13695 * configure.ac: New target mips-arc.
13696 * gentpl.py: Likewise.
13697 * grub-core/Makefile.am: Likewise.
13698 * grub-core/Makefile.core.def: Likewise.
13699 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
13700 (none_decompress): Likewise.
13701 (lsdev): New module.
13702 (datetime): Use lib/arc/datetime.c on ARC.
13703 (part_dvh): New module.
13704 * grub-core/commands/arc/lsdev.c: New file.
13705 * grub-core/disk/arc/arcdisk.c: Likewise.
13706 * grub-core/kern/mips/arc/init.c: Likewise.
13707 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
13708 aligned addresses.
13709 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
13710 support.
13711 (grub_arch_dl_relocate_symbols): Likewise.
13712 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
13713 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
13714 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
13715 platforms.
13716 * grub-core/lib/arc/datetime.c: New file.
13717 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
13718 pci.h on non-loongson.
13719 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
13720 (grub_linux_boot): Set unused registers to 0.
13721 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
13722 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
13723 * grub-core/mmap/mips/uppermem.c: ...here.
13724 * grub-core/partmap/dvh.c: New file.
13725 * grub-core/term/arc/console.c: Likewise.
13726 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
13727 (grub_terminfo_set_current): Add terminal "arc".
13728 (grub_terminfo_readkey): Support ARC sequences.
13729 * include/grub/arc/arc.h: New file.
13730 * include/grub/arc/console.h: Likewise.
13731 * include/grub/disk.h (grub_disk_dev_id): Add
13732 GRUB_DISK_DEVICE_ARCDISK_ID.
13733 * include/grub/mips/arc/kernel.h: New file.
13734 * include/grub/mips/arc/memory.h: Likewise.
13735 * include/grub/mips/arc/time.h: Likewise.
13736 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
13737 * include/grub/mips/kernel.h (grub_halt): ... here.
13738 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
13739 here...
13740 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
13741 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
13742 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
13743 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
13744 proto.
13745 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
13746 from here ...
13747 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
13748 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
13749 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
13750 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
13751 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
13752 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
13753 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
13754 (grub_phys_addr_t): Moved from here ...
13755 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
13756 (grub_vtop): Moved from here ...
13757 * include/grub/mips/memory.h (grub_vtop): ... here.
13758 (grub_map_memory): Moved from here ...
13759 * include/grub/mips/memory.h (grub_map_memory): ... here.
13760 (grub_unmap_memory): Moved from here ...
13761 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
13762 (grub_machine_mmap_iterate): Moved from here ...
13763 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
13764 (grub_mmap_get_lower): Moved from here ...
13765 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
13766 (grub_mmap_get_upper): Moved from here ...
13767 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
13768 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13769 here ...
13770 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13771 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
13772 here ...
13773 * include/grub/mips/time.h (grub_get_rtc): ... here.
13774 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13775 here ...
13776 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13777 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
13778 here ...
13779 * include/grub/mips/time.h (grub_cpu_idle): ... here.
13780 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
13781 definition.
13782 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
13783 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
13784 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
13785 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
13786 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13787 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13788 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
13789 (GRUB_MACHINE_LINK_ADDR): Likewise.
13790 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
13791 to 6.
13792 * util/grub-install.in: Run dvhtool on ARC.
13793 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 13794 (generate_image): Handle ECOFF output for mips-arc.
400b9371 13795
c8ecc840
VS
137962011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
13799 blocks.
13800
153a4b55
VS
138012011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
13804 after enabling port.
13805
ff44d107
VS
138062011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13807
13808 Skip incorrect USB devices.
13809
13810 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
13811 configcnt == 0.
13812 * include/grub/usb.h (grub_usb_err_t): New enum value
13813 GRUB_USB_ERR_BADDEVICE.
13814
638dbe4f
VS
138152011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 Fuloong video init support.
13818
13819 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
13820 well.
13821 (grub_vga_read_arx): New function.
13822 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
13823 definition.
13824 (framebuffer): New members io, mmioptr and mmiobase.
13825 (read_sis_cmd): New function.
13826 (write_sis_cmd): Likewise.
13827 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
13828 rather than 640x400.
13829 * grub-core/video/sis315_init.c: New file.
13830
c3fc520c
VS
138312011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13832
13833 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
13834 non-loongson.
13835 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
13836 to grub_dl_register_symbol.
13837
67b1e5c9
VS
138382011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13839
13840 Fix compilation errors.
13841
13842 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
13843 potentially unused.
13844 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
13845 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
13846 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
13847 to loongson machines.
13848
b756f75f
VS
138492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 Several FS mtime support.
13852
13853 * grub-core/fs/affs.c (grub_affs_time): New struct.
13854 (grub_affs_file): New field mtime.
13855 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
13856 type. Removed 'size'. New field 'di'. All users updated.
13857 (grub_affs_mount): Simplify checsum checking.
13858 (grub_affs_iterate_dir): New helper grub_affs_create_node.
13859 (grub_affs_dir): Handle mtime.
13860 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
13861 (grub_cpio_dir): Likewise.
13862 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
13863 (grub_hfs_filerec): New field mtime.
13864 (grub_hfs_dir): Handle mtime.
13865 (grub_hfs_mtime): New function.
13866 (grub_hfs_fs): Register grub_hfs_mtime.
13867 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
13868 (grub_iso9660_dir): New field mtime.
13869 (grub_fshelp_node): New field dirent.
13870 (iso9660_to_unixtime): New function.
13871 (iso9660_to_unixtime2): Likewise.
13872 (grub_iso9660_read_symlink): Use node->dirent.
13873 (grub_iso9660_iterate_dir): Likewise.
13874 (grub_iso9660_dir): Set mtime.
13875 (grub_iso9660_mtime): New function.
13876 (grub_iso9660_fs): Register grub_iso9660_mtime.
13877 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
13878 (grub_jfs_inode): New fields atime, ctime and mtime.
13879 (grub_jfs_dir): Set mtime.
13880 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13881 * grub-core/fs/ntfs.c (list_file): Set mtime.
13882 (grub_ntfs_dir): Likewise.
13883 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
13884 (grub_reiserfs_iterate_dir): Set mtime.
13885 (grub_reiserfs_dir): Likewise.
13886 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
13887 (grub_fshelp_node): Likewise.
13888 (grub_sfs_iterate_dir): Set mtime.
13889 (grub_sfs_dir): Likewise.
13890 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
13891 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
13892 (grub_xfs_inode): New fields atime, mtime, ctime.
13893 (grub_xfs_dir): Set mtime.
13894 * include/grub/datetime.h (grub_datetime2unixtime): New function.
13895 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
13896 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
13897
13898 Support UDF symlinks.
13899
13900 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
13901 (grub_ufs_read_symlink): New function. All users updated.
13902
13903 Check amiga partmap checksum.
13904
13905 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
13906 (grub_amiga_partition): Likewise.
13907 (amiga_partition_map_checksum): New function.
13908 (amiga_partition_map_iterate): Check checksum.
13909
5470225d
VS
139102011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13911
13912 ROMFS support.
13913
13914 * Makefile.util.def (libgrubmods.a): Add romfs.
13915 * grub-core/Makefile.core.def (romfs): New module.
13916 * grub-core/fs/romfs.c: New file.
13917
d4680a35
VS
139182011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 Squashfs v4 support.
13921
13922 * Makefile.util.def (libgrubmods.a): Add squash4.
13923 * grub-core/Makefile.core.def (squash4): New module.
13924 * grub-core/fs/squash4.c: New file.
13925 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
13926 disk_input_start, disk_input.
13927 (get_byte): Handle disk_input.
13928 (grub_zlib_disk_read): New function.
13929 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
13930
bcb18e74
FZ
139312011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
139322011-05-15 Feiran Zheng <famcool@gmail.com>
13933
13934 * Makefile.util.def (libgrubmods.a): Add minix3.
13935 * grub-core/Makefile.core.def (minix3): New module.
13936 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
13937 (GRUB_MINIX_BSIZE): Removed.
13938 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
13939 (grub_minix_ino_t): New type.
13940 (grub_minix_le_to_cpu_ino): New macro.
13941 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
13942 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
13943 (grub_minix_data): New field block_size.
13944 (grub_minix_read_file): Handle 64-bit correctly.
13945 * grub-core/fs/minix3.c: New file.
13946
32297d5f
TG
139472011-05-15 Tristan Gingold <gingold@free.fr>
139482011-05-15 Robert Millan <rmh.grub@aybabtu.com>
139492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13950
13951 IA64 support.
13952
13953 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
13954 * configure.ac: Add ia64-efi target.
13955 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
13956 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
13957 * gentpl.py: Add ia64_efi platform.
13958 Rename x86_efi to efi and Add ia64-efi. All users updated.
13959 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
13960 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
13961 Remove kern/generic/rtc_get_time_ms.c on EFI.
13962 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13963 kern/ia64/dl_helper.c on ia64-efi.
13964 Add kern/emu/cache.c on emu.
13965 (linux): Use on loader/ia64/efi/linux.c on ia64.
13966 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13967 whether symbol is a function.
13968 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13969 (grub_symbol): New field 'isfunc'.
13970 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13971 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13972 (grub_dl_load_segments): Place all sections into the same region.
13973 [__ia64__]: Create trampolines and got.
13974 [GRUB_MACHINE_EMU]: Call mprotect.
13975 (grub_dl_resolve_symbols): Resolve symbol type as well.
13976 [__ia64__]: Create function descriptors.
13977 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13978 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13979 (grub_get_rtc): New function.
13980 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13981 * grub-core/kern/emu/cache.S: Renamed to ...
13982 * grub-core/kern/emu/cache_s.S: ... this.
13983 [__ia64__]: Add a nop.
13984 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13985 [__ia64__]: New function.
13986 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13987 * grub-core/kern/ia64/dl.c: New file.
13988 * grub-core/kern/ia64/dl_helper.c: Likewise.
13989 * grub-core/kern/ia64/efi/init.c: New file.
13990 * grub-core/kern/ia64/efi/startup.S: Likewise.
13991 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13992 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13993 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13994 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13995 * grub-core/loader/ia64/efi/linux.c: New file.
13996 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13997 (GRUB_MOD_DEP): Likewise.
13998 (grub_dl) [__ia64__]: New fields got and tramp.
13999 (grub_dl): New field 'base'.
14000 (grub_dl_register_symbol): New argument isfunc. All users updated.
14001 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
14002 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
14003 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
14004 (grub_ia64_dl_get_tramp_got_size): New proto.
14005 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
14006 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
14007 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
14008 * include/grub/efi/api.h: Skip call wrappers on ia64.
14009 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
14010 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
14011 * include/grub/elf.h (ELF_ST_INFO): New definition.
14012 * include/grub/ia64/efi/kernel.h: New file.
14013 * include/grub/ia64/efi/memory.h: Likewise.
14014 * include/grub/ia64/efi/time.h: Likewise.
14015 * include/grub/ia64/kernel.h: Likewise.
14016 * include/grub/ia64/setjmp.h: Likewise (from glibc).
14017 * include/grub/ia64/time.h: New file.
14018 * include/grub/ia64/types.h: Likewise.
14019 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
14020 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
14021 New protos.
14022 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
14023 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14024 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
14025 * util/grub-mkimage.c (image_target_desc): New field pe_target.
14026 All users updated.
14027 (EFI64_HEADER_SIZE): New definition. All users updated.
14028 (image_targets): Add ia64-efi.
14029 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
14030 jumpers_addr. All users updated.
14031 Create function descriptors.
14032 (count_funcs): New function.
14033 (unaligned_uint32): New struct.
14034 (MASK20): New definition.
14035 (MASK19): Likewise.
14036 (MASKF21): Likewise.
14037 (add_value_to_slot_20b): New function.
14038 (add_value_to_slot_21_real): Likewise.
14039 (add_value_to_slot_21): Likewise.
14040 (ia64_kernel_trampoline): New struct.
14041 (nopm): New variable.
14042 (jump): Likewise.
14043 (make_trampoline): New function.
14044 (relocate_addresses): Handle ia64.
14045 (make_reloc_section): Likewise.
14046 (load_image): Likewise.
14047
983b414d
VS
140482011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
14051 warning. Move variables before code while on it.
14052
5d063cdc
VS
140532011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 Fuloong support.
14056
14057 * configure.ac: Rename yeeloong platform to loongson. All users updated.
14058 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
14059 * grub-core/boot/mips/loongson/fuloong.S: New file.
14060 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
14061 Explicitly init CS5536.
14062 [FULOONG]: Don't use serial until CS5536 is available.
14063 Set GPIO based on dumps.
14064 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
14065 [FULOONG]: Handle GPIO and memory controller differences.
14066 Parse machine type in $a2.
14067 * grub-core/boot/mips/startup_raw.S: Determine and save the
14068 architecture.
14069 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
14070 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
14071 init on architecture type.
14072 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14073 SIS315E. Don't init at_keyboard on fuloong.
14074 (grub_halt): Support Fuloong.
14075 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
14076 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
14077 (loongson_machtypes): New array.
14078 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
14079 type.
14080 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
14081 config. All users updated. Handle CS5536 serial.
14082 * grub-core/term/serial.c (grub_serial_register): Conditionalise
14083 default port on machine type. Register serial as inactive.
14084 * grub-core/video/sis315pro.c: New file.
14085 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
14086 definition.
14087 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
14088 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
14089 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
14090 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
14091 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
14092 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
14093 to ...
14094 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
14095 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
14096 definition.
14097 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
14098 (grub_arch_machine): New extern var.
14099 * include/grub/mips/loongson/serial.h
14100 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
14101 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
14102 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
14103 (GRUB_MACHINE_SERIAL_PORT0): ... this.
14104 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
14105 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
14106 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
14107 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
14108 * include/grub/term.h (grub_term_register_input_inactive): New inline
14109 function.
14110 (grub_term_register_output_inactive): Likewise.
14111 * include/grub/video.h (grub_video_driver_id): New value
14112 GRUB_VIDEO_DRIVER_SIS315PRO.
14113 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
14114 New field "names". All users updated.
14115 New field value IMAGE_FULOONG_FLASH.
14116 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
14117
6ada82d1
JU
141182011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
14119
14120 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
14121 and add some clarification.
14122
90c571a4
VS
141232011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14124
14125 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
14126 platforms if kernel is compressed.
14127
de04eecf
VS
141282011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14129
14130 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
14131 unused modules since currently referrence counter isn't reliable and
14132 there isn't much memory to recover there anyway.
14133
57688121
VS
141342011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14135
14136 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
14137 rather than resetting it to allow modules to reference themselves
14138 in init.
14139
3d2c7e35
VS
141402011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14141
14142 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
14143 counter on dependencies since grub_dl_unref already handles this.
14144
b25db218
VS
141452011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14146
14147 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
14148 on error if not already done.
14149
25a45338
VS
141502011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 Fix few potential memory misusage.
14153
14154 * grub-core/font/font.c (load_font_index): Don't free char_index to
14155 avoid double free.
b25db218
VS
14156 (grub_font_load): Zero-fill font at alloc for safety.
14157 Close file on error.
14158 (free_font): Free bmp_idx.
25a45338 14159
0cac83df
VS
141602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * docs/grub.texi (Installation): Fix several outdated claims.
14163
2217a143
VS
141642011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14165
14166 Handle module_license on windows.
14167
14168 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14169 sections shifted.
14170 (insert_string): Make argument const char * instead of char *.
14171 (write_section_data): Handle long section names.
14172 Handle module_license.
14173
d4de6b01
VS
141742011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14177 handle class-free menuentries.
14178 (grub_normal_add_menu_entry): Add a check to be sure.
14179
4c2a3b43
VS
141802011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14183 PgUp and PgDown.
14184
85c6210f
VS
141852011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * configure.ac: Bump version to 1.99.
14188
36084912
VS
141892011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 Give ATA device a bit more time on first try in order to allow disks
14192 to spin up.
14193
14194 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14195 if dev->present is 1. Reset dev->present on failure.
14196 (grub_ata_device_initialize): Set dev->present to 1.
14197 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14198 (grub_ata_device): New member 'present'.
14199
bda0e219
VS
142002011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * util/grub-mkimage.c (generate_image): Update hash.
14203
19e1c41b
VS
142042011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 Flush caches on DMA memory.
14207
14208 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14209 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14210 (grub_dma_free): Likewise.
14211 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14212
91bbcc0c
VS
142132011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14216 to avoid asm treating ld and sd as macros.
14217
60ddfad3
VS
142182011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14221 decompressor.
14222
a298aa04
VS
142232011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14224
14225 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14226 grub_decompress_core since later would fail if grub_decompress_core
14227 is too far.
14228
9b44feca
VS
142292011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14232 R_MIPS_JALR since it's used by newer compiler.
14233
56dbe7b4
VS
142342011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14237
52856af2
VS
142382011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14239
14240 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14241 file_path to 0 for surety.
14242 (grub_chainloader_boot): Set exit_data to NULL.
14243 Unset the loader once done.
14244 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14245
9c9bfc6d
VS
142462011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14249 unknown key into a dprintf.
14250
dd94a3df
VS
142512011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14254 on first non-existant partition.
14255
fa68d99c
VS
142562011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14257
14258 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14259 openning fails.
14260 Reported by: Mark Korenberg.
14261
157effb7
VS
142622011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14265 overflow.
14266
ea75312f
VS
142672011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14270 before closing to ensure that it will be readable by grub-setup.
14271
072b5d31
VS
142722011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14275 (devpath_1): Use MAKE_PIWG_PATH.
14276 (devpath_2): Likewise.
14277 (devpath_3): Likewise.
14278 (devpath_4): Likewise.
14279 (devpath_5): Likewise.
14280 (devpath_6): Likewise.
14281
14282 The appleldr.mod was checked that to be binary identical to previous
14283 version.
14284
7fae0051
Z
142852011-05-05 Zach <mikezackles>
14286
14287 Support 2010 Macbooks.
14288
14289 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14290 (devs): Add devpath_6.
14291
7c515bee
VS
142922011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14295 /dev/random. /dev/urandom is good enough for our purposes (salting).
14296
ed660bd8
VS
142972011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14298
14299 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14300
ee5614b7
VS
143012011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14304 hexadecimal.
14305
664889a6
VS
143062011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14309 and not 0 on failure.
14310
bd405bbc
CW
143112011-05-03 Colin Watson <cjwatson@ubuntu.com>
14312
14313 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14314 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14315 disk; otherwise grub_fs_probe will not fall back to the next
14316 filesystem.
14317 (grub_pxefs_open): Likewise, for consistency.
14318 Reported and tested by: Ezekiel Grave.
14319
4ebff753
CW
143202011-05-03 Colin Watson <cjwatson@ubuntu.com>
14321
14322 * tests/partmap_test.in: Don't hardcode path to parted.
14323 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14324
8f942553
CW
143252011-05-01 Colin Watson <cjwatson@ubuntu.com>
14326
14327 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14328 of `ls' to find out which devices are available.
14329
3c62402d
VS
143302011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14331
14332 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14333 than source address for efi mmap buffer.
14334
723f63f2
VS
143352011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14336
14337 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14338 wrong action on non-detecting the magic.
14339
68797f92
VS
143402011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14341
14342 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14343 already supplied by another part of the module (fixes compilation on
14344 FreeBSD).
14345
6be8715d
VS
143462011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14349 match the one used by mdadm.
14350
e91dba5b
CW
143512011-04-21 Colin Watson <cjwatson@ubuntu.com>
14352
14353 * po/README: Add instructions for creating po/LINGUAS.
14354
c85140b3
CW
143552011-04-21 Colin Watson <cjwatson@ubuntu.com>
14356
14357 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14358 #551428.
14359
14360 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14361 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14362 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14363 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14364 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14365 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14366 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14367 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14368 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14369 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14370 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14371 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14372 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14373 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14374 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14375 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14376 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14377 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14378 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14379 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14380 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14381 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14382
92051871
CW
143832011-04-21 Colin Watson <cjwatson@ubuntu.com>
14384
14385 * grub-core/kern/emu/getroot.c
14386 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14387 test that was incorrectly reintroduced in r3214.
14388 Reported by: Ian Dall. Fixes Savannah bug #33133.
14389
b13f79a4
CW
143902011-04-21 Colin Watson <cjwatson@ubuntu.com>
14391
14392 Fix stack pointer handling in 16-bit relocator.
14393
14394 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14395 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14396 Fixes Ubuntu bug #683904.
14397
9b710a88
VS
143982011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * configure.ac: Bump version to 1.99~rc2.
14401
d97e7b59
VS
144022011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14403
14404 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14405 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14406 * grub-core/lib/x86_64/setjmp.S: Likewise.
14407 * grub-core/lib/mips/setjmp.S: Likewise.
14408 * grub-core/lib/powerpc/setjmp.S: Likewise.
14409 * grub-core/lib/sparc64/setjmp.S: Likewise.
14410
0624551c
VS
144112011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14412
14413 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14414 * grub-core/lib/efi/datetime.c: Likewise.
14415
e8f28d4c
VS
144162011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14419 New function.
14420 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14421 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14422 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14423
bba79a15
VS
144242011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14427 bitmap.
14428 (grub_gfxterm_term_init): Likewise.
14429
abc474ef
VS
144302011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14431
14432 Take into account the decorations the computing menu entry width.
14433
14434 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14435 (grub_gfxmenu_create_box): Register get_border_width.
14436 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14437 if available.
14438 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14439 get_border_width.
14440
e74b3947
EP
144412011-04-18 Endres Puschner <code@e7p.de>
14442
14443 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
14444 Don't skip first class.
14445
34faa595
VS
144462011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14447
14448 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
14449 chunks.
14450 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
14451
93a777e3
VS
144522011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14453
14454 Complete 64-bit division support.
14455
14456 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
14457 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
14458 * include/grub/misc.h (grub_divmod64): Rename to ...
14459 (grub_divmod64_full): ... this.
14460 (grub_divmod64): New inline function.
14461
a5102d94
VS
144622011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * util/grub-mkimage.c (generate_image): Add forgotten comma.
14465
f3fb7b36
VS
144662011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
14469 performing the necessary test.
14470
9ac718b0
VS
144712011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
14474 (kfreebsd.elf): Likewise.
14475 (pc-chainloader.elf): Likewise.
14476 (ntldr.elf): Likewise.
14477
50d2cc5a
VS
144782011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14479
14480 Identify RAID by its UUID rather than (guessed) name.
14481
14482 * grub-core/disk/raid.c (ascii2hex): New function.
14483 (grub_raid_open): Accept mduuid/%s specification.
14484 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
14485 (get_mdadm_uuid): ... this.
14486 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
14487
e03f7bea
VS
144882011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
14489
14490 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
14491 to negative size.
14492
e74c3112
CW
144932011-04-13 Colin Watson <cjwatson@ubuntu.com>
14494
14495 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
14496 btrfs subvolume.
14497 * util/grub.d/20_linux_xen.in: Likewise.
14498
78fa584f
CW
144992011-04-13 Colin Watson <cjwatson@ubuntu.com>
14500
14501 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
14502 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
14503
14504 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14505 Build a list of relevant visible mounts using the mnt_id and
14506 parent_mnt_id fields, and then scan that list at the end.
14507
9d5f8162
CW
145082011-04-12 Colin Watson <cjwatson@ubuntu.com>
14509
14510 * docs/grub.texi (normal): New section.
14511 (normal_exit): New section.
14512 (Embedded configuration): Add reference to normal.
14513 (GRUB only offers a rescue shell): Likewise.
14514 * docs/grub-dev.texi (Error Handling): Fix typo.
14515
09a9d66f
CW
145162011-04-12 Colin Watson <cjwatson@ubuntu.com>
14517
14518 * NEWS: Drop obsolete entry about probe-only btrfs support.
14519
0c676933
CW
145202011-04-12 Colin Watson <cjwatson@ubuntu.com>
14521
14522 * util/import_gcry.py: Fix typo.
14523
ec9f5e0d
VS
145242011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * NEWS: Add btrfs support.
14527
fe6b2cba
VS
145282011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
145292011-04-11 Colin Watson <cjwatson@ubuntu.com>
14530
14531 BtrFS support. Written by me (Vladimir) with important bugfixes and
14532 even more important testing by Colin.
14533
14534 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
14535 * grub-core/Makefile.core.def (btrfs): Add crc.c.
14536 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
14537 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
14538 mem_input_off and mem_input. All users updated to accept in-RAM input.
14539 (gzio_seek): New function.
14540 (test_zlib_header): Likewise.
14541 (grub_gzio_read): Likewise.
14542 (grub_zlib_decompress): Likewise.
14543 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
14544 Accept partial and non-virtual mounts.
14545 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
14546 avoid receiving /dev/dm-X as device.
14547 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
14548 Handle bind and partial mounts.
14549 * grub-core/lib/crc.c: New file.
14550 * include/grub/deflate.h: Likewise.
14551 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
14552 proto.
14553 * include/grub/lib/crc.h: New file.
14554
e745cf0c
VS
145552011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14556
14557 Implement automatic module license checking according to new GNU
14558 guidelines.
14559
14560 * grub-core/kern/dl.c (grub_dl_check_license): New function.
14561 (grub_dl_load_core): Use grub_dl_check_license.
14562 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
14563 (GRUB_MOD_LICENSE): Likewise.
14564 (GRUB_MOD_DUAL_LICENSE): Likewise.
14565 All modules updated.
14566
2a9bc016
CW
145672011-04-11 Colin Watson <cjwatson@ubuntu.com>
14568
14569 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
14570 reserved_first_sector to 1. btrfs reserves plenty of space for boot
14571 loaders.
14572 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
14573
8a3bc88e
VS
145742011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
14577
af869a4a
VS
145782011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 * util/grub-fstest.c (read_file): Report GRUB error if file opening
14581 failed.
14582
9ee8d94f
VS
145832011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 * grub-core/kern/file.c (grub_file_open): Don't take into account the
14586 parenthesis in the middle of the filename.
14587
b01abe3e
VS
145882011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14589
14590 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
14591 rather than trying to put initrd way too high.
14592 Reported by: Ryan Lortie <desrt@desrt.ca>
14593
335bda1e
VS
145942011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14595
14596 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
14597 improperly removed string.
14598
5ca1a64d
VS
145992011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14600
14601 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
14602 is_disk.
14603 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
14604 (open_device) Likewise.
14605 (grub_util_biosdisk_close): Likewise.
d8ce9995 14606 Reported by: Mark Korenberg.
5ca1a64d 14607
cbac5b1e
AK
146082011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
14609
14610 * util/grub-mkconfig_lib.in: Add missing quotes.
14611
088cdb65
CW
146122011-04-10 Colin Watson <cjwatson@ubuntu.com>
14613
14614 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
14615 is NULL.
14616
8b8a81fa
VS
146172011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14618
14619 Dynamically count the number of lines for the lower banner.
14620
14621 * grub-core/normal/menu_entry.c (per_term_screen): New member
14622 num_entries.
14623 (print_down): Use num_entries.
14624 (update_screen): Likewise.
14625 (grub_menu_entry_run): Set num_entries.
14626 * grub-core/normal/menu_text.c (menu_viewer_data): New member
14627 num_entries.
14628 (grub_print_message_indented): Move real part to ...
14629 (grub_print_message_indented_real): ... here. Additional argument
14630 dry_run.
14631 (draw_border): Additional argument num_entries.
14632 (print_message): Additional argument dry_run.
14633 (print_entries): Receive menu viewer data.
14634 (grub_menu_init_page): New argment num_entries.
14635 (menu_text_set_chosen_entry): Use num_entries.
14636 (grub_menu_try_text): Likewise.
14637 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
14638 All users updated.
14639 (grub_ucs4_count_lines): New function.
14640 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
14641 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
14642 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
14643 (grub_term_border_height): Likewise.
14644 (grub_term_num_entries): Likewise.
14645
277f955b
VS
146462011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
14649 Remove now unused string.
14650
536ce85a
CW
146512011-04-09 Colin Watson <cjwatson@ubuntu.com>
14652
14653 * docs/grub-dev.texi (Finding your way around): Update for 1.99
14654 build system.
14655 (Getting started): GRUB is developed in Bazaar now, not Subversion.
14656
14657 (Comment): Fix typo.
14658 (Getting started): General copy-editing.
14659 (Typical Development Experience): Likewise.
14660 (Error Handling): Likewise.
14661 (Video API): Likewise.
14662
2cf09e32
CW
146632011-04-09 Colin Watson <cjwatson@ubuntu.com>
14664
14665 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
14666 throughout.
14667
1ec652f4
VS
146682011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14669
14670 * util/grub-mkimage.c (main): Handle special naming of yeeloong
14671 directory.
14672
2c583728
CW
146732011-04-08 Colin Watson <cjwatson@ubuntu.com>
14674
14675 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
14676 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
14677 "development".
14678
d7a565e9
VS
146792011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
14682 grub_strcpy since the lines aren't necessarily 0-terminated.
14683
7c2e4909
VS
146842011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
14687 root on legacy.
14688
34c09785
VS
146892011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 * grub-core/commands/probe.c (options): Argument to set isn't optional.
14692 (GRUB_MOD_INIT): DEVICE isn't optional.
14693
6a6f8058
VS
146942011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14695
14696 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
14697 word on new line if it's too long anyway. Fixes a hang.
14698
2e335e90
VS
146992011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
14702 const.
14703 * util/grub-setup.c (main): Reuse md device name if available.
14704 * util/raid.c (grub_util_raid_getmembers): Receive device name and
14705 not GRUB name as argument.
14706 Based on patch by: Florian Wagner <fwagner>.
14707
10a7a867
VS
147082011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14711 Place mbi on low memory for better compatibility.
14712
7a3d6cd9
VS
147132011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
14716
18dd6b47
VS
147172011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
147182011-04-08 Colin Watson <cjwatson@ubuntu.com>
14719
14720 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 14721 * conf/Makefile.common: Likewise.
18dd6b47 14722
3c0e3f14
VS
147232011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14724
f7148863
VS
14725 * grub-core/normal/menu.c: Add missing include.
14726
147272011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 14730
6d1fa41f
MZ
147312011-04-08 Martin Zuther <mzuther@mzuther.de>
14732
14733 * util/grub-mkconfig.in: Ignore emacsen backup.
14734
478182a8
VS
147352011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
14738 on open.
14739 (grub_util_biosdisk_close): Likewise.
14740
72a89a54
VS
147412011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14742
14743 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
14744 const attribute and use grub_isdigit.
14745
b5ebecfa
A
147462011-04-06 Andrey <dev_null@ukr.net>
14747
14748 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
14749 gcc warning.
14750
7755f66e
VS
147512011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
14754 useful grub_dprintf's.
14755
461121ff
VS
147562011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14757
14758 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
14759
2a961775
VS
147602011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
14763
adf594cc
VS
147642011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 Output errors if theme loading failed.
14767
14768 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
14769 grub_gfxterm_fullscreen on error paths to ...
14770 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
14771 theme loading error.
14772
665900a3
VS
147732011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
14776 space for older compilers.
14777 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14778
a562b479
VS
147792011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
14782 and report them as not RAID members since they are useless for GRUB.
14783 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14784
850e9373
VS
147852011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 Increase LVM implementation robustness in order not to crash on
14788 configurations like pvmove. Previously code assumed that in some places
14789 only lvs or only pvs are used whereas it seems that they are used
14790 interchangeably.
14791
14792 * grub-core/disk/lvm.c (read_node): New function.
14793 (read_lv): Use read_node.
14794 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
14795 Match volumes only at the end when all lvs are found. Take both
14796 pvs (first) and lvs (second) into account.
14797 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
14798 mirror_* into node_*. All users updated.
14799 (grub_lvm_stripe): Merge this ...
14800 (grub_lvm_mirror): ... and this ...
14801 (grub_lvm_node): ... into this. All users updated.
14802
6f332153
VS
148032011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
14806 of function to allow further scanning for LVMs.
14807
829ea451
VS
148082011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14809
14810 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
14811 on failed seek as it breaks open fd reusage.
14812
09ceb9a5
VS
148132011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * util/grub-install.in: Add a recommendation to use --recheck before
14816 reporting bugs.
14817
67e11623
VS
148182011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14819
14820 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
14821 are obtained.
14822
caee5efd
VS
148232011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14824
14825 GRUB developper manual based on existing Internals section and
14826 contributions by the various authors with active copyright assignment.
14827
14828 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
14829 * docs/font_char_metrics.png: New file.
14830 * docs/font_char_metrics.txt: Likewise.
14831 * docs/grub-dev.texi: Likewise.
14832 * docs/grub.texi (Internals): Move from here ...
14833 * docs/grub-dev.texi: ... here.
14834
2cccc747
CW
148352011-04-01 Colin Watson <cjwatson@ubuntu.com>
14836
14837 Store the loopback device as data on loopback grub_disk structures,
14838 rather than the file it points to. This fixes use of freed memory
14839 if an existing loopback device is replaced.
14840
14841 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
14842 disk->data, not dev->file.
14843 (grub_loopback_read): Adjust file assignment to match.
14844 Fixes Ubuntu bug #742967.
14845
186ae367
CW
148462011-04-01 Colin Watson <cjwatson@ubuntu.com>
14847
14848 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
14849 when replacing an existing device.
14850
cfed2ad0
VS
148512011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
14852
14853 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
14854 memory corruptions.
14855
14856 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
14857 unsigned.
14858 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
14859 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
14860 (grub_jfs_read_inode): Likewise.
14861 (grub_jfs_opendir): Likewise. Remove now useless casts.
14862 (grub_jfs_getent): Likewise.
14863 Make ino a grub_uint32_t rather than int.
14864 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
14865 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
14866 division and module with bit operations.
14867 (grub_jfs_find_file): Make ino a grub_uint32_t.
14868 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
14869
05d2ed32
CW
148702011-04-01 Colin Watson <cjwatson@ubuntu.com>
14871
14872 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
14873 warning. (This was in fact always initialised before use, but GCC
14874 wasn't smart enough to prove that.)
14875 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
14876
91dc6073
VS
148772011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
14880 stack alignment.
14881 (efi_wrap_1): Likewise.
14882 (efi_wrap_2): Likewise.
14883 (efi_wrap_3): Likewise.
14884 (efi_wrap_4): Likewise.
14885 (efi_wrap_5): Likewise.
14886 (efi_wrap_6): Likewise.
14887 (efi_wrap_10): Likewise.
14888 Based on information by: Red Hat/Peter Jones.
14889
a8afc1d1
CW
148902011-03-31 Colin Watson <cjwatson@ubuntu.com>
14891
14892 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
14893 set-but-not-used variable.
14894
a826cc7d
CW
148952011-03-31 Colin Watson <cjwatson@ubuntu.com>
14896
14897 * docs/grub.texi (Simple configuration): Be more explicit about
14898 GRUB_DEFAULT, and add an example.
14899 Reported by: Leslie Rhorer.
14900
875b67ba
CW
149012011-03-30 Colin Watson <cjwatson@ubuntu.com>
14902
14903 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
14904 shell".
14905
fd7cd914
AS
149062011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14907
14908 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
14909 * util/grub.d/20_linux_xen.in: Likewise.
14910
090b1b6a
VS
149112011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * util/grub.d/10_linux.in: Try alternative config filenames where
14914 we parse config file.
14915 * util/grub.d/20_linux_xen.in: Likewise.
14916
baad885c
AS
149172011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14918
14919 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
14920 * util/grub.d/20_linux_xen.in: Likewise.
14921
241e41f5
VS
149222011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14923
14924 * grub-core/disk/raid.c (insert_array): Add few potentially
14925 useful grub_util_info.
14926 (grub_raid_register): Likewise.
14927
56445fb2
VS
149282011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
14931 Preserve partition number in mdadm code path.
14932
c871b1c6
VS
149332011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
14936 few potentially useful grub_util_info.
14937
5e631b4f
CW
149382011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14939
14940 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
14941
2d5d0333
CW
149422011-03-30 Colin Watson <cjwatson@ubuntu.com>
14943
14944 * docs/grub.texi (default): Use @example rather than nested
14945 itemized lists to avoid breaking gendocs.
14946
3d7ed04e
CW
149472011-03-30 Colin Watson <cjwatson@ubuntu.com>
14948
14949 * docs/grub.texi (Future): Update.
14950
abf04200 149512011-03-30 Colin Watson <cjwatson@ubuntu.com>
14952
14953 * docs/grub.texi (Environment): New chapter.
14954 (Changes from GRUB Legacy): Link to "Environment block" section for
14955 details of limitations.
14956 (Simple configuration): Likewise. Link to documentation of gfxmode
14957 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
14958 respectively.
14959 (Shell-like scripting): Note that normal variables are stored in the
14960 environment.
14961 (gettext): Link to documentation of lang and locale_dir.
14962 (list_env): New section.
14963 (load_env): New section.
14964 (save_env): New section.
14965
14966 (Reporting bugs): Fix typo.
14967
e1ad0edd
VS
149682011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14969
14970 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14971 the example.
14972
5d803174
VS
149732011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 * grub-core/term/at_keyboard.c (set_scancodes)
14976 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14977
2a2da1d0
CW
149782011-03-30 Colin Watson <cjwatson@ubuntu.com>
14979
14980 * docs/grub.texi (Menu-specific commands): Remove some semantics
14981 that were true in GRUB Legacy but not in GRUB 2.
14982 (submenu): New section.
14983 (false): New section.
14984 (read): New section.
14985 (true): New section.
14986
a7527639
CW
149872011-03-30 Colin Watson <cjwatson@ubuntu.com>
14988
14989 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14990
149912011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14992
14993 * docs/grub.texi (Simple configuration): Explain some of the
14994 current limitations of grub-mkconfig.
8a748df2 14995 Reported by: Leslie Rhorer.
e30af029 14996
fc858482
VS
149972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 Old macs search for boot.efi rather than for bootia32.efi.
15000
15001 * util/grub-install.in: Copy bootia32.efi to boot.efi.
15002 * util/grub-mkrescue.in: Likewise.
15003 Suggested by: Peter Jones.
15004
e1eb511d
VS
150052011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
15008
70e75364
VS
150092011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15010
15011 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
15012 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
15013 (grub_lvm_mirror): New struct.
15014 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
15015 (grub_lvm_iterate): Iterate only visible volumes.
15016 (grub_lvm_read): Factor out to ..
15017 (read_lv): ... this. Support mirrors.
15018 (grub_lvm_read): New wrapper function.
15019 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
15020 stripped or mirrored.
15021
fc18f6a3
VS
150222011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15023
15024 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
15025
5c650f4c
CW
150262011-03-29 Colin Watson <cjwatson@ubuntu.com>
15027
15028 * docs/grub.texi (loopback): New section.
15029
61d7156b
CW
150302011-03-29 Colin Watson <cjwatson@ubuntu.com>
15031
15032 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
15033 removed -p option.
15034
994b8264
CW
150352011-03-29 Colin Watson <cjwatson@ubuntu.com>
15036
15037 * docs/grub.texi (BIOS installation): New section, partly based on
15038 previous text in other sections.
15039 (Installing GRUB using grub-install): Replace BIOS discussion with a
15040 cross-reference.
15041 (Images): Likewise.
15042
9e4d19e0
VS
150432011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15044
15045 * grub-core/kern/emu/hostdisk.c (find_partition_start)
15046 [HAVE_DIOCGDINFO]: Add safety checks.
15047
a307c0b2
VS
150482011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
15051 per default compiled in kernel and prior to 8.0 isn't shipped at all.
15052
b4db4f39
CW
150532011-03-29 Colin Watson <cjwatson@ubuntu.com>
15054
15055 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
15056 real_sb->size is zero (e.g. RAID-0), get the disk size from
15057 real_sb->data_size instead.
15058 Fixes Ubuntu bug #743136.
15059
35e5f84c
VS
150602011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15061
15062 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
15063 printf clauses for printing size and start.
15064
d2e29d81
VS
150652011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
15068 Reported and tested by: Timothy Nikkel.
15069
ed5587af
VS
150702011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
15073 (dirty_region_add_real): ... this.
15074 (dirty_region_add): Don't discard margin refresh when performing
15075 scheduled repaint.
15076
a1dc717c
VS
150772011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 * grub-core/lib/relocator.c (allocate_regstart)
15080 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
15081 terminals are capabple of malloc-free operation.
15082 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15083 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15084
9f3677d3
VS
150852011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
15086
15087 * util/grub-setup.c: Copy the partition table zone if floppy support
15088 is disabled, even if no partition table is found.
15089
15090 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
15091 during POST if an invalid partition table is contained in the PBR
15092 of the active partition when GRUB is installed to a partition.
15093
24148725
CW
150942011-03-28 Colin Watson <cjwatson@debian.org>
15095
15096 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
15097 comment.
15098
f329eda7
CW
150992011-03-28 Colin Watson <cjwatson@debian.org>
15100
15101 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
15102 to be specific about what kind of RAID device we're scanning for.
15103
c482ad98
SG
151042011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
15105
15106 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
15107 return freed string.
15108
5ee04984
VS
151092011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15110
15111 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
15112
f4727da9
VS
151132011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15114
15115 Use libgeom on FreeBSD to detect partitions.
15116
15117 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
15118 (grub-mkrelpath): Likewise.
15119 (grub-script-check): Likewise.
15120 (grub-editenv): Likewise.
15121 (grub-mkpasswd-pbkdf2): Likewise.
15122 (grub-fstest): Likewise.
15123 (grub-mkfont): Likewise.
15124 (grub-mkdevicemap): Likewise.
15125 (grub-probe): Likewise.
15126 (grub-setup): Likewise.
15127 (grub-ofpathname): Likewise.
15128 (grub-mklayout): Likewise.
15129 (example_unit_test): Likewise.
15130 (grub-menulst2cfg): Likewise.
15131 * grub-core/Makefile.core.def (grub-emu): Likewise.
15132 (grub-emu-lite): Likewise.
15133 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
15134 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
15135 define HAVE_DIOCGDINFO.
15136 (follow_geom_up) [FreeBSD]: New function.
15137 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
15138 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
15139 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
15140 unconditionally of HAVE_DIOCGDINFO.
15141
82fe6c75
VS
151422011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 Fix FreeBSD compilation problem.
15145
15146 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
15147 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
15148
4c6c9431
CW
151492011-03-24 Colin Watson <cjwatson@ubuntu.com>
15150
15151 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
15152 Switch back to page zero before loading a kernel, since some kernel
15153 drivers expect that.
15154 Thanks to: Felix Kuehling.
15155
c7064d94
VS
151562011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15159 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15160 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15161
3f71cded
VS
151622011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15165 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15166
ef6de21a
VS
151672011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15170 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15171 malloc is disabled.
15172
8bc66a2c
VS
151732011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15176 for modules headers when counting the needed allocation size.
15177
5657722c
VS
151782011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15181 if no ASCII character is found to prevent crash.
15182
41a85f55
AK
151832011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15184
15185 * grub-core/video/bitmap.c (match_extension): Ignore case.
15186
59e1e5f1
VS
151872011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15190
bd4d051a
VS
151912011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * grub-core/script/parser.y: Declare "time" as valid argument.
15194
bae7fcc1
PJ
151952011-03-23 Peter Jones <pjones@redhat.com>
15196
15197 Fix incorrect assert failure reporting.
15198
15199 * grub-core/tests/example_functional_test.c (example_test): Add
15200 a failure comment.
15201 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15202 (failure_start): ...this. Check that malloc succeeded.
15203 Don't call xvasprintf. Return failure struct.
15204 (failure_append_vtext): New function.
15205 (failure_append_text): Likewise.
15206 (add_failure): Likewise.
15207 (grub_test_assert_helper): Likewise.
15208 * include/grub/test.h (grub_test_assert_helper): New declaration.
15209 (grub_test_assert): Macro rewritten.
15210
537dc9be
VS
152112011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15214
fa3e01bf
VS
152152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15216
15217 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15218
b1d28404
VS
152192011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15220
15221 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15222 into GRUB-style one.
15223
2e3e2e09
VS
152242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15227 error and not grub_errno.
15228 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15229
ed57e557
VS
152302011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15233 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15234
d1611f01
VS
152352011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * grub-core/efiemu/i386/pc/cfgtables.c
15238 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15239 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15240 (grub_xnu_unlock): Likewise.
15241 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15242
7d4e39d6
VS
152432011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15244
15245 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15246 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15247 * grub-core/commands/hashsum.c (aliases): Likewise.
15248 * grub-core/commands/setpci.c (pci_registers): Likewise.
15249 * grub-core/disk/usbms.c (attach_hook): Likewise.
15250 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15251 (zio_checksum_table): Likewise.
15252 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15253 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15254 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15255 * grub-core/lib/relocator.c (leftovers): Likewise.
15256 (extra_blocks): Likewise.
15257 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15258 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15259 (modules_last): Likewise.
15260 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15261 (devices): Likewise.
15262 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15263 (modules_last): Likewise.
15264 * grub-core/normal/auth.c (users): Likewise.
15265 * grub-core/normal/context.c (initial_menu): Likewise.
15266 (current_menu): Likewise.
15267 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15268 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15269 (grub_serial_terminfo_input_template): Likewise.
15270 (grub_serial_terminfo_output_template): Likewise.
15271 (grub_serial_terminfo_input): Likewise.
15272 (grub_serial_terminfo_output): Likewise.
15273 (registered): Likewise.
15274 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15275
40fc4659
VS
152762011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15277
15278 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15279 grub_video_mode_type_t.
15280 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15281 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15282 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15283
2da48d28
VS
152842011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15285
15286 * util/grub-install.in: Correct the x86-64 name as x86_64.
15287
9b43bf39
CW
152882011-03-11 Colin Watson <cjwatson@ubuntu.com>
15289
15290 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15291 initial chunk read from the kernel always includes GRUB's multiboot
15292 header, which is now outside the first sector.
15293
be1a7ce0
CW
152942011-03-09 Colin Watson <cjwatson@ubuntu.com>
15295
15296 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15297 cached mmap_size, so that this works correctly when called multiple
15298 times.
15299 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15300
83a3c48d
CW
153012011-03-09 Colin Watson <cjwatson@ubuntu.com>
15302
15303 * docs/grub.texi (Simple configuration): Tidy up formatting.
15304
57d75699
SJ
153052011-03-07 Szymon Janc <szymon@janc.net.pl>
15306
15307 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15308 Set-but-not-used variable removed.
15309
028501a0
VS
153102011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 Workaround yet another IEEE1275 bug.
15313
15314 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15315 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15316 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15317 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15318 is set.
15319 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15320 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15321
d998657d
VS
153222011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15323
15324 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15325 error.
15326
fee7cdd4
CW
153272011-02-11 Colin Watson <cjwatson@ubuntu.com>
15328
15329 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15330 empty, since in that case we can only generate either nothing or a
15331 syntactically invalid configuration file.
15332 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15333
97286eb5
CW
153342011-02-09 Colin Watson <cjwatson@ubuntu.com>
15335
15336 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15337 (Making a GRUB bootable CD-ROM): Likewise.
15338 (Invoking grub-mkrescue): New section.
15339 Reported by: Yann Dirson. Fixes Debian bug #612585.
15340
22b28eb3
CW
153412011-02-09 Colin Watson <cjwatson@ubuntu.com>
15342
15343 * util/grub-install.in: Remove unnecessary brackets from tr
15344 arguments.
15345 * util/grub.d/10_hurd.in: Likewise.
15346 * util/grub.d/10_kfreebsd.in: Likewise.
15347 * util/grub.d/10_linux.in: Likewise.
15348 * util/grub.d/20_linux_xen.in: Likewise.
15349 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15350
7e735e43
CW
153512011-02-08 Colin Watson <cjwatson@ubuntu.com>
15352
15353 * include/grub/file.h (not_easly_seekable): Rename to ...
15354 (not_easily_seekable): ... this. Update all users.
15355
800f1881
CW
153562011-01-28 Colin Watson <cjwatson@ubuntu.com>
15357
15358 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15359 grub-mkrescue.
15360
3281d3d6
VS
153612011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15362
15363 * util/grub-mkimage.c (generate_image): Refuse to create the images
15364 bigger than the actual flash (512K) in Loongson machines. 512K is also
15365 the biggest chip supported by them.
15366
3533413c
VS
153672011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15368
15369 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15370
73ae4f4f
VS
153712011-01-22 Anthony DeRobertis <anthony@derobert.net>
15372
15373 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15374 super_offset field.
15375
37f4f608
VS
153762011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * util/grub-install.in: Ignore install device on platforms
15379 where it doesn't make sense. Always use UUIDs except on pc, efi and
15380 sparc64.
15381 Reported by: Daniel Kahn Gillmor.
15382
03a4ccb5
VS
153832011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15384
15385 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15386
ffc8f4d8
VS
153872011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15390 (iterate_real): Don't rely on partition being non-NULL.
15391
80f23be7
VS
153922011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15395 supported platforms. Put a compile time assert for this rather than
15396 generate a warning with 32-bit shift.
15397
5d4f4dd5
VS
153982011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15401 logical expression more readable.
15402
e489601a
VS
154032011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15406 even if some elements have a name.
15407 Reported by: Alexander GQ Gerasiov.
15408
96e0a6ea
CW
154092011-01-22 Colin Watson <cjwatson@ubuntu.com>
15410
15411 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15412 path unreadable if `grub-probe -t abstraction' fails, for example if
15413 memberlist fails on an LVM volume group.
15414 Reported by: Darius Jahandarie.
15415
81431e2b
CW
154162011-01-22 Colin Watson <cjwatson@ubuntu.com>
15417
15418 * docs/grub.texi (Simple configuration): Document
15419 GRUB_PRELOAD_MODULES.
15420
5e79d66a
CW
154212011-01-17 Colin Watson <cjwatson@ubuntu.com>
15422
15423 * .bzrignore: Remove nonexistent grub-pbkdf2.
15424
646ada34
VS
154252011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * configure.ac: Bump version to 1.99~rc1.
15428
04360337
VS
154292011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15430
15431 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15432 for safety.
15433
46c9db88
VS
154342011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15437 module.
15438
154392011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
15440
15441 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
15442
4fbf1852
VS
154432011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
15446 diskdevid.
15447
f1632d4d
VS
154482011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15449
15450 Fix compilation on cygwin.
15451
15452 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
15453 -R .drectve on cygwin.
15454 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
15455 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
15456 (COND_CYGWIN): New condition.
15457 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
15458 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
15459 not @TARGET_OBJ2ELF@.
15460 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
15461 type to determine whether aux is to be used.
15462
0b5e127b
VS
154632011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15464
15465 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
15466 realpath'ed device string.
15467 Handle floppy (somewhat).
15468 Issue error in unknown case rather than garbage.
15469 Reported by: Axel Beckert.
15470
173b71e9
VS
154712011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15472
15473 * util/grub.d/00_header.in (load_video): Handle the case when no video
15474 drivers available.
15475 Thanks to: Axel Beckert.
15476
f8f479db
VS
154772011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15478
15479 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
15480 variable. Fixes problem on big endian platforms.
15481
8fc0a245
VS
154822011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
15485 It doesn't work well there.
15486
b8494fbe
VS
154872011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
15490 warning.
15491 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
15492 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
15493 counter.
15494
b44a558c
VS
154952011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15496
15497 Use alias->path rather than buggy "canon".
15498
15499 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
15500 (ofdisk_hash_add): New argument curcan. All users updated.
15501
51fa856c
CW
155022011-01-11 Colin Watson <cjwatson@ubuntu.com>
15503
15504 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
15505
9da068a5
VS
155062011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
15509 loadmask before doing any calculations. Use correct type for offset.
15510 (grub_linux_load64): Likewise.
15511
86205c94
CW
155122011-01-11 Colin Watson <cjwatson@ubuntu.com>
15513
15514 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
15515 with NULL.
15516 (console_grub_equivalences_unshift): Likewise.
15517 Reported by: Daniel Dehennin.
15518
4531a206
VS
155192011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15520
15521 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
15522 (set_env_limn_ro): Likewise.
15523 (GRUB_MOD_INIT): Likewise.
15524 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
15525 ARRAY_SIZE while on it.
15526 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
15527 * grub-core/normal/context.c (grub_env_export): Move from here ...
15528 * grub-core/kern/env.c (grub_env_export): ... here.
15529 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
15530 prefix.
15531 * grub-core/kern/main.c (grub_main): Export root and prefix.
15532 * include/grub/env.h (grub_env_export): Export.
15533 Reported by: Seth Goldberg.
15534
45146057
VS
155352011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15538 Take into account space used by ELF sections and multiboot palette.
15539 Reported by: Grégoire Sutre.
15540
f093110b
VS
155412011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 * BUGS: New file.
15544
3395fe52
VS
155452011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15546
15547 Pass more appropriate video id to Linux.
15548
15549 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
15550 grub_video_get_driver_id and variable gfxpayloadforcelfb to
15551 fill have_vga.
15552 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
15553 shift params->lfb_size.
15554 * include/grub/i386/linux.h: Make an enume out of have_vga values.
15555
c2fa6cbb
VS
155562011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * util/grub-menulst2cfg.c: Add missing include of misc.h.
15559
b3ff6ff0
VS
155602011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
15563 separator and pass bootpath/devid even if only one of them is available.
15564 Reported by: Seth Goldberg.
15565
ae67942e
VS
155662011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
15569 implementations bug on them.
15570
15571 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
15572 memory.
15573 (filter_memory_map): Likewise.
15574
d570097a
VS
155752011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15576
15577 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
15578 Reported by: nebuchadnezzar.
15579
a508e776
VS
155802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15581
15582 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
15583 Reported by: nebuchadnezzar.
15584
dcb883b1
VS
155852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15586
15587 Submenu default support.
15588
15589 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
15590 auto_boot. All users updated.
15591 Declared static.
15592 Handle chosen and default with submenus.
15593 (grub_menu_execute_with_fallback): Declared static.
15594 Don't notify failure if autobooted. Upper level does it.
15595 (menuentry_eq): New function.
15596 (get_entry_number): Use menuentry_eq.
15597 (show_menu): New parameter "autobooted". All users updated.
15598 (grub_show_menu): Likewise.
15599 * include/grub/normal.h (grub_show_menu): Likewise.
15600 * include/grub/menu.h (grub_menu_execute_entry): Removed.
15601 (grub_menu_execute_with_fallback): Likewise.
15602
6fef99b4
VS
156032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 * util/grub-mklayout.c (usage): Update help text.
15606
47a77af5
VS
156072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
15610
ce6bb3ee
VS
156112011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15612
15613 * util/grub-menulst2cfg.c (main): Trim the line.
15614
db87be2a
VS
156152011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
15618 (grub_machine_init): Don't check amount of low memory as reportedly
15619 INT 12h can be broken and if low memory is too low we wouldn't have
15620 gotten into grub_machine_init anyway.
15621
c49849cc
VS
156222011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15623
15624 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
15625 (grub_machine_mmap_iterate): Take low memory into account
15626
b1969b30
VS
156272011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15628
15629 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
15630 badfs.
15631 Reported by: TiCPU.
15632
cf0eaf13
VS
156332011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15634
15635 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
15636 members errors.
15637
1f060f39
GS
156382011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15639
15640 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
15641 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
15642
a21e5672
GS
156432011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15644
15645 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
15646 openbsd and netbsd types being in part_bsd module.
15647
c88172fa
VS
156482011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
15651 (_FILE_OFFSET_BITS): Likewise.
15652 Reported by: Seth Goldberg.
15653
53798c4b
GS
156542011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15655
15656 * configure.ac: Check for libdevmapper header.
15657
e7121b69
VS
156582011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
15661 avoid aliasing.
15662 (fzap_lookup): Likewise.
15663 (dnode_get): Likewise.
15664 (make_mdn): Likewise.
15665 (zfs_mount): Likewise.
15666 (fzap_iterate): Use temporary pointer to avoid aliasing.
15667 (grub_zfs_read): Likewise.
15668 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
15669 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
15670 pointers to avoid aliasing.
15671 (grub_cmd_xnu_kernel64): Likewise.
15672 (grub_xnu_load_driver): Likewise.
15673
fc836af9
VS
156742011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
15677 aliasing warning.
15678 (grub_cmd_terminal_output): Likewise.
15679 Reported and tested by: Grégoire Sutre.
15680
f9f37648
VS
156812011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
15684 warning.
15685 Reported and tested by: Grégoire Sutre.
15686
ec1dfd63
VS
156872011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15688
15689 * configure.ac: Do CPU substitution even if it's specified explicitly.
15690 Reported and tested by: Alain Greppin.
15691
9462775a
VS
156922011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
15695 Reported and tested by: Alain Greppin.
15696
0fd48e35
VS
156972011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 Satisfy some bison versions need for inttypes.h.
15700
15701 * grub-core/lib/posix_wrap/inttypes.h: New file.
15702 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
15703 (int16_t): Likewise.
15704 (int32_t): Likewise.
15705 (int64_t): Likewise.
15706 Reported and tested by: Alain Greppin.
15707
43f1bc83
VS
157082011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15709
15710 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
15711 Silence spurious warning.
15712 Reported and tested by: Alain Greppin.
15713
64d1f041
SJ
157142011-01-07 Szymon Janc <szymon@janc.net.pl>
15715
15716 * docs/grub.texi (Support automatic decompression): Update with xz
15717 decompression support.
15718
25953e10
SJ
157192011-01-07 Szymon Janc <szymon@janc.net.pl>
15720
15721 Improve loaders' kernel command line handling.
15722
15723 * grub-core/lib/cmdline.c: New file.
15724 * include/grub/lib/cmdline.h: Likewise.
15725 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
15726 grub_create_loader_cmdline to create kernel command line.
15727 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15728 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
15729 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
15730 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
15731 (linux): Add lib/cmdline.c on common.
15732
e72d259f
VS
157332011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
15736 inopos might be unaligned.
15737
c0cf26da
VS
157382011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
15741 endian transformations.
15742 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15743 Based on report by: Doug Nazar.
15744
0ca09e6c
DN
157452011-01-07 Doug Nazar <nazard.michi@gmail.com>
15746
15747 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
15748 array->members[i].start_sector.
15749 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
15750
014b6806
VS
157512011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
15754 Reported and tested by: Grégoire Sutre.
15755
415502c2
CW
157562011-01-06 Colin Watson <cjwatson@ubuntu.com>
15757
15758 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
15759 avoid causing test failures by clearing the screen.
15760
71b6a2b7
CW
157612011-01-06 Colin Watson <cjwatson@ubuntu.com>
15762
15763 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15764 Fix prefix check to handle the case where dir ends with a slash
15765 (most significantly, "/" itself).
15766 Reported by: Michael Vogt.
15767
b3f8d28a
VS
157682011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15769
15770 Run terminfo_cls on initing terminfo output to clear the screen and
15771 move the cursor to (0,0).
15772
15773 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
15774 Call grub_terminfo_output_init.
15775 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
15776 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
15777 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
15778
4c3e4f37
VS
157792011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
15782 only when needed.
15783
488f71f1
VS
157842011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
15787 CTRL.
15788
18a38098
VS
157892011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 The E820 type 5 is BADRAM, not EXEC_CODE.
15792
15793 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15794 (GRUB_E820_BADRAM): New define.
15795 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
15796 into reserved. Propagate BADRAM.
15797 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15798 (GRUB_E820_BADRAM): New define.
15799
9eae2084
VS
158002011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15801
15802 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
15803 Ignore the memory post-4G.
15804 (grub_relocator_firmware_alloc_region): Additional debug statement.
15805
ebc71d28
VS
158062011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15807
15808 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
15809 names.
15810 Reported by: David Pravec.
15811
446fa400
VS
158122011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
15815 BIOSes.
15816
a0159f37
VS
158172011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15818
15819 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
15820 Prevent overflow.
15821 (grub_reed_solomon_recover): Likewise.
15822
e5146ca1
VS
158232011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15824
15825 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
15826
158272011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
15828
15829 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
15830 variable.
15831
5b1bdf12
CW
158322011-01-04 Colin Watson <cjwatson@ubuntu.com>
15833
15834 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
15835 descriptions of extract_legacy_entries_source and
15836 extract_legacy_entries_configfile.
15837 Reported by: Seung Soo, Ha.
15838
99d925aa
CW
158392011-01-03 Colin Watson <cjwatson@ubuntu.com>
15840
15841 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
15842 on devices that do not implement function 0.
15843
4af0504b
DV
158442011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
15845
15846 * grub-core/fs/hfsplus.c: Make parent unsigned.
15847 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
15848 overflows.
15849 (grub_hfsplus_cmp_extkey): Likewise
15850
469ee10a
VS
158512011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * util/grub-install.in: Correctly use bootloader_id and not
15854 GRUB_DISTRIBUTOR on efibootmgr line.
15855
323a8e9c
VS
158562011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
15859
1b394975
IC
158602010-12-31 Ian Campbell <ijc@hellion.org.uk>
15861
15862 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
15863 Xen and reorder menu item wording to make it clearer that this entry
15864 will launch Xen. Print separate messages when loading Xen and
15865 Linux.
15866
275bff5f
VS
158672010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
15870 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
15871 loop in case of incorrect amiga partmap.
15872
307806cb
VS
158732010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
15876 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
15877 Reported by:EHeM.
15878
b12b923e
VS
158792010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15880
15881 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
15882 spurious warning.
15883 Reported by: crocket
15884
14b48a19
VS
158852010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
15888 Preload EFIemu.
15889 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
15890
693db2df
VS
158912010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15892
15893 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
15894 is loaded
15895 (grub_cmd_xnu_kextdir): Likewise.
15896 (grub_cmd_xnu_splash): Likewise.
15897
c7638645
VS
158982010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 Avoid using Reed-Solomon with 0 redundancy.
15901
15902 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
15903 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
15904 or 0 redundancy.
15905 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
15906 (grub_reed_solomon_recover): Likewise.
15907
25dd4780
VS
159082010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15909
15910 Don't use disk subsystem in freebsd_boot.
15911
15912 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
15913 (freebsd_biosdev): Likewise.
15914 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
15915 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
15916
0b2db943
VS
159172010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 Handling of files of unknown size is currently limited. They can't be
15920 used e.g. for initrd or modules. Moreover gzip handling of not
15921 easily seekable files is buggy. Disable unknown file size for now. May
15922 be inefficient but works.
15923
15924 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
15925 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
15926
5c408d0f
MP
159272010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
15928
15929 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
15930 floppy probe.
15931
190a011a
JD
159322010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
15933
15934 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
15935
022d01b8
SL
159362010-12-25 Shea Levy <shlevy>
15937
15938 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
15939
c4855fdc
VS
159402010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15941
15942 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
15943 Windows Server 2008.
15944 Reported by: Devin Giddings.
15945
0354b867
VS
159462010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
15949 writing an error message because of async power management.
15950 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
15951 (grub_reboot): Likewise.
15952
ab66c69f
JU
159532010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
15954
15955 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
15956 keep unit tests from failing when they shouldn't.
15957
1426ef35
CW
159582010-12-21 Colin Watson <cjwatson@ubuntu.com>
15959
15960 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
15961 previous patch increased the size of the RS code by 20 bytes (at
15962 least with gcc-4.4), so increase this by 20 bytes to match.
15963 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15964
20641b6b
CW
159652010-12-21 Colin Watson <cjwatson@ubuntu.com>
15966
15967 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15968 scratch area. Make sure to initialise chosen in standalone mode as
15969 well as non-standalone.
15970 Reported by: Robert Hooker and Andy Whitcroft.
15971 Tested by: Andy Whitcroft.
15972
d060ad60
CW
159732010-12-21 Colin Watson <cjwatson@ubuntu.com>
15974
15975 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15976 constructing a new unescaped string and passing it to grub_xputs in
15977 one go, rather than passing characters to grub_printf one at a time.
15978
b889cfad
CW
159792010-12-21 Colin Watson <cjwatson@ubuntu.com>
15980
15981 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15982 initialising utf16.
15983
4e01b6c8
CW
159842010-12-21 Colin Watson <cjwatson@ubuntu.com>
15985
15986 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15987 comment. Add an extra layer of quotation, requiring the output of
15988 this function to be used in a printf format string.
15989 (gettext_printf): New function.
15990 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15991 Extract translatable strings from here-documents and use a temporary
15992 variable instead, so that xgettext can find them.
15993 * util/grub.d/10_kfreebsd.in: Likewise.
15994 * util/grub.d/10_linux.in: Likewise.
15995 * util/grub.d/20_linux_xen.in: Likewise.
15996
15997 * po/grub.d.sed: New file.
15998 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15999 arguments. Set c-format flags on all strings extracted from
16000 util/grub.d/ (xgettext refuses to include these itself for strings
16001 it extracted from a shell file, but these really are c-format).
16002
5318fe98
VS
160032010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
16006 Avoid next pointing to nowhere.
16007
6c85b743
VS
160082010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
16011 rather than assuming than rootblock is exactly in the middle.
16012 (grub_affs_label): Likewise.
16013
a2a08a35
VS
160142010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
16017 reserved_first_sector to 0.
16018 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
16019 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
16020 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
16021
7059d1ec
VS
160222010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Fix handling of UTF-16 UDF labels.
16025
16026 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
16027 (read_string): .. here.
16028 (grub_udf_label): Use read_string.
16029
30aff4cb
BC
160302010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
16031
16032 * grub-core/normal/menu_entry.c (run): Execute commands from menu
16033 editor under argument scope.
16034 Reported by: Jordan Uggla
16035
5cf86f4b
VS
160362010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
16039
32570200
CW
160402010-12-18 Colin Watson <cjwatson@ubuntu.com>
16041
16042 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
16043 line, and other keys scroll an entire page (previous handling was
16044 for \r and \n to scroll a page and other keys to scroll two lines).
16045
e1dffcf2
VS
160462010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16049 Set ptrdest to correct get_physical_target_address rather than
16050 incorrect get_virtual_current_address.
16051
b04298cf 160522010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
16053
16054 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
16055 correct cat to grub_uint8_t * rather than grub_uint32_t *.
16056
5367ecd3
CW
160572010-12-10 Colin Watson <cjwatson@ubuntu.com>
16058
16059 * .bzrignore: Ignore grub-core/rs_decoder.S.
16060
1fb430f8
CW
160612010-12-10 Colin Watson <cjwatson@ubuntu.com>
16062
16063 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
16064 .mo/.mo.gz opening sequence to ...
16065 (grub_mofile_open_lang): ... here.
16066 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
16067 * util/grub.d/00_header.in (grub_lang): Include country part of
16068 locale.
16069 Reported by: Mario Limonciello.
16070
a94a6671
RM
160712010-12-09 Robert Millan <rmh@gnu.org>
16072
16073 * NEWS: Document addition of ZFS support.
16074
24b7938b
CW
160752010-12-04 Colin Watson <cjwatson@ubuntu.com>
16076
16077 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
16078 rather than `/ 2', as the latter requires -Wa,--divide which would
16079 require bumping our minimum binutils version.
16080
bddc3ef6
BC
160812010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
16082
16083 * util/grub-script-check.c (main): Print script line number on
16084 error.
16085
bf78d5b2
RM
160862010-12-01 Robert Millan <rmh@gnu.org>
16087
16088 * grub-core/fs/zfs/zfs.c: New file.
16089 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
16090 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
16091 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
16092 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16093
16094 * include/grub/zfs/dmu.h: Likewise.
16095 * include/grub/zfs/dmu_objset.h: Likewise.
16096 * include/grub/zfs/dnode.h: Likewise.
16097 * include/grub/zfs/dsl_dataset.h: Likewise.
16098 * include/grub/zfs/dsl_dir.h: Likewise.
16099 * include/grub/zfs/sa_impl.h: Likewise.
16100 * include/grub/zfs/spa.h: Likewise.
16101 * include/grub/zfs/uberblock_impl.h: Likewise.
16102 * include/grub/zfs/vdev_impl.h: Likewise.
16103 * include/grub/zfs/zap_impl.h: Likewise.
16104 * include/grub/zfs/zap_leaf.h: Likewise.
16105 * include/grub/zfs/zfs.h: Likewise.
16106 * include/grub/zfs/zfs_acl.h: Likewise.
16107 * include/grub/zfs/zfs_znode.h: Likewise.
16108 * include/grub/zfs/zil.h: Likewise.
16109 * include/grub/zfs/zio.h: Likewise.
16110 * include/grub/zfs/zio_checksum.h: Likewise.
16111
16112 * Makefile.util.def: Build ZFS into libgrubmods.
16113 * grub-core/Makefile.core.def: Build zfs.mod.
16114
3f0f3831
SJ
161152010-11-30 Szymon Janc <szymon@janc.net.pl>
16116
16117 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
16118 variable.
16119 * grub-core/commands/wildcard.c (match_files): Likewise.
16120
3a4253b2
RM
161212010-11-30 Robert Millan <rmh@gnu.org>
16122
16123 * grub-core/loader/i386/bsd.c
16124 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
16125 whether kernel is loaded using grub_loader_is_loaded(), rather
16126 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
16127 certain error conditions.
16128
8c317b27
RM
161292010-11-30 Robert Millan <rmh@gnu.org>
16130
c5c9cd3e
RM
16131 * grub-core/commands/echo.c: Include `<grub/term.h>'.
16132 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 16133
49d3ab46
VS
161342010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16135
16136 Avoid using tricks for initialising endian variables.
16137
16138 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
16139 Make const.
16140 (GRUB_MOD_INIT): Don't byte-swap.
16141 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16142 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
16143 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
16144 (grub_swap_bytes32_compile_time): Likewise.
16145 (grub_cpu_to_le32_compile_time): Likewise.
16146 (grub_cpu_to_le16_compile_time): Likewise.
16147
f420a804
VS
161482010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 * util/grub-setup.c (setup): Stop recommending --force. People who
16151 understand the dangers of blocklists are able to find this option
16152 anyway and the ones who don't shouldn't use it anyway.
16153
4e7db17b
RM
161542010-11-26 Robert Millan <rmh@gnu.org>
16155
16156 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16157 Update all users.
16158
9be57a0d
CW
161592010-11-26 Colin Watson <cjwatson@ubuntu.com>
16160
16161 Fix LVM-on-RAID probing.
16162
16163 * util/grub-probe.c (probe): Remember which disk was detected as
16164 RAID (perhaps an LVM physical volume). Use that disk's raidname
16165 rather than that of the top-level disk.
16166
2c7859b3 161672010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 16168
d7647bb6
BC
16169 Fix cmdline argument quotes for setparams command of menuentry
16170 definitions.
7e623b0d
BC
16171
16172 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16173 quotes for arguments.
f866fe80 16174 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 16175 grub_strchrsub function instead.
f866fe80 16176
7955bea0 16177 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 16178
74f72a64
CW
161792010-11-24 Colin Watson <cjwatson@ubuntu.com>
16180
16181 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16182 effort by skipping "." and ".." entries up-front.
16183 Suggested by: Michael Lazarev.
16184
5a407278
CW
161852010-11-24 Colin Watson <cjwatson@ubuntu.com>
16186
16187 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16188 ldflags to ldadd, to fix link line ordering.
16189 (none_decompress): Likewise.
16190
3030d8ec
CW
161912010-11-24 Colin Watson <cjwatson@ubuntu.com>
16192
16193 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16194 platforms.
16195 (grub-emu-lite): Remove kern/emu/cache.S.
16196
b7fbac12
CW
161972010-11-23 Colin Watson <cjwatson@ubuntu.com>
16198
16199 * util/deviceiter.c (compare_devices): If the by-id link for a
16200 device couldn't be resolved, fall back to sorting by the by-id link
16201 rather than segfaulting.
16202 Reported and tested by: Daniel Mierswa.
16203
5225f328
CW
162042010-11-23 Colin Watson <cjwatson@ubuntu.com>
16205
16206 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16207 ldflags, to fix link line ordering.
16208
038b3ce8
CW
162092010-11-23 Colin Watson <cjwatson@ubuntu.com>
16210
16211 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16212 linkers are picky about this.
16213
bf16e98e
CW
162142010-11-23 Colin Watson <cjwatson@ubuntu.com>
16215
16216 * grub-core/Makefile.am (command.lst): Adjust sed expression
16217 ordering so that extended and priority commands aren't treated as
16218 ordinary commands.
16219
7242bab6
CW
162202010-11-23 Colin Watson <cjwatson@ubuntu.com>
16221
16222 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16223 Remove byte-swapping function calls, which are not valid in
16224 structure initialisers.
16225 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16226 non-const.
16227 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16228 grub_gpt_partition_type_bios_boot.
16229
14e8b279
CW
162302010-11-22 Colin Watson <cjwatson@ubuntu.com>
16231
16232 Fix test program build on GNU/kFreeBSD.
16233
16234 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16235 $(LIBNVPAIR)' library dependencies.
16236
e6f63338 162372010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
16238
16239 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16240
cf8ffc38
CW
162412010-11-22 Colin Watson <cjwatson@ubuntu.com>
16242
16243 * util/grub-install.in: Remove excessive quoting that broke
16244 installations to RAID devices.
16245
7f8b0fd7
VS
162462010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16247
16248 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16249 bootloader version instead of 0.
16250
dfd240b1
VS
162512010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16254 warning.
16255
7b61e609
VS
162562010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16259 retrieve the metadat sector if size isn't known.
16260 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16261
9dfe92d0
RM
162622010-11-18 Robert Millan <rmh@gnu.org>
16263
16264 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16265 with grub_memcmp().
16266
41cc919e
VS
162672010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16268
16269 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16270 arrow.
16271 Reported by: Jordan Uggla.
16272
1afcc914
VS
162732010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Make better UTF compliant.
16276
16277 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16278 sequences as incorrect.
16279 (grub_is_valid_utf8): Likewise.
16280 (grub_utf8_to_ucs4): Likewise.
16281 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16282 (grub_ucs4_to_utf8_alloc): Likewise.
16283 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16284
f1808884
VS
162852010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16286
16287 Make legacy_source behave like source.
16288
16289 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16290 grub_show_menu.
16291 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16292
24ec575b
CW
162932010-11-16 Colin Watson <cjwatson@debian.org>
16294
16295 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16296 (-Wunused implies -Wunused-parameter, but not vice versa).
16297
72b7c7aa
CW
162982010-11-16 Colin Watson <cjwatson@ubuntu.com>
16299
16300 * configure.ac: Make error messages less confusing by testing for
16301 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16302 accepted, but produces a diagnostic if something else is wrong).
16303
e98937aa
VS
163042010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16307 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16308 (now unused).
16309 (grub_keyboard_controller_init)
16310 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16311 read the initial state since controller isn't inited yet.
16312
f6bbabc3
VS
163132010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16314
16315 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16316 allocate_regbeg may need to create new chunk header.
16317
22e7dbb2
VS
163182010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 Fix quoting in legacy parser.
16321
16322 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16323 single quotes.
16324 (grub_legacy_parse): Likewise.
16325 Reported by: Jordan Uggla.
16326 Tested by: Jordan Uggla.
16327
03f80960
VS
163282010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 Don't add -lgcc on i386 and x86_64.
16331
16332 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16333 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16334 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16335
779dc15b
VS
163362010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * configure.ac: Add -Wno-trampolines when supported.
16339
d20a3b37
MV
163402010-11-14 Modestas Vainius <modax@debian.org>
16341
16342 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16343 fakeraid.
16344
e5360933
GC
163452010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16346
16347 Add generic logical block size support for UDF.
16348
16349 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16350 (GRUB_UDF_BLKSZ): Removed.
16351 (struct grub_udf_data): New field "lbshift" to hold the logical block
16352 size of the file system in log2 format. All users updated.
16353 (sblocklist): Change type to unsigned.
16354 (grub_udf_mount): Change type of "sblklist" to unsigned.
16355 Move AVDP search before VRS recognition, because the latter requires
16356 knowledge of the logical block size, which is detected during the
16357 former.
16358 Detect and validate logical block size during AVDP search, adding
16359 support for block sizes 512, 1024 and 4096.
16360 Make VRS recognition independent of block size.
16361
cb0229c5
GC
163622010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16363
16364 Properly handle deleted files on UDF.
16365
16366 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16367 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16368 set.
16369
406858a8
GC
163702010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16371
16372 Support reading files larger than 2 GiB.
16373
16374 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16375 "offset" to grub_off_t.
16376 (grub_udf_read_file): Likewise for parameter "pos".
16377
130da6a7
VS
163782010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16381 unavailable.
16382 (Simple configuration): Refer to Changes from GRUB Legacy about
16383 save_env availability.
16384
65e93f6b
VS
163852010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16386
16387 * util/grub-install.in: Ignore empty partition table detection
16388 instead of trying to include part_ module.
16389
1fd08bf1
VS
163902010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16393 LVM on RAID support.
16394
de1a024f
VS
163952010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 Properly define WORDS_BIGENDIAN in wrapped environments.
16398
16399 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16400 definition.
16401 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16402
16403 Reported by: Manoel Rebelo Abranches.
16404 Tested by: Manoel Rebelo Abranches.
16405
bc5dd0b9
VS
164062010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 * util/grub-mkconfig.in: Fix quoting.
16409
58c184be
VS
164102010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16411
16412 Support big ext2 files.
16413
16414 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16415 (grub_ext2_read_block): Support triple indirect blocks.
16416 (grub_ext2_read_file): Use 64-bit types and read size_high.
16417 (grub_ext2_open): Read size_high.
16418 Reported by: Ximin Luo.
16419 Tested by: Manoel Rebelo Abranches.
16420
5f0c02b3
VS
164212010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16422
16423 * util/grub-install.in: Handle filenames containing spaces.
16424 Reported by: Jordan Uggla.
16425 Tested by: Jordan Uggla.
16426
4417aae6
VS
164272010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 * util/grub-mkconfig.in (grub_script_check): New variable.
16430 Use grub_script_check instead of grub-script-check.
16431 Reported by: Barry Jackson.
16432
7625a68e
VS
164332010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 * docs/grub.texi (menu): Correct the order.
16436 Reported by: D. Hugh Redelmeier.
16437
10001ac5
VS
164382010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
16441 jump.
16442
9c4cf53b
MRA
164432010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16444
10001ac5
VS
16445 * include/grub/elfload.h (grub_elf32_size): New parameter.
16446 All users updated.
9c4cf53b
MRA
16447 Return maximum segments alignment.
16448 (grub_elf64_size): Likewise.
16449 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
16450 Return maximum segments alignment.
16451 (grub_elf64_size): Likewise.
16452 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
16453 (grub_linux_claimmap_iterate): New function. Uses the
16454 "available" property in the "memory" node for memory allocation
16455 for kernel in the PowerPC loader.
9c4cf53b
MRA
16456 (grub_linux_load32): Correctly find linux entry point offset.
16457 (grub_linux_load64): Likewise.
16458
d2bf06bf
RM
164592010-11-07 Robert Millan <rmh@gnu.org>
16460
16461 On mips-yeeloong, build with -march=loongson2f when this flag is
16462 available (GCC >= 4.4).
16463 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
16464 `-march=mips3'.
16465 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
16466 or otherwise add -march=mips3.
16467
898c99a2
BC
164682010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
16469
87220a68
BC
16470 Suppress shell expansion on echo '*' and echo "*" like cases.
16471 Reported by: Jordan Uggla.
898c99a2
BC
16472
16473 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
16474 string arguments before shell expansion.
16475 * tests/grub_cmd_echo.in: New testcases.
16476
4f9b406a
RM
164772010-11-07 Robert Millan <rmh@gnu.org>
16478
16479 * conf/mips-qemu-mips.rmk: Remove stale file from previous
16480 transition.
16481
80c6d25e
VS
164822010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
16483
16484 * grub-core/kern/emu/hostdisk.c
16485 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
16486
4a1a0153
VS
164872010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
16490 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
16491 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
16492
34706ddc
VS
164932010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16494
16495 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
16496
6972dea9
VS
164972010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * util/grub-install.in: Replace useless recomendation to pass
16500 --modules with a recomendation to report a bug.
16501
9c693bd6
VS
165022010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16503
16504 Properly register serial terminfo.
16505 Reported by: Jordan Uggla
16506
16507 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
16508 const.
16509 (grub_serial_terminfo_output_template): Likewise.
16510 (grub_cmd_serial): Register "serial" with terminfo.
16511 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
16512 grub_serial_terminfo_output.
16513
6c9e4c0c
RM
165142010-11-05 Robert Millan <rmh@gnu.org>
16515
16516 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
16517 needed).
16518
b9b3839f
RM
165192010-11-05 Robert Millan <rmh@gnu.org>
16520
16521 On Yeeloong, pass machine type information to Linux.
16522
16523 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
16524 (LOONGSON_MACHTYPE): New macro, set to
16525 "machtype=lemote-yeeloong-2f-8.9inches".
16526 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
16527 additional argument to Linux.
16528
1a3aaff4
RM
165292010-11-04 Robert Millan <rmh@gnu.org>
16530
16531 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
16532 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
16533 (its SATA disks are detected as slaveless IDE master drives on
16534 kFreeBSD).
16535 Reported by Carsten Aulbert.
16536
a75f4f62
CW
165372010-11-02 Colin Watson <cjwatson@ubuntu.com>
16538
16539 * util/bin2h.c (main): Fix spelling error in generated output.
16540
33b4b0c6
GS
165412010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
16542
16543 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
16544
2b36fbf4
VS
165452010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
16548 vga= option is supplied.
16549
74aaf558
VS
165502010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
16553 * util/grub.d/10_kfreebsd.in: Likewise.
16554 * util/grub.d/10_linux.in: Likewise.
16555 * util/grub.d/20_linux_xen.in: Likewise.
16556
6428dec3
VS
165572010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16558
16559 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
16560 argument as an argument to no-argument option.
16561
f8729d98
VS
165622010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 * util/grub.d/10_linux.in: Add missing load_video with explicit
16565 GRUB_GFXPAYLOAD_LINUX.
16566
89d68fa6
VS
165672010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16568
16569 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
16570
3a1197cd
VS
165712010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
16574 elements with invlid index.
16575 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16576 * grub-core/disk/raid.c (insert_array): Automatically reallocate
16577 members.
16578 * include/grub/raid.h (grub_raid_member): New struct.
16579 (grub_raid_array): Transform devices and start_sector into usage of
16580 grub_raid_member. All users updated
16581 (allocated_devs): New member.
16582
71574288
VS
165832010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
16586 is modified
16587
8d40ec65
BC
165882010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
16589
16590 NetBSD build fix for getline function conflict from gnulib.
16591
16592 * Makefile.util.def (libgrubkern.a): New library for grub kernel
16593 components that depend on gnulib headers.
16594 (libgrubmods.a): Renamed from earlier libgrub.a.
16595 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
16596
95b9257e
VS
165972010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
16600 install rather than creating a broken install.
16601
26c53dc6
VS
166022010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16603
16604 * util/grub-setup.c (argp): Remove misleading example of installing to
16605 a partition.
16606
4171b3c5
VS
166072010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 * util/grub-setup.c (setup): Clarify the error message.
16610
18568d18
VS
166112010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
16614
4f6a2e21
VS
166152010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16616
16617 * grub-core/kern/emu/misc.c
16618 (grub_make_system_path_relative_to_its_root)
16619 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
16620
166212010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
16622
16623 * grub-core/kern/emu/misc.c
16624 (grub_make_system_path_relative_to_its_root): Revert r2882.
16625
e138c458
VS
166262010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
16629 useless field head. All users updated.
16630 (free_subchunk): Correct handling of IN_REGION subchunk.
16631
0cbcdf0e
CW
166322010-10-22 Colin Watson <cjwatson@ubuntu.com>
16633
16634 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
16635 (Supported kernels): Likewise.
16636
b65ea155
GS
166372010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16638
16639 Make mktemp invocations portable.
16640
16641 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
16642 exit if mktemp fails.
16643 * tests/grub_script_blockarg.in: Likewise.
16644 * tests/partmap_test.in: Likewise.
16645 * tests/util/grub-shell-tester.in: Likewise.
16646 * tests/util/grub-shell.in: Likewise.
16647 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16648 * Makefile.am: Likewise, and chain shell commands with `&&'
16649 instead of ';'.
16650 * util/grub-mkrescue.in: Use the same explicit template as above, and
16651 exit if mktemp fails.
16652
05f43cdd
BC
166532010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
16654
16655 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
16656 Linux kernel, reported by Dennis Schridde.
16657
800e6a9b
SJ
166582010-10-17 Szymon Janc <szymon@janc.net.pl>
16659
16660 * grub-core/normal/auth.c (grub_auth_check_authentication):
16661 Set-but-not-used variable removed.
16662
d82df574
VS
166632010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16664
16665 * docs/grub.texi (GNU/Linux): Document APM unavailability with
16666 32-bit linux protocol.
16667
7bced458
VS
166682010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16669
16670 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
16671 cursor shape for sanity.
16672
5b027690
VS
166732010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 * docs/grub.texi (Installation): Document buggy BIOS install.
16676
ba5f65cf
VS
166772010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * docs/grub.texi (Installation): Indent.
16680
fdf2ec9c
VS
166812010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 * util/grub-setup.c (setup): New parameter allow_floppy.
16684 (arguments): New member allow_floppy.
16685 (argp_parser): Handle --allow-floppy.
16686 (main): Pass allow_floppy.
16687 * util/grub-install.in: New option --allow-floppy passed though to
16688 grub-setup.
16689
861dfd4c
VS
166902010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 * util/grub-install.in: Handle partitionless disks.
16693
f77a8c24
VS
166942010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 * util/grub-setup.c (setup): Don't clean blocklists before readability
16697 verfification.
16698
27d9ee32
VS
166992010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 * docs/grub.texi (Installation): Document embedding zone. Remove
16702 obsolete grub-install example.
16703
6bdda8f8
SJ
167042010-10-16 Szymon Janc <szymon@janc.net.pl>
16705
16706 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
16707 Set-but-not-used variable ifdef'ed.
16708 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
16709 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
16710 variable removed.
16711 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
16712 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
16713 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16714 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
16715 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
16716 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16717 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
16718 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
16719 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
16720 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
16721 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
16722 Likewise.
16723
e19b016b
VS
167242010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16725
16726 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
16727 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
16728 enum value.
16729
6c8d3002
VS
167302010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
16733 synonym to _S5_. Needed for some DSDTs.
16734
c32b51c9
VS
167352010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 Userspace ACPI parser debugging.
16738
16739 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
16740 headers and add relevant defines. Don't include standard headers.
16741 (main) [GRUB_DSDT_TEST]: New function.
16742 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
16743 Don't declare functions.
16744
fbfbeb39
VS
167452010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Remove dead grub_efi_mm_fini.
16748
16749 * grub-core/kern/efi/mm.c (allocated_page): Removed.
16750 (ALLOCATED_PAGES_SIZE): Likewise.
16751 (MAX_ALLOCATED_PAGES): Likewise.
16752 (allocated_pages): Likewise.
16753 (grub_efi_allocate_pages): Don't record allocated pages.
16754 (grub_efi_free_pages): Likewise.
16755 (grub_efi_mm_init): Likewise.
16756 (grub_efi_mm_fini): Removed.
16757
65f7ed7c
VS
167582010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
16761 (grub_efi_mm_init): Take into account the memory map size increase.
16762
24977b44
VS
167632010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
16766 (serial_hw_put): Wait based on real time rather than port reads. Don't
16767 roken ports.
16768 * include/grub/serial.h (grub_serial_port): New field broken.
16769
1eb01cd2
RM
167702010-10-16 Robert Millan <rmh@gnu.org>
16771
16772 * grub-core/kern/emu/misc.c
16773 (grub_make_system_path_relative_to_its_root): Fix premature return
16774 when processing non-root ZFS filesystems.
5f8b440b 16775 Reported by Sergio Talens-Oliag.
1eb01cd2 16776
2d5fed60
RM
167772010-10-15 Robert Millan <rmh@gnu.org>
16778
16779 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
16780 guarantee compressed ones are processed first.
16781
d0f4c1ea
VS
167822010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16783
16784 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
16785 grub_efiemu_autocore.
16786
d87c681f
VS
167872010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
16790 rather than 0x1b.
16791 (grub_console_getkey): Use correct jae opcode rather than ja.
16792
219b3564
RM
167932010-10-12 Robert Millan <rmh@gnu.org>
16794
16795 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
16796 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
16797 variable. All references updated.
16798
16799 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
16800
20c6bb7e
VS
168012010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 Correctly distinguish mdraid flavours.
16804
16805 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
16806 (insert_array): New argument raid.
16807 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
16808 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
16809 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
16810
74baff84
VS
168112010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
16814 handling of special keys.
16815
3ef068df 168162010-10-02 Aleš Nesrsta <starous@volny.cz>
16817
c7980ad9
VS
16818 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
16819 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 16820
a9455194 168212010-10-02 Aleš Nesrsta <starous@volny.cz>
16822
c7980ad9
VS
16823 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
16824 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
16825 users updated.
a9455194 16826 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 16827 Use right endpoint when querying descriptor.
a9455194 16828
441cfe65
VS
168292010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 Clear out 0x80 color bit on EFI.
16832 Tested by: decoder
16833 Reported by: decoder and meta tech.
16834
16835 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
16836 (grub_console_setcolorstate): Clear out 0x80 bit.
16837 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
16838 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
16839 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
16840
bf26bcc4
VS
168412010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
16844 Set to "auto".
16845
6e3c515d
VS
168462010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16847
16848 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
16849 mo_file after freeing.
16850
e6d983ba
VS
168512010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16852
16853 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
16854
74ccb5b5
VS
168552010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
16858 flags.
16859
17821956
VS
168602010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
16863 usage.
16864
ee74fa48
VS
168652010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 Put terminfo into core on ieee1275 and yeeloong (needed for console).
16868
16869 * gentpl.py: New groups terminfoinkernel and terminfomodule.
16870 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
16871 and terminfo.h when needed.
16872 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
16873 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
16874 (terminfo): Enable only on terminfokernel.
16875 (extcmd): Likewise.
16876 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
16877 * include/grub/lib/arg.h: Likewise.
16878 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
16879 incorrect usage of ->.
16880
aa438e68
VS
168812010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
16884 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
16885
57994012
VS
168862010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 Fix coreboot compilation.
16889
16890 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16891 Take VBE info into account even if only text is supported.
16892 (fill_vbe_info): Take into account the case when only VGA text
16893 is supported.
16894 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
16895 on coreboot, multiboot and qemu.
16896
2a406611
VS
168972010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16898
16899 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
16900 debug messages.
16901 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
16902
d33613fc
VS
169032010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
16906 parameters.
16907
44a1b432
VS
169082010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
16911 if they were BSD-style.
16912
edde54e6
VS
169132010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16914
16915 * grub-core/boot/i386/pc/lnxboot.S: Replace
16916 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
16917 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
16918
b65830fa
VS
169192010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 Write embedding zone using Reed-Solomon.
16922
16923 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
16924 * grub-core/Makefile.am (rs_decoder.S): New target.
16925 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
16926 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
16927 (multiboot): Move to RS part.
16928 (post_reed_solomon): New label.
16929 (grub_boot_drive): Move to non-RS part since it's modified in memory
16930 on boot.
16931 Include rs_decoder.S.
16932 * grub-core/lib/reed_solomon.c: New file.
16933 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
16934 New definition.
16935 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
16936 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
16937 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
16938 * include/grub/partition.h (grub_partition_map): Change prototype of
16939 embed to allow returning additional sectors.
16940 * include/grub/reed_solomon.h: New file.
16941 * util/grub-setup.c (setup): Handle Reed-Solomon.
16942
0b4b227f
CW
169432010-09-28 Colin Watson <cjwatson@ubuntu.com>
16944
16945 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16946 i386 and x86-64 definedness tests.
16947
f772623b
YB
169482010-09-27 Yves Blusseau <blusseau@zetam.org>
16949
16950 Fix generation of kernel_syms.lst
16951
16952 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
16953 ASM_PREFIX
16954
8e57a6ca
RM
169552010-09-26 Robert Millan <rmh@gnu.org>
16956
16957 Support degraded ZFS arrays in "grub-probe -t device" resolution.
16958
16959 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
16960 the pool is an array of devices, iterate through it and return the
16961 first device that passes a stat() test (instead of blindly returning
16962 the first one).
16963
f9130836
RM
169642010-09-26 Robert Millan <rmh@gnu.org>
16965
16966 Build fixes for GNU/kFreeBSD.
16967
16968 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16969 to programs that require ZFS conversion.
16970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16971 kernels that don't have FLOPPY_MAJOR.
16972
96510faf
BC
169732010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16974
16975 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16976
449333eb
BC
169772010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16978
16979 Fix grub-emu build.
16980
16981 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16982 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16983 mdraid09 and mdraid1x.
16984
e1fd1939
CW
169852010-09-24 Colin Watson <cjwatson@ubuntu.com>
16986
16987 Re-enable grub-extras.
16988
16989 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16990 avoid confusing Automake. Run autogen only twice, once for the top
16991 level and once for grub-core. Add Makefile.util.def and
16992 Makefile.core.def from extra modules to the appropriate autogen
16993 invocations. If Makefile.common exists in an extra module, include
16994 it in both Makefile.util.am and grub-core/Makefile.core.am;
16995 similarly, include any Makefile.util.common file in Makefile.util.am
16996 and any Makefile.core.common file in grub-core/Makefile.core.am.
16997 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16998 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16999 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
17000 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
17001
17002 * gentpl.py (gvar_add): Turn GVARS into a set.
17003 (global_variable_initializers): Sort global variables on output.
17004 (vars_init): New function.
17005 (first_time): Likewise.
17006 (library): Ensure that non-global variable initialisations are
17007 emitted before the first time we emit code for a library block.
17008 Append to variables rather than setting them. Only emit
17009 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
17010 each conditional path.
17011 (program): installdir() emits an Autogen macro, so must be passed to
17012 var_add rather than gvar_add.
17013 (data): Likewise.
17014 (script): Likewise.
17015 (rules): New function, centralising handling for different target
17016 types. Set up Guile association lists for first_time and vars_init,
17017 and send most output to a diversion so that variable initialisations
17018 can be emitted first.
17019 (module_rules): Use new rules function.
17020 (kernel_rules): Likewise.
17021 (image_rules): Likewise.
17022 (library_rules): Likewise.
17023 (program_rules): Likewise.
17024 (script_rules): Likewise.
17025 (data_rules): Likewise.
17026
17027 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
17028
17029 * .bzrignore: Add contrib and grub-core/contrib. Remove
17030 grub-core/Makefile.gcry.am.
17031
1d12cf29
YB
170322010-09-24 Yves Blusseau <blusseau@zetam.org>
17033
17034 * grub-core/lib/LzFind.c: Add missing include.
17035 * grub-core/lib/LzmaEnc.c: Likewise.
17036 * grub-core/script/lexer.c: Likewise.
17037 * grub-core/script/yylex.l: Likewise.
17038 * util/grub-macho2img.c: Likewise.
17039 * util/grub-menulst2cfg.c: Likewise.
17040 * util/grub-mklayout.c: Likewise.
17041 * util/grub-mkpasswd-pbkdf2.c
17042 * util/grub-mkrelpath.c: Likewise.
17043 * util/resolve.c: Likewise.
17044
dd363028
BC
170452010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
17046
17047 * Makefile.util.def (example_unit_test): Add
17048 grub-core/gnulib/libgnu.a.
17049
f5a109e2
GS
170502010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
17051
17052 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
17053
6d0fa83c
VS
170542010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 Support xz compression on yeeloong.
17057
17058 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
17059 * configure.ac: Check for LZMA.
17060 * grub-core/Makefile.core.def (xz_decompress): New target.
17061 (none_decompress): Likewise.
17062 * grub-core/boot/decompressor/minilib.c: New file.
17063 * grub-core/boot/decompressor/none.c: Likewise.
17064 * grub-core/boot/decompressor/xz.c: Likewise.
17065 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
17066 * grub-core/kern/mips/cache_flush.S: Likewise.
17067 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
17068 * grub-core/kern/mips/startup.S: Move first stage to ...
17069 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
17070 nomacro.
17071 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
17072 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
17073 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
17074 Allocate statically.
17075 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
17076 Allocate statically or use scratch. Don't check CRC32.
17077 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
17078 Allocate statically. Don't check CRC32.
17079 * include/grub/decompressor.h: New file.
17080 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
17081 Removed.
17082 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
17083 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
17084 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
17085 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
17086 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
17087 * util/grub-mkimage.c (grub_compression_t): New type.
17088 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
17089 (image_target_desc): New field default_compression.
17090 (image_targets): Adjust yeeloong targets.
17091 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
17092 (compress_kernel): New parameter comp.
17093 (generate_image): Likewise. Handle new compression case.
17094 (options): New option --compression
17095 (help): Likewise.
17096 (main): Handle new option.
17097
1b655af6
GS
170982010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
17099
17100 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
17101
8f03f0b5
CW
171022010-09-22 Colin Watson <cjwatson@ubuntu.com>
17103
17104 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17105 typo in __i386__ conditional.
17106
7835dfd3
VS
171072010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
17110 include.
17111
e255597e
VS
171122010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17113
6d0fa83c 17114 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
17115
17116 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
17117 new tags as supported.
17118 (acpiv2_size): New function.
17119 (grub_multiboot_get_mbi_size): Take new tags into account.
17120 (grub_multiboot_make_mbi): Add new tags.
17121 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 17122
6cc14051 171232010-09-21 Aleš Nesrsta <starous@volny.cz>
17124
17125 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
17126 Added missing configuration of USB device.
17127
df7769d8
CW
171282010-09-21 Colin Watson <cjwatson@ubuntu.com>
17129
17130 * grub-core/normal/menu_entry.c (run): Make sure we always return
17131 a value.
17132
b031012d
CW
171332010-09-21 Colin Watson <cjwatson@ubuntu.com>
17134
17135 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
17136 NumberOfPages is UINT64 according to the UEFI specification, not
17137 UINTN. Fix printf format.
17138
174de8f3
CW
171392010-09-21 Colin Watson <cjwatson@ubuntu.com>
17140
17141 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
17142 `err' to grub_usb_err_t.
17143 Reported and tested by: KESHAV P.R.
17144
d7dbe923
CW
171452010-09-21 Colin Watson <cjwatson@ubuntu.com>
17146
17147 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
17148 tpart non-const, so that we can assign to it. (Since this is a
17149 typedef, the constness refers to the pointer rather than what it
17150 points to.)
17151
8d5e2af3
CW
171522010-09-21 Colin Watson <cjwatson@ubuntu.com>
17153
17154 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17155 $(top_srcdir)/grub-core/gnulib as well as
17156 $(top_builddir)/grub-core/gnulib.
17157 Reported by: KESHAV P.R.
17158
5c527783
CW
171592010-09-21 Colin Watson <cjwatson@ubuntu.com>
17160
17161 * util/grub-install.in: Fix the bootloader ID option to be
17162 consistently --bootloader-id, not --bootloader_id.
17163 Reported by: KESHAV P.R.
17164
d309a16e
CW
171652010-09-21 Colin Watson <cjwatson@ubuntu.com>
17166
17167 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17168 check hash checksum." consistently translatable.
17169
b830cd16
YB
171702010-09-21 Yves Blusseau <blusseau@zetam.org>
17171
17172 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17173 $(top_builddir).
17174
c4fe27a8
CW
171752010-09-21 Colin Watson <cjwatson@ubuntu.com>
17176
17177 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17178 (GRUB_MOD_INIT): Register sha1sum command.
17179 (GRUB_MOD_FINI): Unregister sha1sum command.
17180
a4c1d277
YB
171812010-09-21 Yves Blusseau <blusseau@zetam.org>
17182
17183 Keep boot and grub directory names in sync with utils scripts
17184
17185 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17186 * config.h.in: Add previous macros.
17187 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17188 * util/grub-install.in: Use $bootdir and $grubdir variables.
17189
4eff79d2
CW
171902010-09-21 Colin Watson <cjwatson@ubuntu.com>
17191
17192 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17193 convert partition names to disk names if the new `convert' parameter
17194 is set.
17195 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17196 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17197 disk in its own right. This can happen with Xen disk images.
17198
934d7e44
YB
171992010-09-21 Yves Blusseau <blusseau@zetam.org>
17200
17201 * util/grub-editenv.c: Update strings to avoid warnings when generating
17202 grub.pot file.
17203 * util/grub-setup.c: Likewise.
934d7e44 17204
df3367cc
VS
172052010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17206
17207 * configure.ac: Change version to 1.99~beta0.
17208
77a94e98
VS
172092010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17212 Add BADRAM.
17213 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17214 Likewise.
17215 * include/multiboot.h: Resynced with specification.
17216 * include/multiboot2.h: Likewise.
17217
269004c1
CW
172182010-09-21 Colin Watson <cjwatson@ubuntu.com>
17219
17220 Fix po directory handling.
17221
17222 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17223 * grub-core/gnulib/Makefile.am: Import gettext module.
17224 * m4/gnulib-cache.m4: Likewise.
17225 * m4/gnulib-comp.m4: Likewise.
17226 * m4/gettext.m4: New file, from gnulib.
17227 * m4/glibc2.m4: Likewise.
17228 * m4/iconv.m4: Likewise.
17229 * m4/intdiv0.m4: Likewise.
17230 * m4/intl.m4: Likewise.
17231 * m4/intldir.m4: Likewise.
17232 * m4/intlmacosx.m4: Likewise.
17233 * m4/intmax.m4: Likewise.
17234 * m4/inttypes-pri.m4: Likewise.
17235 * m4/lcmessage.m4: Likewise.
17236 * m4/lib-ld.m4: Likewise.
17237 * m4/lib-link.m4: Likewise.
17238 * m4/lib-prefix.m4: Likewise.
17239 * m4/lock.m4: Likewise.
17240 * m4/nls.m4: Likewise.
17241 * m4/po.m4: Likewise.
17242 * m4/printf-posix.m4: Likewise.
17243 * m4/progtest.m4: Likewise.
17244 * m4/threadlib.m4: Likewise.
17245 * m4/uintmax_t.m4: Likewise.
17246 * m4/visibility.m4: Likewise.
17247 * po/Makefile.am: Remove.
17248 * po/Makefile.in.in: New file, from gettext.
17249 ($(DOMAIN).pot-update): Support POTFILES-shell.
17250 * po/Makevars: New file.
17251 * po/POTFILES-shell: Rename to ...
17252 * po/POTFILES-shell.in: ... this. Update.
17253 * po/POTFILES: Rename to ...
17254 * po/POTFILES.in: ... this. Update.
17255 * po/Rules-quot: New file, from gettext.
17256 * po/boldquot.sed: Likewise.
17257 * po/en@boldquot.header: Likewise.
17258 * po/en@quot.header: Likewise.
17259 * po/insert-header.sin: Likewise.
17260 * po/quot.sed: Likewise.
17261 * po/remove-potcdate.sin: Likewise.
17262
3e0fa5d0
VS
172632010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17266
ade9bd66
VS
172672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * util/grub.d/20_linux_xen.in: Use submenus.
17270
fc55cc4c
VS
172712010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 Support submenus.
17274
17275 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17276 parameter submenu. All users updated.
17277 * grub-core/normal/main.c (free_menu): Rename to ...
17278 (grub_normal_free_menu): ... this. Made global.
17279 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17280 if requested.
17281 * grub-core/normal/menu_entry.c (screen): New field submenu.
17282 (make_screen): Set submenu.
17283 (run): Open new context if requested.
17284 * include/grub/menu.h (grub_menu_entry): New field submenu.
17285 * include/grub/normal.h (grub_normal_free_menu): New proto.
17286
600cedf7
VS
172872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17288
17289 Menu entries extractor.
17290
17291 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17292 variants.
17293 (GRUB_MOD_INIT): Register new variants.
17294 (GRUB_MOD_FINI): Unregister new variants.
17295 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17296 into grub_cmd_legacy_source.
17297 (grub_cmd_legacy_source): Implement extractor variants.
17298 (GRUB_MOD_INIT): Register new variants.
17299 (GRUB_MOD_FINI): Unregister new variants.
17300 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17301 as an extractor.
17302 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17303 search as an extractor.
17304 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17305 test as an extractor.
17306 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17307 as an extractor.
17308 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17309 (grub_env_new_context): New function.
17310 (grub_env_context_open): Likewise.
17311 (grub_env_extractor_open): Likewise.
17312 (grub_env_extractor_close): Likewise.
17313 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17314 grub_extractor_level.
17315 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17316 * include/grub/env.h (grub_env_extractor_open): New proto.
17317 (grub_env_extractor_close): Likewise.
17318 * include/grub/normal.h (grub_extractor_level): New external variable.
17319
7bda3a87
VS
173202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 Make cutmem accept a region specification.
17323 Suggested by: Samuel Thibault
17324
17325 * grub-core/mmap/mmap.c (parsemem): New function.
17326 (grub_cmd_cutmem): Handle new arguments.
17327
2ea57f88
VS
173282010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 New command cutmem.
17331
17332 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17333 (GRUB_MOD_INIT): Register new command.
17334 (GRUB_MOD_FINI): Unregister new command.
17335
74342e31
VS
173362010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17337
17338 Support some annoying BSD and Minix subpartitions.
17339
17340 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17341 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17342 Properly handle concatenation.
17343 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17344 * grub-core/normal/completion.c (iterate_partition): Likewise.
17345 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17346 contain partition. All users updated.
17347 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17348 struct.
17349 (grub_openbsdlabel_partition_map): Likewise.
17350 (bsdlabel_partition_map_iterate): Rename to ..
17351 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17352 (bsdlabel_partition_map_iterate): New function.
17353 (netopenbsdlabel_partition_map_iterate): Likewise.
17354 (netbsdlabel_partition_map_iterate): Likewise.
17355 (openbsdlabel_partition_map_iterate): Likewise.
17356 (GRUB_MOD_INIT): Register new partmaps.
17357 (GRUB_MOD_FINI): Unregister new partmaps.
17358 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17359 (grub_partition_msdos_iterate): ... this. All users updated.
17360 Don't support embedding other than in a minix partition.
17361 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17362 proto.
17363 * include/grub/partition.h (grub_partition): New field msdostype.
17364 * util/grub-install.in: Handle openbsd and netbsd types being in
17365 part_bsd module.
17366
1e8d555b
VS
173672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17368
17369 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17370
17371 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17372 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17373 (mdraid09): ... this.
17374 (mdraid1x): New module.
17375 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17376 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17377
899d8af4
VS
173782010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17379
17380 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17381 vsprintf.
17382
40901acd
CW
173832010-09-20 Colin Watson <cjwatson@ubuntu.com>
17384
17385 * grub-core/commands/efi/lsefimmap.c: Correct header.
17386 * NEWS: Update.
17387
dfe3b247
CW
173882010-09-20 Colin Watson <cjwatson@ubuntu.com>
17389
17390 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17391 as printf format strings; the translations might contain '%' which
17392 could cause a crash.
17393 (main): Likewise.
17394 * util/grub-fstest.c (argp_parser): Likewise.
17395 * util/grub-setup.c (argp_parser): Likewise.
17396 (main): Likewise.
17397
3286a4b4
VS
173982010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17399
17400 Use argp in grub-fstest.
17401
17402 * util/grub-fstest.c: Don't include getopt.h.
17403 Include argp.h.
17404 (root): New variable.
17405 (args_count): Likewise.
17406 (nparm): Likewise.
17407 (num_disks): Likewise.
17408 (images): Likewise.
17409 (cmd): Likewise.
17410 (debug_str): Likewise.
17411 (args): Likewise.
17412 (options): Transformed to argp.
17413 (usage): Removed.
17414 (main): Split argument parsing into ...
17415 (argp_parser): ... this. Changed to argp format.
17416 (argp): New variable.
17417 (main): Use argp_parse.
17418
3dccbe4b
TG
174192010-09-20 Tristan Gingold <gingold@free.fr>
174202010-09-20 Robert Millan <rmh.grub@aybabtu.com>
174212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 * grub-core/commands/efi/lsefimmap.c: New file.
17424 * grub-core/Makefile.core.def (lsefimmap): New module.
17425 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17426
38c259a7
VS
174272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 Pause the execution (10s max) if any errors are displayed so the user
17430 has a chance to see them.
17431
17432 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17433 (grub_print_error): Increment grub_err_printed_errors.
17434 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17435 execution if any errors were displayed.
17436 (show_menu): Remove old code for pause.
17437 * grub-core/normal/menu_entry.c (run): Likewise.
17438 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17439 users updated.
17440 (grub_normal_get_char_counter): Likewise.
17441 * include/grub/err.h (grub_err_printed_errors): New external variable.
17442 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
17443
f218b09c
VS
174442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 Support multiboot VBE info.
17447
17448 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17449 Take VBE info into account.
17450 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
17451 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17452 Call fill_vbe_info when appropriate.
17453 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
17454 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
17455 as supported.
17456 (grub_multiboot_get_mbi_size): Take new tags into account.
17457 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
17458 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17459 Call fill_vbe_tag when appropriate.
17460 (grub_multiboot_make_mbi): Properly align tags.
17461 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
17462 function.
17463 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
17464 proto.
17465 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
17466
a9cc5438
VS
174672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17468
17469 Suport manual terminal geometry specification.
17470
17471 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
17472 Save state in grub_ofconsole_terminfo_output.
17473 (grub_ofconsole_term): Use grub_terminfo_getwh.
17474 (grub_ofconsole_getwh): Removed.
17475 * grub-core/term/serial.c (grub_serial_getwh): Removed.
17476 (grub_serial_term): Use grub_terminfo_getwh.
17477 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
17478 (options): New struct.
17479 (OPTION_*): New enum.
17480 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
17481 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
17482 width and height.
17483 (grub_terminfo_getwh): New proto.
17484 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
17485
1a8fed20
VS
174862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 Handle legacy "terminal" command.
17489
17490 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
17491 and FLAG_TERMINAL.
17492 (legacy_commands): Add terminal and title.
17493 (grub_legacy_parse): Handle terminal. Simplify title handling.
17494
41e9c57d
VS
174952010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
17498 parameters overflow.
17499
61c874c5
CW
175002010-09-20 Colin Watson <cjwatson@ubuntu.com>
17501
17502 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
17503 widthspec.h.
17504
17505 * docs/grub.texi (Shell-like scripting): Document `!'.
17506 (Network): Simplify using new i386-pc-pxe format. Mention
17507 grub-mknetdir.
17508
17509 * NEWS: Update.
17510
943682b4
CW
175112010-09-20 Colin Watson <cjwatson@ubuntu.com>
17512
17513 * Makefile.am (SUBDIRS): Restore "."; it's important to force
17514 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
17515 when needed.
17516
6d3d698d
CW
175172010-09-20 Colin Watson <cjwatson@ubuntu.com>
17518
17519 * grub-core/commands/efi/lsefisystab.c: Correct header.
17520 * grub-core/commands/efi/lssal.c: Likewise.
17521 * grub-core/commands/testload.c: Likewise.
17522
c982589f
CW
175232010-09-20 Colin Watson <cjwatson@ubuntu.com>
17524
17525 * util/grub-mkrescue.in: Add explicit root argument to --set to
17526 prevent the UUID being interpreted as an argument to --set (matches
17527 previous change to prepare_grub_to_access_device).
17528
a63c31b6
CW
175292010-09-20 Colin Watson <cjwatson@ubuntu.com>
17530
17531 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
17532 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
17533 the verbosity of later #ifs.
17534 (find_partition_start): Define this function on FreeBSD too.
17535 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
17536 function.
17537 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
17538 on FreeBSD.
17539
6439b8ee
YB
175402010-09-20 Yves Blusseau <blusseau@zetam.org>
17541
17542 * util/grub-editenv.c: Use argp instead of getopt.
17543
c5930ec8
YB
175442010-09-20 Yves Blusseau <blusseau@zetam.org>
17545
17546 * util/grub-setup.c: Use argp instead of getopt.
17547
15c69261
YB
175482010-09-20 Yves Blusseau <blusseau@zetam.org>
17549
17550 Use gnulib-tool to create gnulib source files.
17551
17552 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
17553 grub-core/gnulib directories
17554 * .bzignore: Add **/.deps and autogenerated gnulib files
17555 * configure.ac: Assign auxiliary directory to build-aux, add invocation
17556 of gnulib macros, add grub-core/gnulib/Makefile
17557 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
17558 include m4 directory to aclocal.
17559 * Makefile.util.def: Remove direct compilation of gnulib source files
17560 and use the new grub-core/gnulib/libgnu.a.
17561 * build-aux/config.rpath: move config.rpath from top directory to
17562 build-aux
17563 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
17564 in gnulib headers
17565 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
17566 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
17567 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
17568 header.
17569 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
17570 string.
17571
e511c9f5
YB
175722010-09-20 Yves Blusseau <blusseau@zetam.org>
17573
17574 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
17575 grub-core/genmod.sh and grub-core/gensyminfo.sh
17576
c2dede05
BC
175772010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
17578
17579 Add a test for echo command options.
17580
17581 * tests/grub_cmd_echo.in: New test.
17582 * Makefile.util.def: Rules for new test.
17583
c55f5018
SJ
175842010-09-20 Szymon Janc <szymon@janc.net.pl>
17585
17586 Remove crc.mod and move crc command to hashsum.mod.
17587 Remove lib/crc.c - users updated to use gcrypt implementation.
17588
17589 * grub-core/commands/crc.c: Removed.
17590 * grub-core/Makefile.core.def (crc): Module removed.
17591 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
17592 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
17593 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
17594 * grub-core/lib/crc.c: Removed.
17595 * include/grub/lib/crc.h: Removed.
17596 * Makefile.util.def (crc): Remove lib/crc.c
17597 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
17598 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
17599 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
17600 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
17601 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
17602 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
17603
e0337366
VS
176042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17605
17606 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
17607
742f9232
VS
176082010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Split config.h for util and core.
17611
17612 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
17613 (ADDR32): Likewise.
17614 (DATA32): Likewise.
17615 (BSS_START_SYMBOL): Likewise.
17616 (END_SYMBOL): Likewise.
17617 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
17618 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
17619 * config.h.in: New file.
17620 * configure.ac: Use config-util.h as config define file.
17621 Rename MACHINE into GRUB_MACHINE. All users updated.
17622 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
17623 updated.
17624 (NESTED_FUNC_ATTR): Likewise.
17625 Substitue new variables.
17626 (COND_HAVE_ASM_USCORE): New conditional.
17627 * grub-core/Makefile.am (ASM_PREFIX): New variable.
17628 (kernel_syms.lst): Use ASM_PREFIX.
17629 * grub-core/kern/emu/console.c: Include config-util.h.
17630 * grub-core/kern/emu/misc.c: Likewise.
17631 * grub-core/kern/emu/mm.c: Likewise.
17632 * include/grub/emu/misc.h: Likewise.
17633 * include/grub/libgcc.h: Likewise.
17634
39feb0e8
VS
176352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
17638 constants usage.
17639 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
17640 Fix GRUB_TERM_KEY_* constants usage.
17641 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
17642
9af6dac3
VS
176432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
17646 print pointer.
17647 * grub-core/bus/usb/uhci.c: Remove empty define.
17648 (grub_uhci_check_transfer): Add missing cast.
17649 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
17650 print pointer.
17651 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
17652 PRIuGRUB_SIZE.
17653 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
17654
d6d94820
VS
176552010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17656
17657 * grub-core/Makefile.core.def (legacycfg): Add
17658 lib/i386/pc/vesa_modes_table.c on emu.
17659
3572f2b6
BC
176602010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17661
17662 Reduce number of temporary files generated by build system.
17663
17664 * grub-core/gencmdlist.sh: Removed.
17665 * grub-core/genfslist.sh: Removed.
17666 * grub-core/genhandlerlist.sh: Removed.
17667 * grub-core/genmodsrc.sh: Removed.
17668 * grub-core/genpartmaplist.sh: Removed.
17669 * grub-core/genparttoollist.sh: Removed.
17670 * grub-core/gentermiinallist.sh: Removed.
17671 * grub-core/genvideolist.sh: Removed.
17672
17673 * grub-core/genmod.sh.in: New file.
17674 * grub-core/gensyminfo.sh.in: New file.
17675
17676 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
17677 * conf/Makefile.extra-dist: Update with new files.
17678 * gentpl.py: Remove rules related to unnecessary temporary files.
17679 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
17680 and und-* files.
17681 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
17682 genmod.sh scripts.
17683 * grub-core/bus/usb/uhci.c: Remove empty #define.
17684 * grub-core/genmoddep.awk: Updated with new syminfo format.
17685 * util/bash-completion.d/Makefile.am: Add config.log to
17686 CLEANFILES.
17687
c836b030
YB
176882010-09-19 Yves Blusseau <blusseau@zetam.org>
17689
17690 * Makefile.util.def: Add forgotten $(LIBINTL) library.
17691
2f4e8053
BC
176922010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17693
17694 * util/grub-mkconfig.in: Check the config script for syntax errors
17695 before saving.
17696
75831c34
CW
176972010-09-19 Colin Watson <cjwatson@ubuntu.com>
176982010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17699
17700 * Makefile.util.def (grub-install): Use util/grub-install.in on all
17701 platforms.
17702 * util/grub-install.in: Add EFI and IEEE1275 support.
17703 * util/i386/efi/grub-install.in: Removed.
17704 * util/ieee1275/grub-install.in: Likewise.
17705
eaf41b25
VS
177062010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
17709 (grub_cmd_cmosclean): Likewise.
17710 (GRUB_MOD_INIT): Register command cmosclean.
17711 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
17712 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
17713
1a9130dd
CPE
177142010-09-18 Carles Pina i Estany <carles@pina.cat>
177152010-09-18 Aleš Nesrsta <starous@volny.cz>
177162010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 Add keyboard layouts support.
17719
17720 * Makefile.util.def (grub-mklayout): New file.
17721 (grub-kbdcomp): New script.
17722 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
17723 Add keyboard_layouts.h.
17724 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
17725 commands/boot.c on yeeloong.
17726 (keylayouts): New module.
17727 * grub-core/bus/usb/ohci.c
17728 * grub-core/bus/usb/uhci.c
17729 * grub-core/bus/usb/usbhub.c (rescan): New variable.
17730 (grub_usb_add_hub): Poll interrupt pipe for device handling.
17731 (attach_root_port): Likewise.
17732 (poll_nonroot_hub): Likewise.
17733 (grub_usb_poll_devices): Likewise.
17734 (detach_device): Close transfer.
17735 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
17736 function.
17737 (grub_usb_bulk_setup_readwrite): Likewise.
17738 (grub_usb_bulk_finish_readwrite): Likewise.
17739 * grub-core/commands/keylayouts.c: New file.
17740 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
17741 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
17742 aliases.
17743 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
17744 support scancode 2.
17745 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
17746 * include/grub/keyboard_layouts.h: New file.
17747 * util/grub-mklayout.c: New file.
17748 * util/grub-kbdcomp.in: Likewise.
17749
a1d84a5e
VS
177502010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 Unify memory types.
17753
17754 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
17755 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
17756 types.
17757 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
17758 (grub_upper_mem): Likewise.
17759 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
17760 * include/grub/memory.h (grub_memory_type_t): New enum.
17761 All users updated.
17762
9696382e
VS
177632010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17764
17765 * grub-core/Makefile.core.def (lsapm): New module.
17766 * grub-core/commands/i386/pc/lsapm.c: New file.
17767 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
17768 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
17769 Likewise.
17770 * include/grub/i386/pc/apm.h: New file.
17771 * include/multiboot.h (multiboot_apm_info): New struct.
17772
177732010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17774
17775 GRUB-legacy configuration file support.
17776
17777 * Makefile.util.def (grub-menulst2cfg): New util.
17778 * docs/man/grub-menulst2cfg.h2m: New file.
17779 * grub-core/Makefile.core.def (legacycfg): New module.
17780 * grub-core/commands/legacycfg.c: New file.
17781 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
17782 (grub_normal_add_menu_entry): ... this.
17783 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
17784 (grub_normal_set_password): ...this.
17785 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
17786 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
17787 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
17788 * grub-core/lib/legacy_parse.c: New file.
17789 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
17790 * include/grub/i386/pc/vesa_modes_table.h: New file.
17791 * include/grub/legacy_parse.h: Likewise.
17792 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
17793 * util/grub-menulst2cfg.c: New file.
17794
bf8d1338
CW
177952010-09-17 Colin Watson <cjwatson@ubuntu.com>
17796
17797 * grub-core/kern/emu/hostdisk.c
17798 (convert_system_partition_to_system_disk): Initialise node.
17799
9c0bad2e
CW
178002010-09-17 Colin Watson <cjwatson@ubuntu.com>
17801
17802 * grub-core/kern/emu/hostdisk.c
17803 (convert_system_partition_to_system_disk): Fix devmapper memory pool
17804 leak.
17805 Reported and based on patch by: Modestas Vainius.
17806
a939d135
CW
178072010-09-17 Colin Watson <cjwatson@ubuntu.com>
17808
17809 Fix DM-RAID probing with recent versions of device-mapper udev
17810 rules.
17811
17812 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
17813 canonicalise device paths under /dev/mapper/.
17814 (convert_system_partition_to_system_disk): Compare the
17815 uncanonicalised path to /dev/mapper/ rather than the canonicalised
17816 path, since device nodes under /dev/mapper/ are often symlinks.
17817
0f7ee3c9
YB
178182010-09-17 Yves Blusseau <blusseau@zetam.org>
17819
17820 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
17821
10854d0d
YB
178222010-09-16 Yves Blusseau <blusseau@zetam.org>
17823
17824 * configure.ac: Avoid some annoying error messages if freetype-config
17825 program is not found.
17826
108538d8
CW
178272010-09-16 Colin Watson <cjwatson@ubuntu.com>
17828
17829 Support RAID on virtio devices, and others.
17830
17831 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
17832 Rename to ...
17833 [__MINGW32__] (grub_find_device): ... this.
17834 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
17835 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
17836 reasonable default if dir is NULL.
17837 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
17838 ...
17839 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
17840 (grub_guess_root_device): Update callers.
17841 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
17842
17843 * util/raid.c (grub_util_getdiskname): Remove.
17844 (grub_util_raid_getmembers): Use grub_find_device rather than
17845 grub_util_getdiskname.
17846
e5bfc130
CW
178472010-09-16 Colin Watson <cjwatson@ubuntu.com>
17848
17849 * docs/grub.texi (serial): Remove obsolete comment about GRUB
17850 needing to be compiled with serial support.
17851 (ls): Indicate that multiple files are accepted.
17852 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
17853 indicate that multiple files are accepted.
17854
be458ae2
CW
178552010-09-16 Colin Watson <cjwatson@ubuntu.com>
17856
17857 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
17858 libgrub_a_init.c, and util/bash-completion.d/grub.
17859
cb731b5e
VS
178602010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17861
17862 * util/grub-setup.c (setup): Fix incorrect container semantics.
17863
35139e8a
VS
178642010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17865
17866 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
17867 misusage.
17868 Reported by: J. Nick Terry
17869
e50fca4a
VS
178702010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17871
17872 Move embedding routines to partmap sources files.
17873
17874 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
17875 [GRUB_UTIL]: New variable.
17876 (gpt_partition_map_iterate): Set part.parent.
17877 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
17878 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
17879 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
17880 New function.
17881 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
17882 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
17883 (grub_partition_map) [GRUB_UTIL]: New field embed.
17884 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
17885 (setup): Use ->embed.
17886
f00478b7
VS
178872010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
17890 function.
17891 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
17892 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
17893
2b94e3ff
YB
178942010-09-15 Yves Blusseau <blusseau@zetam.org>
17895
17896 Add function to get completions from usage.
17897
17898 * util/bash-completion.d/grub-completion.bash.in: Add function to get
17899 completions from usage. Use LC_ALL=C to get options properly.
17900
2e04a006
VS
179012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * grub-core/gnulib/basename-lgpl.c: Imported.
17904 * grub-core/gnulib/basename.c: Likewise.
17905 * grub-core/gnulib/dirname-lgpl.c: Likewise.
17906 * grub-core/gnulib/dirname.c: Likewise.
17907 * grub-core/gnulib/dirname.h: Likewise.
17908 * grub-core/gnulib/stripslash.c: Likewise.
17909
5dcdf93a
VS
179102010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17911
17912 * grub-core/gnulib/error.c: Resynced.
17913 * grub-core/gnulib/getopt.c: Likewise.
17914 * grub-core/gnulib/getopt_int.h: Likewise.
17915 * grub-core/gnulib/regex.h: Likewise.
17916 * grub-core/gnulib/regex_internal.c: Likewise.
17917 * grub-core/gnulib/regex_internal.h: Likewise.
17918
014f47b7
SJ
179192010-09-15 Szymon Janc <szymon@janc.net.pl>
17920
17921 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
17922 CRC calculations and validity checks.
17923 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
17924 calculations.
17925
dd521a4a
SJ
179262010-09-15 Szymon Janc <szymon@janc.net.pl>
17927
17928 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
17929
79c4eeb9
VS
179302010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17931
17932 Fix incorrect echo options handling.
17933 Reported by: Yves Blusseau.
17934
17935 * include/grub/command.h (grub_command_flags_t): New flags
17936 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
17937 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
17938 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
17939
ed80f7d5
VS
179402010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
17943 users updated.
17944 (GRUB_COMMAND_FLAG_MENU): Likewise.
17945 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17946 (GRUB_COMMAND_FLAG_TITLE): Removed.
17947 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17948 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
17949 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
17950 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
17951 (grub_command_flags_t): New enum. All users updated.
17952
5fe7620a
SG
179532010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
17954
17955 Fix solaris compilation.
17956
17957 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
17958 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
17959 (grub-emu-list): Likewise.
17960
545b752f
VS
179612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17962
17963 Remove deprecated root command.
17964
17965 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17966 updated.
17967
6c1a338c
VS
179682010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 * util/i386/pc/grub-setup.c: Merge this ...
17971 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17972 * util/grub-setup.c: ... into this.
17973 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17974 New struct.
17975
179762010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17979 possible.
17980
d2ea4551
VS
179812010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17982
17983 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17984 allocate p.
17985
3c3b5040
VS
179862010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17987
17988 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17989 explicit root argument to set to prevent UUID to be interpreted as
17990 argument to set.
17991
b71c3fae
VS
179922010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17993
17994 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17995
275433e6
VS
179962010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17997
17998 Don't export grub_gate_a20.
17999
18000 * grub-core/kern/i386/pc/init.c: Remove leftovers.
18001 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
18002 to ...
18003 (grub_gate_a20): ... this. All users updated.
18004 * include/grub/i386/pc/init.h: Removed. All users updated.
18005
a5dbb1f1
VS
180062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18007
18008 Create euro.pf2 which supports most European languages.
18009
18010 * Makefile.am (grubdata_DATA): Add euro.pf2.
18011 (euro.pf2): New target.
18012 (CLEANFILES): Add euro.pf2.
18013
62a747cb
VS
180142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18015
18016 * configure.ac: Disable emu-usb by default to prevent inadvertent
18017 device takeover.
18018
608e43b1
VS
180192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18020
18021 Disable usbserial on grub-emu since our libusb code isn't good enough
18022 yet.
18023
18024 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
18025 (usbserial_pl2303): Likewise.
18026 (usbserial_ftdi): Likewise.
18027
94564f81
VS
180282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18029
18030 * include/grub/disk.h (grub_disk): Remove has_partitions.
18031 All users updated.
18032 * disk/loopback.c (grub_loopback): Remove has_partitions.
18033 All users updated.
18034 (options): Remove partitions. All users updated.
18035 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
18036 * util/i386/pc/grub-setup.c (setup): copy partition table only when
18037 actual partition table is found.
18038
3352800b
VS
180392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18040
18041 Remove readability checks (too many false negatives).
18042
18043 * util/grub-install.in: Remove readability checks.
18044 * util/grub-mkconfig.in: Likewise.
18045 * util/grub.d/10_hurd.in: Likewise.
18046 * util/grub.d/10_kfreebsd.in: Likewise.
18047 * util/grub.d/10_linux.in: Likewise.
18048 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
18049 way.
18050
2419f17a
VS
180512010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 Enable acpi shutdown on all ACPI platforms.
18054
18055 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
18056 on coreboo, multiboot and EFI.
18057 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
18058 (grub_acpi_halt): Likewise.
18059 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
18060 (grub_cmd_halt): Don't call grub_acpi_halt directly.
18061 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
18062 * grub-core/lib/i386/halt.c (grub_halt)
18063 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
18064
0575c7c3
VS
180652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18066
18067 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
18068 context.
18069
54ac3cd1
VS
180702010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18071
18072 * grub-core/video/efi_gop.c: Fix over-80-chars line.
18073 * grub-core/video/efi_uga.c: Likewise.
18074
b2a30ac5
VS
180752010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18076
18077 Filter devaliases and never open same device twice.
18078
18079 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
18080 (last_ihandle): Likewise.
18081 (ofdisk_hash_ent): New member shortest.
18082 (ofdisk_hash_add): Add canonical path too.
18083 (scan): New function.
18084 (grub_ofdisk_iterate): Iterate over hashed entries.
18085 (compute_dev_path): Don't add :0.
18086 (grub_ofdisk_open): Don't really open the disk.
18087 (grub_ofdisk_close): Avoid closing unrelated disk.
18088 (grub_ofdisk_read): Implement reopen logic.
18089 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
18090 New function.
18091 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
18092 New proto.
18093
fb53b340
VS
180942010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18095
18096 Fix sparc64.
18097
18098 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
18099 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
18100 right address. Add sparc64_ieee1275_ldflags.
18101 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
18102 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
18103 to grub_host_to_target_addr
18104 (load_image): Likewise.
18105
f452b040
VS
181062010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * grub-core/normal/completion.c (complete_file): Handle device
18109 containing slash.
18110 Fix based on patch by Doug Nazar.
18111
9b5b2541
VS
181122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18113
18114 grub-mknetdir script.
18115
18116 * Makefile.util.def (grub-mknetdir): New module.
18117 * tests/util/grub-shell.in: Support boot=net
18118 * util/grub-mknetdir.in: New file.
18119
9d2be652
VS
181202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 videoinfo on non-vbe.
18123
18124 * grub-core/Makefile.core.def (vbeinfo): Removed.
18125 (vbetest): Removed.
18126 (videoinfo): New module.
18127 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
18128 * grub-core/commands/i386/pc/vbetest.c: Removed.
18129 * grub-core/commands/videoinfo.c: New file.
18130 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
18131 specification.
18132 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
18133 as vbetest.
18134 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
18135 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
18136 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
18137 mode_number. New parameter mode. All users updated.
18138 (grub_video_gop_iterate): New function.
18139 (grub_video_efi_gop): New member iterate.
18140 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
18141 (grub_vbe_set_video_mode): Remove setting useless fields.
18142 (vbe2videoinfo): New function.
18143 (grub_video_vbe_iterate): Likewise.
18144 (grub_video_vbe_setup): Use vbe2videoinfo.
18145 (grub_video_vbe_print_adapter_specific_info): New function.
18146 (grub_video_vbe_adapter): New fields iterate and
18147 print_adapter_specific_info.
18148 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
18149 All users updated.
18150 (grub_video_mode_info): New field mode_number.
18151 (grub_video_adapter): New fields iterate and
18152 print_adapter_specific_info.
18153
179503f5
TG
181542010-09-13 Tristan Gingold <gingold@free.fr>
181552010-09-13 Robert Millan <rmh.grub@aybabtu.com>
181562010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18157
18158 * grub-core/commands/efi/lsefisystab.c: New file.
18159 * grub-core/commands/efi/lssal.c: Likewise.
18160 * grub-core/Makefile.core.def (lsacpi): New module.
18161 (lsefisystab): Likewise.
18162 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18163 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18164 (grub_efi_sal_system_table): New struct.
18165 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18166 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18167 (grub_efi_sal_system_table_platform_features): Likewise.
18168 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18169 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18170 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18171 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18172
cf9827de
VS
181732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18174
18175 Support explicit user claim that a device is BIOS-visible.
18176
18177 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18178 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18179 * grub-core/kern/emu/hostdisk.c
18180 (convert_system_partition_to_system_disk): Support mdX.
18181 (find_system_device): New parameter add. All users updated.
18182 (grub_util_biosdisk_is_present): New function.
18183 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18184 proto.
18185
53f0eb1f
VS
181862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18187
18188 Search hints support.
18189
18190 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18191 All users updated.
18192
b23ffd70
YB
181932010-09-13 Yves Blusseau <blusseau@zetam.org>
18194
18195 Bash completion script for util commands
18196
18197 * Makefile.am: Add util/bash-completion.d directory
18198 * configure.ac: Likewise.
18199 * util/bash-completion.d/Makefile.am: New file.
18200 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18201
d547dc28
VS
182022010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18203
18204 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18205 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18206 Reported by: Yves Blusseau.
18207
2fc8ccb9
VS
182082010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18209
18210 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18211 partition size and offset.
18212
d8a84076
VS
182132010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18214
18215 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18216
84fb3b3d
VS
182172010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18218
18219 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18220
768ec2e2
VS
182212010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18222
18223 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18224 (grub_xvasprintf): Likewise.
18225
4870900f
VS
182262010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18227
18228 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18229
faca6bec
VS
182302010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18231
18232 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18233 args ending with NULL.
18234
182352010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
18236
18237 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18238 pointer.
18239
3c70f225
SJ
182402010-09-11 Szymon Janc <szymon@janc.net.pl>
18241
18242 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18243
4df7996d
VS
182442010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18245
18246 Shutdown using ACPI.
18247
18248 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18249 * grub-core/commands/acpihalt.c: New file.
18250 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18251 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18252 (grub_acpi_halt): New proto.
18253 (GRUB_ACPI_SLP_EN): New const.
18254 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18255 (GRUB_ACPI_OPCODE_*): New enum.
18256 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18257
126b4c32
TG
182582010-09-11 Tristan Gingold <gingold@free.fr>
182592010-09-11 Robert Millan <rmh.grub@aybabtu.com>
182602010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18261
18262 * commands/lsacpi.c: New file.
18263 * grub-core/Makefile.core.def (lsacpi): New module.
18264 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18265 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18266 (grub_acpi_madt_entry_header): New struct.
18267 (grub_acpi_madt): Likewise.
18268 (grub_acpi_madt_entry_interrupt_override): Likewise.
18269 (grub_acpi_madt_entry_sapic): Likewise.
18270 (grub_acpi_madt_entry_lsapic): Likewise.
18271 (grub_acpi_madt_entry_platform_int_source): Likewise.
18272 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18273 (PRIuGRUB_UINT32_T): Likewise.
18274 (PRIxGRUB_UINT64_T): Likewise.
18275
1aa4fe88
VS
182762010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 Implement loading palette on ieee1275_fb.
18279
18280 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18281 (have_setcolors): Likewise.
18282 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18283 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18284 (grub_video_ieee1275_set_palette): Implement.
18285
25761e13
VS
182862010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
182872010-09-11 Colin Watson <cjwatson@ubuntu.com>
18288
18289 * util/grub-install.in (grub_partition): New variable.
18290 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18291 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18292 Fixes a bug reported by Yves Blusseau.
18293
050abaea
VS
182942010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18295
18296 Fix emu on mipsel.
18297
18298 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18299 =grub_cpu_flush_cache on all mips and not only yeeloong.
18300 * configure.ac (COND_mips): New conditional.
18301 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18302 platforms.
18303 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18304 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18305 [GRUB_LINKER_HAVE_INIT]: New function.
18306 (grub_emu_post_init): Likewise.
18307 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18308 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18309 * include/grub/cache.h (_mips): Include mips/cache.h.
18310 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18311 LVM and RAID prototypes.
18312 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18313 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18314 function.
18315
5ed7d816
CW
183162010-09-10 Colin Watson <cjwatson@ubuntu.com>
18317
18318 * util/grub-install.in: Don't try to verify core.img until after
18319 running grub-mkimage to create it.
18320
90367e04
RM
183212010-09-10 Robert Millan <rmh@gnu.org>
18322
18323 * util/grub.d/10_hurd.in: Add misc readability checks.
18324 * util/grub.d/10_kfreebsd.in: Likewise.
18325 * util/grub.d/10_linux.in: Likewise.
18326
c452fa66
CW
183272010-09-10 Colin Watson <cjwatson@ubuntu.com>
18328
18329 * util/grub-install.in: ${imgext} won't be defined here until the
18330 install branch is merged. For the meantime, only verify core.img on
18331 i386-pc and sparc64-ieee1275 platforms.
18332
c38fe9f4
RM
183332010-09-10 Robert Millan <rmh@gnu.org>
18334
18335 Solaris support in grub_find_zpool_from_dir(). Thanks
18336 Seth Goldberg for referring to getextmntent() facility.
18337
18338 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18339 `sys/mkdev.h'.
18340 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18341 `<sys/mnttab.h>'.
18342 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18343 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18344 method for finding zpool name.
18345
905f7773
CW
183462010-09-10 Colin Watson <cjwatson@ubuntu.com>
18347
18348 grub-fstest needs the host and hostfs modules while other utilities
18349 actively require those modules to be absent, so grub-fstest needs
18350 its own initialisation and finalisation code.
18351
18352 * Makefile.am (grub_fstest.pp): New target.
18353 (grub_fstest_init.lst): Likewise.
18354 (grub_fstest_init.c): Likewise.
18355 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18356
fb90b546
RM
183572010-09-10 Robert Millan <rmh@gnu.org>
18358
18359 * configure.ac: Check for `struct statfs.f_fstypename' and
18360 `struct statfs.f_mntfromname'.
18361
18362 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18363 kFreeBSD-specific code.
18364
66d4bea5
RM
183652010-09-10 Robert Millan <rmh@gnu.org>
18366
18367 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18368 on ZFS. Now non-main filesystems are supported as / too.
18369
b6a690ee
CW
183702010-09-09 Colin Watson <cjwatson@ubuntu.com>
18371
18372 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18373 and grub-core/disk/host.c to ...
18374 (grub-fstest): ... here. Having the host disk implementation
18375 present confuses grub-probe and other utility programs.
18376
18377 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18378 when writing to a file, not when writing to stdout.
18379
8901b00c 183802010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18381
18382 * tests/partmap_test.in: New test for partitions.
18383 * Makefile.util.def: Rules for new test.
18384
7bf45fdd
RM
183852010-09-09 Robert Millan <rmh@gnu.org>
18386
18387 * util/grub-probe.c (probe): Fix a pair of unhandled error
18388 conditions.
18389
4dfbc574
RM
183902010-09-09 Robert Millan <rmh@gnu.org>
18391
18392 Basic Btrfs support (detection and UUID).
18393
18394 * grub-core/fs/btrfs.c: New file.
18395 * Makefile.util.def (library): Register btrfs.c.
18396 * grub-core/Makefile.core.def: Likewise.
18397
6b8e78ae
RM
183982010-09-08 Robert Millan <rmh@gnu.org>
18399
18400 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18401 with (optional) parameters to specify device and relative path.
18402 * util/grub-install.in: Use is_path_readable_by_grub() to
18403 verify readability of a few critical files.
18404 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18405 verify readability of grub.cfg.new.
18406
27f21a8b
VS
184072010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18408
18409 Split minix.mod into minix.mod and minix2.mod.
18410
18411 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18412 * grub-core/Makefile.core.def (minix2): New module.
18413 * grub-core/fs/minix.c: Use definitions instead of runtime version
18414 checking.
18415 * grub-core/fs/minix2.c: New file.
18416
c0e53ea5
YB
184172010-09-08 Yves Blusseau <blusseau@zetam.org>
18418
18419 Add new --boot-directory option to replace --root-directory
18420
18421 * util/grub-install.in: Add new --boot-directory option
18422 * util/grub-reboot.in: Likewise.
18423 * util/grub-set-default.in: Likewise.
18424
b9fe6ea2
YB
184252010-09-08 Yves Blusseau <blusseau@zetam.org>
18426
18427 * util/grub-mkconfig.in: Use new variable.
18428
d87aedff
YB
184292010-09-08 Yves Blusseau <blusseau@zetam.org>
18430
18431 * configure.ac: Define some useful variables.
18432
e55e8495
VS
184332010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18434
18435 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18436 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18437 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18438 Use terminfo and don't use cursor-on/cursor-off unless it's known
18439 to work.
18440 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
18441 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
18442
6fa6d675
CW
184432010-09-08 Colin Watson <cjwatson@ubuntu.com>
18444
18445 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
18446 starts with "(,", fill the drive containing the loaded image in
18447 between those two characters, but expect that a full partition
18448 specification including partition map names will follow.
18449
92f2aef0
RM
184502010-09-08 Robert Millan <rmh@gnu.org>
18451
18452 * configure.ac: Remove `--enable-grub-fstest' option.
18453 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
18454
18455 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
18456 `grub-fstest' instead of `grub-probe' for readability verification.
18457 * util/grub-probe.c (probe): Remove readability verification kludge.
18458
99fd620d
RM
184592010-09-08 Robert Millan <rmh@gnu.org>
18460
18461 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
18462 initializing `GRUB_FS'.
18463
058e30ac 184642010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
18465
18466 Not command (!) support to GRUB script.
18467
18468 * tests/grub_script_not.in: New test.
18469 * Makefile.util.def: Rules for new test.
18470
18471 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18472 ! command as a special case.
18473 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
18474
b61d05ed 184752010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18476
058e30ac 18477 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
18478 grub_free.
b61d05ed 18479
4d69c786 184802010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18481
18482 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
18483
aa3119c4 184842010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18485
18486 * docs/grub.texi (Shell-like scripting): Documentation for break,
18487 continue, shift and return commands.
18488
db0f7e3d
VS
184892010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
18490
18491 Rename CD-ROM to cd on BIOS.
18492
18493 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
18494 "cd".
18495 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
18496
88b87c93
VS
184972010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18498
18499 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
18500 * util/grub-probe.c (main): Likewise.
18501 * util/i386/pc/grub-setup.c (main): Likewise.
18502 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
18503 Reported and debugged by: alexxy
18504
294f324d
VS
185052010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18506
18507 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
18508 diagnostic info.
18509
d7ee3441
JS
185102010-09-05 Jo Shields <directhex@apebox.org>
18511
18512 * util/grub.d/30_os-prober.in: Add missing classes.
18513
d7e06c1f
VS
185142010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18515
18516 * docs/grub.texi (Theme file format): Document new position format.
18517
fc157e53
VS
185182010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18519
18520 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
18521 a table. Use @code instead of @verbatim.
18522
506e9a1c
CB
185232010-09-05 Colin D Bennett <colin@gibibit.com>
18524
18525 Gfxmenu documentation.
18526
18527 * docs/grub.texi (Theme file format): New chapter.
18528
f0aff67c
SJ
185292010-09-05 Szymon Janc <szymon@janc.net.pl>
18530
18531 * grub-core/Makefile.core.def (xzio): New module.
18532 * grub-core/io/xzio.c: New file.
18533 * grub-core/lib/xzembed/xz.h: New file (from xembed).
18534 * grub-core/lib/xzembed/xz_config.h: Likewise.
18535 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
18536 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
18537 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
18538 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
18539 * grub-core/lib/xzembed/xz_private.h: Likewise.
18540 * grub-core/lib/xzembed/xz_stream.h: Likewise.
18541 * include/grub/file.h (grub_file_filter_id): New compression filter
18542 GRUB_FILE_FILTER_XZIO.
18543
82a85062
VS
185442010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18545
18546 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
18547 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
18548 size.
18549
3579415d
VS
185502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18551
18552 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
18553 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
18554
5124ae6d
VS
185552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18556
18557 Uncompressed checksum support.
18558
18559 * grub-core/commands/hashsum.c (options): Add option --uncompress.
18560 (check_list): New parameter uncompress.
18561 (grub_cmd_hashsum): Handle --uncompress.
18562
9aadb3d1
VS
185632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18564
18565 Reintroduce testload.
18566
18567 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
18568 from here ...
18569 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
18570 (GRUB_MOD_INIT): New function.
18571 (GRUB_MOD_FINI): Likewise.
18572 * grub-core/Makefile.core.def (testload): New module.
18573
a17792c3
SJ
185742010-09-05 Szymon Janc <szymon@janc.net.pl>
18575
18576 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
18577 (uint8_t): New type.
18578 (uint16_t): Likewise.
18579 (uint32_t): Likewise.
18580 (uint64_t): Likewise.
18581
b81e40a3
SJ
185822010-09-05 Szymon Janc <szymon@janc.net.pl>
18583
18584 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
18585
fc2ef117
VS
185862010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18587
18588 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
18589 Made static.
18590 (grub_gzfile_open): Removed. All users updated.
18591 (GRUB_MOD_INIT): New function.
18592 (GRUB_MOD_FINI): Likewise.
18593 * grub-core/kern/file.c (grub_file_filters_all): New variable.
18594 (grub_file_filters_enabled): Likewise.
18595 (grub_file_open): Handle filters.
18596 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
18597 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
18598 * include/grub/file.h (grub_file_filter_id_t): New type.
18599 (grub_file_filter_t): Likewise.
18600 (grub_file_filters_all): New extern variable.
18601 (grub_file_filters_enabled): Likewise.
18602 (grub_file_filter_register): New inline function.
18603 (grub_file_filter_unregister): Likewise.
18604 (grub_file_filter_disable): Likewise.
18605 (grub_file_filter_disable_compression): Likewise.
18606 * include/grub/gzio.h: Removed.
18607
35ee15e0
BC
186082010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18609
18610 Filename expansion support for wildcards in GRUB script.
18611
18612 * tests/grub_script_expansion.in: New test.
18613 * Makefile.util.def: Rule for new test.
18614
18615 * grub-core/commands/wildcard.c: New file, implements filename
18616 expansion support for GRUB script.
18617 * grub-core/Makefile.core.def: Rule update for regexp.mod.
18618 * grub-core/script/argv.c: Cosmetic changes.
18619 * grub-core/script/execute.c (grub_script_arglist_to_argv):
18620 Refactored to perform wildcard expansion on arguments.
18621 * include/grub/script_sh.h (grub_script_wildcard_translator): New
18622 struct.
18623
18624 * tests/util/grub-shell.in: Fix quoting for read input.
18625
5f0c4aca
BC
186262010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18627
18628 Support for updating environment variables with matched substrings
18629 of regexp.
18630
18631 * tests/grub_cmd_regexp.in: New test.
18632 * Makefile.util.def: Rule for new test.
18633
18634 * grub-core/commands/regexp.c: New option -s to update environment
18635 variables with regexp matches.
18636
3759a35f
SJ
186372010-09-04 Szymon Janc <szymon@janc.net.pl>
18638
18639 * include/grub/file.h (grub_file): New member not_easly_seekable.
18640 (grub_file_seekable): New inline function.
18641 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
18642 easily seekable.
18643 (grub_gzio_open): Set not_easly_seekable.
18644 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
18645 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
18646
ed8c6dec
BC
186472010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18648
18649 Support for options to appear multiple times on cmdline.
18650
18651 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
18652 * grub-core/commands/extcmd.c: Support for repeatable option.
18653 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
18654 repeatable option support.
18655
18656 Refactor menuentry into a regular command.
18657
18658 * grub-core/commands/menuentry.c: New file, menuentry command
18659 implementation.
18660 * grub-core/Makefile.core.def: Rule update for normal.mod.
18661 * grub-core/normal/main.c: Moved menuentry creation to
18662 grub-core/commands/menuentry.c.
18663 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
18664 (grub_menu_execute_entry_real): Removed.
18665 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
18666 function.
18667 (grub_script_execute_menuentry): Removed.
18668 * grub-core/script/parser.y (menuentry): Removed.
18669 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
18670 * grub-core/script/yylex.l (menuentry): Removed.
18671 * include/grub/menu.h (grub_menu_init): New prototype.
18672 (grub_menu_fini): New prototype.
18673 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
18674 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
18675 (grub_script_execute_sourcecode): New prototype.
18676
dacd0cf0
BC
186772010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18678
18679 "return" command for GRUB script functions.
18680
18681 * tests/grub_script_return.in: New test.
18682 * Makefile.util.def: Rules for new test.
18683
18684 * grub-core/script/execute.c (grub_script_return): New function.
18685 * grub-core/script/main.c: Register/unregister return commaond.
18686 * include/grub/script_sh.h (grub_script_return): New prototype.
18687
52e72f9d
BC
186882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18689
18690 "setparams" command to update positional parameters.
18691
18692 * tests/grub_script_setparams.in: New test.
18693 * Makefile.util.def: Rules for new test.
18694
18695 * grub-core/script/argv.c (grub_script_argv_make): New function.
18696 * grub-core/script/execute.c (replace_scope): New function.
18697 (grub_script_setparams): New function.
18698 * grub-core/script/lexer.c: Remove unused variables.
18699 * grub-core/script/main.c: Register/unregister setparams command.
18700 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
18701 (grub_script_setparams): New prototype.
18702
25b60c91
BC
187032010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18704
18705 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
18706 grub_free order.
18707
37e7bf68
BC
187082010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18709
18710 Support for passing block of commands as an argument to extcmds.
18711
18712 * Makefile.util.def: Rules for new test.
18713 * tests/grub_script_blockarg.in: New test.
18714 * grub-core/tests/test_blockarg.c: New file, block argument
18715 command used in the test.
18716
18717 * include/grub/extcmd.h (grub_extcmd_context): New struct.
18718 (grub_register_extcmd_prio): New function prototype.
18719 (grub_extcmd_dispatcher): New function prototype.
18720 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
18721 type.
18722 * include/grub/script_sh.h (struct grub_script): New members
18723 `children', `next_siblings' and `refcnt' for block arguments and
18724 reference counting.
18725 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
18726 (grub_script_arg): New member `script' for block argument.
18727 (grub_script_argv): New member `script' for block argument.
18728 (grub_parser_param): New member `scripts' for block argument.
18729 (grub_script_mem_free): New extern function prototype.
18730 (grub_script_ref): New function prototype.
18731 (grub_script_unref): New function prototype.
18732
18733 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
18734 extcmd form to support block arguments.
18735 * grub-core/script/argv.c: Block arguments support.
18736 * grub-core/script/execute.c: Likewise.
18737 * grub-core/script/lexer.c: Likewise.
18738 * grub-core/script/main.c: Likewise.
18739 * grub-core/script/script.c: Likewise.
18740 * grub-core/script/parser.y: Likewise. New `block' and `block0'
18741 non-terminals.
18742
18743 * grub-core/commands/acpi.c: Update extcmd implementations with
18744 grub_extcmd_context_t.
18745 * grub-core/commands/cat.c: Likewise.
18746 * grub-core/commands/echo.c: Likewise.
18747 * grub-core/commands/extcmd.c: Likewise.
18748 * grub-core/commands/hashsum.c: Likewise.
18749 * grub-core/commands/hdparm.c: Likewise.
18750 * grub-core/commands/help.c: Likewise.
18751 * grub-core/commands/hexdump.c: Likewise.
18752 * grub-core/commands/i386/cpuid.c: Likewise.
18753 * grub-core/commands/i386/pc/drivemap.c: Likewise.
18754 * grub-core/commands/i386/pc/halt.c: Likewise.
18755 * grub-core/commands/i386/pc/sendkey.c: Likewise.
18756 * grub-core/commands/iorw.c: Likewise.
18757 * grub-core/commands/keystatus.c: Likewise.
18758 * grub-core/commands/loadenv.c: Likewise.
18759 * grub-core/commands/ls.c: Likewise.
18760 * grub-core/commands/lspci.c: Likewise.
18761 * grub-core/commands/memrw.c: Likewise.
18762 * grub-core/commands/probe.c: Likewise.
18763 * grub-core/commands/search_wrap.c: Likewise.
18764 * grub-core/commands/setpci.c: Likewise.
18765 * grub-core/commands/sleep.c: Likewise.
18766 * grub-core/disk/loopback.c: Likewise.
18767 * grub-core/hello/hello.c: Likewise.
18768 * grub-core/loader/i386/bsd.c: Likewise.
18769 * grub-core/loader/xnu.c: Likewise.
18770 * grub-core/term/gfxterm.c: Likewise.
18771 * grub-core/term/serial.c: Likewise.
18772 * grub-core/tests/lib/functional_test.c: Likewise.
18773
888d1500
BC
187742010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18775
18776 Multi-line quoted strings support.
18777
18778 * grub-core/script/lexer.c (append_newline): Removed.
18779 (grub_script_lexer_yywrap): Refactored.
18780 (grub_script_lexer_init): Refactored.
18781 * grub-core/script/yylex.l (yywrap): New function.
18782 (grub_lexer_resplit): New function.
18783 (grub_lexer_unput): New function.
18784 * include/grub/script_sh.h (grub_lexer_param): New members, unput
18785 and resplit.
18786 * tests/grub_script_echo1.in: Added few more testcases.
18787
dda060dd
VS
187882010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 * grub-core/kern/misc.c: Don't add abort alias in utils.
18791 Reported by: echoline.
18792
6556eba9
BC
187932010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
18794
18795 Add missing files into "make dist" tarball for other platforms.
18796
18797 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
18798 * conf/Makefile.common (dist_noinst_DATA): New variable.
18799 * conf/Makefile.extra-dist: Added missing make dist files.
18800 * grub-core/Makefile.core.def: Likewise.
18801
c8e7bf5f
VS
188022010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18803
18804 Compress grub_prefix.
18805
18806 * grub-core/boot/i386/pc/lnxboot.S: Use
18807 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
18808 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
18809 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
18810 GRUB_MACHINE_PREFIX_END. All users updated.
18811 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
18812 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
18813 + 0x40.
18814 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
18815 * util/grub-mkimage.c (image_target_desc): Change data_end to
18816 prefix_end. All users updated.
18817
a7c00cdb
VS
188182010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18819
18820 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
18821 value.
18822 (grub_openbsd_boot): Likewise.
18823 (grub_netbsd_boot): Likewise.
18824 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
18825 (grub_xnu_boot): Likewise.
18826
9f915872
VS
188272010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18828
18829 * configure.ac: Clean LIBS variable after tests.
18830
efa1bee7
CW
188312010-09-02 Colin Watson <cjwatson@ubuntu.com>
18832
18833 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
18834
61d720e5
VS
188352010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18836
18837 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
18838 echo if libdevmapper will be used.
18839
ef8e0ec8
IT
188402010-09-02 Ian Turner <Ian.Turner@deshaw.com>
18841
18842 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
18843 constant for the same file.
18844
03e261d8
VS
188452010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18846
18847 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
18848
c2a4eba6
CW
188492010-09-02 Colin Watson <cjwatson@ubuntu.com>
18850
18851 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
18852 grub-core/*.pp.
18853
9056cbf3
CW
188542010-09-02 Colin Watson <cjwatson@ubuntu.com>
18855
18856 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
18857 required by the boot protocol.
18858
18859 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
18860 ebp and edi members.
18861 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
18862 state.ebp and state.edi.
18863 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
18864 %ebp and %edi according to grub_relocator32_ebp and
18865 grub_relocator32_edi respectively.
18866 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
18867 and state.edi.
18868
529cc99a
VS
188692010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18870
18871 Add i386-pc-pxe image target.
18872
18873 * util/grub-mkimage.c (image_target_desc): New enum value
18874 IMAGE_I386_PC_PXE.
18875 (image_targets): New target i386-pc-pxe.
18876 (generate_image): Handle i386-pc-pxe image.
18877
9a093920
VS
188782010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18879
18880 Fix grub_pxe_scan.
18881
18882 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
18883 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
18884 All users updated.
18885 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
18886 (grub_pxe_pxenv): Correct type.
18887
f9cefc4e
CW
188882010-09-01 Colin Watson <cjwatson@ubuntu.com>
18889
18890 * NEWS: Document most of the important changes since 1.98.
18891
4066f57f
CW
188922010-09-01 Colin Watson <cjwatson@ubuntu.com>
18893
18894 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
18895 generated manual page) a little.
18896
da2891f9
CW
188972010-09-01 Colin Watson <cjwatson@ubuntu.com>
18898
18899 * docs/grub.texi: Add myself as an author.
18900
ad717fae
VS
189012010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18902
18903 * Makefile.util.def (libgrub.a): Add missing sunpc.
18904 Reported by: Seth Goldberg.
18905
eefe8abd
VS
189062010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18907
18908 Interrupt wrapping and code simplifications.
18909
9494ef9a
VS
18910 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
18911 x86_noieee1275 which are functionaly equivalent in this case.
18912 (grub-install): Make source on each platform explicit. Enable on
18913 all noemu.
18914 * gentpl.py (x86_efi_pc): Removed group.
18915 (x86_noefi): Likewise.
18916 (i386_noefi): Likewise.
18917 (x86_noieee1275): Likewise.
18918 (i386_noieee1275): Likewise.
18919 (i386_noefi_noieee1275): Likewise.
18920 (i386_pc_qemu_coreboot): Likewise.
18921 (i386_coreboot_multiboot): Likewise.
18922 (i386_pc_coreboot_multiboot_qemu): Likewise.
18923 (x86_noefi_mips): Likewise.
18924 (noieee1275): Likewise.
18925 (ieee1275_mips): Likewise.
18926 (noemu_noieee1275): Likewise.
18927 (cmos): New group.
18928 (usb): Likewise.
18929 (videoinkernel): Likewise.
18930 (videomodules): Likewise.
eefe8abd 18931 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
18932 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
18933 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
18934 include/grub/loader.h, include/grub/msdos_partition.h,
18935 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
18936 include/grub/machine/console.h, include/grub/machine/vga.h,
18937 include/grub/machine/vbe.h, include/grub/machine/init.h,
18938 include/grub/machine/kernel.h, include/grub/cpu/time.h,
18939 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 18940 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
18941 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
18942 * grub-core/Makefile.core.def (kernel): Explicit the source for
18943 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
18944 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
18945 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
18946 Use videoinkernel tag.
18947 (usb): Enable on all usb.
18948 (usbserial_common): Likewise.
18949 (usbserial_pl2303): Likewise.
18950 (usbserial_ftdi): Likewise.
18951 (uhci): Enable on all x86.
18952 (ohci): Enable on all pci.
18953 (cmostest): Enable on all CMOS.
18954 (acpi): Include commands/acpi.c on all platforms.
18955 (halt): Add relevant lib/*/halt.c.
18956 (hdparm): Enable on all pci.
18957 (lspci): Likewise.
18958 (usbtest): Enable on all usb.
18959 (ata): Enable on all pci.
18960 (ata_pthru): Likewise.
18961 (usbms): Enable on all usb.
18962 (usb_keyboard): Likewise.
18963 (font): Use tag videomodules.
18964 (bufio): Likewise.
18965 (datetime): Use tag cmos. Enable on all noemu.
18966 (mmap): Use tags common and x86.
18967 (gfxterm): Use tag videomodules.
18968 (bitmap): Likewise.
18969 (bitmap_scale): Likewise.
18970 (video_fb): Likewise.
18971 (video): Likewise.
18972 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18973 adjust padding accordingly. All users updated.
18974 (grub_ohci_transaction): Fix bad format specification.
18975 (GRUB_MOD_INIT): Add asserts for struct size.
18976 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18977 (grub_alloc_td): Likewise.
18978 (grub_free_queue): Likewise.
18979 (grub_uhci_transfer): Likewise.
18980 (grub_uhci_transaction): Fix bad format specification.
18981 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18982 (grub_usb_bulk_readwrite): Likewise.
18983 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18984 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18985 Made static.
18986 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18987 Made static.
18988 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18989 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18990 Transformed into C.
18991 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18992 Moved from here ...
18993 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18994 ... here. Transformed into C. Made static.
18995 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18996 Moved from here ...
18997 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18998 ... here. Transformed into C. Made static.
18999 * grub-core/kern/i386/pc/startup.S
19000 (grub_biosdisk_check_int13_extensions): Moved from here ...
19001 * grub-core/disk/i386/pc/biosdisk.c
19002 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
19003 Made static.
19004 * grub-core/kern/i386/pc/startup.S
19005 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
19006 * grub-core/disk/i386/pc/biosdisk.c
19007 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
19008 Transformed into C. Made static.
19009 * grub-core/kern/i386/pc/startup.S
19010 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
19011 * grub-core/disk/i386/pc/biosdisk.c
19012 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
19013 Transformed into C. Made static.
19014 * grub-core/kern/i386/pc/startup.S
19015 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
19016 * grub-core/disk/i386/pc/biosdisk.c
19017 (grub_biosdisk_get_diskinfo_standard): ... here.
19018 Transformed into C. Made static.
19019 * grub-core/kern/i386/pc/startup.S
19020 (grub_biosdisk_get_num_floppies): Moved from here ...
19021 * grub-core/disk/i386/pc/biosdisk.c
19022 (grub_biosdisk_get_num_floppies): ... here.
19023 Transformed into C. Made static.
19024 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
19025 New function.
19026 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
19027 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
19028 Transformed into C. Made static.
19029 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
19030 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
19031 Transformed into C. Made static.
19032 * grub-core/kern/i386/ieee1275/init.c: Removed.
19033 * grub-core/kern/i386/misc.S: Likewise.
19034 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
19035 Splitted from here ...
19036 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
19037 Transformed into C. Made static. All users updated.
19038 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
19039 Transformed into C. Made static. All users updated.
19040 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
19041 Moved from here...
19042 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
19043 Transformed into C. Made static. All users updated.
19044 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
19045 Moved from here...
19046 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
19047 Transformed into C. Made static. All users updated.
19048 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
19049 Removed (replaced by C version).
19050 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
19051 Moved from here...
19052 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
19053 Transformed into C. Made static.
19054 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
19055 Moved from here...
19056 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
19057 ... here. Transformed into C.
19058 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
19059 Moved from here...
19060 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
19061 ... here. Transformed into C.
19062 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
19063 Moved from here...
19064 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
19065 ... here. Transformed into C. Made static.
19066 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
19067 Moved from here...
19068 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
19069 ... here. Transformed into C.
21ed554b
VS
19070 * grub-core/kern/i386/pc/startup.S
19071 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
19072 * grub-core/video/i386/pc/vbe.c
19073 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
19074 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
19075 Moved from here...
19076 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
19077 ... here. Transformed into C.
19078 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
19079 Moved from here...
19080 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
19081 ... here. Transformed into C.
19082 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
19083 Moved from here...
19084 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
19085 ... here. Transformed into C.
19086 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
19087 Moved from here...
19088 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
19089 ... here. Transformed into C.
19090 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
19091 Moved from here...
19092 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
19093 ... here. Transformed into C. Made static.
19094 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
19095 Moved from here...
19096 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
19097 ... here. Transformed into C. Made static.
19098 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
19099 Moved from here...
19100 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
19101 ... here. Transformed into C. Made static.
19102 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
19103 pxe_rm_entry as third argument.
19104 (grub_bios_interrupt): New function.
19105 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
19106 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
19107 of calling grub_stop.
19108 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
19109 * grub-core/lib/efi/halt.c (grub_halt): ...here.
19110 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
19111 * grub-core/lib/emu/halt.c (grub_halt): ... here.
19112 * grub-core/lib/i386/halt.c: Moved from here ...
19113 * grub-core/lib/i386/halt.c: ... here.
19114 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
19115 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
19116 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
19117 grub_stop_floppy.
19118 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
19119 * include/grub/i386/coreboot/init.h: Removed.
19120 * include/grub/i386/multiboot/init.h: Likewise.
19121 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
19122 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
19123 * include/grub/i386/pc/int.h: New file.
19124 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
19125 (grub_pxe_scan): Removed.
19126 (grub_pxe_call): Update prototype.
19127 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
19128 prototypes.
19129 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
19130 * include/grub/i386/qemu/init.h: Removed.
19131 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
19132 noreturn.
19133 (grub_halt): Likewise.
19134 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
19135 (grub_reboot): Likewise.
19136 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
19137 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
19138 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
19139
215dd471
RM
191402010-08-30 Robert Millan <rmh@gnu.org>
19141
19142 * NEWS: Document addition of ZFS support in `grub-install' and
19143 `grub-mkconfig'.
19144
ebd65b82
BC
191452010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
19146
19147 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
19148 dprintf output.
19149
11721d19
VS
191502010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19151
19152 Remove leftover embedding of font objects.
19153
19154 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19155 * util/grub-install.in (font): Removed.
19156 * util/grub-mkimage.c (generate_image): Remove font support. All users
19157 updated.
19158
37837d4e
VS
191592010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19160
19161 Remove leftover embedding of font objects.
19162
19163 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19164 * util/grub-install.in (font): Removed.
19165 * util/grub-mkimage.c (generate_image): Remove font support. All users
19166 updated.
19167
b4c1aae0
VS
191682010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19169
19170 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 19171 Reported by: Ian Turner
b4c1aae0 19172
8920a08d
VS
191732010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19176 timeout to avoid indefinite boot stalling.
19177
f21db033
VS
191782010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19179
19180 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19181 (grub_env_write_color_highlight): Likewise.
19182
9a9de209
VS
191832010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19184
19185 * grub-core/normal/term.c (print_more): Return to normal and not
19186 to standard state after printing "---MORE---".
19187
3dca01d7
VS
191882010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19189
19190 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19191 Mask out the bit 0x80 since it has other meaning that specifiing color.
19192
0b986c40
VS
191932010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 New relocator. Allows for more kernel support and more straightforward
19196 loader writing.
19197
19198 * Makefile.am (BOOTTARGET): New variable.
19199 (QEMU32): Likewise.
19200 (linux.init.x86_64): New target.
19201 (linux.init.i386): Likewise.
19202 (multiboot.elf): Likewise.
19203 (kfreebsd.elf): Likewise.
19204 (kfreebsd.aout): Likewise.
19205 (pc-chainloader.elf): Likewise.
19206 (pc-chainloader.bin): Likewise.
19207 (ntldr.elf): Likewise.
19208 (ntldr.bin): Likewise.
19209 (multiboot2.elf): Likewise.
19210 (kfreebsd.init.x86_64): Likewise.
19211 (kfreebsd.init.i386): Likewise.
19212 (knetbsd.init.i386): Likewise.
19213 (kopenbsd.init.i386): Likewise.
19214 (knetbsd.init.x86_64): Likewise.
19215 (kopenbsd.init.x86_64): Likewise.
19216 (linux-initramfs.i386): Likewise.
19217 (linux-initramfs.x86_64): Likewise.
19218 (kfreebsd-mfsroot.i386.img): Likewise.
19219 (knetbsd.image.i386): Likewise.
19220 (kopenbsd.image.i386): Likewise.
19221 (kopenbsd.image.x86_64): Likewise.
19222 (knetbsd.miniroot-image.i386.img): Likewise.
19223 (kfreebsd-mfsroot.x86_64.img): Likewise.
19224 (knetbsd.image.x86_64): Likewise.
19225 (knetbsd.miniroot-image.x86_64.img): Likewise.
19226 (kfreebsd-mfsroot.i386.gz): Likewise.
19227 (bootcheck-kfreebsd-i386): Likewise.
19228 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19229 (bootcheck-kfreebsd-x86_64): Likewise.
19230 (knetbsd.miniroot-image.i386.gz): Likewise.
19231 (bootcheck-knetbsd-i386): Likewise.
19232 (bootcheck-kopenbsd-i386): Likewise.
19233 (bootcheck-kopenbsd-x86_64): Likewise.
19234 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19235 (bootcheck-knetbsd-x86_64): Likewise.
19236 (bootcheck-linux-i386): Likewise.
19237 (bootcheck-linux-x86_64): Likewise.
19238 (bootcheck-linux16-i386): Likewise.
19239 (bootcheck-linux16-x86_64): Likewise.
19240 (bootcheck-multiboot): Likewise.
19241 (bootcheck-multiboot2): Likewise.
19242 (bootcheck-kfreebsd-aout): Likewise.
19243 (bootcheck-pc-chainloader): Likewise.
19244 (bootcheck-ntldr): Likewise.
19245 (CLEANFILES): Add new targets.
19246 (BOOTCHECKS): New variable.
19247 (.PHONY): Add bootchecks.
19248 (SUCCESSFUL_BOOT_STRING): New variable.
19249 (BOOTCHECK_TIMEOUT): Likewise.
19250 (bootcheck): New target
19251 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19252 * configure.ac: Correct efiemu excuse.
19253 * docs/grub.texi (Supported kernels): New chapter.
19254 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19255 include/grub/mm_private.h. Simplify inclusion of
19256 include/grub/boot.h, include/grub/loader.h
19257 and include/grub/msdos_partition.h
19258 (KERNEL_HEADER_FILES) [i386_coreboot]:
19259 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19260 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19261 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19262 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19263 include/grub/machine/loader.h.
19264 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19265 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19266 extra_dist.
19267 (pci.mod): Enable on i386-multiboot.
19268 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19269 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19270 i386-qemu.
19271 (relocator.mod): Rewritten.
19272 (aout.mod): Enable on all x86.
19273 (bsd.mod): Likewise.
19274 (ntldr.mod): New module.
19275 (linux.mod): Use loader/i386/linux.c on all x86.
19276 (xnu.mod): Enable on all x86.
19277 (vga_text.mod): disable on EFI and QEMU.
19278 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19279 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19280 * grub-core/efiemu/loadcore.c: Likewise.
19281 * grub-core/efiemu/main.c: Likewise.
19282 (grub_efiemu_exit_boot_services): Removed.
19283 (grub_efiemu_finish_boot_services): Likewise.
19284 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19285 function.
19286 * grub-core/efiemu/i386/nocfgtables.c: New file.
19287 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19288 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19289 (grub_efi_finish_boot_services): Moved from here ...
19290 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19291 Fille finish memory map and related data.
19292 (finish_mmap_buf): New variable.
19293 (grub_efi_uintn_t finish_mmap_size): Likewise.
19294 (grub_efi_uintn_t finish_key): Likewise.
19295 (grub_efi_uintn_t finish_desc_size): Likewise.
19296 (grub_efi_uint32_t finish_desc_version): Likewise.
19297 (grub_efi_is_finished): Likewise.
19298 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19299 finished.
19300 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19301 (grub_elf64_phdr_iterate): Likewise.
19302 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19303 (grub_os_area_size): Likewise.
19304 (grub_machine_init): Don't reserve os area.
19305 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19306 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19307 * grub-core/kern/i386/loader.S: Removed.
19308 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19309 (grub_os_area_size): Likewise.
19310 (grub_machine_init): Don't reserve os area.
19311 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19312 Don't call grub_dl_unload_all.
19313 Don't include loader.S.
19314 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19315 Declare the memory after _end as available.
19316 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 19317 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 19318 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
19319 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19320 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19321 * include/grub/mm_private.h (grub_mm_header): ... here.
19322 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19323 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
19324 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19325 (grub_mm_region): ..here. Removed addr. Added pre_size.
19326 All users updated.
19327 * grub-core/kern/mm.c (base): Renamed to ...
19328 (grub_mm_base): ... this. Made global.
19329 (grub_real_malloc): Alloc from end of region.
19330 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19331 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19332 * grub-core/kern/powerpc/cache_flush.S: ... here.
19333 * grub-core/lib/efi/relocator.c: New file.
19334 * grub-core/lib/i386/relocator.c: Rewritten.
19335 * grub-core/lib/i386/relocator16.S: New file.
19336 * grub-core/lib/i386/relocator32.S: Likewise.
19337 * grub-core/lib/i386/relocator64.S: Likewise.
19338 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19339 * grub-core/lib/i386/relocator_common.S: New file.
19340 * grub-core/lib/ieee1275/relocator.c: Likewise.
19341 * grub-core/lib/mips/relocator.c: Rewritten.
19342 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19343 stylistic adjustments.
19344 * grub-core/lib/powerpc/relocator.c: New file.
19345 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19346 * grub-core/lib/relocator.c: Rewritten.
19347 * grub-core/lib/x86_64/relocator_asm.S: New file.
19348 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19349 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19350 (bsd_tag): New struct.
19351 (tags): New variable.
19352 (tags_last): Likewise.
19353 (netbsd_module): New struct.
19354 (netbsd_mods): New variable.
19355 (netbsd_mods_last): Likewise.
19356 (openbsd_opts): New parameter "serial".
19357 (OPENBSD_SERIAL_ARG): New definition.
19358 (netbsd_opts): New parameter "serial".
19359 (NETBSD_SERIAL_ARG): New definition.
19360 (grub_freebsd_add_meta): Reorganised into ...
19361 (grub_bsd_add_meta): ...this. All users updated.
19362 (grub_freebsd_add_mmap): Reorganised into ...
19363 (generate_e820_mmap): ...this...
19364 (grub_bsd_add_mmap): ...and this. All users updated.
19365 (grub_freebsd_list_modules): Use tags.
19366 (grub_netbsd_add_meta_module): New function.
19367 (grub_netbsd_list_modules): Likewise.
19368 (grub_freebsd_boot): Use relocator and finish EFI.
19369 (grub_openbsd_boot): Likewise.
19370 (grub_netbsd_setup_video): New function.
19371 (grub_netbsd_add_modules): Likewise.
19372 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19373 and finish EFI.
19374 (grub_bsd_unload): Unload tags.
19375 (grub_bsd_load_aout): Use relocator.
19376 (grub_bsd_elf32_size_hook): New function.
19377 (grub_bsd_elf32_hook): Use relocator.
19378 (grub_bsd_elf64_size_hook): New function.
19379 (grub_bsd_elf64_hook): Use relocator.
19380 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19381 (grub_bsd_load): Zero-out openbsd_ramdisk.
19382 (grub_bsd_load): Use relocator.
19383 (grub_cmd_openbsd): Support serial.
19384 (grub_cmd_netbsd): Support modules.
19385 (grub_cmd_freebsd_module): Use relocator.
19386 (grub_netbsd_module_load): New function.
19387 (grub_cmd_netbsd_module): Likewise.
19388 (grub_cmd_openbsd_ramdisk): Likewise.
19389 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19390 kopenbsd_ramdisk.
19391 (GRUB_MOD_FINI): Unregister new commands.
19392 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19393 (grub_freebsd_load_elfmodule_obj): Use relocator.
19394 (grub_freebsd_load_elfmodule): Likewise.
19395 (grub_freebsd_load_elf_meta): Likewise.
19396 (grub_netbsd_load_elf_meta): New function.
19397 (grub_openbsd_find_ramdisk): Likewise.
19398 * grub-core/loader/i386/bsd_helper.S: Removed.
19399 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19400 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19401 * grub-core/loader/i386/efi/linux.c: Likewise.
19402 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19403 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19404 (DEFAULT_VIDEO_MODE): Likewise.
19405 (real_mode_target): New variable.
19406 (prot_mode_target): Likewise.
19407 (initrd_mem_target): Likewise.
19408 (relocator): Likewise.
19409 (efi_mmap_buf): Likewise.
19410 (efi_mmap_size): Likewise.
19411 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19412 (free_pages): Use relocator.
19413 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19414 (grub_linux_setup_video): Return error.
19415 (grub_linux_trampoline_start): Removed.
19416 (grub_linux_trampoline_end): Likewise.
19417 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19418 andd video parameters depending on firmware.
19419 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19420 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19421 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19422 (grub_cmd_initrd): Use relocator.
19423 * grub-core/loader/i386/linux_trampoline.S: Removed.
19424 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19425 (elf_sec_entsize): Likewise.
19426 (elf_sec_shstrndx): Likewise.
19427 (elf_sections): Likewise.
19428 (grub_multiboot_load): Use relocator.
19429 (grub_multiboot_get_mbi_size): Account for sections.
19430 (grub_multiboot_make_mbi): Use relocator and support sections.
19431 (grub_multiboot_add_elfsyms): New function.
19432 (grub_multiboot_free_mbi): Free sections.
19433 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19434 (grub_linux_real_target): Likewise.
19435 (grub_linux_real_chunk): Likewise.
19436 (grub_linux16_prot_size): Likewise.
19437 (grub_linux16_boot): Use relocator.
19438 (grub_linux_unload): Unload relocator.
19439 (grub_cmd_linux): Use relocator.
19440 (grub_cmd_initrd): Likewise.
19441 * grub-core/loader/i386/pc/ntldr.c: New file.
19442 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
19443 Don't try to guess CPU frequency.
19444 (grub_xnu_set_video): Stretch bitmap.
19445 (grub_xnu_boot): Use relocator.
19446 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
19447 (grub_linux_unload): Free relocator.
19448 (grub_linux_load32): Use relocator.
19449 (grub_linux_load64): Likewise.
19450 (grub_cmd_initrd): Likewise.
19451 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
19452 (grub_multiboot_unload): Unload relocator.
19453 (grub_cmd_multiboot): Use relocator.
19454 (grub_cmd_module): Likewise.
19455 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
19456 Use relocator and support sections.
19457 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
19458 (elf_sec_entsize): Likewise.
19459 (elf_sec_shstrndx): Likewise.
19460 (elf_sections): Likewise.
19461 (grub_multiboot_load): Use relocator.
19462 (grub_multiboot_get_mbi_size): Account for sections.
19463 (grub_multiboot_make_mbi): Use relocator and support sections.
19464 (grub_multiboot_add_elfsyms): New function.
19465 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
19466 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
19467 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
19468 Prototype changed. All users updated.
19469 (grub_xnu_align_heap): Simplified.
19470 (grub_xnu_writetree_toheap): Likewise.
19471 (grub_xnu_unload): Unload relocator.
19472 (grub_cmd_xnu_kernel): Use relocator.
19473 (grub_cmd_xnu_kernel64): Likewise.
19474 (grub_xnu_register_memory): Simplified.
19475 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
19476 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
19477 EFI is finished.
19478 (grub_console_checkkey): Likewise.
19479 (grub_console_getkey): Likewise.
19480 (grub_console_getwh): Likewise.
19481 (grub_console_getxy): Likewise.
19482 (grub_console_gotoxy): Likewise.
19483 (grub_console_cls): Likewise.
19484 (grub_console_setcolorstate): Likewise.
19485 (grub_console_setcursor): Likewise.
19486 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
19487 * grub-core/tests/boot/kbsd.init-i386.S: New file.
19488 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
19489 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
19490 * grub-core/tests/boot/kernel-8086.S: Likewise.
19491 * grub-core/tests/boot/kernel-i386.S: Likewise.
19492 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
19493 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
19494 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
19495 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
19496 * grub-core/tests/boot/knetbsd.cfg: Likewise.
19497 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
19498 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
19499 * grub-core/tests/boot/linux.cfg: Likewise.
19500 * grub-core/tests/boot/linux.init-i386.S: Likewise.
19501 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
19502 * grub-core/tests/boot/linux16.cfg: Likewise.
19503 * grub-core/tests/boot/multiboot.cfg: Likewise.
19504 * grub-core/tests/boot/multiboot2.cfg: Likewise.
19505 * grub-core/tests/boot/ntldr.cfg: Likewise.
19506 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
19507 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
19508 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
19509 New definition.
19510 * include/grub/dl.h (grub_dl_unload_all): Removed.
19511 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
19512 (grub_efi_finish_boot_services): Change prototype.
19513 (grub_efi_is_finished): New variable.
19514 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
19515 Changed prototype.
19516 (grub_efiemu_finish_boot_services): Removed.
19517 (grub_machine_efiemu_init_tables): New prototype.
19518 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
19519 (grub_elf64_phdr_iterate): Likewise.
19520 * include/grub/i386/bsd.h: Include relocator.h.
19521 (freebsd_tag_header): New struct.
19522 (grub_openbsd_bios_mmap): Removed.
19523 (grub_unix_real_boot): Removed.
19524 (grub_freebsd_load_elfmodule32): Changed prototype.
19525 (grub_freebsd_load_elfmodule_obj64): Likewise.
19526 (grub_freebsd_load_elf_meta32): Likewise.
19527 (grub_freebsd_load_elf_meta64): Likewise.
19528 (grub_freebsd_add_meta): Removed.
19529 (grub_netbsd_load_elf_meta32): New prototype.
19530 (grub_netbsd_load_elf_meta64): Likewise.
19531 (grub_bsd_add_meta): Likewise.
19532 (grub_openbsd_ramdisk_descriptor): New struct.
19533 (grub_openbsd_find_ramdisk32): New prototype.
19534 (grub_openbsd_find_ramdisk64): Likewise.
19535 * include/grub/i386/coreboot/loader.h: Removed.
19536 * include/grub/i386/efi/loader.h: Likewise.
19537 * include/grub/i386/ieee1275/loader.h: Likewise.
19538 * include/grub/i386/linux.h (linux_kernel_header): Change void *
19539 to grub_uint32_t.
19540 * include/grub/i386/loader.h: Removed.
19541 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
19542 value.
19543 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
19544 (grub_phys_addr_t): New type.
19545 (grub_vtop): New inline function.
19546 (grub_map_memory): Likewise.
19547 (grub_unmap_memory): Likewise.
19548 * include/grub/i386/multiboot/loader.h: Removed.
19549 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
19550 (NETBSD_BTINFO_CONSOLE): New definition.
19551 (NETBSD_BTINFO_SYMTAB): Likewise.
19552 (NETBSD_BTINFO_MODULES): Likewise.
19553 (NETBSD_BTINFO_FRAMEBUF): Likewise.
19554 (grub_netbsd_bootinfo): New struct.
19555 (grub_netbsd_btinfo_common): Use explicit bitsize.
19556 (grub_netbsd_btinfo_mmap_entry): Removed.
19557 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
19558 (grub_netbsd_btinfo_bootdisk): New struct.
19559 (grub_netbsd_btinfo_symtab): Likewise.
19560 (grub_netbsd_btinfo_serial): Likewise.
19561 (grub_netbsd_btinfo_modules): Likewise.
19562 (grub_netbsd_btinfo_framebuf): Likewise.
19563 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
19564 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
19565 Likewise.
19566 (grub_openbsd_bootargs): Use explicit bitsize.
19567 (grub_openbsd_bootarg_console): New struct.
19568 (GRUB_OPENBSD_COM_MAJOR): New definition.
19569 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
19570 * include/grub/i386/pc/efiemu.h: Removed.
19571 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
19572 * include/grub/i386/qemu/loader.h: Removed.
19573 * include/grub/i386/relocator.h: Rewritten.
19574 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
19575 * include/grub/mips/memory.h: New file.
19576 * include/grub/mips/multiboot.h: Rewritten.
19577 * include/grub/mips/relocator.h: Rewritten.
19578 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
19579 (grub_vtop): New function.
19580 (grub_map_memory): Likewise.
19581 (grub_unmap_memory): Likewise.
19582 * include/grub/misc.h (ALIGN_DOWN): New definition.
19583 * include/grub/mm.h (grub_mm_check_real): New proto.
19584 (GRUB_MM_CHECK): New definition.
19585 * include/grub/mm_private.h: New file.
19586 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
19587 (grub_multiboot_get_mbi_size): Removed.
19588 (grub_multiboot_make_mbi): Change prottype.
19589 (grub_multiboot_set_accepts_video): New proto.
19590 (grub_multiboot_add_elfsyms): Likewise.
19591 (grub_multiboot_payload_eip): New variable.
19592 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
19593 New prototype.
19594 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
19595 New definition.
19596 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
19597 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
19598 * include/grub/powerpc/ieee1275/loader.h: Removed.
19599 * include/grub/powerpc/memory.h: New file.
19600 * include/grub/powerpc/relocator.h: Likewise.
19601 * include/grub/relocator.h: Likewise.
19602 * include/grub/relocator_private.h: Likewise.
19603 * include/grub/sparc64/ieee1275/loader.h: Removed.
19604 * include/grub/x86_64/memory.h: New file.
19605 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
19606 (grub_xnu_heap_malloc): Likewise.
19607 (grub_xnu_heap_real_start): Removed.
19608 (grub_xnu_heap_start): Likewise.
19609 (grub_xnu_relocator): New variable.
19610 (grub_xnu_heap_target_start): Likewise.
19611 * tests/util/grub-shell.in: Support non-pc.
19612 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 19613
5303b85d
VS
196142010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19615
19616 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
19617 on malloc error.
19618 (grub_bidi_logical_to_visual): Check that malloc succeded.
19619 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
19620 puts.
19621 (grub_xputs_normal): Likewise.
19622
d768d159
VS
196232010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19624
19625 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
19626 extra_dist.
19627
196282010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19629
19630 * grub-core/efiemu/runtime/efiemu.sh: Removed.
19631
5bf84df4
VS
196322010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
19635
3626810e
VS
196362010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19637
19638 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
19639 dprintf.
19640
a7363f53
BC
196412010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
19642
19643 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
19644
902f75f6
VS
196452010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19646
19647 * grub-core/normal/term.c (print_more): Fix a memory leak.
19648 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
19649 (grub_xputs_normal): Likewise.
19650
3c707967
VS
196512010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19652
19653 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
19654 the begining of the string
19655
2053cc07
VS
196562010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19657
19658 * grub-core/script/script.c (grub_script_parse): Free parsed on
19659 failure.
19660
46422ebf
VS
196612010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19662
19663 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
19664 on failure.
19665
9e0fa3f6
VS
196662010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19667
19668 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
19669 return.
19670
3393cf16
VS
196712010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
19674 (scroll_up): Fix a memory leak.
19675
b17540cb
VS
196762010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19677
19678 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
19679 errors.
19680
67140446
VS
196812010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
19682
19683 Handle USB pendrives exposed as floppies.
19684
19685 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
19686 floppy.
19687 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19688 Check for partitions on all devices.
19689
e35e46fc
VS
196902010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19691
19692 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
19693 (readkey): Likewise.
19694
d24c6190
BC
196952010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
19696
19697 Multiple variable names support to "export" command.
19698
19699 * normal/context.c (grub_cmd_export): "export" command supports
19700 multiple variable names.
19701
04ddcc6a
ST
197022010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
19703
19704 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
19705 --target=drive output to Mach device name.
19706
0c8b61d8
BC
197072010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19708
19709 New Automake based build system for GRUB.
19710
19711 * ABOUT-NLS: New file.
19712 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
19713 in Makefile.util.def file.
19714 * Makefile.util.def: New file. Autogen build definitions file for
19715 GRUB host utils.
19716 * conf/Makefile.common: New file. Common variables for GRUB host
19717 utils and target modules.
19718 * conf/Makefile.extra-dist: New file. Extra files for make dist.
19719 * docs/Makefile.am: New file. Automake file for docs.
19720 * gentpl.py: New file. Python script to generate Autogen
19721 template.
19722 * grub-core/Makefile.am: New file. GRUB target modules' rules
19723 that doesn't fit in Makefile.core.def file.
19724 * grub-core/Makefile.core.def: New file. Autogen build
19725 definitions file for GRUB target modules.
19726 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
19727 specific setjmp.S file.
19728 * po/Makefile.am: New file.
19729
19730 * .bzrignore: New ignores.
19731 * INSTALL: New requirements, without Ruby.
19732 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
19733 * autogen.sh: Updated to invoke autogen as necessary.
19734 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
19735 and defines for Automake conditionals.
19736 * geninit.sh: Refactoring.
19737
19738 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
19739 necessary.
19740 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
19741 New prototype.
19742
19743 * include/grub/test.h: Fix functional test modules' naming.
19744 * grub-core/tests/example_functional_test.c: Fix test module name.
19745
19746 * util/misc.c: Hosted versions' of grub functions for libgrub.a
19747 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
19748 * util/grub-editenv.c: Likewise.
19749 * util/grub-fstest.c: Likewise.
19750 * util/grub-mkdevicemap.c: Likewise.
19751 * util/grub-mkfont.c: Likewise.
19752 * util/grub-mkimage.c: Likewise.
19753 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19754 * util/grub-probe.c: Likewise.
19755 * util/grub-script-check.c: Likewise.
19756 * util/i386/pc/grub-setup.c: Likewise.
19757 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19758
19759 * tests/util/grub-shell.in: Fix override directory path.
19760 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
19761 * util/import_gcry.py: Create Makefile.gcry.def file instead.
19762
19763 * util/lvm.c: Update #includes.
19764 * util/raid.c: Likewise.
19765 * util/resolve.c: Likewise.
19766 * grub-core/bus/emu/pci.c: Likewise.
19767 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
19768 * grub-core/lib/posix_wrap/string.h: Likewise.
19769 * grub-core/kern/emu/main.c: Likewise.
19770
19771 * grub-core/gensymlist.sh: New file. Script for generating kernel
19772 symbols file.
19773 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
19774
19775 * grub-core/gentrigtables.c: Fix unused variable warnings.
19776
19777 * Makefile.in: Removed.
19778 * conf/any-emu.rmk: Removed.
19779 * conf/common.rmk: Removed.
19780 * conf/i386-coreboot.rmk: Removed.
19781 * conf/i386-efi.rmk: Removed.
19782 * conf/i386-ieee1275.rmk: Removed.
19783 * conf/i386-multiboot.rmk: Removed.
19784 * conf/i386-pc.rmk: Removed.
19785 * conf/i386-qemu.rmk: Removed.
19786 * conf/i386.rmk: Removed.
19787 * conf/mips-yeeloong.rmk: Removed.
19788 * conf/mips.rmk: Removed.
19789 * conf/powerpc-ieee1275.rmk: Removed.
19790 * conf/sparc64-ieee1275.rmk: Removed.
19791 * conf/tests.rmk: Removed.
19792 * conf/x86-efi.rmk: Removed.
19793 * conf/x86_64-efi.rmk: Removed.
19794 * gendistlist.sh: Removed.
19795 * geninitheader.sh: Removed.
19796 * genkernsyms.sh.in: Removed.
19797 * genmk.rb: Removed.
19798 * gensymlist.sh.in: Removed.
19799 * mkinstalldirs: Removed.
19800 * boot: Moved ...
19801 * grub-core/boot: ... to here.
19802 * bus: Moved ...
19803 * grub-core/bus: ... to here.
19804 * commands: Moved ...
19805 * grub-core/commands: ... to here.
19806 * disk: Moved ...
19807 * grub-core/disk: ... to here.
19808 * efiemu: Moved ...
19809 * grub-core/efiemu: ... to here.
19810 * font: Moved ...
19811 * grub-core/font: ... to here.
19812 * fs: Moved ...
19813 * grub-core/fs: ... to here.
19814 * gencmdlist.sh: Moved ...
19815 * grub-core/gencmdlist.sh: ... to here.
19816 * genemuinit.sh: Moved ...
19817 * grub-core/genemuinit.sh: ... to here.
19818 * genemuinitheader.sh: Moved ...
19819 * grub-core/genemuinitheader.sh: ... to here.
19820 * genfslist.sh: Moved ...
19821 * grub-core/genfslist.sh: ... to here.
19822 * genhandlerlist.sh: Moved ...
19823 * grub-core/genhandlerlist.sh: ... to here.
19824 * genmoddep.awk: Moved ...
19825 * grub-core/genmoddep.awk: ... to here.
19826 * genmodsrc.sh: Moved ...
19827 * grub-core/genmodsrc.sh: ... to here.
19828 * genpartmaplist.sh: Moved ...
19829 * grub-core/genpartmaplist.sh: ... to here.
19830 * genparttoollist.sh: Moved ...
19831 * grub-core/genparttoollist.sh: ... to here.
19832 * genterminallist.sh: Moved ...
19833 * grub-core/genterminallist.sh: ... to here.
19834 * gentrigtables.c: Moved ...
19835 * grub-core/gentrigtables.c: ... to here.
19836 * genvideolist.sh: Moved ...
19837 * grub-core/genvideolist.sh: ... to here.
19838 * gettext: Moved ...
19839 * grub-core/gettext: ... to here.
19840 * gfxmenu: Moved ...
19841 * grub-core/gfxmenu: ... to here.
19842 * gnulib: Moved ...
19843 * grub-core/gnulib: ... to here.
19844 * hello: Moved ...
19845 * grub-core/hello: ... to here.
19846 * hook: Moved ...
19847 * grub-core/hook: ... to here.
19848 * io: Moved ...
19849 * grub-core/io: ... to here.
19850 * kern: Moved ...
19851 * grub-core/kern: ... to here.
19852 * lib: Moved ...
19853 * grub-core/lib: ... to here.
19854 * loader: Moved ...
19855 * grub-core/loader: ... to here.
19856 * mmap: Moved ...
19857 * grub-core/mmap: ... to here.
19858 * normal: Moved ...
19859 * grub-core/normal: ... to here.
19860 * partmap: Moved ...
19861 * grub-core/partmap: ... to here.
19862 * parttool: Moved ...
19863 * grub-core/parttool: ... to here.
19864 * script: Moved ...
19865 * grub-core/script: ... to here.
19866 * term: Moved ...
19867 * grub-core/term: ... to here
19868 * tests/example_functional_test.c: Moved ...
19869 * grub-core/tests/example_functional_test.c: ... to here.
19870 * tests/lib/functional_test.c: Moved ...
19871 * grub-core/tests/lib/functional_test.c: ... to here.
19872 * tests/lib/test.c: Moved ...
19873 * grub-core/tests/lib/test.c: ... to here.
19874 * video: Moved ...
19875 * grub-core/video: ... to here.
19876
645586e6
BC
198772010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19878
19879 Replace --enable-grub-emu-modules with grub-emu-lite.
19880
19881 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
19882 cache.S.
19883
19884 * include/grub/emu/misc.h (grub_emu_init): New prototype.
19885 * kern/emu/full.c: New file. For grub-emu specific initialization.
19886 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
19887 * kern/emu/main.c: Call initialization function grub_emu_init.
19888
19889 * Makefile.in: Include grub-emu-lite in install.
19890 * commands/parttool.c: Use grub_no_autoload to differentiate
19891 between grub-emu and grub-emu-lite.
19892 * include/grub/misc.h: New variable grub_no_autoload.
19893
19894 * conf/any-emu.rmk: New rules for grub-emu-lite.
19895 * configure.ac: Remove --enable-grub-emu-modules.
19896 * genmk.rb: Cleanup unnecessary rules.
19897 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
19898
19899 * normal/main.c: Don't load list files on grub-emu-lite.
19900 * util/misc.c (grub_arch_sync_caches): Removed.
19901
f86a4030
CW
199022010-08-23 Colin Watson <cjwatson@ubuntu.com>
19903
19904 * kern/mips/startup.S (grub_prefix): Update comment to refer to
19905 grub-mkimage rather than grub-mkelfimage.
19906 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
19907
06776944
VS
199082010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19909
19910 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
19911 a key after CapsLock or NumLock. It's just a qemu bug.
19912
df262419
VS
199132010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19914
19915 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
19916 needed by libusb wrapper.
19917
b40ea81b
ST
199182010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19919
19920 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
19921
dee50575
VS
199222010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
19925 --nounzip is passed.
19926
fb1d7b79
VS
199272010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
19928
19929 USB hotunplugging and USB serial support.
19930
19931 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
19932 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
19933 (grub_uhci_transfer): Respect timeout and set *actual.
19934 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
19935 non-standard length.
19936 (grub_usb_device_attach): Autoload modules.
19937 (GRUB_MOD_INIT): Set grub_term_poll_usb.
19938 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
19939 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
19940 users updated.
19941 (grub_usb_add_hub): Fill nports and children.
19942 (attach_root_port): Receive hub instead of controller.
19943 All users updated. Fill hub->devices.
19944 (grub_usb_root_hub): Allocate hub->devices.
19945 (detach_device): New function.
19946 (poll_nonroot_hub): Fill children and detach devices.
19947 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
19948 actual arguments. All users updated.
19949 (grub_usb_bulk_read_extended): New function.
19950 * bus/usb/serial/common.c: New file.
19951 * bus/usb/serial/ftdi.c: Likewise.
19952 * bus/usb/serial/pl2303.c: Likewise.
19953 * commands/terminal.c (handle_command): Support wildcard.
19954 * commands/usbtest.c: Output "Unknown" instead of empty string.
19955 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
19956 (usbserial_common_mod_SOURCES): New variable.
19957 (usbserial_common_mod_CFLAGS): Likewise.
19958 (usbserial_common_mod_LDFLAGS): Likewise.
19959 (pkglib_MODULES): Add usbserial_pl2303.mod.
19960 (usbserial_pl2303_mod_SOURCES): New variable.
19961 (usbserial_pl2303_mod_CFLAGS): Likewise.
19962 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19963 (pkglib_MODULES): Add usbserial_ftdi.mod.
19964 (usbserial_ftdi_mod_SOURCES): New variable.
19965 (usbserial_ftdi_mod_CFLAGS): Likewise.
19966 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19967 (pkglib_MODULES): Add serial.mod.
19968 (serial_mod_SOURCES): New variable.
19969 (serial_mod_CFLAGS): Likewise.
19970 (serial_mod_LDFLAGS): Likewise.
19971 * conf/i386-pc.rmk: Likewise.
19972 * conf/mips-yeeloong.rmk: Likewise.
19973 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19974 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19975 * disk/usbms.c (first_available_slot): New variable.
19976 (grub_usbms_attach): Don't reuse free slots due to potential cache
19977 problems.
19978 * include/grub/serial.h: Moved to ..
19979 * include/grub/ns8250.h: ...this.
19980 * include/grub/serial.h: New file.
19981 * include/grub/term.h (grub_term_poll_usb): New variable.
19982 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19983 readkey. All users updated.
19984 (grub_terminfo_output_state): Pass term to put.
19985 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19986 (grub_usb_controller_dev): Add timeout and actual arguments to
19987 transfer. All users updated.
19988 (grub_usb_interface): New field detach_data.
19989 (grub_usb_device): New fields children and nports.
19990 (grub_usb_ep_type_t): New type.
19991 (grub_usb_get_ep_type): New function.
19992 (grub_usb_bulk_read_extended): Likewise.
19993 * include/grub/usbdesc.h (grub_usb_desc): New type.
19994 * include/grub/usbserial.h: New file.
19995 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19996 * kern/term.c (grub_term_poll_usb): New variable.
19997 (grub_getkey): Call grub_term_poll_usb if set.
19998 (grub_checkkey): Likewise.
19999 (grub_getkeystatus): Likewise.
20000 * term/serial.c: Moved controller-specific parts to ...
20001 * term/ns8250.c: ... here.
20002 * term/serial.c: Mostly rewritten.
20003 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
20004 according to spec.
20005
21a313de
RM
200062010-08-20 Robert Millan <rmh@gnu.org>
20007
20008 Make kFreeBSD code more generic to support ext2fs as root, ufs as
20009 a separate module and maybe other interesting combinations.
20010
20011 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
20012 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
20013 (kfreebsd_entry): Add generic filesystem module load routine.
20014 Map GRUB `ext2' to kFreeBSD `ext2fs'.
20015
63c734a6
CW
200162010-08-20 Colin Watson <cjwatson@ubuntu.com>
20017
20018 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
20019 "numcenter" (I misunderstood the purpose of this entry).
20020 * docs/grub.texi (sendkey): Likewise.
20021
c4d16542
CW
200222010-08-20 Colin Watson <cjwatson@ubuntu.com>
20023
20024 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
20025 status flag options; simply omitting the option is equivalent and
20026 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
20027 (keysym_table): Rename "num5numlock" to "numlock".
20028 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
20029 can uniformly say that only the last of multiple `sendkey'
20030 invocations has any effect.
20031 * docs/grub.texi (sendkey): New section.
20032
93541d66
CW
200332010-08-19 Colin Watson <cjwatson@ubuntu.com>
20034
20035 * commands/i386/pc/sendkey.c (options): Fix three typos.
20036
b4ece5e1
VS
200372010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
20038
20039 Implement sendkey support.
20040
20041 * commands/i386/pc/sendkey.c: New file.
20042 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
20043 (sendkey_mod_SOURCES): New variable.
20044 (sendkey_mod_CFLAGS): Likewise.
20045 (sendkey_mod_LDFLAGS): Likewise.
20046
51f1f5af
CW
200472010-08-18 Colin Watson <cjwatson@ubuntu.com>
20048
20049 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
20050 fix warnings from Autoconf.
20051
9da94e05
CW
200522010-08-18 Colin Watson <cjwatson@ubuntu.com>
20053
20054 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
20055 to avoid false positives with some assemblers that output things
20056 like "someprefix_func" as part of their output.
20057
729a0f2e
RM
200582010-08-15 Robert Millan <rmh@gnu.org>
20059
20060 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
20061 errors.
20062 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
20063 grub_get_libzfs_handle() errors.
20064
f3710e08
RM
200652010-08-14 Robert Millan <rmh@gnu.org>
20066
20067 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
20068 filesystem is not ZFS.
20069
7a3c13de
BC
200702010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20071
20072 Fix for misspelled color names defaulting to black/black (bug
20073 reported by Doug Nazar)
20074
20075 * include/grub/normal.h (grub_parse_color_name_pair): Add return
20076 status to prototype.
20077 * normal/color.c (grub_parse_color_name_pair): Return failure
20078 status.
20079 (grub_env_write_color_normal): Ignore bad color names.
20080 (grub_env_write_color_highlight): Likewise.
20081 * normal/main.c (GRUB_MOD_INIT): Set default color names.
20082
ab8ba50d
BC
200832010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20084
20085 "shift" command support to GRUB script.
20086
20087 * include/grub/script_sh.h (grub_script_shift): New prototype.
20088 * script/execute.c (grub_script_shift): New function.
20089 * script/main.c (grub_script_init): Register shift command.
20090 (grub_script_fini): Unregister shift command.
20091 * util/grub-script-check.c (grub_script_cmd_shift): New function.
20092
20093 * tests/grub_script_shift.in: New testcase.
20094 * conf/tests.rmk: Rules for new testcase.
20095
4d61999e
BC
200962010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20097
20098 "continue" command support to GRUB script.
20099
20100 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
20101 (grub_script_break): Continue support.
20102 * script/main.c (grub_script_init): Register continue command.
20103 (grub_script_fini): Unregister continue command.
20104
20105 * tests/grub_script_continue.in: New testcase.
20106 * conf/tests.rmk: Rules for new testcase.
20107
4df51e00
BC
201082010-08-12 BVK Chaitanya <bvk@dbook>
20109
20110 "break" command support to GRUB script.
20111
20112 * conf/common.rmk: Rule updates to grub-script-check.
20113 * include/grub/misc.h (grub_min): New function.
20114 * include/grub/script_sh.h (grub_script_init): New prototype.
20115 (grub_script_fini): New prototype.
20116 (grub_script_break): New prototype.
20117 * script/main.c (grub_script_init): New function.
20118 (grub_script_fini): New function.
20119 * script/execute.c (grub_script_break): New function.
20120 * normal/main.c: Calls to grub_script_{init,fini}.
20121 * util/grub-script-check.c (grub_script_break): New function.
20122
20123 * tests/grub_script_break.in: New testcase.
20124 * conf/tests.rmk: Rules for new test case.
20125
f12c8420
BC
201262010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20127
20128 Function parameters support to GRUB script.
20129
20130 * script/yylex.l (VARIABLE): Regular expression update.
20131 * script/function.c (grub_script_function_call): Moved ...
20132 * script/execute.c (grub_script_function_call): ... to here.
20133 (grub_script_execute_arglist_to_argv): Removed.
20134 (grub_script_arglist_to_argv): New function.
20135 * script/argv.c: New file.
20136 (grub_script_argv_free): New function.
20137 (grub_script_argv_next): Likewise.
20138 (grub_script_argv_append): Likewise.
20139 (grub_script_argv_split_append): Likewise.
20140 * include/grub/script_sh.h (grub_script_argv): New struct.
20141 (grub_script_argv_free): New function.
20142 (grub_script_argv_next): Likewise.
20143 (grub_script_argv_append): Likewise.
20144 (grub_script_argv_split_append): Likewise.
20145
20146 * conf/common.rmk (normal.mod): New source script/argv.c.
20147
20148 * tests/grub_script_echo1.in: More tests.
20149 * tests/grub_script_vars1.in: Likewise.
20150 * tests/grub_script_functions.in: New test case.
20151 * conf/tests.rmk: Rules for new testcase.
20152
8022b748
BC
201532010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20154
20155 Remove grub_script_cmdblock struct.
20156
20157 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20158 * script/parser.y: Likewise.
20159 * script/execute.c: Rename cmdblock suffix to cmdlist.
20160 * script/script.c: Likewise.
20161 * util/grub-script-check.c: Likewise.
20162
79a6ba61
YB
201632010-08-11 Yves Blusseau <blusseau@zetam.org>
20164
20165 * .bzrignore: add grub-macho2img
20166
d04b9414
VS
201672010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20168
20169 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20170
f947ab49
VS
201712010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20172
20173 Remove the dump of sm712 initialisation sequence.
20174
20175 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20176 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20177 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20178 (GRUB_VGA_CR_*): Added many registers.
20179 (GRUB_VGA_SR_*): Likewise.
20180 (GRUB_VGA_GR_*): Likewise.
20181 (grub_vga_write_arx): New function.
20182 (grub_video_hw_config): New struct.
20183 (grub_vga_set_geometry): New function.
20184 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20185 GRUB_PCI_CLASS_SUBCLASS_VGA.
20186 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20187 * video/sm712.c (grub_sm712_write_reg): New function
20188 (grub_sm712_read_reg): Likewise.
20189 (grub_sm712_sr_write): Likewise.
20190 (grub_sm712_gr_write): Likewise.
20191 (grub_sm712_cr_write): Likewise.
20192 (grub_sm712_write_arx): Likewise.
20193 (grub_sm712_cr_shadow_write): Likewise.
20194 (grub_sm712_write_dda_lookup): Likewise.
20195 (grub_video_sm712_setup): Initialise the video rather then
20196 blindly replay the dump.
20197 (main) [TEST]: Add a routine to be able to compile as standalone for
20198 tests.
20199 * video/sm712_init.c (sm712_init): Removed.
20200 (sm712_sr_seq1): New array.
20201 (sm712_sr_seq2): Likewise.
20202
f0206638
VS
202032010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20204
20205 * include/grub/vga.h: Add missing grub/pci.h include.
20206
2764da3b
YB
202072010-08-10 Yves Blusseau <blusseau@zetam.org>
20208
20209 * util/grub-macho2img.c (main): fix typo
20210
cf0c775e
VS
202112010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20212
20213 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20214 (grub_vga_gr_read): Likewise.
20215 (grub_vga_cr_write): Likewise.
20216 (grub_vga_cr_read): Likewise.
20217 (grub_vga_sr_write): Likewise.
20218 (grub_vga_sr_read): Likewise.
20219 (grub_vga_palette_read): Likewise.
20220 (grub_vga_palette_write): Likewise.
20221 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20222 (grub_sm712_sr_read): New function.
20223 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20224 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20225
07f360e9
RM
202262010-08-09 Robert Millan <rmh@gnu.org>
20227
20228 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20229 out unused variables on non-ZFS build.
20230
346c2072
RM
202312010-08-08 Robert Millan <rmh@gnu.org>
20232
20233 Fix path generation for sub-filesystems in ZFS.
20234
20235 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20236 missing slash.
20237
71175420
RM
202382010-08-08 Robert Millan <rmh@gnu.org>
20239
20240 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20241
0d8286f3
RM
202422010-08-08 Robert Millan <rmh@gnu.org>
20243
20244 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20245 exist, issue a proper error message (rely on `ls' for translated
20246 strings).
20247
55dd2924
RM
202482010-08-08 Robert Millan <rmh@gnu.org>
20249
20250 Fix grub-probe invocation.
20251
20252 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20253
d3dd9e80
RM
202542010-08-04 Robert Millan <rmh@gnu.org>
20255
20256 * configure.ac: Remove checks for getfsstat() and getmntany().
20257 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20258 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20259 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20260 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20261 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20262 function.
20263 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20264 via find_mount_point_from_dir() and getfsstat() / getmntany().
20265
0de22aa9
RM
202662010-08-04 Robert Millan <rmh@gnu.org>
20267
20268 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20269 (grub_find_zpool_from_mount_point): Merge into ...
20270 (grub_find_zpool_from_dir): ... this.
20271 * kern/emu/misc.c: Likewise.
20272
20273 * kern/emu/misc.c
20274 (grub_make_system_path_relative_to_its_root): Replace
20275 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20276 with grub_find_zpool_from_dir().
20277 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20278
62858144
RM
202792010-08-04 Robert Millan <rmh@gnu.org>
20280
20281 Support OpenSolaris in ZFS device resolution.
20282
20283 * configure.ac: Check for getmntany().
20284 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20285 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20286 support.
20287
9dd6fd50
RM
202882010-08-03 Robert Millan <rmh@gnu.org>
20289
20290 Fix grub-emu build.
20291
20292 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20293 * include/grub/emu/misc.h: ... here.
20294
20295 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20296 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20297
20298 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20299 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20300 (grub_get_libzfs_handle): Move to ...
20301 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20302 (grub_get_libzfs_handle): ... here.
20303
c9f7ff97
BC
203042010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20305
20306 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20307 as command name case.
20308
a870a783
CW
203092010-08-02 Colin Watson <cjwatson@ubuntu.com>
20310
20311 * disk/raid.c (insert_array): Select unique numbers for named arrays
20312 as well, for use as keys in the disk cache.
20313
c7db243b
RM
203142010-08-01 Robert Millan <rmh@gnu.org>
20315
20316 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20317 kFreeBSD device name, except on ZFS where the filesystem label is
20318 used.
20319 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20320 `/boot/zfs/zpool.cache'.
20321 Set mountfrom kernel variable using ${kfreebsd_device}.
20322
f7abdefb
RM
203232010-08-01 Robert Millan <rmh@gnu.org>
20324
20325 Make it even harder to use uninitialized `libzfs_handle' (and
20326 make the interface a bit simpler).
20327
20328 * include/grub/util/misc.h (grub_util_init_libzfs)
20329 (libzfs_handle): Remove.
20330 (grub_get_libzfs_handle): New prototype.
20331
20332 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20333 attribute.
20334 (grub_util_init_libzfs): Remove.
20335 (grub_get_libzfs_handle): New function.
20336
20337 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20338 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20339 accessing `libzfs_handle' directly.
20340
c882acc0
RM
203412010-08-01 Robert Millan <rmh@gnu.org>
20342
20343 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20344 (grub_find_zpool_from_mount_point): New function prototypes.
20345
20346 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20347 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20348
20349 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20350 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20351 `static' attribute.
20352
20353 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20354 finding zpool from mount point into ...
20355 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20356
20357 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20358 requested path is part of a ZFS pool, use
20359 grub_find_zpool_from_mount_point() to detect its filesystem name,
20360 and generate a path with `/fsname@path' syntax.
20361
8bfe31d8
CW
203622010-08-01 Colin Watson <cjwatson@ubuntu.com>
20363
20364 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20365 (void) rather than () so that this is a proper prototype.
20366
553df63d
VS
203672010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20368
20369 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20370
8687cf07
VS
203712010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20372
20373 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20374 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20375
ea9be8ea
CW
203762010-08-01 Colin Watson <cjwatson@ubuntu.com>
20377
20378 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20379
6eea041a
CW
203802010-08-01 Colin Watson <cjwatson@ubuntu.com>
20381
20382 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20383
2cfb45df
CW
203842010-08-01 Colin Watson <cjwatson@ubuntu.com>
20385
20386 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20387 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20388 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20389 disable gfxpayload.
20390 (Shell-like scripting): Add real content.
20391 (Serial terminal): Suggest `terminal_input serial; terminal_output
20392 serial' rather than putting the two commands on separate lines,
20393 since console input will be inoperative after the first command.
20394 (menuentry): Document --class, --users, and --hotkey options.
20395 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20396 Vladimir Serbinenko).
20397
7decd202
VS
203982010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
203992010-08-01 Colin Watson <cjwatson@ubuntu.com>
20400
20401 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20402
c882acc0
RM
204032010-08-01 Robert Millan <rmh@gnu.org>
20404
20405 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20406 (grub_find_zpool_from_mount_point): New function prototypes.
20407
20408 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20409 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20410
20411 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20412 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20413 `static' attribute.
20414
20415 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20416 finding zpool from mount point into ...
20417 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20418
20419 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20420 requested path is part of a ZFS pool, use
20421 grub_find_zpool_from_mount_point() to detect its filesystem name,
20422 and generate a path with `/fsname@path' syntax.
20423
deb0caa3
RM
204242010-08-01 Robert Millan <rmh@gnu.org>
20425
20426 Prevent accidental use of uninitialized libzfs_handle.
20427
20428 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20429 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20430 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20431
ce04ef47
CW
204322010-08-01 Colin Watson <cjwatson@ubuntu.com>
20433
20434 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20435 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20436
ebf53056
RM
204372010-08-01 Robert Millan <rmh@gnu.org>
20438
20439 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 20440
3710bb6b
RM
204412010-07-31 Robert Millan <rmh@gnu.org>
20442
20443 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
20444
8072efeb
RM
204452010-07-31 Robert Millan <rmh@gnu.org>
20446
20447 * kern/emu/misc.c: Add missing license header.
20448
3169f4c7
RM
204492010-07-31 Robert Millan <rmh@gnu.org>
20450
20451 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
20452
20453 * include/grub/util/libnvpair.h: Include `<config.h>'.
20454 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
20455 declaring libnvpair prototypes ourselves.
20456 * include/grub/util/libzfs.h: Include `<config.h>'.
20457 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
20458 declaring libzfs prototypes ourselves.
20459
20460 (libzfs_handle): Moved to ...
20461 * include/grub/util/misc.h (libzfs_handle): ... here.
20462 Include `<grub/util/libzfs.h>'.
20463
c9a00aee
RM
204642010-07-30 Robert Millan <rmh@gnu.org>
20465
20466 * include/grub/emu/misc.h: Add missing license header.
20467
a184f9c8
RM
204682010-07-30 Robert Millan <rmh@gnu.org>
20469
20470 Enable `grub-probe -t device' resolution on ZFS.
20471
20472 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
20473 * include/grub/util/libnvpair.h: New file.
20474 * include/grub/util/libzfs.h: New file.
20475
20476 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
20477 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
20478 `<grub/util/libnvpair.h>'.
20479 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
20480
20481 (find_mount_point_from_dir): New static function.
20482 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
20483 function.
20484 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
20485 find_root_device_from_libzfs() before ressorting to find_root_device().
20486
20487 * include/grub/util/misc.h (grub_util_init_libzfs): New function
20488 prototype.
20489 * util/misc.c: Include `<grub/util/libzfs.h>'.
20490 (grub_util_init_libzfs): New function.
20491 [HAVE_LIBZFS] (libzfs_handle): New global variable.
20492 [HAVE_LIBZFS] (fini_libzfs): New static function.
20493 (grub_util_init_libzfs): New function.
20494 * util/grub-probe.c (main): Call grub_util_init_libzfs().
20495
f7790cdd
RM
204962010-07-30 Robert Millan <rmh@gnu.org>
20497
20498 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
20499 (xmalloc, xrealloc, xstrdup, xasprintf): Add
20500 `warn_unused_result' attribute.
20501 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
20502 (grub_xasprintf, grub_xvasprintf): Likewise.
20503 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
20504
0806b63c
RM
205052010-07-29 Robert Millan <rmh@gnu.org>
20506
20507 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
20508 (probe): Handle `PRINT_FS_LABEL'.
20509 (main): Handle `-t fs_label'.
20510
9f841f5c
RM
205112010-07-29 Robert Millan <rmh@gnu.org>
20512
20513 * configure.ac: Remove grub-mkisofs checks.
20514
46371121
VS
205152010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20516
20517 * util/ieee1275/grub-install.in: Don't use empty grub_device.
20518 Reported by: Lennart Sorensen.
20519
205202010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20521
20522 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
20523 prior to terminal_input/terminal_output separation. It's been over 1.5
20524 years and those versions weren't widely deployed.
20525
a9600892
CW
205262010-07-22 Colin Watson <cjwatson@ubuntu.com>
20527
20528 * disk/raid.c (insert_array): Don't count named arrays when looking
20529 for unused array numbers.
697e053c 20530 Reported and tested by: Michael Guntsche.
a9600892 20531
c03507df
CW
205322010-07-20 Colin Watson <cjwatson@ubuntu.com>
20533
20534 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
20535 implementation of this so that grub-emu links again, with a note
20536 that this should support hotplugging in the future.
20537
b26f1c11
CW
205382010-07-20 Colin Watson <cjwatson@ubuntu.com>
20539
20540 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20541
efc9d7f1
CW
205422010-07-20 Colin Watson <cjwatson@ubuntu.com>
20543
20544 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
20545 handle on failure.
20546 (grub_loopback_close): Remove empty function.
20547 (grub_loopback_dev): Remove close method.
20548
dd8ff5c9
CW
205492010-07-20 Colin Watson <cjwatson@ubuntu.com>
20550
20551 Disable EFI cursor when the EFI console becomes inactive.
20552
20553 * term/efi/console.c (grub_efi_console_init): New function.
20554 (grub_efi_console_fini): New function.
20555 (grub_console_term_output): Register init and fini methods.
20556
5e3bec67
VS
205572010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20558
20559 * tests/util/grub-shell-tester.in: Remove bashism and declare as
20560 sh script.
20561
afaec079
VS
205622010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 * disk/loopback.c (grub_loopback): Replace filename with file.
20565 (delete_loopback): Handle new semantics.
20566 (grub_cmd_loopback): Likewise.
20567 (grub_loopback_iterate): Likewise.
20568 (grub_loopback_close): Likewise.
20569
a6a11f3c
VS
205702010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20571
20572 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
20573 with -p "".
20574 Reported by: Tito Keitel.
20575
64a638b0
VS
205762010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20577
20578 * docs/grub.texi (Naming convention): Document new naming convention.
20579
ab8ba957
VS
205802010-07-20 Vadim Solomin <vadic052@gmail.com>
205812010-07-20 Colin Watson <cjwatson@ubuntu.com>
20582
20583 Generate device.map in something closer to the old ordering.
20584
20585 * util/deviceiter.c (struct device): New declaration.
20586 (compare_file_names): Rename to ...
20587 (compare_devices): ... this. Sort by kernel name in preference to
20588 the stable by-id name, but keep the latter as a fallback comparison.
20589 Update header comment.
20590 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
20591 of `struct device' rather than of plain file names.
20592
a29d6a4b
TF
205932010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
20594
20595 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
20596 on i386.
20597
39d824e8
VS
205982010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20599
20600 * commands/acpi.c (setup_common_tables): Use sizeof instead of
20601 hardcoding size.
20602 (setv1table): Likewise.
20603
f058276b
FZ
206042010-07-20 Colin Watson <cjwatson@ubuntu.com>
20605
20606 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
20607 removing the homehost if present.
20608 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
20609 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
20610 removing the homehost if present.
20611 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
20612 if possible.
20613 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
20614
20615 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
20616 parameter. Set its pointer target to 0.
20617 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
20618 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
20619 `data_offset' value from the superblock for 1.x metadata.
20620 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
20621 data on the device.
20622 (insert_array): Record the start sector of data on the device.
20623 (grub_raid_register): Pass start_sector parameters to
20624 grub_raid_list->detect and insert_array.
20625 * include/grub/raid.h (struct grub_raid_array): Add start_sector
20626 member.
20627 (struct grub_raid): Add start_sector parameter to `detect'.
20628
20629 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
20630 __attribute__ ((packed)), leaving a comment.
20631 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
20632 (grub_mdraid_detect_09): ... here and ...
20633 (grub_mdraid_detect_1x): ... here.
20634
206352010-07-20 Peter Henn <peter.henn@web.de>
20636
20637 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
20638 chunk size and disk size, which are already given as sector counts
20639 as distinct from the 0.90 units. Fetch the correct device number
20640 from the role table instead of using the table index.
20641
206422010-07-20 Felix Zielcke <fzielcke@z-51.de>
20643
20644 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
20645 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
20646 (WriteMostly1): New macro.
20647 Set array->name to NULL for metadata format 0.90. Add support for
20648 metadata 1.x. Fix some comments.
20649 * disk/raid.c (): Add support for name based RAID arrays. Fix a
20650 few comments.
20651 * util/getroot.c (grub_util_get_grub_dev): Add support for
20652 /dev/md/name style devices.
20653
4b761da9
CW
206542010-07-20 Colin Watson <cjwatson@ubuntu.com>
20655
20656 * .bzrignore: Ignore 20_linux_xen.
20657
5771289a
CW
206582010-07-17 Colin Watson <cjwatson@ubuntu.com>
20659
20660 * util/import_unicode.py: Remove unnecessary imports.
20661
5dab68df
AN
206622010-07-17 Aleš Nesrsta <starous@volny.cz>
20663
20664 Hotplugging and USB hub support.
20665
20666 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
20667 (grub_ohci): Likewise.
20668 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
20669 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
20670 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
20671 (GRUB_OHCI_CTRL_EDS): Likewise.
20672 (GRUB_OHCI_BULK_EDS): Likewise.
20673 (GRUB_OHCI_TDS): Likewise.
20674 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
20675 (grub_ohci_ed_phys2virt): New function.
20676 (grub_ohci_virt_to_phys): Likewise.
20677 (grub_ohci_td_phys2virt): Likewise.
20678 (grub_ohci_td_virt2phys): Likewise.
20679 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
20680 attachment.
20681 (grub_ohci_find_ed): New function.
20682 (grub_ohci_alloc_td): Likewise.
20683 (grub_ohci_free_td): Likewise.
20684 (grub_ohci_free_tds): Likewise.
20685 (grub_ohci_transfer): Use previously allocated memory.
20686 (grub_ohci_portstatus): Reset status changed bit.
20687 (grub_ohci_detect_dev): Supply status changed.
20688 (grub_ohci_fini_hw): Free memory.
20689 (grub_ohci_restore_hw): Reallocate memory.
20690 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
20691 Reset status change.
20692 (grub_uhci_detect_dev): Supply status_change.
20693 * bus/usb/usb.c (attach_hooks): New var.
20694 (grub_usb_device_attach): New function.
20695 (grub_usb_register_attach_hook_class): Likewise.
20696 (grub_usb_unregister_attach_hook_class): Likewise.
20697 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
20698 (grub_usb_add_hub): Reset connection changed bit.
20699 (attach_root_port): New function.
20700 (grub_usb_root_hub): Likewise.
20701 (poll_nonroot_hub): Likewise.
20702 (grub_usb_poll_devices): Likewise.
20703 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
20704 * disk/usbms.c (grub_usbms_open): Use device hooks.
20705 (grub_usbms_iterate) :Poll devices.
20706 (grub_usbms_finddevs): Split into ...
20707 (grub_usbms_attach): ... this ...
20708 (grub_usbms_attach): ... and this.
20709 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
20710 in detect_dev.
20711 (grub_usb_interface): New fields attached and detach_hook.
20712 (grub_usb_attach_hook_class): New type.
20713 (grub_usb_attach_desc): New struct.
20714 (grub_usb_register_attach_hook_class): New function.
20715 (grub_usb_unregister_attach_hook_class): Likewise.
20716 (grub_usb_poll_devices): Likewise.
20717 (grub_usb_device_attach): Likewise.
20718 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
20719 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
20720
3222efaf
VS
207212010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
20724 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
20725 delta determination style. Works with most NetBSD partitions too.
20726
139b714a
VS
207272010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
20730 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
20731
986aad56
VS
207322010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
20735
99be513c
AB
207362010-07-14 Anton Blanchard <anton@samba.org>
20737
20738 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
20739 ET_DYN files.
20740
18075f62
GS
207412010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20742
20743 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
20744
8d9a5b15
GS
207452010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20746
20747 * kern/partition.c (grub_partition_check_containment): New function to
20748 check that a partition is physically contained in a parent. Since
20749 offsets are relative (and non-negative), this reduces to checking that
20750 the partition ends before its parent.
20751 (grub_partition_map_probe): Discard out-of-range sub-partitions.
20752 (grub_partition_iterate): Likewise.
20753 * include/grub/partition.h (grub_partition_map): Slightly more detailed
20754 comments.
20755 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
20756 partitions that start before their parent, and add debug printfs.
20757
19563c25
CW
207582010-07-13 Colin Watson <cjwatson@ubuntu.com>
20759
20760 * Makefile.in (.SUFFIX): Spell correctly, as ...
20761 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
20762 bare module name without `.mod', e.g. `test') tried to invoke a
20763 Modula-2 compiler.
20764
1a1f1e67
CW
207652010-07-13 Colin Watson <cjwatson@ubuntu.com>
20766
20767 * README: Point to the Info manual.
20768
811b0dca
JS
207692010-07-13 Jiro SEKIBA <jir@unicus.jp>
20770
20771 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
20772 2nd superblock position from partition size.
20773
e4f4eafc
CW
207742010-07-10 Colin Watson <cjwatson@ubuntu.com>
20775
20776 * Makefile.in (MAINTAINER_CLEANFILES): Remove
20777 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
20778 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
20779 outputs.
20780
4274c30f
VS
207812010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20782
20783 Restructure SCSI .id handling.
20784 Reported and tested by: Aleš Nesrsta.
20785
20786 * disk/ata.c (grub_atapi_close): Removed. All users updated.
20787 (grub_atapi_dev): Changed .name to "ata". New field .id.
20788 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
20789 (grub_usbms_dev): New field .id.
20790 * disk/scsi.c (grub_scsi_iterate): Generate name.
20791 (grub_scsi_open): Parse name.
20792 * include/grub/scsi.h (grub_make_scsi_id): New function.
20793 (grub_scsi_dev): Change iterate and open to number instead of naming
20794 busses. All users updated.
20795 (grub_scsi): Remove name. Add .bus.
20796
5bc24388
VS
207972010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20798
20799 * commands/help.c (grub_cmd_help): Fix a typo.
20800
249975ba
VS
208012010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20802
20803 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
20804 Reported and tested by: Colin Watson.
20805
3eaac1a1
VS
208062010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20807
20808 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
20809 in this context.
20810
becce1b1
VS
208112010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
20812
20813 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
20814
f7bf0918
CW
208152010-07-07 Colin Watson <cjwatson@ubuntu.com>
20816
20817 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
20818 indentation.
20819
0b0f9620
CW
208202010-07-06 Colin Watson <cjwatson@ubuntu.com>
20821
20822 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
20823 and disk/raid6_recover.c.
20824 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20825 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
20826
1e545469
CW
208272010-07-06 Colin Watson <cjwatson@ubuntu.com>
20828
20829 * term/gfxterm.c (repaint_schedulded): Rename to ...
20830 (repaint_scheduled): ... this. Update all callers.
20831 (repaint_was_schedulded): Rename to ...
20832 (repaint_was_scheduled): ... this. Update all callers.
20833
5357687a
CW
208342010-07-06 Colin Watson <cjwatson@ubuntu.com>
20835
20836 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
20837 which we expect to be handled by upper layers.
20838
29d7e783
BC
208392010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
20840
20841 * bus/usb/usbhub.c: #include time.h header.
20842
37582066
CW
208432010-07-06 Colin Watson <cjwatson@ubuntu.com>
20844
20845 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
20846 entry_name also for entries without stat blocks (e.g. ".."); fixes
20847 corruption of the first entry in a directory.
20848
c8c06953
CW
208492010-07-06 Colin Watson <cjwatson@ubuntu.com>
20850
20851 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
20852 after setting gfxterm as the active terminal. GRUB_BACKGROUND
20853 doesn't work otherwise.
20854
e75056f1
CW
208552010-07-05 Colin Watson <cjwatson@ubuntu.com>
20856
20857 * docs/grub.texi (Features): Update list of supported file systems.
20858 (GNU/Linux): Update for GRUB 2.
20859 (Serial terminal): Remove mention of --disable-serial, which was a
20860 GRUB Legacy configure option. Update instructions to use
20861 `terminal_input' and `terminal_output' rather than `terminal'.
20862 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
20863 configuration' and `Installing GRUB using grub-install'.
20864 (Menu entry editor): Update for GRUB 2.
20865 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
20866 Document new -a, -u, and -v options.
20867 (initrd): New section.
20868 (initrd16): New section.
20869 (linux): New section.
20870 (linux16): New section.
20871 (search): The `var' argument to `--set' is optional.
20872 (GRUB only offers a rescue shell): Go into a little more detail on
20873 drive ordering.
20874
5cf69151
CW
208752010-07-05 Colin Watson <cjwatson@ubuntu.com>
20876
20877 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
20878
e3f90044
CW
208792010-07-05 Colin Watson <cjwatson@ubuntu.com>
20880
20881 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
20882 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
20883
38d8f4f3
CW
208842010-07-05 Colin Watson <cjwatson@ubuntu.com>
20885
20886 * util/i386/pc/grub-setup.c (setup): Rename prefix to
20887 install_prefix, in line with install_dos_part and install_bsd_part.
20888 Add new prefix variable, which is copied to install_prefix after
20889 comparing core.img in memory with the one read from disk in the
20890 no-embedding case, and use that rather than overwriting
20891 install_prefix immediately when installing to a partition.
20892 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
20893 Bicakci.
20894
57ebd41e
GS
208952010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20896
20897 * configure.ac: Avoid == in test command, it's not portable.
20898 * util/grub.d/30_os-prober.in: Likewise.
20899
cb7f64b2
CW
209002010-07-04 Colin Watson <cjwatson@ubuntu.com>
20901
20902 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
20903
6b654bb0
GS
209042010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20905
20906 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
20907 multiple (top-level) partmaps.
20908
72a2026d
VS
209092010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20910
20911 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 20912 Reported by: Tino Keitel.
72a2026d 20913
df3eb88f
VS
209142010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20915
20916 Bidi and diacritics support.
20917
20918 * Makefile.in (widthspec.bin): New target.
20919 (widthspec.h): Likewise.
20920 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
20921 * autogen.sh: Generate unidata.c.
20922 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
20923 * commands/ls.c (grub_ls_list_devices): Likewise.
20924 (grub_ls_list_files): Likewise.
20925 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
20926 (grub_mini_cmd_lsmod): Likewise.
20927 * commands/read.c: Likewise.
20928 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
20929 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
20930 * lib/arg.c (grub_arg_show_help): Likewise.
20931 * lib/crypto.c (grub_password_get): Likewise.
20932 * normal/auth.c (grub_username_get): Likewise.
20933 * normal/misc.c (grub_normal_print_device_info): Likewise.
20934 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
20935 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
20936 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
20937 (normal/charset.c_DEPENDENCIES): New variable.
20938 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
20939 (pkglib_MODULES): Remove charset.mod.
20940 (charset_mod_SOURCES): Removed.
20941 (charset_mod_CFLAGS): Likewise.
20942 (charset_mod_LDFLAGS): Likewise.
20943 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
20944 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
20945 and term/tparm.c.
20946 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20947 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20948 (kernel_img_HEADERS): Add terminfo.h.
20949 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
20950 Fill ->font. Reverse ascii bitmaps.
20951 (grub_font_get_xheight): New function.
20952 * font/font.c (grub_font_get_string_width): Moved from here ...
20953 * gfxmenu/font.c (grub_font_get_string_width): ... here.
20954 * font/font.c (grub_font_draw_string): Moved from here ...
20955 * gfxmenu/font.c (grub_font_draw_string): ... here.
20956 * font/font.c (grub_font_dup_glyph): New function.
20957 (grub_font_blit_glyph): Likewise.
20958 (grub_font_blit_glyph_mirror): Likewise.
20959 (blit_comb): Likewise.
20960 (grub_font_construct_dry_run): Likewise.
20961 (grub_font_get_constructed_device_width): Likewise.
20962 (grub_font_construct_glyph): Likewise.
20963 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20964 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20965 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20966 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20967 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20968 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20969 (grub_font_get_xheight): New proto.
20970 (grub_font_get_constructed_device_width): Likewise.
20971 (grub_font_construct_glyph): Likewise.
20972 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20973 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20974 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20975 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20976 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20977 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20978 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20979 (grub_console_getcharwidth): Likewise.
20980 * include/grub/misc.h (grub_xputs): New proto.
20981 (grub_puts): Inlined.
20982 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20983 (grub_normal_get_line_counter): Removed.
20984 (grub_install_newline_hook): Likewise.
20985 (grub_normal_get_char_counter): New proto.
20986 (grub_normal_reset_more): Likewise.
20987 (grub_xputs_normal): Likewise.
20988 * include/grub/powerpc/ieee1275/console.h: Removed.
20989 * include/grub/sparc64/ieee1275/console.h: Likewise.
20990 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20991 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20992 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20993 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20994 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20995 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20996 (grub_term_input): Pass reference to self. All users updated.
20997 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20998 Pass reference to self. New fields normal_color, highlight_color and
20999 data. All users updated.
21000 (grub_putchar): Removed.
21001 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
21002 (grub_unicode_estimate_width): New function.
21003 (grub_term_getcharwidth): Add defaults.
21004 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
21005 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
21006 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
21007 (grub_cls): Remove EXPORT_FUNC.
21008 (grub_setcolorstate): Inline.
21009 (grub_newline_hook): Removed.
21010 * include/grub/terminfo.h: Rewritten. All users updated.
21011 * include/grub/unicode.h: New file.
21012 * include/grub/video.h (grub_video_signed_rect): New type.
21013 * kern/emu/console.c (grub_console_highlight_color): Removed.
21014 (grub_console_normal_color): Likewise.
21015 (grub_console_standard_color): Made static.
21016 (grub_ncurses_putchar): Remove mapping.
21017 (grub_ncurses_getcharwidth): Removed.
21018 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21019 (grub_ncurses_setcolor): Removed.
21020 (grub_ncurses_getcolor): Likewise.
21021 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
21022 (grub_console_putchar): ... this.
21023 (grub_console_putchar): Handle argument difference.
21024 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
21025 console_init_early and console_init_lately.
21026 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
21027 * kern/misc.c (grub_puts): Removed.
21028 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
21029 (grub_vsnprintf_real): Remove str = NULL support.
21030 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
21031 * normal/charset.c (grub_utf8_to_ucs4): ... here.
21032 * kern/term.c (grub_putcode): Renamed to ...
21033 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
21034 (grub_putchar): Removed.
21035 (grub_xputs_dumb): New function.
21036 (grub_xputs): New variable.
21037 * lib/charset.c: Move from here ...
21038 * normal/charset.c: ... to here.
21039 (grub_ucs4_to_utf8): New function.
21040 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
21041 (join_types): New variable.
21042 (unpack_join): New function.
21043 (bidi_types): New variable.
21044 (unpack_bidi): New function.
21045 (get_bidi_type): Likewise.
21046 (get_join_type): Likewise.
21047 (is_mirrored): Likewise.
21048 (grub_unicode_get_comb_type): Likewise.
21049 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
21050 (is_type_after): Likewise.
21051 (grub_unicode_aglomerate_comb): Likewise.
21052 (bidi_line_wrap): Likewise.
21053 (grub_bidi_line_logical_to_visual): Likewise.
21054 (grub_bidi_logical_to_visual): Likewise.
21055 (grub_unicode_mirror_code): Likewise.
21056 (grub_unicode_shape_code): Likewise.
21057 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
21058 Don't use grub_putchar.
21059 * normal/main.c (grub_normal_init_page): Use grub_putcode.
21060 (grub_normal_reader_init): Likewise.
21061 (grub_xputs_saved): New variable.
21062 (GRUB_MOD_INIT): Set grub_xputs.
21063 (GRUB_MOD_FINI): Restore grub_xputs.
21064 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
21065 (menu_init): Avoid printing gfxmenu error.
21066 (show_menu): Use grub_normal_get_char_counter.
21067 * normal/menu_entry.c (update_screen): Fix out-of-array.
21068 (complete): Avoid NULL dereferencing.
21069 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
21070 * normal/menu_text.c (print_spaces): Removed.
21071 (grub_print_ucs4): Likewise.
21072 (grub_print_message_indented): Use grub_print_ucs4.
21073 (print_message): Use grub_putcode.
21074 (print_entry): Hanlde diacritics.
21075 * normal/term.c (term_state): New type.
21076 (grub_more_lines): Removed.
21077 (term_states): New variable.
21078 (grub_normal_line_counter): Renamed to ..
21079 (grub_normal_char_counter): ...this. All users updated.
21080 (grub_normal_get_line_counter): Renamed to ...
21081 (grub_normal_get_char_counter): ... this.
21082 (grub_normal_reset_more): New function.
21083 (process_newline): Removed.
21084 (print_more): New function.
21085 (grub_install_newline_hook): Removed.
21086 (map_code): New function.
21087 (grub_puts_terminal): Use grub_print_ucs4.
21088 (putglyph): New function.
21089 (putcode_real): Likewise.
21090 (grub_putcode): Use putcode_real.
21091 (get_maxwidth): New function.
21092 (get_startwidth): Likewise.
21093 (print_ucs4_terminal): Likewise.
21094 (find_term_state): Likewise.
21095 (put_glyphs_terminal): Likewise.
21096 (print_backlog): Likewise.
21097 (print_ucs4_real): Likewise.
21098 (grub_print_ucs4): Likewise.
21099 (grub_xputs_normal): Likewise.
21100 * term/efi/console.c (grub_console_putchar): Output diacritics.
21101 (grub_console_getcharwidth): Removed.
21102 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21103 * term/gfxterm.c (clear_char): Free chars.
21104 (scroll_up): Avoid leaking memory.
21105 (grub_gfxterm_putchar): Support diacritics.
21106 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21107 * term/i386/pc/console.c (grub_console_term_output): Declare as
21108 GRUB_TERM_CODE_TYPE_VGA.
21109 * term/i386/pc/vga.c (grub_vga_term): Declare as
21110 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
21111 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
21112 GRUB_TERM_CODE_TYPE_VGA.
21113 * term/i386/vga_common.c (map_char): Removed.
21114 (grub_console_putchar): Likewise.
21115 (grub_console_getcharwidth): Likewise.
21116 * term/ieee1275/ofconsole.c: Simplify using terminfo.
21117 (colors): Reordered to match terminfo.
21118 (grub_ofconsole_normal_color): Removed.
21119 (grub_ofconsole_writeesc): Likewise.
21120 (grub_ofconsole_highlight_color): Likewise.
21121 (grub_ofconsole_getcharwidth): Likewise.
21122 (grub_ofconsole_setcolorstate): Likewise.
21123 (grub_ofconsole_setcolor): Likewise.
21124 (grub_ofconsole_getcolor): Likewise.
21125 (grub_ofconsole_readkey): Renamed to ...
21126 (readkey): ... this. Remove escape sequence handling. Return -1 on no
21127 key.
21128 (grub_ofconsole_checkkey): Removed.
21129 (grub_ofconsole_getkey): Likewise.
21130 (grub_ofconsole_getxy): Likewise.
21131 (grub_ofconsole_gotoxy): Likewise.
21132 (grub_ofconsole_cls): Likewise.
21133 (grub_ofconsole_refresh): Likewise.
21134 (grub_ofconsole_terminfo_input): New struct.
21135 (grub_ofconsole_terminfo_output): Likewise.
21136 (grub_ofconsole_term_input): Use terminfo.
21137 (grub_ofconsole_term_output): Likewise.
21138 (grub_console_init): Split into ...
21139 (grub_console_init_early): ...this and ...
21140 (grub_console_init_lately): ...this. Use terminfo.
21141 (grub_ofconsole_putchar): Renamed to ...
21142 (put): ... this. Remove mapping.
21143 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21144 * term/serial.c: Simplify using terminfo.
21145 (xpos): Removed.
21146 (ypos): Likewise.
21147 (keep_track): Likewise.
21148 (registered): Likewise.
21149 (input_buf): Likewise.
21150 (npending): Likewise.
21151 (serial_translate_key_sequence): Likewise.
21152 (fill_input_buf): Likewise.
21153 (grub_serial_checkkey): Likewise.
21154 (grub_serial_getkey): Likewise.
21155 (grub_serial_getxy): Likewise.
21156 (grub_serial_gotoxy): Likewise.
21157 (grub_serial_putchar): Likewise.
21158 (grub_serial_cls): Likewise.
21159 (grub_serial_setcolorstate): Likewise.
21160 (grub_serial_setcursor): Likewise.
21161 (serial_hw_init): Use serial_hw_fetch.
21162 (grub_serial_terminfo_input): New variable.
21163 (grub_serial_terminfo_output): Likewise.
21164 (grub_serial_term_input): Use terminfo.
21165 (grub_serial_term_output): Likewise.
21166 * term/terminfo.c (putstr): Use put.
21167 (grub_terminfo_all_free): New function
21168 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21169 (grub_terminfo_output_register): New function.
21170 (grub_terminfo_output_unregister): Likewise.
21171 (grub_terminfo_getxy): Likewise.
21172 (grub_terminfo_readkey): Likewise.
21173 (grub_terminfo_checkkey): Likewise.
21174 (grub_terminfo_getkey): Likewise.
21175 (grub_terminfo_input_init): Likewise.
21176 (print_terminfo): Likewise.
21177 (grub_cmd_terminfo): Handle encoding.
21178 (grub_terminfo_gotoxy): Track position.
21179 (grub_terminfo_cls): Likewise.
21180 (grub_terminfo_putchar): Likewise.
21181 (grub_terminfo_setcolorstate): Handle colors
21182 (grub_terminfo_cursor_on): This ...
21183 (grub_terminfo_cursor_off): ... and this merged into ...
21184 (grub_terminfo_setcursor): ... this.
21185 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21186 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21187 * unicode/BidiMirroring.txt: Likewise.
21188 * unicode/UnicodeData.txt: Likewise.
21189 * unicode/COPYING: Likewise.
21190 * util/grub-editenv.c (grub_putchar): Removed.
21191 (grub_xputs_real): New function.
21192 (grub_xputs): New variable.
21193 * util/grub-fstest.c (grub_putchar): Removed.
21194 (grub_xputs_real): New function.
21195 (grub_xputs): New variable.
21196 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21197 (grub_xputs_real): New function.
21198 (grub_xputs): New variable.
21199 * util/grub-probe.c (grub_putchar): Removed.
21200 (grub_xputs_real): New function.
21201 (grub_xputs): New variable.
21202 * util/grub-script-check.c (grub_putchar): Removed.
21203 (grub_xputs_real): New function.
21204 (grub_xputs): New variable.
21205 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21206 (grub_xputs_real): New function.
21207 (grub_xputs): New variable.
21208 * util/import_unicode.py: New file.
21209 * util/grub-mkfont.c (ft_errmsgs): New array.
21210 (grub_glyph_info): Make bitmap a pointer.
21211 (file_formats): New type WIDTH_SPEC.
21212 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21213 (options): Add width-spec.
21214 (help): Likewise.
21215 (add_char): Renamed to ...
21216 (add_glyph): ... this.
21217 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21218 (glyph_replace): New type.
21219 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21220 (add_char): New function.
21221 (add_subst): Likewise.
21222 (process_cursive): Likewise.
21223 (add_font): Handle GSUB.
21224 (write_font_width_spec): New function.
21225 (main): Sort glyphs.
21226 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21227 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21228 * kern/term.c (grub_cls): Moved from here...
21229 * normal/term.c (grub_cls): ... here.
21230
50f0bcda
CW
212312010-07-02 Colin Watson <cjwatson@ubuntu.com>
21232
21233 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21234 suitable for using within the format argument of printf when
21235 converting grub_size_t.
21236 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21237 "x" to convert grub_size_t arguments.
21238
40372103
VS
212392010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21240
21241 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21242 too long captions.
21243 (list_get_minimal_size): Take selection box into account.
21244
942a10c7
VS
212452010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21248 NULL font.
21249
2bdb2892
CW
212502010-07-02 Colin Watson <cjwatson@ubuntu.com>
21251
21252 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21253 devices when iterating over /dev/disk/by-id; they will be handled
21254 later if appropriate, which they aren't always (e.g. LVM).
21255
e03ed6c1
CW
212562010-07-02 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21259 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21260 fails.
21261 (grub_halt): Likewise.
21262 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21263 reset-all fails.
21264 (grub_halt): Don't return, even if all of shut-down, power-off, and
21265 poweroff fail.
21266
47695765
CW
212672010-07-02 Colin Watson <cjwatson@ubuntu.com>
21268
21269 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21270 arguments, not three.
21271
507736c8
CW
212722010-07-02 Colin Watson <cjwatson@ubuntu.com>
21273
21274 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21275 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21276 LVM-on-RAID is handled correctly.
21277
e3c8cd37
CW
212782010-07-02 Colin Watson <cjwatson@ubuntu.com>
21279
21280 * docs/grub.texi (Changes from GRUB Legacy): New section.
21281 (Future): Fix typo.
21282
8d4a2fec
CW
212832010-07-02 Colin Watson <cjwatson@ubuntu.com>
21284
21285 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21286 grub.d/README accidentally ends up executable for one reason or
21287 another. Ignore it.
21288
1c4827be
VS
212892010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21292 (gpt_partition_map_iterate): Support non-512B sectors.
21293
d9a0c941
VS
212942010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21295
21296 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21297 Tested by: Seth Goldberg.
21298
48f27e87
VS
212992010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21302 Properly align mbi.
21303 Reported by: Seth Goldberg.
21304
b0c4f956
VS
213052010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * util/grub-mkrescue.in: Avoid module duplication.
21308
105a2e8c
SF
213092010-07-01 Sean Finney <seanius@seanius.net>
21310
21311 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21312
5944958c
SF
213132010-07-01 Sean Finney <seanius@seanius.net>
21314
21315 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21316
213172010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 * disk/lvm.c (grub_lvm_checkvalue): New function.
21320 (grub_lvm_check_flag): Likewise.
21321
b79889ba
RM
213222010-07-01 Robert Millan <rmh@gnu.org>
21323
21324 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21325 Support 'p' as partition separator on kernel of FreeBSD (used
21326 with GPT labels).
21327 (grub_util_biosdisk_get_grub_dev): Likewise.
21328
ec1d04f1
VS
213292010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21330
21331 Yeeloong firmware port.
21332
21333 * boot/mips/yeeloong/fwstart.S: New file.
21334 * bus/cs5536.c (gpiodump): New const.
21335 (set_io_space): New function.
21336 (set_iod): Likewise.
21337 (set_p2d): Likewise.
21338 (grub_cs5536_init_geode): Likewise.
21339 * commands/mips/yeeloong/lsspd.c: New file.
21340 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21341 (serial_mod_SOURCES): New variable.
21342 (serial_mod_CFLAGS): Likewise.
21343 (serial_mod_LDFLAGS): Likewise.
21344 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21345 term/terminfo.c and term/tparm.c.
21346 (pkglib_IMAGES): Add fwstart.img.
21347 (fwstart_img_SOURCES): New variable.
21348 (fwstart_img_CFLAGS): Likewise.
21349 (fwstart_img_ASFLAGS): Likewise.
21350 (fwstart_img_LDFLAGS): Likewise.
21351 (fwstart_img_FORMAT): Likewise.
21352 (pkglib_MODULES): Add lsspd.mod.
21353 (lsspd_mod_SOURCES): New variable.
21354 (lsspd_mod_CFLAGS): Likewise.
21355 (lsspd_mod_LDFLAGS): Likewise.
21356 (pkglib_MODULES): Add halt.mod.
21357 (halt_mod_SOURCES): New variable.
21358 (halt_mod_CFLAGS): Likewise.
21359 (halt_mod_LDFLAGS): Likewise.
21360 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21361 (serial_mod_SOURCES): Removed.
21362 (serial_mod_CFLAGS): Likewise.
21363 (serial_mod_LDFLAGS): Likewise.
21364 * disk/ata.c (check_device): New function.
21365 (grub_ata_device_initialize): Use check_device.
21366 (grub_ata_iterate): Recheck devices.
21367 (grub_ata_open): Likewise.
21368 (grub_atapi_iterate): Likewise.
21369 (grub_atapi_open): Likewise.
21370 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21371 (GRUB_ATA_CH1_PORT1): Likewise.
21372 (GRUB_ATA_CH0_PORT2): Likewise.
21373 (GRUB_ATA_CH1_PORT2): Likewise.
21374 * include/grub/mips/loongson.h: New file.
21375 * include/grub/mips/yeeloong/ec.h: Likewise.
21376 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21377 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21378 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21379 * include/grub/misc.h (grub_halt): Declare as noreturn.
21380 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21381 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21382 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21383 (UART_ENABLE_DTRRTS): Likewise.
21384 (UART_ENABLE_MODEM): Removed.
21385 (UART_ENABLE_OUT2): New const.
21386 * include/grub/term.h (grub_term_register_input_active): New function.
21387 (grub_term_register_output_active): Likewise.
21388 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21389 argument.
21390 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21391 (init_pci): New function.
21392 (grub_machine_init): Execute platform init when firmware. Init serial.
21393 (grub_halt): Implement.
21394 (grub_exit): Likewise.
21395 (grub_reboot): Likewise.
21396 * term/serial.c (serial_hw_init): Update macros.
21397 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21398 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21399 (image_targets): New target mipsel-yeeloong-flash.
21400 (generate_image): Support IMAGE_YEELOONG_FLASH.
21401 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21402 (grub_video_sm712_setup): Init card.
21403 (grub_video_sm712_set_palette): Removed.
21404 * video/sm712_init.c: New file.
21405
ff4a70d2
CW
214062010-06-30 Colin Watson <cjwatson@ubuntu.com>
21407
21408 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21409 PATH when running help2man and then run it on the unadorned
21410 executable names, rather than passing $(builddir)/* paths to
21411 help2man. This avoids the build directory ending up in generated
21412 manual pages.
21413
1246efeb
CW
214142010-06-29 Colin Watson <cjwatson@ubuntu.com>
21415
21416 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21417 to avoid accidents when debugging with 'sh -x'.
21418 * util/grub-mkrescue.in: Likewise.
21419 * util/grub.d/00_header.in: Likewise.
21420 * util/grub.d/10_hurd.in: Likewise.
21421 * util/grub.d/10_kfreebsd.in: Likewise.
21422 * util/grub.d/10_linux.in: Likewise.
21423 * util/grub.d/10_netbsd.in: Likewise.
21424 * util/grub.d/10_windows.in: Likewise.
21425 * util/grub.d/20_linux_xen.in: Likewise.
21426 * util/grub.d/30_os-prober.in: Likewise.
21427 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21428
1ba9b889
CW
214292010-06-29 Colin Watson <cjwatson@ubuntu.com>
21430
21431 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21432 last character in the buffer.
21433 Reported by: Vladimir Serbinenko.
21434
dccaf99d
RM
214352010-06-29 Robert Millan <rmh@gnu.org>
21436
21437 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21438 (Command-line and menu entry commands): Document `badram' command.
21439
d500ed12
RM
214402010-06-28 Robert Millan <rmh@gnu.org>
21441
21442 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
21443 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
21444 command using ${GRUB_BADRAM} as parameter.
21445
20bc84a6
CW
214462010-06-28 Colin Watson <cjwatson@ubuntu.com>
21447
21448 * docs/grub.texi (Device map): New section.
21449 (Themes): New section (stub).
21450 * Makefile.in (docs/grub.info): The info documentation now builds
21451 without errors. Make sure it stays that way.
21452
4045dee1
VS
214532010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21454
21455 Use normal parser for menu entries.
21456 Reported by: Thomas Frauendorfer
21457
21458 * include/grub/parser.h (grub_parser_execute): Don't export.
21459 * normal/menu.c (grub_menu_execute_entry_real): New function.
21460 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
21461
bca58c7b
CW
214622010-06-28 Colin Watson <cjwatson@ubuntu.com>
21463
21464 * docs/grub.texi (Embedded configuration): New section (replacing
21465 old "Preset Menu" stub).
21466 (Images): New section.
21467 (configfile): Note that any menu entries defined in `file' are shown
21468 immediately.
21469
dec53e63
JT
214702010-06-28 Josh Triplett <josh@joshtriplett.org>
21471
21472 * mmap/i386/pc/mmap_helper.S: Set CF on return.
21473
c06e40f7
CW
214742010-06-28 Colin Watson <cjwatson@ubuntu.com>
21475
21476 * util/grub-install.in: Add --debug-image= option.
21477
cb88052b
CW
214782010-06-28 Colin Watson <cjwatson@ubuntu.com>
21479
21480 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
21481 possible on Linux.
21482
21483 * util/deviceiter.c (check_device): Rename to ...
21484 (check_device_readable_unique): ... this. Update all callers.
21485 Maintain and check a list of which devices (by canonicalized name)
21486 have already been seen.
21487 (clear_seen_devices): New function.
21488 (compare_file_names) [__linux__]: New function.
21489 (grub_util_iterate_devices): Clear the list of seen devices on exit
21490 and (just in case) on entry.
21491 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
21492 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
21493 seen-devices list, superseded by general code in check_device.
21494
bbe34652
CW
214952010-06-28 Colin Watson <cjwatson@ubuntu.com>
21496
21497 * commands/cat.c (options): New variable.
21498 (grub_cmd_cat): Parse options. If the --dos option is given, print
21499 DOS-style "\r\n" line endings as simple newlines (Debian bug
21500 #586358).
21501 (GRUB_MOD_INIT): Use extcmd.
21502 (GRUB_MOD_FINI): Likewise.
21503 * docs/grub.texi (cat): Document --dos.
21504
412e09f3
VS
215052010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 XEN with Linux grub-mkconfig support.
21508
21509 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
21510 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
21511 GRUB_CMDLINE_XEN_DEFAULT.
21512 * util/grub.d/20_linux_xen.in: New file.
21513
53f3ef38 215142010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
21515
21516 Initialise VGA video on qemu ourselves.
21517
21518 * boot/i386/qemu/boot.S: Don't call 0xc000.
21519 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
21520 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
21521 (kernel_img_HEADERS): Add pci.h.
21522 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
21523 * configure.ac: Force unifont on qemu and yeeloong.
21524 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21525 (grub_vga_palette_write): Use correct register.
21526 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
21527 Call grub_qemu_init_cirrus.
21528 * kern/i386/qemu/init.c: New file.
21529 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
21530
21531 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
21532
c75be4fb
PR
215332010-06-26 Pavel Roskin <proski@gnu.org>
21534
21535 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
21536 13.
21537
d8034603
CW
215382010-06-26 Colin Watson <cjwatson@ubuntu.com>
21539
21540 * docs/grub.texi (Simple configuration): Explain that
21541 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
21542 set to `true' to disable their respective recovery entries, not
21543 merely set.
21544
3fa06487
CW
215452010-06-26 Colin Watson <cjwatson@ubuntu.com>
21546
21547 Make the `source' command slightly faster.
21548
21549 * normal/main.c (grub_normal_execute): Don't re-read list files when
21550 nested.
21551
e9b29642
CW
215522010-06-23 Colin Watson <cjwatson@ubuntu.com>
21553
21554 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
21555 field position and mask size to red fields from mode_info, not
21556 green.
21557 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
21558 Remove redundant tag->common.framebuffer_type assignment.
21559 Reported by: Seth Goldberg.
21560
e726542f
CW
215612010-06-23 Colin Watson <cjwatson@ubuntu.com>
21562
21563 Sync up other versions of the Linux loader with Robert Millan's
21564 change of 2010-01-09, "Make loader output a bit more user-friendly".
21565
21566 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
21567 grub_dprintf().
21568 (grub_cmd_linux): Likewise.
21569 (grub_cmd_initrd): Likewise.
21570 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
21571 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21572
d6e98a17
CW
215732010-06-21 Colin Watson <cjwatson@ubuntu.com>
21574
21575 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
21576 larger than MEMORY_MAP_SIZE.
21577
14d3f08e
BC
215782010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
21579
21580 Fix parallel build.
21581
21582 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
21583 dependency.
21584 * script/parser.y: #include grub_script.tab.h header.
21585
4f9613a3
VS
215862010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 Support >3GiB and <16MiB RAM in i386-qemu.
21589
21590 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
21591 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
21592 (grub_lower_mem): Removed.
21593 (grub_upper_mem): Likewise.
21594 (mem_size): Made static.
21595 (above_4g): New variable.
21596 (grub_machine_mmap_init): Detect small mem_size and above_4g.
21597 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
21598 support.
21599
05e51879
VS
216002010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21601
21602 Cirrus 5446 and Bochs video cards support.
21603
21604 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
21605 video_bochs.mod
21606 (video_cirrus_mod_SOURCES): New variable.
21607 (video_cirrus_mod_CFLAGS): Likewise.
21608 (video_cirrus_mod_LDFLAGS): Likewise.
21609 (video_bochs_mod_SOURCES): Likewise.
21610 (video_bochs_mod_CFLAGS): Likewise.
21611 (video_bochs_mod_LDFLAGS): Likewise.
21612 * include/grub/vga.h: New file.
21613 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
21614 (grub_video_fb_set_page_t): New type.
21615 (grub_video_fb_setup): New prototype.
21616 (grub_video_fb_swap_buffers): Likewise.
21617 (grub_video_fb_get_info_and_fini): Likewise.
21618 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
21619 (CRTC_DATA_PORT): Likewise.
21620 (CRTC_CURSOR): Likewise.
21621 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21622 (CRTC_CURSOR_ADDR_LOW): Likewise.
21623 (CRTC_CURSOR_DISABLE): Likewise.
21624 (update_cursor): Use grub_vga_cr_write.
21625 (grub_vga_text_setcursor): Likewise.
21626 * video/bochs.c: New file.
21627 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
21628 (palette): Likewise.
21629 (palette_size): Likewise.
21630 (framebuffer): New variable.
21631 (grub_video_fb_init): Use 'framebuffer'.
21632 (grub_video_fb_fini): Likewise.
21633 (grub_video_fb_get_info): Likewise.
21634 (grub_video_fb_get_palette): Likewise.
21635 (grub_video_fb_set_palette): Likewise.
21636 (grub_video_fb_set_viewport): Likewise.
21637 (grub_video_fb_get_viewport): Likewise.
21638 (grub_video_fb_map_color): Likewise.
21639 (grub_video_fb_map_rgb): Likewise.
21640 (grub_video_fb_map_rgba): Likewise.
21641 (grub_video_fb_unmap_color): Likewise.
21642 (grub_video_fb_unmap_color_int): Likewise.
21643 (grub_video_fb_fill_rect): Likewise.
21644 (grub_video_fb_blit_bitmap): Likewise.
21645 (grub_video_fb_blit_render_target): Likewise.
21646 (grub_video_fb_scroll): Likewise.
21647 (grub_video_fb_create_render_target): Likewise.
21648 (grub_video_fb_doublebuf_blit_init): Likewise.
21649 (grub_video_fb_set_active_render_target): Handle doublebuffering.
21650 (doublebuf_pageflipping_update_screen): New function.
21651 (doublebuf_pageflipping_init): Likewise.
21652 (grub_video_fb_setup): Likewise.
21653 (grub_video_fb_swap_buffers): Likewise.
21654 (grub_video_fb_get_info_and_fini): Likewise.
21655 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
21656 All users updated.
21657 (doublebuf_pageflipping_commit): Restructured into ...
21658 (doublebuf_pageflipping_set_page): ... this.
21659 (doublebuf_pageflipping_update_screen): Removed.
21660 (doublebuf_pageflipping_init): Likewise.
21661 (double_buffering_init): Likewise.
21662 (grub_video_vbe_setup): Use grub_video_fb_setup.
21663 (grub_video_vbe_swap_buffers): Removed.
21664 (grub_video_vbe_set_active_render_target): Likewise.
21665 (grub_video_vbe_get_active_render_target): Likewise.
21666 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
21667 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
21668 grub_video_fb_set_active_render_target and
21669 grub_video_fb_get_active_render_target.
21670 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
21671 (SEQUENCER_DATA_PORT): Likewise.
21672 (MAP_MASK_REGISTER): Likewise.
21673 (CRTC_ADDR_PORT): Likewise.
21674 (CRTC_DATA_PORT): Likewise.
21675 (START_ADDR_HIGH_REGISTER): Likewise.
21676 (START_ADDR_LOW_REGISTER): Likewise.
21677 (GRAPHICS_ADDR_PORT): Likewise.
21678 (GRAPHICS_DATA_PORT): Likewise.
21679 (READ_MAP_REGISTER): Likewise.
21680 (INPUT_STATUS1_REGISTER): Likewise.
21681 (INPUT_STATUS1_VERTR_BIT): Likewise.
21682 (get_map_mask): Use grub_vga_sr_read.
21683 (set_map_mask): Use grub_vga_sr_write.
21684 (set_read_map): Use grub_vga_gr_write.
21685 (set_start_address): Use grub_vga_cr_write.
21686 * video/sm712.c (framebuffer): Remove leftover fields.
21687
4321c64a
CW
216882010-06-20 Colin Watson <cjwatson@ubuntu.com>
21689
21690 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
21691 setting GRUB_VIDEO_BACKEND. Make it available as a user override
21692 instead. Replace the gfxterm backend check with a check that
21693 ${GRUB_PREFIX}/video.lst is non-empty.
21694 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
21695 again.
21696 (load_video): New generated function. Call it before loading
21697 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
21698 * util/grub.d/10_linux.in (linux_entry): Call load_video.
21699 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
21700 * docs/grub.texi (Simple configuration): Document
21701 GRUB_VIDEO_BACKEND.
21702
217032010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 Use video functions in linux and xnu loaders.
21706
21707 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
21708 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
21709 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
21710 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
21711 loader/i386/pc/linux.c.
21712 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
21713 (find_line_len): Removed.
21714 (find_framebuf): Likewise.
21715 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
21716 * loader/i386/efi/xnu.c: Removed.
21717 * loader/i386/pc/xnu.c: Moved from here...
21718 * loader/i386/xnu.c: ...here.
21719
21720 Enable priorities in video drivers.
21721
21722 * include/grub/video.h (grub_video_adapter_prio_t): New type.
21723 (grub_video_adapter): New field prio.
21724 (grub_video_register): Respect prio when inserting.
21725 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
21726 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
21727 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
21728 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
21729 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
21730 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
21731 * video/sm712.c (grub_video_sm712_adapter): Likewise.
21732
21733 Fix SDL driver ID.
21734
21735 * include/grub/video.h (grub_video_driver_id_t): New value
21736 GRUB_VIDEO_DRIVER_SDL.
21737 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
21738
7d24e434
CW
217392010-06-17 Colin Watson <cjwatson@ubuntu.com>
21740
21741 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
21742 argument to printf.
21743 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21744
c88a83f6
CW
217452010-06-17 Colin Watson <cjwatson@ubuntu.com>
21746
21747 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
21748 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21749
094dfb69
CW
217502010-06-17 Colin Watson <cjwatson@ubuntu.com>
21751
21752 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
21753 directly, and recommend grub-install instead.
21754 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21755
2164da6b
CW
217562010-06-17 Colin Watson <cjwatson@ubuntu.com>
21757
21758 Fix i386-pc prefix handling with nested partitions (Debian bug
21759 #585068). Note that the case where the core image is booted using
21760 multiboot and relocated from its original location still requires
21761 more work.
21762
21763 * kern/i386/pc/init.c (make_install_device): If the prefix starts
21764 with "(,", fill the boot drive in between those two characters, but
21765 expect that a full partition specification including partition map
21766 names will follow.
21767 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
21768 specified, write a prefix without the drive name but including a
21769 full partition specification.
21770
044e2e60
CW
217712010-06-16 Colin Watson <cjwatson@ubuntu.com>
21772
21773 * util/grub-mkconfig.in: Ignore non-option arguments, for
21774 compatibility with older versions (before 2010-06-12) which did the
21775 same. In particular, this makes it easier to ship an update-grub
21776 wrapper which is compatible with that used with GRUB Legacy (Debian
21777 bug #586056).
21778
5591324f
GS
217792010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21780
21781 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
21782 for manual page generation.
21783
662e24d5
GS
217842010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21785
21786 * po/POTFILES: Remove leftover commands/handler.c.
21787
8d70754e
CW
217882010-06-14 Colin Watson <cjwatson@ubuntu.com>
21789
21790 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
21791 left this script non-functional.
21792
41160e2e
CW
217932010-06-14 Colin Watson <cjwatson@ubuntu.com>
21794
21795 * docs/man/grub-emu.h2m: New file.
21796
b5309cc1
CW
217972010-06-13 Colin Watson <cjwatson@ubuntu.com>
21798
21799 * docs/grub.texi (Commands): Document reduced command set in rescue
21800 mode.
21801 (cpuid): New section.
21802
fcb2d090
GS
218032010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
21804
21805 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
21806 new partition naming style.
21807 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
21808
96e5c556
BC
218092010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
21810
21811 Add "-o grub.iso" like cmdline options support.
21812
21813 * util/grub-install.in: Improve cmdline option parsing.
21814 * util/grub-mkconfig.in: Likewise.
21815 * util/grub-mkrescue.in: Likewise.
21816 * util/grub-reboot.in: Likewise.
21817 * util/grub-set-default.in: Likewise.
21818 * util/i386/efi/grub-install.in: Likewise.
21819 * util/ieee1275/grub-install.in: Likewise.
21820 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21821
c16be99b
CW
218222010-06-12 Colin Watson <cjwatson@ubuntu.com>
21823
21824 * .bzrignore: Ignore 41_custom.
21825
ce08a9fb
TS
218262010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21827
21828 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
21829
7beac90c
CW
218302010-06-12 Colin Watson <cjwatson@ubuntu.com>
21831
21832 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
21833 prototype declarations.
21834
21835 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
21836 generating fs, partmap, and video lists.
21837 * include/grub/fs.h (grub_fs_register): Omit prototype if
21838 GRUB_LST_GENERATOR is defined.
21839 * include/grub/partition.h (grub_partition_map_register): Likewise.
21840 * include/grub/video.h (grub_video_register): Likewise.
21841
1c8f0f8d
JM
218422010-06-12 Javier Martín <lordhabbit@gmail.com>
21843
21844 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
21845
a6085973
TS
218462010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21847
21848 * util/grub-mkrescue.in: Support --xorriso argument.
21849
25c56d29
VS
218502010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21851
21852 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
21853 Suggested by: Thomas Schmitt.
21854
e03e4b24
VS
218552010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21856
21857 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
21858 Suggested by: Thomas Schmitt.
21859
57711df6
VS
218602010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21861
21862 custom.cfg support.
21863
21864 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
21865 * util/grub.d/41_custom.in: New file.
21866
ee62c427
CW
218672010-06-12 Colin Watson <cjwatson@ubuntu.com>
21868
21869 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21870 been merged back into normal.
21871
283af07a
CW
218722010-06-11 Colin Watson <cjwatson@ubuntu.com>
21873
21874 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
21875 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
21876
56a0d956
CW
218772010-06-11 Colin Watson <cjwatson@ubuntu.com>
21878
21879 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
21880 when generating manual pages.
21881 * docs/man/grub-bin2h.h2m: New file.
21882 * docs/man/grub-editenv.h2m: New file.
21883 * docs/man/grub-fstest.h2m: New file.
21884 * docs/man/grub-install.h2m: New file.
21885 * docs/man/grub-macho2img.h2m: New file.
21886 * docs/man/grub-mkconfig.h2m: New file.
21887 * docs/man/grub-mkdevicemap.h2m: New file.
21888 * docs/man/grub-mkfont.h2m: New file.
21889 * docs/man/grub-mkimage.h2m: New file.
21890 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
21891 * docs/man/grub-mkrelpath.h2m: New file.
21892 * docs/man/grub-mkrescue.h2m: New file.
21893 * docs/man/grub-ofpathname.h2m: New file.
21894 * docs/man/grub-pe2elf.h2m: New file.
21895 * docs/man/grub-probe.h2m: New file.
21896 * docs/man/grub-reboot.h2m: New file.
21897 * docs/man/grub-script-check.h2m: New file.
21898 * docs/man/grub-set-default.h2m: New file.
21899 * docs/man/grub-setup.h2m: New file.
21900
3a37e322
VS
219012010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
21902
21903 Use FOR_* macros instead of *_iterate whenever possible.
21904
21905 * commands/handler.c: Removed.
21906 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
21907 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
21908 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21909 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
21910 (grub_probe_SOURCES): Remove kern/parser.c.
21911 (util/grub-script-check.c_DEPENDENCIES): Removed.
21912 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
21913 and grub_script_check_init.c.
21914 (grub_script_check_init.lst): Removed.
21915 (grub_script_check_init.h): Likewise.
21916 (grub_script_check_init.c): Likewise.
21917 (pkglib_MODULES): Remove handler.mod and sh.mod.
21918 (handler_mod_SOURCES): Removed.
21919 (handler_mod_CFLAGS): Likewise.
21920 (handler_mod_LDFLAGS): Likewise.
21921 (normal_mod_SOURCES): Remove normal/handler.c.
21922 Add script/main.c, script/script.c, script/execute.c,
21923 script/function.c, script/lexer.c, grub_script.tab.c
21924 and grub_script.yy.c.
21925 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21926 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21927 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
21928 (grub_setup_SOURCES): Remove kern/parser.c.
21929 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21930 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
21931 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21932 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21933 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21934 (grub_setup_SOURCES): Remove kern/parser.c.
21935 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21936 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
21937 * include/grub/command.h (grub_command_iterate): Removed.
21938 (FOR_COMMANDS): New macro.
21939 * include/grub/dl.h (grub_dl): New member next.
21940 (grub_dl_iterate): Removed.
21941 (grub_dl_head): New variable declaration.
21942 (FOR_DL_MODULES): New macro.
21943 * include/grub/fs.h: Include list.h.
21944 (grub_fs): Make next first element.
21945 (grub_fs_list): New variable declaration.
21946 (grub_fs_register): Make inline.
21947 (grub_fs_unregister): Likewise.
21948 (grub_fs_iterate): Removed.
21949 (FOR_FILESYSTEMS): New macro.
21950 * include/grub/handler.h: Removed.
21951 * include/grub/list.h (grub_list_hook_t): Removed.
21952 (grub_list_test_t): Likewise.
21953 (grub_list_pop): Likewise.
21954 (grub_list_iterate): Likewise.
21955 (grub_list_insert): Likewise.
21956 (FOR_LIST_ELEMENTS): New macro.
21957 * include/grub/parser.h (grub_parser_class): Removed.
21958 (grub_parser_register): Likewise.
21959 (grub_parser_unregister): Likewise.
21960 (grub_parser_get_current): Likewise.
21961 (grub_parser_set_current): Likewise.
21962 (grub_register_rescue_parser): Likewise.
21963 (grub_rescue_parse_line): New function.
21964 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21965 * include/grub/script_sh.h (grub_script_function_list): New variable
21966 declaration.
21967 (FOR_SCRIPT_FUNCTIONS): New macro.
21968 (grub_script_function_iterate): Removed.
21969 (grub_normal_parse_line): New prototype.
21970 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21971 (FOR_DISABLED_TERM_INPUTS): Likewise.
21972 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21973 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21974 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21975 element.
21976 (grub_video_register): Inline.
21977 (grub_video_unregister): Likewise.
21978 (grub_video_adapter_list): New variable declaration.
21979 (grub_video_iterate): Removed.
21980 (FOR_VIDEO_ADAPTERS): New macro.
21981 * kern/dl.c (grub_dl_list): Removed. All users updated.
21982 (grub_dl_iterate): Removed.
21983 * kern/fs.c (grub_fs_list): Make global.
21984 (grub_fs_register): Removed.
21985 (grub_fs_unregister): Likewise.
21986 (grub_fs_iterate): Likewise.
21987 * kern/handler.c: Removed.
21988 * kern/list.c (grub_list_pop): Removed.
21989 (grub_list_iterate): Likewise.
21990 (grub_list_insert): Likewise.
21991 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21992 (grub_prio_list_insert): Don't use grub_list_insert.
21993 * kern/main.c (grub_register_rescue_parser): Don't call
21994 grub_register_rescue_parser.
21995 * kern/parser.c (grub_parser_class): Removed.
21996 (grub_parser_execute): Use grub_rescue_parse_line.
21997 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21998 (grub_rescue_parser): Removed.
21999 (grub_register_rescue_parser): Likewise.
22000 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
22001 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
22002 (grub_auth_check_authentication): Likewise.
22003 * normal/completion.c (iterate_command): Removed.
22004 (grub_normal_do_completion): Use FOR_COMMANDS.
22005 * normal/handler.c: Removed.
22006 * normal/main.c (read_config_file): Remove parser changing.
22007 (grub_normal_execute): Don't call read_handler_list.
22008 (grub_normal_read_line_real): Statically allocate prompt.
22009 (grub_cmdline_run): Use grub_normal_parse_line.
22010 (GRUB_MOD_FINI): Don't call free_handler_list.
22011 * normal/menu_entry.c (run): Likewise.
22012 * script/function.c (grub_script_function_list): Make global.
22013 (grub_script_function_iterate): Removed.
22014 * script/main.c (grub_normal_parse_line): Make global.
22015 (grub_sh_parser): Removed.
22016 (GRUB_MOD_INIT): Likewise.
22017 (GRUB_MOD_FINI): Likewise.
22018 * tests/lib/functional_test.c (grub_functional_test): Use
22019 FOR_LIST_ELEMENTS.
22020 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
22021 (grub_test_run): Use FOR_LIST_ELEMENTS.
22022 * tests/lib/unit_test.c (main): Likewise.
22023 * util/deviceiter.c (grub_util_iterate_devices): Don't use
22024 grub_list_pop.
22025 * util/grub-fstest.c (grub_term_input_class): Removed.
22026 (grub_term_output_class): Likewise.
22027 * util/grub-probe.c: Likewise.
22028 * util/i386/pc/grub-setup.c: Likewise.
22029 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22030 * util/grub-script-check.c (main): Don't call grub_init_all and
22031 grub_fini_all.
22032 * video/video.c (grub_video_adapter_list): Make global.
22033 (grub_video_register): Removed.
22034 (grub_video_unregister): Likewise.
22035 (grub_video_iterate): Likewise.
22036
6289c3a7
VS
220372010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
22038
22039 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
22040 reported by Henrique Ferreiro.
22041
91460247
RM
220422010-06-09 Robert Millan <rmh@gnu.org>
22043
22044 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
22045 ones, when both are available.
22046
0ea7c4f9
GS
220472010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22048
22049 Make --version uniform and avoid hard-coded program name.
22050
22051 * util/grub-mkimage.c (main): Use `program_name' instead of
22052 hard-coded string.
22053 * util/i386/pc/grub-setup.c (main): Likewise.
22054 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
22055 * util/grub-install.in: Save the basename of $0 in $self, and use the
22056 latter in informational messages. Use the same format for --version
22057 as the binary programs.
22058 * util/grub-mkconfig.in: Likewise.
22059 * util/grub-mkrescue.in: Likewise.
22060 * util/grub-reboot.in: Likewise.
22061 * util/grub-set-default.in: Likewise.
22062 * util/i386/efi/grub-install.in: Likewise.
22063 * util/ieee1275/grub-install.in: Likewise.
22064 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22065
e8a6f3b6
GS
220662010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22067
22068 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
22069 embedding area. Use <= instead of == when checking for non-emptiness.
22070
f4d095d7
GS
220712010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22072
22073 * configure.ac: Add `.' to the directories searched for unifont.
22074
50e532ca
CW
220752010-06-08 Colin Watson <cjwatson@ubuntu.com>
22076
22077 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
22078 grub_script.yy.h.
22079
d39f3dec
CW
220802010-06-08 Colin Watson <cjwatson@ubuntu.com>
22081
22082 * docs/grub.texi (History): Expand to cover GRUB 2.
22083 (Serial terminal): Refer to `terminal_input' and `terminal_output'
22084 commands, not `terminal'.
22085 (serial): Likewise.
22086 (terminal_input): New section.
22087 (terminal_output): New section.
22088 (uppermem): New section (stub).
22089 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
22090
6ef0ddb4
CW
220912010-06-08 Colin Watson <cjwatson@ubuntu.com>
22092
22093 * docs/grub.texi (Security): Menu entries are unrestricted by
22094 default, not restricted to superusers as I had previously thought.
22095 Reword to account for this.
22096
e0f4c438
CW
220972010-06-07 Colin Watson <cjwatson@ubuntu.com>
22098
22099 * kern/emu/misc.c (device_mapper_null_log): New function.
22100 (grub_device_mapper_supported): New function.
22101 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
22102 prototype.
22103 * kern/emu/hostdisk.c (find_partition_start): Check whether
22104 device-mapper is supported before trying to use it.
22105 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
22106
da908200
CW
221072010-06-07 Colin Watson <cjwatson@ubuntu.com>
22108
22109 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
22110 (File name syntax): Likewise.
22111 (help): --all is no longer supported in GRUB 2. Be more precise
22112 about pattern matching.
22113
fb55c3ac
CW
221142010-06-07 Colin Watson <cjwatson@ubuntu.com>
22115
22116 * normal/completion.c (grub_normal_do_completion): When completing
22117 arguments to "set" and the current word contains an equals sign,
22118 skip to after the equals sign before starting completion.
22119
258c2573
CW
221202010-06-07 Colin Watson <cjwatson@ubuntu.com>
22121
22122 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
22123
ee75515e
CW
221242010-06-07 Colin Watson <cjwatson@ubuntu.com>
22125
22126 * docs/grub.texi (Network): New section.
22127 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
22128 `(nd)' as in GRUB Legacy.
22129 (pxe_unload): New section.
22130
a6a700aa
CW
221312010-06-07 Colin Watson <cjwatson@ubuntu.com>
22132
22133 * docs/grub.texi (Troubleshooting): `echo' is not usually available
22134 in the rescue shell, so recommend using `set' instead. Thanks,
22135 Jordan Uggla.
22136
4003dd38
CW
221372010-06-07 Colin Watson <cjwatson@ubuntu.com>
22138
22139 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
22140 (password): New section.
22141 (password_pbkdf2): New section.
22142 (search): New section.
22143 (Security): New section.
22144 (Troubleshooting): New section, currently very incomplete.
22145 (Invoking grub-mkpasswd-pbkdf2): New section.
22146 (Internals): New section, currently very incomplete.
22147
e1cbcc40
CW
221482010-06-07 Colin Watson <cjwatson@ubuntu.com>
22149
22150 * util/grub.d/00_header.in: Add some more quoting (of
22151 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
22152 work again.
22153 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22154
db8fa1ad
CW
221552010-06-07 Colin Watson <cjwatson@ubuntu.com>
22156
22157 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22158 to `count', fixing variable shadowing that broke the -c option.
22159
221602010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
22161
22162 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22163 in case they contain spaces.
22164
f28a9212
CW
221652010-06-04 Colin Watson <cjwatson@ubuntu.com>
22166
22167 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22168 "part_" to partmap module names, in line with grub-install.
22169 Reported by: Jindřich Makovička (Debian bug #584426).
22170
9cdfe32f
CW
221712010-06-04 Colin Watson <cjwatson@ubuntu.com>
22172
22173 * util/grub-mkimage.c: Make target-related error messages slightly
22174 more helpful; -O talks about "format". Explicitly point to the use
22175 of -O if no target is specified.
22176 Reported by: Didier Raboud (Debian bug #584415).
22177
795b593a
CW
221782010-06-03 Colin Watson <cjwatson@ubuntu.com>
22179
22180 * INSTALL: Document several build requirements for optional features
22181 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22182
9d9b5833
GS
221832010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22184
22185 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22186 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22187 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22188
0819fec8
CW
221892010-06-02 Colin Watson <cjwatson@ubuntu.com>
22190
22191 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22192 Thanks to Jordan Uggla for spotting this.
22193
49396b4f
VS
221942010-06-02 Aleš Nesrsta <starous@volny.cz>
22195
22196 Finally make USB usable.
22197
22198 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22199 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22200 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22201 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22202 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22203 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22204 (GRUB_OHCI_FSMPS): Likewise.
22205 (GRUB_OHCI_PERIODIC_START): Likewise.
22206 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22207 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22208 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22209 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22210 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22211 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22212 (grub_ohci_transaction): Likewise.
22213 (grub_ohci_transfer): Improve condition detection algorithms.
22214 Handle toggle property. Program the transactions correctly.
22215 Improve error handling. Various important fixups.
22216 (grub_ohci_portstatus): Put register writes in right order.
22217 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22218 (grub_uhci_transfer): Don't show "failed" message on success.
22219 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22220 array.
22221 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22222 determine its size.
22223 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22224 before initialization is completed. Use IN direction for empty
22225 transfers. Use last_trans and compute toggle.
22226 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22227 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22228 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22229 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22230 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22231 (grub_usb_device): Increase toggle to 256.
22232 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22233 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22234 GRUB_USBMS_SUBCLASS_SFF8070.
22235 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22236 (grub_scsi_inquiry): New member page and alloc_length.
22237 (grub_scsi_request_sense): New structure.
22238 (grub_scsi_request_sense_data): Likewise.
22239 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22240 control.
22241 * disk/scsi.c (grub_scsi_request_sense): New function.
22242 (grub_scsi_test_unit_ready): Likewise.
22243 (grub_scsi_inquiry): Fill new fields.
22244 (grub_scsi_read_capacity): Likewise.
22245 (grub_scsi_read10): Add request sense at the end.
22246 (grub_scsi_read12): Likewise.
22247 (grub_scsi_write10): Likewise.
22248 (grub_scsi_write12): Likewise.
22249 (grub_scsi_open): Add Test Unit Ready.
22250 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22251 Support additional subclasses. Con't clear halt yet. Activate the
22252 proper config. Calculate LUNs correctly.
22253 (grub_usbms_transfer): Various important fixups.
22254
222552010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22256
22257 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22258 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22259 (grub_ohci_fini_hw): New function.
22260 (grub_ohci_restore_hw): Likewise.
22261 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22262 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22263 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22264
222652010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22266
22267 Dedicated DMA allocations.
22268
22269 * bus/pci.c (grub_memalign_dma32): New function
22270 (grub_dma_free): Likewise.
22271 (grub_dma_get_virt): Likewise.
22272 (grub_dma_get_phys): Likewise.
22273 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22274 (grub_ohci_pci_iter): Use dma32_alloc.
22275 (grub_ohci_transfer): Likewise.
22276 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22277 (grub_usb_bulk_readwrite): Likewise.
22278 * include/grub/pci.h: Add declarations.
22279
222802010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 CS5536 support.
22283
22284 * bus/cs5536.c: New file.
22285 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22286 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22287 (cs5536_mod_SOURCES): New variable.
22288 (cs5536_mod_CFLAGS): Likewise.
22289 (cs5536_mod_LDFLAGS): Likewise.
22290 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22291 machine/pci.h.
22292 (kernel_img_SOURCES): Add bus/cs5536.c.
22293 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22294 usb_keyboard.mod.
22295 (usb_mod_SOURCES): New variable.
22296 (usb_mod_CFLAGS): New variable.
22297 (usb_mod_LDFLAGS): New variable.
22298 (usbtest_mod_SOURCES): New variable.
22299 (usbtest_mod_CFLAGS): New variable.
22300 (usbtest_mod_LDFLAGS): New variable.
22301 (ohci_mod_SOURCES): New variable.
22302 (ohci_mod_CFLAGS): New variable.
22303 (ohci_mod_LDFLAGS): New variable.
22304 (usbms_mod_SOURCES): New variable.
22305 (usbms_mod_CFLAGS): New variable.
22306 (usbms_mod_LDFLAGS): New variable.
22307 (usb_keyboard_mod_SOURCES): New variable.
22308 (usb_keyboard_mod_CFLAGS): New variable.
22309 (usb_keyboard_mod_LDFLAGS): New variable.
22310 * include/grub/smbus.h: New file.
22311 * include/grub/cs5536.h: New file.
22312
0b35b2a9
CW
223132010-06-02 Colin Watson <cjwatson@ubuntu.com>
22314
22315 * util/grub.d/00_header.in: Add safety check to make sure that
22316 ${locale_dir} exists before trying to probe it.
22317
ca0afd5b
CW
223182010-06-02 Colin Watson <cjwatson@ubuntu.com>
22319
22320 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22321 per the GNU Coding Standards; this is now too obscure to be worth
22322 documenting.
22323 (QNX): Likewise.
22324 (chainloader): Remove cross-reference to `SCO UnixWare'.
22325
1c41aa78
CW
223262010-06-02 Colin Watson <cjwatson@ubuntu.com>
22327
22328 * docs/grub.texi (Chain-loading): New section.
22329 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22330 adjusted for GRUB 2.
22331 (SCO UnixWare): Likewise.
22332 (QNX): Likewise.
22333 (chainloader): Add reference to `Block list syntax'.
22334 (drivemap): New section.
22335 (parttool): New section.
22336
bb8ea0f5
CW
223372010-06-02 Colin Watson <cjwatson@ubuntu.com>
22338
22339 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22340 the grub shell'.
22341 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22342 (Installing GRUB using grub-install): Remove reference to the grub
22343 shell; mention `grub-mkimage' and `grub-setup' instead.
22344 (Invoking grub-install): Likewise.
22345 (Interface): Add reference to `Menu entry editor'.
22346 (serial): Remove `--device' option.
22347
288dd6ed
CW
223482010-06-02 Colin Watson <cjwatson@ubuntu.com>
22349
22350 * docs/grub.texi (Configuration): New section, documenting
22351 configuration file generation using grub-mkconfig. I've left a slot
22352 for documenting the full shell scripting format but have not yet
22353 started on writing that up.
22354 (Invoking grub-mkconfig): New section.
22355
34c9f0e9
CW
223562010-06-02 Colin Watson <cjwatson@ubuntu.com>
22357
22358 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22359 (GNU GRUB manual): Likewise.
22360 (General commands): Update description of `terminfo' for GRUB 2.
22361
9121567e
CW
223622010-06-02 Colin Watson <cjwatson@ubuntu.com>
22363
22364 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22365 (GRUB_MOD_INIT): Fix capitalisation.
22366 * docs/grub.texi (Command-line and menu entry commands): Document
22367 gettext and gptsync commands.
22368
ab631611
CW
223692010-06-02 Colin Watson <cjwatson@ubuntu.com>
22370
22371 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22372 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22373
bde4a9ac
CW
223742010-06-01 Colin Watson <cjwatson@ubuntu.com>
22375
22376 Add btrfs probing support, currently only in the single-device case.
22377
22378 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22379 function.
22380 (grub_guess_root_device): Call find_root_device_from_mountinfo
22381 before looking in /dev.
22382
b1d17e10
VS
223832010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22384
22385 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22386 GRUB_DISK_SIZE_UNKNOWN.
22387 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22388
dfbfe004
JS
223892010-05-31 Jiro SEKIBA <jir@unicus.jp>
22390
22391 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22392 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22393 corrupted or not synced properly.
22394
c2ffc8e9
VS
223952010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22396
22397 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22398 Reported by: Seth Goldberg.
22399
56293166
VS
224002010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22401
22402 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22403 addition of dest.
22404 Reported by: Seth Goldberg.
22405
7620e7de
VS
224062010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22407
22408 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22409 Reported by: Seth Goldberg.
22410
c837af3f
VS
224112010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22412
22413 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22414 64-bit address as signed on MIPS.
22415
c7c75cf4
CW
224162010-05-28 Colin Watson <cjwatson@ubuntu.com>
22417
22418 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22419 to the empty string.
22420
fa4b8490
BC
224212010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22422
22423 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22424
22425 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22426 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22427 * kern/misc.c (__enable_execute_stack): Disable on
22428 GRUB_MACHINE_EMU.
22429
a33075b9
CW
224302010-05-28 Colin Watson <cjwatson@ubuntu.com>
22431
22432 Make grub-probe work with symbolic links under /dev/mapper as well
22433 as with real block devices. The Linux world seems to be (at best)
22434 in transition here, and GRUB shouldn't get caught in the middle.
22435
22436 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22437 /dev/mapper.
22438
d8708134
CW
224392010-05-27 Colin Watson <cjwatson@ubuntu.com>
22440
22441 * util/grub-script-check.c (main): Ensure defined behaviour on empty
22442 input files (in which case exit zero).
22443
db2102a0
CW
224442010-05-27 Colin Watson <cjwatson@ubuntu.com>
22445
22446 * kern/emu/misc.c (canonicalize_file_name): realpath can still
22447 return NULL for various reasons even if it has a maximum-length
22448 buffer: for example, there might be a symlink loop, or the path
22449 might exceed PATH_MAX. If this happens, return NULL.
22450
5fdba519
RM
224512010-05-27 Robert Millan <rmh@gnu.org>
22452
22453 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
22454 partmap module to handle cross-partmap setups.
22455 Reported by Orestes Mas. Gràcies!
22456
d1d368e4
CW
224572010-05-27 Colin Watson <cjwatson@ubuntu.com>
22458
22459 * util/grub-mkrescue.in: Initialise override_dir rather than
22460 assuming that it's unset or empty in the environment.
22461
95ac3c73
GS
224622010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
22463
22464 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
22465 variable index into p_index to suppress a warning with -Wshadow.
22466
7d8c0213
BC
224672010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
22468
22469 * INSTALL: Added flex >= 2.5.35 requirement.
22470
db4d5813
VS
224712010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22472
22473 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
22474
f24f4300
VS
224752010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 cmostest support.
22478
22479 * commands/i386/cmostest.c: New file.
22480 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
22481 (cmostest_mod_SOURCES): New variable.
22482 (cmostest_mod_CFLAGS): Likewise.
22483 (cmostest_mod_LDFLAGS): Likewise.
22484 * conf/i386-pc.rmk: Likewise.
22485 * docs/grub.texi (Vendor power-on keys): New section.
22486 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
22487 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
22488 and GRUB_BUTTON_CMOS_ADDRESS.
22489 * util/grub.d/00_header.in: Handle powering-on by separate button.
22490
ad603f61
VS
224912010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22492
22493 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
22494 Removed drawing_scrollbar argument. All users updated
22495 Fixes #29792.
22496 Reported by Jo Shields
22497
3ecb080a
VS
224982010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22499
22500 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
22501 buffer since gfxterm handles double repaint.
22502
5f2316c1
VS
225032010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22504
22505 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
22506 * term/gfxterm.c (real_scroll): Likewise.
22507
9a25f885
VS
225082010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
22511 before calling BIOS.
22512
39fbb79a
VS
225132010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22514
22515 * include/grub/i18n.h: Always enable grub_gettext.
22516
228cfa97
VS
225172010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
22520 partition naming style.
22521
21717c8f
CW
225222010-05-21 Colin Watson <cjwatson@ubuntu.com>
22523
22524 * util/grub-mkconfig.in: Fix handling of -o so that it works when
22525 not the first option.
22526
c0f48e65
CW
225272010-05-20 Colin Watson <cjwatson@ubuntu.com>
22528
22529 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
22530
96779aec
CW
225312010-05-20 Colin Watson <cjwatson@ubuntu.com>
22532
22533 * util/misc.c: Move inclusion of <limits.h> to ...
22534 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
22535
fa9d256e
GS
225362010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
22537
22538 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
22539 Fix merge error in NetBSD code.
22540 (find_partition_start) [__NetBSD__]: Likewise.
22541
123b7a85
BC
225422010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
22543
22544 Fix grub-mkrescue usage unit testing.
22545
22546 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
22547
74276c0d
CF
225482010-05-18 Christian Franke <franke@computer.org>
22549
22550 * util/grub.d/10_windows.in: Use path names instead of
22551 drive letters to prevent warning from Cygwin 1.7.
22552 Add drivemap command to menuentry if needed.
22553
c4f7b523
ST
225542010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
22555
22556 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
22557 gnumach and gnumach.gz.
22558
95b97950
VS
225592010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * include/grub/i18n.h (gettext): Inline instead of using #define.
22562 (grub_gettext): Likewise.
22563 (_): Likewise.
22564
01b8d2d7
VS
225652010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22566
22567 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
22568 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
22569 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
22570 (main): Add a slash after pkglibdirroot.
22571
654e1d1e
VS
225722010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * util/grub-install.in: Add missing "in" keyword.
22575
26966aeb
VS
225762010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22577
22578 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
22579 Reported by: Seth Goldberg.
22580
75006747
VS
225812010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
22584
74cbf5bd
CW
225852010-05-18 Colin Watson <cjwatson@ubuntu.com>
22586
22587 * configure.ac: Check for Linux device-mapper support.
22588
22589 * util/hostdisk.c (device_is_mapped): New function.
22590 (find_partition_start): New function, partly broken out from
22591 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
22592 device-mapper support added.
22593 (linux_find_partition): Use find_partition_start.
22594 (convert_system_partition_to_system_disk): Add `st' argument.
22595 Support Linux /dev/mapper/* devices if device-mapper support is
22596 available; only DM-RAID devices are understood at present.
22597 (find_system_device): Add `st' argument. Pass it to
22598 convert_system_partition_to_system_disk.
22599 (grub_util_biosdisk_get_grub_dev): Pass stat result to
22600 find_system_device and convert_system_partition_to_system_disk. Use
22601 find_partition_start.
22602
22603 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
22604 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
22605 * util/deviceiter.c [__linux__]: Define MINOR.
22606 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
22607 * util/mkdevicemap.c (grub_putchar): New function.
22608 (grub_getkey): New function.
22609 (grub_refresh): New function.
22610 (main): Set debug=all if -v -v is used.
22611
355b51e9
CW
226122010-05-18 Colin Watson <cjwatson@ubuntu.com>
22613
22614 Fix build with non-GNU libcs.
22615
22616 * util/misc.c (canonicalize_file_name): Move to ...
22617 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
22618 grub_make_system_path_relative_to_its_root.
22619
7fb5c25f
CW
226202010-05-18 Colin Watson <cjwatson@ubuntu.com>
22621
22622 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
22623 we handle finding grub-mkimage. Default to finding grub-mkimage in
22624 ${bindir} with program_transform_name applied, and provide a
22625 --grub-mkimage option to override this.
22626
1d3293d6
VS
226272010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22628
22629 Remove grub-mkisofs.
22630
22631 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
22632 (grub_mkisofs_SOURCES): Removed.
22633 (grub_mkisofs_CFLAGS): Removed.
22634 * util/mkisofs/defaults.h: Removed.
22635 * util/mkisofs/eltorito.c: Likewise.
22636 * util/mkisofs/exclude.h: Likewise.
22637 * util/mkisofs/hash.c: Likewise.
22638 * util/mkisofs/include/: Likewise.
22639 * util/mkisofs/include/fctldefs.h: Likewise.
22640 * util/mkisofs/include/mconfig.h: Likewise.
22641 * util/mkisofs/include/prototyp.h: Likewise.
22642 * util/mkisofs/include/statdefs.h: Likewise.
22643 * util/mkisofs/iso9660.h: Likewise.
22644 * util/mkisofs/joliet.c: Likewise.
22645 * util/mkisofs/match.c: Likewise.
22646 * util/mkisofs/match.h: Likewise.
22647 * util/mkisofs/mkisofs.c: Likewise.
22648 * util/mkisofs/mkisofs.h: Likewise.
22649 * util/mkisofs/msdos_partition.h: Likewise.
22650 * util/mkisofs/multi.c: Likewise.
22651 * util/mkisofs/name.c: Likewise.
22652 * util/mkisofs/rock.c: Likewise.
22653 * util/mkisofs/tree.c: Likewise.
22654 * util/mkisofs/write.c: Likewise.
22655
5dde9afe
VS
226562010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 Unify grub-mkimage accross platforms.
22659
22660 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
22661 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
22662 (grub_mkelfimage_SOURCES): Removed.
22663 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
22664 (util/grub-mkimage.c_DEPENDENCIES): .. this.
22665 (bin_UTILITIES): Add grub-mkimage.
22666 (grub_mkimage_SOURCES): New variable.
22667 (kernel_img_HEADERS): Remove machine/kernel.h.
22668 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
22669 (pkglib_PROGRAMS): Add kernel.img.
22670 (kernel_img_HEADERS): Add machine/kernel.h.
22671 (kernel_img_FORMAT): Removed.
22672 (bin_UTILITIES): Remove grub-mkimage.
22673 (grub_mkimage_SOURCES): Removed.
22674 (grub_mkimage_CFLAGS): Likewise.
22675 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22676 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
22677 (pkglib_PROGRAMS): Add kernel.img.
22678 (bin_UTILITIES): Remove grub-mkimage.
22679 (grub_mkimage_SOURCES): Removed.
22680 (grub_mkimage_CFLAGS): Likewise.
22681 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22682 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
22683 (pkglib_PROGRAMS): Add kernel.img.
22684 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
22685 (pkglib_PROGRAMS): Add kernel.img.
22686 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
22687 (grub_mkimage_SOURCES): Removed.
22688 (grub_mkimage_CFLAGS): Likewise.
22689 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22690 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
22691 (pkglib_PROGRAMS): Add kernel.img.
22692 (bin_UTILITIES): Remove grub-mkimage.
22693 (grub_mkimage_SOURCES): Removed.
22694 (grub_mkimage_CFLAGS): Likewise.
22695 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22696 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
22697 (grub_mkimage_SOURCES): Removed.
22698 (grub_mkimage_CFLAGS): Likewise.
22699 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22700 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
22701 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
22702 (grub_pe32_optional_header): ... this.
22703 (grub_pe64_optional_header): ... and this. All users updated.
22704 (GRUB_PE32_PE32_MAGIC): Split into ..
22705 (GRUB_PE32_PE32_MAGIC): .. this.
22706 (GRUB_PE32_PE64_MAGIC): .. and this.
22707 (GRUB_PE32_SIGNATURE_SIZE): New definition.
22708 * include/grub/elf.h (PT_GNU_STACK): New definition.
22709 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
22710 * include/grub/i386/efi/kernel.h: Likewise.
22711 * include/grub/i386/kernel.h: Likewise.
22712 * include/grub/i386/pc/kernel.h: Likewise.
22713 * include/grub/i386/qemu/boot.h: Likewise.
22714 * include/grub/mips/kernel.h: Likewise.
22715 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22716 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22717 * include/grub/powerpc/kernel.h: Likewise.
22718 * include/grub/sparc64/ieee1275/boot.h: Likewise.
22719 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22720 * include/grub/sparc64/kernel.h: Likewise.
22721 * include/grub/x86_64/efi/kernel.h: Likewise.
22722 * include/grub/x86_64/kernel.h: Likewise.
22723 * include/grub/offsets.h: New file.
22724 * include/grub/kernel.h (grub_module_info): Split into ...
22725 (grub_module_info32): ... this.
22726 (grub_module_info64): ... and this.
22727 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
22728 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
22729 (grub_boot_blocklist): Moved from here ...
22730 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
22731 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
22732 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
22733 * include/grub/types.h (grub_target_to_host16): Removed.
22734 (grub_target_to_host32): Likewise.
22735 (grub_target_to_host64): Likewise.
22736 (grub_host_to_target16): Likewise.
22737 (grub_host_to_target32): Likewise.
22738 (grub_host_to_target64): Likewise.
22739 (grub_host_to_target_addr): Likewise.
22740
22741 Support grub-mkrescue for efi, coreboot and qemu.
22742
22743 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
22744 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
22745 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
22746 * util/grub-mkrawimage.c: Moved from here ...
22747 * util/grub-mkimage.c: ... here. All users updated.
22748 (ALIGN_ADDR): Use image_target.
22749 (TARGET_NO_FIELD): New const.
22750 (image_target_desc): New type.
22751 (image_targets): New array.
22752 (grub_target_to_host64): Use image_target.
22753 (grub_target_to_host32): Likewise.
22754 (grub_target_to_host16): Likewise.
22755 (grub_host_to_target64): Likewise.
22756 (grub_host_to_target32): Likewise.
22757 (grub_host_to_target16): Likewise.
22758 (grub_host_to_target_addr): Likewise.
22759 (generate_image): Handle multiimage.
22760 (main): Require -O parameter. All users updated.
22761 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
22762 util/efi/grub-mkimage.c
22763 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
22764 New option --rom-directory.
22765 Use xorriso.
22766 * util/i386/efi/grub-mkimage.c: Removed.
22767 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
22768 (grub_target_to_host32): Likewise.
22769 (grub_target_to_host64): Likewise.
22770 (grub_host_to_target16): Likewise.
22771 (grub_host_to_target32): Likewise.
22772 (grub_host_to_target64): Likewise.
22773 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
22774 (grub_target_to_host32): Likewise.
22775 (grub_target_to_host64): Likewise.
22776 (grub_host_to_target16): Likewise.
22777 (grub_host_to_target32): Likewise.
22778 (grub_host_to_target64): Likewise.
22779
f4fc97d0
BC
227802010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
22781
22782 Source tree is reorganized for emu build.
22783
22784 * include/grub/util/console.h: Move from here...
22785 * include/grub/emu/console.h: ...to here.
22786 * include/grub/util/getroot.h: Move from here...
22787 * include/grub/emu/getroot.h: ...to here.
22788 * include/grub/util/hostdisk.h: Move from here...
22789 * include/grub/emu/hostdisk.h: ...to here.
22790 * util/console.c: Move from here...
22791 * kern/emu/console.c: ...to here.
22792 * util/getroot.c: Move from here...
22793 * kern/emu/getroot.c: ...to here.
22794 * util/grub-emu.c: Move from here...
22795 * kern/emu/main.c: ...to here.
22796 * util/hostdisk.c: Move from here...
22797 * kern/emu/hostdisk.c: ...to here.
22798 * util/hostfs.c: Move from here...
22799 * kern/emu/hostfs.c: ...to here.
22800 * util/mm.c: Move from here...
22801 * kern/emu/mm.c: ...to here.
22802 * util/pci.c: Move from here...
22803 * bus/emu/pci.c: ...to here.
22804 * util/sdl.c: Move from here...
22805 * video/emu/sdl.c: ...to here.
22806 * util/time.c: Move from here...
22807 * kern/emu/time.c: ...to here.
22808 * util/usb.c: Move from here...
22809 * bus/usb/emu/usb.c: ...to here.
22810
22811 * include/grub/emu/misc.h: New header for grub-emu functions.
22812 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
22813
22814 * conf/any-emu.rmk: Rule updates for above renames.
22815 * conf/common.rmk: Likewise.
22816 * conf/i386-pc.rmk: Likewise.
22817 * conf/i386-qemu.rmk: Likewise.
22818 * conf/mips.rmk: Likewise.
22819 * conf/sparc64-ieee1275.rmk: Likewise.
22820 * conf/x86-efi.rmk: Likewise.
22821
22822 * disk/lvm.h: #include updates for above renames.
22823 * util/grub-mkrelpath.c: Likewise.
22824 * util/grub-probe.c: Likewise.
22825 * util/i386/pc/grub-setup.c: Likewise.
22826 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22827 * kern/emu/console.c: Likewise.
22828 * kern/emu/getroot.c: Likewise.
22829 * kern/emu/hostdisk.c: Likewise.
22830 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
22831
22832 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
22833 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
22834 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
22835 * util/misc.c: Remove grub-emu functions.
22836
cced9145
VS
228372010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
22838
22839 Fix gfxmenu crash.
22840 Reported by: Thorsten Grützmacher.
22841
22842 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
22843 timeout hook.
22844 (circprog_set_property): Register and unregister timeout hook.
22845 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
22846 (label_destroy): Free template. and unregister hook.
22847 (label_set_state): New function.
22848 (label_set_property): Handle templates and hooks.
22849 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
22850 timeout hook.
22851 (progress_bar_set_property): Register and unregister timeout hook.
22852 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
22853 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
22854 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
22855 (update_timeout_visit): Removed.
22856 (update_timeouts): New function.
22857 (redraw_timeouts): Likewise.
22858 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
22859 (grub_gfxmenu_clear_timeout): Likewise.
22860 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
22861 (grub_gfxmenu_timeout_notify): Likewise.
22862 (grub_gfxmenu_timeout_notifications): New external variable.
22863 (grub_gfxmenu_timeout_register): New function.
22864 (grub_gfxmenu_timeout_unregister): Likewise.
22865
c6e5caab
VS
228662010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22867
22868 Transform (broken) vga terminal into (working) vga video driver.
22869
22870 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
22871 video/i386/pc/vga.c.
22872 * include/grub/video.h (grub_video_driver_id):
22873 Add GRUB_VIDEO_DRIVER_VGA.
22874 * term/i386/pc/vga.c: Renamed to ...
22875 * video/i386/pc/vga.c: ...this
22876 (DEBUG_VGA): Removed.
22877 (CHAR_WIDTH): Likewise.
22878 (CHAR_HEIGHT): Likewise.
22879 (TEXT_WIDTH): Likewise.
22880 (TEXT_HEIGHT): Likewise.
22881 (DEFAULT_FG_COLOR): Likewise.
22882 (DEFAULT_BG_COLOR): Likewise.
22883 (colored_char): Likewise.
22884 (xpos): Likewise.
22885 (ypos): Likewise.
22886 (cursor_state): Likewise.
22887 (fg_color): Likewise.
22888 (bg_color): Likewise.
22889 (text_buf): Likewise.
22890 (page): Likewise.
22891 (font): Likewise.
22892 (framebuffer): New variable.
22893 (set_read_map): Disabled.
22894 (setup): New variable.
22895 (is_target): Likewise.
22896 (grub_vga_mod_init): Likewise.
22897 (grub_vga_mod_fini): Likewise.
22898 (check_vga_mem): Likewise.
22899 (write_char): Likewise.
22900 (write_cursor): Likewise.
22901 (scroll_up): Likewise.
22902 (grub_vga_putchar): Likewise.
22903 (grub_vga_getcharwidth): Likewise.
22904 (grub_vga_getwh): Likewise.
22905 (grub_vga_getxy): Likewise.
22906 (grub_vga_gotoxy): Likewise.
22907 (grub_vga_cls): Likewise.
22908 (grub_vga_setcolorstate): Likewise.
22909 (grub_vga_setcursor): Likewise.
22910 (grub_video_vga_init): New function.
22911 (grub_video_vga_setup): Likewise.
22912 (grub_video_vga_fini): Likewise.
22913 (update_target): Likewise.
22914 (grub_video_vga_blit_bitmap): Likewise.
22915 (grub_video_vga_blit_render_target): Likewise.
22916 (grub_video_vga_set_active_render_target): Likewise.
22917 (grub_video_vga_get_active_render_target): Likewise.
22918 (grub_video_vga_swap_buffers): Likewise.
22919 (grub_video_vga_set_palette): Likewise.
22920 (grub_video_vga_get_info_and_fini): Likewise.
22921 (grub_vga_term): Removed.
22922 (grub_video_vga_adapter): New variable.
22923 (GRUB_MOD_INIT): Register a video driver instead of terminal.
22924 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
22925
2bf61a98
VS
229262010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22927
22928 * video/readers/jpeg.c: Indented.
22929
09ddcd11
VS
229302010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22931
22932 Various jpeg cleanups.
22933
22934 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
22935 (grub_jpeg_decode_quan_table): Use sizeof.
22936 (grub_jpeg_decode_du): Use ARRAY_SIZE.
22937
e5507505
PH
229382010-05-05 Peter Hurley <No e-mail available> (tiny change)
22939
22940 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
22941 tables. Ignore non-last ac bit.
22942 (grub_jpeg_decode_quan_table): Likewise.
22943
7e720a9b
VS
229442010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22945
22946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
22947 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
22948 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22949 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
22950 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
22951 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
22952
a7fc080b
VS
229532010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22954
22955 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
22956 error.
22957
2bf6012d
VS
229582010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22959
22960 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
22961
265d68cd
VS
229622010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22963
22964 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22965 condition.
22966
229672010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22968
22969 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22970 part.
22971
265d68cd 229722010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22973
22974 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22975 pointers.
22976
265d68cd 229772010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22978
22979 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22980
d1b61374
CF
229812010-05-01 Christian Franke <franke@computer.org>
22982
22983 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22984 Remove broken Cygwin path conversion.
22985 * util/misc.c: [__CYGWIN__] Add include and define.
22986 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22987 for Cygwin 1.7.
22988 (make_system_path_relative_to_its_root): Simplify loop, replace early
22989 return by break.
22990 [__CYGWIN__] Add conversion to win32 path.
22991 Include "/" case in trailing slash removal.
22992
3558c6e9
VS
229932010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22994
22995 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22996 Reported by: Seth Goldberg
22997
f5f3ff93
VS
229982010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22999
23000 * commands/help.c (grub_cmd_help): Fix a typo.
23001 Reported by: Seth Goldberg
23002
d8b5cd40
VS
230032010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23004
23005 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
23006 name and add N_.
23007 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
23008 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
23009 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
23010 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
23011 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
23012 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
23013 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
23014 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
23015 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
23016 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
23017 * normal/context.c (GRUB_MOD_INIT): Likewise.
23018 * normal/main.c (GRUB_MOD_INIT): Likewise.
23019 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
23020 * term/serial.c (GRUB_MOD_INIT): Likewise.
23021 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
23022
88c14915
VS
230232010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23024
23025 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
23026 extra == 0.
23027
165134bc
VS
230282010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 * commands/iorw.c: New file.
23031 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
23032 (iorw_mod_SOURCES): New variable.
23033 (iorw_mod_CFLAGS): Likewise.
23034 (iorw_mod_LDFLAGS): Likewise.
23035
c5ac9b32
VS
230362010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23037
23038 Hotkey support
23039
23040 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
23041 * normal/main.c (hotkey_aliases): New variable.
23042 (grub_normal_add_menu_entry): Parse "--hotkey".
23043 * normal/menu_text.c (run_menu): Handle hotkeys.
23044
ce60689c
VS
230452010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * kern/i386/coreboot/init.c (grub_machine_init): Call
23048 grub_machine_mmap_init on qemu.
23049
0359d006
VS
230502010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23051
23052 * boot/i386/qemu/boot.S: Add a missing .code16.
23053
7819a456
VS
230542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23055
23056 Use LBIO on coreboot.
23057
23058 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
23059 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
23060 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
23061 New declaration.
23062 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
23063 grub_machine_mmap_init on coreboot.
23064 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
23065 GRUB_LINUXBIOS_MEMBER_LINK.
23066 (grub_machine_mmap_iterate): Fix declaration.
23067 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
23068
7210dca9
VS
230692010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 Split coreboot and multiboot ports.
23072
23073 * conf/i386-multiboot.rmk: New file.
23074 * configure.ac: Add multiboot port.
23075 * include/grub/i386/multiboot/boot.h: New file.
23076 * include/grub/i386/multiboot/console.h: Likewise.
23077 * include/grub/i386/multiboot/init.h: Likewise.
23078 * include/grub/i386/multiboot/kernel.h: Likewise.
23079 * include/grub/i386/multiboot/loader.h: Likewise.
23080 * include/grub/i386/multiboot/memory.h: Likewise.
23081 * include/grub/i386/multiboot/serial.h: Likewise.
23082 * include/grub/i386/multiboot/time.h: Likewise.
23083 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
23084 * loader/multiboot.c: Likewise.
23085 * loader/multiboot_mbi2.c: Likewise.
23086 * util/grub-mkrescue.in: Generate multiboot rescue.
23087
6f8aaf68
VS
230882010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23089
3080f7a7
VS
23090 * kern/parser.c (grub_parser_execute): Cope with read-only config.
23091
230922010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
23095
23096 * commands/terminal.c (abstract_terminal): New struct.
23097 (handle_command): New function. Based on grub_cmd_terminal_input.
23098 (grub_cmd_terminal_input): Use handle_command.
23099 (grub_cmd_terminal_output): Use handle_command.
23100
a8ebb841
BC
231012010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
23102
23103 Fix comment handling.
23104
23105 * tests/grub_script_comments.in: New testcase.
23106 * conf/tests.rmk: Rules for new testcase.
23107 * script/yylex.l: Updated flex rules.
23108
bb06ba08
ST
231092010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
23110
23111 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
23112 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
23113 if argc is 1.
bb06ba08 23114
cc9d2425
VS
231152010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23116
23117 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
23118 autogen issues.
23119
460d8402
CF
231202010-04-26 Christian Franke <franke@computer.org>
23121
23122 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
23123 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
23124 (grub_get_prefix): Remove function.
23125 * util/grub-emu.c (main): Replace grub_get_prefix () call by
23126 make_system_path_relative_to_its_root ().
23127 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23128
553c01f9
CF
231292010-04-24 Christian Franke <franke@computer.org>
23130
23131 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
23132 (kernel_img_LDFLAGS): Remove -static-libgcc.
23133
2aec1692
CF
231342010-04-24 Christian Franke <franke@computer.org>
23135
23136 * configure.ac: Do not CHECK_BSS_START_SYMBOL
23137 and CHECK_END_SYMBOL if grub-emu is built.
23138 Unset TARGET_OBJ2ELF if grub-emu is built
23139 without module support.
23140
f67dc308
JS
231412010-04-24 Jiro SEKIBA <jir@unicus.jp>
23142
23143 Nilfs2 support.
23144
23145 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
23146 (grub_fstest_SOURCES): Likewise.
23147 (pkglib_MODULES): Add nilfs2.mod.
23148 (nilfs2_mod_SOURCES): New variable.
23149 (nilfs2_mod_CFLAGS): Likewise.
23150 (nilfs2_mod_LDFLAGS): Likewise.
23151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23152 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23153 * fs/nilfs2.c: New file.
23154
4ba8d354
VS
231552010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23156
23157 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23158 is not supported.
23159
0d2c20c6
GS
231602010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23161
23162 Add grub-mkconfig support for NetBSD.
23163
23164 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23165 * util/grub-mkconfig.in: export new NetBSD specific variables.
23166 * po/POTFILES-shell: added 10_netbsd.in.
23167 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23168
bc4a2d83
BC
231692010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23170
23171 Fix emu build with grub-emu-pci and grub-emu-modules.
23172
23173 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23174 functions.
23175 * include/grub/libpciaccess.h: New file.
23176 * conf/any-emu.rmk: Update kernel headers for emu build.
23177
f48c87aa
VS
231782010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23179
23180 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23181
18959385
VS
231822010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23183
23184 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23185
0037de3f
VS
231862010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23189 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23190 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23191 util/ieee1275/ofpath.c.
23192 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23193 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23194 * include/grub/sparc64/ieee1275/boot.h
23195 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23196 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23197 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23198 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23199 const char *.
23200 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23201 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23202 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23203 install.
23204
38e55e90
GS
232052010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23206
23207 * util/grub-mkconfig.in: Corrected two == equality tests.
23208 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23209 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23210 expect a number appended to it.
23211 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23212 expects a number appended to it.
23213
a9e6ff28
VS
232142010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23217
0b830b8f
VS
232182010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23219
23220 * util/hostdisk.c (make_device_name): Change to new partition naming.
23221
0973daeb
VS
232222010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23223
23224 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23225
460d8402 232262010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
23227
23228 * Makefile.in: Add missing localedir setting.
23229
0b456309
CW
232302010-04-14 Colin Watson <cjwatson@ubuntu.com>
23231
23232 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23233 mistake in r2156. Noticed by Anthony Fok.
23234
23235 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23236 @localedir@.
23237 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23238
08f46d62
BC
232392010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23240
23241 Fix a spurious, uninitialized variable warning.
23242
23243 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23244 Initialize variable, shdr.
23245 (grub_freebsd_load_elfmodule): Likewise.
23246 (grub_freebsd_load_elf_meta): Likewise.
23247
8c4a72d4
BC
232482010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23249
23250 Fix for escaped dollar in double quoted strings.
23251
23252 * script/yylex.l: Updated flex rules.
23253 * conf/tests.rmk: Rule for new testcase.
23254 * tests/grub_script_dollar.in: New testcase.
23255
ce44826e
CPE
232562010-04-13 Carles Pina i Estany <carles@pina.cat>
232572010-04-13 Colin Watson <cjwatson@ubuntu.com>
23258
23259 Enclose all translated strings in grub.cfg in single quotes, and
23260 escape them appropriately (Ubuntu bug #552921).
23261
23262 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23263 * util/grub.d/10_hurd.in: Use it.
23264 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23265 * util/grub.d/10_linux.in (linux_entry): Likewise.
23266
4b0cd8f8
VS
232672010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23268
23269 Fix cygwin compilation.
23270
23271 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23272 * include/grub/misc.h (__register_frame_info)
23273 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23274 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23275 * kern/misc.c (__register_frame_info)
23276 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23277 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23278
01fcf061
VS
232792010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23280
23281 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23282
5d04b11e
VS
232832010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23284
23285 Unify libgcc processing.
23286
23287 * Makefile.in (kernel_img_LDFLAGS): New variable.
23288 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23289 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23290 overwriting.
23291 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23292 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23293 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23294 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23295 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23296 overwriting. Remove -lgcc and -static-libgcc
23297 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23298 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23299 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23300 (kernel_img_LDFLAGS): Append instead of overwriting.
23301 Remove -lgcc and -static-libgcc
23302 * conf/sparc64-ieee1275.rmk: Likewise.
23303 * include/grub/powerpc/libgcc.h: Move to ...
23304 * include/grub/libgcc.h: .. this.
23305 * include/grub/libgcc.h: Don't export most of the function on x86.
23306 (__bswapsi2): New export.
23307 (__bswapdi2): Likewise.
23308 * include/grub/mips/libgcc.h: Removed.
23309 * include/grub/sparc64/libgcc.h: Likewise.
23310
b7f3ac29
VS
233112010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23314 disk_info_msg (conflicts with gettexting into languages with cases).
23315
2c7031b1
GS
233162010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23317
23318 Add grub-probe support for NetBSD.
23319
23320 * util/getroot.c (find_root_device): Convert block device to
23321 character device on NetBSD.
23322 * util/probe.c (probe): Require character device on NetBSD.
23323 * util/hostdisk.c: NetBSD specific headers.
23324 (configure_device_driver): new function to tune device driver
23325 parameters (currently only for NetBSD floppy driver).
23326 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23327 via disklabel ioctl).
23328 (open_device): call configure_device_driver on NetBSD.
23329 (convert_system_partition_to_system_disk): NetBSD specific code.
23330 (device_is_wholedisk): Likewise.
23331 (grub_util_biosdisk_get_grub_dev): Likewise.
23332 (make_device_name): Fixed a typo in bsd_part_str.
23333 * configure.ac: check for opendisk() and getrawpartition() on
23334 NetBSD and set LIBUTIL.
23335 * Makefile.in: add LIBUTIL to LIBS.
23336
f516290c
BC
233372010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23338
23339 Documentation fix.
23340
23341 * util/grub-script-check.c: Better help message.
23342
d8dcc0df
BC
233432010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23344
23345 Fix FreeBSD build.
23346
23347 * configure.ac: Flex version check.
23348 * conf/common.rmk: Add -Wno-error to sh.mod.
23349 * script/yylex.l: Remove all #pragma.
23350
6734334a
VS
233512010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23352
23353 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23354 prototype.
23355 Reported by: Seth Goldberg.
23356
daea6abd
VS
233572010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23358
23359 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23360 Rename "module" to "module2".
23361 Reported by: Seth Goldberg.
23362
f2fd9d2b
VS
233632010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23364
23365 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23366 EXPORT_FUNC.
23367 Reported by: Seth Goldberg.
23368
be124579
VS
233692010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23370
23371 * lib/posix_wrap/locale.h: Add missing file.
23372 Reported by: Seth Goldberg.
23373
ef5da797
VS
233742010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23375
23376 grub-emu module load support.
23377
23378 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23379 NO_DYNAMIC_MODULES switched to this.
23380 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23381 (CFLAGS): Likewise.
23382 * conf/any-emu.rmk: Generate symlist.
23383 (kernel_img_HEADERS): Add util/datetime.h.
23384 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23385 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23386 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23387 kern/$(target_cpu)/cache.S.
23388 * configure.ac (grub-emu-modules): New option.
23389 * genmk.rb: Handle multiple source lists.
23390 * include/grub/sdl.h: New file.
23391 * include/grub/libusb.h: Likewise.
23392 * util/grub-emu.c (main): Hanle (host) root.
23393 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23394 GRUB_ERR_UNKNOWN_DEVICE.
23395 * util/misc.c: Move mm functions to ...
23396 * util/mm.c: ... here. All users updated.
23397
47822096
VS
233982010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23399
23400 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23401 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23402 missing files.
23403 (maintainer-clean): Remove libgcrypt-grub.
23404
5d7e7445
VS
234052010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23408
25f4e252
EC
234092010-04-09 EFI Coder <eficoder@hotmail.com>
23410
23411 * normal/menu_text.c (print_message): Clean up the message and show
23412 the Fn information when on EFI
23413 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23414
027de555
VS
234152010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23416
23417 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23418 All users updated.
23419 * normal/crypto.c (read_crypto_list): Likewise.
23420 * normal/dyncmd.c (read_command_list): Likewise.
23421 * normal/term.c (read_terminal_list): Likewise.
23422 * normal/main.c (read_lists): Use explicit prefix.
23423 (read_lists_hook): Use read_lists.
23424 (grub_normal_execute): Likewise.
23425
47779711
VS
234262010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23429 Reported by: Thomas Schmitt.
23430 Add -no-emul-boot to grub-mkisofs parameters.
23431
1118c32e
VS
234322010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23433
23434 * font/font.c: Indented.
23435
7d652447
BC
234362010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23437
23438 Elif support to GRUB script (by Deepak Vankadaru).
23439
23440 * tests/grub_script_if.in: New testcase.
23441 * conf/tests.rmk: Rule for new testcase.
23442 * script/parser.y: Grammar rules for elif.
23443
34bb22df
BC
234442010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23445
23446 While and until loops support to GRUB script.
23447
23448 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
23449 (grub_script_create_cmdwhile): New function prototype.
23450 (grub_script_execute_cmdwhile): New function prototype.
23451 * script/execute.c (grub_script_execute_cmdwhile): New function.
23452 * script/parser.y (command): New commands.
23453 (whilecmd): New grammar rule.
23454 (untilcmd): New grammar rule.
23455 * script/script.c (grub_script_create_cmdwhile): New function.
23456 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
23457 function.
23458
23459 * tests/grub_script_while1.in: New testcase.
23460 * conf/tests.rmk: Rule for new testcase.
23461
e215d8e0
VS
234622010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23463
23464 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
23465 as *.jpg.
23466
d7c43ba1
MV
234672010-04-09 Mario Vazquez <mariovazq@gmail.com>
23468
23469 GRUB_BACKGROUND support.
23470
23471 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
23472 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
23473
d64795c0
VS
234742010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 23477 Idea by: Mario Vazquez
d64795c0
VS
23478
23479 * util/grub.d/00_header.in: Load pf2 and image modules.
23480
f267f83a
VS
234812010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23482
23483 grub-mkconfig multiple terminal support.
23484
23485 * util/grub-mkconfig.in: Handle multiple terminals correctly.
23486 * util/grub.d/00_header.in: Likewise.
23487
b7841ceb
VS
234882010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23489
23490 * Makefile.in: Specify files explicitly instead of using $< and $@ since
23491 we use cd $(srcdir).
23492
df60998c
CW
234932010-04-08 Colin Watson <cjwatson@ubuntu.com>
23494
23495 * util/grub.d/10_linux.in: Only use the first word of
23496 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
23497 spaces in GRUB_DISTRIBUTOR.
23498 * util/grub.d/10_kfreebsd.in: Likewise.
23499 * util/grub.d/10_hurd.in: Likewise.
23500
fa09c82e
BC
235012010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
23502
14e18ae3 23503 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
23504
23505 * tests/util/grub-shell.in: Remove -serial stdio option.
23506
daf892b3
BC
235072010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23508
23509 POSIX header file wrappers.
23510
23511 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
23512 equivalents.
23513 * lib/posix_wrap/ctype.h: Likewise.
23514 * lib/posix_wrap/errno.h: Likewise.
23515 * lib/posix_wrap/langinfo.h: Likewise.
23516 * lib/posix_wrap/limits.h: Likewise.
23517 * lib/posix_wrap/localcharset.h: Likewise.
23518 * lib/posix_wrap/stdint.h: Likewise.
23519 * lib/posix_wrap/stdio.h: Likewise.
23520 * lib/posix_wrap/stdlib.h: Likewise.
23521 * lib/posix_wrap/string.h: Likewise.
23522 * lib/posix_wrap/sys/types.h: Likewise.
23523 * lib/posix_wrap/unistd.h: Likewise.
23524 * lib/posix_wrap/wchar.h: Likewise.
23525 * lib/posix_wrap/wctype.h: Likewise.
23526 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
23527 (grub_script.yy.h): Likewise.
23528 * script/yylex.l: Remove POSIX emulation #defines.
23529 * Makefile.in (POSIX_CFLAGS): New variable.
23530 (GNULIB_UTIL_CFLAGS): Likewise.
23531
23532 Regexp support.
23533
23534 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
23535 (regexp_mod_SOURCES): New variable.
23536 (regexp_mod_CFLAGS): Likewise.
23537 (regexp_mod_LDFLAGS): Likewise.
23538 * commands/regexp.c: New file.
23539 * gnulib/regcomp.c: New file. Imported from gnulib.
23540 * gnulib/regex.c: Likewise.
23541 * gnulib/regex_internal.c: Likewise.
23542 * gnulib/regex_internal.h: Likewise.
23543 * gnulib/regexec.c: Likewise.
23544 * gnulib/regex.h: Likewise.
23545
974ac4f7
VS
235462010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23547
23548 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
23549 unsupported video mode types.
23550
2622c3ff
VS
235512010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23552
23553 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
23554
064cb524
VS
235552010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23556
23557 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
23558 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
23559
a8c3b552
VS
235602010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23561
23562 Remove unused grub_vga_get_font.
23563
23564 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
23565 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
23566
187bbe3d
GS
235672010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23568
23569 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
23570 * include/grub/misc.h: Likewise.
23571
b9396631
GS
235722010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23573
23574 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
23575 for which failure is fatal.
23576
50479feb
GS
235772010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23578
23579 * util/grub-install.in: Use mkdir -p to create grub directory.
23580 * util/i386/efi/grub-install.in: Likewise.
23581 * util/ieee1275/grub-install.in: Likewise.
23582
b1654fdf
GS
235832010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23584
23585 * Makefile.in (LEX): new variable.
23586
bd5a6415
GS
235872010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23588
23589 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
23590 `=' and added double quotes on operands of this equality test.
23591
3db3a82b
VS
235922010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23593
23594 * Makefile.in (uninstall): Remove a leftover debug echo.
23595 Reported by: Grégoire Sutre
23596
38023412
VS
235972010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23598
23599 MIPS multiboot2 support.
23600
23601 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
23602 (multiboot2_mod_SOURCES): New variable.
23603 (multiboot2_mod_CFLAGS): Likewise.
23604 (multiboot2_mod_LDFLAGS): Likewise.
23605 (multiboot2_mod_ASFLAGS): Likewise.
23606 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
23607 definition.
23608 (MULTIBOOT_ENTRY_REGISTER): Likewise.
23609 (MULTIBOOT_MBI_REGISTER): Likewise.
23610 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
23611 (MULTIBOOT_ELF32_MACHINE): Likewise.
23612 (MULTIBOOT_ELF64_MACHINE): Likewise.
23613 * include/grub/mips/multiboot.h: New file.
23614 * include/grub/video.h (grub_video_driver_id): New type
23615 GRUB_VIDEO_DRIVER_SM712.
23616 (grub_video_get_info_and_fini): Export.
23617 (grub_video_get_palette): Likewise.
23618 (grub_video_get_driver_id): Likewise.
23619 * include/multiboot2.h: Resynced with spec.
23620 * loader/i386/multiboot.c: Moved from here ...
23621 * loader/multiboot.c: ... here. All users updated.
23622 (grub_multiboot_boot): Use platform-specific macros.
23623 * loader/i386/multiboot_elfxx.c: Moved from here ...
23624 * loader/multiboot_elfxx.c: ... here. All users updated.
23625 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
23626 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
23627 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
23628
47674667
VS
236292010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 Import gnulib argp module.
23632
23633 * gnulib/argp-ba.c: New file.
23634 * gnulib/argp-eexst.c: Likewise.
23635 * gnulib/argp-fmtstream.c: Likewise.
23636 * gnulib/argp-fmtstream.h: Likewise.
23637 * gnulib/argp-fs-xinl.c: Likewise.
23638 * gnulib/argp-help.c: Likewise.
23639 * gnulib/argp-namefrob.h: Likewise.
23640 * gnulib/argp-parse.c: Likewise.
23641 * gnulib/argp-pin.c: Likewise.
23642 * gnulib/argp-pv.c: Likewise.
23643 * gnulib/argp-pvh.c: Likewise.
23644 * gnulib/argp-version-etc.c: Likewise.
23645 * gnulib/argp-version-etc.h: Likewise.
23646 * gnulib/argp-xinl.c: Likewise.
23647 * gnulib/argp.h: Likewise.
23648
495442ed
VS
236492010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 * kern/device.c (grub_device_iterate): Clear errors after failed
23652 opening device.
23653
f9fd65df
VS
236542010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
23657 returned by firmware.
23658
af09641e
VS
236592010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
23662 compilation on coreboot and qemu
23663
016883a5
VS
236642010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23665
23666 * include/multiboot2.h: Resync with spec.
23667
f97e1f7d
VS
236682010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23669
23670 Multiboot2 tag support
23671
23672 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
23673 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
23674 Remove loader/multiboot_loader.c.
23675 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
23676 (grub_multiboot2_real_boot): Likewise.
23677 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
23678 (grub_get_multiboot_mmap_count): New proto.
23679 (grub_fill_multiboot_mmap): Likewise.
23680 (grub_multiboot_set_video_mode): Likewise.
23681 (grub_multiboot_set_console): Likewise.
23682 (grub_multiboot_load): Likewise.
23683 (grub_multiboot_load_elf): Likewise.
23684 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
23685 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
23686 * include/multiboot.h: Resynced with specification.
23687 * include/multiboot2.h: Resynced with specification.
23688 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
23689 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
23690 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
23691 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
23692 users updated.
23693 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
23694 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
23695 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
23696 Removed.
23697 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
23698 Moved from here...
23699 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
23700 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23701 Moved from here...
23702 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
23703 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
23704 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
23705 All users updated.
23706 * loader/i386/multiboot_mbi2.c: New file.
23707
3506b90b
VS
237082010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23709
23710 Resync with gnulib.
23711
23712 * Makefile.in (GNULIB_CFLAGS): New variable.
23713 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
23714 (grub_script_check_CFLAGS): New variable.
23715 * gnulib/alloca.h: Resync with gnulib.
23716 * gnulib/error.c: Likewise.
23717 * gnulib/error.h: Likewise.
23718 * gnulib/fnmatch.c: Likewise.
23719 * gnulib/fnmatch_loop.c: Likewise.
23720 * gnulib/getdelim.c: Likewise.
23721 * gnulib/getline.c: Likewise.
23722 * gnulib/getopt.c: Likewise.
23723 * gnulib/getopt1.c: Likewise.
23724 * gnulib/getopt_int.h: Likewise.
23725 * gnulib/gettext.h: Likewise.
23726 * gnulib/progname.c: Likewise.
23727 * gnulib/progname.h: Likewise.
23728
394a3120
GS
237292010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
23730
23731 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
23732 which is the case with --disabled-nls.
23733
23734 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
23735 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
23736 * util/misc.c: Likewise.
23737 * util/mkisofs/mkisofs.c: Likewise.
23738 * util/mkisofs/mkisofs.h: Likewise.
23739
969d1c78
VS
237402010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 Simplify Apple CC support.
23743
23744 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
23745 Add 0 byte at the end not to have a symbol with empty target.
23746 * mmap/i386/pc/mmap_helper.S: Likewise.
23747 * genmk.rb: Ignore errors 2030 and 2050.
23748 * kern/i386/pc/startup.S: Use LOCAL when possible.
23749
8d2977bb
BC
237502010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
23751
23752 Testcase and the fix for final semicolon on cmdline.
23753
23754 * tests/grub_script_final_semicolon.in: New testcase.
23755 * conf/tests.rmk: Rules for the new testcase.
23756 * script/parser.y: Grammar fix.
23757
a7bd6915
BC
237582010-03-26 BVK Chaitanya <bvk@localhost>
23759
23760 Blank lines testcase for GRUB script.
23761
23762 * tests/grub_script_blanklines.in: New testcase.
23763 * conf/tests.rmk: Rules for the new testcase.
23764
e4ff6628
VS
237652010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23766
23767 Don't use __FILE__.
23768
23769 * genmk.rb: Add -DGRUB_FILE to all C targets.
23770 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
23771 * include/grub/list.h: Likewise.
23772 * include/grub/misc.h: Likewise.
23773 * include/grub/mm.h: Likewise.
23774 * include/grub/test.h: Likewise.
23775 * kern/mm.c: Likewise.
23776 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23777
6a5cf6b6
VS
237782010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 Sunpc partitions support.
23781
23782 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
23783 (grub_fstest_SOURCES): Likewise.
23784 (pkglib_MODULES): Add part_sunpc.mod.
23785 (part_sunpc_mod_SOURCES): New variable.
23786 (part_sunpc_mod_CFLAGS): Likewise.
23787 (part_sunpc_mod_LDFLAGS): Likewise.
23788 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
23789 * partmap/sunpc.c: New file.
23790
746d9045
BC
237912010-03-26 BVK Chaitanya <bvk@localhost>
23792
23793 For loop support to GRUB script.
23794
23795 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
23796 (grub_script_create_cmdfor): New function prototype.
23797 (grub_script_execute_cmdfor): New function prototype.
23798 * script/execute.c (grub_script_execute_cmdfor): New function.
23799 * script/parser.y (command): New for command.
23800 (forcmd): New grammar rule.
23801 * script/script.c (grub_script_create_cmdfor): New function.
23802 * util/grub-script-check.c (grub_script_execute_cmdfor): New
23803 function.
23804 * tests/grub_script_for1.in: New testcase.
23805 * conf/tests.rmk: Rules for new testcase.
23806
18486b18
VS
238072010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23808
23809 Nested partitions
23810
23811 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
23812 'partition' is NULL, grub_partition_get_start already does that.
23813 * commands/loadenv.c (check_blocklists): Likewise.
23814 (write_blocklists): Likewise.
23815 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
23816 (grub_fstest_SOURCES): Likewise.
23817 (pkglib_MODULES): Add part_bsd.mod.
23818 (part_bsd_mod_SOURCES): New variable.
23819 (part_bsd_mod_CFLAGS): Likewise.
23820 (part_bsd_mod_LDFLAGS): Likewise.
23821 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
23822 (grub_emu_SOURCES): Likewise.
23823 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23824 * include/grub/bsdlabel.h: New file.
23825 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
23826 'get_name'.
23827 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
23828 (grub_partition_map_list): New variable.
23829 (grub_partition_map_register): Inline.
23830 (grub_partition_map_unregister): Likewise.
23831 (FOR_PARTITION_MAPS): New macro.
23832 (grub_partition_map_iterate): Removed.
23833 (grub_partition_get_start): Handle nested partitions.
23834 * include/grub/msdos_partition.h: Remove bsd-related entries.
23835 (grub_pc_partition): Remove.
23836 * kern/disk.c (grub_disk_close): Free partition data.
23837 (grub_disk_adjust_range): Handle nested partitions.
23838 * kern/partition.c (grub_partition_map_probe): New function.
23839 (grub_partition_probe): Parse name to number, handle subpartitions.
23840 (get_partmap): New function.
23841 (grub_partition_iterate): Handle subpartitions.
23842 (grub_partition_get_name): Likewise.
23843 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
23844 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
23845 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
23846 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
23847 Set 'number'.
23848 (acorn_partition_map_probe): Remove.
23849 (acorn_partition_map_get_name): Likewise.
23850 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
23851 Set 'number'.
23852 Set 'index' to 0 since there can be only one partition entry per sector.
23853 (amiga_partition_map_probe): Remove.
23854 (amiga_partition_map_get_name): Likewise.
23855 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
23856 Set 'number'.
23857 Set 'offset' and 'index' to real positions of partitions.
23858 (apple_partition_map_probe): Remove.
23859 (apple_partition_map_get_name): Likewise.
23860 * partmap/bsdlabel.c: New file.
23861 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
23862 Set 'number'.
23863 Allocate 'data' so it can be correctly freed.
23864 Set 'index' to offset inside sector.
23865 (gpt_partition_map_probe): Remove.
23866 (gpt_partition_map_get_name): Likewise.
23867 * partmap/msdos.c (grub_partition_parse): Remove.
23868 (pc_partition_map_iterate): Don't force raw access.
23869 Set 'number'.
23870 Make 'ext_offset' a local variable.
23871 (pc_partition_map_probe): Remove.
23872 (pc_partition_map_get_name): Remove.
23873 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
23874 Set 'number'.
23875 (sun_partition_map_probe): Remove.
23876 (sun_partition_map_get_name): Likewise.
23877 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
23878 (grub_pcpart_type): Likewise.
23879 * util/hostdisk.c (open_device): Handle new numbering scheme.
23880 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
23881 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
23882 * util/grub-probe.c (probe_partmap): Handle nested paritions.
23883 * util/grub-install.in: Insert all subpartition modules.
23884 * util/ieee1275/grub-install.in: Likewise.
23885
a3940f88
AG
238862010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
23887
23888 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
23889 grammar.
23890
21b99926 238912010-03-24 Colin Watson <cjwatson@ubuntu.com>
23892
23893 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
23894
bed1d352
CW
238952010-03-21 Colin Watson <cjwatson@ubuntu.com>
23896
23897 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
23898 match where 'make install' puts them.
23899 * util/i386/efi/grub-install.in: Likewise.
23900
c9f58427
CW
239012010-03-19 Colin Watson <cjwatson@ubuntu.com>
23902
23903 * .bzrignore: Add gentrigtables, grub-script-check,
23904 grub_script_check_init.c, grub_script_check_init.h, and
23905 trigtables.c.
23906
f84afb27
VS
239072010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
23908
23909 * kern/parser.c: Indented.
23910
ed0e3d30
VS
239112010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23912
23913 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
23914
0ea81d98
VS
239152010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
23918 alpha_mask_size == 0 case.
23919
0cdc2a09
BC
239202010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
23921
23922 GRUB shell lexer and parser improvements.
23923
23924 * conf/any-emu.rmk: Build rule updates.
23925 * conf/common.rmk: Likewise.
23926 * conf/i386-coreboot.rmk: Likewise.
23927 * conf/i386-efi.rmk: Likewise.
23928 * conf/i386-ieee1275.rmk: Likewise.
23929 * conf/i386-pc.rmk: Likewise.
23930 * conf/powerpc-ieee1275.rmk: Likewise.
23931 * conf/x86_64-efi.rmk: Likewise.
23932
23933 * configure.ac: Configure check for flex.
23934
23935 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
23936 types.
23937 (grub_lexer_param): Struct member updates.
23938 (grub_parser_param): Likewise.
23939 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
23940 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
23941 (grub_script_lexer_init): Prototype update.
23942 (grub_script_lexer_record_start): Likewise.
23943 (grub_script_lexer_record_stop): Likewise.
23944 (grub_script_lexer_yywrap): New function prototype.
23945 (grub_script_lexer_fini): Likewise.
23946 (grub_script_execute_argument_to_string): Removed by...
23947 (grub_script_execute_argument_to_argv): ...better version.
23948
23949 * script/execute.c (ROUND_UPTO): New macro.
23950 (grub_script_execute_cmdline): Out of memory fixes.
23951 (grub_script_execute_menuentry): Likewise.
23952 (grub_script_execute_argument_to_string): Removed. Update all
23953 users by...
23954 (grub_script_execute_argument_to_argv): ...better version.
23955 * script/function.c (grub_script_function_create): Use
23956 grub_script_execute_argument_to_argv instead of
23957 grub_script_execute_argument_to_string.
23958
23959 * script/lexer.c (check_varstate): Removed.
23960 (check_textstate): Removed.
23961 (grub_script_lexer_record_start): Likewise.
23962 (grub_script_lexer_record_stop): Likewise.
23963 (recordchar): Replaced with...
23964 (grub_script_lexer_record): ...new function.
23965 (nextchar): Removed.
23966 (grub_script_lexer_init): Rewritten.
23967 (grub_script_yylex): Rewritten.
23968 (append_newline): New function.
23969 (grub_script_lexer_yywrap): New function.
23970 (grub_script_lexer_fini): New function.
23971 (grub_script_yyerror): Sets error flag.
23972
23973 * script/yylex.l: New file.
23974 (grub_lexer_yyfree): Wrapper for flex yyffre.
23975 (grub_lexer_yyalloc): Likewise.
23976 (grub_lexer_yyrealloc): Likewise.
23977 * script/parser.y: Refactored.
23978
23979 * script/script.c (grub_script_arg_add): Out of memory fixes.
23980 (grub_script_add_arglist): Likewise.
23981 (grub_script_create_cmdline): Likewise.
23982 (grub_script_create_cmdmenu): Likewise.
23983 (grub_script_add_cmd): Likewise.
23984 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23985 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23986 unnecessary code.
23987
23988 * tests/grub_script_echo1.in: New testcase.
23989 * tests/grub_script_vars1.in: New testcase.
23990 * tests/grub_script_echo_keywords.in: New testcase.
23991
1d63a066
VS
239922010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23993
23994 Remove some redundancy in build system.
23995
23996 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23997 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23998 (TARGET_LDFLAGS): Add -nostdlib.
23999 (TARGET_IMG_LDFLAGS): Likewise.
24000 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
24001 anything since mmap isn't available.
24002 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
24003 Add util/time.c.
24004 (pkglib_MODULES): Remove reboot.mod.
24005 (reboot_mod_SOURCES): Removed.
24006 (reboot_mod_CFLAGS): Likewise.
24007 (reboot_mod_LDFLAGS): Likewise.
24008 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
24009 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
24010 (DEFSYMFILES): Add kernel_syms.lst.
24011 (kernel_img_HEADERS): Add common headers.
24012 (symlist.c): New target.
24013 (kernel_syms.lst): Likewise.
24014 (pkglib_MODULES): Add memdisk.mod.
24015 (memdisk_mod_SOURCES): New variable.
24016 (memdisk_mod_CFLAGS): Likewise.
24017 (memdisk_mod_LDFLAGS): Likewise.
24018 (pkglib_MODULES): Add reboot.mod.
24019 (reboot_mod_SOURCES): New variable.
24020 (reboot_mod_CFLAGS): Likewise.
24021 (reboot_mod_LDFLAGS): Likewise.
24022 (pkglib_MODULES): Add date.mod.
24023 (date_mod_SOURCES): New variable.
24024 (date_mod_CFLAGS): Likewise.
24025 (date_mod_LDFLAGS): Likewise.
24026 (pkglib_MODULES): Add datehook.mod.
24027 (datehook_mod_SOURCES): New variable.
24028 (datehook_mod_CFLAGS): Likewise.
24029 (datehook_mod_LDFLAGS): Likewise.
24030 (pkglib_MODULES): Add lsmmap.mod.
24031 (lsmmap_mod_SOURCES): New variable.
24032 (lsmmap_mod_CFLAGS): Likewise.
24033 (lsmmap_mod_LDFLAGS): Likewise.
24034 (pkglib_MODULES): Add boot.mod.
24035 (boot_mod_SOURCES): New variable.
24036 (boot_mod_CFLAGS): Likewise.
24037 (boot_mod_LDFLAGS): Likewise.
24038 * conf/i386-coreboot.rmk: Removed redundant parts.
24039 * conf/i386-ieee1275.rmk: Likewise.
24040 * conf/i386-pc.rmk: Likewise.
24041 * conf/mips-yeeloong.rmk: Likewise.
24042 * conf/mips.rmk: Likewise.
24043 * conf/powerpc-ieee1275.rmk: Likewise.
24044 * conf/sparc64-ieee1275.rmk: Likewise.
24045 * conf/x86_64-efi.rmk: Likewise.
24046 * conf/i386-coreboot.rmk: Moved qemu parts ..
24047 * conf/i386-qemu.rmk: ... here
24048 * conf/i386-efi.rmk: Moved common parts to...
24049 * conf/x86-efi.rmk: ... here.
24050 * conf/i386.rmk: Added modules common to all x86 variants.
24051 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
24052 * disk/memdisk.c: Remove grub/machine/kernel.h.
24053 * gensymlist.sh.in: Include symbol.h.
24054 * hook/datehook.c: Correct module name.
24055 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
24056 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
24057 * include/grub/i386/efi/serial.h: New file.
24058 * include/grub/x86_64/efi/serial.h: Likewise.
24059 * util/time.c: Likewise.
24060 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
24061
463ac55f
CK
240622010-03-14 Colin King <colin.king@ubuntu.com>
240632010-03-14 Colin Watson <cjwatson@ubuntu.com>
24064
24065 Shrink the pre-partition-table part of boot.img by eight bytes.
24066
24067 * boot/i386/pc/boot.S (ERR): New macro.
24068 (chs_mode): Use ERR.
24069 (geometry_error): Likewise.
24070 (hd_probe_error): Remove. This is only used once, so we wrwite
24071 it inline instead.
24072 (read_error): Instead of printing read_error_string, just set up
24073 %si and fall through to ...
24074 (error_message): ... this new function, also used by ERR.
24075
08e46ede
CW
240762010-03-14 Colin Watson <cjwatson@ubuntu.com>
24077
24078 Speed up consecutive hostdisk operations on the same device.
24079
24080 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
24081 (grub_util_biosdisk_open): Initialise disk->data.
24082 (struct linux_partition_cache): New structure.
24083 (linux_find_partition): Cache partition start positions; these are
24084 expensive to compute on every read and write.
24085 (open_device): Cache open file descriptor in disk->data, so that we
24086 don't have to reopen it and flush the buffer cache for consecutive
24087 operations on the same device.
24088 (grub_util_biosdisk_close): New function.
24089 (grub_util_biosdisk_dev): Set `close' member.
24090
24091 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
24092 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
24093 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24094 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
24095 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
24096
4a6d2d06
VS
240972010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 Compile parts of grub-emu as modules.
24100
24101 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
24102 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
24103 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
24104 (all-local): Add $(GRUB_EMU).
24105 (install-local): Install $(GRUB_EMU).
24106 (uninstall): Uninstall $(GRUB_EMU).
24107 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
24108 * kern/dl.c: Likewise.
24109 * commands/sleep.c: Not include machine/time.h.
24110 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
24111 (COMMON_CFLAGS): Likewise.
24112 (sbin_UTILITIES): Remove grub-emu.
24113 (grub_emu_SOURCES): Removed.
24114 (kernel_img_RELOCATABLE): New variable.
24115 (pkglib_PROGRAMS): Add kernel.img.
24116 (kernel_img_SOURCES): New variable
24117 (kernel_img_CFLAGS): Likewise.
24118 (kernel_img_LDFLAGS): Likewise.
24119 (TARGET_NO_STRIP): Likewise.
24120 (TARGET_NO_DYNAMIC_MODULES): Likewise.
24121 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
24122 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
24123 (grub-emu): New target.
24124 (GRUB_EMU): New variable.
24125 * configure.ac: Whitelist -emu as possible x86_64 architecture.
24126 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
24127 * loader/xnu.c: Likewise.
24128 * include/grub/pci.h: Likewise.
24129 * genemuinit.sh: New file.
24130 * genemuinitheader.sh: Likewise.
24131 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
24132 Support TARGET_NO_DYNAMIC_MODULES.
24133 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
24134 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
24135 * disk/loopback.c: Likewise.
24136 * font/font_cmd.c: Likewise.
24137 * partmap/acorn.c: Likewise.
24138 * partmap/amiga.c: Likewise.
24139 * partmap/apple.c: Likewise.
24140 * partmap/gpt.c: Likewise.
24141 * partmap/msdos.c: Likewise.
24142 * partmap/sun.c: Likewise.
24143 * parttool/msdospart.c: Likewise.
24144 * term/gfxterm.c: Likewise.
24145 * video/bitmap.c: Likewise.
24146 * video/readers/jpeg.c: Likewise.
24147 * video/readers/png.c: Likewise.
24148 * video/readers/tga.c: Likewise.
24149 * video/video.c: Likewise.
24150 * util/grub-emu.c (read_command_list): Removed.
24151 (main): Don't call util_init_nls.
24152 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
24153 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24154
91fdd2ed
VS
241552010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24156
24157 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24158 date.mod, datehook.mod.
24159 (datetime_mod_SOURCES): New variable.
24160 (datetime_mod_CFLAGS): Likewise.
24161 (datetime_mod_LDFLAGS): Likewise.
24162 (date_mod_SOURCES): Likewise.
24163 (date_mod_CFLAGS): Likewise.
24164 (date_mod_LDFLAGS): Likewise.
24165 (datehook_mod_SOURCES): Likewise.
24166 (datehook_mod_CFLAGS): Likewise.
24167 (datehook_mod_LDFLAGS): Likewise.
24168 * conf/sparc64-ieee1275.rmk: Likewise.
24169 * lib/ieee1275/datetime.c: New file.
24170
873ccae6
VS
241712010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24174 (ieee1275_fb_mod_SOURCES): New variable.
24175 (ieee1275_fb_mod_CFLAGS): Likewise.
24176 (ieee1275_fb_mod_LDFLAGS): Likewise.
24177 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24178 New proto.
24179 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24180 (HEAP_MAX_ADDR): Likewise.
24181 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24182 type.
24183 Correct stop condition.
24184 (grub_ieee1275_devices_iterate): New function.
24185 * video/ieee1275.c: New file.
24186
601c97c0
VS
241872010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24190
24191 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24192 as scratch.
24193 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24194 SCRATCH_PAD_DISKBOOT as scratch.
24195 (bootit): Pass Openfirmware pointer in %o4.
24196 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24197 of 0x200000.
24198 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24199 with util/grub-mkrawimage.c.
24200 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24201 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24202 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24203 (grub_aout_load) [GRUB_UTIL]: Likewise.
24204 * include/grub/kernel.h (grub_modules_get_end): New proto.
24205 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24206 (SCRATCH_PAD_BOOT): New definition.
24207 (SCRATCH_PAD_DISKBOOT): Likewise.
24208 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24209 * include/grub/sparc64/ieee1275/ieee1275.h
24210 (grub_ieee1275_original_stack): New variable
24211 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24212 New definition
24213 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24214 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24215 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24216 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24217 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24218 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24219 (grub_platform_image_format_t): New type.
24220 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24221 * kern/main.c (grub_modules_get_end)
24222 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24223 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24224 (codestart): Switch stacks.
24225 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24226 variable.
24227 (grub_heap_init): Use grub_modules_get_end.
24228 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24229 stack.
24230 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24231 (main): Likewise.
24232 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24233
d68b491e
TG
242342010-03-14 Thorsten Glaser <tg@mirbsd.org>
24235
24236 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24237
4e02ed50
MK
242382010-03-08 Matt Kraai <kraai@ftbfs.org>
24239
24240 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24241 bug #559005).
24242
1f15fc1e
VS
242432010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24244
24245 * genmoddep.awk: Output all missing symbols and not only first.
24246
fce5d8ff
VS
242472010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24248
24249 * NEWS: Put the date of 1.98 release.
24250
d1e8a02f
VS
242512010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24252
24253 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24254 ft2build.h.
24255
696fd607
VS
242562010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24257
24258 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24259 completition in the middle of string.
24260
33e2e6f3
VS
242612010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24262
24263 * util/grub-mkrescue.in: Use mktemp with explicit template.
24264
b1f6d291
VS
242652010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24266
24267 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24268
2ac227c7
VS
242692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24270
24271 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24272 right pointer.
24273
8f9a632b
VS
242742010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24275
24276 Fix FreeBSD compilation.
24277
24278 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24279 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24280
60b03859
VS
242812010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24282
24283 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24284
48a5a769
VS
242852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24286
24287 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24288
3ab4bd77
VS
242892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24290
24291 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24292
d116e0d8
RM
242932010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24294
24295 Support relative image path in theme file.
24296
24297 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24298 (image_set_property): Handle theme_dir and relative path.
24299
c7ef54aa
VS
243002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24301
24302 * configure.ac: Alias amd64 to x86_64.
24303
fcee14ed
VS
243042010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24305
24306 * NEWS: mention multiboot on EFI.
24307
d0780363
VS
243082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24309
24310 * kern/main.c (grub_load_modules): Handle errors from init functions of
24311 embeded modules.
24312
41168ea4
VS
243132010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24314
24315 * normal/autofs.c (autoload_fs_module): Handle errors.
24316
b54d93ac
VS
243172010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24318
24319 Disable linux.mod on qemu-mips since it's not functional and leads
24320 to compilation failure.
24321
24322 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24323 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24324 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24325 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24326 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24327 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24328 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24329 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24330 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24331 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24332 Reported by: BVK Chaitanya
24333
fc8345da
JU
243342010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24335
24336 * INSTALL: Add gettext as a dependency and add qemu to a new section
24337 "Prerequisites for make-check".
24338
4760f979
CF
243392010-03-04 Christian Franke <franke@computer.org>
24340
24341 * util/grub-pe2elf.c: Add missing include "progname.h".
24342
f209b5b2
VS
243432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24344
24345 * normal/crypto.c (read_crypto_list): Fix a typo.
24346 Reported by: Seth Goldberg.
24347
b4b7be98
VS
243482010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24349
24350 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 24351 Reported by: Seth Goldberg.
b4b7be98 24352
c0ee0385
VS
243532010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24354
24355 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24356 ascii.bitmaps.
24357
a8efbf64
VS
243582010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24359
24360 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 24361 Reported by: Seth Goldberg.
a8efbf64 24362
08dcd913
VS
243632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24364
24365 * util/i386/efi/grub-install.in: Copy gettext files.
24366
c4d0b332
VS
243672010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24368
24369 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24370
c6f2fe52
VS
243712010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24372
24373 Wait for user entry basing on presence of output rather than on errors.
24374
24375 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24376 (grub_install_newline_hook): Likewise.
24377 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24378 * normal/menu.c (show_menu): Check line_counter to determine presence
24379 of output.
24380 * normal/term.c (grub_normal_line_counter): New variable.
24381 (grub_normal_get_line_counter): New function.
24382 (grub_install_newline_hook): Likewise.
24383
5382b1e4
VS
243842010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24385
24386 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24387
5519963b
VS
243882010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24389
24390 * configure.ac: Update version to 1.98.
24391
72b28631
VS
243922010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24393
24394 * util/grub.d/10_linux.in (linux_entry): Don't default to
24395 gfxpayload=keep if Linux doesn't support video handover.
24396
c140a180
VS
243972010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24398
24399 Don't compile video modules on yeeloong since video subsystem is part
24400 of kernel.
24401
24402 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24403 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24404 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24405 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24406 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24407 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24408 * include/grub/bitmap_scale.h: Likewise.
24409 * include/grub/bufio.h: Likewise.
24410 * include/grub/font.h: Likewise.
24411 * include/grub/gfxterm.h: Likewise.
24412 * include/grub/video.h: Likewise.
24413 * include/grub/vbe.h: Don't include video_fb.h.
24414 * video/i386/pc/vbe.c: Include video_fb.h.
24415 * commands/i386/pc/vbetest.c: Include video.h.
24416
a0ca21c2
CW
244172010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24418
24419 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24420 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24421 default entry if GRUB_SAVEDEFAULT=true. This allows using
24422 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24423 saving a new default on every boot.
24424
4a8a763c
VS
244252010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24426
24427 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24428 * normal/term.c (read_terminal_list): Likewise.
24429 * normal/main.c (grub_normal_init_page): Likewise.
24430 (grub_normal_read_line_real): Likewise.
24431
607ffde2
VS
244322010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24433
24434 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24435 memory leak.
24436 Reported by: Seth Goldberg.
24437
2b8fa975
CW
244382010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24439
24440 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
24441 duplicate declaration of `start'.
24442
618307dd
VS
244432010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24444
24445 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
24446 filename.
24447 Reported by: Georgy Buranov
24448
7dd05b96 244492010-02-20 Carles Pina i Estany <carles@pina.cat>
24450
24451 * util/grub-mkrawimage.c (usage): Change string formatting to
24452 improve gettext.
24453
d1484a42
MRA
244542010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
24455
24456 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
24457 backspace keys.
24458
42b1d186
VS
244592010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24460
24461 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
24462 Reported by: Michael Suchanek.
24463
244642010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
24465
24466 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
24467 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
24468
d9f31a41
VS
244692010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
24470
24471 Remove any reference to non-free fonts.
24472
24473 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
24474 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
24475 uses non-free components.
24476 * font/font.c (grub_font_get_name): Remove example name.
24477 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
24478 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
24479 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
24480 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
24481
2793c71e
GB
244822010-02-16 Georgy Buranov <gburanov@gmail.com>
24483
24484 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
24485
402e3779
VS
244862010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24487
24488 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
24489 Double divisor.
24490 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
24491 features.
24492 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
24493
0dd1e0dd
VS
244942010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24495
24496 * gensymlist.sh.in: Use TARGET_CC instead of CC.
24497
6fa7cfce
ST
244982010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24499
24500 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
24501 * docs/grub.texi (Command-line and menu entry commands): Document play
24502 command.
24503
37c8483b
ST
245042010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24505
24506 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
24507 parse arguments as inline tempo and notes. Move code for playing notes
24508 to...
24509 (play): ... new function.
24510
14da0fb7
ST
245112010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24512
24513 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
24514 grub_uint16_t instead of short.
24515 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
24516 disk from little endian to cpu endianness.
24517
04459e70
ST
245182010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24519
24520 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
24521 GRUB_TICKS_PER_SECOND instead of 120.
24522
a0876943
VS
245232010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24524
24525 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
24526 escape sequence after \e.
24527
e29f95dc
VS
245282010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24529
24530 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
24531 non-ASCII characters.
24532
d27859b2
VS
245332010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24534
24535 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
24536 set root in single quotes to prevent \, from being unescaped.
24537
bc028f2f
VS
245382010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24539
24540 Prevent unknown commands from stopping menuentry execution.
24541
24542 * script/execute.c (grub_script_execute_cmdline): Print error after
24543 unknown command.
24544
095f5f82
VS
245452010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24546
24547 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
24548 Reported by: Pavel Pisa.
24549
8c717950
VS
245502010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24551
24552 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
24553
904935c3
VS
245542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24555
24556 Merge grub_ieee1275_map_physical into grub_map and rename to
24557 grub_ieee1275_map
24558
24559 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
24560 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
24561 Remove.
24562 * kern/ieee1275/openfw.c (grub_map): Rename to ...
24563 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
24564 necessary.
24565 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
24566
5b59a4e3
VS
245672010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24568
24569 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
24570 opening and not after.
24571
69e137e8
VS
245722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24573
24574 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
24575 constants.
24576
2c0fcc36
VS
245772010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24578
24579 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
24580 (alloc_phys): Use ALIGN_UP instead of align_addr.
24581
8c6052ce
VS
245822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24583
24584 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
24585
17cec782
VS
245862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24587
24588 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
24589
e0128bbd
VS
245902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24591
24592 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
24593 verbose dprintf.
24594
ca62070b
VS
245952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24596
24597 Fix over-4GiB seek on sparc64.
24598
24599 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
24600 Replace pos_i and pos_lo with pos. All users updated.
24601 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24602 New constant.
24603 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24604 Likewise.
24605 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
24606 and pos_lo.
24607
bdca2607
VS
246082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24609
24610 * util/grub-mkrawimage.c (main): Call set_program_name.
24611
da278c4d
VS
246122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24613
24614 Properly align 64-bit targets.
24615
24616 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
24617 (generate_image): Use ALIGN_ADDR.
24618
b274d734
VS
246192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24620
24621 Properly create cross-endian images.
24622
24623 * include/grub/types.h (grub_host_to_target_addr): New macro
24624 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
24625
82da2062
VS
246262010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24627
24628 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
24629
7cae4377
VS
246302010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24631
24632 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
24633
24634 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
24635 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
24636 (grub_linux_boot): Divide by 64K when on VESA.
24637
65a533e7
VS
246382010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24639
24640 Support GRUB_GFXPAYLOAD_LINUX.
24641
24642 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
24643 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
24644
dd01d397
VS
246452010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24646
24647 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
24648 to show messages instead of discarding them.
24649 Process errors after executing command and not before. Keep old method
24650 too as precaution.
24651
660960d6
VS
246522010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
24653
24654 * configure.ac: Check for ft2build.h.
24655
62509f04
VS
246562010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24657
24658 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
24659
473df63d
VS
246602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24661
24662 * genkernsyms.sh.in: Use TARGET_CC.
24663
c98d2a13
CW
246642010-02-07 Colin Watson <cjwatson@ubuntu.com>
24665
24666 * NEWS: Update.
24667
6e14234c
VS
246682010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24669
24670 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
24671 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
24672 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 24673
b255e9cf
YB
246742010-02-07 Yves Blusseau <blusseau@zetam.org>
24675
6e14234c 24676 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 24677
98e6959d
VS
246782010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24679
24680 Fix warnings in grub-emu when compiling with maximum warning options.
24681
24682 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
24683 (grub_arch_modules_addr): Return 0 and not NULL.
24684 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 24685 (xstrdup): Use newstr instead of dup.
f88d801b
VS
24686 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
24687 of disk to dsk to avoid shadowing.
74e4934e
VS
24688 (find_free_slot): Fix prototype.
24689 * util/getroot.c (grub_util_is_dmraid): Make static.
24690 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
24691 Add missing prototype.
24692 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 24693
74e31b5c
VS
246942010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24695
24696 * loader/i386/linux.c (grub_linux_setup_video): Handle error
24697 appropriately.
24698
6b2ad14b
VS
246992010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24700
24701 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
24702 code out.
24703
8f891adc
VS
247042010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24705
24706 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
24707 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
24708 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
24709 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
24710 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
24711 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
24712
74b45184
VS
247132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24714
24715 * include/grub/err.h (grub_err_printf): Don't export.
24716
a4bced77
VS
247172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24718
24719 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
24720
007d0695
VS
247212010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24722
24723 * include/grub/i18n.h (grub_gettext_dummy): Removed.
24724 * kern/misc.c (grub_gettext_dummy): Make static.
24725
b6c0d9c2
VS
247262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24727
24728 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
24729 by non-valid ones.
24730 * kern/term.c (grub_putchar): Likewise.
24731
f51a90d0
VS
247322010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24733
24734 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
24735 buggy hook call and memory leak.
24736
6846cec5
VS
247372010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24738
24739 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
24740
468d69fe
VS
247412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24742
24743 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
24744
51906b8c
VS
247452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24746
24747 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
24748 modevar.
24749 Return grub_errno on allocation error.
24750
09706ce5
VS
247512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24752
24753 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
24754
911df80c
YB
247552010-02-06 Yves Blusseau <blusseau@zetam.org>
24756
24757 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
24758 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
24759
3746a6bc
VS
247602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24761
24762 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
24763 non-pxe disk.
24764 (grub_pxefs_open): Likewise.
24765
09706ce5
VS
247662010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24767
24768 * util/grub.d/10_hurd.in: Add --class information to menuentries.
24769 * util/grub.d/10_kfreebsd.in: Likewise.
24770 * util/grub.d/10_linux.in: Likewise.
24771
7cc192d9
VS
247722010-02-06 Colin D Bennett <colin@gibibit.com>
24773
24774 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
24775 (gfxmenu_mod_SOURCES): New variable.
24776 (gfxmenu_mod_CFLAGS): Likewise.
24777 (gfxmenu_mod_LDFLAGS): Likewise.
24778 * include/grub/term.h (grub_term_set_current_output): Declare
24779 argument as const.
24780 * docs/gfxmenu-theme-example.txt: New file.
24781 * gfxmenu/gfxmenu.c: Likewise.
24782 * gfxmenu/gui_box.c: Likewise.
24783 * gfxmenu/gui_canvas.c: Likewise.
24784 * gfxmenu/gui_circular_progress.c: Likewise.
24785 * gfxmenu/gui_image.c: Likewise.
24786 * gfxmenu/gui_label.c: Likewise.
24787 * gfxmenu/gui_list.c: Likewise.
24788 * gfxmenu/gui_progress_bar.c: Likewise.
24789 * gfxmenu/gui_string_util.c: Likewise.
24790 * gfxmenu/gui_util.c: Likewise.
24791 * gfxmenu/icon_manager.c: Likewise.
24792 * gfxmenu/model.c: Likewise.
24793 * gfxmenu/named_colors.c: Likewise.
24794 * gfxmenu/theme_loader.c: Likewise.
24795 * gfxmenu/view.c: Likewise.
24796 * gfxmenu/widget-box.c: Likewise.
24797 * include/grub/gfxmenu_model.h: Likewise.
24798 * include/grub/gfxmenu_view.h: Likewise.
24799 * include/grub/gfxwidgets.h: Likewise.
24800 * include/grub/gui.h: Likewise.
24801 * include/grub/gui_string_util.h: Likewise.
24802 * include/grub/icon_manager.h: Likewise.
24803
248042010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24805
24806 Agglomerate scrolling in gfxterm.
24807
24808 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
24809 (grub_virtual_screen_setup): Initialise 'total_screen'.
24810 (write_char): Split to ...
24811 (paint_char): ... this ...
24812 (write_char): ... and this.
24813 (paint_char): Handle delayed scrolling.
24814 (draw_cursor): Likewise.
24815 (scroll_up): Split to ...
24816 (real_scroll): ... this ...
24817 (scroll_up): ... and this.
24818 (real_scroll): Handle multi-line scroll and draw below-the-bottom
24819 characters.
24820 (grub_gfxterm_refresh): Call real_scroll.
24821
248222010-02-06 Colin D Bennett <colin@gibibit.com>
24823
24824 * include/grub/misc.h (grub_iscntrl): New inline function.
24825 (grub_isalnum): Likewise.
24826 (grub_strtol): Likewise.
24827
248282010-02-06 Colin D Bennett <colin@gibibit.com>
24829
24830 * normal/menu_text.c (get_entry_number): Move from here ...
24831 * normal/menu.c (get_entry_number): ... moved here.
24832 * include/grub/menu.h (grub_menu_get_default_entry_index):
24833 New prototype.
24834 * normal/menu.c (grub_menu_get_default_entry_index): New function.
24835 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
24836 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
24837 (grub_menu_viewer_should_return): Likewise.
24838 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
24839 * normal/menu_text.c (run_menu): Enable menu switching.
24840 * normal/menu_viewer.c (should_return): New variable.
24841 (menu_viewer_changed): Likewise.
24842 (grub_menu_viewer_show_menu): Handle menu viewer changes.
24843 (grub_menu_viewer_should_return): New function.
24844 (menuviewer_write_hook): Likewise.
24845 (grub_menu_viewer_init): Likewise.
24846
248472010-02-06 Colin D Bennet <colin@gibibit.com>
248482010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24849
24850 Support for gfxterm in a window.
24851
24852 * include/grub/gfxterm.h: New file.
24853 * include/grub/video.h (struct grub_video_rect): New declaration.
24854 (grub_video_rect_t): Likewise.
24855 * term/gfxterm.c (struct grub_gfxterm_window): New type.
24856 (refcount): New variable.
24857 (render_target): Likewise.
24858 (window): Likewise.
24859 (repaint_callback): Likewise.
24860 (grub_virtual_screen_setup): Use 'render_target'.
24861 (init_window): New function.
24862 (grub_gfxterm_init_window): Likewise.
24863 (grub_gfxterm_init): Check reference counter.
24864 Use init_window.
24865 (destroy_window): New function.
24866 (grub_gfxterm_destroy_window): Likewise.
24867 (grub_gfxterm_fini): Check reference counter.
24868 Use destroy_window.
24869 (redraw_screen_rect): Restore viewport.
24870 Use 'render_target' and 'window'.
24871 Call 'repaint_callback'.
24872 (write_char): Use 'render_target'.
24873 (draw_cursor): Likewise.
24874 (scroll_up): Restore viewport.
24875 Use 'render_target' and 'window'.
24876 Call 'repaint_callback'.
24877 (grub_gfxterm_cls): Likewise.
24878 (grub_gfxterm_refresh): Use 'window'.
24879 (grub_gfxterm_set_repaint_callback): New function.
24880 (grub_gfxterm_background_image_cmd): Use 'window'.
24881 (grub_gfxterm_get_term): New function.
24882 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
24883
248842010-02-06 Colin D Bennett <colin@gibibit.com>
24885
24886 Bitmap scaling support.
24887
24888 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
24889 (bitmap_scale_mod_SOURCES): New variable.
24890 (bitmap_scale_mod_CFLAGS): Likewise.
24891 (bitmap_scale_mod_LDFLAGS): Likewise.
24892 * include/grub/bitmap_scale.h: New file.
24893 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
24894 (background_image_cmd_options): New variable.
24895 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
24896 (cmd): Rename and change type to ...
24897 (background_image_cmd_handle): ... this. All users updated.
24898 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
24899 * video/bitmap_scale.c: New file.
24900
249012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24902
24903 SDL support.
24904
24905 * Makefile.in (LIBSDL): New variable.
24906 (enable_grub_emu_sdl): Likewise.
24907 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
24908 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
24909 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
24910 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
24911 * util/sdl.c: New file.
24912
249132010-02-06 Colin D Bennett <colin@gibibit.com>
249142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24915
24916 Double buffering support.
24917
24918 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
24919 * include/grub/video.h: Update comment.
24920 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
24921 New type.
24922 (grub_video_fb_doublebuf_blit_init): New prototype.
24923 * term/gfxterm.c (scroll_up): Support double buffering.
24924 (grub_gfxterm_refresh): Likewise.
24925 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
24926 (grub_video_fb_doublebuf_blit_init): Likewise.
24927 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
24928 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
24929 'displayed_page', 'render_page' and 'update_screen'.
24930 (grub_video_vbe_fini): Free offscreen buffer.
24931 (doublebuf_pageflipping_commit): New function.
24932 (doublebuf_pageflipping_update_screen): Likewise.
24933 (doublebuf_pageflipping_init): Likewise.
24934 (double_buffering_init): Likewise.
24935 (grub_video_vbe_setup): Enable doublebuffering.
24936 (grub_video_vbe_swap_buffers): Implement.
24937 (grub_video_vbe_set_active_render_target): Handle double buffering.
24938 (grub_video_vbe_get_active_render_target): Likewise.
24939 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
24940 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
24941 (grub_video_vbe_enable_double_buffering): Likewise.
24942 (grub_video_vbe_swap_buffers): Use update_screen.
24943 (grub_video_set_mode): Use double buffering.
24944
249452010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24946
24947 * maintainance/gentrigtables.py: Remove.
24948 * lib/trig.c: Likewise.
24949
24950 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
24951
24952 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
24953 `trigtables.c'.
24954 (trigtables.c): New rule.
24955 (gentrigtables): Likewise.
24956 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
24957
249582010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24959
24960 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
24961 integer constants.
24962
249632010-02-06 Colin D Bennet <colin@gibibit.com>
24964
24965 Trigonometry support.
24966
24967 * include/grub/trig.h: New file.
24968 * lib/trig.c: Likewise.
24969 * maintainance/gentrigtables.py: Likewise.
24970 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24971 (trig_mod_SOURCES): New variable.
24972 (trig_mod_CFLAGS): Likewise.
24973 (trig_mod_LDFLAGS): Likewise.
24974
5562834e
VS
249752010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24976
24977 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24978 disk devices.
24979
4f8528fc
VS
249802010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24981
24982 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24983 error.
24984
2b4068e9
VS
249852010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24986
24987 * util/hostdisk.c (open_device): Don't use partition device when reading
24988 before the partition.
24989 (grub_util_biosdisk_read): Don't read from partition and before the
24990 partition in single operation.
24991 (grub_util_biosdisk_write): Don't write to partition and before the
24992 partition in single operation.
24993
399f6e4d
TL
249942010-02-03 Torsten Landschoff <torsten@debian.org>
24995
24996 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24997 last sectors.
24998
996649b0
VS
249992010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25000
25001 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
25002 CDROM reads.
25003 (grub_biosdisk_write): Refuse to write to CDROM.
25004
3b205d4d
VS
250052010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25006
25007 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
25008
61e89d9d
VS
250092010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25010
25011 * font/font.c (find_glyph): Check that bmp_idx is available before
25012 using it.
25013 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
25014 with (font == NULL).
25015
bf7fcba2
CS
250162010-01-28 Christian Schmitt <chris@ilovelinux.de>
25017
25018 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
25019
f45d2663
BC
250202010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
25021
25022 * include/grub/script_sh.h (sourcecode): Add const qualifier.
25023 * util/grub-script-check.c (getline): Fix empty lines case.
25024
ec1444e6
RM
250252010-01-28 Robert Millan <rmh.grub@aybabtu.com>
25026
25027 * Makefile.in (check): Exit with fail status when one of the tests
25028 fails.
25029 * tests/example_functional_test.c (example_test): Fix reversed assert.
25030 * tests/example_unit_test.c (example_test): Likewise.
25031
2e1cb9bb
CW
250322010-01-28 Colin Watson <cjwatson@ubuntu.com>
25033
25034 * util/grub.d/10_linux.in: This script does not use any of the
25035 contents of gettext.sh, only the external command `gettext', so stop
25036 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
25037 the same prefix as GRUB.)
25038 * util/grub.d/10_kfreebsd.in: Likewise.
25039
63533ab0
VS
250402010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25041
25042 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
25043 of the line.
25044
989e1f93
VS
250452010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25046
25047 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25048 last sectors.
25049
e709ebe2
VS
250502010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25051
25052 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
25053 having a 4KiB and not 32KiB buffer size.
25054
27dea7ed
RM
250552010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25056
25057 * util/hostfs.c: Include `<errno.h>'.
25058 (grub_hostfs_read): Handle errors from fseeko() and fread().
25059
67667b9c
RM
250602010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25061
25062 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
25063 loop when using read hooks on files whose size isn't sector-aligned.
25064
c294d9d8
RM
250652010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25066
25067 Remove unused parameter.
25068
25069 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
25070 (grub_iso9660_open): Remove initialization of `data->length'.
25071
af75a9f1
RM
250722010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25073
25074 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
25075 memleak conditions.
25076
254e2ce5 250772010-01-27 Carles Pina i Estany <carles@pina.cat>
25078
25079 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
25080 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
25081
b510928c 250822010-01-26 Carles Pina i Estany <carles@pina.cat>
25083
25084 * util/bin2h.c (usage): Fix warning (space after backslash).
25085
aa2f9dd2 250862010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 25087
25088 * font/font.c: Include `grub/fontformat.h.
25089 Remove font file format constants.
25090 (grub_font_load): Use the new macros.
25091 * include/grub/fontformat.h: New file.
25092 * util/grub-mkfont.c: Include `grub/fontformat.c'.
25093 (write_font_pf2): Use the new macros.
25094
94e7e712
RM
250952010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25096
25097 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
25098 does.
25099
3973a59a
RM
251002010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25101
25102 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
25103
25104 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
25105 (_start): Macroify `0x7F'.
25106
25107 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
25108 (make_install_device): Use "(pxe)" as fallback prefix when booting
25109 via PXE.
25110
42e0cba3
GS
251112010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
25112
25113 * configure.ac: Reset LIBS after check for libgcc symbols.
25114
847effd8
CW
251152010-01-25 Colin Watson <cjwatson@ubuntu.com>
25116
25117 * util/hostdisk.c (open_device): Add trailing newline to debug
25118 message.
25119
ea4a7e35
GS
251202010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
25121
25122 * configure.ac: Check for `limits.h'.
25123 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
25124
67951a53
RM
251252010-01-24 Robert Millan <rmh.grub@aybabtu.com>
25126
25127 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
25128 capitalize error strings.
25129
c273d4ce
ST
251302010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
25131
25132 * util/grub.d/10_hurd.in: Add a recovery mode.
25133
69be5b74
VS
251342010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
25135
25136 * configure.ac: Check for libgcc symbols with -nostdlib.
25137
fc9e5810
BC
251382010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
25139
25140 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
25141
4b358c0a
VS
251422010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25143
25144 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
25145 stack since heap may be unavailable at that point.
25146 (grub_ofconsole_gotoxy): Likewise.
25147
454fcd1c
VS
251482010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25149
25150 * configure.ac: Check for _restgpr_14_x.
25151 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
25152 and _savegpr_* prototypes.
25153
566863ca
RM
251542010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25155
25156 Use generic grub_reboot() for i386-efi.
25157
25158 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25159 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25160 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25161
bf86e59a
VS
251622010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25163
25164 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25165 presence of "prefix" variable as it breaks when normal.mod is
25166 embedded.
25167
d645e0f8
VS
251682010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25169
25170 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25171 stack since heap is unavailable at that point.
25172
f9ab2e25
VS
251732010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25174
25175 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25176 (grub_freebsd_bootinfo): Rewritten.
25177 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25178
01fc7054
VS
251792010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25180
25181 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25182
caab4fd6
RM
251832010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25184
25185 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25186 domain now.
25187
67eb1427
FZ
251882010-01-20 Felix Zielcke <fzielcke@z-51.de>
25189
25190 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25191 around for handling "/" to the correct fix. Fix a memory leak. Use
25192 xstrdup instead of strdup.
25193
a9ed4ff3
VS
251942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25195
25196 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25197
251982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
25199
25200 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25201
25202 * font/font.c (struct grub_font): New member 'bmp_idx'.
25203 (font_init): Initialise 'bmp_idx'.
25204 (load_font_index): Fill 'bmp_idx'.
25205 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25206
48209f4f
VS
252072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25208
25209 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25210 unnecessary calls.
25211
9f0a4bb7
VS
252122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25213
25214 Move context handling out of the kernel.
25215
25216 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25217 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25218 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25219 * conf/i386-efi.rmk: Likewise.
25220 * conf/i386-ieee1275.rmk: Likewise.
25221 * conf/i386-pc.rmk: Likewise.
25222 * conf/powerpc-ieee1275.rmk: Likewise.
25223 * conf/sparc64-ieee1275.rmk: Likewise.
25224 * conf/x86_64-efi.rmk: Likewise.
25225 * include/grub/env.h: Include grub/menu.h.
25226 (grub_env_var_type): Removed.
25227 (grub_env_var): Replaced field 'type' with 'global'.
25228 (grub_env_find): New prototype.
25229 (grub_env_context_open): Remove EXPORT_FUNC.
25230 (grub_env_context_close): Likewise.
25231 (grub_env_export): Likewise.
25232 (grub_env_set_data_slot): Removed.
25233 (grub_env_get_data_slot): Likewise.
25234 (grub_env_unset_data_slot): Likewise.
25235 (grub_env_unset_menu): New prototype.
25236 (grub_env_set_menu): Likewise.
25237 (grub_env_get_menu): Likewise.
25238 * include/grub/env_private.h: New file.
25239 * include/grub/normal.h (grub_context_init): New prototype.
25240 (grub_context_fini): Likewise.
25241 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25242 * normal/context.c (grub_cmd_export): ... to here.
25243 * kern/env.c: Include env_private.h.
25244 (HASHSZ): Moved to include/grub/env_private.h.
25245 (grub_env_context): Likewise.
25246 (grub_env_sorted_var): Likewise.
25247 (current_context): Renamed from this ...
25248 (grub_current_context): ...to this. 'static' removed. All users updated.
25249 (grub_env_find): Removed 'static'.
25250 (grub_env_context_open): Moved to normal/context.c.
25251 (grub_env_context_close): Likewise.
25252 (grub_env_export): Likewise.
25253 (mangle_data_slot_name): Removed.
25254 (grub_env_set_data_slot): Likewise.
25255 (grub_env_get_data_slot): Likewise.
25256 (grub_env_unset_data_slot): Likewise.
25257 * kern/main.c (grub_set_root_dev): Don't export root.
25258 It will be done later.
25259 (grub_main): Don't export prefix.
25260 It will be done later.
25261 * normal/context.c: New file.
25262 * normal/main.c (free_menu): Use grub_env_unset_menu.
25263 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25264 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25265 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25266 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25267
8dd35b8c
VS
252682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25269
25270 setpci support.
25271
25272 * commands/setpci.c: New file.
25273 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25274 (setpci_mod_SOURCES): New variable.
25275 (setpci_mod_CFLAGS): Likewise.
25276 (setpci_mod_LDFLAGS): Likewise.
25277
449193d5
VS
252782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25279
25280 Byte-addressable PCI configuration space.
25281
25282 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25283 dword address.
25284 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25285 GRUB_PCI_REG_CACHELINE.
25286 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25287 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25288 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25289 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25290 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25291 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25292 grub_pci_make_address.
25293 (lock_rom_area): Likewise.
25294 * commands/lspci.c (grub_lspci_iter): Use macroses
25295 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25296 of grub_pci_make_address.
25297 * disk/ata.c (grub_ata_pciinit): Likewise.
25298 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25299 (GRUB_PCI_REG_VENDOR): Likewise.
25300 (GRUB_PCI_REG_DEVICE): Likewise.
25301 (GRUB_PCI_REG_COMMAND): Likewise.
25302 (GRUB_PCI_REG_STATUS): Likewise.
25303 (GRUB_PCI_REG_REVISION): Likewise.
25304 (GRUB_PCI_REG_CLASS): Likewise.
25305 (GRUB_PCI_REG_CACHELINE): Likewise.
25306 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25307 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25308 (GRUB_PCI_REG_BIST): Likewise.
25309 (GRUB_PCI_REG_ADDRESSES): Likewise.
25310 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25311 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25312 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25313 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25314 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25315 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25316 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25317 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25318 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25319 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25320 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25321 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25322 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25323 (GRUB_PCI_REG_MIN_GNT): Likewise.
25324 (GRUB_PCI_REG_MAX_LAT): Likewise.
25325 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25326 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25327 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 25328 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
25329 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25330 space.
25331
96d73208
RM
253322010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25333
25334 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25335 can be reliably determined to be supported.
25336
d4484482
RM
253372010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25338
25339 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25340 that VESA is supported.
25341 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25342 supported.
25343
00308ecf
VS
253442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25345
25346 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25347
f66924a4
RM
253482010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25349
25350 * util/misc.c (make_system_path_relative_to_its_root): Work around
25351 special-casing of "/", as previous incarnation of this routine did.
25352
cbca0ada
VS
253532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25354
25355 Fix any-emu compilation.
25356
25357 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25358 * grub_bin2h_SOURCES: New variable.
25359
34a66d99
RM
253602010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25361
25362 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25363
94fabf58
RM
253642010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25365
25366 * util/grub.d/00_header.in: Fix handling of locale_dir.
25367
02cf98ca
VS
253682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25369
25370 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25371 as possible unifont location (Gentoo).
25372 Reported by: Alexander Brüning
25373
327dbcd7
VS
253742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25375
25376 Don't try to generate lists for kernel.img.
25377
25378 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25379 (pkglib_MODULES): Remove kernel.img.
25380 (kernel_img_EXPORTS): Removed.
25381 (kernel_img_RELOCATABLE): New variable.
25382 * conf/x86_64-efi.rmk: Likewise.
25383 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25384
ca467290
VS
253852010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25386
25387 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25388 grub_xasprintf or grub_snprintf.
25389 (grub_vsprintf): Likewise.
25390 (grub_snprintf): New proto.
25391 (grub_vsnprintf): Likewise.
25392 (grub_xasprintf): Likewise.
25393 (grub_xvasprintf): Likewise.
25394 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25395 (grub_sprintf): Removed.
25396 (grub_vsnprintf): New function.
25397 (grub_snprintf): Likewise.
25398 (grub_xvasprintf): Likewise.
25399 (grub_xasprintf): Likewise.
25400 (grub_vsprintf): Renamed to ...
25401 (grub_vsnprintf_real): ...this. New argument max_len.
25402
aca655fd
BC
254032010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25404
25405 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25406 fix grub-script-check warning.
25407
7ee92c32
VS
254082010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25409
25410 * include/grub/font.h (grub_font_load): Fix prototype.
25411
f80927ca
VS
254122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25413
25414 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25415
119c50ea
VS
254162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25417
25418 * include/grub/x86_64/at_keyboard.h: New file.
25419
47d5f3c1
VS
254202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25421
25422 * loader/mips/linux.c: Include missing grub/i18n.h.
25423
55ff5266
RM
254242009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25425
25426 * normal/menu.c (notify_execution_failure): Clarify error message.
25427
c893cc87
RM
254282009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25429
25430 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25431 return value (and revert all return statements). Update users.
25432
917dd370
CW
254332010-01-20 Dan Merillat <debian@dan.merillat.org>
25434
25435 * kern/device.c (grub_device_iterate): Allocate new part_ent
25436 structure based on sizeof (*p) rather than sizeof (p->next), to
25437 account for structure padding.
25438
25439 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
25440 disk is NULL, which might happen for LVM physical volumes with no
25441 LVM signature.
25442
d4a4ee57
RM
254432009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25444
25445 * loader/mips/linux.c (grub_cmd_initrd)
25446 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
25447
254482009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25449
25450 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
25451 (grub_video_video_init, grub_video_bitmap_init)
25452 (grub_font_manager_init, grub_term_gfxterm_init)
25453 (grub_at_keyboard_init): New extern declarations.
25454 (grub_machine_init): Initialize gfxterm and at_keyboard.
25455
25456 * kern/main.c (grub_main): Revert grub_printf delay kludge.
25457
25458 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
25459 `gfxterm.mod' into core image.
25460
25461 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25462 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25463 (kernel_img_FORMAT): Copy to ...
25464
25465 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25466 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25467 (kernel_img_FORMAT): ... here, and ...
25468
25469 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25470 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25471 (kernel_img_FORMAT): ... here.
25472
25473 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
25474 and input (at_keyboard) terminals in kernel.
25475 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
25476
25477 (pkglib_MODULES): Remove `pci.mod'.
25478 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
25479 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
25480 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25481 (at_keyboard_mod_LDFLAGS): Remove variables.
25482
254832010-01-11 Felix Zielcke <fzielcke@z-51.de>
25484
25485 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
25486
254872009-12-10 Robert Millan <rmh.grub@aybabtu.com>
25488
25489 * include/grub/mips/libgcc.h: Only export symbols for functions
25490 that libgcc provides.
25491
254922009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
25493
25494 MIPS support.
25495
25496 * bus/bonito.c: New file.
25497 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
25498 GRUB_PCI_NUM_DEVICES.
25499 * term/i386/pc/serial.c: Move to ...
25500 * term/serial.c: ... here. All users updated.
25501 * util/i386/pc/grub-mkimage.c: Move to ...
25502 * util/grub-mkrawimage.c: ... here. All users updated.
25503 * term/i386/pc/at_keyboard.c: Move to ...
25504 * term/at_keyboard.c: ... here. All users updated.
25505 * conf/mips-qemu-mips.rmk: New file.
25506 * conf/mips-yeeloong.rmk: Likewise.
25507 * conf/mips.rmk: Likewise.
25508 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
25509 mipsel-qemu-mips.
25510 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
25511 to port addresses.
25512 (grub_ata_pciinit): Support CS5536.
25513 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
25514 * font/font_cmd.c (loadfont_command): Open file before passing it to
25515 grub_font_load.
25516 (pseudo_file_read): New function.
25517 (pseudo_file_close): Likewise.
25518 (pseudo_fs): New structure.
25519 (load_font_module): New function.
25520 (GRUB_MOD_INIT(font_manager)): Load embedded font.
25521 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
25522 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
25523 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
25524 * include/grub/i386/at_keyboard.h: Split into ...
25525 * include/grub/at_keyboard.h: ... this ...
25526 * include/grub/i386/at_keyboard.h: ... and this.
25527 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
25528 New prototype.
25529 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
25530 updated.
25531 (grub_elf64_size): Likewise.
25532 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
25533 filename.
25534 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
25535 * include/grub/i386/coreboot/serial.h: Rewritten.
25536 * include/grub/i386/ieee1275/serial.h: Include
25537 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
25538 * include/grub/i386/pc/serial.h: Moved from here ...
25539 * include/grub/serial.h: ... to here. All users updated.
25540 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
25541 (GRUB_PCI_NUM_BUS): Likewise.
25542 (GRUB_PCI_NUM_DEVICES): Likewise.
25543 (grub_pci_device_map_range): Add missing volatile keyword.
25544 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
25545 * include/grub/mips/at_keyboard.h: New file.
25546 * include/grub/mips/cache.h: Likewise.
25547 * include/grub/mips/io.h: Likewise.
25548 * include/grub/mips/kernel.h: Likewise.
25549 * include/grub/mips/libgcc.h: Likewise.
25550 * include/grub/mips/pci.h: Likewise.
25551 * include/grub/mips/qemu-mips/boot.h: Likewise.
25552 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25553 * include/grub/mips/qemu-mips/loader.h: Likewise.
25554 * include/grub/mips/qemu-mips/memory.h: Likewise.
25555 * include/grub/mips/qemu-mips/serial.h: Likewise.
25556 * include/grub/mips/qemu-mips/time.h: Likewise.
25557 * include/grub/mips/relocator.h: Likewise.
25558 * include/grub/mips/time.h: Likewise.
25559 * include/grub/mips/types.h: Likewise.
25560 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
25561 * include/grub/mips/yeeloong/boot.h: Likewise.
25562 * include/grub/mips/yeeloong/kernel.h: Likewise.
25563 * include/grub/mips/yeeloong/loader.h: Likewise.
25564 * include/grub/mips/yeeloong/memory.h: Likewise.
25565 * include/grub/mips/yeeloong/pci.h: Likewise.
25566 * include/grub/mips/yeeloong/serial.h: Likewise.
25567 * include/grub/mips/yeeloong/time.h: Likewise.
25568 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
25569 * kern/elf.c (grub_elf32_size): New parameter. All users
25570 updated.
25571 (grub_elf64_size): Likewise.
25572 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
25573 Load modules before saying "Welcome to GRUB!".
25574 Call grub_refresh after saying "Welcome to GRUB!".
25575 * kern/mips/cache.S: New file.
25576 * kern/mips/cache_flush.S: Likewise.
25577 * kern/mips/dl.c: Likewise.
25578 * kern/mips/init.c: Likewise.
25579 * kern/mips/qemu-mips/init.c: Likewise.
25580 * kern/mips/startup.S: Likewise.
25581 * kern/mips/yeeloong/init.c: Likewise.
25582 * kern/term.c (grub_putcode): Handle NULL terminal.
25583 (grub_getcharwidth): Likewise.
25584 (grub_getkey): Likewise.
25585 (grub_checkkey): Likewise.
25586 (grub_getkeystatus): Likewise.
25587 (grub_getxy): Likewise.
25588 (grub_getwh): Likewise.
25589 (grub_gotoxy): Likewise.
25590 (grub_cls): Likewise.
25591 (grub_setcolorstate): Likewise.
25592 (grub_setcolor): Likewise.
25593 (grub_getcolor): Likewise.
25594 (grub_refresh): Likewise.
25595 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
25596 (write_jump): Add hatch nop.
25597 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
25598 * lib/mips/setjmp.S: New file.
25599 * loader/mips/linux.c: Likewise.
25600 * term/i386/pc/at_keyboard.c: Move from here ...
25601 * term/at_keyboard.c: ... to here.
25602 * term/i386/pc/serial.c: Moved from here ...
25603 * term/serial.c: ... to here. All users updated.
25604 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
25605 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
25606 (serial_translate_key_sequence): Avoid deadlock.
25607 (grub_serial_getkey): Handle backspace.
25608 (grub_serial_putchar): Fix newline handling.
25609 * util/i386/pc/grub-mkimage.c: Move from here ...
25610 * util/grub-mkrawimage.c: ... to here. All users updated.
25611 (generate_image): New parameters 'font_path' and 'format'.
25612 Support embedding font.
25613 Use grub_host_to_target* instead of grub_cpu_to_le*.
25614 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
25615 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
25616 (options): New option "--font".
25617 (usage): Likewise.
25618 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
25619 (main): Handle "--font".
25620 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
25621 (grub_virtual_screen_setup): Set bg_color_display.
25622 (redraw_screen_rect): Use bg_color_display instead of incorrect
25623 bg_color.
25624 (grub_gfxterm_cls): Likewise.
25625 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
25626 Support embedding config file.
25627 (add_segments): Likewise.
25628 (options): New option "--config".
25629 (main): Handle "--config".
25630 * video/sm712.c: New file.
25631
25c2b5b3
RM
256322010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25633
25634 Fix parallel builds.
25635
25636 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
25637 font.c depend on ascii.h).
25638
256392010-01-12 Carles Pina i Estany <carles@pina.cat>
25640
25641 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
25642
256432010-01-11 Carles Pina i Estany <carles@pina.cat>
25644
25645 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
25646 By default: disabled.
25647 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
25648 parameter.
25649
256502010-01-10 Carles Pina i Estany <carles@pina.cat>
25651
25652 * font/font.c: Update copyright years.
25653 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
25654
256552010-01-10 Carles Pina i Estany <carles@pina.cat>
25656
25657 * font/font.c: Include `ascii.h'.
25658 (ASCII_BITMAP_SIZE): New macro.
25659 (ascii_font_glyph): Define.
25660 (ascii_glyph_lookup): New function.
25661 (grub_font_get_string_width): Change comment. If glyph not found, use
25662 ascii_glyph_lookup.
25663 (grub_font_get_glyph_with_fallback): If glyph not available returns
25664 ascii_glyph_lookup.
25665 * util/grub-mkfont.c (file_formats): New enum.
25666 (options): Add `ascii-bitmaps' new option.
25667 (usage): Add `asii-bitmaps' new option.
25668 (write_font_ascii_bitmap): New function.
25669 (write_font): Rename to ...
25670 (write_font_p2): ... this. Remove print_glyphs call.
25671 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
25672 used. Call print_glyphs.
25673 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
25674
256752010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25676
25677 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
25678 (grub_bin2h_SOURCES): New variable.
25679 * util/bin2h.c: New file.
25680
915fc1b8
VS
256812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25682
25683 * include/multiboot.h: Resynced with spec.
25684 * include/multiboot2.h: Likewise.
25685 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
25686 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
25687
9444b678
RM
256882010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25689
25690 * include/grub/term.h (grub_term_register_input,
25691 grub_term_register_output): Check return of terminal init()
25692 routines, and abort if errors are raised.
25693
25694 * commands/terminal.c: Update copyright year.
25695
cba98e8d
RM
256962010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25697
25698 * commands/terminal.c (grub_cmd_terminal_input)
25699 (grub_cmd_terminal_output): Check return of terminal init()
25700 routines, and abort if errors are raised.
25701
6f7db5d6
VS
257022010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25703
25704 * include/grub/i386/bsd.h: Fix include pathes.
25705
262bff8d
VS
257062010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25707
25708 Add missing *BSD copyright headers.
25709
25710 * include/grub/aout.h: Add BSD licence.
25711 * include/grub/i386/bsd.h: Parts under different licences moved to ...
25712 * include/grub/i386/freebsd_linker.h: ... here,
25713 * include/grub/i386/freebsd_reboot.h: ... here,
25714 * include/grub/i386/netbsd_bootinfo.h: ... here,
25715 * include/grub/i386/netbsd_reboot.h: ... here,
25716 * include/grub/i386/openbsd_bootarg.h: ... here,
25717 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
25718 licence to each file.
25719
b2cab848
RM
257202010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25721
25722 * acinclude.m4: Remove `nop' assembly instruction; it's not
25723 implemented by all architectures.
25724
2cb6be4b
RM
257252010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25726
25727 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
25728 ELILO. This is no longer necessary.
25729
a2eaee15
BC
257302010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
25731
25732 Added new tool, grub-scrit-check to verify grub.cfg syntax.
25733
25734 * util/grub-script-check.c: grub-script-check tool.
25735 * conf/common.rmk: Make rules for grub-script-check.
25736
88d17012
RM
257372010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25738
25739 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
25740 spotting it back in 2008. Shame on me for forgetting he did.
25741
25742 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
25743
8040619d
RM
257442010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25745
25746 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
25747 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
25748 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
25749 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
25750 (GRUB_VIDEO_TYPE_EFI): Rename to ...
25751 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
25752
a0c2a0f6
RM
257532010-01-17 Robert Millan <rmh.grub@aybabtu.com>
25754
25755 * include/grub/test.h: Add license header.
25756 * tests/example_functional_test.c: Likewise.
25757 * tests/example_unit_test.c: Likewise.
25758 * tests/lib/functional_test.c: Likewise.
25759 * tests/lib/test.c: Likewise.
25760 * tests/lib/unit_test.c: Likewise.
25761
b0b13907
VS
257622010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
25763
25764 Use flag-based instead of hook-based video mode selection and "auto"
25765 keyword.
25766
25767 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
25768 (grub_video_set_mode): Changed prototype. All users updated.
25769 (grub_video_check_mode_flag): New inline function.
25770 * video/video.c (parse_modespec): New function.
25771 (grub_video_set_mode): Parse flags and keywords.
25772
ea379330 257732010-01-17 Carles Pina i Estany <carles@pina.cat>
25774
25775 * util/misc.c (grub_util_info): Fix the order of the parameters in a
25776 fprintf call.
25777
e15c215e
FZ
257782010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
25779
25780 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
25781
409ae1c9 257822010-01-16 Carles Pina i Estany <carles@pina.cat>
25783
25784 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
25785 string.
25786 * util/grub-emu.c (usage): Likewise.
25787 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
25788 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25789 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25790 * util/i386/pc/grub-setup.c (usage): Likewise.
25791
70a14d3d 257922010-01-16 Carles Pina i Estany <carles@pina.cat>
25793
25794 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
25795 the message.
25796 (grub_util_info): Likewise.
25797 (grub_util_error): Likewise.
25798 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
25799 and/or new lines in `grub_util_warna', `grub_util_info',
25800 `grub_util_error' calls.
25801 * util/getroot.c: Likewise.
25802 * util/grub-editenv.c: Likewise.
25803 * util/grub-emu.c: Likewise.
25804 * util/grub-fstest.c: Likewise.
25805 * util/grub-mkdevicemap.c: Likewise.
25806 * util/grub-mkfont.c: Likewise.
25807 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25808 * util/grub-mkrelpath.c: Likewise.
25809 * util/grub-pe2elf.c: Likewise.
25810 * util/grub-probe.c: Likewise.
25811 * util/hostdisk.c: Likewise.
25812 * util/i386/efi/grub-mkimage.c: Likewise.
25813 * util/i386/pc/grub-mkimage.c: Likewise.
25814 * util/i386/pc/grub-setup.c: Likewise.
25815 * util/ieee1275/ofpath.c: Likewise.
25816 * util/mkisofs/eltorito.c: Likewise.
25817 * util/mkisofs/rock.c: Likewise.
25818 * util/mkisofs/write.c: Likewise.
25819 * util/raid.c: Likewise.
25820 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25821 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25822
a0b766fc
VS
258232010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25824
25825 Enable multiboot on non-pc.
25826
25827 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
25828 multiboot.mod and multiboot2.mod to ...
25829 * conf/i386.rmk (pkglib_MODULES): ... here.
25830 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
25831 Moved to ...
25832 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
25833 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
25834 Moved to ...
25835 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
25836 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
25837 Moved to ...
25838 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
25839 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
25840 Moved to ...
25841 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
25842 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
25843 relocator.mod.
25844 (ata_mod_SOURCES): Removed.
25845 (ata_mod_CFLAGS): Likewise.
25846 (ata_mod_LDFLAGS): Likewise.
25847 (relocator_mod_SOURCES): Removed.
25848 (relocator_mod_CFLAGS): Likewise.
25849 (relocator_mod_ASFLAGS): Likewise.
25850 (relocator_mod_LDFLAGS): Likewise.
25851 Include i386.mk.
25852 * include/grub/x86_64/multiboot.h: New file.
25853 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
25854 Terminate EFI.
25855
884ade56
VS
258562010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25857
25858 Video multiboot support.
25859
25860 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
25861 New prototype.
25862 * include/multiboot.h: Resynced with multiboot specification.
25863 * include/multiboot2.h: Likewise.
25864 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
25865 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
25866 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
25867 (HAS_VGA_TEXT): Likewise.
25868 (accepts_video): New variable.
25869 (grub_multiboot_set_accepts_video): New function.
25870 (grub_multiboot_get_mbi_size): Account for video structures.
25871 (set_video_mode): New function.
25872 (retrieve_video_parameters): Likewise.
25873 (grub_multiboot_make_mbi): Fill video fields.
25874
0d90e8a6
VS
258752010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25876
25877 Video driver ids.
25878
25879 * include/grub/video.h (grub_video_driver_id): New type.
25880 (grub_video_adapter): New member 'id'. All users updated.
25881 (grub_video_get_driver_id): New proto.
25882 * video/video.c (grub_video_get_driver_id): New function.
25883
5c71db1b 258842010-01-14 Carles Pina i Estany <carles@pina.cat>
25885
25886 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
25887 `var=val'.
25888
cca15b52 258892010-01-14 Carles Pina i Estany <carles@pina.cat>
25890
25891 * normal/cmdline.c (print_completion): Gettextizze.
25892
c586fbb2 258932001-01-14 Carles Pina i Estany <carles@pina.cat>
25894
25895 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
25896
ba2f6848 258972010-01-14 Carles Pina i Estany <carles@pina.cat>
25898
25899 * gettext/gettext.c (grub_gettext_translate): Push and pop
25900 grub_errno.
25901 (grub_gettext_delete_list): Change comment style.
25902 * kern/err.c (grub_error): Gettextizze.
25903 (grub_fatal): Gettextizze.
25904
0a46429a
RM
259052010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25906
25907 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
25908 (grub_linux16_real_boot): ... this.
25909 * kern/i386/loader.S: Likewise.
25910 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
25911 (grub_linux16_boot): New function. Switches to text mode and calls
25912 grub_linux16_real_boot().
25913
25914 * loader/i386/bsd.c: Include `<grub/video.h>'.
25915 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
25916 text mode before calling grub_unix_real_boot().
25917
25918 * loader/i386/multiboot.c: Include `<grub/video.h>'.
25919 (grub_multiboot_boot): Switch to text mode before calling
25920 grub_relocator32_boot().
25921
25922 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
25923 (grub_chainloader_boot): Switch to text mode before calling
25924 grub_chainloader_real_boot().
25925
d6f93a66
RM
259262010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
259272010-01-05 Colin Watson <cjwatson@ubuntu.com>
25928
25929 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
25930 non-empty value.
25931
259322010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
259332010-01-05 Colin Watson <cjwatson@ubuntu.com>
25934
25935 * util/grub.d/00_header.in: Define a "savedefault" function for use
25936 in menu entries.
25937 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
25938
259392010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
259402010-01-05 Colin Watson <cjwatson@ubuntu.com>
25941
25942 * util/grub-mkconfig_lib.in (save_default_entry): Only set
25943 saved_entry if boot_once is unset.
25944 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
25945 previous saved entry (i.e. grub-reboot).
25946
259472009-12-08 Colin Watson <cjwatson@ubuntu.com>
25948
25949 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
25950
259512009-12-08 Colin Watson <cjwatson@ubuntu.com>
25952
25953 * util/grub.d/00_header.in: Use `set var=val' rather than plain
25954 `var=val'.
25955 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
25956
259572009-12-08 Colin Watson <cjwatson@ubuntu.com>
25958
25959 * util/grub-reboot.in: Fix --version output.
25960 * util/grub-set-default.in: Likewise.
25961
259622009-12-08 Colin Watson <cjwatson@ubuntu.com>
25963
25964 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25965 blocks.
25966
259672009-12-08 Colin Watson <cjwatson@ubuntu.com>
25968
25969 * util/grub.d/00_header.in: Quote the value assigned to `default',
25970 in case it contains spaces.
25971
259722009-12-08 Colin Watson <cjwatson@ubuntu.com>
25973
25974 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25975 `save_default_entry' call from the macosx case to the linux case.
25976
259772009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
259782009-10-25 Colin Watson <cjwatson@ubuntu.com>
25979
25980 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25981 in `chosen' environment variable.
25982 * normal/menu_text.c (get_entry_number): Check if the variable
25983 matches the title of a menu entry.
25984 (run_menu): Pass menu to get_entry_number.
25985
25986 * util/grub-reboot.in: New file.
25987 * util/grub-set-default.in: New file.
25988 * conf/common.rmk (grub-reboot): New utility.
25989 (grub-set-default): New utility.
25990
25991 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25992 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25993 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25994 move it to `saved_entry' for the next boot. Load environment on
25995 initialisation.
25996 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25997 * util/grub.d/10_hurd.in: Likewise.
25998 * util/grub.d/10_linux.in (linux_entry): Likewise.
25999 * util/grub.d/10_windows.in: Likewise.
26000 * util/grub.d/30_os-prober.in: Likewise.
26001
26002 * util/grub-install.in: Create environment block.
26003 * util/i386/efi/grub-install.in: Likewise.
26004 * util/ieee1275/grub-install.in: Likewise.
26005 * util/sparc64/ieee1275/grub-install.in: Likewise.
26006
0934d184
BC
260072010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
26008
26009 Unit testing framework for GRUB.
26010
26011 * Makefile.in: Test framework build rules for 'make check'.
26012 * conf/tests.rmk: Build rules for individual tests and framework.
26013
26014 * include/grub/test.h: Header file for whitebox tests.
26015 * tests/lib/functional_test.c: Framework support for whitebox
26016 functional tests.
26017 * tests/lib/test.c: Common whitebox testing code for unit and
26018 functional tests.
26019 * tests/lib/unit_test.c: Framework support for whitebox unit
26020 tests.
26021
26022 * tests/util/grub-shell-tester.in: Support utility for grub-script
26023 tests.
26024 * tests/util/grub-shell.in: Utility to execute grub-script
26025 commands in a Qemu instance.
26026
26027 * tests/example_functional_test.c: Example whitebox functional
26028 test.
26029 * tests/example_grub_script_test.in: Example grub-script test.
26030 * tests/example_scripted_test.in: Example scripted test.
26031 * tests/example_unit_test.c: Example whitebox unit test.
26032
9c4ffeeb
VS
260332010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
26034
26035 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
26036 Add loader/i386/multiboot_mbi.c.
26037 (multiboot2_mod_SOURCES): Likewise.
26038 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
26039 (multiboot2_mod_SOURCES): Likewise.
26040 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
26041 (grub_multiboot_make_mbi): Likewise.
26042 (grub_multiboot_free_mbi): Likewise.
26043 (grub_multiboot_init_mbi): Likewise.
26044 (grub_multiboot_add_module): Likewise.
26045 (grub_multiboot_set_bootdev): Likewise.
26046 * loader/i386/multiboot.c (mbi): Removed.
26047 (mbi_dest): Likewise.
26048 (alloc_mbi): New variable.
26049 (grub_multiboot_payload_size): Removed. All users updated.
26050 (grub_multiboot_pure_size): New variable.
26051 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
26052 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
26053 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
26054 (grub_fill_multiboot_mmap): Likewise.
26055 (grub_multiboot_get_bootdev): Likewise.
26056 (grub_multiboot): Use multiboot_mbi functions.
26057 * loader/i386/multiboot_mbi.c: New file.
26058
17383dfe
VS
260592010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26060
26061 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
26062 it would result in module crash.
26063
c1f28820
VS
260642010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26065
26066 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
26067 (grub_ofconsole_getwh): Split to ...
26068 (grub_ofconsole_getwh): ... this.
26069 (grub_ofconsole_dimensions): ...and this.
26070 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
26071
58655a16
RM
260722010-01-13 Robert Millan <rmh.grub@aybabtu.com>
26073
26074 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
26075
10891398
VS
260762010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26077
26078 * loader/i386/pc/multiboot2.c: Removed stalled file.
26079
0b8a223c
VS
260802010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26081
26082 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
26083 Reported by: Grégoire Sutre
26084
92ab12b0
RM
260852010-01-11 Robert Millan <rmh.grub@aybabtu.com>
26086
26087 * util/misc.c (canonicalize_file_name): New function.
26088 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
26089 instead of realpath().
26090
a788afb6
CW
260912010-01-11 Colin Watson <cjwatson@ubuntu.com>
26092
26093 * util/grub-install.in (usage): Clarify meaning of --root-directory,
26094 and make it clearer that it's optional. Based on confusion
26095 witnessed on IRC.
26096
ffa8e3d2
VS
260972010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26098
26099 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
26100 in premature implicit newline.
26101
e9060a9d
VS
261022010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26103
26104 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
26105 which resulted in garbled command line at the end of screen.
26106
f0d0c0b7
RM
261072010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26108
26109 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
26110 initialization with similar approach as with other Linux loaders.
26111
0e60bae7
RM
261122010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26113
26114 Fix i386-ieee1275 build.
26115
26116 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
26117 and grub_term_height() for video_{width,height} initialization.
26118
261192010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
26120
26121 Fix grub-emu build.
26122
26123 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
26124
cdb3f378
RM
261252010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
261262010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26127
26128 Support for multiple terminals.
26129
26130 * Makefile.in (pkglib_DATA): terminal.lst.
26131 (terminal.lst): New target.
26132 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
26133 (GRUB_MOD_INIT(handler)): Likewise.
26134 (GRUB_MOD_FINI(handler)): Likewise.
26135 * commands/help.c (grub_cmd_help): Handle multiple terminals.
26136 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
26137 * commands/sleep.c (do_print): Use grub_term_restore_pos.
26138 (grub_cmd_sleep): Use grub_term_save_pos.
26139 * commands/terminal.c: New file.
26140 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
26141 commands/terminal.c and lib/charset.c.
26142 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
26143 (pkglib_MODULES): Add terminal.mod.
26144 (terminal_mod_SOURCES): New variable.
26145 (terminal_mod_CFLAGS): Likewise.
26146 (terminal_mod_LDFLAGS): Likewise.
26147 * genhandlerlist.sh: Don't handle terminals.
26148 * genmk.rb: Generate terminal-*.lst.
26149 * genterminallist.sh: New file.
26150 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
26151 (grub_is_valid_utf8): Likewise.
26152 (grub_utf8_to_ucs4_alloc): Likewise.
26153 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26154 (grub_menu_register_viewer): Changed argument.
26155 (grub_menu_try_text): New proto.
26156 (grub_gfxmenu_try_hook): New declaration.
26157 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26158 (grub_menu_init_page): Additional argument term.
26159 (grub_normal_init_page): Likewise.
26160 (grub_cmdline_get): Arguments simplified.
26161 (grub_utf8_to_ucs4_alloc): Removed.
26162 (grub_print_ucs4): Additional argument term.
26163 (grub_getstringwidth): Likewise.
26164 (grub_print_message_indented): Likewise.
26165 (grub_menu_text_register_instances): New proto.
26166 (grub_show_menu): Likewise.
26167 (read_terminal_list): Likewise.
26168 (grub_set_more): Likewise.
26169 * include/grub/parser.h: Include handler.h.
26170 * include/grub/reader.h: Rewritten.
26171 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26172 (GRUB_TERM_WIDTH): Changed to function.
26173 (GRUB_TERM_HEIGHT): Likewise.
26174 (GRUB_TERM_BORDER_WIDTH): Likewise.
26175 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26176 (GRUB_TERM_NUM_ENTRIES): Likewise.
26177 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26178 (GRUB_TERM_CURSOR_X): Likewise.
26179 (grub_term_input_class): Likewise.
26180 (grub_term_output_class): Likewise.
26181 (grub_term_outputs_disabled): New declaration.
26182 (grub_term_inputs_disabled): Likewise.
26183 (grub_term_outputs): Likewise.
26184 (grub_term_inputs): Likewise.
26185 (grub_term_register_input): Rewritten.
26186 (grub_term_register_output): Likewise.
26187 (grub_term_unregister_input): Likewise.
26188 (grub_term_unregister_output): Likewise.
26189 (FOR_ACTIVE_TERM_INPUTS): New macro.
26190 (FOR_DISABLED_TERM_INPUTS): Likewise.
26191 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26192 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26193 * include/grub/terminfo.h: Add oterm argument to all protypes.
26194 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26195 Use grub_rescue_run.
26196 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26197 All users updated.
26198 * kern/reader.c: Removed. All users updated.
26199 * kern/rescue_reader.c (grub_rescue_init): Removed.
26200 (grub_rescue_reader): Likewise.
26201 (grub_register_rescue_reader): Likewise.
26202 (grub_rescue_run): New function based on kern/reader.c.
26203 * kern/term.c: Adapted for multiterm.
26204 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26205 (grub_is_valid_utf8): Likewise.
26206 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26207 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26208 right terminal.
26209 * loader/i386/linux.c (grub_linux_boot): Likewise.
26210 * normal/auth.c (grub_username_get): New function.
26211 (grub_auth_check_authentication): Use grub_username_get.
26212 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26213 * normal/color.c: Adapt for multiterm.
26214 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26215 (grub_normal_init_page): Additional argument term.
26216 (read_lists): Call read_terminal_lists.
26217 (grub_enter_normal_mode): Call grub_cmdline_run.
26218 Handle grub_normal_exit_level.
26219 (grub_cmd_normal): Make reentrant.
26220 (grub_cmd_normal_exit): New function.
26221 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26222 * normal/menu.c: Adapt for multiterm.
26223 * normal/menu_entry.c: Likewise.
26224 * normal/menu_text.c: Likewise.
26225 * normal/menu_viewer.c: Removed. All users updated.
26226 * normal/term.c: New file.
26227 * util/console.c: Change order of includes to workaround a bug in
26228 ncurses headers.
26229 * term/terminfo.c: New argument oterm on all exported functions.
26230 All users updated.
26231 * util/grub-editenv.c (grub_term_input_class): Removed.
26232 (grub_term_output_class): Likewise.
26233
1a064917
RM
262342010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26235
26236 Make loader output a bit more user-friendly.
26237
26238 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26239 is being loaded. Likewise for the Hurd.
26240
26241 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26242 that kernel of FreeBSD ${version} is being loaded.
26243
26244 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26245 grub_dprintf().
26246 (grub_cmd_initrd): Likewise.
26247 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26248 that Linux ${version} is being loaded. Likewise for initrd.
26249
5ce0a83a 262502010-01-09 Carles Pina i Estany <carles@pina.cat>
26251
26252 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26253
809bbfeb 262542010-01-08 Carles Pina i Estany <carles@pina.cat>
26255
26256 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26257 (GRUB_MOD_INIT): Gettextizze.
26258 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26259 (GRUB_MOD_INIT): Gettextizze.
26260 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26261 (grub_cmd_linux): Capitalise Linux.
26262 (GRUB_MOD_INIT): Gettextizze.
26263 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26264 (grub_cmd_linux): Capitalise Linux.
26265 (GRUB_MOD_INIT): Gettextizze.
26266 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26267 (grub_cmd_linux): Capitalise Linux.
26268 (GRUB_MOD_INIT): Gettextizze.
26269 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26270 (GRUB_MOD_INIT): Gettextizze.
26271 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26272 (grub_cmd_linux): Capitalise Linux.
26273 (GRUB_MOD_INIT): Gettextizze.
26274 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26275 (grub_cpu_xnu_init): Gettextizze.
26276 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26277 (GRUB_MOD_INIT): Gettextizze.
26278 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26279 (GRUB_MOD_INIT): Gettextizze.
26280 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26281 (grub_linux_load64): Capitalise Linux.
26282 (GRUB_MOD_INIT): Gettextizze.
26283 * loader/xnu.c: Include `<grub/i18n.h>'.
26284 (GRUB_MOD_INIT): Gettextizze.
26285 * po/POTFILES: Add `loader/efi/appleloader.c',
26286 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26287 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26288 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26289 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26290 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26291 and `loader/xnu.c'.
26292
b394b2ca
RM
262932010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26294
26295 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26296
262972010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
26298
26299 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26300 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26301 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26302
bc8b32b3
RM
263032010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26304
26305 Reset Multiboot 2 support. New loader implements the draft in
26306 /branches/multiboot2 and shares as much code as possible with the
26307 production Multiboot 1 implementation.
26308
26309 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26310 * loader/multiboot2.c: Likewise.
26311 * loader/i386/multiboot_helper.S: Likewise.
26312 * include/multiboot2.h: Replace with latest version from the draft
26313 in /branches/multiboot2.
26314
26315 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26316 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26317 and `loader/multiboot2.c'.
26318 (pkglib_MODULES): Add `multiboot2.mod'.
26319 (multiboot2_mod_SOURCES): New variable.
26320 (multiboot2_mod_LDFLAGS): Likewise.
26321 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26322
26323 * conf/i386-pc.rmk: Likewise.
26324
26325 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26326 (multiboot_mod_SOURCES): Remove variable.
26327 (multiboot_mod_LDFLAGS): Likewise.
26328 (multiboot_mod_CFLAGS): Likewise.
26329
26330 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26331 `<multiboot2.h>' instead of `<multiboot.h>'.
26332 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26333 (MULTIBOOT_HEADER_MAGIC): New macros.
26334
26335 * loader/multiboot_loader.c (module_version_status): Remove variable.
26336 (find_multi_boot2_header): Remove function.
26337 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26338 logic. Always check for the Multiboot version we're compiling for.
26339 (grub_cmd_module_loader): Likewise.
26340 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26341 command instead of `multiboot'.
26342
5d2c52b8
RM
263432010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26344
26345 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26346 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26347 all users.
26348
53108d92
RM
263492010-01-07 Robert Millan <rmh.grub@aybabtu.com>
263502010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26351
26352 Fix breakage introduced with previous commit.
26353
26354 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26355 commands.
26356 * normal/handler.c (read_handler_list): Revert part of previous commit
26357 affecting this file.
26358 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26359 (grub_normal_execute): ... here.
26360
e2e936b2
RM
263612010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26362
26363 Merge prefix-redefinition-fix branch.
26364
26365 * normal/autofs.c (read_fs_list): Make function capable of being
26366 run multiple times, gracefuly replacing the previous data
26367 structures.
26368 * normal/dyncmd.c (read_command_list): Likewise.
26369 * normal/handler.c (read_handler_list): Likewise.
26370 * normal/main.c (read_lists): New function. Calls all the
26371 list reading functions.
26372 (grub_normal_execute): Use read_lists() instead of calling all
26373 list reading functions explicitly. Register read_lists() as a
26374 variable hook attached to ${prefix}.
26375
607a3701
VS
263762010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26377
26378 Merge crypto branch.
26379
26380 * Makefile.in (pkglib_DATA): Add crypto.lst.
26381 (crypto.lst): New target.
26382 * commands/hashsum.c: New file.
26383 * commands/password.c (check_password): Use grub_crypto_memcmp.
26384 * commands/password_pbkdf2.c: New file.
26385 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26386 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26387 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26388 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26389 -I$(srcdir)/lib/libgcrypt_wrap.
26390 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26391 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26392 password_pbkdf2.mod.
26393 (crypto_mod_SOURCES): New variable.
26394 (crypto_mod_CFLAGS): Likewise.
26395 (crypto_mod_LDFLAGS): Likewise.
26396 (hashsum_mod_SOURCES): New variable.
26397 (hashsum_mod_CFLAGS): Likewise.
26398 (hashsum_mod_LDFLAGS): Likewise.
26399 (pbkdf2_mod_SOURCES): New variable.
26400 (pbkdf2_mod_CFLAGS): Likewise.
26401 (pbkdf2_mod_LDFLAGS): Likewise.
26402 (password_pbkdf2_mod_SOURCES): New variable.
26403 (password_pbkdf2_mod_CFLAGS): Likewise.
26404 (password_pbkdf2_mod_LDFLAGS): Likewise.
26405 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26406 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26407 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26408 Include conf/gcry.rmk.
26409 * include/grub/auth.h: Rewritten.
26410 * include/grub/crypto.h: New file.
26411 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26412 * include/grub/normal.h (read_crypto_list): New prototype.
26413 * lib/crypto.c: New file.
26414 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26415 * lib/pbkdf2.c: Likewise.
26416 * normal/auth.c (grub_auth_strcmp): Removed.
26417 (grub_iswordseparator): Likewise.
26418 (grub_auth_strword): Likewise.
26419 (is_authenticated): Use grub_strword.
26420 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26421 and grub_strword. Pass entered password to authentication callback.
26422 * normal/crypto.c: New file.
26423 * normal/main.c: Call read_crypto_list.
26424 * util/grub-mkpasswd-pbkdf2.c: New file.
26425 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26426
42841caa
VS
264272010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26428
26429 Fix descent and ascent calculation.
26430
26431 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26432 (options): New option "asce".
26433 (usage): Likewise.
26434 (add_char): Ignore invalid glyphs for descent calculation.
26435 Calculate ascent from actual content.
26436 (print_glyphs): Use 'asce'.
26437 (write_font): Likewise. Allow ascent override.
26438 (main): Handle "asce" option.
26439
e7730de7 264402010-01-06 Carles Pina i Estany <carles@pina.cat>
26441
26442 * kern/err.c: Include `<grub/i18n.h>'.
26443 (grub_print_error): Add full stop. Gettextizze.
26444 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
26445 (grub_bsd_load_elf): Capitalise ELF.
26446 (grub_cmd_freebsd_loadenv): Add `s' in error string.
26447 (grub_cmd_freebsd_module): Likewise.
26448 (grub_cmd_freebsd_module_elf): Likewise.
26449 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
26450
40e3a41f 264512010-01-06 Carles Pina i Estany <carles@pina.cat>
26452
26453 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
26454 * commands/search_file.c (HELP_MESSAGE): New macro.
26455 * commands/search_label.c (HELP_MESSAGE): Likewise.
26456 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
26457 * po/POTFILES: Add `commands/search_file.c',
26458 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
26459 `commands/search.c'.
26460
83507e68
RM
264612010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26462
26463 * config.rpath: Update from Gnulib.
26464
465c787b
YB
264652010-01-05 Yves Blusseau <blusseau@zetam.org>
26466
26467 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
26468
6581dd3a
YB
264692010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
26470
26471 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
26472
3bff18c5
CW
264732010-01-05 Colin Watson <cjwatson@ubuntu.com>
26474
26475 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
26476 arguments to fread so that we get a return value in bytes, rather
26477 than something that will normally be rounded down to 0.
26478 Adjust error handling to avoid producing garbage when size_t is not
26479 the same size as long long.
26480
a1368118
CW
264812010-01-05 Colin Watson <cjwatson@ubuntu.com>
26482
26483 * util/mkisofs/write.c (padblock_write): Check return value of
26484 fread.
26485
7c302978
RM
264862010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26487
26488 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
26489 floppy images now.
26490
26491 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
26492
e33ace06
RM
264932010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26494
26495 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
26496 instead of manual alignment.
26497 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
26498 verbose). Avoid attempts to read past end of the device
26499 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
26500 but GRUB_DISK_CACHE_SIZE may exceed that).
26501
4b856776
RM
265022010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26503
26504 * commands/crc.c (grub_cmd_crc): Abort on read errors.
26505 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
26506 it to upper layer.
26507
52c2d97f
VS
265082010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26509
26510 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
26511 New constant.
26512 (grub_efi_piwg_device_path): New structure
26513 (grub_efi_piwg_device_path_t): New type.
26514 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
26515 (devpath_1): Transform to a structure. All users updated.
26516 (devpath_2): Likewise.
26517 (devpath_3): Likewise.
26518 (devpath_4): Likewise.
26519 (devpath_5): Likewise.
26520
98ff6a54
VS
265212010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26522
26523 * loader/efi/appleloader.c: Restored. Update all users.
26524
3a73dcb6
RM
265252010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26526
26527 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
26528
26529 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
26530 (struct boot_blocklist): Move from here ...
26531 * include/grub/i386/pc/boot.h [ASM_FILE]
26532 (struct grub_boot_blocklist): ... to here. Update all users.
26533 (setup): Only initialize `start' member of `first_block'
26534 structure. Add assert() calls to verify the other members.
26535
26536 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
26537 (generate_image): Fix broken blocklist length initialization.
26538 Add assert() call to verify blocklist `segment' field.
26539
ab0eeb0c
RM
265402010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26541
26542 * loader/efi/appleloader.c: Remove. Update all users.
26543
58bc8bd5
RM
265442010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26545
26546 * boot/i386/pc/boot.S: Update copyright year.
26547 * boot/i386/pc/cdboot.S: Likewise.
26548 * boot/i386/pc/diskboot.S: Likewise.
26549 * boot/i386/pc/lnxboot.S: Likewise.
26550 * boot/i386/pc/pxeboot.S: Likewise.
26551 * bus/pci.c: Likewise.
26552 * commands/cmp.c: Likewise.
26553 * commands/help.c: Likewise.
26554 * commands/hexdump.c: Likewise.
26555 * commands/i386/pc/halt.c: Likewise.
26556 * commands/i386/pc/play.c: Likewise.
26557 * commands/i386/pc/vbeinfo.c: Likewise.
26558 * commands/ls.c: Likewise.
26559 * commands/test.c: Likewise.
26560 * disk/dmraid_nvidia.c: Likewise.
26561 * disk/i386/pc/biosdisk.c: Likewise.
26562 * disk/ieee1275/nand.c: Likewise.
26563 * disk/ieee1275/ofdisk.c: Likewise.
26564 * disk/lvm.c: Likewise.
26565 * disk/raid.c: Likewise.
26566 * disk/raid6_recover.c: Likewise.
26567 * disk/scsi.c: Likewise.
26568 * fs/affs.c: Likewise.
26569 * fs/cpio.c: Likewise.
26570 * fs/ext2.c: Likewise.
26571 * fs/hfs.c: Likewise.
26572 * fs/iso9660.c: Likewise.
26573 * fs/ntfs.c: Likewise.
26574 * fs/sfs.c: Likewise.
26575 * fs/udf.c: Likewise.
26576 * fs/ufs.c: Likewise.
26577 * fs/xfs.c: Likewise.
26578 * gencmdlist.sh: Likewise.
26579 * genmk.rb: Likewise.
26580 * include/grub/disk.h: Likewise.
26581 * include/grub/efi/api.h: Likewise.
26582 * include/grub/efi/efi.h: Likewise.
26583 * include/grub/efi/pe32.h: Likewise.
26584 * include/grub/elf.h: Likewise.
26585 * include/grub/fs.h: Likewise.
26586 * include/grub/i386/at_keyboard.h: Likewise.
26587 * include/grub/i386/pc/memory.h: Likewise.
26588 * include/grub/i386/pc/vbe.h: Likewise.
26589 * include/grub/i386/pci.h: Likewise.
26590 * include/grub/i386/tsc.h: Likewise.
26591 * include/grub/ieee1275/ieee1275.h: Likewise.
26592 * include/grub/ntfs.h: Likewise.
26593 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26594 * include/grub/sparc64/libgcc.h: Likewise.
26595 * include/grub/symbol.h: Likewise.
26596 * include/grub/types.h: Likewise.
26597 * include/multiboot2.h: Likewise.
26598 * io/gzio.c: Likewise.
26599 * kern/device.c: Likewise.
26600 * kern/disk.c: Likewise.
26601 * kern/efi/efi.c: Likewise.
26602 * kern/efi/mm.c: Likewise.
26603 * kern/elf.c: Likewise.
26604 * kern/file.c: Likewise.
26605 * kern/i386/dl.c: Likewise.
26606 * kern/i386/pc/init.c: Likewise.
26607 * kern/i386/pc/startup.S: Likewise.
26608 * kern/ieee1275/ieee1275.c: Likewise.
26609 * kern/ieee1275/init.c: Likewise.
26610 * kern/main.c: Likewise.
26611 * kern/mm.c: Likewise.
26612 * kern/powerpc/dl.c: Likewise.
26613 * kern/sparc64/dl.c: Likewise.
26614 * kern/x86_64/dl.c: Likewise.
26615 * lib/hexdump.c: Likewise.
26616 * loader/efi/appleloader.c: Likewise.
26617 * loader/i386/ieee1275/linux.c: Likewise.
26618 * loader/i386/pc/chainloader.c: Likewise.
26619 * loader/i386/pc/linux.c: Likewise.
26620 * loader/i386/pc/multiboot2.c: Likewise.
26621 * loader/ieee1275/multiboot2.c: Likewise.
26622 * loader/multiboot2.c: Likewise.
26623 * loader/multiboot_loader.c: Likewise.
26624 * loader/powerpc/ieee1275/linux.c: Likewise.
26625 * normal/completion.c: Likewise.
26626 * normal/menu_entry.c: Likewise.
26627 * partmap/apple.c: Likewise.
26628 * util/grub.d/10_hurd.in: Likewise.
26629 * util/hostfs.c: Likewise.
26630 * video/readers/png.c: Likewise.
26631
e2d70b5c
CW
266322010-01-03 Colin Watson <cjwatson@ubuntu.com>
26633
26634 * include/grub/misc.h (GNUC_PREREQ): New macro.
26635 (ATTRIBUTE_ERROR): New macro.
26636 * include/grub/list.h (grub_bad_type_cast_real): Use
26637 ATTRIBUTE_ERROR.
26638
a173283f 266392010-01-03 Carles Pina i Estany <carles@pina.cat>
26640
26641 * normal/menu_text.c (print_message): Change messages.
26642
7fa7ff74 266432010-01-03 Carles Pina i Estany <carles@pina.cat>
26644
26645 * normal/menu_entry.c (store_completion): Gettextizze.
26646
136d24f6 266472010-01-03 Carles Pina i Estany <carles@pina.cat>
26648
26649 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
26650
f936862e 266512010-01-03 Carles Pina i Estany <carles@pina.cat>
26652
26653 * po/POTFILES: Sort correctly.
26654
29c44ad1 266552010-01-03 Carles Pina i Estany <carles@pina.cat>
26656
26657 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
26658 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
26659 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
26660 full stop.
26661 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
26662 summary. Gettextizze the strings.
26663 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
26664 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
26665 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
26666 full stop.
26667 (GRUB_MOD_INIT): Remove command name from summary.
26668 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
26669 summary.
26670 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
26671 * term/i386/pc/serial.c (options): Add full stops.
26672 (GRUB_MOD_INIT): Remove command name from the summary.
26673
77a79592 266742010-01-03 Carles Pina i Estany <carles@pina.cat>
26675
26676 * commands/acpi.c: Gettextizze help strings and/or options. Include
26677 `grub/i18n.h' if needed.
26678 * commands/blocklist.c: Likewise.
26679 * commands/boot.c: Likewise.
26680 * commands/cat.c: Likewise.
26681 * commands/cmp.c: Likewise.
26682 * commands/configfile.c: Likewise.
26683 * commands/crc.c: Likewise.
26684 * commands/date.c: Likewise.
26685 * commands/echo.c: Likewise.
26686 * commands/efi/fixvideo.c: Likewise.
26687 * commands/efi/loadbios.c: Likewise.
26688 * commands/gptsync.c: Likewise.
26689 * commands/halt.c: Likewise.
26690 * commands/handler.c: Likewise.
26691 * commands/hdparm.c: Likewise.
26692 * commands/hexdump.c: Likewise.
26693 * commands/i386/cpuid.c: Likewise.
26694 * commands/i386/pc/drivemap.c: Likewise.
26695 * commands/i386/pc/halt.c: Likewise.
26696 * commands/i386/pc/pxecmd.c: Likewise.
26697 * commands/i386/pc/vbeinfo.c: Likewise.
26698 * commands/i386/pc/vbetest.c: Likewise.
26699 * commands/ieee1275/suspend.c: Likewise.
26700 * commands/keystatus.c: Likewise.
26701 * commands/loadenv.c: Likewise.
26702 * commands/ls.c: Likewise.
26703 * commands/lsmmap.c: Likewise.
26704 * commands/lspci.c: Likewise.
26705 * commands/memrw.c: Likewise.
26706 * commands/minicmd.c: Likewise.
26707 * commands/parttool.c: Likewise.
26708 * commands/password.c: Likewise.
26709 * commands/probe.c: Likewise.
26710 * commands/read.c: Likewise.
26711 * commands/reboot.c: Likewise.
26712 * commands/search.c: Likewise.
26713 * commands/sleep.c: Likewise.
26714 * commands/test.c: Likewise.
26715 * commands/true.c: Likewise.
26716 * commands/usbtest.c: Likewise.
26717 * commands/videotest.c: Likewise.
26718 * commands/xnu_uuid.c: Likewise.
26719 * disk/loopback.c: Likewise.
26720 * hello/hello.c: Likewise.
26721 * loader/i386/bsd.c: Likewise.
26722 * term/i386/pc/serial.c: Likewise.
26723 * po/POTFILES: Add new files.
26724
da8d5c53
CW
267252010-01-02 Colin Watson <cjwatson@ubuntu.com>
26726
26727 * term/i386/pc/at_keyboard.c
26728 (keyboard_controller_wait_untill_ready): Rename to ...
26729 (keyboard_controller_wait_until_ready): ... this. Update all users.
26730
33937904 267312010-01-01 Carles Pina i Estany <carles@pina.cat>
26732
26733 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
26734 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
26735 string using string width.
26736 * normal/menu_text.c (grub_print_message_indented): Use
26737 grub_print_spaces and not print_spaces.
26738 (print_timeout): Likewise.
26739 (print_spaces): Move to...
26740 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
26741
3fd3b8d8
RM
267422010-01-01 Robert Millan <rmh.grub@aybabtu.com>
26743
26744 Import from Gnulib.
26745
26746 * gnulib/getdelim.c: New file.
26747 * gnulib/getline.c: Likewise.
26748
33433555
VS
267492009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
26750
26751 * include/grub/list.h (grub_assert_fail): Removed.
26752 (grub_bad_type_cast_real): New function.
26753 (grub_bad_type_cast): New macro.
26754 (GRUB_AS_LIST): Use grub_bad_type_cast.
26755 (GRUB_AS_LIST_P): Likewise.
e44721e8 26756 (GRUB_AS_NAMED_LIST): Likewise.
33433555 26757 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 26758 (GRUB_AS_PRIO_LIST): Likewise.
33433555 26759 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 26760 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 26761
f5a51306
VS
267622009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
26763
26764 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
26765 Fix syntax error.
26766
90d1e879
RM
267672009-12-29 Robert Millan <rmh.grub@aybabtu.com>
26768
26769 * configure.ac: Check for TARGET_CFLAGS initialization before we
26770 initialize it ourselves (sigh).
26771 Move a few modifications to TARGET_CFLAGS to be unconditional
26772 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
26773 eh_frame)
26774
26775 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
26776 * term/i386/pc/at_keyboard.c
26777 (keyboard_controller_wait_untill_ready): Likewise.
26778 (keyboard_controller_led): Rename `led_status' paramter to avoid
26779 name conflict.
26780
465b5a81 267812009-12-28 Carles Pina i Estany <carles@pina.cat>
26782
26783 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
26784 quotes.
26785
c181849b
VS
267862009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26787
26788 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
26789
9c8739a4
VS
267902009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26791
26792 * normal/menu_text.c (grub_print_message_indented): Prevent
26793 past-the-end-of-array dereference.
26794
3e74249c
VS
267952009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26796
26797 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
26798 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
26799
64fd18ed 268002009-12-27 Carles Pina i Estany <carles@pina.cat>
26801
26802 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
26803 * normal/main.c (grub_normal_read_line): Remove a space from the
26804 default prompt.
26805
714af9b9 268062009-12-27 Carles Pina i Estany <carles@pina.cat>
26807
26808 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
26809 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26810 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26811 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26812 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26813 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26814 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26815
82f3e412 268162009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 26817
26818 * video/readers/jpeg.c (cmd): Declare.
26819 (grub_cmd_jpegtest): Use `grub_command_t' type.
26820 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26821 Assign to `cmd'.
26822 (GRUB_MOD_FINI): Use `cmd' to unregister.
26823 * video/readers/png.c (cmd): Declare.
26824 (grub_cmd_pngtest): Use `grub_command_t' type.
26825 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26826 Assign to `cmd'.
26827 (GRUB_MOD_FINI): Use `cmd' to unregister.
26828 * video/readers/tga.c (cmd): Declare.
26829 (grub_cmd_tgatest): Use `grub_command_t' type.
26830 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26831 Assign to `cmd'.
26832 (GRUB_MOD_FINI): Use `cmd' to unregister.
26833
82f3e412 268342009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 26835
26836 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
26837 stops.
26838 * kern/corecmd.c (grub_register_core_commands): Likewise.
26839 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
26840 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26841 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
26842 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26843 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26844 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
26845 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26846 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
26847 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26848 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26849 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26850 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26851 * normal/handler.c (insert_handler): Likewise.
26852 * normal/main.c (GRUB_MOD_INIT): Likewise.
26853 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
26854
fdcdbb66 268552009-12-26 Carles Pina i Estany <carles@pina.cat>
26856
26857 * commands/help.c (grub_cmd_help): Print the command name before the
26858 summary.
26859 (GRUB_MOD_INIT): Remove command name from the summary.
26860 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 26861 string as summary.
fdcdbb66 26862 * lib/arg.c (find_long): Print the command name before the summary.
26863 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
26864 summary.
26865 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
26866 * commands/cat.c (GRUB_MOD_INIT): Likewise.
26867 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
26868 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26869 * commands/crc.c (GRUB_MOD_INIT): Likewise.
26870 * commands/date.c (GRUB_MOD_INIT): Likewise.
26871 * commands/echo.c (GRUB_MOD_INIT): Likewise.
26872 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
26873 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26874 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26875 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
26876 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
26877 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
26878 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
26879 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26880 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
26881 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
26882 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
26883 * commands/ls.c (GRUB_MOD_INIT): Likewise.
26884 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26885 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26886 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26887 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
26888 * commands/password.c (GRUB_MOD_INIT): Likewise.
26889 * commands/probe.c (GRUB_MOD_INIT): Likewise.
26890 * commands/read.c (GRUB_MOD_INIT): Likewise.
26891 * commands/search.c (GRUB_MOD_INIT): Likewise.
26892 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
26893 * commands/test.c (GRUB_MOD_INIT): Likewise.
26894 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
26895 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26896 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26897 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
26898 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26899 * lib/arg.c (GRUB_MOD_INIT): Likewise.
26900 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
26901 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26902 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26903 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26904 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26905 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
26906 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
26907 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
26908
9c288be2
VS
269092009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26910
26911 Use search command for preliminar UUID search.
26912
26913 * commands/search.c: Split into ...
26914 * commands/search_wrap.c: ...this
26915 * commands/search.c: ...and this.
26916 * commands/search_file.c: New file.
26917 * commands/search_label.c: New file.
26918 * commands/search_uuid.c: New file.
26919 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
26920 Add commands/search_wrap.c, commands/search_file.c,
26921 commands/search_label.c and commands/search_uuid.c.
26922 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
26923 (search_mod_SOURCES): Set to commands/search_wrap.c.
26924 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
26925 search_label.mod.
26926 (search_fs_file_mod_SOURCES): New variable.
26927 (search_fs_file_mod_CFLAGS): Likewise.
26928 (search_fs_file_mod_LDFLAGS): Likewise.
26929 (search_label_mod_SOURCES): Likewise.
26930 (search_label_mod_CFLAGS): Likewise.
26931 (search_label_mod_LDFLAGS): Likewise.
26932 (search_fs_uuid_mod_SOURCES): New variable.
26933 (search_fs_uuid_mod_CFLAGS): Likewise.
26934 (search_fs_uuid_mod_LDFLAGS): Likewise.
26935 (fs_file_mod_SOURCES): Removed.
26936 (fs_file_mod_CFLAGS): Likewise.
26937 (fs_file_mod_LDFLAGS): Likewise.
26938 (fs_uuid_mod_SOURCES): Removed.
26939 (fs_uuid_mod_CFLAGS): Likewise.
26940 (fs_uuid_mod_LDFLAGS): Likewise.
26941 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
26942 Set to util/grub-install.in.
26943 * disk/fs_file.c: Removed.
26944 * disk/fs_uuid.c: Likewise.
26945 * include/grub/search.h: New file.
26946 * util/grub-install.in: Handle sparc64.
26947 Create and use load.cfg.
26948 * util/sparc64/ieee1275/grub-install.in: Removed.
26949
db943399
VS
269502009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26951
26952 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
26953 Ignore return status if CF is cleared.
26954 (grub_biosdisk_get_diskinfo_standard): Likewise.
26955
3fdae612
RM
269562009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26957
26958 * term/i386/pc/at_keyboard.c
26959 (keyboard_controller_wait_untill_ready): New function.
26960 (grub_keyboard_controller_write, grub_keyboard_controller_read)
26961 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
26962 for keyboard polling, rather than duplicate the same loop. This
26963 saves a few bytes in code size.
26964
7ebaa2b4
VS
269652009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26966
26967 Support for (pxe[:server[:gateway]]) syntax and
26968 use environment variable for PXE.
26969
26970 * commands/i386/pc/pxecmd.c (options): Removed.
26971 (print_ip): Removed.
26972 (grub_cmd_pxe): Removed
26973 (grub_cmd_pxe_unload): New function.
26974 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26975 (grub_pxe_your_ip): Made static.
26976 (grub_pxe_default_server_ip): Likewise.
26977 (grub_pxe_default_gateway_ip): Likewise.
26978 (grub_pxe_blksize): Likewise.
26979 (parse_ip): New function.
26980 (grub_pxe_open): Support server and gateway specification.
26981 (grub_pxe_close): Free disk->data.
26982 (grub_pxefs_open): Use disk->data.
26983 (grub_pxefs_read): Likewise.
26984 (grub_env_write_readonly): New function.
26985 (set_mac_env): Likewise.
26986 (set_env_limn_ro): Likewise.
26987 (parse_dhcp_vendor): Likewise.
26988 (grub_pxe_detect): Set the environment variables.
26989 (set_ip_env): New function.
26990 (write_ip_env): Likewise.
26991 (grub_env_write_pxe_default_server): Likewise.
26992 (grub_env_write_pxe_default_gateway): Likewise.
26993 (grub_env_write_pxe_blocksize): Likewise.
26994 (GRUB_MOD_INIT(pxe)): Set environment variables.
26995 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26996 (grub_pxe_mac_addr_t): ... this. All users updated.
26997 (grub_pxe_your_ip): Removed.
26998 (grub_pxe_server_ip): Likewise.
26999 (grub_pxe_gateway_ip): Likewise.
27000 (grub_pxe_blksize): Likewise.
27001
ec5f98ab 270022009-12-25 Carles Pina i Estany <carles@pina.cat>
27003
27004 * commands/help.c: Include `<grub/i18n.h>'.
27005 (grub_cmd_help): Gettextizze.
27006 (GRUB_MOD_INIT): Likewise.
27007 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
27008 (GRUB_MOD_INIT): Gettextizze.
27009 * commands/search.c: Include `<grub/i18n.h>'.
27010 (options): Gettextizze.
27011 (GRUB_MOD_INIT): Gettextizze.
27012 * lib/arg.c: Include `<grub/i18n.h>'.
27013 (help_options): Gettextizze.
27014 (find_long): Likewise.
27015 (grub_arg_show_help): Likewise.
27016 * normal/dyncmd.c: Include `<grub/i18n.h>'.
27017 (read_command_list): Gettextizze.
27018 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 27019 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 27020
22815526
RM
270212009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27022
27023 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
27024 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
27025 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
27026 (led_status): New variable.
27027 (keyboard_controller_led): New function.
27028 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
27029 update led status for caps lock, num lock and scroll lock.
27030
0ad46fd7
FZ
270312009-12-25 Felix Zielcke <fzielcke@z-51.de>
27032
27033 * util/hostdisk.c (open_device): Fix a comment.
27034
d0e158c2
RM
270352009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27036
27037 * util/grub-install.in (host_os): New variable.
27038 * util/i386/efi/grub-install.in (host_os): Likewise.
27039
401c0ad6
RM
270402009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27041
27042 * util/mkisofs/write.c (padblock_write): Abort when given an
27043 excedingly large embed image, instead of silently truncating it.
27044
d14d3370
RM
270452009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27046
27047 * include/multiboot.h: Indentation fixes.
27048
eeed10b4
RM
270492009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27050
27051 * include/multiboot.h (struct multiboot_aout_symbol_table)
27052 (struct multiboot_elf_section_header_table): New structure
27053 declarations (stolen from GRUB Legacy).
27054 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
27055 table information.
27056
27057 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
27058 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
27059 type aliases.
27060
681c70ab
RM
270612009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27062
27063 * include/multiboot.h: Make comments src2texi-friendly.
27064
e4d47d8d
RM
270652009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27066
27067 For consistency with [multiboot]/docs/boot.S.
27068
27069 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
27070 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
27071 (MULTIBOOT_MAGIC2): Rename from this ...
27072 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
27073
a0b70bda
RM
270742009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27075
27076 * include/multiboot.h: Remove `<grub/types.h>'.
27077 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
27078 types. Update all users.
27079
61ba42be 270802009-12-25 Carles Pina i Estany <carles@pina.cat>
27081
27082 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
27083 `couldn't' and `can not' by `cannot'.
27084 * commands/i386/pc/drivemap.c: Likewise.
27085 * disk/ata.c: Likewise.
27086 * disk/ieee1275/nand.c: Likewise.
27087 * fs/affs.c: Likewise.
27088 * fs/fat.c: Likewise.
27089 * fs/hfs.c: Likewise.
27090 * fs/hfsplus.c: Likewise.
27091 * fs/iso9660.c: Likewise.
27092 * fs/jfs.c: Likewise.
27093 * fs/minix.c: Likewise.
27094 * fs/reiserfs.c: Likewise.
27095 * fs/sfs.c: Likewise.
27096 * fs/udf.c: Likewise.
27097 * fs/ufs.c: Likewise.
27098 * fs/xfs.c: Likewise.
27099 * loader/powerpc/ieee1275/linux.c: Likewise.
27100 * loader/sparc64/ieee1275/linux.c: Likewise.
27101 * util/grub-probe.c: Likewise.
27102 * util/misc.c: Likewise.
27103
7fd0baee 271042009-12-24 Carles Pina i Estany <carles@pina.cat>
27105
27106 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
27107 grub_errno calls.
27108 * commands/acpi.c: Likewise.
27109 * commands/blocklist.c: Likewise.
27110 * commands/efi/loadbios.c: Likewise.
27111 * commands/i386/pc/drivemap.c: Likewise.
27112 * commands/loadenv.c: Likewise.
27113 * commands/memrw.c: Likewise.
27114 * commands/password.c: Likewise.
27115 * commands/videotest.c: Likewise.
27116 * disk/ata.c: Likewise.
27117 * disk/ata_pthru.c: Likewise.
27118 * disk/dmraid_nvidia.c: Likewise.
27119 * disk/ieee1275/nand.c: Likewise.
27120 * disk/ieee1275/ofdisk.c: Likewise.
27121 * disk/loopback.c: Likewise.
27122 * disk/lvm.c: Likewise.
27123 * disk/mdraid_linux.c: Likewise.
27124 * disk/raid.c: Likewise.
27125 * disk/raid6_recover.c: Likewise.
27126 * disk/scsi.c: Likewise.
27127 * efiemu/main.c: Likewise.
27128 * efiemu/mm.c: Likewise.
27129 * efiemu/pnvram.c: Likewise.
27130 * efiemu/symbols.c: Likewise.
27131 * font/font.c: Likewise.
27132 * fs/cpio.c: Likewise.
27133 * fs/hfsplus.c: Likewise.
27134 * fs/iso9660.c: Likewise.
27135 * fs/jfs.c: Likewise.
27136 * fs/minix.c: Likewise.
27137 * fs/ntfs.c: Likewise.
27138 * fs/ntfscomp.c: Likewise.
27139 * fs/reiserfs.c: Likewise.
27140 * fs/ufs.c: Likewise.
27141 * fs/xfs.c: Likewise.
27142 * gettext/gettext.c: Likewise.
27143 * include/grub/auth.h: Likewise.
27144 * kern/elf.c: Likewise.
27145 * kern/file.c: Likewise.
27146 * kern/ieee1275/init.c: Likewise.
27147 * kern/ieee1275/mmap.c: Likewise.
27148 * kern/ieee1275/openfw.c: Likewise.
27149 * kern/powerpc/dl.c: Likewise.
27150 * kern/sparc64/dl.c: Likewise.
27151 * lib/arg.c: Likewise.
27152 * loader/i386/bsd.c: Likewise.
27153 * loader/i386/bsdXX.c: Likewise.
27154 * loader/i386/efi/linux.c: Likewise.
27155 * loader/i386/efi/xnu.c: Likewise.
27156 * loader/i386/ieee1275/linux.c: Likewise.
27157 * loader/i386/linux.c: Likewise.
27158 * loader/i386/multiboot.c: Likewise.
27159 * loader/i386/pc/linux.c: Likewise.
27160 * loader/i386/pc/multiboot2.c: Likewise.
27161 * loader/i386/xnu.c: Likewise.
27162 * loader/ieee1275/multiboot2.c: Likewise.
27163 * loader/macho.c: Likewise.
27164 * loader/machoXX.c: Likewise.
27165 * loader/multiboot2.c: Likewise.
27166 * loader/multiboot_loader.c: Likewise.
27167 * loader/powerpc/ieee1275/linux.c: Likewise.
27168 * loader/sparc64/ieee1275/linux.c: Likewise.
27169 * loader/xnu.c: Likewise.
27170 * loader/xnu_resume.c: Likewise.
27171 * mmap/i386/pc/mmap.c: Likewise.
27172 * normal/menu_viewer.c: Likewise.
27173 * partmap/acorn.c: Likewise.
27174 * partmap/amiga.c: Likewise.
27175 * partmap/apple.c: Likewise.
27176 * script/lexer.c: Likewise.
27177 * term/gfxterm.c: Likewise.
27178 * term/i386/pc/serial.c: Likewise.
27179 * term/i386/pc/vga.c: Likewise.
27180 * term/ieee1275/ofconsole.c: Likewise.
27181 * term/terminfo.c: Likewise.
27182 * video/bitmap.c: Likewise.
27183 * video/efi_gop.c: Likewise.
27184 * video/efi_uga.c: Likewise.
27185 * video/fb/video_fb.c: Likewise.
27186 * video/i386/pc/vbe.c: Likewise.
27187 * video/readers/tga.c: Likewise.
27188 * video/video.c: Likewise.
27189
0ad46fd7 271902009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
27191
27192 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27193 * commands/lspci.c: Likewise.
27194 * commands/probe.c: Likewise.
27195 * commands/xnu_uuid.c: Likewise.
27196 * conf/i386-coreboot.rmk: Likewise.
27197 * conf/i386-efi.rmk: Likewise.
27198 * conf/i386-ieee1275.rmk: Likewise.
27199 * conf/i386-pc.rmk: Likewise.
27200 * conf/powerpc-ieee1275.rmk: Likewise.
27201 * conf/sparc64-ieee1275.rmk: Likewise.
27202 * conf/x86_64-efi.rmk: Likewise.
27203 * fs/i386/pc/pxe.c: Likewise.
27204 * gettext/gettext.c: Likewise.
27205 * include/grub/efi/graphics_output.h: Likewise.
27206 * include/grub/i386/pc/memory.h: Likewise.
27207 * kern/env.c: Likewise.
27208 * kern/i386/qemu/startup.S: Likewise.
27209 * lib/i386/pc/biosnum.c: Likewise.
27210 * lib/i386/relocator.c: Likewise.
27211 * lib/i386/relocator_asm.S: Likewise.
27212 * lib/relocator.c: Likewise.
27213 * loader/i386/bsd.c: Likewise.
27214 * loader/i386/multiboot.c: Likewise.
27215 * loader/i386/pc/chainloader.c: Likewise.
27216 * loader/i386/xnu.c: Likewise.
27217 * loader/xnu.c: Likewise.
27218 * normal/main.c: Likewise.
27219 * normal/menu_text.c: Likewise.
27220 * util/getroot.c: Likewise.
27221 * util/grub-mkconfig_lib.in: Likewise.
27222 * util/grub.d/00_header.in: Likewise.
27223 * util/i386/pc/grub-mkimage.c: Likewise.
27224 * util/mkisofs/eltorito.c: Likewise.
27225 * util/mkisofs/exclude.h: Likewise.
27226 * util/mkisofs/hash.c: Likewise.
27227 * util/mkisofs/iso9660.h: Likewise.
27228 * util/mkisofs/joliet.c: Likewise.
27229 * util/mkisofs/mkisofs.c: Likewise.
27230 * util/mkisofs/mkisofs.h: Likewise.
27231 * util/mkisofs/multi.c: Likewise.
27232 * util/mkisofs/name.c: Likewise.
27233 * util/mkisofs/rock.c: Likewise.
27234 * util/mkisofs/tree.c: Likewise.
27235 * util/mkisofs/write.c: Likewise.
27236 * video/efi_gop.c: Likewise.
27237
009ec743
VS
272382009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27239
27240 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27241 size counting.
27242
0ad46fd7 272432009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
27244
27245 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27246 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27247
d3d30ea0
VS
272482009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27249
27250 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27251 (GRUB_MOD_INIT(memrw)): Update help line.
27252
a34f5c70
VS
272532009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27254
27255 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27256 Use grub_extcmd_t. All users updated.
27257 (options): New variable.
27258 (grub_cmd_read): Restructure for readability. Support "-v" option.
27259 (grub_cmd_write): Restructure for readability.
27260
0ad46fd7 272612009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
27262
27263 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27264
0ad46fd7 272652009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
27266
27267 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27268 with the actual contents of the correspondending make variable.
27269 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27270 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27271 specifying `*.lst' and `efiemu??.o'
27272
0ad46fd7 272732009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
27274
27275 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27276 after function name.
27277 Noticed by Rene Engelhard <rene@debian.org>.
27278
dc77a799
VS
272792009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27280
27281 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27282 (options): New variable.
27283 (iospace): Likewise.
27284 (grub_lspci_iter): List IO spaces if "-i" was given.
27285 (grub_cmd_lspci): Parse options.
27286 (GRUB_MOD_INIT(lspci)): Use extcmd.
27287 (GRUB_MOD_FINI(lspci)): Likewise.
27288
0ad46fd7 272892009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
27290
27291 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27292 `function' keyword.
27293 Patch by Tony Mancill <tmancill@debian.org>.
27294
b5d5993b
VS
272952009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27296
27297 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27298 (grub_uhci_portstatus): Likewise.
27299 (grub_uhci_portstatus): Add necessary delay.
11d18281 27300 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 27301
941903f2 273022009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 27303
941903f2 27304 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27305 (GRUB_MOD_INIT): Likewise.
27306 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 27307 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27308 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 27309 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27310 (enable_rom_area): Likewise.
27311 (GRUB_MOD_INIT): Likewise.
27312 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27313 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27314 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27315 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27316 * commands/hexdump.c (options): Likewise.
27317 * commands/i386/cpuid.c (options): Likewise.
27318 (GRUB_MOD_INIT): Likewise.
27319 * commands/i386/pc/drivemap.c (options): Likewise.
27320 (GRUB_MOD_INIT): Likewise.
27321 * commands/i386/pc/halt (options): Likewise.
27322 (GRUB_MOD_INIT): Likewise.
27323 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27324 * commands/i386/pc/pxecmd.c (options): Likewise.
27325 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27326 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27327 * commands/keystatus.c (options): Likewise.
27328 (GRUB_MOD_INIT): Likewise.
27329 * commands/loadenv.c (options): Likewise.
27330 * commands/ls.c (options): Likewise.
27331 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27332 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27333 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27334 * commands/parttool.c (helpmsg): Likewise.
27335 * commands/probe.c (options): Likewise.
27336 * commands/read.c (GRUB_MOD_INIT): Likewise.
27337 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27338 * commands/search.c (options): Likewise.
27339 * commands/sleep.c (options): Likewise.
27340 * commands/test.c (GRUB_MOD_INIT): Likewise.
27341 * commands/true.c (GRUB_MOD_INIT): Likewise.
27342 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27343 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27344 * lib/arg.c (help_options): Likewise.
e9bbb4e7 27345 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27346 `$(XGETTEXT)'.
98a50553 27347 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 27348
0ad46fd7 273492009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 27350
ef3c2c3a 27351 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
27352 instead of specifying them explicit.
27353
7922f68b
RM
273542009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27355
27356 * NEWS: Add grub-probe support for GNU/Hurd.
27357
537ce47f
RM
273582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27359
27360 * NEWS: gettext was added after 1.97.
27361
9b214e3a
RM
273622009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27363
27364 * util/mkisofs/msdos_partition.h: New file (based on
27365 include/grub/msdos_partition.h).
27366 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27367 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27368 (ld_options, main): Recognize --protective-msdos-label.
27369 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27370 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27371 (padblock_write): If `use_protective_msdos_label' is set, patch a
27372 protective DOS-style label in the output image.
27373
27374 * util/grub-mkrescue.in: Use --protective-msdos-label.
27375
e9309813
RM
273762009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27377
27378 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27379 boot.
27380
0ae56929
RM
273812009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27382
27383 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27384 variables.
27385 (ld_options, main): Recognize `--embedded-boot'.
27386 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27387 declarations.
27388 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27389 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27390 (padblock_write): Likewise. Rewrite to support embedded boot image.
27391
27392 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27393 for BIOS-based disk boot instead of only ElTorito.
27394
b15937b1
RM
273952009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27396
27397 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27398 build (not needed for bootstrap).
27399
52cc3ce0
RM
274002009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27401
27402 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27403 from i386-pc build (not needed for bootstrap).
27404 Rewrite a pair of strings.
27405
36f5ff04
RM
274062009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27407
27408 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27409
973c6c85 274102009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
27411
27412 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27413
05d21547
AB
274142009-12-21 Andreas Born <futur.andy@googlemail.com>
27415
27416 * kern/env.c (grub_env_context_open): Mark exported variable for
27417 reexport.
27418
0175d51f
AB
274192009-12-21 Andreas Born <futur.andy@googlemail.com>
27420
27421 * kern/env.c (grub_env_export): Create nonexistent variables before
27422 exporting.
27423
7f39d92f 274242009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 27425
7f39d92f 27426 * include/grub/auth.h: Include `<grub/i18n.h>'.
27427 (GRUB_GET_PASSWORD): Gettextizze string.
27428 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27429 menu_text.c.
27430 (grub_utf8_to_ucs4_alloc): Fix indentation.
27431 (grub_print_ucs4): Likewise.
27432 (grub_getstringwidth): Likewise.
27433 (print_message_indented): New declaration.
27434 * normal/auth.c: Include `<grub/i18n.h>'.
27435 (grub_auth_check_authentication): Gettexttize string.
27436 * normal/cmdline.c: Include `<grub/i18n.h>'.
27437 (grub_cmdline_get): Gettextizze.
27438 * normal/color.c: Include `<grub/i18n.h>'.
27439 (grub_parse_color_name_pair): Gettexttize strings.
27440 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
27441 string (use `print_message_indented').
27442 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
27443 `include/grub/normal.h'.
27444 (print_message_indented): Renamed to ...
27445 (grub_print_message_indented): ... this. Remove `static' qualifer (now
27446 used in normal/main.c).
27447 (print_message): Use `grub_print_message_indented' instead of
27448 `print_message_indented'.
27449 (print_timeout): Likewise.
27450 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
27451 (grub_normal_print_device_info): Gettexttize strings.
27452 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
27453
3041d898
VS
274542009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27455
27456 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
27457 of arguments. Return number of tokens and not arguments. All users
27458 updated.
27459
de15bf8e
VS
274602009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
27463 non-MSDOS paritions.
27464
e0a6ca52
VS
274652009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
27466
27467 * include/grub/types.h (UNUSED): Removed since it conflicts with
27468 NetBSD headers. All users changed to direct __attribute__ ((unused)).
27469 Reported by Grégoire Sutre.
27470
b99518d1 274712009-12-19 Carles Pina i Estany <carles@pina.cat>
27472
27473 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
27474 (grub_print_ucs4_alloc): Likewise.
27475 (grub_getstringwidth): Likewise.
27476 * normal/main.c (grub_normal_init_page): Gettextize version string.
27477 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
27478 (getstringwidth): Renamed to ...
27479 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
27480 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
27481 (grub_print_ucs4): Remove `static' qualifer (now used in
27482 normal/main.c).
27483 * po/POTFILES: Add normal/main.c.
27484
bfd5e52b 274852009-12-19 Carles Pina i Estany <carles@pina.cat>
27486
27487 * normal/menu_text.c (STANDARD_MARGIN): New macro.
27488 (print_message_indented): Add `margin_left' and `margin_right'
27489 parameters.
27490 (print_message): Update `print_message_indented' calls. Adds '\n' to the
27491 strings.
27492 (print_timeout): Use `print_message_indented' to print the message.
27493 Deletes `second_stage' parameter.
27494 (run_menu): Update `print_timeout' calls.
27495
5a1ad2b9
VS
274962009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27497
27498 Fix console palette on OpenFirmware.
27499
27500 * term/ieee1275/ofconsole.c (MAX): Removed.
27501 (colors): Redone based on VGA palette.
27502 (grub_ofconsole_setcolor): Discard brightness bit since only 8
27503 colors are supported.
27504 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
27505
b045f00a
VS
275062009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27507
27508 Fix potential EfiEmu double prepare.
27509
27510 * efiemu/main.c (prepared): New variable
27511 (grub_efiemu_unload): Set prepare to '0'.
27512 (grub_efiemu_prepare): Return if already prepared. Set prepared.
27513
27514 set_virtual_address_map support.
27515
27516 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
27517 prototype.
27518 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
27519 prototype.
27520 (grub_efiemu_crc32): Likewise.
27521 (grub_efiemu_crc64): Likewise.
27522 (grub_efiemu_set_virtual_address_map): Likewise.
27523 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
27524 New definition.
27525 (grub_autoefi_set_virtual_address_map): Likewise.
27526 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
27527 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
27528 Restructure flow to accomodate it.
27529 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
27530 (grub_efiemu_crc): Recompute CRC32.
27531 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
27532 (efiemu_ptv_relocated): ... this. Made global. All users updated.
27533 * efiemu/symbols.c (relocated_handle): New variable.
27534 (grub_efiemu_free_syms): Free relocated_handle.
27535 (grub_efiemu_alloc_syms): Allocate relocated_handle.
27536 (grub_efiemu_write_sym_markers): New function.
27537 (grub_efiemu_set_virtual_address_map): Likewise.
27538
27539 Newer XNU parameters.
27540
27541 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
27542 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
27543 (grub_xnu_fill_devicetree): New prototype.
27544 (grub_xnu_heap_real_start): New variable.
27545 * loader/xnu.c (get_name_ptr): New function.
27546 (grub_xnu_load_driver): Fill namelen and name.
27547
27548 64-bit xnu support.
27549
27550 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
27551 and 'loader/macho64.c'.
27552 * conf/i386-pc.rmk: Likewise.
27553 * conf/x86_64-efi.rmk: Likewise.
27554 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
27555 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
27556 * include/grub/macho.h (grub_macho_segment64): New structure.
27557 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
27558 (grub_macho_size32): ... to this.
27559 (grub_macho32_get_entry_point): Renamed from ...
27560 (grub_macho_get_entry_point32): ... to this.
27561 (grub_macho_contains_macho64): New prototype.
27562 (grub_macho_size64): Likewise.
27563 (grub_macho_get_entry_point64): Likewise.
27564 (grub_macho32_load): Renamed from ...
27565 (grub_macho_load32): ... to this.
27566 (grub_macho32_filesize): Renamed from ...
27567 (grub_macho_filesize32): ... to this.
27568 (grub_macho32_readfile): Renamed from ...
27569 (grub_macho_readfile32): ... to this.
27570 (grub_macho_filesize64): New prototype.
27571 (grub_macho_readfile64): Likewise.
27572 (grub_macho_parse32): Likewise.
27573 (grub_macho_parse64): Likewise.
27574 * loader/macho.c: Split into ...
27575 * loader/machoXX.c: ... and this. Replace 32 with XX.
27576 * loader/macho32.c: New file.
27577 * loader/macho64.c: Likewise.
27578 * loader/xnu.c (grub_xnu_is_64bit): New variable.
27579 (grub_cmd_xnu_kernel): Make 32-bit only.
27580 (grub_cmd_xnu_kernel64): New function.
27581 (grub_xnu_load_driver): Support Mach-O 64.
27582 (grub_cmd_xnu_mkext): Likewise.
27583 * util/grub.d/30_os-prober.in (osx_entry): New function.
27584 Generate entries for 64-bit boot too.
27585
27586 Eliminate ad-hoc tree format in XNU and EfiEmu.
27587
27588 * efiemu/main.c (grub_efiemu_prepare): Update comment.
27589 * efiemu/pnvram.c: Rewritten to use environment variables.
27590 All users updated.
27591
27592 Inline utf16_to_utf8.
27593
27594 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
27595 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
27596 All users updated.
27597 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
27598
27599 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
27600 * commands/usbtest.c (grub_usb_get_string): ... move here.
27601 (usb_print_str): Fix error handling.
27602 * include/grub/usb.h (grub_usb_get_string): Remove.
27603
27604 UTF-8 to UTF-16 transformation.
27605
27606 * conf/common.rmk (pkglib_MODULES): Add charset.mod
27607 (charset_mod_SOURCES): New variable.
27608 (charset_mod_CFLAGS): Likewise.
27609 (charset_mod_LDFLAGS): Likewise.
27610 * include/grub/utf.h: New file.
27611 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
27612
27613 Support for device properties.
27614
27615 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
27616 (grub_xnu_devprop_device_header): Likewise.
27617 (grub_xnu_devprop_device_descriptor): Likewise.
27618 (grub_xnu_devprop_add_device): New prototype.
27619 (grub_xnu_devprop_remove_device): Likewise.
27620 (grub_xnu_devprop_remove_property): Likewise.
27621 (grub_xnu_devprop_add_property_utf8): Likewise.
27622 (grub_xnu_devprop_add_property_utf16): Likewise.
27623 (grub_cpu_xnu_init): Likewise.
27624 (grub_cpu_xnu_fini): Likewise.
27625 (grub_cpu_xnu_unload): Likewise.
27626 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
27627 (property_descriptor): Likewise.
27628 (devices): New variable.
27629 (grub_xnu_devprop_remove_property): New function.
27630 (grub_xnu_devprop_add_device): Likewise.
27631 (grub_xnu_devprop_remove_device): Likewise.
27632 (grub_xnu_devprop_add_property): Likewise.
27633 (grub_xnu_devprop_add_property_utf8): Likewise.
27634 (grub_xnu_devprop_add_property_utf16): Likewise.
27635 (hextoval): Likewise.
27636 (grub_cpu_xnu_fill_devprop): Likewise.
27637 (grub_cmd_devprop_load): Likewise.
27638 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
27639 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
27640 (cmd_devprop_load): New variable.
27641 (grub_cpu_xnu_init): New function.
27642 (grub_cpu_xnu_fini): Likewise.
27643 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
27644 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
27645 (grub_cmd_xnu_devtree): Likewise.
27646 (hextoval): New function.
27647 (unescape): Likewise.
27648 (grub_xnu_fill_devicetree): Likewise.
27649
27650 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
27651 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
27652
0945f181
VS
276532009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 Workaround for broken ATI VBE.
27656
27657 * video/i386/pc/vbe.c (last_set_mode): New variable.
27658 (grub_vbe_set_video_mode): Set 'last_set_mode'.
27659 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
27660 (grub_video_vbe_setup): Don't check for reserved flag.
27661
0ad46fd7 276622009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
27663
27664 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
27665 the `find' command.
27666
c179ebe4
VS
276672009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
27668
27669 UUID support for HFS.
27670
27671 * fs/hfs.c (grub_hfs_uuid): New function.
27672 (grub_hfs_fs): New value .uuid.
27673 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
27674
0ad46fd7 276752009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
27676
27677 Fix a segfault with parsing unknown long options.
27678
27679 * util/grub-mkrelpath.c (options): Zero terminate it.
27680
c4a3e41a
CPE
276812009-12-13 Carles Pina i Estany <carles@pina.cat>
27682
27683 * include/grub/misc.h (grub_puts): New declaration.
27684 (grub_puts_): Likewise.
a22008a6 27685 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
27686 (grub_puts_): Likewise.
27687
2e8a7602
RM
276882009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27689
27690 * util/grub-probe.c (probe): Improve error message.
27691
b50b77b9
RM
276922009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27693
27694 * loader/i386/multiboot_elfxx.c
27695 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
27696 initialization.
27697
276982009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27699
27700 Relocator framework
27701
27702 * loader/i386/xnu_helper.S: Removed. All users updated.
27703 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
27704 (relocator_mod_SOURCES): New variable.
27705 (relocator_mod_CFLAGS): Likewise.
27706 (relocator_mod_LDFLAGS): Likewise.
27707 (relocator_mod_ASFLAGS): Likewise.
27708 * conf/x86_64.rmk: Likewise.
27709 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
27710 (grub_multiboot_payload_entry_offset): Likewise.
27711 (grub_multiboot_forward_relocator): Likewise.
27712 (grub_multiboot_forward_relocator_end): Likewise.
27713 (grub_multiboot_backward_relocator): Likewise.
27714 (grub_multiboot_backward_relocator_end): Likewise.
27715 (grub_multiboot_payload_eip): New variable.
27716 (grub_multiboot_payload_orig): Likewise.
27717 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
27718 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
27719 * include/grub/i386/memory.h
27720 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
27721 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
27722 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
27723 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
27724 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
27725 * include/grub/i386/relocator.h: New file.
27726 * include/grub/x86_64/relocator.h: Likewise.
27727 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
27728 (XNU_RELOCATOR): New macro.
27729 (grub_xnu_launcher_start): Remove.
27730 (grub_xnu_launcher_end): Likewise.
27731 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
27732 (grub_xnu_heap_real_start): Remove.
27733 (grub_xnu_heap_start): Change to void *. All users updated.
27734 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
27735 * lib/i386/relocator.c: New file.
27736 * lib/i386/relocator_asm.S: Likewise.
27737 * lib/i386/relocator_backward.S: Likewise.
27738 * lib/mips/relocator.c: Likewise.
27739 * lib/mips/relocator_asm.S: Likewise.
27740 * lib/relocator.c: Likewise.
27741 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
27742 (entry): Removed.
27743 (playground): Likewise.
27744 (grub_multiboot_payload_orig): New variable.
27745 (grub_multiboot_payload_dest): Likewise.
27746 (grub_multiboot_payload_size): Likewise.
27747 (grub_multiboot_payload_eip): Likewise.
27748 (grub_multiboot_payload_esp): Likewise.
27749 (grub_multiboot_boot): Use grub_relocator32_boot.
27750 (grub_multiboot_unload): Free relocators.
27751 (grub_multiboot): Setup stack. Use relocators.
27752 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
27753 (grub_multiboot_load_elfXX): Use relocators.
27754 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
27755 (grub_multiboot_payload_size): Likewise.
27756 (grub_multiboot_payload_dest): Likewise.
27757 (grub_multiboot_payload_entry_offset): Likewise.
27758 (grub_multiboot_forward_relocator): Likewise.
27759 (grub_multiboot_backward_relocator): Likewise.
27760 (grub_multiboot_real_boot): Likewise.
27761 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
27762 (grub_xnu_entry_point): Likewise.
27763 (grub_xnu_arg1): Likewise.
27764 (grub_xnu_stack): Likewise.
27765 (grub_xnu_launch): Removed.
27766 (grub_xnu_boot_resume): New function.
27767 (grub_xnu_boot): Use relocators.
27768 * loader/i386/xnu_helper.S: Removed.
27769 * loader/xnu.c (grub_xnu_heap_start): New variable.
27770 (grub_xnu_heap_size): Likewise.
27771 (grub_xnu_heap_malloc): Use relocators.
27772 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
27773
29eb90c6
VS
277742009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27775
27776 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
27777 anything.
27778
31027430
CPE
277792009-12-13 Carles Pina i Estany <carles@pina.cat>
27780
27781 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
27782 GRUB_ERR_NONE before calling grub_env_set.
27783
dc0c71d9
RM
277842009-12-12 Robert Millan <rmh@aybabtu.com>
27785
27786 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
27787 * genmk.rb (video): New variable.
27788 (CLEANFILES, VIDEOFILES): Add #{video}.
27789 (#{video}): New target rule.
27790 * genvideolist.sh: New file.
27791 * Makefile.in (pkglib_DATA): Add video.lst.
27792 (video.lst): New target rule.
27793 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
27794 `video.lst'.
27795 * util/grub.d/30_os-prober.in: Replace `vbe' with
27796 ${GRUB_VIDEO_BACKEND}.
27797
2a4bfcf0
RM
277982009-12-11 Robert Millan <rmh.grub@aybabtu.com>
27799
27800 * THANKS: Add David Miller.
27801
2a3aa4d5
RM
278022009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
27803
27804 libpciaccess support.
27805
27806 * Makefile.in (LIBPCIACCESS): New variable.
27807 (enable_grub_emu_pci): Likewise.
27808 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
27809 util/pci.c and commands/lspci.c.
27810 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
27811 * configure.ac (grub-emu-pci): New option.
27812 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
27813 (grub_pci_device_unmap_range): Likewise.
27814 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
27815 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
27816 (grub_pci_address_t) [!GRUB_UTIL]: New type.
27817 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
27818 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
27819 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
27820 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
27821 * include/grub/pciutils.h: New file.
27822 * util/pci.c: Likewise.
27823
0ad46fd7 278242009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
27825
27826 * util/misc.c: Don't include <errno.h> twice.
27827
0ad46fd7 278282009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
27829
27830 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
27831 name in an error message.
27832 (grub_biosdisk_rw): Likewise.
27833
2e59983c
VS
278342009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27835
27836 Eliminate NTFS 4Gib barrier.
27837
27838 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
27839 (read_run_data): Likewise.
27840 (grub_ntfs_read_run_list): Likewise.
27841 (grub_ntfs_read_block): Likewise.
27842 (grub_ntfs_iterate_dir): Likewise.
27843 (read_mft): Likewise.
27844 (read_data): Likewise.
27845 Use COM_LOG_LEN.
27846 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
27847 to avoid 64-bit division
27848 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
27849 (grub_ntfs_rlst): Use grub_disk_addr_t.
27850
71ee178a
VS
278512009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27852
27853 Eliminate grub-fstest 4Gib barrier.
27854
27855 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
27856 (read_file): Fix error reporting.
27857
2520d4b8
VS
278582009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27859
27860 Eliminate hexdump 4Gib barrier.
27861
27862 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
27863 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
27864
e1f27065
VS
278652009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27866
27867 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
27868 Fixes amarsh bug.
27869
1a0f7f45
RM
278702009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
27871
27872 Remove miscellaneous files in distclean target.
27873
27874 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
27875
c631d9fb
CW
278762009-12-09 Colin Watson <cjwatson@ubuntu.com>
27877
27878 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
27879 if they're already set. This resolves the conflict between my
27880 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
27881 fixing the --grub-probe option again.
27882 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
27883 change on 2009-10-06, so that we now once again source
27884 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27885
7c7b6106
RM
278862009-12-08 Robert Millan <rmh.grub@aybabtu.com>
27887
27888 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
27889 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
27890 `util/devicemap.c'.
27891
e3069ec1
CPE
278922009-12-08 Carles Pina i Estany <carles@pina.cat>
27893
27894 * include/grub/misc.h (grub_printf_): New declaration.
27895 * kern/misc.c (grub_printf_): New definition.
27896 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
27897 instead of `grub_printf' and `_'.
27898 * normal/menu_entry.c (store_completion): Likewise.
27899 (run): Likewise.
27900 (grub_menu_entry_run): Likewise.
27901 * normal/menu_text.c (grub_wait_after_message): Likewise.
27902 (notify_booting): Likewise.
27903 (notify_fallback): Likewise.
27904 (notify_execution_failure): Likewise.
27905
d6ceebf1
CW
279062009-12-07 Colin Watson <cjwatson@ubuntu.com>
27907
27908 * configure.ac: Check for vasprintf.
27909 * util/misc.c (asprintf): Move allocation from here ...
27910 (vasprintf): ... to here. New function.
27911 (xasprintf): New function.
27912 * include/grub/util/misc.h (vasprintf, xasprintf): Add
27913 prototypes.
27914 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
27915 * util/grub-mkfont.c (write_font): Likewise.
27916 * util/grub-probe.c (probe): Likewise.
27917 * util/hostdisk.c (make_device_name): Likewise.
27918
de6daa8b
DM
279192009-12-06 David S. Miller <davem@sunset.davemloft.net>
27920
27921 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
27922 anything even prefixed with 'cdrom' as a cdrom.
27923
0ad46fd7 279242009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
27925
27926 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
27927 mount points.
27928
98d3dc02
CPE
279292009-12-05 Carles Pina i Estany <carles@pina.cat>
27930
27931 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
27932 grub_gettext_msg_list.
27933 (grub_gettext_gettranslation_from_position): Return const char *
27934 and not char *.
a2c1332b 27935 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
27936 returns from the list if existing there.
27937 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
27938 (grub_gettext_delete_list): Delete the list.
27939 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
27940 lang environment variable is changed.
27941 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
27942
b283f108
VS
279432009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27944
27945 Rename kernel.mod to kernel.img.
27946
27947 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
27948 (kernel_mod_EXPORTS): Rename to ...
27949 (kernel_img_EXPORTS): ... this.
27950 (kernel_mod_SOURCES): Rename to ...
27951 (kernel_img_SOURCES): ... this.
27952 (kernel_mod_HEADERS): Rename to ...
27953 (kernel_img_HEADERS): ... this. All users updated.
27954 (kernel_mod_CFLAGS): Rename to ...
27955 (kernel_img_CFLAGS): ... this.
27956 (kernel_mod_ASFLAGS): Rename to ...
27957 (kernel_img_ASFLAGS): ... this.
27958 (kernel_mod_LDFLAGS): Rename to ...
27959 (kernel_img_LDFLAGS): ... this.
27960 * conf/x86_64-efi.rmk: Likewise.
27961 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
27962 (read_kernel_image): ... this. All users updated.
27963 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27964
69055f8a
CPE
279652009-12-05 Carles Pina i Estany <carles@pina.cat>
27966
27967 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27968 (print_spaces): New function.
27969 (grub_print_ucs4): New function.
27970 (getstringwidth): New function.
27971 (print_message_indented): New function.
27972 (print_message): Gettexttize strings using print_message_indented.
27973 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27974 width.
27975 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27976 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27977 Gettextize.
27978 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27979 string.
27980 (run): Likewise.
27981 (grub_menu_entry_run): Likewise.
27982 * PO/POTFILES: Add normal/menu_entry.c.
27983
f616f51c
VS
279842009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27985
27986 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27987
57bbe3be
CPE
279882009-12-05 Carles Pina i Estany <carles@pina.cat>
27989
27990 * util/grub-install.in: Install gettext .mo files.
27991 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27992
013d67a1
CPE
279932009-12-05 Carles Pina i Estany <carles@pina.cat>
27994
27995 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27996 grub_dprintf.
27997
fb954db0
RM
279982009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27999
28000 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
28001 non-firmware-dependant one in realmode.S takes precedence.
28002
6b8474f8
RM
280032009-12-04 Robert Millan <rmh.grub@aybabtu.com>
28004
28005 * commands/halt.c: Replace misc arch-specific headers with
28006 `<grub/misc.h>'.
28007 * commands/reboot.c: Likewise.
28008 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
28009 `<grub/misc.h>'.
28010 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
28011 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
28012 (kernel_img_SOURCES): ... to here.
28013
28014 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
28015 * include/grub/i386/pc/init.h: Likewise.
28016 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28017 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28018
28019 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
28020
28021 * include/grub/i386/halt.h: Remove.
28022 * include/grub/i386/reboot.h: Likewise.
28023
28024 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
28025
4b2e6ca2
DM
280262009-12-03 David S. Miller <davem@sunset.davemloft.net>
28027
28028 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
28029 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
28030 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
28031 "progname.h"
28032 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28033 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28034 (usage): Add missing comma in printf.
28035
5239348f
RM
280362009-12-02 Robert Millan <rmh.grub@aybabtu.com>
28037
28038 Use the same reboot approach on i386 coreboot and qemu as we do on
28039 BIOS.
28040
28041 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
28042 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
28043 * kern/i386/reboot.c: Remove.
28044 * include/grub/i386/reboot.h (grub_reboot): Export function.
28045 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
28046 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
28047 0xf000:0xfff0 instead of 0xffff:0x0000.
28048 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
28049 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
28050
ef34cbd4
RM
280512009-11-30 Robert Millan <rmh.grub@aybabtu.com>
28052
28053 Fix $srcdir != $objdir build.
28054
28055 * Makefile.in (po/%.po): Rewrite as ...
28056 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
28057
dc9837ea
ST
280582009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
28059
28060 Fix GNU/Hurd grub-install crash.
28061 * util/grub-probe.c (probe): Try to access `path' only when it is not
28062 NULL.
28063
2f857f98
VS
280642009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28065
28066 Correct module naming.
28067
28068 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28069 (GRUB_MOD_INIT(efi_uga)): ... to this
28070 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28071 (GRUB_MOD_FINI(efi_uga)): ... to this
28072 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28073 (GRUB_MOD_INIT(efi_gop)): ... to this
28074 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28075 (GRUB_MOD_FINI(efi_gop)): ... to this
28076
c5448046
RM
280772009-11-28 Robert Millan <rmh.grub@aybabtu.com>
28078
28079 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
28080 translatable.
28081 (usage): Translate `arg' strings using gettext().
28082 Thanks to Jordi Mallach for the suggestion.
28083
c85184ad
VS
280842009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 GOP support. Based on patch from Bean
28087 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28088
28089 * video/efi_gop.c: New file.
28090 * include/grub/efi/graphics_output.h: Likewise.
28091 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
28092 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28093 variables.
28094 * conf/x86_64-efi.rmk: Likewise.
28095
8a4c48d8
VS
280962009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28097
28098 Rename efi_fb to efi_uga.
28099
28100 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28101 'efi_uga.mod'.
28102 (efi_fb_mod_SOURCES): Rename this ...
28103 (efi_uga_mod_SOURCES): ... to this.
28104 (efi_fb_mod_CFLAGS): Rename this ...
28105 (efi_uga_mod_CFLAGS): ... to this.
28106 (efi_fb_mod_LDFLAGS): Rename this ...
28107 (efi_uga_mod_LDFLAGS): ... to this.
28108 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28109 'efi_uga.mod'.
28110 (efi_fb_mod_SOURCES): Rename this ...
28111 (efi_uga_mod_SOURCES): ... to this.
28112 (efi_fb_mod_CFLAGS): Rename this ...
28113 (efi_uga_mod_CFLAGS): ... to this.
28114 (efi_fb_mod_LDFLAGS): Rename this ...
28115 (efi_uga_mod_LDFLAGS): ... to this.
28116 * video/efi_fb.c: Move this ...
28117 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
28118
fb6c1a7b
RM
281192009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28120
28121 * po/README: New file. Explain our PO file workflow.
28122
3bc7896c
RM
281232009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28124
28125 * po/ChangeLog: Remove. Move relevant entries back to ...
28126 * ChangeLog: ... here.
28127 * po/ca.po: Remove (now handled by TLP).
28128 * po/id.po: Likewise.
28129 * po/zh_CN.po: Likewise.
28130 * Makefile.in (LINGUAS): Initialize in a way that supports
28131 empty set.
28132
9ed4841d
RM
281332009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28134
28135 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
28136 reliing on po/LINGUAS.
28137 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
28138 (po/%.po): ... this.
28139
0ad46fd7 281402009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
28141
28142 * util/i386/efi/grub-mkimage.c: Include "progname.h".
28143 (main): Use `program_name' instead of nonexistent `progname'.
28144
e30dd392
FZ
281452009-11-26 Felix Zielcke <fzielcke@z-51.de>
28146
28147 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28148 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
28149
7656de4f
RM
281502009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28151
28152 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
28153 commit.
28154 * conf/i386-efi.rmk: Likewise.
28155 * conf/i386-ieee1275.rmk: Likewise.
28156 * conf/powerpc-ieee1275.rmk: Likewise.
28157 * conf/sparc64-ieee1275.rmk: Likewise.
28158 * conf/x86_64-efi.rmk: Likewise.
28159
db77c4d4
FZ
281602009-11-26 Felix Zielcke <fzielcke@z-51.de>
28161
28162 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28163
a755bb04
FZ
281642009-11-26 Felix Zielcke <fzielcke@z-51.de>
28165
28166 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28167
8a4c07fd
RM
281682009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28169
28170 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28171 (grub_mkdevicemap_SOURCES): New variable.
28172 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28173 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28174 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28175 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28176 (grub_mkdevicemap_SOURCES): Remove.
28177 * conf/i386-efi.rmk: Likewise.
28178 * conf/i386-ieee1275.rmk: Likewise.
28179 * conf/i386-pc.rmk: Likewise.
28180 * conf/powerpc-ieee1275.rmk: Likewise.
28181 * conf/sparc64-ieee1275.rmk: Likewise.
28182 * conf/x86_64-efi.rmk: Likewise.
28183 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28184 (usage): Fix strings to use `program_name'.
28185 (main): Initialize gettext.
28186 * util/grub-editenv.c: Likewise.
28187 * util/grub-emu.c: Likewise.
28188 * util/grub-fstest.c: Likewise.
28189 * util/grub-mkdevicemap.c: Likewise.
28190 * util/grub-mkfont.c: Likewise.
28191 * util/grub-mkrelpath.c: Likewise.
28192 * util/grub-pe2elf.c: Likewise.
28193 * util/grub-probe.c: Likewise.
28194 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28195 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28196 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28197
28198 * util/misc.c: Include `"progname.h"'.
28199 (progname): Remove variable.
28200 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28201
6f61ed55
FZ
282022009-11-25 Felix Zielcke <fzielcke@z-51.de>
28203
28204 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28205 printf and print a newline after the menuentry header line.
28206 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28207
f022876b
FZ
282082009-11-25 Felix Zielcke <fzielcke@z-51.de>
28209
28210 autoconf >= 2.60 support $(localedir).
28211
28212 * INSTALL: Note that autoconf 2.60 is required.
28213 * configure.ac (AC_PREREQ): Bump to 2.60.
28214 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28215 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28216
6717926e
YB
282172009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28218
28219 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28220 aclocal is run.
28221
08806a54
RM
282222009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28223
28224 * normal/main.c (grub_normal_read_line): Fix off-by-one
28225 buffer overflow.
28226
13b33fba
RM
282272009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28228
28229 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28230 "parser.grub" in grub_command_execute() call.
28231
4a8572e9
CPE
282322009-11-24 Carles Pina i Estany <carles@pina.cat>
28233
28234 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28235 * conf/i386-efi.rmk: Likewise.
28236 * conf/i386-ieee1275.rmk: Likewise.
28237 * conf/i386-pc.rmk: Likewise.
28238 * conf/powerpc-ieee1275.rmk: Likewise.
28239 * conf/sparc64-ieee1275.rmk: Likewise.
28240 * conf/x86_64-efi.rmk: Likewise.
28241 * gettext/gettex.c: Include <grub/i18n.h>.
28242 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28243 here ...
28244 * include/grub/i18n.h: ... to here
28245 * include/grub/i18n.h: ... to here.
28246 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 28247 (grub_gettext_dummy): Move above user.
4a8572e9 28248
bee48093
FZ
282492009-11-24 Felix Zielcke <fzielcke@z-51.de>
28250
28251 * util/Makefile.in (install-local): Convert a `for' into a normal
28252 shell expansion.
28253
a031e91c
RM
282542009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28255
28256 * autogen.sh: Add automake call.
28257 * config.guess: Remove.
28258 * config.sub: Likewise.
28259 * install-sh: Likewise.
28260
26bec39d
FZ
282612009-11-24 Felix Zielcke <fzielcke@z-51.de>
28262
28263 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28264
8e2532fd
FZ
282652009-11-24 Felix Zielcke <fzielcke@z-51.de>
28266
28267 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28268 function to a normal shell `for'.
28269
fefa1b7d
FZ
282702009-11-24 Felix Zielcke <fzielcke@z-51.de>
28271
28272 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28273
4501250b
FZ
282742009-11-24 Felix Zielcke <fzielcke@z-51.de>
28275
28276 * util/grub-mkrelpath.c: New file.
28277 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28278 (grub_mkrelpath_SOURCES): New variable.
28279 * include/grub/util/misc.h: New function prototype.
28280 * util/misc.c (make_system_path_relative_to_its_root): New function.
28281
28282 * util/grub-mkconfig_lib.in (bindir): New variable.
28283 (grub_mkrelpath): Likewise.
28284 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28285
28286 * util/probe.c (probe): Make the file path relative to its root.
28287 Change a info message to use the GRUB path. Enable again the
28288 check if we can read the file with GRUB facilities.
28289
28290 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28291 to its root.
28292
11d9778b
FZ
282932009-11-24 Felix Zielcke <fzielcke@z-51.de>
28294
28295 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28296 platform.
28297
4465287d
FZ
282982009-11-24 Felix Zielcke <fzielcke@z-51.de>
28299
28300 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28301 strncmp().
28302
62b47f22
FZ
283032009-11-24 Felix Zielcke <fzielcke@z-51.de>
28304
28305 * util/getroot.c (grub_util_is_dmraid): New function.
28306 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28307 devices as normal ones, not as LVM.
28308
1eafb9b9 283092009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
28310
28311 * conf/common.rmk: Add grub-gettext_lib target and updates
28312 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28313 LDFLAGS.
28314 * gettext/gettext.c: New file. (Reads mo files).
28315 * include/grub/file.h (grub_file_pread): New prototype.
28316 * include/grub/i18n.h (_): New prototype.
28317 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28318 prototypes.
28319 * kern/misc.c (grub_gettext_dummy): New function.
28320 * normal/menu_text.c: Include <grub/i18n.h>.
28321 * normal/menu_text.c (print_timeout): Gettexttize string.
28322 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
28323 * po/POTFILES: Add `normal/menu_text.c'.
28324 * po/ca.po: Add new translations.
c3ea6bd4
CPE
28325 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28326 gettext module and defines locale_dir and lang in grub.cfg.
28327 * NEWS: Add gettext support.
28328
0fdb2568
RM
283292009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28330
28331 * util/hostdisk.c: Include `<grub/i18n.h>'.
28332 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28333 (make_device_name): Rewrite using asprintf.
28334 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28335 (find_system_device): If a device is not found, generate one just
28336 by reusing the OS path name.
28337 (read_device_map): Make it permissible for device.map not to exist.
28338
f515aa62
RM
283392009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 * script/sh/execute.c: Move from here ...
28342 * script/execute.c: ... to here. Update all users.
28343 * script/sh/function.c: Move from here ...
28344 * script/function.c: ... to here. Update all users.
28345 * script/sh/lexer.c: Move from here ...
28346 * script/lexer.c: ... to here. Update all users.
28347 * script/sh/main.c: Move from here ...
28348 * script/main.c: ... to here. Update all users.
28349 * script/sh/parser.y: Move from here ...
28350 * script/parser.y: ... to here. Update all users.
28351 * script/sh/script.c: Move from here ...
28352 * script/script.c: ... to here. Update all users.
28353
f84b481b
RM
283542009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28355
28356 * configure.ac: Detect all `emu' platforms. Define
28357 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28358 --enable-grub-emu logic. Disable include/grub/machine
28359 symlink on `emu' platforms.
28360
28361 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28362 * gensymlist.sh.in: Likewise.
28363
28364 * include/grub/i386/coreboot/machine.h: Remove file.
28365 * include/grub/i386/efi/machine.h: Likewise.
28366 * include/grub/i386/ieee1275/machine.h: Likewise.
28367 * include/grub/i386/pc/machine.h: Likewise.
28368 * include/grub/i386/qemu/machine.h: Likewise.
28369 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28370 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28371 * include/grub/x86_64/efi/machine.h: Likewise.
28372
28373 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28374 * commands/halt.c: Likewise.
28375 * commands/reboot.c: Likewise.
28376 * include/grub/autoefi.h: Likewise.
28377 * include/grub/i386/at_keyboard.h: Likewise.
28378 * include/grub/i386/kernel.h: Likewise.
28379 * include/grub/i386/loader.h: Likewise.
28380 * include/grub/i386/pc/memory.h: Likewise.
28381 * kern/dl.c: Likewise.
28382 * kern/i386/coreboot/init.c: Likewise.
28383 * loader/i386/bsd.c: Likewise.
28384 * loader/i386/linux.c: Likewise.
28385 * loader/multiboot_loader.c: Likewise.
28386 * term/i386/pc/serial.c: Likewise.
28387 * term/usb_keyboard.c: Likewise.
28388
28389 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28390 `<grub/machine/machine.h>'
28391 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28392 * util/misc.c: Remove `<grub/machine/machine.h>' and
28393 `<grub/machine/time.h>'.
28394
28395 * Makefile.in (enable_grub_emu): Remove variable.
28396 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28397
28398 * conf/any-emu.rmk: New file.
28399 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28400 (grub_emu_init.c): Move from here ...
28401 * conf/any-emu.rmk: ... to here.
28402
28403 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28404 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28405 * conf/any-emu.rmk: ... to here.
28406
4efeab03
RM
284072009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28408
28409 * include/grub/parser.h (grub_parser_register): Document need
28410 of `name' parameter.
28411 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28412 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28413 "sh" to "grub".
28414
ea1dd8bf
RM
284152009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28416
28417 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28418 `$(XGETTEXT)'.
28419 * include/grub/i18n.h (N_): New macro.
28420 * util/mkisofs/mkisofs.h: Likewise.
28421 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28422 around N_().
28423 (usage): Use gettext() to translate help strings when printing them.
28424
0c140626
RM
284252009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28426
28427 Based on patch from Bean
28428 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28429
28430 * video/efi_fb.c: New file.
28431 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28432 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28433 variables.
28434 * conf/x86_64-efi.rmk: Likewise.
28435
87d58298
RM
284362009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28437
28438 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28439 * util/i386/pc/grub-setup.c: Likewise.
28440
994cc3a3
ST
284412009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
28442
28443 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
28444 <hurd/fs.h>
28445 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
28446 file_get_storage_info to implement grub_guess_root_device.
28447
26a61d6a
FZ
284482009-11-21 Felix Zielcke <fzielcke@z-51.de>
28449
28450 * Makefile.in (target): Use make's builtin $(shell) function
28451 instead of calling directly $(SHELL) to create the locale directories,
28452 inside the $(foreach) function.
28453
74ff1dd5
FZ
284542009-11-21 Felix Zielcke <fzielcke@z-51.de>
28455
28456 * util/grub-mkrescue.in: Print an error and usage if output option
28457 has not been given.
28458
0b787d0e
FZ
284592009-11-21 Felix Zielcke <fzielcke@z-51.de>
28460
28461 Patch from Loïc Minier <loic.minier@ubuntu.com>.
28462 * util/grub.d/30_os-prober.in: Cope with Linux entries where
28463 root and /boot are on different devices.
28464
1164b270
RM
284652009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28466
28467 Fix build for srcdir != objdir.
28468
28469 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
28470 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
28471 $(srcdir).
28472 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
28473 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
28474 reference for input.
28475
13774a2f
RM
284762009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28477
28478 * util/grub-mkrescue.in: Use source directory direcly (without copiing
28479 or hardlinking it). Remove -J option, Joliet is not compatible with
28480 multiple source directories.
28481
efda854e
RM
284822009-11-21 Carles Pina i Estany <carles@pina.cat>
284832009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28484
28485 * util/grub-mkrescue.in: Recognize `--override-directory' option.
28486 (process_input_dir): New function. Process an arbitrary input
28487 directory.
28488 Misc adjustments to support both "override mode" and system-wide mode.
28489
6c09890c
FZ
284902009-11-20 Felix Zielcke <fzielcke@z-51.de>
28491
28492 * configure.ac (UNIFONT_BDF): Rename to ...
28493 (FONT_SOURCE): ... this. Update all users.
28494
a797824f
FZ
284952009-11-20 Felix Zielcke <fzielcke@z-51.de>
28496
28497 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
28498 to the list of unifont files to look for.
28499
cd4f42b0
RM
285002009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28501
28502 Patch from Joe Auricchio <jauricchio@gmail.com>
28503 * commands/minicmd.c (grub_mini_cmd_clear): New function.
28504 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
28505 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
28506
393c783d
FZ
285072009-11-19 Felix Zielcke <fzielcke@z-51.de>
28508
28509 * Makefile.in (install-local): Add a missing backslash.
28510
b2f1e327
FZ
285112009-11-19 Felix Zielcke <fzielcke@z-51.de>
28512
28513 * include/grub/x86_64/io.h: New file.
28514
f577f7a0
RM
285152009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28516
28517 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
28518 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
28519 Include `"progname.h"'.
28520 (main): Initialize gettext.
28521 * util/i386/pc/grub-setup.c: Gettexttize.
28522 * util/i386/pc/grub-mkimage.c: Likewise.
28523
28524 * Makefile.in (po/*.po): Redefine as ...
28525 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
28526
3bc7896c
RM
28527 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
28528
c37943b6
RM
285292009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28530
28531 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
28532 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
28533 (program_name): Remove.
28534 (main): Initialize gettext support.
6323f705
RM
28535 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
28536 Include `<libintl.h>'.
28537 (_): New macro.
c37943b6
RM
28538
28539 * util/mkisofs/eltorito.c: Gettexttize.
28540 * util/mkisofs/joliet.c: Likewise.
28541 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
28542 * util/mkisofs/multi.c: Likewise.
28543 * util/mkisofs/rock.c: Likewise.
28544 * util/mkisofs/tree.c: Likewise.
28545 * util/mkisofs/write.c: Likewise.
28546
3bc7896c
RM
28547 * po/POTFILES: Update with new files.
28548
5ce77c6e
RM
285492009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28550
28551 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
28552 * util/mkisofs/iso9660.h: Likewise.
28553 * util/mkisofs/joliet.c: Likewise.
28554 * util/mkisofs/mkisofs.c: Likewise.
28555 * util/mkisofs/mkisofs.h: Likewise.
28556 * util/mkisofs/rock.c: Likewise.
28557 * util/mkisofs/tree.c: Likewise.
28558 * util/mkisofs/write.c: Likewise.
28559
28560 * util/mkisofs/eltorito.c (rcsid): Remove.
28561 * util/mkisofs/hash.c: Likewise.
28562 * util/mkisofs/joliet.c: Likewise.
28563 * util/mkisofs/name.c: Likewise.
28564 * util/mkisofs/rock.c: Likewise.
28565 * util/mkisofs/tree.c: Likewise.
28566 * util/mkisofs/write.c: Likewise.
28567
1dabbc77
RM
285682009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28569
28570 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
28571 instead of static allocation.
28572 * util/mkisofs/match.h: Likewise.
28573
633877cb
RM
285742009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28575
3bc7896c
RM
28576 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
28577 and `util/grub.d/10_linux.in'.
633877cb
RM
28578 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
28579 translatable Shell files.
28580
af1c0c85
RM
285812009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28582
28583 * Makefile.in ($(srcdir)/aclocal.m4): New target.
28584
769ae37b
RM
285852009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28586
28587 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 28588 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
28589 * util/grub.d/10_kfreebsd.in (bindir): New variable.
28590 Add gettext initialization.
28591 (kfreebsd_entry): Make menuentry output translatable.
28592
285932009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28594
28595 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
28596 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
28597 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
28598 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
28599 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 28600 * po/LINGUAS: New file.
769ae37b
RM
28601
286022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28603
28604 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
28605 other things).
28606 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
28607 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
28608 bindtextdomain() calls for gettext initialization.
28609
286102009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28611
28612 * gnulib/progname.c: New file (imported from Gnulib).
28613 * gnulib/progname.h: Likewise.
28614 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28615 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
28616 (usage): Replace `progname' with `program_name'.
28617 (main): Use set_program_name() for program name initialization.
28618
286192009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28620
28621 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
28622 from here ...
28623 * Makefile.in (CPPFLAGS): ... to here.
28624
286252009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28626
28627 * aclocal.m4: Move from here ...
28628 * acinclude.m4: ... to here.
28629 * autogen.sh: Add call to `aclocal'.
28630 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
28631
286322009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28633
28634 * Makefile.in (CLEANFILES): Add `po/*.mo'.
28635 (LINGUAS): New variable.
28636 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
28637 (install-local): Install MO files.
28638 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
28639 * include/grub/i18n.h: New file.
3bc7896c
RM
28640 * po/POTFILES: New file.
28641 * po/ca.po: New file.
769ae37b
RM
28642 * util/grub.d/10_linux.in (bindir): New variable.
28643 Add gettext initialization.
28644 (linux_entry): Make menuentry output translatable.
28645 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
28646 (usage): Make --help output translatable.
28647 (main): Initialize gettext.
28648
02c0a6ad
RM
286492009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28650
28651 * import_gcry.py: New file (written by Vladimir with minor
28652 adjustments).
28653 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
28654 ciphers.
28655 * INSTALL: Document that Python is required for bootstrap.
28656
286572009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28658
28659 Import ciphers from libgcrypt 1.4.4.
28660
28661 * lib/libgcrypt/cipher/ChangeLog
28662 * lib/libgcrypt/cipher/ac.c
28663 * lib/libgcrypt/cipher/arcfour.c
28664 * lib/libgcrypt/cipher/bithelp.h
28665 * lib/libgcrypt/cipher/blowfish.c
28666 * lib/libgcrypt/cipher/camellia-glue.c
28667 * lib/libgcrypt/cipher/camellia.c
28668 * lib/libgcrypt/cipher/camellia.h
28669 * lib/libgcrypt/cipher/cast5.c
28670 * lib/libgcrypt/cipher/cipher.c
28671 * lib/libgcrypt/cipher/crc.c
28672 * lib/libgcrypt/cipher/des.c
28673 * lib/libgcrypt/cipher/dsa.c
28674 * lib/libgcrypt/cipher/ecc.c
28675 * lib/libgcrypt/cipher/elgamal.c
28676 * lib/libgcrypt/cipher/hash-common.c
28677 * lib/libgcrypt/cipher/hash-common.h
28678 * lib/libgcrypt/cipher/hmac-tests.c
28679 * lib/libgcrypt/cipher/md.c
28680 * lib/libgcrypt/cipher/md4.c
28681 * lib/libgcrypt/cipher/md5.c
28682 * lib/libgcrypt/cipher/primegen.c
28683 * lib/libgcrypt/cipher/pubkey.c
28684 * lib/libgcrypt/cipher/rfc2268.c
28685 * lib/libgcrypt/cipher/rijndael-tables.h
28686 * lib/libgcrypt/cipher/rijndael.c
28687 * lib/libgcrypt/cipher/rmd.h
28688 * lib/libgcrypt/cipher/rmd160.c
28689 * lib/libgcrypt/cipher/rsa.c
28690 * lib/libgcrypt/cipher/seed.c
28691 * lib/libgcrypt/cipher/serpent.c
28692 * lib/libgcrypt/cipher/sha1.c
28693 * lib/libgcrypt/cipher/sha256.c
28694 * lib/libgcrypt/cipher/sha512.c
28695 * lib/libgcrypt/cipher/tiger.c
28696 * lib/libgcrypt/cipher/twofish.c
28697 * lib/libgcrypt/cipher/whirlpool.c
28698
af2f93ac
RM
286992009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28700
28701 Fix build for systems without error().
28702
28703 * gnulib/error.c: New file (imported from Gnulib).
28704 * gnulib/error.h: Likewise.
28705 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
28706 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
28707 (this variable is now used by error()).
28708
73fb3dd5
FZ
287092009-11-16 Felix Zielcke <fzielcke@z-51.de>
28710
814f5e96
FZ
28711 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
28712 instead of relying that char is signed.
73fb3dd5 28713
a691ca33
VS
287142009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
28715
28716 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
28717 blocksize different from specified.
28718 (grub_pxefs_read): Likewise.
28719
2af8f0f4
FZ
287202009-11-16 Felix Zielcke <fzielcke@z-51.de>
28721
28722 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
28723
28724 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
28725 (grub_ata_readwrite): Likewise. Update 2 format strings.
28726 (grub_atapi_read): Likewise.
28727
28728 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
28729 * conf/i386.rmk (pkglib_MODULES): ... to here ...
28730 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
28731 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
28732 (ata_mod_LDFLAGS): Move from here ...
28733 * conf/i386.rmk: ... to here ...
28734 * conf/x86_64-efi.rmk: ... and here.
28735 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
28736 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
28737
83bdecaf
RM
287382009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28739
28740 Relicense multiboot.h, with RMS' blessing.
28741
28742 * include/multiboot.h: Change to X11 license.
28743
fd6fd3d7
RM
287442009-11-15 Robert Millan <rmh.grub@aybabtu.com>
28745
28746 Support --version in grub-mkisofs.
28747
28748 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
28749 (OPTION_VERSION): New macro.
28750 (ld_options): Recognize --version.
28751 (usage): Move `program_name' from here ...
28752 (program_name): ... to here. Add `static' qualifier.
28753 (main): Recognize `OPTION_VERSION'.
28754
16a88c49
FZ
287552009-11-15 Felix Zielcke <fzielcke@z-51.de>
28756
28757 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
28758 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
28759
a4158476
RM
287602009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28761
28762 Fix help2man generation for mkisofs.
28763
28764 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
28765 (usage): Send output to stdout (rather than stderr).
28766
fc2208b0
RM
287672009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28768
28769 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
28770 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28771 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
28772 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28773 (bin_SCRIPTS): Add `grub-mkfloppy'.
28774 (grub_mkfloppy_SOURCES): New variable.
28775
28776 * util/grub-mkrescue.in: New file.
28777 * util/i386/pc/grub-mkfloppy.in: New file.
28778
28779 * util/i386/coreboot/grub-mkrescue.in: Remove.
28780 * util/i386/pc/grub-mkrescue.in: Remove.
28781
8d0edf4a
RM
287822009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28783
28784 * include/grub/multiboot.h (struct grub_multiboot_header): Move
28785 from here ...
28786 * include/multiboot.h (struct multiboot_header): ... to here. Update
28787 all users.
28788 * include/grub/multiboot.h (struct grub_multiboot_info): Move
28789 from here ...
28790 * include/multiboot.h (struct multiboot_info): ... to here. Update
28791 all users.
28792 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
28793 from here ...
28794 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
28795 Update all users.
28796 * include/grub/multiboot.h (struct grub_mod_list): Move
28797 from here ...
28798 * include/multiboot.h (struct multiboot_mod_list): ... to here.
28799 Update all users.
28800
a73f5969
RM
288012009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28802
28803 * include/multiboot2.h (multiboot_word): Rename from this ...
28804 (multiboot2_word): ... to this. Update all users.
28805 (multiboot_header): Rename from this ...
28806 (multiboot2_header): ... to this. Update all users.
28807 (multiboot_tag_header): Rename from this ...
28808 (multiboot2_tag_header): ... to this. Update all users.
28809 (multiboot_tag_start): Rename from this ...
28810 (multiboot2_tag_start): ... to this. Update all users.
28811 (multiboot_tag_name): Rename from this ...
28812 (multiboot2_tag_name): ... to this. Update all users.
28813 (multiboot_tag_module): Rename from this ...
28814 (multiboot2_tag_module): ... to this. Update all users.
28815 (multiboot_tag_memory): Rename from this ...
28816 (multiboot2_tag_memory): ... to this. Update all users.
28817 (multiboot_tag_unused): Rename from this ...
28818 (multiboot2_tag_unused): ... to this. Update all users.
28819 (multiboot_tag_end): Rename from this ...
28820 (multiboot2_tag_end): ... to this. Update all users.
28821
1c8927f0
RM
288222009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28823
28824 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
28825 this platform we should support Multiboot1 first.
28826
28827 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28828 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
28829 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
28830
6e1e0d89
RM
288312009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28832
28833 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
28834 of write calls (converting them to fwrite() if they aren't already).
28835 (get_torito_desc): Likewise.
28836 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
28837
7f2b34d8
RM
288382009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28839
28840 * util/i386/pc/grub-install.in: Move from here ...
28841 * util/grub-install.in: ... to here. Update all users.
28842
c0ef3311
CW
288432009-11-11 Colin Watson <cjwatson@ubuntu.com>
28844
28845 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
28846
e1f240ff
RM
288472009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28848
28849 Support for El Torito without floppy emulation.
28850
28851 * util/mkisofs/eltorito.c: Include `<errno.h>'.
28852 (init_boot_catalog): Improve error handling.
28853 (get_torito_desc): Don't use floppy emulation unless requested by
28854 user. Patch boot information table when requested via
28855 `-boot-info-table'.
28856 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
28857 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
28858 (use_boot_info_table): New variables.
28859 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
28860 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
28861 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
28862 `--eltorito-emul-floppy'.
28863 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
28864 and `OPTION_ELTORITO_EMUL_FLOPPY'.
28865 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
28866 (use_boot_info_table, get_731): New prototypes.
28867 * util/mkisofs/write.c (get_731): New function.
28868
af7d4de5
FZ
288692009-11-11 Felix Zielcke <fzielcke@z-51.de>
28870
28871 Fix the generation of the man page.
28872
28873 * util/pc/i386/grub-install.in: Source
28874 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28875
2c55dbc0
RM
288762009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28877
28878 Large file support for grub-mkisofs.
28879
28880 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
28881 * util/mkisofs/mkisofs.c (next_extent, last_extent)
28882 (session_start): Upgrade type to `uint64_t'. Update all users.
28883 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
28884 (struct directory_entry): Upgrade type of `starting_block' and
28885 `size' to `uint64_t'. Update all users.
28886 (struct deferred): Remove unused structure.
28887 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
28888 Update all users.
28889 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
28890 file is larger than `UINT32_MAX'.
28891 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
28892 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
28893 return value.
28894 (struct deferred_write): Upgrade type of `extent' and `size' to
28895 `uint64_t'. Update all users.
28896 (last_extent_written): Upgrade type to `uint64_t'. Update all
28897 users.
28898 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
28899 Update all users. Upgrade type of `remain' to `int64_t' and
28900 `use' to `size_t'. Use error() to handle fread() errors.
28901 (write_files): Rely on write_one_file() rather than calling
28902 xfwrite() directly.
28903
6a9cead5
FZ
289042009-11-09 Felix Zielcke <fzielcke@z-51.de>
28905
28906 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
28907
4825d790
RM
289082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28909
28910 * util/mkisofs/fnmatch.c: Remove.
28911 * util/mkisofs/getopt1.c: Likewise.
28912 * util/mkisofs/getopt.c: Likewise.
28913 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
28914 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
28915 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
28916 `gnulib/getopt1.c' and `gnulib/getopt.c'.
28917 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
28918
28919 * configure.ac: Detect `mingw32msvc' host_os.
28920 Check for lstat(), getuid() and getgid().
28921
28922 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
28923 instances of `u_char' with `uint8_t'.
28924
28925 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
28926 [!HAVE_GETUID] (getuid): New function (stub).
28927 [!HAVE_GETGID] (getgid): Likewise.
28928 [!HAVE_LSTAT] (lstat): Likewise.
28929 [!S_IROTH] (S_IROTH): New macro (dummy).
28930 [!S_IRGRP] (S_IRGRP): Likewise.
28931
84b860d8
RM
289322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28933
28934 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
28935 conditional expression).
28936
66e9b712
RM
289372009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28938
28939 Import from Gnulib.
28940
28941 * gnulib/fnmatch.c: New file.
28942 * gnulib/fnmatch.h: Likewise.
28943 * gnulib/fnmatch_loop.c: Likewise.
28944 * gnulib/getopt.c: Likewise.
28945 * gnulib/getopt.h: Likewise.
28946 * gnulib/getopt1.c: Likewise.
28947 * gnulib/getopt_int.h: Likewise.
28948 * gnulib/gettext.h: Likewise.
28949
34f4a5b0
RM
289502009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28951
28952 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
28953 * normal/handler.c (read_handler_list): Likewise.
28954
ac451143
RM
289552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28956
28957 Misc cleanup.
28958
28959 * kern/command.c (grub_register_command_prio): Use
28960 grub_zalloc() instead of explicitly zeroing data.
28961 * kern/list.c: Include `<grub/mm.h>'.
28962 (grub_named_list_find): Replace `0' with `NULL'.
28963 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28964 (fs_module_list): Change type to `grub_named_list_t'. Update all
28965 users.
28966 * normal/dyncmd.c (read_command_list): Add space between function
28967 call and parenthesis.
28968 * normal/handler.c (read_handler_list): Likewise.
28969
4089b167
RM
289702009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28971
28972 * normal/auth.c (punishment_delay): Moved from here ...
28973 (grub_auth_strcmp): ... to here (inside function).
28974
325f5037
RM
289752009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28976
28977 * include/grub/list.h (struct grub_named_list): Remove `const'
28978 qualifier from `name'.
28979 (struct grub_prio_list): Likewise.
28980
7aea29a3
RM
289812009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28982
28983 * normal/auth.c: Include `<grub/time.h>'.
28984 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28985
3fd6f044
RM
289862009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28987
28988 * normal/auth.c (punishment_delay): New variable.
28989 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28990 (grub_auth_check_authentication): Punish failed login attempts with
28991 an incremental (2^N) delay.
28992
a4cd68e4
RM
289932009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28994
28995 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28996 path with $(srcdir).
28997
7ad12f43
VS
289982009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28999
29000 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
29001
c1129f03
RM
290022009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29003
29004 * util/i386/coreboot/grub-mkrescue.in: New file.
29005 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
29006 variables.
29007
29008 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
29009 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
29010 * configure.ac: Add header and function checks to satisfy grub-mkisofs
29011 requirements.
29012 * util/mkisofs/defaults.h: New file.
29013 * util/mkisofs/eltorito.c: Likewise.
29014 * util/mkisofs/exclude.h: Likewise.
29015 * util/mkisofs/fnmatch.c: Likewise.
29016 * util/mkisofs/getopt.c: Likewise.
29017 * util/mkisofs/getopt1.c: Likewise.
29018 * util/mkisofs/hash.c: Likewise.
29019 * util/mkisofs/include/fctldefs.h: Likewise.
29020 * util/mkisofs/include/mconfig.h: Likewise.
29021 * util/mkisofs/include/prototyp.h: Likewise.
29022 * util/mkisofs/include/statdefs.h: Likewise.
29023 * util/mkisofs/iso9660.h: Likewise.
29024 * util/mkisofs/joliet.c: Likewise.
29025 * util/mkisofs/match.c: Likewise.
29026 * util/mkisofs/match.h: Likewise.
29027 * util/mkisofs/mkisofs.c: Likewise.
29028 * util/mkisofs/mkisofs.h: Likewise.
29029 * util/mkisofs/multi.c: Likewise.
29030 * util/mkisofs/name.c: Likewise.
29031 * util/mkisofs/rock.c: Likewise.
29032 * util/mkisofs/tree.c: Likewise.
29033 * util/mkisofs/write.c: Likewise.
29034
ec8bb77d
VS
290352009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29036
29037 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
29038 being insecure.
29039
3716b12c
RM
290402009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29041
29042 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
29043 `grub-mkimage' (and use $0 when possible).
29044
b97b7b91
RM
290452009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29046
29047 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
29048 error message for excessively large memory map.
29049
04114812
RM
290502009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29051
29052 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
29053 executable bit.
29054
e4eb2373
RM
290552009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29056
29057 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
29058 message for coreboot users.
29059
c926e1d5 290602009-11-07 Robert Millan <rmh.grub@aybabtu.com>
29061
29062 Fix build with GNU gold.
29063
29064 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
29065 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
29066 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
29067 link addresses.
29068 * aclocal.m4: Likewise.
29069
86e5b1db 290702009-11-04 Felix Zielcke <fzielcke@z-51.de>
29071
29072 * configure.ac (AC_PREREQ): Bump to 2.59d.
29073 * INSTALL: Make it more clear when Autoconf and Ruby are
29074 needed and when to run `./autogen.sh'.
29075
246cd78f 290762009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29077
29078 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
29079 OSes.
29080
4f9dfb37 290812009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29082
29083 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
29084
b82bd5e1 290852009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29086
29087 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
29088 giving it to GNU Mach.
29089
ff1a9bca 290902009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29091
29092 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
29093 GNU partition number to get internal GRUB partition number.
29094
61697d9c 290952009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29096
29097 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
29098 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
29099
a50569e1 291002009-11-01 Robert Millan <rmh.grub@aybabtu.com>
29101
29102 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
29103 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
29104 case.
29105
5b153867 291062009-11-01 Felix Zielcke <fzielcke@z-51.de>
29107
29108 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
29109
d9e2cd70 291102009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29111
29112 Fix build problem.
29113
29114 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
29115 `-isystem=$(srcdir)/include'.
29116
805111a4 291172009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29118
29119 * util/i386/pc/grub-install.in: Remove hint that device.map should be
29120 checked (grub-install doesn't currently rely on it).
29121
fa6e945f 291222009-10-29 Robert Millan <rmh.grub@aybabtu.com>
29123
29124 Revert SVN r2660.
29125
29126 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
29127 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29128 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
29129 * conf/i386-ieee1275.rmk: Likewise.
29130 * conf/i386-pc.rmk: Likewise.
29131 * conf/powerpc-ieee1275.rmk: Likewise.
29132 * conf/sparc64-ieee1275.rmk: Likewise.
29133 * conf/x86_64-efi.rmk: Likewise.
29134
cee15086 291352009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29136
29137 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
29138
95b9239e 291392009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29140
29141 * include/grub/misc.h: Stop checking for APPLE_CC.
29142
2ed19dfd 291432009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29144
29145 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
29146 doesn't cause an infinite call loop.
29147
fdcdde19 291482009-10-28 Felix Zielcke <fzielcke@z-51.de>
29149
29150 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
29151 strings.
29152
cefabfe1 291532009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29154
29155 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29156 variable.
29157 * Makefile.in: Likewise.
29158
ed96ab6d 291592009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29160
29161 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29162
0579b753 291632009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29164
29165 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29166
478df409 291672009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29168
29169 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29170
083d1679 291712009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29172
29173 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29174 from here ...
29175 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29176
5947ae32 291772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29178
29179 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29180 in $(MAKEINFO) invocation. This makes it clear in output that
29181 errors are being ignored.
29182
94180ff6 291832009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29184
29185 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29186 from here ...
29187 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29188 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29189 * conf/i386-ieee1275.rmk: Likewise.
29190 * conf/i386-pc.rmk: Likewise.
29191 * conf/powerpc-ieee1275.rmk: Likewise.
29192 * conf/sparc64-ieee1275.rmk: Likewise.
29193 * conf/x86_64-efi.rmk: Likewise.
29194
9031b03a 291952009-10-26 Colin Watson <cjwatson@ubuntu.com>
29196
29197 * util/grub-editenv.c (main): If only a command is given, use
29198 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29199 (usage): FILENAME is now optional and has a default.
29200
e4f6809b 292012009-10-26 Colin Watson <cjwatson@ubuntu.com>
29202
29203 Improve grub-mkconfig performance when there are several menu
29204 entries on a single filesystem.
29205
29206 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29207 prepare_grub_to_access_device.
29208 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29209 * util/grub.d/30_os-prober.in: Likewise.
29210
67937d4d 292112009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29212
29213 * util/grub.d/10_freebsd.in: Remove.
29214 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29215 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29216
ee3756cc 292172009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29218
5c35048e 29219 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 29220
4dea1c6f 292212009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29222
29223 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29224 grub_util_error() call.
29225
042484d7 292262009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29227
29228 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29229 `reserved_first_sector' member.
29230 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29231 `reserved_first_sector' to 1.
29232 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29233 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29234 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29235 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29236 filesystems which begin at first sector.
29237 (options): New option --skip-fs-probe.
29238 (main): Handle --skip-fs-probe and pass it to setup().
29239
d64448a7 292402009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29241
29242 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29243 (memset): Fix function prototype.
29244
508d42ec 292452009-10-25 Robert Millan <rmh.grub@aybabtu.com>
292462009-10-25 Vasily Averin <vvs@parallels.com>
29247
29248 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29249 `dirent.direntlen == 0'.
29250
b240e30c 292512009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29252
29253 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29254 `cpio'.
29255 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29256
346e7fbe 292572009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29258
29259 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29260 `__trampoline_setup' and `__ucmpdi2'.
29261 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29262 that libgcc provides.
29263
cdb308b0 292642009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29265
29266 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29267 * include/grub/sparc64/libgcc.h (memset): Likewise.
29268 * include/grub/misc.h (memset, memcmp): New function prototypes.
29269
fb26abc2 292702009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29271
29272 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29273 `cpio'.
29274 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29275
f6693890 292762009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29277
29278 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29279 * docs/grub.cfg: Compensate for recent change in multiboot
29280 loader (since 2009-08-14 it won't pass filename to payload).
29281 * util/grub.d/10_hurd.in: Likewise.
29282
0933cdc0 292832009-10-21 Felix Zielcke <fzielcke@z-51.de>
29284
29285 * config.guess: Update to latest version from config git
29286 repository.
29287 * config.sub: Likewise.
29288
3b2fe8c2 292892009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29290
29291 Fix build on sparc64.
29292
29293 * configure.ac: Perform checks for libgcc symbols before
29294 adding `-nostdlib' to LDFLAGS.
29295
46695a62 292962009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29297
29298 Let user specify OpenBSD root device.
29299
29300 * loader/i386/bsd.c (openbsd_root): New variable.
29301 (openbsd_opts): New option 'root'.
29302 (OPENBSD_ROOT_ARG): New macro.
29303 (grub_openbsd_boot): Use 'openbsd_root'.
29304 (grub_cmd_openbsd): Fill 'openbsd_root'.
29305
d2b6b7fc 293062009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29307
29308 * NEWS: Misc adjustments.
29309
421bd7ac 293102009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29311
29312 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29313
f1d29d87 293142009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29315
29316 * configure.ac: Bump version to 1.97.
29317
6f3cd880 293182009-10-16 Colin Watson <cjwatson@ubuntu.com>
29319
29320 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29321 -mno-3dnow on x86 architectures. Some toolchains enable these
29322 features by default, but they rely on registers that aren't enabled
29323 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29324
035f7122 293252009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29326
29327 Make entry text a bit more readable.
29328
29329 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29330
44998e58 293312009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29334
cd2851b3 293352009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29336
29337 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29338 operations.
29339
c6f3b249 293402009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29341
29342 * configure.ac: Add missing dollar.
29343
6b5886ba 293442009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29345
29346 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29347
29348 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29349 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29350 exports.
29351 * include/grub/sparc64/libgcc.h: Likewise. Use
29352 preprocessor conditionals.
29353
e9d66f6d 293542009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29355
29356 * conf/common.rmk (grub-dumpbios): Remove rule.
29357 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29358 * util/grub-dumpbios.in: Remove file.
29359
9155bc17 293602009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29361
29362 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29363 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29364
29365 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29366 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29367 users.
29368
29369 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29370 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29371 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29372 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29373 users.
29374
bf7f7a18 293752009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29376
29377 * term/tparm.c: Switch to GPLv3.
29378
86564c26 293792009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29380
29381 * include/grub/i386/cpuid.h: Add header protection.
29382
5c936493 293832009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29384
29385 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29386
29387 * include/grub/i386/cpuid.h: New file.
29388 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29389 (has_longmode): Rename to ...
29390 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29391 `static' attribute.
29392 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29393 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29394 on a CPU that doesn't implement AMD64 instruction set.
29395
186e7cf2 293962009-10-06 Colin Watson <cjwatson@ubuntu.com>
29397
29398 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29399 that version.texi is rebuilt on version number changes.
29400
83b65c4a 294012009-10-06 Colin Watson <cjwatson@ubuntu.com>
29402
29403 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29404 Fixes bug #27602.
29405
d244281c 294062009-10-06 Colin Watson <cjwatson@ubuntu.com>
29407
29408 * util/i386/pc/grub-install.in: Source
29409 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29410 that the --grub-probe option will work.
29411 * util/sparc64/ieee1275/grub-install.in: Likewise.
29412
da25306d 294132009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29414
29415 * configure.ac: Bump version to 1.97~beta4.
29416
e8ee83c0 294172009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29418
29419 Resync grub-mkdevicemap in x86_64-efi.
29420
29421 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29422 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29423 `util/devicemap.c'.
29424
50dcabcf 294252009-10-01 Colin Watson <cjwatson@ubuntu.com>
29426
29427 * util/grub-editenv.c (create_envblk_file): Write new block with a
29428 .new suffix and then rename it into place, to ensure atomic
29429 creation.
29430
0e51c3a7 294312009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29432
29433 Do not automatically install headers.
29434
29435 * Makefile.in (include_DATA): Remove. Update all users.
29436
31299a95 294372009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29438
29439 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
29440 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
29441
29442 * util/osdetect.lua: Remove.
29443 * script/lua/lauxlib.c: Likewise.
29444 * script/lua/ldebug.c: Likewise.
29445 * script/lua/grub_main.c: Likewise.
29446 * script/lua/lauxlib.h: Likewise.
29447 * script/lua/ldebug.h: Likewise.
29448 * script/lua/ltablib.c: Likewise.
29449 * script/lua/liolib.c: Likewise.
29450 * script/lua/lstrlib.c: Likewise.
29451 * script/lua/lualib.h: Likewise.
29452 * script/lua/ldo.c: Likewise.
29453 * script/lua/ldump.c: Likewise.
29454 * script/lua/ldo.h: Likewise.
29455 * script/lua/loslib.c: Likewise.
29456 * script/lua/lundump.c: Likewise.
29457 * script/lua/grub_lib.c: Likewise.
29458 * script/lua/ldblib.c: Likewise.
29459 * script/lua/lundump.h: Likewise.
29460 * script/lua/lmem.c: Likewise.
29461 * script/lua/grub_lib.h: Likewise.
29462 * script/lua/lmathlib.c: Likewise.
29463 * script/lua/lstate.c: Likewise.
29464 * script/lua/ltm.c: Likewise.
29465 * script/lua/lvm.c: Likewise.
29466 * script/lua/lmem.h: Likewise.
29467 * script/lua/lstate.h: Likewise.
29468 * script/lua/ltm.h: Likewise.
29469 * script/lua/ltable.c: Likewise.
29470 * script/lua/lvm.h: Likewise.
29471 * script/lua/llex.c: Likewise.
29472 * script/lua/lgc.c: Likewise.
29473 * script/lua/grub_lua.h: Likewise.
29474 * script/lua/loadlib.c: Likewise.
29475 * script/lua/lfunc.c: Likewise.
29476 * script/lua/lopcodes.c: Likewise.
29477 * script/lua/lparser.c: Likewise.
29478 * script/lua/ltable.h: Likewise.
29479 * script/lua/llex.h: Likewise.
29480 * script/lua/lgc.h: Likewise.
29481 * script/lua/lfunc.h: Likewise.
29482 * script/lua/lbaselib.c: Likewise.
29483 * script/lua/lopcodes.h: Likewise.
29484 * script/lua/lparser.h: Likewise.
29485 * script/lua/lzio.c: Likewise.
29486 * script/lua/linit.c: Likewise.
29487 * script/lua/lobject.c: Likewise.
29488 * script/lua/llimits.h: Likewise.
29489 * script/lua/lstring.c: Likewise.
29490 * script/lua/lzio.h: Likewise.
29491 * script/lua/lapi.c: Likewise.
29492 * script/lua/lcode.c: Likewise.
29493 * script/lua/lua.h: Likewise.
29494 * script/lua/lobject.h: Likewise.
29495 * script/lua/lstring.h: Likewise.
29496 * script/lua/lapi.h: Likewise.
29497 * script/lua/lcode.h: Likewise.
29498 * script/lua/luaconf.h: Likewise.
29499
cb8a2c38 295002009-09-26 Colin Watson <cjwatson@ubuntu.com>
29501
29502 * docs/grub.texi (Command-line and menu entry commands): Document
29503 date and echo commands.
29504
6b9b6276 295052009-09-24 Pavel Roskin <proski@gnu.org>
29506
29507 * include/grub/kernel.h (struct grub_module_header): Remove
29508 `grub_module_header_types'. Make `type' unsigned. Make `size'
29509 32-bit on all platforms.
29510 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
29511 8-bit field. Use grub_host_to_target32() for `size'.
29512 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
29513 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
29514 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
29515
4e5a02a7 295162009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29517
29518 Fix "lost keypress" bug in at_keyboard.
29519
29520 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
29521 Checks for readyness of input buffer (without flushing it).
29522 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
29523 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
29524
c6dcedf6 295252009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29526
29527 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
29528 size check within GRUB_MACHINE_PCBIOS section.
29529
74c958b1 295302009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29531
29532 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
29533 return value.
29534 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
29535 KEYBOARD_ISREADY check.
29536 (grub_at_keyboard_checkkey): Rename to ...
29537 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
29538 Remove gratuitous cast.
29539
ff420223 295402009-09-23 Colin Watson <cjwatson@ubuntu.com>
29541
29542 * configure.ac: Call AC_PROG_MKDIR_P.
29543 * Makefile.in (docs/stamp-vti): Create docs directory. Create
29544 version.texi in $(builddir) rather than $(srcdir).
29545 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
29546 to makeinfo's @include search path.
29547
d96875df 295482009-09-23 Felix Zielcke <fzielcke@z-51.de>
29549
29550 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
29551
9b3f8365 295522009-09-23 Felix Zielcke <fzielcke@z-51.de>
29553
29554 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
29555 for `*.dpkg-new'.
29556
c44c90db 295572009-09-21 Colin Watson <cjwatson@ubuntu.com>
29558
29559 Build info documentation. Some code borrowed from Automake.
29560
29561 * configure.ac: Check for makeinfo.
29562 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
29563 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
29564 docs/version.texi.
29565 (MOSTLYCLEANFILES): Add vti.tmp.
29566 (docs/version.texi, docs/stamp-vti): Update automatically.
29567 (docs/grub.info): Build info documentation. Use --force and ignore
29568 errors for now.
29569 (all-local): Add $(INFOS).
29570 (install-local): Install info files.
29571 (uninstall): Uninstall info files.
29572 * docs/version.texi: Remove from revision control. This file is
29573 automatically generated on build now.
29574 * gendistlist.sh: Add `*.info'.
29575
e0b37bb5 295762009-09-21 Felix Zielcke <fzielcke@z-51.de>
29577
29578 * kern/term.c: Fix indentation.
29579
5a78865b 295802009-09-21 Felix Zielcke <fzielcke@z-51.de>
29581
29582 * util/hostdisk.c: Fix a comment.
29583
dace7e8a 295842009-09-20 Robert Millan <rmh.grub@aybabtu.com>
29585
29586 Fix regression introduced in r2539.
29587
29588 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
29589 to 0xA1.
29590
a83d079b 295912009-09-19 Colin Watson <cjwatson@ubuntu.com>
29592
29593 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 29594 os-prober. Under normal operation, it does not print anything to
29595 stderr; if it does, we need to debug it, and throwing away stderr
29596 makes that excessively difficult.
a83d079b 29597
be94a509 295982009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
29599
29600 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
29601
63f745e8 296022009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29603
29604 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
29605 AC_LANG_PROGRAM from autoconf.
29606 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
29607 prototypes (fixes warning).
29608
29609 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
29610 `--disable-werror' was used.
29611
bbb2a70f 296122009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29613
29614 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
29615 uninitialized `lastaddr'.
29616
77c24f1d 296172009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
29618
0f0b8c87 29619 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 29620
07197f23 296212009-09-14 Colin Watson <cjwatson@ubuntu.com>
29622
29623 * commands/test.c (get_fileinfo): Return immediately if
29624 grub_fs_probe fails.
29625
dabf1798 296262009-09-14 José Martínez <xosemp@gmail.com>
29627
29628 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
29629
d52109a7 296302009-09-14 Colin Watson <cjwatson@ubuntu.com>
29631
29632 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
29633 output.
29634
56532179 296352009-09-13 Robert Millan <rmh.grub@aybabtu.com>
29636
29637 * configure.ac: Remove --enable-grub-pe2elf. Only build
29638 grub-pe2elf when needed by the build system itself.
29639 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
29640
8ef070f5 296412009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29642
29643 * configure.ac: Bump version to 1.97~beta3.
29644 * docs/version.texi: Likewise.
29645
61229557 296462009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29647
29648 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
29649 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
29650 from here ...
29651 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
29652 (grub_linux_setup_video): ... to here (with some adjustments).
29653
5c9f8d84 296542009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29655
29656 Fix memory corruption issue (spotted by Colin Watson).
29657
29658 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
29659 causing returned size to be stored in an incorrect memory location.
29660 Fix use of uninitialized value when storing the returned size.
29661
e8f5d6e9 296622009-09-12 Yves Blusseau <blusseau@zetam.org>
29663
29664 Change clean rules to properly remove files
29665
29666 * genmk.rb: add new clean rules
29667 * Makefile.in (clean): add the new targets
29668 (mostlyclean): likewise
29669
cda2a409 296702009-09-11 Colin Watson <cjwatson@ubuntu.com>
29671
29672 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
29673 to grub_uint64_t.
29674 * fs/ntfs.c (init_file): Understand 64-bit sizes for
29675 non-resident files.
29676
86695375 296772009-09-11 Colin Watson <cjwatson@ubuntu.com>
29678
29679 * configure.ac: Don't look for help2man when cross-compiling. Fixes
29680 part of bug #27349.
29681
8aa1541a 296822009-09-10 Felix Zielcke <fzielcke@z-51.de>
29683
29684 * util/grub-mkconfig.in: Make the created config mode 400 and
29685 print a warning if it fails.
29686
48d9bb0a 296872009-09-10 Robert Millan <rmh.grub@aybabtu.com>
29688
29689 * util/grub.d/40_custom.in: Ask user to type custom entries below
29690 comment, rather than below 'exec tail' line.
29691
3b0521be 296922009-09-10 Colin Watson <cjwatson@ubuntu.com>
29693
29694 * util/grub.d/40_custom.in: Make sure that the explanatory text is
29695 visible in grub.cfg.
29696
50051d55 296972009-09-10 Colin Watson <cjwatson@ubuntu.com>
29698
29699 * util/grub.d/40_custom.in: Make it a little clearer how to use this
29700 file.
29701
c0d34387 297022009-09-10 Felix Zielcke <fzielcke@z-51.de>
29703
29704 * docs/grub.cfg: Add an example menu entry for memtest86+.
29705
80a608f3 297062009-09-09 Felix Zielcke <fzielcke@z-51.de>
29707
a2094832 29708 * config.guess: Update to latest version from config git.
80a608f3 29709 * config.sub: Likewise.
29710
99423078 297112009-09-08 Colin Watson <cjwatson@ubuntu.com>
29712
29713 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
29714 unknown-command case. Fixes bug #27320.
29715
44454e4c 297162009-09-08 Felix Zielcke <fzielcke@z-51.de>
29717
29718 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
29719 `help' if the command exists.
29720
e30d87ad 297212009-09-06 Robert Millan <rmh.grub@aybabtu.com>
29722
29723 * INSTALL: Require GCC 4.1.3 or later.
29724
9a86f1ec 297252009-09-06 Yves Blusseau <blusseau@zetam.org>
29726
29727 * Makefile.in (RMKFILES): add i386-qemu.rmk
29728 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
29729 $(srcdir)/stamp-h.in
29730
7f26d466 297312009-09-05 Robert Millan <rmh.grub@aybabtu.com>
29732
29733 * util/grub-probe.c (probe): Comment out buggy codepath, which
29734 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
29735 should be re-enabled after 1.97.
29736
3a613259 297372009-09-05 Felix Zielcke <fzielcke@z-51.de>
29738
29739 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
29740 find searches for.
29741
197f76c7 297422009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
29743
29744 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
29745 unnecessary calls to grub_error.
29746
70ba68ce 297472009-09-04 Colin Watson <cjwatson@ubuntu.com>
29748
29749 * NEWS: Mention `keystatus' and Unicode fonts.
29750
4ff0d7a4 297512009-09-04 Robert Millan <rmh.grub@aybabtu.com>
29752
29753 * configure.ac: Bump version to 1.97~beta2.
29754 * docs/version.texi: Likewise.
29755
77c55a87 297562009-09-03 Colin Watson <cjwatson@ubuntu.com>
29757
29758 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
29759 containing unwind information in some cases where it previously did
29760 not. Use -fno-dwarf2-cfi-asm if available to restore the old
29761 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
29762 discussion.
29763
f79572cd 297642009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
29765
29766 Embedding loadenv module into grub-emu
29767
29768 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
29769 commands/loadenv.c
29770 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
29771 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
29772 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
29773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
29774 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
29775 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
29776
93a81088 297772009-09-03 Magnus Granberg <zorry@ume.nu>
29778
29779 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
29780 include -fPIE in the default specs.
29781 * configure.ac: Check if pie_possible is yes and add -fno-PIE
29782 to TARGET_CFLAGS.
29783
160034b2 297842009-09-03 Felix Zielcke <fzielcke@z-51.de>
29785
29786 * INSTALL: Note that GNU Bison 2.3 or later is required.
29787
087c07c4 297882009-09-03 Colin Watson <cjwatson@ubuntu.com>
29789
29790 * kern/i386/pc/startup.S: Fix typo.
29791
cbf978c0 297922009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
29793
29794 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
29795 according to GCS.
29796
297972009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 29798
29799 * docs/grub.texi (Naming convention): Describe one-based partition
29800 numbering.
29801 (Device syntax): Likewise.
29802 (File name syntax): Likewise.
29803 (Block list syntax): Likewise.
29804 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
29805 menu.lst.
29806 (File name syntax): Likewise.
29807 (Command-line and menu entry commands): Document acpi, blocklist,
29808 crc, export, insmod, keystatus, ls, set, and unset commands.
29809
f3e8cdfd 298102009-09-02 Colin Watson <cjwatson@ubuntu.com>
29811
29812 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
29813 to avoid implying that only one of --shift, --ctrl, or --alt may be
29814 used.
29815
c0bc232b 298162009-09-02 Colin Watson <cjwatson@ubuntu.com>
29817
29818 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
29819 rather than comparing against S_IFREG, which will almost never work.
29820
aa0f752d 298212009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
29822
29823 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
29824 (write_blocklists): Likewise.
29825
ecb3166a 298262009-09-01 Colin Watson <cjwatson@ubuntu.com>
29827
29828 * script/lua/grub_lua.h (fputs): Supply a format string as the first
29829 argument to grub_printf.
29830
c403a125 298312009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 29832
29833 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 29834 non GNU test.
31aba781 29835
b5e7312c 298362009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29837
29838 * kern/file.c (grub_file_read): Spelling fix
29839
fe00f472 298402009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29841
29842 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
29843 loading of headers in some cases.
29844
cc55302e 298452009-08-30 Robert Millan <rmh.grub@aybabtu.com>
29846
29847 * configure.ac: Bump version to 1.97~beta1.
29848 * docs/version.texi: Likewise.
29849
5c90cdd2 298502009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 29851
29852 * include/grub/i386/xnu.h: Add license header.
29853 include grub/err.h explicitly.
29854
c90edae4 298552009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29856
29857 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
29858 to `ufs' in the vfs.root.mountfrom kernel parameter.
29859
d8888b5c 298602009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29861
29862 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
29863
29864 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
29865 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
29866
29867 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
29868 `ARRAY_SIZE' macro.
29869
6f07b921 298702009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29871
29872 * kern/file.c (grub_file_read): Check offset.
29873 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
29874 * fs/jfs.c (grub_jfs_read_file): Likewise.
29875 * fs/ntfs.c (grub_ntfs_read): Likewise.
29876 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
29877 * fs/minix.c (grub_minix_read_file): Correct offset check.
29878 * fs/ufs.c (grub_ufs_read_file): Likewise.
29879
b4f34077 298802009-08-28 Colin Watson <cjwatson@ubuntu.com>
29881
29882 * term/i386/pc/console.c (bios_data_area): Cast
29883 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
29884
e7c69859 298852009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 1-bit optimised blitters.
29888
29889 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
29890 prototype.
29891 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29892 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29893 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29894 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29895 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29896 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29897 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
29898 function.
29899 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29900 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29901 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29902 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29903 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29904 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29905 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
29906 when possible.
29907 * video/video.c (grub_video_get_blit_format): Return
29908 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
29909
a57da43f 299102009-08-28 Colin Watson <cjwatson@ubuntu.com>
29911
29912 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
29913 the first argument to grub_printf.
29914
4cbe67e5 299152009-08-28 Colin Watson <cjwatson@ubuntu.com>
299162009-08-28 Robert Millan <rmh.grub@aybabtu.com>
29917
29918 Add `getkeystatus' terminal method. Add a new `keystatus' command
29919 to query it.
29920
29921 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
29922 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
29923 modifier key bitmasks.
29924 (struct grub_term_input): Add `getkeystatus' member.
29925 (grub_getkeystatus): Add prototype.
29926 * kern/term.c (grub_getkeystatus): New function.
29927
29928 * include/grub/i386/pc/memory.h
29929 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
29930 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
29931 Data Area layout.
29932 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
29933 (grub_console_term_input): Set `getkeystatus' member.
29934 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
29935 constants.
29936 (grub_usb_keyboard_getreport): Likewise.
29937 (grub_usb_keyboard_checkkey): Likewise.
29938 (grub_usb_keyboard_getkeystatus): New function.
29939 (grub_usb_keyboard_term): Set `getkeystatus' member.
29940
29941 * commands/keystatus.c: New file.
29942 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
29943 (keystatus_mod_SOURCES): New variable.
29944 (keystatus_mod_CFLAGS): Likewise.
29945 (keystatus_mod_LDFLAGS): Likewise.
29946 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
29947 commands/keystatus.c.
29948 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29949 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29950 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29951 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29952 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29953 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 29954
6e2a9085 299552009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29956
29957 Split befs.mod and afs.mod into *_be.mod and *.mod
29958
29959 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
29960 (grub_fstest_SOURCES): Likewise.
29961 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
29962 (afs_be_mod_SOURCES): New variable.
29963 (afs_be_mod_CFLAGS): Likewise.
29964 (afs_be_mod_LDFLAGS): Likewise.
29965 (befs_be_mod_SOURCES): Likewise.
29966 (befs_be_mod_CFLAGS): Likewise.
29967 (befs_be_mod_LDFLAGS): Likewise.
29968 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29969 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29970 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29971 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29972 (grub_emu_SOURCES): Likewise.
29973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29974 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29975 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29976 * fs/afs_be.c: New file.
29977 * fs/befs_be.c: New file.
29978 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29979 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29980 (U16): Replaced with ...
29981 (grub_afs_to_cpu16): ...this. All users updated.
29982 (U32): Replaced with ...
29983 (grub_afs_to_cpu32): ...this. All users updated.
29984 (U64): Replaced with ...
29985 (grub_afs_to_cpu64): ...this. All users updated.
29986 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29987 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29988 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29989 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29990 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29991 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29992 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29993 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29994 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29995 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29996 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29997
32a71655 299982009-08-26 Bean <bean123ch@gmail.com>
29999
30000 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
30001 64-bit number.
30002 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
30003 (grub_xfs_inode_block): Change return type to grub_uint64_t.
30004 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
30005
552bf6c5 300062009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30007
30008 NetBSD memory map support.
30009
30010 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
30011 (grub_netbsd_btinfo_mmap_header): New structure.
30012 (grub_netbsd_btinfo_mmap_entry): Likewise.
30013 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
30014
1ae2078c 300152009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30016
30017 Enable bsd.mod on coreboot.
30018
30019 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
30020 (bsd_mod_SOURCES): New variable.
30021 (bsd_mod_CFLAGS): Likewise.
30022 (bsd_mod_LDFLAGS): Likewise.
30023 (bsd_mod_ASFLAGS): Likewise.
30024 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
30025 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
30026
beefc598 300272009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30028
30029 Cleanup NetBSD root support.
30030
30031 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
30032 grub_bsd_get_device.
30033 Fix typo.
30034
3b76e68b 300352009-08-25 Felix Zielcke <fzielcke@z-51.de>
30036
30037 * util/grub.d/00_header.in: Move check for the video backend of
30038 gfxterm from here ...
30039 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
30040 a suitable video backend.
30041
aea664ea 300422009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30043
30044 Fix breakage in grub-setup.
30045
30046 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
30047 "msdos_partition_map".
30048
ff747d50 300492009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 Fix breakage in normal/auth.c.
30052
30053 * normal/auth.c (grub_iswordseparator): New function.
30054
e7e1f93f 300552009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30056
30057 Authentication support.
30058
30059 * commands/password.c: New file.
30060 * conf/common.rmk (pkglib_MODULES): Add password.mod.
30061 (password_mod_SOURCES): New variable.
30062 (password_mod_CFLAGS): Likewise.
30063 (password_mod_LDFLAGS): Likewise.
30064 (normal_mod_SOURCES): Add normal/auth.c.
30065 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
30066 normal/auth.c.
30067 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30068 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30069 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30071 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30072 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30073 * include/grub/auth.h: New file.
30074 * include/grub/err.h (grub_err_t): New enum value
30075 GRUB_ERR_ACCESS_DENIED.
30076 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
30077 'users'.
30078 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
30079 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
30080 users updated.
30081 * normal/auth.c: New file.
30082 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
30083 (grub_cmdline_run): Don't allow to go to command line without
30084 authentication.
30085 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
30086 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
30087 menuentry without superuser rights.
30088 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
30089 user isn't a superuser.
30090
70f1161d 300912009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30092
30093 Save space by inlining misc.c functions.
30094
30095 * kern/misc.c (grub_iswordseparator): Made static.
30096 * kern/misc.c (grub_strcat): Moved from here ...
30097 * include/grub/misc.h (grub_strcat): ... here. Inlined.
30098 * kern/misc.c (grub_strncat): Moved from here ...
30099 * include/grub/misc.h (grub_strncat): ... here. Inlined.
30100 * kern/misc.c (grub_strcasecmp): Moved from here ...
30101 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
30102 * kern/misc.c (grub_strncasecmp): Moved from here ...
30103 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
30104 * kern/misc.c (grub_isalpha): Moved from here ...
30105 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
30106 * kern/misc.c (grub_isdigit): Moved from here ...
30107 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
30108 * kern/misc.c (grub_isgraph): Moved from here ...
30109 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
30110 * kern/misc.c (grub_tolower): Moved from here ...
30111 * include/grub/misc.h (grub_tolower): ... here. Inlined.
30112
48e40bff 301132009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30114
30115 * script/sh/function.c (grub_script_function_find): Cut error message
30116 not to flood terminal.
30117 * script/sh/lexer.c (grub_script_yylex): Remove command line length
30118 limit.
30119 * script/sh/script.c (grub_script_arg_add): Duplicate string.
30120
c385bfc3 301212009-08-24 Colin Watson <cjwatson@ubuntu.com>
30122
30123 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
30124 `report' grub_uint8_t *.
30125 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
30126 Use a 50-millisecond timeout rather than just repeating
30127 grub_usb_keyboard_getreport 50 times.
30128 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
30129
2d21e3e8 301302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30131
30132 Rename *_partition_map to part_*
30133
30134 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
30135 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
30136 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
30137 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
30138 All users updated.
30139 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
30140 All users updated.
30141 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
30142 * util/grub-probe.c (probe_partmap): Don't transform partition name
30143 to get module name.
30144
dd103c4e 301452009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30146
30147 Fix OpenBSD and NetBSD support.
30148
30149 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
30150 memory address conflict.
30151 (OPENBSD_MMAP_ACPI): New definition.
30152 (OPENBSD_MMAP_NVS): Likewise.
30153 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30154 and OPENBSD_MMAP_NVS.
30155 Add memory map terminator
30156 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 30157 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 30158
16c84d74 301592009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30160
30161 Let user specify NetBSD root device.
30162
30163 * loader/i386/bsd.c (netbsd_root): New variable.
30164 (netbsd_opts): New option 'root'.
30165 (NETBSD_ROOT_ARG): New macro.
30166 (grub_netbsd_boot): Use 'netbsd_root'.
30167 (grub_bsd_unload): Free 'netbsd_root'.
30168 (grub_cmd_netbsd): Fill 'netbsd_root'.
30169
adb29902 301702009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30171
30172 Support for 64-bit NetBSD.
30173
30174 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30175 point when booting non-FreeBSD.
30176
f5ae9f74 301772009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30178
30179 Support --no-smp and --no-acpi for NetBSD.
30180
30181 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30182 (NETBSD_AB_NOACPI): Likewise.
30183 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30184 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30185
de74f136 301862009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30187
30188 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30189 errors.
30190 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30191 errors. Call grub_error when needed.
30192
e9a925da 301932009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30194
30195 * commands/search.c (search_fs): Try searching without autoload first.
30196 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30197 filesystem module explicitly for faster booting.
30198
5174302b 301992009-08-23 Colin Watson <cjwatson@ubuntu.com>
30200
30201 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30202
c8c80635 302032009-08-23 Colin Watson <cjwatson@ubuntu.com>
30204
30205 * util/grub.d/30_os-prober.in: Disable os-prober if
30206 `GRUB_DISABLE_OS_PROBER' was set to true.
30207
71acf5e5 302082009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30209
30210 * partmap/pc.c: Rename to ...
30211 * partmap/msdos.c: ... this. Update all users.
30212 (grub_pc_partition_map): Rename to ...
30213 (grub_msdos_partition_map): ... this. Update all users.
30214
30215 * parttool/pcpart.c: Rename to ...
30216 * parttool/msdospart.c: ... this. Update all users.
30217
30218 * include/grub/pc_partition.h: Rename to ...
30219 * include/grub/msdos_partition.h: ... this. Update all users.
30220 (grub_pc_partition_bsd_entry): Rename to ...
30221 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30222 (grub_pc_partition_disk_label): Rename to ...
30223 (grub_msdos_partition_disk_label): ... this. Update all users.
30224 (grub_pc_partition_entry): Rename to ...
30225 (grub_msdos_partition_entry): ... this. Update all users.
30226 (grub_pc_partition_mbr): Rename to ...
30227 (grub_msdos_partition_mbr): ... this. Update all users.
30228 (grub_pc_partition): Rename to ...
30229 (grub_msdos_partition): ... this. Update all users.
30230 (grub_pc_partition_is_empty): Rename to ...
30231 (grub_msdos_partition_is_empty): ... this. Update all users.
30232 (grub_pc_partition_is_extended): Rename to ...
30233 (grub_msdos_partition_is_extended): ... this. Update all users.
30234 (grub_pc_partition_is_bsd): Rename to ...
30235 (grub_msdos_partition_is_bsd): ... this. Update all users.
30236
30237 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30238 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30239 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30240 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30241 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30242 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30243 (gpt_mod_LDFLAGS): Rename to ...
30244 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30245 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30246 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30247 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30248 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30249 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30250 (part_gpt_mod_LDFLAGS): ... this.
30251 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30252 `pcpart.mod' to `msdospart.mod'.
30253 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30254 to ...
30255 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30256 (msdospart_mod_LDFLAGS): ... this.
30257
c11fded5 302582009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30259
30260 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30261 (openbsd_opts): Likewise.
30262 (netbsd_opts): Likewise.
30263 (freebsd_flags): Added 0 terminator.
30264 (openbsd_flags): Likewise.
30265 (netbsd_flags): Likewise.
30266 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30267 (grub_cmd_freebsd): Transformed into extended command.
30268 (grub_cmd_openbsd): Likewise.
30269 (grub_cmd_netbsd): Likewise.
30270 (cmd_freebsd): Changed type to grub_extcmd_t.
30271 (cmd_openbsd): Likewise.
30272 (cmd_netbsd): Likewise.
30273 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30274 grub_cmd_openbsd as extended commands.
30275 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30276 cmd_netbsd and cmd_openbsd
30277
11d1c769 302782009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30279
30280 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30281
7a9094e5 302822009-08-21 Pavel Roskin <proski@gnu.org>
30283
5496c37e 30284 * Makefile.in (install-local): When checking if a file is in the
30285 build directory, use "test -e" to detect symlinks.
30286
7a9094e5 30287 * Makefile.in (install-local): Remove all files in
30288 $(DESTDIR)$(pkglibdir) before installing new files there.
30289
e53cea11 302902009-08-18 Felix Zielcke <fzielcke@z-51.de>
30291
30292 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30293 grub-mkelfimage.
30294
9aced544 302952009-08-18 Felix Zielcke <fzielcke@z-51.de>
30296
30297 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30298 explicitly specified by the user.
30299
b7da6bab 303002009-08-18 Pavel Roskin <proski@gnu.org>
30301
30302 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30303 grub_uint8_t pointer for data.
30304 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30305 Likewise.
30306 * video/fb/fbutil.c: Remove unnecessary casts.
30307
19f1b335 303082009-08-17 Michal Suchanek <hramrach@centrum.cz>
30309
30310 VBE cleanup.
30311
30312 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30313 (grub_vbe_set_video_mode): Save active mode info
30314 only after setting the mode.
30315 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30316 second argument.
30317
2f467aa9 303182009-08-17 Michal Suchanek <hramrach@centrum.cz>
30319
30320 Rename variables for clarity.
30321
30322 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30323 (active_vbe_mode_info): ... this. All users updated.
30324 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30325 All users updated.
30326 (initial_mode): Rename to ...
30327 (initial_vbe_mode): ... this. All users updated.
30328 (mode_in_use): Rename to ..
30329 (vbe_mode_in_use): ... this. All users updated.
30330 (mode_list): Rename to ..
30331 (vbe_mode_list): ... this. All users updated.
30332 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30333 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30334 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30335 'mode_list_size' to 'vbe_mode_list_size'.
30336 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30337 'best_mode_info' to 'best_vbe_mode_info' and
30338 'best_mode' to 'best_vbe_mode'
30339
6025fcd7 303402009-08-17 Michal Suchanek <hramrach@centrum.cz>
30341
30342 Remove duplicate grub_video_fb_get_video_ptr.
30343
30344 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30345 (grub_video_fb_get_video_ptr): ... this.
30346 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30347 * video/fb/fbutil.c: Add comment about addressing.
30348 (get_data_ptr): Rename to ...
30349 (grub_video_fb_get_video_ptr): ... this. All users updated.
30350 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30351
cc8c6faf 303522009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30353
30354 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30355 grub_dprintf() that was just added.
30356
08aa61f0 303572009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30358
30359 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30360 (DEFAULT_VIDEO_MODE): Remove macros.
30361 (grub_linux_boot): Remove assumption that Linux has FB support,
30362 and use "text" as default video mode.
30363
7cef4f75 303642009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30365
30366 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30367 grub_dprintf.
30368 * fs/fat.c (grub_fat_read_data): Likewise.
30369
e1f39873 303702009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30371
30372 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30373 payload.
30374 (grub_module): Likewise.
30375
c166d79e 303762009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30377
30378 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30379 mbi->cmdline but free playground.
30380
c60cee8e 303812009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30382
30383 Handle group offset on UFS1.
30384
30385 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30386 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30387
c0d8b5d4 303882009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30389
30390 Split ufs.mod into ufs1.mod and ufs2.mod.
30391
30392 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30393 (grub_fstest_SOURCES): Likewise.
30394 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30395 (ufs_mod_SOURCES): Remove.
30396 (ufs_mod_CFLAGS): Likewise.
30397 (ufs_mod_LDFLAGS): Likewise.
30398 (ufs1_mod_SOURCES): New variable.
30399 (ufs1_mod_CFLAGS): Likewise.
30400 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 30401 (ufs2_mod_SOURCES): New variable.
30402 (ufs2_mod_CFLAGS): Likewise.
30403 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 30404 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30405 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30406 Likewise.
30407 (grub_emu_SOURCES): Likewise.
30408 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30409 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30410 (grub_setup_SOURCES): Likewise.
30411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30412 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30413 (grub_setup_SOURCES): Likewise.
30414 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30415 Likewise.
30416 * fs/ufs2.c: New file.
30417 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30418
d3539132 304192009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30420
30421 Framebuffer split.
30422
30423 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30424 subsystem at the end.
30425 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30426 (video_fb_mod_SOURCES): New variable.
30427 (video_fb_mod_CFLAGS): Likewise.
30428 (video_fb_mod_LDFLAGS): Likewise.
30429 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30430 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30431 * video/i386/pc/vbeblit.c: Moved from here ...
30432 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30433 * video/i386/pc/vbefill.c: Moved from here ...
30434 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30435 * video/i386/pc/vbeutil.c: Moved from here ...
30436 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30437 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30438 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30439 * include/grub/i386/pc/vbefill.h: Moved from here ...
30440 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
30441 * include/grub/i386/pc/vbeutil.h: Moved from here ...
30442 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
30443 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
30444 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
30445 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
30446 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
30447 (grub_video_adapter): Added 'get_info_and_fini'.
30448 (grub_video_get_info_and_fini): New prototype.
30449 (grub_video_set_mode): make modestring const char *.
30450 * loader/i386/linux.c (grub_linux_setup_video): Use
30451 grub_video_get_info_and_fini.
30452 (grub_linux_boot): Move modesetting just before booting.
30453 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
30454 grub_video_get_info_and_fini.
30455 * video/i386/pc/vbe.c: Moved framebuffer part ...
30456 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
30457 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
30458 grub_video_fbstd_colors and grub_video_fb_set_palette.
30459 (grub_video_vbe_init): Clear 'framebuffer' variable and use
30460 grub_video_fb_init.
30461 (grub_video_vbe_fini): Use grub_video_fb_fini.
30462 (grub_video_vbe_setup): Use framebuffer.render_target instead of
30463 render_target and use grub_video_fb_set_active_render_target and
30464 grub_video_fb_set_palette.
30465 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
30466 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
30467 (grub_video_vbe_adapter): Use framebuffer.
30468 * video/video.c (grub_video_get_info_and_fini): New function.
30469 (grub_video_set_mode): Make modestring const char *.
30470 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
30471 values are already initialised.
30472
d404ee56 304732009-08-14 Pavel Roskin <proski@gnu.org>
30474
30475 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
30476 ABS and APPLE_CC.
30477 * boot/i386/pc/diskboot.S: Likewise.
30478 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
30479 sectors allow compilation on MacOSX.
30480 * conf/i386-pc.rmk: Enable unconditional compilation of
30481 lnxboot.img.
30482
9a10df16 304832009-08-13 Colin Watson <cjwatson@ubuntu.com>
30484
30485 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
30486 * util/grub.d/00_header.in: Enter interruptible sleep if
30487 GRUB_HIDDEN_TIMEOUT is set.
30488
be3c9ca7 304892009-08-13 Yves Blusseau <blusseau@zetam.org>
30490
30491 * include/grub/symbol.h: Add the LOCAL macro.
30492 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
30493 starting with "L_".
30494
1f9e557e 304952009-08-13 Pavel Roskin <proski@gnu.org>
30496
9ca62843 30497 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
30498 any modern compilers we support.
30499
1f9e557e 30500 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
30501 Use local labels starting with "L_" so that Apple assembler
30502 knows they are local.
30503
81623db6 305042009-08-10 Robert Millan <rmh.grub@aybabtu.com>
30505
30506 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
30507 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
30508 (bsd_kernel_types): ... this enum.
30509
30510 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
30511 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
30512 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
30513
30514 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
30515 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
30516 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
30517 messages.
30518
f5d35e7a 305192009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30520
30521 * util/grub-dumpdevtree: Moved from here ...
30522 * util/i386/efi/grub-dumpdevtree: ... to here.
30523 (hexify): New function. Converts a string to its hex version.
30524 Generate hex versions of "efi" and "device-properties" by calling
30525 hexify() on the ASCII strings rather than by hardcoding numbers.
30526
d1e1d527 305272009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30528
30529 * fs/jfs.c: Update copyright year.
30530
1ebbe064 305312009-08-08 Felix Zielcke <fzielcke@z-51.de>
30532
30533 * util/grub.d/00_header.in: Fix a comment.
30534 * util/grub.d/10_linux.in: Likewise.
30535 * util/grub.d/10_windows.in: Likewise.
30536 * util/grub.d/10_hurd.in: Likewise.
30537
a78c8d24 305382009-08-08 Felix Zielcke <fzielcke@z-51.de>
30539
30540 * util/grub-mkconfig.in: Allow the user to specify the used font
30541 with GRUB_FONT.
30542
29a6b9e8 305432009-08-08 Pavel Roskin <proski@gnu.org>
30544
b5f16cc4 30545 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
30546 available, xfs.mod needs it now.
30547
2f5cb827 30548 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
30549 the "g" modifier in sed when the intention is to strip something
30550 once. This fixes comparison of kernels with multiple dashes.
30551
29a6b9e8 30552 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
30553 on it. Add missing space before closing bracket. Fix
30554 misleading formatting.
30555
892a3d98 305562009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30557
30558 * docs/grub.texi: Major overhaul. Remove all sections that are
30559 specific to GRUB Legacy, or mostly composed of Legacy-specific
30560 information.
30561
ed94253f 305622009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30563
30564 * docs/version.texi: New file. Provides version information for
30565 grub.texi.
30566
126d6628 305672009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30568
30569 * docs/grub.texi: Update CVS information to SVN.
30570 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
30571
998b5aa9 305722009-08-07 Felix Zielcke <fzielcke@z-51.de>
30573
30574 * util/grub-mkconfig.in: Remove a wrong `fi'.
30575
818e094a 305762009-08-07 Felix Zielcke <fzielcke@z-51.de>
30577
30578 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30579 (grub_jfs_uuid): New function.
30580 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
30581
b969c52f 305822009-08-07 Felix Zielcke <fzielcke@z-51.de>
30583
30584 * util/grub-mkconfig_lib.in (font_path): Move the functionality
30585 of it to ...
30586 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
30587 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
30588
7a4894cc 305892009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30590
30591 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
30592 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
30593 Update all users.
30594
30595 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
30596 not just "vmlinu[zx]".
30597 Moved from here ...
30598 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
30599 all users.
30600
30601 * util/grub.d/10_linux.in (find_latest): Moved from here ...
30602 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
30603 all users.
30604
4e2171f8 306052009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30606
30607 * util/grub.d/10_freebsd.in: Use an absolute device path for
30608 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
30609
6dcfcb32 306102009-08-06 Felix Zielcke <fzielcke@z-51.de>
30611
30612 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
30613 handling of multiple abstraction modules.
30614
f56a8756 306152009-08-04 Robert Millan <rmh.grub@aybabtu.com>
30616
30617 Fix a bug resulting in black screen when loading Linux using a
30618 packed video mode.
30619
30620 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
30621 function.
30622
30623 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
30624 (grub_vbe_bios_getset_dac_palette_width): New function.
30625 (grub_vbe_bios_get_dac_palette_width)
30626 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
30627 grub_vbe_bios_getset_dac_palette_width()).
30628
30629 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
30630 check for return status.
30631 (grub_vbe_get_video_mode_info): When getting information for a packed
30632 mode (<= 8 bpp), obtain DAC palette width using
30633 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
30634 {red,green,blue}_mark_size.
30635
222671b2 306362009-08-04 Felix Zielcke <fzielcke@z-51.de>
30637
ecb1a6d9 30638 * commands/search.c (options): Fix help output to match actual code.
222671b2 30639
f84114f5 306402009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
30641
30642 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
30643 of homegrown code.
30644
bd288a20 306452009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 30646
30647 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
30648 on XFS or ReiserFS.
30649
8aab5e25 306502009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
30651
30652 Support Apple partition map with sector size different from 512 bytes.
30653
30654 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
30655 (apple_partition_map_iterate): Respect 'aheader.blocksize'
30656 and 'apart.partmap_size'.
30657
6ad6258a 306582009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
306592009-08-01 Robert Millan <rmh.grub@aybabtu.com>
30660
30661 Fix cpuid command.
30662
30663 * commands/i386/cpuid.c (options): New variable.
30664 (grub_cmd_cpuid): Return real error.
30665 (GRUB_MOD_INIT(cpuid)): Declare options.
30666
67459bc6 306672009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
30668
30669 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
30670 valid.
30671
fbc6ab54 306722009-07-31 Bean <bean123ch@gmail.com>
30673
30674 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
30675 log2_inode.
30676 (grub_fshelp_node): Move inode field to the end.
30677 (grub_xfs_data): Remove inode field.
30678 (grub_xfs_inode_block): Calculate inode size using sblock.
30679 (grub_xfs_inode_offset): Likewise.
30680 (grub_xfs_read_inode): Calculate inode size using sblock.
30681 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
30682 (grub_xfs_iterate_dir): Calculate inode size using sblock.
30683 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
30684 to match inode size.
30685 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
30686 not accessible when data is null.
30687 (grub_xfs_open): Likewise.
30688
f45d6cfc 306892009-07-31 Bean <bean123ch@gmail.com>
30690
30691 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
30692 Don't change pv->disk if it's already set.
30693
30694 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
30695 (grub_raid_register): ... here.
30696 (grub_raid_rescan): Removed.
30697
30698 * include/grub/raid.h (grub_raid_rescan): Removed.
30699
30700 * util/grub-fstest.c: Remove include file <grub/raid.h>.
30701 (fstest): Replace grub_raid_rescan with module fini function followed
30702 by init function.
30703
30704 * util/grub-probe.c: Add include file <grub/raid.h>.
30705 (probe_raid_level): New function.
30706 (probe): Detect abstraction by walking the disk device, support two
30707 level of abstraction (LVM on RAID) when detecting partition map.
30708
24443b5a 307092009-07-31 Pavel Roskin <proski@gnu.org>
30710
30711 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
30712 to grub_zalloc(), it was erroneous.
30713 Reported by Bean <bean123ch@gmail.com>
30714
a275d9e7 307152009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
30716
30717 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 30718 embedding zone, not only the first one.
a275d9e7 30719
56c5a47f 307202009-07-29 Joe Auricchio <jauricchio@gmail.com>
30721
30722 * term/gfxterm.c (clear_char): New function.
30723 (grub_virtual_screen_setup): Use clear_char.
30724 (scroll_up): Likewise.
30725 (grub_virtual_screen_cls): Likewise.
30726
67bb323a 307272009-07-29 Felix Zielcke <fzielcke@z-51.de>
30728
30729 * util/deviceiter.c (get_acceleraid_disk_name): New static
30730 function.
30731 (grub_util_iterate_devices): Handle Accelraid devices.
30732 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
30733
388a7c75 307342009-07-28 Robert Millan <rmh.grub@aybabtu.com>
30735
30736 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
30737 separator for the suggested gfxpayload string (';' collides with the
30738 parser and needs escaping).
30739
3bb7abcf 307402009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
30741
30742 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
30743 Clear direction flag before jumping to OS.
30744 (grub_multiboot2_real_boot): Likewise.
30745
2ddd36d7 307462009-07-28 Felix Zielcke <fzielcke@z-51.de>
30747
30748 * util/i386/pc/grub-install: Fix parsing of --disk-module
30749 option.
30750
c521b62b 307512009-07-28 Felix Zielcke <fzielcke@z-51.de>
30752
30753 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
30754 when embedding.
30755
880e0a0c 307562009-07-26 Felix Zielcke <fzielcke@z-51.de>
30757
30758 * util/grub-mkconfig.in (package_version): New variable.
30759 Use it do display the version.
30760
2366e356 307612009-07-25 Felix Zielcke <fzielcke@z-51.de>
30762
30763 * kern/file.c (grub_file_open): Revert to previous check with
30764 grub_errno.
30765
7ad8c80e 307662009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30767
30768 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
30769 from help line. It's out of sync with code.
30770
72b9658b 307712009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30772
30773 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
30774 entries on failed boot.
30775
77435277 307762009-07-25 Felix Zielcke <fzielcke@z-51.de>
30777
30778 * kern/file.c (grub_file_open): Fix an error check.
30779
fcaa8b21 307802009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
30781
35d16c74 30782 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
30783 partition map couldn't be identified.
fcaa8b21 30784
48904cd1 307852009-07-23 Pavel Roskin <proski@gnu.org>
30786
ef3c317f 30787 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
30788 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
30789 case of little endian words becomes just an optimization.
30790 Respect const modifier.
ad8ea1f4 30791 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 30792
48904cd1 30793 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
30794 to avoid loss of upper bits if align is unsigned and shorter
30795 than addr.
30796
260c9a89 307972009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30798
30799 UUID support for UFS
30800
30801 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
30802 (grub_ufs_uuid): New function.
30803 (grub_ufs_fs): add .uuid
30804
f76ce889 308052009-07-21 Pavel Roskin <proski@gnu.org>
30806
30807 * kern/dl.c (grub_dl_check_header): Make static.
30808
6a6cbcaf 308092009-07-21 Felix Zielcke <fzielcke@z-51.de>
30810
30811 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
30812 add drivemap for Vista. It breaks Windows 7.
30813
cffcddb2 308142009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30815
30816 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
30817 128 bytes
30818
1ef44b80 308192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30820
30821 Add BFS support
30822
30823 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
30824 (grub_fstest_SOURCES): Likewise.
30825 (pkglib_MODULES): Add befs.mod.
30826 (befs_mod_SOURCES): New variable.
30827 (befs_mod_CFLAGS): Likewise.
30828 (befs_mod_LDFLAGS): Likewise.
30829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30831 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30832 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30833 (grub_setup_SOURCES): Likewise.
30834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30836 (grub_setup_SOURCES): Likewise.
30837 * fs/befs.c: New file.
30838 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
30839 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
30840 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
30841 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
30842 (B_KEY_INDEX_ALIGN): New declaration.
30843 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
30844 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
30845 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
30846 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
30847 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
30848 (grub_afs_mount) [MODE_BFS]: Likewise.
30849 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
30850 (grub_afs_fs): Use GRUB_AFS_FSNAME
30851 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
30852 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
30853 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
30854 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
30855
4f253044 308562009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
30857
30858 * util/getroot.c (find_root_device): Add support for MacOSX.
30859 * util/hostdisk.c: Likewise.
30860
57a55913 308612009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30862
30863 * font/font.c (find_glyph): Check whether a font is present to avoid
30864 segmentation fault.
75421ca9 30865
308662009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 30867
30868 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
30869
e98cd0c2 308702009-07-20 Pavel Roskin <proski@gnu.org>
30871
30872 * configure.ac: Trim excessively wordy excuses.
30873
1d2d169a 308742009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30875
30876 Add symlink, mtime and label support to AtheFS.
30877
30878 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
30879 (grub_afs_iterate_dir): Handle symlinks.
30880 (grub_afs_open): Use grub_afs_read_symlink.
30881 (grub_afs_dir): Likewise.
30882 Pass mtime.
30883 (grub_afs_label): New function.
30884 (grub_afs_fs): Add grub_afs_label.
30885 (grub_afs_read_symlink): New function.
30886
186f3189 308872009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30888
30889 Fix AtheFS support.
30890
30891 * fs/afs.c: Fix comments style.
30892 (grub_afs_blockrun): Declare as packed.
30893 (grub_afs_datastream): Likewise.
30894 (grub_afs_bnode): Likewise.
30895 (grub_afs_btree): Likewise.
30896 (grub_afs_sblock): Likewise.
30897 Declare `name' as char.
30898 (grub_afs_inode): Declare as packed.
30899 Change void *vnode to grub_uint32_t unused.
30900 (grub_afs_iterate_dir): Check that key_size is positive.
30901 (grub_afs_mount): Don't read superblock twice.
75421ca9 30902 (grub_afs_dir): Don't free node in case of error,
186f3189 30903 grub_fshelp_find_file already handles this.
30904 (grub_afs_open): Likewise.
30905
5680109e 309062009-07-19 Pavel Roskin <proski@gnu.org>
30907
30908 * Makefile.in: Remove LIBLZO and enable_lzo.
30909 * conf/i386-pc.rmk: Remove lzo support.
30910 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
30911 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
30912 support.
30913 * kern/i386/pc/lzo1x.S: Remove.
30914 * kern/i386/pc/startup.S: Remove lzo support.
30915 * util/i386/pc/grub-mkimage.c: Likewise.
30916
ac70fa32 309172009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
30918
30919 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
30920 * fs/xfs.c (grub_xfs_dir): Likewise.
30921 * fs/afs.c (grub_afs_dir): Likewise.
30922 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
30923 (grub_iso9660_open): Likewise.
30924 * fs/jfs.c (grub_jfs_open): Likewise.
30925 * fs/ext2.c (grub_ext2_dir): Likewise.
30926 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
30927 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 30928
eab58da2 309292009-07-16 Pavel Roskin <proski@gnu.org>
30930
d2838156 30931 * configure.ac: Never add "-c" to CFLAGS.
30932
55c70904 30933 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
30934
43e6200c 30935 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
30936 grub_cv_cc_efiemu should be used.
30937
ce7a733d 30938 * configure.ac: Typo fixes.
30939
eab58da2 30940 * kern/mm.c (grub_zalloc): New function.
30941 (grub_debug_zalloc): Likewise.
30942 * include/grub/mm.h: Declare grub_zalloc() and
30943 grub_debug_zalloc().
30944 * util/misc.c (grub_zalloc): New function.
30945 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
30946 instead of grub_malloc(), remove unneeded initializations.
30947 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
30948 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
30949 * commands/parttool.c (grub_cmd_parttool): Likewise.
30950 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
30951 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
30952 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
30953 * disk/usbms.c (grub_usbms_finddevs): Likewise.
30954 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
30955 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
30956 (grub_cmd_efiemu_pnvram): Likewise.
30957 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
30958 * fs/iso9660.c (grub_iso9660_mount): Likewise.
30959 (grub_iso9660_iterate_dir): Likewise.
30960 * fs/jfs.c (grub_jfs_opendir): Likewise.
30961 * fs/ntfs.c (list_file): Likewise.
30962 (grub_ntfs_mount): Likewise.
30963 * kern/disk.c (grub_disk_open): Likewise.
30964 * kern/dl.c (grub_dl_load_core): Likewise.
30965 * kern/elf.c (grub_elf_file): Likewise.
30966 * kern/env.c (grub_env_context_open): Likewise.
30967 (grub_env_set): Likewise.
30968 (grub_env_set_data_slot): Likewise.
30969 * kern/file.c (grub_file_open): Likewise.
30970 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30971 * loader/i386/multiboot.c (grub_module): Likewise.
30972 * loader/xnu.c (grub_xnu_create_key): Likewise.
30973 (grub_xnu_create_value): Likewise.
30974 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30975 (read_config_file): Likewise.
30976 * normal/menu_entry.c (make_screen): Likewise.
30977 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30978 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30979 * script/sh/script.c (grub_script_parse): Likewise.
30980 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30981 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30982 * video/readers/png.c (grub_png_output_byte): Likewise.
30983 (grub_video_reader_png): Likewise.
30984
830afef7 309852009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30986
30987 Enable all targets that can be built by default
30988
830afef7 30989 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30990 grub-mkfont and grub-fstest if they can be built
30991
ee293aee 309922009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30993
30994 Fix hang and segmentation fault in grub-emu-usb
30995
30996 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30997 * util/usb.c (grub_libusb_devices): likewise
30998 (grub_libusb_init): rename to ...
30999 (GRUB_MOD_INIT (libusb)):...this
31000 (grub_libusb_fini): rename to ..
31001 (GRUB_MOD_FINI (libusb)):...this
31002 * disk/usbms.c (grub_usbms_transfer): fix retry logic
31003 * include/grub/disk.h (grub_raid_init): removed, it's useless
31004 (grub_raid_fini): likewise
31005 (grub_lvm_init): likewise
31006 (grub_lvm_fini): likewise
31007 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
31008 by grub_init_all
31009
94414221 310102009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31011
31012 Fix libusb
31013
31014 * Makefile.in (LIBUSB): new macro
31015 * genmk.rb (Utility/print_tail): new method
31016 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
31017 (top level): call util.print_tail at the end.
31018
59ade63d 310192009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31020
31021 Make FreeBSD accept zpool.cache
31022
31023 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
31024 type is /boot/zfs/zpool.cache
31025
a58da8c7 310262009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31027
31028 Fix 64-bit efiemu
31029
31030 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
31031 correct wrong typedef
31032 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
31033
20591577 310342009-07-15 Pavel Roskin <proski@gnu.org>
31035
560ca572 31036 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
31037 * kern/disk.c (struct grub_disk_cache): Likewise.
31038
e8e8e4fd 31039 * commands/probe.c (options): Typo fix.
31040
fde24e10 31041 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
31042 Increase to 0x5a to accommodate FAT32. Adjust other offsets
31043 accordingly.
31044 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
31045
379c54c1 31046 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
31047 the end of "Error" to make the message more readable.
31048
7bd8f5bf 31049 * boot/i386/pc/boot.S (kernel_segment): Remove.
31050 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
31051 for destination.
31052
40b132c5 31053 * boot/i386/pc/boot.S (boot_version): Remove.
31054 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
31055 Remove.
31056
20591577 31057 * include/grub/i386/pc/boot.h: Sort all offsets.
31058 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
31059 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
31060 * boot/i386/pc/boot.S: Assert location of every offset listed in
31061 include/grub/i386/pc/boot.h.
31062
2df32b2c 310632009-07-13 Pavel Roskin <proski@gnu.org>
31064
44b5d879 31065 * include/grub/i386/coreboot/machine.h: Rename
31066 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
31067 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
31068 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
31069
17dc3751 31070 * kern/dl.c: Force native word size to suppress warnings when
31071 compiling grub-emu.
31072
2df32b2c 31073 * kern/device.c (grub_device_iterate): Change struct part_ent to
31074 hold the name, not a pointer to it. Use one grub_malloc() per
31075 partition, not two. Free partition_name if grub_malloc() fails.
31076 Set ents to NULL only before grub_partition_iterate() is called.
31077
75c59f59 310782009-07-11 Bean <bean123ch@gmail.com>
31079
31080 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
31081 childname.
31082
0ae1bf88 310832009-07-10 Bean <bean123ch@gmail.com>
310842009-07-10 Robert Millan <rmh.grub@aybabtu.com>
31085
31086 * kern/ieee1275/openfw.c (grub_children_iterate)
31087 (grub_devalias_iterate): Fix size evaluation for property or path
31088 strings, which was broken since r2132.
31089
8279cade 310902009-07-07 Pavel Roskin <proski@gnu.org>
31091
7d8a52d3 31092 * commands/search.c (search_file): Merge into ...
31093 (search_fs): ... this. Accept search type as argument.
31094 (grub_cmd_search): Pass search type to search_fs().
31095
25f9a05a 31096 * include/grub/util/console.h: New file.
31097 * util/console.c: Use it instead of grub/machine/console.h.
31098 * util/grub-emu.c: Likewise.
31099
8279cade 31100 * lib/arg.c (find_long_option): Remove.
31101 (find_long): Add `len' argument, make `s' const char *.
31102 (grub_arg_parse): Parse long options in place, not in a
31103 temporary buffer.
31104
4a11b60f 311052009-07-06 Pavel Roskin <proski@gnu.org>
31106
99f68041 31107 * commands/search.c (search_fs): Fix potential NULL pointer
31108 dereference.
31109
4a11b60f 31110 * commands/search.c (search_fs): Replace QUID macro with quid_fn
31111 function pointer.
31112
e110f4de 311132009-07-06 Daniel Mierswa <impulze@impulze.org>
31114
31115 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
31116 comparison.
31117
46eeb6a2 311182009-07-05 Pavel Roskin <proski@gnu.org>
31119
bab74958 31120 * include/grub/i386/linux.h (struct linux_kernel_params):
31121 Restore padding3, it's still needed.
31122
46eeb6a2 31123 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
31124 FreeBSD.
31125 * util/osdetect.lua: Likewise.
31126
b4a1dc79 311272009-07-05 Bean <bean123ch@gmail.com>
31128
31129 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
31130
31131 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
31132 (grub_lua_getenv): Likewise.
31133 (grub_lua_setenv): Likewise.
31134 (save_errno): New function.
31135 (push_result): Likewise.
31136 (grub_lua_enum_device): Likewise.
31137 (grub_lua_enum_file): Likewise.
31138 (grub_lua_file_open): Likewise.
31139 (grub_lua_file_close): Likewise.
31140 (grub_lua_file_seek): Likewise.
31141 (grub_lua_file_read): Likewise.
31142 (grub_lua_file_getline): Likewise.
31143 (grub_lua_file_getsize): Likewise.
31144 (grub_lua_file_getpos): Likewise.
31145 (grub_lua_file_eof): Likewise.
31146 (grub_lua_file_exist): Likewise.
31147 (grub_lua_add_menu): Likewise.
31148
31149 * script/lua/grub_lua.h (isupper): New inline function.
31150 (islower): Likewise.
31151 (ispunct): Likewise.
31152 (isxdigit): Likewise.
31153 (strcspn): Change to normal function.
31154 (strpbkr): New function declaration.
31155 (memchr): Likewise.
31156
31157 * script/lua/grub_main.c (scan_str): New function.
31158 (strcspn): Likewise.
31159 (strpbrk): Likewise.
31160 (memchr): Likewise.
31161
31162 * script/lua/linit.c (lualibs): Enable the string library.
31163
31164 * util/osdetect.lua: New file.
31165
2da92295 311662009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31167
31168 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31169 `capabilities' member.
31170
b2582ec9 311712009-07-02 Pavel Roskin <proski@gnu.org>
31172
31173 * genparttoollist.sh: Add missing newline at the end.
31174
32622956 311752009-07-01 Pavel Roskin <proski@gnu.org>
31176
87a7339e 31177 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31178
d23af54e 31179 * util/hostdisk.c (open_device): Remove `const' from
31180 `sysctl_size', as sysctlbyname() can change it (in this case it
31181 doesn't actually happen).
31182
c94b18a9 31183 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31184 using signed long int constants.
31185
c6cd3ef0 31186 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31187 constant to avoid a warning on FreeBSD.
31188
0df63420 31189 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31190 where it's needed.
31191
999577f1 31192 * Makefile.in: Install include/grub/machine symlink.
31193
6f41557f 31194 * Makefile.in: When installing symlinks, use "cp -fR", which
31195 works on FreeBSD and MacOSX.
31196 From Yves Blusseau <cl7m42e02@sneakemail.com>
31197
c8d22988 31198 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31199 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31200
1b96e952 31201 * util/misc.c: Move grub_reboot() and grub_halt() ...
31202 * util/grub-emu.c: ... here. Make main_env static.
31203 * include/grub/util/misc.h: Remove main_env.
31204
2ef0084d 31205 * kern/mm.c: Use correct format to print size_t.
31206
32622956 31207 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31208 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31209 * kern/powerpc/dl.c: Likewise.
31210 * kern/sparc64/dl.c: Likewise.
31211 * kern/x86_64/dl.c: Likewise.
31212
3f7f0cd0 312132009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31214
31215 Fix grub-emu build on sparc64-ieee1275.
31216
75421ca9 31217 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 31218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31219
211d06b5 312202009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31221
31222 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31223 (grub_reboot, grub_halt): New functions.
31224
31225 * util/i386/pc/misc.c: Delete. Update all users.
31226 * util/sparc64/ieee1275/misc.c: Likewise.
31227 * util/powerpc/ieee1275/misc.c: Likewise.
31228
aaf53e3c 312292009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31230
31231 * conf/i386.rmk (setjmp_mod_SOURCES)
31232 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31233 * conf/common.rmk (setjmp_mod_SOURCES)
31234 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31235 to use $(target_cpu).
31236 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31237 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31238 * conf/powerpc-ieee1275.rmk: Likewise.
31239 * conf/sparc64-ieee1275.rmk: Likewise.
31240
31241 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31242 $(target_cpu) for kern/$(target_cpu)/dl.c.
31243 * conf/i386-efi.rmk: Likewise.
31244 * conf/i386-ieee1275.rmk: Likewise.
31245 * conf/x86_64-efi.rmk: Likewise.
31246 * conf/i386-coreboot.rmk: Likewise.
31247 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31248 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31249 kern/$(target_cpu)/cache.S.
31250 * conf/sparc64-ieee1275.rmk: Likewise.
31251
a337130b 312522009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31253
31254 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31255 type to `grub_uint8_t', and adjust `padding9' accordingly.
31256
c6fe4d53 312572009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31258
b09db61d 31259 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31260
c6fe4d53 31261 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31262 assembly in final jump, using register constraints.
31263
b09db61d 31264 (grub_linux_boot): For text mode, initialize `have_vga' using
31265 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31266
31267 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31268 right before the final jump.
31269
31270 Set `video_mode' to 0x3.
31271
31272 Document initialization of `video_page', `video_mode' and
31273 `video_ega_bx'.
31274
28333ad0 312752009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31276
31277 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31278 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 31279 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 31280
02164e1b 312812009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31282
31283 Fix build on Debian / sparc.
31284
31285 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31286
18b6c557 312872009-06-28 Pavel Roskin <proski@gnu.org>
31288
85f2aab6 31289 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31290 fix a warning.
31291
18b6c557 31292 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31293
ad760f81 312942009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31295
31296 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31297 `err'.
31298
87a4623b 312992009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31300
31301 Revert r2338.
31302
31303 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31304 file can't be opened. grub_file_open() is already supposed to set
75421ca9 31305 grub_errno / grub_errmsg appropriately.
87a4623b 31306 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31307
8231fb77 313082009-06-27 Pavel Roskin <proski@gnu.org>
313092009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31310
31311 * include/grub/dl.h: Include grub/elf.h.
31312 (struct grub_dl): Add symtab field.
31313 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31314 GRUB_MODULES_MACHINE_READONLY.
31315 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31316 of the header for read-only modules.
31317 (grub_dl_unload): Free mod->symtab for read-only modules.
31318 * kern/i386/dl.c: Use mod->symtab.
31319 * kern/powerpc/dl.c: Likewise.
31320 * kern/sparc64/dl.c: Likewise.
31321 * kern/x86_64/dl.c: Likewise.
31322
31323 * conf/i386-qemu.rmk: New file.
31324 * kern/i386/qemu/startup.S: Likewise.
31325 * kern/i386/qemu/mmap.c: Likewise.
31326 * boot/i386/qemu/boot.S: Likewise.
31327 * include/grub/i386/qemu/time.h: Likewise.
31328 * include/grub/i386/qemu/serial.h: Likewise.
31329 * include/grub/i386/qemu/kernel.h: Likewise.
31330 * include/grub/i386/qemu/console.h: Likewise.
31331 * include/grub/i386/qemu/boot.h: Likewise.
31332 * include/grub/i386/qemu/init.h: Likewise.
31333 * include/grub/i386/qemu/machine.h: Likewise.
31334 * include/grub/i386/qemu/loader.h: Likewise.
31335 * include/grub/i386/qemu/memory.h: Likewise.
31336
31337 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31338 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31339 [qemu] (pkglib_IMAGES): Add `boot.img'.
31340 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31341 [qemu] (boot_img_FORMAT): New variables.
31342 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31343 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31344 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31345 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31346 [qemu] (kernel_img_FORMAT): New variables.
31347
31348 * configure.ac: Recognise `i386-qemu'.
31349
31350 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31351 (for no compression).
31352 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31353 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31354 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31355 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31356 ifdefs).
31357
97fe384e 313582009-06-27 Pavel Roskin <proski@gnu.org>
31359
31360 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31361 read.
31362 * efiemu/prepare32.c: Likewise.
31363 * efiemu/prepare64.c: Likewise.
31364
c402ab17 313652009-06-26 Pavel Roskin <proski@gnu.org>
31366
31367 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31368 * include/grub/elf.h: Define symbols without "32" or "64" based
31369 on GRUB_TARGET_WORDSIZE.
31370 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31371 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31372 ELF definitions.
31373 * efiemu/loadcore64.c: Likewise.
31374 * loader/i386/bsd32.c: Likewise.
31375 * loader/i386/bsd64.c: Likewise.
31376 * kern/dl.c: Remove own ELF definitions.
31377 * util/i386/efi/grub-mkimage.c: Likewise.
31378
9bbdfd4d 313792009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31380
31381 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31382 segment 0x0 unconditionally, because the reference generated by
31383 GAS is an absolute address.
31384
a42ce6e9 313852009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31386
31387 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31388 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31389
c952cf92 313902009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31391
31392 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31393 indexes. Check for -f explicitly.
cc3752ad 31394 (search_file): Improve error message.
31395 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 31396
132a0a59 313972009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31398
31399 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31400 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31401
387a140c 314022009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31403
31404 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31405 * conf/i386-ieee1275.rmk: Likewise.
31406 * conf/i386-coreboot.rmk: Likewise.
31407
31408 * kern/i386/pc/startup.S (grub_stop): Remove function.
31409 * kern/i386/ieee1275/startup.S: Likewise.
31410 * kern/i386/coreboot/startup.S: Likewise.
31411 * kern/i386/misc.S (grub_stop): New function.
31412
41da9665 314132009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31414
31415 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31416 * kern/i386/realmode.S (real_to_prot): ... to here.
31417
bf337234 314182009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31419
31420 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31421 with `kernel.img'.
31422 (kernel_elf_SOURCES): Rename to ...
31423 (kernel_img_SOURCES): ... this.
31424 (kernel_elf_HEADERS): Rename to ...
31425 (kernel_img_HEADERS): ... this. Update all users.
31426 (kernel_elf_ASFLAGS): Rename to ...
31427 (kernel_img_ASFLAGS): ... this.
31428 (kernel_elf_CFLAGS): Rename to ...
31429 (kernel_img_CFLAGS): ... this.
31430 (kernel_elf_LDFLAGS): Rename to ...
31431 (kernel_img_LDFLAGS): ... this.
31432 * conf/i386-coreboot.rmk: Likewise.
31433 * conf/powerpc-ieee1275.rmk: Likewise.
31434
31435 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31436 with "kernel.img".
31437
f52196ff 314382009-06-21 Pavel Roskin <proski@gnu.org>
31439
c3cee413 31440 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
31441 to match nested functions.
31442 * loader/sparc64/ieee1275/linux.c: Likewise.
31443
f52196ff 31444 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
31445
58750afc 314462009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31447
31448 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
31449 all i386 platforms.
31450
15355c7d 314512009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31452
31453 Fix asm file handling on ELF, and remove workarounds.
31454
31455 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 31456 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 31457 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
31458 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
31459
3f3ec72b 314602009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
31461
31462 Load BSD ELF modules
31463
31464 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
31465 and loader/i386/bsd64.c
31466 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
31467 (FREEBSD_MODTYPE_ELF_MODULE): New definition
31468 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
31469 (grub_freebsd_load_elfmodule32): New declaration
31470 (grub_freebsd_load_elfmoduleobj64): Likewise
31471 (grub_freebsd_load_elf_meta32): Likewise
31472 (grub_freebsd_load_elf_meta64): Likewise
31473 (grub_freebsd_add_meta): Likewise
31474 (grub_freebsd_add_meta_module): Likewise
31475 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
31476 (grub_freebsd_add_meta_module): Likewise and move module-specific
31477 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
31478 (grub_cmd_freebsd): Add elf-kernel specific parts
31479 based on grub_freebsd_add_meta_module
31480 (grub_cmd_freebsd_module): Add type parsing moved from
31481 grub_freebsd_add_meta_module
31482 (grub_cmd_freebsd_module_elf): New function
31483 (cmd_freebsd_module_elf): New variable
31484 (GRUB_MOD_INIT): Register freebsd_module_elf
31485 * loader/i386/bsd32.c: New file
31486 * loader/i386/bsd64.c: Likewise
31487 * loader/i386/bsdXX.c: Likewise
31488 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
31489 (grub_elf64_load): Likewise
31490 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
31491 All users updated
31492 (grub_elf64_load_hook_t): Likewise
31493
0db15301 314942009-06-21 Colin Watson <cjwatson@ubuntu.com>
31495
31496 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
31497 variable.
31498 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
31499 don't write a menu entry for recovery mode.
31500
546796c1 315012009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31502
31503 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
31504 after it's no longer needed.
31505
cd7310d5 315062009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31507
31508 * include/grub/i386/loader.h (grub_linux_prot_size)
31509 (grub_linux_tmp_addr, grub_linux_real_addr)
31510 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
31511 GRUB_MACHINE_PCBIOS.
31512 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
31513 common grub_util_info() call to ...
31514 (generate_image): ... here.
31515 Fix use of uninitialized memory, comparison of signed with
31516 unsigned integers and memory leak.
31517 Remove bogus module address message.
31518
ab32d3b5 315192009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
31520
31521 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
31522 grub_raid_register
31523 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
31524
024ef597 315252009-06-19 Pavel Roskin <proski@gnu.org>
31526
31527 * configure.ac: Remove stray AC_MSG_CHECKING.
31528
3ac72b51 315292009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
31530
31531 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 31532
e14cd814 315332009-06-18 Pavel Roskin <proski@gnu.org>
31534
31535 * conf/common.rmk: Add fs_file.mod.
31536 * disk/fs_file.c: New file.
31537 * include/grub/disk.h (enum grub_disk_dev_id): Add
31538 GRUB_DISK_DEVICE_FILE_ID.
31539
26586d98 315402009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31541
31542 Fix build with Apple's toolchain. Part 2
31543
31544 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
31545 a fake start
31546
26de2bcd 315472009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31548
31549 Fix build with Apple's toolchain. Part 1
31550
31551 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
31552 for long calls
31553 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 31554 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 31555 Apple's toolchain
31556
09b3490b 315572009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31558
31559 Fix warnings
31560
31561 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
31562 (decomp_block): initialize ch
31563 use grub_memcpy instead of memcpy
31564
c22a006a 315652009-06-17 Pavel Roskin <proski@gnu.org>
31566
d3638678 31567 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
31568 version, use declarations needed to use vga_text as the startup
31569 console.
31570
c22a006a 31571 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
31572 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
31573 the kernel.
31574 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
31575 and grub_at_keyboard_fini(), it's done on module load and
31576 unload.
31577
05b129e0 315782009-06-17 Felix Zielcke <fzielcke@z-51.de>
31579
31580 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
31581 file can't be found.
31582 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31583
cf24ed9e 315842009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31585
31586 Fix newline handling
31587
31588 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 31589 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 31590 (grub_script_yylex): don't segfault on unterminated script
31591 newline terminates command and variable
31592
74aa8e4b 315932009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31594
31595 avoid double grub_adjust_range call. Bug reported by David Simner
31596
31597 * kern/disk.c (grub_disk_write): change to raw disk access before
31598 calling disk_read
31599
1bd265f3 316002009-06-17 Colin Watson <cjwatson@ubuntu.com>
31601
31602 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
31603 spaces, for the benefit of help2man.
31604 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31605
a2d08c06 316062009-06-16 Pavel Roskin <proski@gnu.org>
31607
31608 * kern/i386/halt.c: Include grub/machine/init.h.
31609 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
31610
b97bcb19 316112009-06-16 Felix Zielcke <fzielcke@z-51.de>
31612
31613 * util/grub.d/30_os-prober.in: Use ${root} in the generated
31614 drivemap menuentry.
31615
0644f96c 316162009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
31617
31618 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
31619 `echo' command.
31620
3ef17a2e 316212009-06-16 Pavel Roskin <proski@gnu.org>
31622
31623 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
31624 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
31625 save %dx, we only need %dl and we never change it.
31626 * boot/i386/pc/cdboot.S: Don't set the root drive.
31627 * boot/i386/pc/pxeboot.S: Likewise.
31628 * include/grub/i386/pc/boot.h: Remove
31629 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
31630 GRUB_BOOT_MACHINE_DRIVE_CHECK.
31631 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
31632 * kern/i386/pc/init.c (make_install_device): Remove references
31633 to grub_root_drive.
31634 * kern/i386/pc/startup.S: Likewise.
31635 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
31636
693fe637 316372009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31638
31639 xnu_uuid command
31640
31641 * commands/xnu_uuid.c: new file
31642 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
31643 (xnu_uuid_mod_SOURCES): new variable
31644 (xnu_uuid_mod_CFLAGS): likewise
31645 (xnu_uuid_mod_LDFLAGS): likewise
31646 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31647 * conf/i386-ieee1275.rmk: likewise
31648 * conf/i386-pc.rmk: likewise
31649 * conf/powerpc-ieee1275.rmk: likewise
31650 * conf/sparc64-ieee1275.rmk: likewise
31651 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
31652
c9da87d0 316532009-06-16 Pavel Roskin <proski@gnu.org>
31654
31655 * configure.ac: Avoid '==' in test command, it's not portable.
31656
9c6f4596 316572009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31658
31659 Probe command
31660
31661 * commands/probe.c: new file
31662 * conf/common.rmk (pkglib_MODULES): add probe.mod
31663 (probe_mod_SOURCES): new variable
31664 (probe_mod_CFLAGS): likewise
31665 (probe_mod_LDFLAGS): likewise
31666 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31667 * conf/i386-ieee1275.rmk: likewise
31668 * conf/i386-pc.rmk: likewise
31669 * conf/powerpc-ieee1275.rmk: likewise
31670 * conf/sparc64-ieee1275.rmk: likewise
31671
70b7f9fd 316722009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
31673
31674 Fix handling of string like \"hello\" and "a
31675 b"
31676
31677 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
31678 (grub_script_yylex): fix parsing of quoting, escaping and newline
31679
71c79a6b 316802009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
31681
dd74360c 31682 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 31683 handling
dd74360c 31684
0644f96c 316852009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 31686
31687 * util/grub-mkconfig.in: Fix parsing of --output option.
31688
e40893c3 316892009-06-12 Pavel Roskin <proski@gnu.org>
31690
31691 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
31692 genmk.rb don't need to be generated or installed.
31693
3a1acfe2 316942009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
31695
31696 * commands/i386/pc/drivemap_int13h.S: add more comments
31697
3a4575d4 316982009-06-11 Pavel Roskin <proski@gnu.org>
31699
0658e928 31700 * Makefile.in (uninstall): Uninstall manuals.
31701
ca0388f0 31702 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
31703 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
31704 and update-grub_lib in two places.
31705 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
31706
e3b27c39 31707 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
31708 a compiler warning.
31709
3a4575d4 31710 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
31711 `entry_lo' to fix variable shadowing.
31712
af1f4f55 317132009-06-11 Christian Franke <franke@computer.org>
31714
31715 * kern/misc.c (__enable_execute_stack): Add missing return type
31716 to prevent gcc warning.
31717
5225e649 317182009-06-11 Felix Zielcke <fzielcke@z-51.de>
31719
31720 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
31721
7d83bd47 317222009-06-11 Pavel Roskin <proski@gnu.org>
31723
c1cb63ba 31724 * Makefile.in: Don't rely on any scripts being executable.
31725 Always use $(SHELL) to run shell scripts.
31726
7d83bd47 31727 * configure.ac: Always define ___main if using -nostdlib. This
31728 fixes tests on Cygwin.
31729
948f48e7 317302009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
31731
31732 UDF fix
31733
7d83bd47 31734 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 31735 is in bytes and not in blocks
7d83bd47 31736
8ada9bc1 317372009-06-11 Pavel Roskin <proski@gnu.org>
31738
31739 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
31740 warning.
31741
25ad2323 317422009-06-11 Felix Zielcke <fzielcke@z-51.de>
31743
31744 * util/grub.d/30_os-prober.in: Fix a comment. Source
31745 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
31746 to set the root device. Place drivemap command in the generated
31747 chain entry.
31748
e65acb0c 317492009-06-11 Pavel Roskin <proski@gnu.org>
31750
31751 * configure.ac: Remove host_m32. Issues with 64-bit utilities
31752 have long been resolved.
31753
f285fe2d 317542009-06-11 Colin Watson <cjwatson@ubuntu.com>
31755
bd47b0b5 31756 * util/grub.d/10_linux.in: Capitalise "Linux".
31757
f285fe2d 31758 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
31759
a0c62e4e 317602009-06-11 Pavel Roskin <proski@gnu.org>
31761
b6783cb2 31762 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
31763 fix a gcc warning and ensure that the function won't ever exit.
31764
dde032e8 31765 * kern/i386/ieee1275/init.c: Add missing prototype for
31766 grub_stop_floppy().
31767
22cd079d 31768 * loader/ieee1275/multiboot2.c [__i386__]: Include
31769 grub/cpu/multiboot.h.
31770
a0c62e4e 31771 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
31772 casts to short - they are not portable and cause warnings. Fix
31773 use of uninitialized values in input_buf. Use ARRAY_SIZE.
31774
63963d17 317752009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
31776
31777 Drivemap fixes
31778
31779 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
31780 new function
31781 (grub_get_root_biosnumber_saved): new variable
31782 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
31783 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 31784 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 31785 %dx after the call if necessary
31786 * conf/common.rmk (pkglib_MODULES): remove boot.mod
31787 (boot_mod_SOURCES): remove
31788 (boot_mod_CFLAGS): remove
31789 (boot_mod_LDFLAGS): remove
31790 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
31791 (boot_mod_SOURCES): new variable
31792 (boot_mod_CFLAGS): likewise
31793 (boot_mod_LDFLAGS): likewise
31794 * conf/i386-efi.rmk: likewise
31795 * conf/i386-ieee1275.rmk: likewise
31796 * conf/i386-pc.rmk: likewise
31797 * conf/powerpc-ieee1275.rmk: likewise
31798 * conf/sparc64-ieee1275.rmk: likewise
31799 * conf/x86_64-efi.rmk: likewise
31800 * include/grub/i386/pc/biosnum.h: new file
31801 * lib/i386/pc/biosnum.c: likewise
31802 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
31803 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
31804 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 31805
33abf7ae 318062009-06-10 Pavel Roskin <proski@gnu.org>
31807
5ac35b35 31808 * io/gzio.c (test_header): Don't reuse one buffer for all data.
31809 Use separate variables. Read only the file size at the end, but
31810 not the checksum that we don't use.
31811
5c5215d5 31812 * kern/file.c (grub_file_read): Use void pointer for the buffer.
31813 Adjust all callers.
31814
27d5fef7 31815 * kern/ieee1275/openfw.c: Remove libc includes.
31816 * kern/ieee1275/cmain.c: Likewise.
31817 * include/grub/ieee1275/ieee1275.h: Likewise.
31818
33abf7ae 31819 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
31820 compiler warnings.
31821
19d50c2b 318222009-06-10 Felix Zielcke <fzielcke@z-51.de>
31823
31824 * Makefile.in: Remove all trailing whitespace.
31825 * conf/i386-pc.rmk: Likewise.
31826 * conf/powerpc-ieee1275.rmk: Likewise.
31827 * conf/sparc64-ieee1275.rmk: Likewise.
31828 * docs/grub.texi: Likewise.
31829 * docs/texinfo.tex: Likewise.
31830 * disk/fs_uuid.c: Likewise.
31831 * disk/lvm.c: Likewise.
31832 * disk/scsi.c: Likewise.
31833 * disk/ata.c: Likewise.
31834 * disk/ieee1275/ofdisk.c: Likewise.
31835 * disk/i386/pc/biosdisk.c: Likewise.
31836 * disk/host.c: Likewise.
31837 * disk/raid.c: Likewise.
31838 * disk/efi/efidisk.c: Likewise.
31839 * disk/usbms.c: Likewise.
31840 * disk/memdisk.c: Likewise.
31841 * disk/loopback.c: Likewise.
31842 * kern/powerpc/dl.c: Likewise.
31843 * kern/device.c: Likewise.
31844 * kern/dl.c: Likewise.
31845 * kern/sparc64/dl.c: Likewise.
31846 * kern/ieee1275/ieee1275.c: Likewise.
31847 * kern/term.c: Likewise.
31848 * kern/fs.c: Likewise.
31849 * kern/i386/dl.c: Likewise.
31850 * kern/i386/pc/startup.S: Likewise.
31851 * kern/i386/pc/init.c: Likewise.
31852 * kern/i386/pc/mmap.c: Likewise.
31853 * kern/i386/pc/lzo1x.S: Likewise.
31854 * kern/i386/ieee1275/init.c: Likewise.
31855 * kern/i386/realmode.S: Likewise.
31856 * kern/i386/tsc.c: Likewise.
31857 * kern/partition.c: Likewise.
31858 * kern/corecmd.c: Likewise.
31859 * kern/file.c: Likewise.
31860 * kern/efi/efi.c: Likewise.
31861 * kern/efi/init.c: Likewise.
31862 * kern/efi/mm.c: Likewise.
31863 * kern/main.c: Likewise.
31864 * kern/err.c: Likewise.
31865 * kern/env.c: Likewise.
31866 * kern/disk.c: Likewise.
31867 * kern/generic/millisleep.c: Likewise.
31868 * kern/generic/rtc_get_time_ms.c: Likewise.
31869 * kern/misc.c: Likewise.
31870 * kern/parser.c: Likewise.
31871 * genmk.rb: Likewise.
31872 * configure.ac: Likewise.
31873 * boot/i386/pc/diskboot.S: Likewise.
31874 * boot/i386/pc/pxeboot.S: Likewise.
31875 * boot/i386/pc/boot.S: Likewise.
31876 * boot/i386/pc/lnxboot.S: Likewise.
31877 * boot/i386/pc/cdboot.S: Likewise.
31878 * parttool/pcpart.c: Likewise.
31879 * video/readers/tga.c: Likewise.
31880 * video/video.c: Likewise.
31881 * video/bitmap.c: Likewise.
31882 * lib/envblk.c: Likewise.
31883 * lib/i386/setjmp.S: Likewise.
31884 * fs/xfs.c: Likewise.
31885 * fs/afs.c: Likewise.
31886 * fs/fat.c: Likewise.
31887 * fs/ntfs.c: Likewise.
31888 * fs/udf.c: Likewise.
31889 * fs/affs.c: Likewise.
31890 * fs/iso9660.c: Likewise.
31891 * fs/hfs.c: Likewise.
31892 * fs/fshelp.c: Likewise.
31893 * fs/ext2.c: Likewise.
31894 * fs/jfs.c: Likewise.
31895 * fs/reiserfs.c: Likewise.
31896 * fs/hfsplus.c: Likewise.
31897 * fs/minix.c: Likewise.
31898 * fs/cpio.c: Likewise.
31899 * fs/sfs.c: Likewise.
31900 * fs/ufs.c: Likewise.
31901 * efiemu/prepare.c: Likewise.
31902 * efiemu/loadcore_common.c: Likewise.
31903 * efiemu/runtime/efiemu.sh: Likewise.
31904 * efiemu/runtime/efiemu.S: Likewise.
31905 * efiemu/runtime/efiemu.c: Likewise.
31906 * efiemu/pnvram.c: Likewise.
31907 * efiemu/main.c: Likewise.
31908 * efiemu/i386/pc/cfgtables.c: Likewise.
31909 * efiemu/i386/loadcore64.c: Likewise.
31910 * efiemu/i386/loadcore32.c: Likewise.
31911 * efiemu/loadcore.c: Likewise.
31912 * efiemu/symbols.c: Likewise.
31913 * efiemu/mm.c: Likewise.
31914 * include/grub/autoefi.h: Likewise.
31915 * include/grub/datetime.h: Likewise.
31916 * include/grub/term.h: Likewise.
31917 * include/grub/hfs.h: Likewise.
31918 * include/grub/lvm.h: Likewise.
31919 * include/grub/i386/tsc.h: Likewise.
31920 * include/grub/i386/linux.h: Likewise.
31921 * include/grub/i386/xnu.h: Likewise.
31922 * include/grub/i386/efiemu.h: Likewise.
31923 * include/grub/i386/pc/biosdisk.h: Likewise.
31924 * include/grub/i386/pc/memory.h: Likewise.
31925 * include/grub/i386/pc/vbe.h: Likewise.
31926 * include/grub/parttool.h: Likewise.
31927 * include/grub/video.h: Likewise.
31928 * include/grub/memory.h: Likewise.
31929 * include/grub/fs.h: Likewise.
31930 * include/grub/partition.h: Likewise.
31931 * include/grub/xnu.h: Likewise.
31932 * include/grub/efi/api.h: Likewise.
31933 * include/grub/efi/pe32.h: Likewise.
31934 * include/grub/efi/memory.h: Likewise.
31935 * include/grub/multiboot.h: Likewise.
31936 * include/grub/usbdesc.h: Likewise.
31937 * include/grub/multiboot2.h: Likewise.
31938 * include/grub/acpi.h: Likewise.
31939 * include/grub/efiemu/efiemu.h: Likewise.
31940 * include/grub/disk.h: Likewise.
31941 * include/grub/ieee1275/ieee1275.h: Likewise.
31942 * include/grub/net.h: Likewise.
31943 * include/grub/machoload.h: Likewise.
31944 * include/grub/macho.h: Likewise.
31945 * include/multiboot.h: Likewise.
31946 * genmoddep.awk: Likewise.
31947 * normal/main.c: Likewise.
31948 * normal/menu_entry.c: Likewise.
31949 * normal/menu_viewer.c: Likewise.
31950 * normal/completion.c: Likewise.
31951 * normal/cmdline.c: Likewise.
31952 * normal/misc.c: Likewise.
31953 * normal/datetime.c: Likewise.
31954 * bus/usb/usbtrans.c: Likewise.
31955 * bus/usb/ohci.c: Likewise.
31956 * bus/usb/uhci.c: Likewise.
31957 * bus/usb/usb.c: Likewise.
31958 * mmap/efi/mmap.c: Likewise.
31959 * mmap/i386/pc/mmap_helper.S: Likewise.
31960 * mmap/i386/pc/mmap.c: Likewise.
31961 * mmap/i386/mmap.c: Likewise.
31962 * mmap/i386/uppermem.c: Likewise.
31963 * mmap/mmap.c: Likewise.
31964 * commands/acpi.c: Likewise.
31965 * commands/echo.c: Likewise.
31966 * commands/blocklist.c: Likewise.
31967 * commands/loadenv.c: Likewise.
31968 * commands/usbtest.c: Likewise.
31969 * commands/boot.c: Likewise.
31970 * commands/parttool.c: Likewise.
31971 * commands/search.c: Likewise.
31972 * commands/cat.c: Likewise.
31973 * commands/i386/pc/play.c: Likewise.
31974 * commands/i386/pc/drivemap.c: Likewise.
31975 * commands/i386/pc/vbeinfo.c: Likewise.
31976 * commands/i386/pc/acpi.c: Likewise.
31977 * commands/i386/pc/vbetest.c: Likewise.
31978 * commands/ls.c: Likewise.
31979 * commands/cmp.c: Likewise.
31980 * commands/test.c: Likewise.
31981 * commands/efi/acpi.c: Likewise.
31982 * commands/gptsync.c: Likewise.
31983 * commands/help.c: Likewise.
31984 * partmap/amiga.c: Likewise.
31985 * partmap/apple.c: Likewise.
31986 * partmap/acorn.c: Likewise.
31987 * partmap/pc.c: Likewise.
31988 * partmap/sun.c: Likewise.
31989 * partmap/gpt.c: Likewise.
31990 * script/sh/lexer.c: Likewise.
31991 * script/sh/function.c: Likewise.
31992 * font/font.c: Likewise.
31993 * font/font_cmd.c: Likewise.
31994 * loader/powerpc/ieee1275/linux.c: Likewise.
31995 * loader/efi/chainloader.c: Likewise.
31996 * loader/multiboot_loader.c: Likewise.
31997 * loader/macho.c: Likewise.
31998 * loader/i386/multiboot.c: Likewise.
31999 * loader/i386/linux.c: Likewise.
32000 * loader/i386/pc/linux.c: Likewise.
32001 * loader/i386/pc/multiboot2.c: Likewise.
32002 * loader/i386/pc/chainloader.c: Likewise.
32003 * loader/i386/pc/xnu.c: Likewise.
32004 * loader/i386/bsd_trampoline.S: Likewise.
32005 * loader/i386/efi/linux.c: Likewise.
32006 * loader/i386/multiboot_elfxx.c: Likewise.
32007 * loader/i386/bsd_helper.S: Likewise.
32008 * loader/i386/bsd.c: Likewise.
32009 * loader/i386/linux_trampoline.S: Likewise.
32010 * loader/i386/xnu_helper.S: Likewise.
32011 * loader/i386/xnu.c: Likewise.
32012 * loader/i386/bsd_pagetable.c: Likewise.
32013 * loader/i386/multiboot_helper.S: Likewise.
32014 * loader/xnu.c: Likewise.
32015 * loader/xnu_resume.c: Likewise.
32016 * io/gzio.c: Likewise.
32017 * term/efi/console.c: Likewise.
32018 * term/terminfo.c: Likewise.
32019 * term/ieee1275/ofconsole.c: Likewise.
32020 * term/i386/pc/serial.c: Likewise.
32021 * term/i386/pc/vesafb.c: Likewise.
32022 * term/i386/pc/vga.c: Likewise.
32023 * term/usb_keyboard.c: Likewise.
32024 * term/gfxterm.c: Likewise.
32025 * aclocal.m4: Likewise.
32026 * util/lvm.c: Likewise.
32027 * util/grub.d/30_os-prober.in: Likewise.
32028 * util/grub.d/10_hurd.in: Likewise.
32029 * util/console.c: Likewise.
32030 * util/grub-macho2img.c: Likewise.
32031 * util/grub-probe.c: Likewise.
32032 * util/hostfs.c: Likewise.
32033 * util/i386/pc/grub-mkimage.c: Likewise.
32034 * util/i386/pc/grub-setup.c: Likewise.
32035 * util/i386/efi/grub-mkimage.c: Likewise.
32036 * util/grub-mkconfig.in: Likewise.
32037 * util/raid.c: Likewise.
32038 * util/resolve.c: Likewise.
32039 * util/grub-mkdevicemap.c: Likewise.
32040 * util/grub-emu.c: Likewise.
32041 * util/getroot.c: Likewise.
32042 * util/hostdisk.c: Likewise.
32043 * util/usb.c: Likewise.
32044 * util/grub-editenv.c: Likewise.
32045 * util/misc.c: Likewise.
32046
d2d49665 320472009-06-10 Felix Zielcke <fzielcke@z-51.de>
32048
32049 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
32050 `genparttoollist.sh'.
32051 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
32052 Add `*.sh' to the list find searches for and change `mdate.sh'
32053 to `mdate-sh'.
32054
fe052e37 320552009-06-10 Pavel Roskin <proski@gnu.org>
32056
2763ac18 32057 * include/grub/multiboot2.h: Provide compatibility defines for
32058 multiboot2.h.
32059 * include/multiboot2.h: Include stdint.h only if needed, using
32060 angle brackets.
32061 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
32062 grub/multiboot2.h.
32063 * loader/ieee1275/multiboot2.c: Likewise.
32064 * loader/multiboot2.c: Likewise.
32065 * loader/multiboot_loader.c: Likewise.
32066
437e6adc 32067 * configure.ac: Use -nostdlib when probing for the target. It
32068 should not be required to have libc for the target.
32069
06a6836c 32070 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
32071 they fail without libc headers for the target.
32072 * include/grub/powerpc/libgcc.h: Use weak attribute for all
32073 exports.
32074 * include/grub/sparc64/libgcc.h: Likewise. Don't use
32075 preprocessor conditionals.
32076
fe052e37 32077 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
32078 build system doesn't need to be aware of the tar.c internals.
32079
afd22553 320802009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 32081
afd22553 32082 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 32083
6b787c4f 320842009-06-09 Robert Millan <rmh.grub@aybabtu.com>
32085
32086 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
32087 disk limit to 26 for IDE, Virtio, Xen and SCSI.
32088
320892009-06-09 Felix Zielcke <fzielcke@z-51.de>
32090
32091 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 32092 aren't available if ata.mod gets used.
6b787c4f 32093
473d1e45 320942009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 32095
473d1e45 32096 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 32097 initialising controller.
473d1e45 32098 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 32099
255a27d4 321002009-06-08 Felix Zielcke <fzielcke@z-51.de>
32101
32102 * util/i386/pc/grub-install.in: Add a parameter --disk-module
32103 to choose between ata and biosdisk module on i386-pc.
32104
473d1e45 321052009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 32106
d55842d8 32107 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
32108 Subclass and Programming Interface fields in terms of the 3 byte
32109 Class Code register.
32110 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32111
fa5db0b1 32112 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
32113 interface is OHCI. Add grub_dprintf for symmetry with
32114 bus/usb/uhci.c.
32115 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
32116 interface is UHCI. Add interf variable for programming
32117 interface. Print interface with class/subclass.
32118
c0947beb 32119 * bus/usb/ohci.c: Set interf with correct field.
32120
69da8877 32121 * bus/usb/uhci.c: Remove unneeded doubled lines.
32122 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
32123 Remove whitespace inside comment.
32124
9e172e30 321252009-06-08 Robert Millan <rmh.grub@aybabtu.com>
32126
32127 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
32128 as fallback an equivalent option without depth.
32129
de65ee2b 321302009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32131
32132 Not fail if unable to retrieve C/H/S on LBA disks
32133
473d1e45 32134 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 32135 if unable to retrieve C/H/S on LBA disks
32136
b57ea2c9 321372009-06-08 Pavel Roskin <proski@gnu.org>
32138
32139 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
32140 about aliasing.
32141
af361263 321422009-06-08 Felix Zielcke <fzielcke@z-51.de>
32143
32144 * Makefile.in (uninstall): Remove all $lib_DATA files.
32145
4c9ec6b3 321462009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32147
32148 Bugfix: install on partitionless device
32149
32150 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
32151 is a whole disk
32152
e76fc924 321532009-06-08 Felix Zielcke <fzielcke@z-51.de>
32154
32155 * Makefile.in (uninstall): Remove all $include_DATA files.
32156
ba5a0d05 321572009-06-08 Felix Zielcke <fzielcke@z-51.de>
32158
32159 * commands/true.c: New file. Implement the true and false commands.
32160 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32161 (true_mod_SOURCES): New variable.
32162 (true_mod_CFLAGS): Likewise.
32163 (true_mod_LDFLAGS): Likewise.
32164
c8048e32 321652009-06-05 Colin D Bennett <colin@gibibit.com>
32166
32167 Optimized font character lookup using binary search instead of linear
32168 search. Fonts now are required to have the character index ordered by
32169 code point.
32170
32171 * font/font.c (load_font_index): Verify that fonts have ordered
32172 character indices.
32173 (find_glyph): Use binary search instead of linear search to find a
32174 character in a font.
32175
408305be 321762009-06-05 Michael Scherer <misc@mandriva.org>
32177
32178 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32179 uses case sensitive btree.
32180 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32181 only for case insensitive filesystems.
32182
8ee1e0d9 321832009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32184
32185 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32186 * conf/common.rmk (search_mod_CFLAGS): likewise
32187
a9966eb1 321882009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32189
473d1e45 32190 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 32191 compensate a compiler bug
32192
9e7100fb 321932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32194
473d1e45 32195 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 32196 instead of '\b'
473d1e45 32197
ede21d71 321982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32199
32200 Definitions for creating asm symbols with Apple's CC
32201
32202 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32203 [APPLE_CC] (VARIABLE): likewise
32204
9dbf7653 322052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32206
32207 Disable lnxboot.img when compiled
32208 with Apple's CC
32209
32210 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32211 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32212 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32213 [! APPLE_CC] (CODE_LENG): skip
32214 [! APPLE_CC] (setup_sects): likewise
32215 [! APPLE_CC]: skip filling
473d1e45 32216
e93cdc3d 322172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32218
32219 Address in trampolines based on 32-bit registers when compiled
32220 with Apple's CC
32221
473d1e45 32222 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 32223 for addresses
32224 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32225
6c688477 322262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32227
32228 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32229
32230 * kern/misc.c [APPLE_CC] (memcpy): new function
32231 [APPLE_CC] (memmove): likewise
32232 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 32233 (memcpy): define alias conditionally on !APPLE_CC
6c688477 32234 (memset): likewise
32235 (abort): likewise
32236 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32237 APPLE_CC are defined
32238 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32239 (grub_assert_fail): make prototype conditional
32240
e37ffc5c 322412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32242
32243 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32244
473d1e45 32245 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32246 grub-macho2img
e37ffc5c 32247 (CLEANFILES): add grub-macho2img
32248 (grub_macho2img_SOURCES): new variable
32249 * kern/i386/pc/startup.S (bss_start): new variable
32250 (bss_end): likewise
32251 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32252 * util/grub-macho2img.c: new file
32253
cf00df31 322542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32255
32256 Use objconv when compiling with Apple's CC
32257
32258 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32259 (efiemu64.o): likewise
32260 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32261 when compiling with Apple's CC
32262 (efiemu64_s.o): likewise
32263 * configure.ac: check for objconv when compiling with Apple's CC
32264 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 32265
d119a20c 322662009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32267
32268 Define segment as well as section when compiling with
32269 Apple's CC
32270
32271 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32272 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32273 (efiemu_convert_pointer): likewise
32274 (efiemu_set_virtual_address_map): likewise
32275 (efiemu_convert_pointer): likewise
32276 (efiemu_getcrc32): likewise
32277 (init_crc32_table): likewise
32278 (reflect): likewise
32279 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32280 (GRUB_MOD_DEP): likewise
473d1e45 32281
c8600122 322822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32283
32284 Allow a compilation without -mcmodel=large
32285
32286 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32287 when compiled without -mcmodel=large
473d1e45 32288 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 32289 without -mcmodel=large
473d1e45 32290 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 32291 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 32292
e8df1d4e 322932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32294
32295 Remove nested functions in efiemu core
32296
32297 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 32298
cc6c3ac1 322992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32300
32301 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32302
32303 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32304 temporary storage
473d1e45 32305 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32306 using Apple's CC
cc6c3ac1 32307 (grub_cpu_is_tsc_supported): likewise
32308 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 32309
3e325901 323102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32311
32312 Absolute addressing through constant with Apple's cc
32313
32314 * kern/i386/pc/startup.S: Define necessary constants
32315 and address through it when using ABS with Apple's CC
32316 * boot/i386/pc/diskboot.S: likewise
32317 * boot/i386/pc/boot.S: likewise
32318 * boot/i386/pc/lnxboot.S: likewise
32319 * boot/i386/pc/cdboot.S: likewise
32320 * mmap/i386/pc/mmap_helper.S: likewise
32321 * commands/i386/pc/drivemap_int13h.S: likewise
32322
2b167a72 323232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32324
32325 Check if compiler is apple cc
32326
32327 * Makefile.in (ASFLAGS): new variable
32328 (TARGET_ASFLAGS): likewise
32329 (TARGET_MODULE_FORMAT): likewise
32330 (TARGET_APPLE_CC): likewise
32331 (OBJCONV): likewise
32332 (TARGET_IMG_CFLAGS): likewise
32333 (TARGET_CPPFLAGS): add includedir
32334 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32335 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32336 Check for linker script only if compiler isn't Apple's CC
32337 (TARGET_MODULE_FORMAT): set
32338 (TARGET_APPLE_CC): likewise
32339 (TARGET_ASFLAGS): likewise
32340 (ASFLAGS): likewise
32341 Check for objcopy only if compiler isn't Apple's CC
32342 Check for BSS symbol only if compiler isn't Apple's CC
32343 * genmk.rb: adapt nm options if we use Apple's utils
32344 * aclocal.m4 (grub_apple_cc): new test
32345 (grub_apple_target_cc): likewise
473d1e45 32346
fb14123e 323472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32348
32349 Simplify sed expressions and improve awk
32350
32351 * Makefile.in (install-local): simplify sed expression
32352 * gencmdlist.sh: likewise
32353 * genmoddep.awk: avoid adding module as a dependency of itself
32354
5b889789 323552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32356
32357 Add missing start symbols
32358
32359 * boot/i386/pc/boot.S: add start
fb14123e 32360 * boot/i386/pc/pxeboot.S: likewise
473d1e45 32361
fd2bf2e3 323622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32363
32364 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 32365
32366 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 32367 (relocate_addresses): consider both r_addend and value at offset
32368 (make_mods_section): zerofill modinfo and header
32369 (convert_elf): write prefix here
473d1e45 32370
5389763d 323712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32372
32373 Use .asciz instead of .string
32374
32375 * i386/pc/diskboot.S: use .asciz instead of .string
32376 * i386/pc/boot.S: likewise
32377 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32378 (GRUB_MOD_NAME): likewise
473d1e45 32379
3eb5ed4e 323802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32381
32382 gfxpayload support
32383
32384 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32385 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32386 (grub_video_setup): remove
32387 (grub_video_set_mode): new prototype
32388 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32389 (vid_mode): remove
32390 (linux_vesafb_res): compile only on PCBIOS
32391 (grub_linux_boot): support gfxpayload
32392 * loader/i386/pc/xnu.c (video_hook): new function
32393 (grub_xnu_set_video): support gfxpayload
32394 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32395 (DEFAULT_VIDEO_HEIGHT): likewise
32396 (DEFAULT_VIDEO_FLAGS): likewise
32397 (DEFAULT_VIDEO_MODE): new definition
32398 (video_hook): new function
32399 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 32400 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 32401 loading xnu
32402 * video/video.c (grub_video_setup): removed
473d1e45 32403 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 32404 grub_video_setup
32405
4b0e1143 324062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32407
32408 Avoid calling biosdisk in drivemap
32409
32410 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32411 (revparse_biosdisk): likewise
32412 (list_mappings): derive name from id directly
32413 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 32414
fda6cb98 324152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32416
32417 Script fixes
32418
32419 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32420 (grub_lexer_param): add tokenonhold
32421 (grub_script_create_cmdline): remove cmdline. All callers updated
32422 (grub_script_function_create): make functionname
32423 grub_script_arg. All callers updated
32424 (grub_script_execute_argument_to_string): new prototype
32425 * kern/parser.c (state_transitions): reorder
32426 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 32427 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 32428 make global
32429 (grub_script_execute_cmdline): use new format
32430 * script/sh/function.c (grub_script_function_create): make functionname
32431 grub_script_arg. All callers updated
473d1e45 32432 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 32433 (grub_script_yylex): remove
32434 (grub_script_yylex2): renamed to ...
32435 (grub_script_yylex): ...renamed
32436 parse the expressions like a${b}c
32437 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32438 (GRUB_PARSER_TOKEN_VAR): remove
32439 (GRUB_PARSER_TOKEN_NAME): likewise
32440 ("if"): declare as typeless
32441 ("while"): likewise
32442 ("function"): likewise
32443 ("else"): likewise
32444 ("then"): likewise
32445 ("fi"): likewise
32446 (text): remove
32447 (argument): likewise
32448 (script): accept empty scripts and make exit on error
32449 (arguments): use GRUB_PARSER_TOKEN_ARG
32450 (function): likewise
32451 (command): move error handling to script
32452 (menuentry): move grub_script_lexer_ref before
473d1e45 32453 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 32454 argument. All callers updated
32455
f4448a07 324562009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32457
32458 Prevent GRUB from probing floppies during boot.
32459
32460 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
32461 * commands/search.c (options): Add --no-floppy.
32462 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
32463 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
32464 --no-floppy when searching for UUIDs.
32465
2bf5885a 324662009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32467
32468 Simplify the code duplication in commands/search.c.
32469
32470 * commands/search.c (search_label, search_fs_uuid): Merge into ...
32471 (search_fs): ... this. Update all users.
32472
f6fd460a 324732009-06-03 Felix Zielcke <fzielcke@z-51.de>
32474
32475 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
32476
cbb3c83e 324772009-05-28 Pavel Roskin <proski@gnu.org>
32478
57788cfd 32479 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
32480 Remove the original symlink explicitly.
32481
cbb3c83e 32482 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
32483 just one slash. That's how grub_fshelp_find_file() does it.
32484
cd0d5e30 324852009-05-26 Pavel Roskin <proski@gnu.org>
32486
f0f8bbe2 32487 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
32488 to `str'.
32489
cd0d5e30 32490 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
32491 possibly unused.
32492
8c2cab51 324932009-05-25 Christian Franke <franke@computer.org>
32494
32495 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
32496 register.
32497 (grub_atapi_identify): Add wait after drive select.
32498 (grub_ata_identify): Do more strict status register check before
32499 calling grub_atapi_identify (). Suppress error message if status
32500 register is 0x00 after command failure. Add status register
32501 check after PIO read to avoid bogus identify due to stuck DRQ.
32502 Thanks to Pavel Roskin for testing.
32503 (grub_device_initialize): Remove unsafe status register check.
32504 Thanks to 'phcoder' for problem report and patch.
32505 Prevent sign extension in debug message.
32506
230c0ad6 325072009-05-23 Colin D Bennett <colin@gibibit.com>
32508
32509 Cleaned up `include/grub/normal.h'. Grouped prototypes by
32510 definition file, and functions defined in `normal/menu.c' have had
32511 their prototypes moved to `include/grub/menu.h' for consistency.
32512
32513 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
32514 from normal.h.
32515 (grub_menu_get_entry): Likewise.
32516 (grub_menu_get_timeout): Likewise.
32517 (grub_menu_set_timeout): Likewise.
32518 (grub_menu_execute_entry): Likewise.
32519 (grub_menu_execute_with_fallback): Likewise.
32520 (grub_menu_entry_run): Likewise.
32521
32522 * include/grub/normal.h: Re-ordered and grouped function
32523 prototypes by file that the function is defined in.
32524 (grub_menu_execute_callback): Removed; moved to menu.h.
32525 (grub_menu_get_entry): Likewise.
32526 (grub_menu_get_timeout): Likewise.
32527 (grub_menu_set_timeout): Likewise.
32528 (grub_menu_execute_entry): Likewise.
32529 (grub_menu_execute_with_fallback): Likewise.
32530 (grub_menu_entry_run): Likewise.
32531 (grub_menu_addentry): Renamed from this ...
32532 (grub_normal_add_menu_entry): ... to this.
32533
32534 * normal/main.c (grub_menu_addentry): Renamed from this ...
32535 (grub_normal_add_menu_entry): ... to this.
32536
32537 * script/sh/execute.c (grub_script_execute_menuentry): Update
32538 reference to renamed grub_menu_addentry function.
32539
861f03a5 325402009-05-23 Felix Zielcke <fzielcke@z-51.de>
32541
32542 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
32543
96b1619a 325442009-05-22 Pavel Roskin <proski@gnu.org>
32545
bf6a5fb2 32546 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
32547 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
32548 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
32549 compiling for the i386 targets, but not for the utilities.
32550
96b1619a 32551 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
32552 to grub_uint8_t.
32553 (grub_root_drive): Likewise.
32554 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
32555 remove alignment.
32556 (grub_root_drive): Change size to byte.
32557 (grub_start_addr): Remove.
32558 (grub_end_addr): Likewise.
32559 (grub_apm_bios_info): Likewise.
32560
b729776b 325612009-05-21 Felix Zielcke <fzielcke@z-51.de>
32562
32563 * normal/i386: Remove.
32564 * normal/powerpc: Likewise.
32565 * normal/sparc64: Likewise.
32566 * normal/x86_64: Likewise.
32567
0a15ce80 325682009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
32569
32570 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 32571 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 32572 * loader/i386/xnu_helper.S: Likewise
d6da58e6 32573
33db9015 325742009-05-18 Colin D Bennett <colin@gibibit.com>
32575
d6da58e6 32576 Display error messages when parsing a Lua statement fails.
32577 Previously, executing a syntactically invalid statement like
32578 ")foo" or "bar;" would silently fail.
33db9015 32579
32580 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 32581 (grub_lua_parse_line): Improved reporting of Lua parser and
32582 execution errors.
33db9015 32583
46422c89 325842009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32585
32586 Remove -Werror which causes build to fail on some systems
32587
32588 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
32589 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
32590 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 32591
22f53a96 325922009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32593
32594 trampoline for linux on 64-bit platform
32595
18f547ad 32596 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
32597 loader/i386/efi/linux_trampoline.S
32598 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 32599 declaration
d6da58e6 32600 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
32601 here
22f53a96 32602 * loader/i386/linux_trampoline.S: moved here
d6da58e6 32603 * loader/i386/efi/linux.c (allocate_pages): reserve space for
32604 trampoline
22f53a96 32605 (jumpvector): removed
32606 (grub_linux_trampoline_start): new declaration
32607 (grub_linux_trampoline_end): likewise
32608 (grub_linux_boot): use trampoline when on 64-bit platform
32609 * loader/i386/linux.c: likewise
32610
cb5a0f40 326112009-05-16 Pavel Roskin <proski@gnu.org>
32612
32613 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
32614 const to avoid a warning.
32615 (grub_lua_setenv): Likewise.
32616 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
32617 lmsg to fix a warning.
32618
334f2c28 326192009-05-16 Felix Zielcke <fzielcke@z-51.de>
32620
32621 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 32622 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32623 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
32624 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32625 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32626 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32627 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32628 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 32629
59e5d3ec 326302009-05-16 Felix Zielcke <fzielcke@z-51.de>
32631
32632 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
32633
9d87a1ba 326342009-05-16 Bean <bean123ch@gmail.com>
32635
32636 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
32637 (lua_mod_SOURCES): New variable.
32638 (lua_mod_CFLAGS): Likewise.
32639 (lua_mod_LDFLAGS): Likewise.
32640
32641 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
32642 (setjmp_mod_SOURCES): New variable.
32643 (setjmp_mod_CFLAGS): Likewise.
32644 (setjmp_LDFLAGS): Likewise.
32645
32646 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
32647 (setjmp_mod_SOURCES): New variable.
32648 (setjmp_mod_CFLAGS): Likewise.
32649 (setjmp_LDFLAGS): Likewise.
32650
32651 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32652 (setjmp_mod_SOURCES): New variable.
32653 (setjmp_mod_CFLAGS): Likewise.
32654 (setjmp_LDFLAGS): Likewise.
32655
32656 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32657 (setjmp_mod_SOURCES): New variable.
32658 (setjmp_mod_CFLAGS): Likewise.
32659 (setjmp_LDFLAGS): Likewise.
32660
32661 * normal/i386/setjmp.S: Moved from here ...
32662 * lib/i386/setjmp.S: ... Moved here
32663 * normal/x86_64/setjmp.S: Moved from here ...
32664 * lib/x86_64/setjmp.S: ... Moved here
32665 * normal/powerpc/setjmp.S: Moved from here ...
32666 * lib/powerpc/setjmp.S: ... Moved here
32667 * normal/sparc64/setjmp.S: Moved from here ...
32668 * lib/sparc64/setjmp.S: ... Moved here
32669
32670 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
32671 returns_twice in mingw.
32672
32673 * script/lua/grub_lib.c: New file.
32674 * script/lua/grub_lib.h: Likewise.
32675 * script/lua/grub_lua.h: Likewise.
32676 * script/lua/grub_main.c: Likewise.
32677 * script/lua/lapi.c: Likewise.
32678 * script/lua/lapi.h: Likewise.
32679 * script/lua/lauxlib.c: Likewise.
32680 * script/lua/lauxlib.h: Likewise.
32681 * script/lua/lbaselib.c: Likewise.
32682 * script/lua/lcode.c: Likewise.
32683 * script/lua/lcode.h: Likewise.
32684 * script/lua/ldblib.c: Likewise.
32685 * script/lua/ldebug.c: Likewise.
32686 * script/lua/ldebug.h: Likewise.
32687 * script/lua/ldo.c: Likewise.
32688 * script/lua/ldo.h: Likewise.
32689 * script/lua/ldump.c: Likewise.
32690 * script/lua/lfunc.c: Likewise.
32691 * script/lua/lfunc.h: Likewise.
32692 * script/lua/lgc.c: Likewise.
32693 * script/lua/lgc.h: Likewise.
32694 * script/lua/linit.c: Likewise.
32695 * script/lua/liolib.c: Likewise.
32696 * script/lua/llex.c: Likewise.
32697 * script/lua/llex.h: Likewise.
32698 * script/lua/llimits.h: Likewise.
32699 * script/lua/lmathlib.c: Likewise.
32700 * script/lua/lmem.c: Likewise.
32701 * script/lua/lmem.h: Likewise.
32702 * script/lua/loadlib.c: Likewise.
32703 * script/lua/lobject.c: Likewise.
32704 * script/lua/lobject.h: Likewise.
32705 * script/lua/lopcodes.c: Likewise.
32706 * script/lua/lopcodes.h: Likewise.
32707 * script/lua/loslib.c: Likewise.
32708 * script/lua/lparser.c: Likewise.
32709 * script/lua/lparser.h: Likewise.
32710 * script/lua/lstate.c: Likewise.
32711 * script/lua/lstate.h: Likewise.
32712 * script/lua/lstring.c: Likewise.
32713 * script/lua/lstring.h: Likewise.
32714 * script/lua/lstrlib.c: Likewise.
32715 * script/lua/ltable.c: Likewise.
32716 * script/lua/ltable.h: Likewise.
32717 * script/lua/ltablib.c: Likewise.
32718 * script/lua/ltm.c: Likewise.
32719 * script/lua/ltm.h: Likewise.
32720 * script/lua/lua.h: Likewise.
32721 * script/lua/luaconf.h: Likewise.
32722 * script/lua/lualib.h: Likewise.
32723 * script/lua/lundump.c: Likewise.
32724 * script/lua/lundump.h: Likewise.
32725 * script/lua/lvm.c: Likewise.
32726 * script/lua/lvm.h: Likewise.
32727 * script/lua/lzio.c: Likewise.
32728 * script/lua/lzio.h: Likewise.
32729
5e898c9d 327302009-05-16 Bean <bean123ch@gmail.com>
32731
32732 * include/grub/kernel.h (grub_module_header_types): Add type
32733 OBJ_TYPE_CONFIG.
32734
32735 * kern/main.c (grub_load_config): New function.
32736 (grub_main): Call grub_load_config to read boot config.
32737
32738 * grub-mkimage (generate_image): New parameter config_path.
32739 (options): New option --config.
32740 (main): Parse --config option, and pass it to generate_image.
32741
cf353a47 327422009-05-14 Christian Franke <franke@computer.org>
32743
32744 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
32745 This fixes build on Cygwin.
32746
3834887f 327472009-05-14 Pavel Roskin <proski@gnu.org>
32748
32749 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
32750 jump. This saves two bytes, so the typical case of 2 swapped
32751 drives would fit 32 bytes.
32752
8090fc01 327532009-05-13 Pavel Roskin <proski@gnu.org>
32754
ac963883 32755 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
32756 grub_uint32_t to avoid a warning.
32757
8090fc01 32758 * loader/i386/linux.c (allocate_pages): When assigning
32759 real_mode_mem, cast through grub_size_t to fix a warning. The
32760 code already makes sure that the value would fit a pointer.
32761 (grub_linux_setup_video): Cast render_target->data to
32762 grub_size_t to fix a warning.
32763
18f547ad 327642009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 32765
32766 * commands/i386/pc/drivemap.c: New file - implement drivemap
32767 command.
32768 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
32769 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
32770
6f6a8b28 327712009-05-13 Pavel Roskin <proski@gnu.org>
32772
32773 * util/i386/pc/grub-setup.c (setup): Remove unused variable
32774 embedding_area_exists.
32775
15fbf4c4 327762009-05-13 Robert Millan <rmh.grub@aybabtu.com>
32777
32778 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
32779 it easier to understand / work with.
59978c8a 32780 Improve warning messages for cases where there's no embedding area,
32781 or when it is too small (or core.img too large).
15fbf4c4 32782
238e871f 327832009-05-13 Pavel Roskin <proski@gnu.org>
32784
0ab3a9a4 32785 * loader/i386/pc/multiboot2.c: Add necessary includes for
32786 grub_multiboot2_real_boot().
32787
a2c8c5f8 32788 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
32789 PX record is always little-endian. We only need the lower 2
32790 bytes of the mode.
32791
faec96af 32792 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
32793 facilitate code reuse.
32794 (grub_cpio_mount): Use "struct head", not a char buffer. This
32795 fixes a warning reported by gcc 4.4.
32796
238e871f 32797 * kernel/disk.c (grub_disk_read): Use void pointer for the
32798 buffer.
32799 (grub_disk_write): Use const void pointer for the buffer.
32800 Adjust all callers. Remove unnecessary casts.
32801
901d2f0c 328022009-05-10 Robert Millan <rmh.grub@aybabtu.com>
32803
32804 * util/i386/pc/grub-install.in: Update copyright year.
32805
18f547ad 328062009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 32807
32808 gptsync
32809
32810 * commands/gptsync.c: new file
32811 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
32812 (gptsync_mod_SOURCES): new variable
32813 (gptsync_mod_CFLAGS): likewise
32814 (gptsync_mod_LDFLAGS): likewise
18f547ad 32815 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 32816 new definition
32817 (GRUB_PC_PARTITION_TYPE_HFS): likewise
32818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
32819 * conf/i386-ieee1275.rmk: likewise
32820 * conf/i386-pc.rmk: likewise
32821 * conf/powerpc-ieee1275.rmk: likewise
32822
b4ba690a 328232009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
32824
32825 Fixed grub-emu
32826
32827 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
32828 (grub_dl_ref): likewise
32829
317e1a44 328302009-05-08 Robert Millan <rmh.grub@aybabtu.com>
32831
32832 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
32833 split in two functions (one for msdos and one for gpt).
32834
041b8094 328352009-05-08 Pavel Roskin <proski@gnu.org>
32836
752473c2 32837 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
32838 not modified.
32839
041b8094 32840 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
32841 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
32842 Initialize them with -1. Add sanity check for bad1. Eliminate
32843 nerr variable.
32844
172800ce 328452009-05-08 David S. Miller <davem@davemloft.net>
32846
32847 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
32848
29aa5e81 328492009-05-06 Robert Millan <rmh.grub@aybabtu.com>
32850
32851 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 32852 existence.
29aa5e81 32853
96613b62 328542009-05-05 Felix Zielcke <fzielcke@z-51.de>
32855
32856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 32857 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 32858
eef73c8a 328592009-05-05 David S. Miller <davem@davemloft.net>
32860
32861 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
32862
119494b5 328632009-05-05 Pavel Roskin <proski@gnu.org>
32864
32865 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
32866 of grub_dl_ref() and grub_dl_unref().
32867 * commands/parttool.c: Remove preprocessor conditionals around
32868 grub_dl_ref() and grub_dl_unref().
32869 * fs/affs.c: Likewise.
32870 * fs/afs.c: Likewise.
32871 * fs/cpio.c: Likewise.
32872 * fs/ext2.c: Likewise.
32873 * fs/fat.c: Likewise.
32874 * fs/hfs.c: Likewise.
32875 * fs/hfsplus.c: Likewise.
32876 * fs/iso9660.c: Likewise.
32877 * fs/jfs.c: Likewise.
32878 * fs/minix.c: Likewise.
32879 * fs/ntfs.c: Likewise.
32880 * fs/reiserfs.c: Likewise.
32881 * fs/sfs.c: Likewise.
32882 * fs/udf.c: Likewise.
32883 * fs/ufs.c: Likewise.
32884 * fs/xfs.c: Likewise.
32885 * include/grub/dl.h: Likewise.
32886 * loader/xnu.c: Likewise.
32887
de5fd76e 328882009-05-04 Pavel Roskin <proski@gnu.org>
32889
32890 * commands/acpi.c: Remove unused variable my_mod.
32891 * partmap/amiga.c: Likewise.
32892 * partmap/apple.c: Likewise.
32893 * partmap/gpt.c: Likewise.
32894 * partmap/pc.c: Likewise.
32895 * partmap/sun.c: Likewise.
32896 * term/gfxterm.c: Likewise.
32897 * term/i386/pc/vesafb.c: Likewise.
32898 * term/i386/pc/vga.c: Likewise.
32899
983598ad 329002009-05-04 David S. Miller <davem@davemloft.net>
32901
32902 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
32903 pointer args to grub_ieee1275_get_property().
32904
8aadec43 32905 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
32906
9554b15e 32907 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
32908 devices, and do not traverse down under controller nodes.
32909
67e23c90 32910 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
32911 (grub_ofdisk_open): Use it to un-escape "," characters.
32912 * kern/disk.c (find_part_sep): New.
32913 (grub_disk_open): Use it to find the first non-escaped ','
32914 character in the disk name.
32915 * util/ieee1275/devicemap.c (escape_of_path): New.
32916 (grub_util_emit_devicemap_entry): Use it.
32917 * util/sparc64/ieee1275/grub-install.in: Update script to
32918 strip partition specifiers properly by not triggering on
32919 '\' escaped ',' characters.
32920
74bfdd2f 329212009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32922
32923 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
32924 to 0x300.
32925 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
32926 resolutions.
32927 (linux_vesafb_modes): Add a lot of additional modes to the list (based
32928 on documentation from Wikipedia).
32929
4241d2b1 329302009-05-04 Pavel Roskin <proski@gnu.org>
32931
32932 * disk/ata.c: Spelling fixes.
32933 * disk/raid.c: Likewise.
32934 * disk/usbms.c: Likewise.
32935 * disk/dmraid_nvidia.c: Likewise.
32936 * kern/ieee1275/openfw.c: Likewise.
32937 * kern/ieee1275/init.c: Likewise.
32938 * kern/ieee1275/cmain.c: Likewise.
32939 * boot/i386/pc/cdboot.S: Likewise.
32940 * video/readers/png.c: Likewise.
32941 * video/i386/pc/vbe.c: Likewise.
32942 * fs/udf.c: Likewise.
32943 * fs/hfs.c: Likewise.
32944 * fs/reiserfs.c: Likewise.
32945 * efiemu/runtime/efiemu.c: Likewise.
32946 * efiemu/main.c: Likewise.
32947 * efiemu/mm.c: Likewise.
32948 * include/grub/elf.h: Likewise.
32949 * include/grub/xnu.h: Likewise.
32950 * include/grub/usbdesc.h: Likewise.
32951 * include/grub/usb.h: Likewise.
32952 * include/grub/script_sh.h: Likewise.
32953 * include/grub/lib/LzmaEnc.h: Likewise.
32954 * include/grub/efiemu/efiemu.h: Likewise.
32955 * include/grub/command.h: Likewise.
32956 * normal/menu.c: Likewise.
32957 * normal/main.c: Likewise.
32958 * normal/datetime.c: Likewise.
32959 * bus/usb/uhci.c: Likewise.
32960 * mmap/i386/uppermem.c: Likewise.
32961 * mmap/mmap.c: Likewise.
32962 * commands/acpi.c: Likewise.
32963 * commands/test.c: Likewise.
32964 * partmap/apple.c: Likewise.
32965 * font/font.c: Likewise.
32966 * loader/sparc64/ieee1275/linux.c: Likewise.
32967 * loader/macho.c: Likewise.
32968 * loader/i386/bsd_trampoline.S: Likewise.
32969 * loader/i386/bsd.c: Likewise.
32970 * loader/xnu.c: Likewise.
32971 * term/i386/pc/vesafb.c: Likewise.
32972 * term/usb_keyboard.c: Likewise.
32973 * util/resolve.c: Likewise.
32974 * util/getroot.c: Likewise.
32975
0cfc0083 329762009-05-04 Felix Zielcke <fzielcke@z-51.de>
32977
32978 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32979
7c1d00cd 329802009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32981
32982 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32983 build error.
32984
b01f0548 329852009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32986
32987 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32988 parameter only available on BIOS.
32989
ecc3eb22 329902009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32991
32992 Removed wrong semicolon in declaration
32993
32994 * grub/misc.h (grub_dprintf): remove semicolon
32995
112972a9 329962009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32997
32998 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32999 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
33000 is done by grub_cmd_linux() now).
33001 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
33002 restore video to text mode.
33003 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
33004 indicates lack of "vga=" parameter. "vga=0" is mapped to
33005 `GRUB_LINUX_VID_MODE_NORMAL'.
33006
afd5c115 330072009-05-04 Felix Zielcke <fzielcke@z-51.de>
33008
33009 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
33010 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
33011 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 33012 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 33013 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
33014 `grub_script.tab.c'.
33015
33016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33017 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33019 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33020 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33021
faa517ce 33022 * Makefile.in: Remove duplicated 2008 in Copyright line.
33023
ae0c0bdc 330242009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33025
473d1e45 33026 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 33027 unconditionally.
33028 * include/grub/util/misc.h (grub_util_warn): New declaration.
33029
33030 * util/i386/pc/grub-install.in: Understand --force and pass it down
33031 to grub-setup.
33032
33033 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
33034 down to setup().
33035 (setup): Improve error messages and add warnings when requested to
33036 install in odd layouts. Refuse to install using blocklists unless
33037 --force was set.
33038
18f547ad 330392009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 33040
33041 * disk/raid.c (grub_raid_scan_device): Improve debug message.
33042
6d260daa 330432009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33044
33045 Updated copyright year
33046
33047 * fs/hfsplus.c: updated copyright year
18f547ad 33048
69f853f8 330492009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33050
33051 HFS+ UUID
33052
18f547ad 33053 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 33054 in the space previously used by unused3
33055 (grub_hfsplus_uuid): new function
33056 (grub_hfsplus_fs): added uuid field
33057
4c402e73 330582009-05-03 Pavel Roskin <proski@gnu.org>
33059
33060 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
33061 suppress warnings. It's no longer needed.
33062 * disk/host.c: Likewise.
33063 * disk/ata_pthru.c: Likewise.
33064 * disk/loopback.c: Likewise.
33065 * hook/datehook.c: Likewise.
33066 * parttool/pcpart.c: Likewise.
33067 * fs/i386/pc/pxe.c: Likewise.
33068 * fs/ntfscomp.c: Likewise.
33069 * efiemu/main.c: Likewise.
33070 * mmap/mmap.c: Likewise.
33071 * commands/crc.c: Likewise.
33072 * commands/hexdump.c: Likewise.
33073 * commands/hdparm.c: Likewise.
33074 * commands/acpi.c: Likewise.
33075 * commands/echo.c: Likewise.
33076 * commands/minicmd.c: Likewise.
33077 * commands/blocklist.c: Likewise.
33078 * commands/memrw.c: Likewise.
33079 * commands/loadenv.c: Likewise.
33080 * commands/usbtest.c: Likewise.
33081 * commands/lsmmap.c: Likewise.
33082 * commands/boot.c: Likewise.
33083 * commands/parttool.c: Likewise.
33084 * commands/configfile.c: Likewise.
33085 * commands/search.c: Likewise.
33086 * commands/ieee1275/suspend.c: Likewise.
33087 * commands/cat.c: Likewise.
33088 * commands/i386/pc/pxecmd.c: Likewise.
33089 * commands/i386/pc/play.c: Likewise.
33090 * commands/i386/pc/halt.c: Likewise.
33091 * commands/i386/pc/vbeinfo.c: Likewise.
33092 * commands/i386/pc/vbetest.c: Likewise.
33093 * commands/lspci.c: Likewise.
33094 * commands/date.c: Likewise.
33095 * commands/handler.c: Likewise.
33096 * commands/ls.c: Likewise.
33097 * commands/test.c: Likewise.
33098 * commands/cmp.c: Likewise.
33099 * commands/efi/loadbios.c: Likewise.
33100 * commands/efi/fixvideo.c: Likewise.
33101 * commands/halt.c: Likewise.
33102 * commands/help.c: Likewise.
33103 * commands/reboot.c: Likewise.
33104 * hello/hello.c: Likewise.
33105 * script/sh/main.c: Likewise.
33106 * loader/xnu.c: Likewise.
33107 * term/terminfo.c: Likewise.
33108 * term/i386/pc/serial.c: Likewise.
33109 * term/usb_keyboard.c: Likewise.
33110
515b5079 331112009-05-03 David S. Miller <davem@davemloft.net>
33112
33113 * normal/menu.c: Include grub/parser.h
33114
dfc31a22 331152009-05-03 Pavel Roskin <proski@gnu.org>
33116
2fee74f1 33117 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
33118 not char*.
33119 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
33120 Suggested by Javier Martín <lordhabbit@gmail.com>
33121
dfc31a22 33122 * util/i386/pc/grub-mkrescue.in: Allow for the case when
33123 efiemu??.o doesn't exist.
33124 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
33125 copying.
33126
18f547ad 331272009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 33128
33129 FreeBSD 64-bit support
33130
18f547ad 33131 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 33132 and loader/i386/bsd_trampoline.S
33133 (bsd_mod_ASFLAGS): new variable
33134 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
33135 (FREEBSD_MODTYPE_KERNEL64): likewise
33136 (grub_bsd64_trampoline_start): likewise
33137 (grub_bsd64_trampoline_end): likewise
33138 (grub_bsd64_trampoline_selfjump): likewise
33139 (grub_bsd64_trampoline_gdt): likewise
33140 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
33141 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
33142 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
33143 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 33144 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 33145 of "attrib" member
33146 * loader/i386/bsd_pagetable.c: new file
33147 * loader/i386/bsd_trampoline.S: likewise
33148 * loader/i386/bsd.c (ALIGN_QWORD): new macro
33149 (ALIGN_VAR): likewise
33150 (entry_hi): new variable
33151 (kern_end_mdofs): likewise
33152 (is_64bit): likewise
33153 (grub_freebsd_add_meta): use ALIGN_VAR
33154 (grub_e820_mmap): new declaration
33155 (grub_freebsd_add_mmap): new function
33156 (grub_freebsd_add_meta_module): support 64 bit kernels
33157 (grub_freebsd_list_modules): use ALIGN_VAR
33158 (gdt_descriptor): new declaration
33159 (grub_freebsd_boot): support 64 bit kernels
33160 (grub_bsd_elf64_hook): new function
33161 (grub_bsd_load_elf): support elf64
33162
038c5720 331632009-05-03 Bean <bean123ch@gmail.com>
33164
33165 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33166 after we get the result of if statement.
33167
fc45fb58 331682009-05-03 Bean <bean123ch@gmail.com>
33169
33170 * Makefile.in (enable_efiemu): New variable.
33171
33172 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33173 set.
33174 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33175 path.
33176 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33177 path, add -mno-red-zone option.
33178 (efiemu64_s.o): Likewise.
33179 (efiemu64.o): Use macro $^ for source file.
33180
33181 * configure.ac (--enable-efiemu): New option.
33182
bbee0f2b 331832009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33184
33185 xnu support
33186
33187 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33188 (pkglib_MODULES): add xnu.mod
33189 (xnu_mod_SOURCES): new variable
33190 (xnu_mod_CFLAGS): likewise
33191 (xnu_mod_LDFLAGS): likewise
33192 (xnu_mod_ASFLAGS): likewise
33193 * conf/i386-pc.rmk: likewise
33194 * conf/x86_64-efi.rmk: likewise
7dd4a573 33195 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 33196 new declaration
33197 * include/grub/i386/macho.h: new file
33198 * include/grub/i386/xnu.h: likewise
33199 * include/grub/macho.h: likewise
33200 * include/grub/machoload.h: likewise
33201 * include/grub/x86_64/macho.h: likewise
33202 * include/grub/x86_64/xnu.h: likewise
33203 * include/grub/xnu.h: likewise
33204 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33205 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33206 * loader/i386/efi/xnu.c: new file
33207 * loader/i386/pc/xnu.c: likewise
33208 * loader/i386/xnu.c: likewise
33209 * loader/i386/xnu_helper.S: likewise
33210 * loader/macho.c: likewise
33211 * loader/xnu.c: likewise
33212 * loader/xnu_resume.c: likewise
33213 * util/grub-dumpdevtree: likewise
33214 * include/grub/i386/pit.h: include grub/err.h
33215 (grub_pit_wait): export
33216 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 33217
5caf964d 332182009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33219
33220 Efiemu
7dd4a573 33221
5caf964d 33222 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 33223 _linux_efi, linux_efi.
33224 new files in grub-emu
5caf964d 33225 new targets efiemu32.o and efiemu64.o
33226 * loader/linux_normal_efiemu.c: likewise
33227 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 33228 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 33229 files to copy
33230 * include/grub/autoefi.h: new file
7dd4a573 33231 * include/grub/i386/efiemu.h: likewise
5caf964d 33232 * include/grub/i386/pc/efiemu.h: likewise
33233 * include/grub/efi/api.h: add LL suffix when necessary
33234 new definitions relating to tables
33235 * include/grub/efiemu/efiemu.h: new file
33236 * include/grub/efiemu/runtime.h: likewise
33237 * efiemu/prepare.c: likewise
33238 * efiemu/loadcore_common.c: likewise
33239 * efiemu/loadcore64.c: likewise
33240 * efiemu/runtime/efiemu.sh: likewise
33241 * efiemu/runtime/efiemu.S: likewise
33242 * efiemu/runtime/efiemu.c: likewise
33243 * efiemu/runtime/config.h: likewise
33244 * efiemu/prepare32.c: likewise
33245 * efiemu/main.c: likewise
33246 * efiemu/modules/pnvram.c: likewise
33247 * efiemu/modules/i386: likewise
33248 * efiemu/modules/i386/pc: likewise
33249 * efiemu/modules/acpi.c: likewise
33250 * efiemu/i386/pc/cfgtables.c: likewise
33251 * efiemu/i386/loadcore64.c: likewise
33252 * efiemu/i386/loadcore32.c: likewise
33253 * efiemu/prepare64.c: likewise
33254 * efiemu/loadcore.c: likewise
33255 * efiemu/symbols.c: likewise
33256 * efiemu/mm.c: likewise
33257 * efiemu/loadcore32.c: likewise
7dd4a573 33258
332592009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 33260
33261 ACPI spoofing
33262
33263 * commands/acpi.c: new file
33264 * commands/i386/pc/acpi.c: likewise
33265 * commands/efi/acpi.c: likewise
33266 * include/grub/acpi.h: likewise
33267 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33268 (acpi_mod_SOURCES): new variable
33269 (acpi_mod_CFLAGS): likewise
33270 (acpi_mod_LDFLAGS): likewise
33271 * conf/i386-efi.rmk: likewise
33272 * conf/x86_64-efi.rmk: likewise
33273
7dd4a573 332742009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 33275
33276 Missing part from mmap patch
33277
33278 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33279 (grub_mmap_unregister)
33280 (grub_mmap_free_and_unregister): use grub_mmap_register
33281
7dd4a573 332822009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 33283
33284 Mmap services
33285
33286 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33287 * loader/i386/linux.c (find_mmap_size): likewise
33288 (allocate_pages): likewise
33289 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33290 (grub_fill_multiboot_mmap): likewise
33291 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33292 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33293 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33294 (OPENBSD_MMAP_RESERVED): likewise
33295 * include/grub/i386/pc/memory.h: include grub/memory.h
33296 (grub_lower_mem): removed
33297 (grub_upper_mem): likewise
33298 (GRUB_MACHINE_MEMORY_ACPI): new definition
33299 (GRUB_MACHINE_MEMORY_NVS): likewise
33300 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33301 (GRUB_MACHINE_MEMORY_HOLE): likewise
33302 (grub_machine_mmap_register): likewise
33303 (grub_machine_mmap_unregister): likewise
33304 (grub_machine_get_upper): likewise
33305 (grub_machine_get_lower): likewise
33306 (grub_machine_get_post64): likewise
33307 * include/grub/i386/efi/memory.h: new file
33308 * include/grub/x86_64/efi/memory.h: likewise
33309 * include/grub/efi/memory.h: likewise
33310 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33311 (mmap_mod_SOURCES): new variable
33312 (mmap_mod_LDFLAGS): likewise
33313 (mmap_mod_ASFLAGS): likewise
33314 * conf/i386-coreboot.rmk: likewise
33315 * conf/i386-ieee1275.rmk: likewise
33316 * conf/i386-efi.rmk: likewise
33317 * conf/x86_64-efi.rmk: likewise
33318 * include/grub/types.h (UINT_TO_PTR): new macro
33319 (PTR_TO_UINT32): likewise
33320 (PTR_TO_UINT64): likewise
33321 * include/grub/memory.h: new file
33322 * mmap/i386/pc/mmap.c: likewise
33323 * mmap/i386/pc/mmap_helper.S: likewise
33324 * mmap/i386/uppermem.c: likewise
33325 * mmap/mmap.c: likewise
33326 * mmap/efi/mmap.c: likewise
7dd4a573 33327 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 33328 grub_upper_mem
33329 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33330 (grub_upper_mem): likewise
33331 (grub_machine_init): don't use grub_upper_mem,
33332 make grub_lower_mem local
33333 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33334 grub_mmap_iterate and grub_mmap_get_upper
33335 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33336
d558e6b5 333372009-05-02 Bean <bean123ch@gmail.com>
33338
33339 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33340 script/sh/parser.y.
33341 (pkglib_MODULES): Add normal.mod and sh.mod.
33342 (normal_SOURCES): New variable.
33343 (normal_mod_CFLAGS): Likewise.
33344 (normal_mod_LDFLAGS): Likewise.
33345 (sh_mod_SOURCES): Likewise.
33346 (sh_mod_CFLAGS): Likewise.
33347 (sh_mod_LDFLAGS): Likewise.
33348
33349 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33350 script/sh/lexer.c_DEPENDENCIES.
33351 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33352 kern/rescue_reader.c and kern/rescue_parser.c.
33353 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33354 (grub_emu_SOURCES): Change source files.
33355 (pkglib_MODULES): Remove normal.mod.
33356 (normal_SOURCES): Removed.
33357 (normal_mod_CFLAGS): Likewise.
33358 (normal_mod_LDFLAGS): Likewise.
33359 * conf/i386-coreboot.rmk: Likewise.
33360 * conf/i386-efi.rmk: Likewise.
33361 * conf/i386-ieee1276.rmk: Likewise.
33362 * conf/powerpc-ieee1275.rmk: Likewise.
33363 * conf/sparc64-ieee1275.rmk: Likewise.
33364 * conf/x86_64-efi.rmk: Likewise.
33365
33366 * include/grub/command.h (grub_command_execute): New inline function.
33367
33368 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33369
33370 * include/grub/normal.h: Remove <grub/setjmp.h>.
33371 (grub_fs_module_list): Moved to normal/autofs.c.
33372 (grub_exit_env): Removed.
33373 (grub_command_execute): Likewise.
33374 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33375 parameter script.
33376 (read_command_list): New function declaration.
33377 (read_fs_list): Likewise.
33378
33379 * include/parser.h: Include <grub/reader.h>.
33380 (grub_parser_split_cmdline): Change type of getline parameter.
33381 (grub_parser): New structure.
33382 (grub_parser_class): New variable.
33383 (grub_parser_execute): New function declaration.
33384 (grub_register_rescue_parser): Likewise.
33385 (grub_parser_register): New inline function.
33386 (grub_parser_unregister): Likewise.
33387 (grub_parser_get_current): Likewise.
33388 (grub_parser_set_current): Likewise.
33389
33390 * include/grub/reader.h: New file.
33391 * kern/reader.c: Likewise.
33392 * kern/rescue_parser.c: Likewise.
33393 * kern/rescue_reader.c: Likewise.
33394 * normal/autofs.c: Likewise.
33395 * normal/dyncmd.c: Likewise.
33396
33397 * include/grub/rescue.h: Removed.
33398 * normal/command.h: Likewise.
33399
33400 * include/grub/script.h: Moved to ...
33401 * include/grub/script_sh.h: ... Moved here.
33402 * normal/execute.c: Moved to ...
33403 * script/sh/execute.c: ... Moved here.
33404 * normal/function.c: Moved to ...
33405 * script/sh/function.c: ... Moved here.
33406 * normal/lexer.c: Moved to ...
33407 * script/sh/lexer.c: ... Moved here.
33408 * normal/parser.y: Moved to ...
33409 * script/sh/parser.y: ... Moved here.
33410 * normal/script.c: Moved to ...
33411 * script/sh/script.c: ... Moved here.
33412
33413 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33414 <grub/reader.h>.
33415 (grub_exit_env): Removed.
33416 (fs_module_list): Moved to normal/autofs.c.
33417 (grub_file_getline): Don't handle comment here.
33418 (free_menu): Skip removed field entry->commands.
33419 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33420 script parameter.
33421 (read_config_file): Removed nested parameter, change getline function.
33422 (grub_enter_normal_mode): Removed.
33423 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33424 (read_command_list): Likewise.
33425 (autoload_fs_module): Moved to normal/autofs.c.
33426 (read_fs_list): Likewise.
33427 (reader_nested): New variable.
33428 (grub_normal_execute): Run parser.sh to switch to sh parser.
33429 (grub_cmd_rescue): Removed.
33430 (cmd_normal): Removed.
33431 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33432 rescue command.
33433 (grub_cmdline_run): New function.
33434 (grub_normal_reader_init): Likewise.
33435 (grub_normal_read_line): Likewise.
33436 (grub_env_write_pager): Likewise.
33437 (cmdline): New variable.
33438 (grub_normal_reader): Likewise.
33439 (GRUB_MOD_INIT): Register normal reader and set as current, register
33440 pager hook, register normal command with grub_register_command_prio,
33441 so that it won't show up in command.lst.
33442 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
33443 grub_fs_autoload_hook.
33444
33445 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
33446 (grub_menu_execute_entry): Replace grub_script_execute with
33447 grub_parser_execute, change parameter to grub_command_execute.
33448
33449 * normal/menu_text.c: Remove <grub/script.h>.
33450
33451 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
33452 and <grub/parser.h>.
33453 (run): Change editor_getline to use new parser interface. Change
33454 parameter to grub_command_execute.
33455
33456 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
33457 <grub/reader.h> and <grub/parser.h>.
33458 (grub_load_normal_mode): Execute normal command.
33459 (grub_main): Call grub_register_core_commands,
33460 grub_register_rescue_parser and grub_register_rescue_reader, use
33461 grub_reader_loop to enter input loop.
33462
7dd4a573 33463 * kern/parser.c (grub_parser_split_cmdline): Change type of
33464 getline parameter.
d558e6b5 33465 (grub_parser_class): New variable.
33466 (grub_parser_execute): New function.
33467
33468 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
33469 * loader/multiboot2.c: Likewise.
33470 * loader/sparc64/ieee1275/linux.c: Likewise.
33471
33472 * util/grub-emu.c (read_command_list): New dummy function.
33473
18db813d 334742009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33475
33476 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
33477 count to 16 for CCISS and IDA.
33478
6c67de15 334792009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33480
33481 * normal/menu_text.c (grub_wait_after_message): Print a newline
33482 after waiting for user input.
33483
33484 * loader/i386/linux.c: Include `<grub/normal.h>'.
33485 (grub_cmd_linux): Improve the error message about `ask' mode, by
33486 waiting for user input so it's not missed (we can do this, since
33487 user requested interaction).
33488
d9dc87b0 334892009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33490
33491 Added missing lst to grub-mkrescue
33492
33493 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
33494 and ${input_dir}/parttool.lst
33495
ac8a2baa 334962009-04-30 David S. Miller <davem@davemloft.net>
33497
ad22a610 33498 * util/hostdisk.c (device_is_wholedisk): New function.
33499 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
33500 zero only if device_is_wholedisk() returns true.
33501
6966215d 33502 * util/hostdisk.c (convert_system_partition_to_system_disk):
33503 Handle virtual disk devices named /dev/vdiskX as found on sparc
33504 and powerpc.
33505
ac8a2baa 33506 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
33507 lettered partition specifier is found, convert to numbered.
33508
979b4fb4 335092009-04-29 David S. Miller <davem@davemloft.net>
33510
e2bf39b2 33511 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
33512 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33513
3c64e104 33514 * normal/command.c: Add missing newline at end of file.
33515
979b4fb4 33516 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
33517 warnings.
33518 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
33519 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
33520 grub_ofdisk_read): Likewise, and deal similarly with the fact that
33521 ihandles have a 32-bit type but need to be stored in a "void *".
33522
136d9f82 335232009-04-28 Pavel Roskin <proski@gnu.org>
33524
9459c306 33525 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
33526 not disk. Adjust all dependencies.
2e08a26a 33527 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 33528 grub_disk_close().
33529
136d9f82 33530 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
33531 parent's partition, don't copy it by reference, as it gets freed
33532 on close.
33533
7dd4a573 335342009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 33535
33536 Preboot hooks support
33537
33538 * commands/boot.c (struct grub_preboot_t): new declaration
33539 (preboots_head): new variable
33540 (preboots_tail): likewise
33541 (grub_loader_register_preboot_hook): new function
33542 (grub_loader_unregister_preboot_hook): likewise
33543 (grub_loader_set): launch preboot hooks
33544 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
33545 (grub_loader_register_preboot_hook): new declaration
33546 (grub_loader_unregister_preboot_hook): likewise
33547
5af922b5 335482009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33549
33550 Warning fix
33551
7dd4a573 33552 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 33553 calling grub_dprintf
33554
a5562c30 335552009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
33556
33557 Bug and warning fixes
33558
7dd4a573 33559 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 33560 declaration
33561 * commands/test.c (test_parse): fixed bug with file tests and corrected
33562 declaration of find_file
33563
4006f85c 335642009-04-26 Pavel Roskin <proski@gnu.org>
33565
33566 * Makefile.in: Don't install empty manual pages if help2man is
33567 missing. Use help2man option for output, not shell redirection.
33568
5c77c3de 335692009-04-26 David S. Miller <davem@davemloft.net>
33570
33571 * util/grub-mkdevicemap.c (make_device_map): Add missing
33572 NESTED_FUNC_ATTR to process_device().
33573
033b10a8 335742009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33575
33576 Test command
33577
33578 * commands/test.c: rewritten to use bash-like test
33579
e4343593 335802009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33581
33582 Parttool autoloading and improvements
33583
7dd4a573 33584 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 33585 (parttool.lst): new target
33586 * genmk.rb: generate parttool-*
33587 (CLEANFILES): add #{parttool}
33588 (PARTTOOLFILES): new variable
33589 * genparttoollist.sh: new file
7dd4a573 33590 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 33591 (grub_pcpart_type): likewise
33592 * commands/parttool.c (helpmsg): new variable
33593 (grub_cmd_parttool): output help if not enough arguments are supplied
33594 autoload modules
33595 (GRUB_MOD_INIT(parttool)): use helpmsg
33596
0d312500 335972009-04-24 David S. Miller <davem@davemloft.net>
33598
7dd4a573 33599 Avoiding opening same device multiple times in device iterator.
0d312500 33600
33601 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 33602 and use it to build a list of partitions in iterate_disk() and
0d312500 33603 iterate_partition().
33604
ac20caff 33605 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
33606 on disk->data.
33607
0dcf7495 33608 * disk/ieee1275/nand.c (grub_nand_iterate): Return
33609 grub_devalias_iterate() result instead of unconditional 0.
33610 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
33611 Also, capture hook return value, either directly or via
33612 grub_children_iterate(), and propagate to caller.
33613 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
33614 grub_children_iterate): Return value is now 'int' instead of
33615 'grub_err_t'.
33616 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
33617 like a proper iterator, stopping when hooks return non-zero.
33618 (grub_devalias_iterate): Likewise.
33619
c8c08833 336202009-04-23 David S. Miller <davem@davemloft.net>
33621
33622 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
33623
f01005a8 336242009-04-22 David S. Miller <davem@davemloft.net>
33625
33626 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
33627 is larger than address_cells, use that value for address_cells too.
33628
4e8269da 33629 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
33630 IEEE1275_MAX_PATH_LEN): Define.
33631 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
33632 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
33633 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
33634 'devtype'. Explicitly NULL terminate devalias expansion.
33635
a1447506 33636 * util/sparc64/ieee1275/misc.c: New file.
33637 * util/sparc64/ieee1275/grub-setup.c: New file.
33638 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
33639 * util/sparc64/ieee1275/grub-mkimage.c: New file.
33640 * util/sparc64/ieee1275/grub-install.in: New file.
33641 * util/ieee1275/ofpath.c: New file.
33642 * util/ieee1275/devicemap.c: New file.
33643 * util/devicemap.c: New file.
33644 * util/deviceiter.c: New file.
33645 * kern/sparc64/ieee1275/init.c: New file.
33646 * include/grub/util/ofpath.h: New file.
33647 * include/grub/util/deviceiter.h: New file.
33648 * util/grub-mkdevicemap.c: Include deviceiter.h.
33649 Implement using grub_util_emit_devicemap_entry and
33650 grub_util_iterate_devices.
33651 * conf/i386-corebook.rmk: Build util/deviceiter.c and
33652 util/devicemap.c into grub-mkdevicemap
33653 * conf/i386-efi.rmk: Likewise.
33654 * conf/i386-ieee1275.rmk: Likewise.
33655 * conf/i386-pc.rmk: Likewise.
33656 * conf/powerpc-ieee1275.rmk: Likewise.
33657 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
33658 images and installation utilities. Build kernel as image
33659 instead of as elf binary. Use common rules as much as possible.
33660
7dd4a573 336612009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 33662
33663 Correct GPT definition
33664
7dd4a573 33665 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 33666 of "attrib" member
33667
c6c5219f 336682009-04-19 Felix Zielcke <fzielcke@z-51.de>
33669
33670 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
33671
0552ff9f 336722009-04-19 David S. Miller <davem@davemloft.net>
33673
33674 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
33675 (grub_rescue_cmd_linux): Rename to...
33676 (grub_cmd_linux): and fix prototype.
33677 (grub_rescue_cmd_initrd): Rename to...
33678 (grub_cmd_initrd): and fix prototype.
33679 (cmd_linux, cmd_initrd): New.
33680 (GRUB_MOD_INIT(linux)): Use grub_register_command().
33681 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
33682
d1a282fc 336832009-04-17 Pavel Roskin <proski@gnu.org>
33684
07c5039f 33685 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
33686 format.
33687 (grub_ohci_transfer): Likewise.
33688
b012002d 33689 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
33690
1bc09c35 33691 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
33692 return without a value. Fix inconsistent indentation.
33693
e0ff9126 33694 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
33695 match struct grub_fs.
33696
d1a282fc 33697 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
33698 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
33699 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33700 * commands/lspci.c (grub_lspci_iter): Likewise.
33701
a96df3f2 337022009-04-16 Bean <bean123ch@gmail.com>
33703
33704 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
33705 value.
33706
41bb0fe9 337072009-04-15 Pavel Roskin <proski@gnu.org>
33708
33709 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
33710 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
33711 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
33712 definitions.
33713
596c6970 337142009-04-15 Felix Zielcke <fzielcke@z-51.de>
33715
33716 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 33717 that no multiple data or metadata areas are supported and `Unknown
596c6970 33718 metadata header'.
33719
7dd4a573 337202009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 33721
33722 Move loader out of the kernel
33723
33724 * kern/loader.c: moved to ...
33725 * commands/boot.c: ... moved here
33726 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
33727 * commands/boot.c (grub_cmd_boot): moved here. All users updated
33728 * include/grub/kernel.h (grub_machine_fini): export
33729 * include/grub/loader.h (grub_loader_is_loaded): update declaration
33730 (grub_loader_set): likewise
33731 (grub_loader_unset): likewise
33732 (grub_loader_boot): likewise
33733 * conf/common.rmk: new module boot.mod
33734 (pkglib_MODULES): add boot.mod
33735 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
33736 (grub_emu_SOURCES): likewise
33737 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
33738 (grub_emu_SOURCES): likewise
33739 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
33740 (grub_emu_SOURCES): likewise
33741 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
33742 (grub_emu_SOURCES): likewise
33743 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
33744 (grub_emu_SOURCES): likewise
7dd4a573 33745 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
33746 (grub_emu_SOURCES): likewise
0d5d5653 33747 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 33748 (grub_emu_SOURCES): likewise
0d5d5653 33749
7dd4a573 337502009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 33751
33752 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 33753
5999d619 33754 * kern/misc.c (grub_itoa): Removed function
33755 (grub_ltoa): likewise
33756 (grub_vsprintf): use grub_lltoa
33757
7dd4a573 337582009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 33759
33760 Restore grub-emu
33761
33762 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
33763 * conf/i386-coreboot.rmk: likewise
33764 * conf/i386-ieee1275.rmk: likewise
33765 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33766
20318222 337672009-04-15 Felix Zielcke <fzielcke@z-51.de>
33768
33769 * INSTALL: Add that `./autogen.sh' needs to be run before
33770 `./configure.'.
33771
d05f0df3 337722009-04-14 Bean <bean123ch@gmail.com>
33773
33774 * Makefile.in (pkglib_DATA): Add handler.lst.
33775 (handler.lst): New rule.
33776
33777 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
33778 * conf/i386-coreboot.rmk: Likewise.
33779 * conf/i386-ieee1275.rmk: Likewise.
33780 * conf/i386-efi.rmk: Likewise.
33781 * conf/x86_64-efi.rmk: Likewise.
33782 * conf/powerpc-ieee1275.rmk: Likewise.
33783 * conf/sparc64-ieee1275.rmk: Likewise.
33784
33785 * genhandlerlist.sh: New file.
33786
33787 * genmk.rb: Add rules to generate handler.lst.
33788
33789 * include/grub/normal.h (grub_file_getline): New function definition.
33790 (read_handler_list): Likewise.
33791 (free_handler_list): Likewise.
33792
33793 * include/grub/term.h (grub_term_register_input): Add name parameter
33794 for auto generation of handler.lst.
33795 (grub_term_register_output): Likewise.
33796
33797 * normal/handler.c: New file.
33798
33799 * normal/main.c (get_line): Renamed to grub_file_getline.
33800 (read_config_file): Use the newly renamed grub_file_getline.
33801 (read_command_list): Likewise.
33802 (read_fs_list): Likewise.
33803 (grub_normal_execute): Call read_handler_list to parse handler.lst.
33804 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
33805
33806 * term/efi/console.c (grub_console_init): Add name parameter for auto
33807 generation of handler.lst.
33808 * term/gfxterm.c: Likewise.
33809 * term/i386/pc/at_keyboard.c: Likewise.
33810 * term/i386/pc/console.c: Likewise.
33811 * term/i386/pc/serial.c: Likewise.
33812 * term/i386/pc/vesafb.c: Likewise.
33813 * term/i386/pc/vga.c: Likewise.
33814 * term/i386/pc/vga_text.c: Likewise.
33815 * term/ieee1275/ofconsole.c: Likewise.
33816 * term/usb_keyboard.c: Likewise.
33817
33c846be 338182009-04-14 Bean <bean123ch@gmail.com>
33819
33820 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
33821 properly with null character.
33822
4484e01e 338232009-04-14 Felix Zielcke <fzielcke@z-51.de>
33824
33825 * configure: Remove.
33826 * config.h.in: Likewise.
f93d668e 33827 * stamp-h.in: Likewise.
4484e01e 33828 * DISTLIST: Likewise.
33829 * conf/common.mk: Likewise.
33830 * conf/i386-coreboot.mk: Likewise.
33831 * conf/i386-efi.mk: Likewise.
33832 * conf/i386-ieee1275.mk: Likewise.
33833 * conf/i386.mk: Likewise.
33834 * conf/i386-pc.mk: Likewise.
33835 * conf/powerpc-ieee1275.mk: Likewise.
33836 * conf/sparc64-ieee1275.mk: Likewise.
33837 * conf/x86_64-efi.mk: Likewise.
33838
33839 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
33840 develop on GRUB.
33841
7dd4a573 338422009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 33843 David S. Miller <davem@davemloft.net>
33844
33845 * util/hostdisk.c (make_device_name): Fix buffer length
33846 calculations.
33847
e25b5a8c 338482009-04-14 Felix Zielcke <fzielcke@z-51.de>
33849
33850 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
33851 <sys/param.h> and <sys/sysctl.h>.
33852 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
33853 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
33854 opening the device and reset them afterwards.
33855
1f1f580c 338562009-04-13 Pavel Roskin <proski@gnu.org>
33857
33858 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
33859 Reported by John Stanley <jpsinthemix@verizon.net>
33860
7ebc2d6b 338612009-04-13 Robert Millan <rmh@aybabtu.com>
33862
33863 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 33864 that name for menuentries when appropriate.
7ebc2d6b 33865
d8ba3667 338662009-04-13 Felix Zielcke <fzielcke@z-51.de>
33867
33868 * util/grub.d/10_freebsd.in: Add a missing `fi'.
33869
cba416eb 338702009-04-13 Robert Millan <rmh@aybabtu.com>
33871
33872 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
33873 to Linux, simply abort telling the user it's no longer supported.
33874
a547a745 338752009-04-13 Felix Zielcke <fzielcke@z-51.de>
33876
33877 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 33878 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 33879 `freebsd_loadenv' only when devices.hints exist.
33880
232a769c 338812009-04-13 Pavel Roskin <proski@gnu.org>
33882
33883 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
33884
c3012039 338852009-04-13 Felix Zielcke <fzielcke@z-51.de>
33886
33887 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
33888 partition number.
33889 (grub_drive): Likewise.
33890
234022fe 338912009-04-13 David S. Miller <davem@davemloft.net>
33892
33893 * kern/sparc64/ieee1275/ieee1275.c: New file.
33894 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
33895 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
33896 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
33897 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
33898 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
33899 grub_ieee1275_alloc_physmem): Declare new exported functions.
33900
d8e1836c 33901 * include/grub/sparc64/ieee1275/loader.h: New file.
33902 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33903 * include/grub/sparc64/kernel.h: Likewise.
33904 * loader/sparc64/ieee1275/linux.c: Likewise.
33905
96bd81ec 33906 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
33907 (grub_fstest_SOURCES): Likewise.
33908
6a4737e5 33909 * util/hostdisk.c (make_device_name): Do not make any assumptions
33910 about the length of drive names.
33911
1d7a72fd 33912 * kern/dl.c (grub_dl_load_file): Close file immediately when
33913 we are done using it.
33914
56bc2471 339152009-04-12 David S. Miller <davem@davemloft.net>
33916
33917 * kern/misc.c (grub_ltoa): Fix cast when handling negative
33918 values. Noticed by Pavel Roskin.
33919
df38d0bb 33920 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
33921 target compiler.
7dd4a573 33922
e382e93a 33923 * genmk.rb: Add more flexible image type specification, also
33924 pass --strip-unneeded to objcopy.
33925 * conf/i386-pc.rmk: Use *_FORMAT.
33926 * conf/i386-pc.mk: Rebuilt.
33927
f5dbbca9 33928 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
33929 (OFDISK_HASH_SZ): Define.
33930 (ofdisk_hash): New hash table.
33931 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
33932 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
33933 instead of device phandle which is not unique.
33934
91c88b12 33935 * kern/sparc64/ieee1275/init.c: Delete, replace with...
33936 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
33937 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
33938 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
33939 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
33940 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
33941 GRUB_KERNEL_MACHINE_DATA_END): Define.
33942 (grub_kernel_image_size, grub_total_module_size): Declare.
33943
5b5d4aa5 339442009-04-12 Pavel Roskin <proski@gnu.org>
33945
7dd4a573 33946 * configure.ac: Change the logic when we check for target tools.
33947 Do it when the target is specified and it's different from the
33948 specified value of the host.
5b5d4aa5 33949
c91e1793 339502009-04-11 Felix Zielcke <fzielcke@z-51.de>
33951
33952 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
33953 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
33954 GNU/kFreeBSD. Check if a device is a character device. Use
33955 DIOCGMEDIASIZE to get the size.
33956 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
33957 support for GNU/kFreeBSD.
33958 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
33959 is a character device instead of a block device. Add support for
33960 FreeBSD device names.
33961
33962 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33963 is a character device instead of a block device.
33964
33965 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33966 is a character device instead of a block device.
33967
b1ac8644 339682009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33969
33970 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33971 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33972 FreeBSD. Check if a device is a character device. Use
33973 DIOCGMEDIASIZE to get the size.
33974 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33975 support for FreeBSD.
33976 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33977 is a character device instead of a block device. Add support for
33978 FreeBSD device names.
33979
33980 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33981 a character device instead of a block device.
33982 (grub_util_check_char_device): New function.
33983
33984 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33985 a character device instead of a block device.
33986
33987 * include/grub/util/getroot.h (grub_util_check_char_device): New
33988 prototype.
33989
a3f7515a 339902009-04-11 David S. Miller <davem@davemloft.net>
33991
33992 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33993 static libgcc.
33994 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33995 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33996 function, if present.
33997 (__bswapdi2): Likewise.
33998
0d44993d 33999 * include/grub/sparc64/ieee1275/boot.h: New file.
34000 * boot/sparc64/ieee1275/boot.S: Likewise.
34001 * boot/sparc64/ieee1275/diskboot.S: Likewise.
34002
ed3d2bc2 34003 * kern/misc.c (grub_ltoa): New function.
34004 (grub_vsprintf): Use it to format 'long' integers.
34005
d3bfb59c 340062009-04-10 David S. Miller <davem@davemloft.net>
34007
34008 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
34009 slots are of type grub_ieee1275_cell_t.
34010 (grub_nand_read): Likewise.
34011 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
34012 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
34013 macros are used to compare values in arg/ret block of the call.
34014 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34015 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
34016 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
34017 grub_ieee1275_instance_to_path, grub_ieee1275_write,
34018 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
34019 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
34020 grub_ieee1275_close, grub_ieee1275_set_property,
34021 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
34022 grub_ieee1275_cell_t.
34023 * kern/ieee1275/openfw.c (grub_map): Likewise.
34024 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
34025 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
34026
450e2238 34027 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
34028 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
34029 (grub_devalias_iterate): Likewise.
34030
7dd4a573 340312009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 34032
34033 UFS improvements
34034
34035 * fs/ufs.c (INODE_NBLOCKS): new definition
34036 (struct grub_ufs_dirent): added fields for non-BSD dirents
34037 (grub_ufs_get_file_block): fixed double indirect handling
34038 (grub_ufs_lookup_symlink): use more robust way to determine whether
34039 symlink is inline
34040 (grub_ufs_find_file): support for non-BSD dirents
34041 (grub_ufs_dir): support for non-BSD dirents
34042
e7e6862a 340432009-04-10 Bean <bean123ch@gnail.com>
34044
34045 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
34046 attribute, otherwise the size would be wrong for i386 platform.
34047
34048 * include/grub/pci.h (grub_pci_read_word): New inline function.
34049 (grub_pci_read_byte): Likewise.
34050 (grub_pci_write): Likewise.
34051 (grub_pci_write_word): Likewise.
34052 (grub_pci_write_byte): Likewise.
34053
34054 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
34055
34056 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
34057 (find_framebuf): Scan pci to locate the frame buffer address.
34058
34059 * commands/efi/fixvideo.c: New file.
34060
34061 * commands/efi/loadbios.c: Likewise.
34062
34063 * commands/memrw.c: Likewise.
34064
34065 * util/grub-dumpbios.in: Likewise.
34066
34067 * conf/common.rmk (grub-dumpbios): New utility.
34068 (pkglib_MODULES): New module memrw.mod.
34069 (memrw_mod_SOURCE): New macro.
34070 (memrw_mod_CFLAGS): Likewise.
34071 (memrw_mod_LDFLAGS): Likewise.
34072
7dd4a573 34073 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 34074 fixvideo.mod.
34075 (loadbios_mod_SOURCE): New macro.
34076 (loadbios_mod_CFLAGS): Likewise.
34077 (loadbios_mod_LDFLAGS): Likewise.
34078 (fixvideo_mod_SOURCE): Likewise.
34079 (fixvideo_mod_CFLAGS): Likewise.
34080 (fixvideo_mod_LDFLAGS): Likewise.
34081
7dd4a573 34082 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 34083 fixvideo.mod.
34084 (loadbios_mod_SOURCE): New macro.
34085 (loadbios_mod_CFLAGS): Likewise.
34086 (loadbios_mod_LDFLAGS): Likewise.
34087 (fixvideo_mod_SOURCE): Likewise.
34088 (fixvideo_mod_CFLAGS): Likewise.
34089 (fixvideo_mod_LDFLAGS): Likewise.
34090
af63ada2 340912009-04-08 Felix Zielcke <fzielcke@z-51.de>
34092
34093 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
34094
c2cdde70 340952009-04-07 David S. Miller <davem@davemloft.net>
34096
34097 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
34098 support for R_SPARC_OLO10 relocations. Fix compile warning for
34099 R_SPARC_WDISP30 case.
ea3f72cf 34100 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 34101
761319cf 341022009-04-06 Pavel Roskin <proski@gnu.org>
34103
1007d1f5 34104 * include/grub/misc.h (ARRAY_SIZE): New macro.
34105 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
34106 New macro.
34107 * loader/i386/linux.c (allocate_pages): Use free_pages().
34108 (grub_linux_unload): Don't use free_pages().
34109 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
34110 wrong index. Treat all other modes as text modes.
34111 (grub_cmd_linux): Initialize vid_mode unconditionally to
34112 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
34113
761319cf 34114 * commands/help.c (print_command_help): Use cmd->prio, not
34115 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
34116
ea761d40 341172009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 34118
ea761d40 34119 Parttool
34120
34121 * parttool/pcpart.c: new file
34122 * commands/parttool.c: likewise
34123 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
34124 (parttool_mod_SOURCES): new variable
34125 (parttool_mod_CFLAGS): likewise
34126 (parttool_mod_LDFLAGS): likewise
34127 (pcpart_mod_SOURCES): likewise
34128 (pcpart_mod_CFLAGS): likewise
34129 (pcpart_mod_LDFLAGS): likewise
7dd4a573 34130 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 34131 and parttool/pcpart.c
34132 * conf/i386-efi.rmk: likewise
34133 * conf/i386-ieee1275.rmk: likewise
34134 * conf/i386-pc.rmk: likewise
34135 * conf/powerpc-ieee1275.rmk: likewise
34136 * conf/sparc64-ieee1275.rmk: likewise
34137 * conf/x86_64-ieee1275.rmk: likewise
34138
05aaebfb 341392009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34140
34141 Support for mtime and further expandability of dir command
34142
34143 * include/grub/lib/datetime.h: moved to ...
7dd4a573 34144 * include/grub/datetime.h: ... moved here and added
05aaebfb 34145 declaration of grub_unixtime2datetime. All users updated
7dd4a573 34146 * include/grub/fs.h: new syntax for dir and mtime functions in
34147 struct grub_fs
05aaebfb 34148 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
34149 and GRUB_FSHELP_FLAGS_MASK
34150 * commands/ls.c (grub_ls_list_files): Write mtime in long format
34151 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
34152 (grub_ext2_mtime): new function
34153 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34154 (grub_hfsplus_mtime): new function
34155 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34156 (GRUB_UFS_ATTR_FILE): likewise
34157 (GRUB_UFS_ATTR_LNK): likewise
34158 (struct grub_ufs_sblock): new fields mtime
34159 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34160 all users updated
34161 (grub_ufs_dir): mtime support
34162 (grub_ufs_mtime): new function
34163 * fs/affs.c (grub_affs_dir): use new dir syntax
34164 * fs/afs.c (grub_afs_dir): likewise
34165 * fs/cpio.c (grub_cpio_dir): likewise
34166 * fs/fat.c (grub_fat_find_dir): likewise
34167 * fs/hfs.c (grub_hfs_dir): likewise
34168 * fs/iso9660.c (grub_iso9660_dir): likewise
34169 * fs/jfs.c (grub_jfs_dir): likewise
34170 * fs/minix.c (grub_minix_dir): likewise
34171 * fs/ntfs.c (grub_ntfs_dir): likewise
34172 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34173 * fs/sfs.c (grub_sfs_dir): likewise
34174 * fs/xfs.c (grub_xfs_dir): likewise
34175 * util/hostfs.c (grub_hostfs_dir): likewise
34176 * lib/datetime.c: moved to ...
34177 * normal/datetime.c: ... moved here
34178 (grub_unixtime2datetime): new function
34179 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 34180 * normal/completion.c (iterate_dir): use new dir syntax
34181 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 34182 last modification time of a volume
7dd4a573 34183 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 34184 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 34185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 34186 (normal_mod_SOURCES): likewise
34187 (datetime_mod_SOURCES): Removed lib/datetime.c
34188 * conf/i386-efi.rmk: likewise
7dd4a573 34189 * conf/i386-ieee1275.rmk: likewise
05aaebfb 34190 * conf/i386-pc.rmk: likewise
34191 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 34192 * conf/sparc64-ieee1275.rmk: likewise
34193 * conf/x86_64-efi.rmk: likewise
05aaebfb 34194
8a7e1a14 341952009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34196
34197 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 34198
34199 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 34200 on grub_fat_find_dir
34201 (grub_fat_find_dir): use grub_fat_iterate_dir
34202 (grub_fat_label): likewise
34203
04186a9c 342042009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34205
7dd4a573 34206 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 34207 and command.h
34208 remove extraneous kernel_elf_HEADERS
34209
da4c0bb6 342102009-04-04 Bean <bean123ch@gnail.com>
34211
34212 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34213
34214 * util/misc.c: Likewise.
34215
54ad9555 342162009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34217
34218 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34219 instead of grub_printf.
34220
7a6bf9f2 342212009-04-03 Robert Millan <rmh@aybabtu.com>
34222
34223 * loader/i386/linux.c (grub_linux_setup_video): Fill
34224 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34225 values from `mode info' structure instead of hardcoded
34226 values.
34227
3fcc2083 342282009-04-01 Pavel Roskin <proski@gnu.org>
34229
34230 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34231 unused now.
34232 * genmk.rb: Likewise.
34233 * configure.ac: Likewise.
34234
5ec9740b 342352009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34236
34237 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34238 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34239
5270cec8 342402009-04-01 David S. Miller <davem@davemloft.net>
34241
34242 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 34243 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 34244 (grub_setjmp): Mark with 'returns_twice' attribute.
34245 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34246 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34247 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34248
9c3dd854 342492009-04-01 Robert Millan <rmh@aybabtu.com>
34250
34251 Reapply fix from 2008-07-28 which was accidentally reverted; also
34252 perform the same fix to a similar check in same function.
34253
34254 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34255 with the same number are found, just use issue a warning with
34256 grub_dprintf(), as this error has been reported to be non-fatal.
34257
0d818b7e 342582009-03-31 Pavel Roskin <proski@gnu.org>
34259
34260 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34261 for cross-compilation.
34262
95646d92 342632009-03-30 Robert Millan <rmh@aybabtu.com>
34264
34265 Fix i386-ieee1275 build.
34266
34267 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34268 Remove declaration.
34269
6a003ed1 342702009-03-30 Pavel Roskin <proski@gnu.org>
34271
34272 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34273 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34274 zero-terminated, rely only on the strlen value. Fix comparison
34275 of strings differing in length.
34276
92f33540 342772009-03-30 Robert Millan <rmh@aybabtu.com>
34278
34279 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34280 checking for abi version. Improve error messages on BIOS to notify
34281 user about `linux16' command.
34282
a8c48fd5 342832009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34284
f968172e 34285 Leak fixes
a8c48fd5 34286
f968172e 34287 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34288 in case of collision
34289 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 34290
9c323f09 342912009-03-29 Robert Millan <rmh@aybabtu.com>
34292
34293 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34294 set `vid_mode' accordingly.
34295 (grub_linux_boot): Process `vid_mode' and set video mode.
34296
ae68f423 342972009-03-29 Robert Millan <rmh@aybabtu.com>
34298
34299 * util/grub.d/10_linux.in (linux_entry): New function.
34300 Factorize generation of Linux boot entries.
34301
5709cfc4 343022009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34303
34304 Make the format of Environment Block plain text. The boot loader
34305 part is not tested well yet.
7dd4a573 34306
5709cfc4 34307 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34308 (buffer): Removed.
34309 (envblk): Likewise.
34310 (usage): Remove "info" and "clear". Add "unset". Update the
34311 description of "set", as this does not delete variables any
34312 longer.
34313 (create_envblk_file): Complete rewrite.
34314 (open_envblk_file): Likewise.
34315 (cmd_info): Removed.
34316 (cmd_list): Likewise.
34317 (cmd_set): Likewise.
34318 (cmd_clear): Likewise.
34319 (list_variables): New function.
34320 (write_envblk): Likewise.
34321 (set_variables): Likewise.
34322 (unset_variables): Likewise.
34323 (main): Complete rewrite.
34324
34325 * commands/loadenv.c (buffer): Removed.
34326 (envblk): Likewise.
34327 (open_envblk_file): New function.
34328 (read_envblk_file): Complete rewrite.
34329 (grub_cmd_load_env): Likewise.
34330 (grub_cmd_list_env): Likewise.
34331 (struct blocklist): New struct.
34332 (free_blocklists): New function.
34333 (check_blocklists): Likewise.
34334 (write_blocklists): Likewise.
34335 (grub_cmd_save_env): Complete rewrite.
34336
34337 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34338 a plain text signature.
34339 (GRUB_ENVBLK_MAXLEN): Removed.
34340 (struct grub_envblk): Complete rewrite.
34341 (grub_envblk_find): Removed.
34342 (grub_envblk_insert): Likewise.
34343 (grub_envblk_open): New prototype.
34344 (grub_envblk_set): Likewise.
34345 (grub_envblk_delete): Put const to VALUE.
34346 (grub_envblk_iterate): Put const to NAME and VALUE.
34347 (grub_envblk_close): New prototype.
34348 (grub_envblk_buffer): New inline function.
34349 (grub_envblk_size): Likewise.
34350
34351 * lib/envblk.c: Include grub/mm.h.
34352 (grub_env_find): Removed.
34353 (grub_envblk_open): New function.
34354 (grub_envblk_close): Likewise.
34355 (escaped_value_len): Likewise.
34356 (find_next_line): Likewise.
34357 (grub_envblk_insert): Removed.
34358 (grub_envblk_set): New function.
34359 (grub_envblk_delete): Complete rewrite.
34360 (grub_envblk_iterate): Likewise.
34361
a9368fd3 343622009-03-28 Robert Millan <rmh@aybabtu.com>
34363
34364 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34365 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34366 variables. Use 16-bit loader.
34367 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34368 loader.
34369 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34370 (grub_linux16_boot): ... this. Update all users.
34371 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34372 (grub_linux_boot): ... this. Update all users.
34373
34374 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34375 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34376 commands to `linux16' and `initrd16'.
34377 (GRUB_MOD_FINI(linux)): Rename to ...
34378 (GRUB_MOD_FINI(linux16)): ... this.
34379
e4dd5a7e 343802009-03-24 Pavel Roskin <proski@gnu.org>
34381
34382 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34383 not just for compilation.
34384
c04d6e05 343852009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34386
34387 Move multiboot helper out of kernel
34388
34389 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34390 `loader/i386/multiboot_helper.S'.
34391 * conf/i386-coreboot.rmk: Likewise
34392 * conf/i386-ieee1275.rmk: Likewise
34393
34394 * kern/i386/loader.S: Move multiboot helpers from here...
34395 * loader/i386/multiboot_helper.S: ...moved here
34396 * include/grub/i386/loader.h: Move declarations of multiboot
34397 helpers from here...
34398 * include/grub/i386/multiboot.h: ...moved here
34399 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34400
42a5b3fc 344012009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34402
34403 * kern/env.c (grub_env_context_open): Added an argument to specify
34404 whether a new context inherits exported variables from current
34405 one. This is useful when making a sandbox to interpret a config
34406 file.
34407 All callers updated.
34408
34409 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34410
b28bbc4e 344112009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34412
34413 * kern/env.c (grub_env_context_close): Fix memory leaks.
34414
f04f02e4 344152009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34416
34417 * normal/main.c (grub_normal_execute): Added an argument
34418 BATCH to specify if an interactive interface should be provided
34419 after reading a config file.
34420 All callers updated.
34421 (read_command_list): Prevent being executed twice.
34422 (read_fs_list): Likewise.
34423
42a5b3fc 34424 * include/grub/normal.h (grub_normal_execute): Updated the
34425 prototype.
f04f02e4 34426
41473ac2 344272009-03-22 Pavel Roskin <proski@gno.org>
34428
fbc00b0c 34429 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34430 _start.
34431 * kern/i386/pc/startup.S: Likewise.
34432 * kern/i386/efi/startup.S: Likewise.
34433 * kern/i386/ieee1275/startup.S: Likewise.
34434 * kern/i386/coreboot/startup.S: Likewise.
34435 * kern/x86_64/efi/startup.S: Likewise.
34436
41473ac2 34437 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34438 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34439 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
34440
2274cc8f 344412009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
34442
34443 Bugfixes in multiboot for bugs uncovered by solaris kernel.
34444
34445 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
34446 limit detection.
34447 Use vaddr of correct segment for entry_point.
34448
b1b797cb 344492009-03-21 Bean <bean123ch@gmail.com>
34450
34451 * commands/blocklist.c: Add include file <grub/command.h>, remove
34452 <grub/normal.h> and <grub/arg.h>.
34453 (grub_cmd_blocklist): Use the new command interface.
34454 (GRUB_MOD_INIT): Likewise.
34455 (GRUB_MOD_FINI): Likewise.
34456 * commands/boot.c: Likewise.
34457 * commands/cat.c: Likewise.
34458 * commands/cmp.c: Likewise.
34459 * commands/configfile.c: Likewise.
34460 * commands/crc.c: Likewise.
34461 * commands/echo.c: Likewise.
34462 * commands/halt.c: Likewise.
34463 * commands/handler.c: Likewise.
34464 * commands/hdparm.c: Likewise.
34465 * commands/help.c: Likewise.
34466 * commands/hexdump.c: Likewise.
34467 * commands/loadenv.c: Likewise.
34468 * commands/ls.c: Likewise.
34469 * commands/lsmmap.c: Likewise.
34470 * commands/lspci.c: Likewise.
34471 * commands/loadenv.c: Likewise.
34472 * commands/read.c: Likewise.
34473 * commands/reboot.c: Likewise.
34474 * commands/search.c: Likewise.
34475 * commands/sleep.c: Likewise.
34476 * commands/test.c: Likewise.
34477 * commands/usbtest.c: Likewise.
34478 * commands/videotest.c: Likewise.
34479 * commands/i386/cpuid.c: Likewise.
34480 * commands/i386/pc/halt.c: Likewise.
34481 * commands/i386/pc/play.c: Likewise.
34482 * commands/i386/pc/pxecmd.c: Likewise.
34483 * commands/i386/pc/vbeinfo.c: Likewise.
34484 * commands/i386/pc/vbetest.c: Likewise.
34485 * commands/ieee1275/suspend.c: Likewise.
34486 * disk/loopback.c: Likewise.
34487 * font/font_cmd.c: Likewise.
34488 * hello/hello.c: Likewise.
34489 * loader/efi/appleloader.c: Likewise.
34490 * loader/efi/chainloader.c: Likewise.
34491 * loader/i386/bsd.c: Likewise.
34492 * loader/i386/efi/linux.c: Likewise.
34493 * loader/i386/ieee1275/linux.c: Likewise.
34494 * loader/i386/linux.c: Likewise.
34495 * loader/i386/pc/chainloader.c: Likewise.
34496 * loader/i386/pc/linux.c: Likewise.
34497 * loader/powerpc/ieee1275/linux.c: Likewise.
34498 * loader/multiboot_loader.c: Likewise.
34499 * term/gfxterm.c: Likewise.
34500 * term/i386/pc/serial.c: Likewise.
34501 * term/terminfo.c: Likewise.
34502
34503 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
34504 * term/i386/pc/vga.c: Likewise.
34505 * video/readers/jpeg.c: Likewise.
34506 * video/readers/png.c: Likewise.
34507 * video/readers/tga.c: Likewise.
34508
34509 * util/grub-fstest (cmd_loopback): Removed.
34510 (cmd_blocklist): Likewise.
34511 (cmd_ls): Likewise.
34512 (grub_register_command): Likewise.
34513 (grub_unregister_command): Likewise.
34514 (execute_command): Use grub_command_find to locate command and execute
34515 it.
34516
34517 * include/grub/efi/chainloader.h: Removed.
34518 * loader/efi/chainloader_normal.c: Likewise.
34519 * loader/i386/bsd_normal.c: Likewise.
34520 * loader/i386/pc/chainloader_normal.c: Likewise.
34521 * loader/i386/pc/multiboot_normal.c: Likewise.
34522 * loader/linux_normal.c: Likewise.
34523 * loader/multiboot_loader_normal.c: Likewise.
34524 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
34525
34526 * gencmdlist.sh: Scan new registration command grub_register_extcmd
34527 and grub_register_command_p1.
34528
34529 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
34530 kern/command.c, lib/arg.c and commands/extcmd.c.
34531 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
34532 (minicmd_mod_SOURCES): New variable.
34533 (minicmd_mod_CFLAGS): Likewise.
34534 (minicmd_mod_LDFLAGS): Likewise.
34535 (extcmd_mod_SOURCES): Likewise.
34536 (extcmd_mod_CFLAGS): Likewise.
34537 (extcmd_mod_LDFLAGS): Likewise.
34538 (boot_mod_SOURCES): Removed.
34539 (boot_mod_CFLAGS): Likewise.
34540 (boot_mod_LDFLAGS): Likewise.
34541
34542 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
34543 kern/corecmd.c.
34544 (kernel_img_HEADERS): Add command.h.
34545 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
34546 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
34547 and lib/arg.c.
34548 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
34549 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
34550 remove the corresponding normal mode command.
34551 (normal_mod_SOURCES): Remove normal/arg.c.
34552 * conf/i386-coreboot.rmk: Likewise.
34553 * conf/i386-efi.rmk: Likewise.
34554 * conf/i386-ieee1275.rmk: Likewise.
34555 * conf/powerpc-ieee1275.rmk: Likewise.
34556 * conf/x86_64-efi.rmk: Likewise.
34557
34558 * include/grub/arg.h: Move from here ...
34559 * include/grub/lib/arg.h: ... to here.
34560
34561 * normal/arg.c: Move from here ...
34562 * lib/arg.c: ... to here.
34563
34564 * commands/extcmd.c: New file.
34565 * commands/minicmd.c: Likewise.
34566 * include/grub/command.h: Likewise.
34567 * include/grub/extcmd.h: Likewise.
34568 * kern/command.c: Likewise.
34569 * kern/corecmd.c: Likewise.
34570
34571 * kern/list.c (grub_list_iterate): Return int instead of void.
34572 (grub_list_insert): New function.
34573 (grub_prio_list_insert): Likewise.
34574
34575 * kern/rescue.c (grub_rescue_command): Removed.
34576 (grub_rescue_command_list): Likewise.
34577 (grub_rescue_register_command): Likewise.
34578 (grub_rescue_unregister_command): Likewise.
34579 (grub_rescue_cmd_boot): Move to minicmd.c
34580 (grub_rescue_cmd_help): Likewise.
34581 (grub_rescue_cmd_info): Likewise.
34582 (grub_rescue_cmd_boot): Likewise.
34583 (grub_rescue_cmd_testload): Likewise.
34584 (grub_rescue_cmd_dump): Likewise.
34585 (grub_rescue_cmd_rmmod): Likewise.
34586 (grub_rescue_cmd_lsmod): Likewise.
34587 (grub_rescue_cmd_exit): Likewise.
34588 (grub_rescue_print_devices): Moved to corecmd.c.
34589 (grub_rescue_print_files): Likewise.
34590 (grub_rescue_cmd_ls): Likewise.
34591 (grub_rescue_cmd_insmod): Likewise.
34592 (grub_rescue_cmd_set): Likewise.
34593 (grub_rescue_cmd_unset): Likewise.
7d074e3c 34594 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 34595 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 34596 commands, remove grub_rescue_register_command calls.
b1b797cb 34597
7d074e3c 34598 * normal/command.c (grub_register_command): Removed.
b1b797cb 34599 (grub_unregister_command): Likewise.
34600 (grub_command_find): Likewise.
34601 (grub_iterate_commands): Likewise.
34602 (rescue_command): Likewise.
34603 (export_command): Moved to corecmd.c.
34604 (set_command): Removed.
34605 (unset_command): Likewise.
34606 (insmod_command): Likewise.
34607 (rmmod_command): Likewise.
34608 (lsmod_command): Likewise.
34609 (grub_command_init): Likewise.
34610
34611 * normal/completion.c (iterate_command): Use cmd->prio to check for
34612 active command.
34613 (complete_arguments): Use grub_extcmd_t structure to find options.
34614 (grub_normal_do_completion): Change function grub_iterate_commands to
34615 grub_command_iterate.
34616
34617 * normal/execute.c (grub_script_execute_cmd): No need to parse
34618 argument here.
34619
34620 * normal/main.c (grub_dyncmd_dispatcher): New function.
34621 (read_command_list): Register unload commands as dyncmd.
34622 (grub_cmd_normal): Use new command interface, register rescue,
34623 unregister normal at entry, register normal, unregister rescue at exit.
34624
34625 * include/grub/list.h (grub_list_test_t): New type.
34626 (grub_list_iterate): Return int instead of void.
34627 (grub_list_insert): New function.
34628 (GRUB_AS_NAMED_LIST_P): New macro.
34629 (GRUB_AS_PRIO_LIST): Likewise.
34630 (GRUB_AS_PRIO_LIST_P): Likewise.
34631 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
34632 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
34633 (grub_prio_list): New structure.
34634 (grub_prio_list_insert): New function.
34635 (grub_prio_list_remove): New inline function.
34636
34637 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
34638 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
34639 (GRUB_COMMAND_FLAG_MENU): Likewise.
34640 (GRUB_COMMAND_FLAG_BOTH): Likewise.
34641 (GRUB_COMMAND_FLAG_TITLE): Likewise.
34642 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
34643 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
34644 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
34645 (grub_command): Likewise.
34646 (grub_register_command): Likewise.
34647 (grub_command_find): Likewise.
34648 (grub_iterate_commands): Likewise.
34649 (grub_command_init): Likewise.
34650 (grub_arg_parse): Likewise.
34651 (grub_arg_show_help): Likewise.
34652
34653 * include/grub/rescue.h (grub_rescue_register_command): Removed.
34654 (grub_rescue_unregister_command): Likewise.
34655
34656 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
34657 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
34658 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
34659
34660 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
34661 grub_rescue_cmd_initrd.
34662 * include/grub/i386/loader.h: Likewise.
34663 * include/grub/x86_64/loader.h: Likewise.
34664
34665 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
34666
1f4147aa 346672009-03-21 Bean <bean123ch@gmail.com>
34668
34669 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
34670 instead of stat in mingw environment.
34671
34672 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
34673
34674 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
34675
34676 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
34677 AC_CONFIG_LINKS.
34678
2156d5ba 346792009-03-21 Bean <bean123ch@gmail.com>
34680
34681 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
34682 out of range error.
34683
177b82ca 346842009-03-18 Michel Dänzer <michel@daenzer.net>
34685
34686 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
34687 checking inode flags for EXT4_EXTENTS_FLAG.
34688
14aad807 346892009-03-18 Robert Millan <rmh@aybabtu.com>
34690
34691 * loader/i386/linux.c: Include `<grub/video.h>' and
34692 `<grub/i386/pc/vbe.h>'..
34693 (grub_linux_setup_video): New function. Loosely based on the EFI one.
34694 (grub_linux32_boot): Attempt to configure video settings with
34695 grub_linux_setup_video().
34696 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
34697 to avoid grub_console_fini() which would step out of graphical mode
34698 unconditionally.
34699
8cf83a27 347002009-03-14 Robert Millan <rmh@aybabtu.com>
34701
34702 Fix build on powerpc.
34703 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
34704
40164e75 347052009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
34706
34707 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
34708 background image command.
34709
c58bc32a 347102009-03-12 Colin D Bennett <colin@gibibit.com>
34711
34712 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
34713 (grub_gfxterm_putchar): Extract pairs of identical calls to
34714 draw_cursor out of conditional blocks.
34715
5415144a 347162009-03-11 Pavel Roskin <proski@gnu.org>
34717
34718 * fs/hfs.c (grub_hfs_strncasecmp): New function.
34719 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
34720
6394042e 347212009-03-11 Robert Millan <rmh@aybabtu.com>
34722
34723 * loader/i386/multiboot_elfxx.c
34724 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
34725
b7b50e5f 347262009-03-11 Felix Zielcke <fzielcke@z-51.de>
34727
34728 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
34729 `kern/handler.c'.
34730
1ca7fc96 347312009-03-11 Robert Millan <rmh@aybabtu.com>
34732
34733 * loader/i386/multiboot.c (code_size): New variable.
34734 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 34735 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 34736 4-byte alignment to MBI and others by increasing
7d074e3c 34737 `boot_loader_name_length' appropriately.
1ca7fc96 34738
34739 * loader/i386/multiboot_elfxx.c
34740 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
34741
a83ea1d2 347422009-03-09 Felix Zielcke <fzielcke@z-51.de>
34743
34744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
34745 `fs/ext2.c'.
34746
aa9f3bff 347472009-03-08 Robert Millan <rmh@aybabtu.com>
34748
34749 Make loader/i386/linux.c usable on i386-pc again.
34750
34751 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
34752 memory to heap.
34753 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
34754 `#error' stanza.
34755
d8b3b60e 347562009-03-07 Bean <bean123ch@gmail.com>
34757
34758 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
34759 allocation.
34760
b362c9e9 347612009-03-06 Robert Millan <rmh@aybabtu.com>
34762
34763 Fix display issue on terminals with screen size other than 80x25
34764 (e.g. gfxterm with resolution higher than 640x480).
34765
34766 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 34767 position relative to the center of the terminal instead of relying
b362c9e9 34768 on a hardcoded offset.
34769
9304eef1 347702009-03-04 Robert Millan <rmh@aybabtu.com>
34771
34772 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
34773 installed.
34774
34775 * Makefile.in (host_kernel): New variable.
34776 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
34777 scripts instead of just the windows one.
34778 * configure.ac: Initialize and AC_SUBST `host_kernel'.
34779
eabc95fb 347802009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 34781
34782 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
34783 `kern/handler.c'.
34784 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34785 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34786 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34788 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34789 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34790
ceb1223c 347912009-03-04 Felix Zielcke <fzielcke@z-51.de>
34792
34793 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
34794 or if there's no space for the disk label and print the partition number on a
34795 invalid magic.
34796
4910684a 347972009-03-04 Felix Zielcke <fzielcke@z-51.de>
34798
34799 * util/misc.c: Include <time.h>.
34800 (grub_millisleep): New function.
34801
7e9ca17a 348022009-03-04 Bean <bean123ch@gmail.com>
34803
34804 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
34805 another option -mno-red-zone.
34806
34807 * commands/handler.c: Change module description.
34808
34809 * kern/handler.c: Add missing space at the end of description line.
34810
34811 * kern/list.c: Likewise.
34812
f501677c 348132009-03-03 Robert Millan <rmh@aybabtu.com>
34814
34815 Move more components to the relocation area, and fix mbi pointer
34816 handling to use the destination rather than the origin (thanks to
34817 Vladimir Serbinenko for spotting).
34818
34819 * loader/i386/multiboot.c (mbi_dest): New variable.
34820 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
34821 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
34822 relocation area.
34823
9902d047 348242009-03-01 Bean <bean123ch@gmail.com>
34825
50fb7002 34826 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 34827 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
34828 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
34829 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
34830
34831 * loader/i386/efi/linux.c (acpi_guid): New variable.
34832 (acpi_guid): Likewise.
34833 (EBDA_SEG_ADDR): New constant.
34834 (LOW_MEM_ADDR): Likewise.
34835 (FAKE_EBDA_SEG): Likewise.
34836 (fake_bios_data): New function.
34837 (grub_linux_boot): Call fake_bios_data.
34838
71b9f361 348392009-03-01 Bean <bean123ch@gmail.com>
34840
34841 * commands/terminal.c: Removed.
34842
34843 * commands/handler.c: New file.
34844
34845 * include/grub/list.h: Likewise.
34846
34847 * include/grub/handler.h: Likewise.
34848
34849 * kern/list.c: Likewise.
34850
34851 * kern/handler.c: Likewise.
34852
34853 * kern/term.h: Include header file <grub/handler.h>.
34854 (grub_term_input): Move next field to the beginning.
34855 (grub_term_output): Likewise.
34856 (grub_term_input_class): New variable.
34857 (grub_term_output_class): Likewise.
34858 (grub_term_register_input): Changed to inline function.
34859 (grub_term_register_output): Likewise.
34860 (grub_term_unregister_input): Likewise.
34861 (grub_term_unregister_output): Likewise.
34862 (grub_term_set_current_input): Likewise.
34863 (grub_term_set_current_output): Likewise.
34864 (grub_term_get_current_input): Likewise.
34865 (grub_term_get_current_output): Likewise.
34866 (grub_term_iterate_input): Removed.
34867 (grub_term_iterate_output): Likewise.
34868
34869 * kern/term.c (grub_term_list_input): Removed.
34870 (grub_term_list_output): Likewise.
34871 (grub_term_input_class): New variable.
34872 (grub_term_output_class): Likewise.
50fb7002 34873 (grub_cur_term_input): Change variable as macro.
71b9f361 34874 (grub_cur_term_output): Likewise.
34875 (grub_term_register_input): Removed.
34876 (grub_term_register_output): Likewise.
34877 (grub_term_unregister_input): Likewise.
34878 (grub_term_unregister_output): Likewise.
34879 (grub_term_set_current_input): Likewise.
34880 (grub_term_set_current_output): Likewise.
34881 (grub_term_iterate_input): Likewise.
34882 (grub_term_iterate_output): Likewise.
34883 (grub_term_get_current_input): Likewise.
34884 (grub_term_get_current_output): Likewise.
34885
34886 * util/grub-editenv.c: Include header file <grub/handler.h>.
34887 (grub_term_get_current_input): Removed.
34888 (grub_term_get_current_output): Likewise.
34889 (grub_term_input_class): New variable.
50fb7002 34890 (grub_term_output_class): Likewise.
71b9f361 34891
34892 * util/grub-fstest.c (grub_term_get_current_input): Removed.
34893 (grub_term_get_current_output): Likewise.
34894 (grub_term_input_class): New variable.
50fb7002 34895 (grub_term_output_class): Likewise.
71b9f361 34896
34897 * util/grub-probe.c (grub_term_get_current_input): Removed.
34898 (grub_term_get_current_output): Likewise.
34899 (grub_term_input_class): New variable.
50fb7002 34900 (grub_term_output_class): Likewise.
71b9f361 34901
34902 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
34903 (grub_term_get_current_output): Likewise.
34904 (grub_term_input_class): New variable.
50fb7002 34905 (grub_term_output_class): Likewise.
71b9f361 34906
34907 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
34908 (terminal_mod_SOURCES): Likewise.
34909 (terminal_mod_CFLAGS): Likewise.
34910 (terminal_mod_LDFLAGS): Likewise.
34911
34912 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
34913 handler.c.
34914 (kernel_img_SOURCES): Add list.c and handler.c.
34915 (kernel_img_HEADERS): Add list.h and handler.h.
34916
34917 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34918 handler.c.
34919 (kernel_mod_SOURCES): Add list.c and handler.c.
34920 (kernel_mod_HEADERS): Add list.h and handler.h.
34921
34922 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
34923 handler.c.
34924 (kernel_elf_SOURCES): Add list.c and handler.c.
34925 (kernel_elf_HEADERS): Add list.h and handler.h.
34926
34927 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34928 handler.c.
34929 (kernel_elf_SOURCES): Add list.c and handler.c.
34930 (kernel_elf_HEADERS): Add list.h and handler.h.
34931
34932 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34933 handler.c.
34934 (kernel_mod_SOURCES): Add list.c and handler.c.
34935 (kernel_mod_HEADERS): Add list.h and handler.h.
34936
34937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34938 handler.c.
34939 (kernel_elf_SOURCES): Add list.c and handler.c.
34940 (kernel_elf_HEADERS): Add list.h and handler.h.
34941
8a31787f 349422009-02-27 Robert Millan <rmh@aybabtu.com>
34943
34944 Factorize elf32 / elf64 code in Multiboot loader. This will
34945 prevent it from getting out of sync again.
34946
34947 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
34948 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
34949 grub_multiboot_load_elf64): Move from here ...
34950 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
34951 grub_multiboot_load_elf): ... to here (new file).
34952
51cd3dfc 349532009-02-27 Robert Millan <rmh@aybabtu.com>
34954
34955 * util/grub.d/10_linux.in: Rename "single-user mode" to
34956 "recovery mode".
34957
6e8c9c3a 349582009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34959
34960 Don't leak in SCSI code.
34961 * disk/scsi.c (grub_scsi_close): free `scsi'.
34962
4b6bf4f9 349632009-02-27 Robert Millan <rmh@aybabtu.com>
34964
34965 * loader/i386/pc/multiboot.c: Move from here ...
34966 * loader/i386/multiboot.c: ... to here. Update all users.
34967
b9413424 349682009-02-27 Robert Millan <rmh@aybabtu.com>
34969
34970 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34971 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34972
50fb7002 349732009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34974
34975 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34976 b-tree.
34977
8cc50345 349782009-02-27 Robert Millan <rmh@aybabtu.com>
34979
34980 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34981 `0x' qualifier as 0 when base is specified as parameter).
34982
6e09b8b7 349832009-02-24 Bean <bean123ch@gmail.com>
34984
34985 * configure.ac: Check for -mcmodel=large in x86_64 target.
34986
34987 * include/grub/efi/api.h (efi_call_10): New macro.
34988 (efi_wrap_10): New function.
34989
34990 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34991 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34992 (GRUB_PE32_REL_BASED_LOW): Likewise.
34993 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34994 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34995 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34996 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34997 (GRUB_PE32_REL_BASED_REL): Likewise.
34998 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34999 (GRUB_PE32_REL_BASED_DIR64): Likewise.
35000 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
35001
35002 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
35003 issue.
35004
35005 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
35006 (efi_wrap_10): New function.
35007
35008 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
35009
35010 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
35011 MB/MBP model (NV chipset).
35012 (devdata_devs): Add devpath_5 to the list.
35013
35014 * load/i386/efi/linux.c (video_base): Remove variable.
35015 (RGB_MASK): New macro.
35016 (RGB_MAGIC): Likewise.
35017 (LINE_MIN): Likewise.
35018 (LINE_MAX): Likewise.
35019 (FBTEST_STEP): Likewise.
35020 (FBTEST_COUNT): Likewise.
35021 (fb_list): New variable.
35022 (grub_find_video_card): Remove function.
35023 (find_framebuf): New function.
35024 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
35025 line length.
35026
35027 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
35028 problem for x86_64.
35029
74b21bee 350302009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
35031
35032 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
35033
35034 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
35035 coding tool name.
35036
a455f472 350372009-02-22 Robert Millan <rmh@aybabtu.com>
35038
35039 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
35040 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
35041 in our relocation, instead of using it directly from heap. Also
35042 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
35043
6374daf3 350442009-02-21 Robert Millan <rmh@aybabtu.com>
35045
35046 Implement USB keyboard support (based on patch by Marco Gerards)
35047
35048 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
35049 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
35050 (usb_keyboard_mod_LDFLAGS): New variables.
35051
35052 * term/usb_keyboard.c: New file.
35053
8fa4ea70 350542009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
35055
35056 Corrected wrong declaration
35057
35058 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
35059
353976ac 350602009-02-14 Christian Franke <franke@computer.org>
35061
35062 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
35063 (grub_lspci_iter): Print class code and programming interface byte.
35064
6aa1169b 350652009-02-14 Christian Franke <franke@computer.org>
35066
35067 * gendistlist.sh: Ignore `.svn' directories.
35068
265372ca 350692009-02-14 Felix Zielcke <fzielcke@z-51.de>
35070
35071 * fs/fat.c: Add 2009 to Copyright line.
35072
9ff516f3 350732009-02-14 Christian Franke <franke@computer.org>
35074
35075 * commands/hdparm.c: New file. Provides `hdparm' command
35076 which sends ATA commands via grub_disk_ata_pass_through ().
35077
35078 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
35079
35080 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
35081 and <grub/cpu/io.h> to include/grub/ata.h.
35082 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
35083 (GRUB_CDROM_SECTOR_SIZE): Remove.
35084 (GRUB_ATA_*): Move to include/grub/ata.h.
35085 (GRUB_ATAPI_*): Likewise.
35086 (enum grub_ata_commands): Likewise.
35087 (enum grub_ata_timeout_milliseconds): Likewise.
35088 (struct grub_ata_device): Likewise.
35089 (grub_ata_regset): Likewise.
35090 (grub_ata_regget): Likewise.
35091 (grub_ata_regset2): Likewise.
35092 (grub_ata_regget2): Likewise.
35093 (grub_ata_check_ready): Likewise.
35094 (grub_ata_wait_not_busy): Remove static, exported in
35095 include/grub/ata.h.
35096 (grub_ata_wait_drq): Likewise.
35097 (grub_ata_pio_read): Likewise.
35098
35099 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
35100 function for hdparm.mod.
35101
35102 * include/grub/ata.h: New file, contains declarations from
35103 disk/ata.c.
35104 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
35105
35106 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
35107 (grub_disk_ata_pass_through): New exported variable.
35108
35109 * kern/disk.c (grub_disk_ata_pass_through): New variable.
35110
772e23da 351112009-02-13 Colin D Bennett <colin@gibibit.com>
35112
35113 Support multiple fallback entries, and provide an API to support
35114 executing default+fallback menu entries. Renamed the `terminal' menu
35115 viewer to `text'.
35116
35117 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
35118 variable declaration.
35119 (grub_menu_execute_callback): New structure declaration.
35120 (grub_menu_execute_callback_t): New typedef.
35121 (grub_menu_execute_with_fallback): New function declaration.
35122 (grub_menu_get_entry): Likewise.
35123 (grub_menu_get_timeout): Likewise.
35124 (grub_menu_set_timeout): Likewise.
35125
35126 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
35127
35128 * normal/menu.c (grub_wait_after_message): Moved to
35129 `normal/menu_text.c'.
35130 (draw_border): Likewise.
35131 (print_message): Likewise.
35132 (print_entry): Likewise.
35133 (print_entries): Likewise.
35134 (grub_menu_init_page): Likewise.
35135 (get_entry_number): Likewise.
35136 (print_timeout): Likewise.
35137 (run_menu): Likewise.
35138 (grub_menu_execute_entry): Likewise.
35139 (show_text_menu): Likewise.
35140 (get_and_remove_first_entry_number): New function.
35141 (grub_menu_execute_with_fallback): Likewise.
35142 (get_entry): Renamed to ...
35143 (grub_menu_get_entry): .. this and made it global.
35144 (get_timeout): Renamed to ...
35145 (grub_menu_get_timeout): ... this and made it global.
35146 (set_timeout): Renamed to ...
35147 (grub_menu_set_timeout): ... this and made it global.
35148 (grub_normal_terminal_menu_viewer): Renamed to ...
35149 (grub_normal_text_menu_viewer): ... this.
35150
35151 * normal/menu_text.c: New file. Extracted text-menu-specific code
35152 from normal/menu.c.
35153
35154 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35155 (normal_mod_SOURCES): Likewise.
35156
35157 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35158 (normal_mod_SOURCES): Likewise.
35159
35160 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35161 (normal_mod_SOURCES): Likewise.
35162
35163 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35164 (normal_mod_SOURCES): Likewise.
35165
35166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35167 (normal_mod_SOURCES): Likewise.
35168
35169 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35170 (normal_mod_SOURCES): Likewise.
35171
35172 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35173 (normal_mod_SOURCES): Likewise.
35174
16ac430e 351752009-02-11 Robert Millan <rmh@aybabtu.com>
35176
35177 * util/grub.d/00_header.in: Update old reference to `font' command.
35178
06ff20fc 351792009-02-10 Felix Zielcke <fzielcke@z-51.de>
35180
35181 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35182
35183 Based on patch from Javier Martín.
35184
96da9407 351852009-02-09 Felix Zielcke <fzielcke@z-51.de>
35186
35187 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 35188 to avoid false positives with FAT.
96da9407 35189 (grub_fstest_SOURCES): Likewise.
35190 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35191 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35193 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35194 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35196
6dca6fe4 351972009-02-09 Felix Zielcke <fzielcke@z-51.de>
35198
06ff20fc 35199 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 35200 bpb.version_specific.fat12_or_fat16.fstype and
35201 bpb.version_specific.fat32.fstype.
35202
2550c62f 352032009-02-08 Robert Millan <rmh@aybabtu.com>
35204
be110b30 35205 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 35206
56978920 352072009-02-08 Robert Millan <rmh@aybabtu.com>
35208
35209 * Makefile.in (host_os, host_cpu): New variables.
35210 (target_os): Remove. Update all users.
35211
d64399b5 352122009-02-08 Marco Gerards <marco@gnu.org>
35213
35214 * Makefile.in (enable_grub_emu_usb): New variable.
35215 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35216 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35217 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35218 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35219 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35220 `usbtest.mod' and `usbms.mod'.
35221 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35222 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35223 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35224 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35225 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35226 variables.
35227
35228 * disk/usbms.c: New file.
35229
35230 * include/grub/usb.h: Likewise.
35231
35232 * include/grub/usbtrans.h: Likewise.
35233
35234 * include/grub/usbdesc.h: Likewise.
35235
35236 * bus/usb/usbtrans.c: Likewise.
35237
35238 * bus/usb/ohci.c: Likewise.
35239
35240 * bus/usb/uhci.c: Likewise.
35241
35242 * bus/usb/usbhub.c: Likewise.
35243
35244 * bus/usb/usb.c: Likewise.
35245
35246 * commands/usbtest.c: Likewise.
35247
35248 * util/usb.c: Likewise.
50fb7002 35249
d64399b5 35250 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35251
35252 * configure.ac: Test for libusb presence.
50fb7002 35253
d64399b5 35254 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35255
2b40d6bb 352562009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35257
35258 * kern/mm.c: Add more comments.
35259
73a4ce81 352602009-02-08 Robert Millan <rmh@aybabtu.com>
35261
35262 Patch from Javier Martín.
35263 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35264 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35265
f821ce59 352662009-02-08 Robert Millan <rmh@aybabtu.com>
35267
35268 * fs/cpio.c: Split tar functionality to ...
35269 * fs/tar.c: ... here (new file). Update all users.
35270
aebfc4b0 352712009-02-07 Robert Millan <rmh@aybabtu.com>
35272
35273 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35274 backward-incompatible features.
35275
35276 Based on patch from Javier Martín, with some adjustments.
35277
50fb7002 352782009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 35279
35280 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35281
0bb5115e 352822009-02-07 Robert Millan <rmh@aybabtu.com>
35283
35284 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35285 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35286 after the RAID stuff.
35287
38a0f8e7 352882009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35289
50fb7002 35290 Fixes problem when running vbetest command as reported by
38a0f8e7 35291 Vladimir Serbinenko <phcoder@gmail.com>.
35292
35293 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35294
3143cc1c 352952009-02-04 Felix Zielcke <fzielcke@z-51.de>
35296
35297 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35298 /dev/md/NpN style mdraid devices.
35299
9cba6fce 353002009-02-03 Felix Zielcke <fzielcke@z-51.de>
35301
35302 * util/unifont2pff.rb: Remove.
35303
e507a2c1 353042009-02-03 Felix Zielcke <fzielcke@z-51.de>
35305
35306 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35307 `#'.
35308
d2c2b4cd 353092009-02-03 Felix Zielcke <fzielcke@z-51.de>
35310
35311 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35312 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35313 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35314 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35316 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35317 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35318
b4315fb0 353192009-02-02 Christian Franke <franke@computer.org>
35320
35321 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35322
de3aa260 353232009-02-01 Felix Zielcke <fzielcke@z-51.de>
35324
7c3ff286 35325 * INSTALL: Note that we now require at least autoconf 2.59 and
35326 that LZO is optional.
de3aa260 35327
825a182b 353282009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35329
35330 Base on patch on bug #24154 created by Tomas Tintera
35331 <trosos@seznam.cz>.
35332
35333 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35334
a69ef770 353352009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35336
7c3ff286 35337 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 35338 <bero@arklinux.org>.
35339
35340 * normal/parser.y (script_init): Add missing semicolon.
35341
6fa42fa6 353422009-01-31 Colin D Bennett <colin@gibibit.com>
35343
7c3ff286 35344 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 35345 (free_menu_entry_classes): Added.
35346 (grub_normal_menu_addentry): Added class property handling.
35347 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35348 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35349
35350 * normal/menu_viewer.c: New file.
35351
35352 * normal/menu.c (run_menu_entry): Renamed to ...
35353 (grub_menu_execute_entry): ... this and made it as global.
35354 (grub_menu_run): Renamed to ...
35355 (show_text_menu): ... this and made it local.
35356 (show_text_menu): Adapt to new function names.
35357 (grub_normal_terminal_menu_viewer): New global variable.
35358
35359 * include/grub/menu.h: New file.
35360
35361 * include/grub/menu_viewer.h: New file.
35362
35363 * include/grub/normal.h: Added include to grub/menu.h.
35364 (grub_menu_entry): Moved to include/grub/menu.h.
35365 (grub_menu_entry_t): Likewise.
35366 (grub_menu): Likewise.
35367 (grub_menu_t): Likewise.
35368 (grub_normal_terminal_menu_viewer): Added.
35369 (grub_menu_execute_entry): Likewise.
35370 (grub_menu_run): Removed.
35371
35372 * DISTLIST: Added include/grub/menu.h.
35373 Added include/grub/menu_viewer.h.
35374 Added normal/menu_viewer.c.
35375
353762009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35377
35378 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35379 arglist for menutitle arguments.
35380
35381 * normal/main.c (grub_normal_menu_addentry): Likewise.
35382
35383 * normal/parser.y (menuentry): Likewise.
35384
35385 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35386
35387 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35388 (grub_script_create_cmdmenu): Likewise.
35389
35390 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35391
35392 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35393 changes.
35394
35395 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35396
35397 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35398
35399 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35400
35401 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35402
35403 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35404
35405 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35406
56192c23 354072009-01-30 Christian Franke <franke@computer.org>
35408
35409 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35410 in option help text.
35411
d72521b3 354122009-01-27 Pavel Roskin <proski@gnu.org>
35413
35414 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35415
994b5e84 354162009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35417
35418 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35419
35420 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35421
35422 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35423 unregister function.
35424
6a7eab2c 354252009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35426
35427 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35428
35429 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35430
35431 * util/grub-mkfont.c (usage): Fix typo.
35432
35433 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35434
1806b56e 354352009-01-26 Daniel Mierswa <impulze@impulze.org>
35436
3fb18f09 35437 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35438
336e1fb9 35439 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
35440
1806b56e 35441 * kern/misc.c (grub_strcasecmp): New function.
35442 (grub_strcasecmp): Use grub_size_t instead of int for length.
35443 Fix return value.
35444 * include/grub/misc.h: Update function prototypes.
35445
580b2a0f 354462009-01-26 Robert Millan <rmh@aybabtu.com>
35447
35448 * configure.ac: Fix cross-compilation check.
ef257b36 35449
d31c24f1 354502009-01-22 Christian Franke <franke@computer.org>
35451
35452 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
35453 (precision) digit string. Allow `.format2' without `format1' (width).
35454 Limit input chars for `%s' output to `format2' if specified. This is
35455 compatible with standard printf ().
35456
3138b44c 354572009-01-22 Christian Franke <franke@computer.org>
35458
35459 * disk/ata.c (grub_ata_wait_status): Replace by ...
35460 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
35461 other status bits may be invalid while BSY is asserted.
35462 (grub_ata_check_ready): New function.
35463 (grub_ata_cmd): Removed.
35464 (grub_ata_wait_drq): New function.
35465 (grub_ata_strncpy): Remove inline.
35466 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
35467 and error check now done by grub_ata_wait_drq ().
35468 (grub_ata_pio_write): Likewise.
35469 (grub_atapi_identify): Set DEV before check for !BSY. Use
35470 grub_ata_wait_drq () to wait for data.
35471 (grub_ata_device_initialize): Add status register check to
35472 detect missing SATA slave devices. Add debug messages.
35473 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
35474 (grub_atapi_packet): Set DEV before check for !BSY. Replace
35475 transfer loop by grub_ata_pio_write ().
35476 (grub_ata_identify): Set DEV before check for !BSY. Use
35477 grub_ata_wait_drq () to wait for data.
ef257b36 35478 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 35479 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
35480 read/write in one loop. Fix invalid command on write. Fix incomplete
35481 command on (size % batch) == 0. Add missing error check after write of
35482 last block. Add debug messages.
35483 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
35484
59a64ef6 354852009-01-19 Christian Franke <franke@computer.org>
35486
35487 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
35488 (GRUB_ATAPI_IREASON_*): Likewise.
35489 (grub_ata_pio_write): Fix timeout error return.
35490 (grub_atapi_identify): Add grub_ata_wait () after cmd.
35491 (grub_atapi_wait_drq): New function.
35492 (grub_atapi_packet): New parameter `size'.
35493 Use grub_atapi_wait_drq () and direct write instead of
35494 grub_ata_pio_write ().
35495 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
35496 reads the number of bytes requested by the device for each DRQ
35497 assertion.
35498 (grub_atapi_write): Remove old implementation, return not
35499 implemented instead.
35500
1cfe20b3 355012009-01-19 Christian Franke <franke@computer.org>
35502
35503 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
35504 of 512 to calculate data size.
35505 (grub_scsi_read12): Likewise.
35506 (grub_scsi_write10): Likewise.
35507 (grub_scsi_write12): Likewise.
35508 (grub_scsi_read): Adjust size according to blocksize.
35509 Add checks for invalid blocksize and unaligned transfer.
35510
bee5fe5d 355112009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
35512
35513 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
35514
ef257b36 35515 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 35516 width glyphs.
35517
3e643f8c 355182009-01-19 Robert Millan <rmh@aybabtu.com>
35519
35520 * config.guess: Update to latest version from config git.
35521 * config.sub: Likewise.
35522
4fa80998 355232009-01-17 Felix Zielcke <fzielcke@z-51.de>
35524
35525 * Makefile.in: Change font compilation to use new grub-mkfont instead
35526 of java version.
35527
35528 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
35529 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
35530 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35531 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35532 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
35533 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
35534 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
35535 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
35536 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35537
7086085b 355382009-01-16 Christian Franke <franke@computer.org>
35539
35540 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
35541 (enum grub_ata_timeout_milliseconds): New enum.
35542 (grub_ata_wait_status): Add parameter milliseconds.
35543 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
35544 recovery from timed-out commands.
35545 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
35546 return grub_errno instead of REG_ERROR.
35547 (grub_ata_pio_write): Add parameter milliseconds.
35548 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
35549 Pass milliseconds to grub_ata_wait_status () and
35550 grub_ata_pio_read ().
35551 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
35552 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
35553 grub_ata_wait_status (). Fix IDENTIFY timeout check.
35554 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
35555 It is not suitable for device detection, because DEV bit is ignored,
35556 the command may run too long, and not all devices set the signature
35557 properly.
35558 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
35559 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
35560 Fix device selection, DEV bit must be set first to address the registers
35561 of the correct device.
35562 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
35563 grub_ata_pio_read/write ().
35564 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
35565 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
35566
4a412913 355672009-01-13 Carles Pina i Estany <carles@pina.cat>
35568
35569 * util/grub-editenv.c (main): Use fseeko(), not fseek().
35570
7795c55e 355712009-01-13 Bean <bean123ch@gmail.com>
d913988c 35572
35573 * util/grub-mkfont.c (write_font): forget to remove some debug code.
35574
7795c55e 355752009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 35576
35577 * Makefile.in: (enable_grub_mkfont): New variable.
35578 (freetype_cflags): Likewise.
35579 (freetype_libs): Likewise.
35580
35581 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
35582 (grub_mkfont_SOURCES): New variable.
35583 (grub_mkfont_CFLAGS): Likewise.
35584 (grub_mkfont_LDFLAGS): Likewise.
35585
35586 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
35587 library if `--enable-grub-mkfont' is requested.
35588 (enable_grub_mkfont): New variable.
35589 (freetype_cflags): Likewise.
35590 (freetype_libs): Likewise.
35591
35592 * util/grub-mkfont.c: New file.
35593
093af1fe 355942009-01-12 Christian Franke <franke@computer.org>
35595
35596 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
35597 mode check. Fix setting of compat_use[].
35598
f36cc108 355992009-01-10 Robert Millan <rmh@aybabtu.com>
35600
35601 Update a few copyright years which we forgot to do in 2008 (only for
35602 files whose changes made in 2008 were copyright-significant)
35603
35604 * Makefile.in: Add 2008 to Copyright line.
35605 * disk/ieee1275/ofdisk.c: Likewise.
35606 * disk/efi/efidisk.c: Likewise.
35607 * kern/dl.c: Likewise.
35608 * kern/sparc64/ieee1275/init.c: Likewise.
35609 * kern/mm.c: Likewise.
35610 * kern/efi/mm.c: Likewise.
35611 * boot/i386/pc/boot.S: Likewise.
35612 * genfslist.sh: Likewise.
35613 * fs/iso9660.c: Likewise.
35614 * fs/hfs.c: Likewise.
35615 * fs/jfs.c: Likewise.
35616 * fs/minix.c: Likewise.
35617 * fs/ufs.c: Likewise.
35618 * gensymlist.sh.in: Likewise.
35619 * genkernsyms.sh.in: Likewise.
35620 * include/grub/misc.h: Likewise.
35621 * include/grub/types.h: Likewise.
35622 * include/grub/symbol.h: Likewise.
35623 * include/grub/elf.h: Likewise.
35624 * include/grub/kernel.h: Likewise.
35625 * include/grub/disk.h: Likewise.
35626 * include/grub/dl.h: Likewise.
35627 * include/grub/i386/linux.h: Likewise.
35628 * include/grub/i386/pc/biosdisk.h: Likewise.
35629 * include/grub/efi/api.h: Likewise.
35630 * include/grub/efi/pe32.h: Likewise.
35631 * include/grub/util/misc.h: Likewise.
35632 * normal/execute.c: Likewise.
35633 * normal/arg.c: Likewise.
35634 * normal/completion.c: Likewise.
35635 * normal/lexer.c: Likewise.
35636 * normal/parser.y: Likewise.
35637 * normal/misc.c: Likewise.
35638 * commands/i386/pc/vbeinfo.c: Likewise.
35639 * commands/hexdump.c: Likewise.
35640 * commands/terminal.c: Likewise.
35641 * commands/ls.c: Likewise.
35642 * commands/help.c: Likewise.
35643 * partmap/pc.c: Likewise.
35644 * loader/efi/chainloader.c: Likewise.
35645 * loader/multiboot_loader.c: Likewise.
35646 * loader/i386/pc/multiboot2.c: Likewise.
35647 * term/efi/console.c: Likewise.
35648 * term/i386/pc/serial.c: Likewise.
35649 * util/lvm.c: Likewise.
35650 * util/console.c: Likewise.
35651 * util/i386/efi/grub-mkimage.c: Likewise.
35652 * util/raid.c: Likewise.
35653
7f02114b 356542009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
35655
35656 * commands/videotest.c: Removed include to grub/machine/memory.h.
35657
35658 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
35659 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
35660 (video_mod_SOURCES): Removed.
35661 (video_mod_CFLAGS): Likewise.
35662 (video_mod_LDFLAGS): Likewise.
35663 (gfxterm_mod_SOURCES): Likewise.
35664 (gfxterm_mod_CFLAGS): Likewise.
35665 (gfxterm_mod_LDFLAGS): Likewise.
35666 (videotest_mod_SOURCES): Likewise.
35667 (videotest_mod_CFLAGS): Likewise.
35668 (videotest_mod_LDFLAGS): Likewise.
35669 (bitmap_mod_SOURCES): Likewise.
35670 (bitmap_mod_CFLAGS): Likewise.
35671 (bitmap_mod_LDFLAGS): Likewise.
35672 (tga_mod_SOURCES): Likewise.
35673 (tga_mod_CFLAGS): Likewise.
35674 (tga_mod_LDFLAGS): Likewise.
35675 (jpeg_mod_SOURCES): Likewise.
35676 (jpeg_mod_CFLAGS): Likewise.
35677 (jpeg_mod_LDFLAGS): Likewise.
35678 (png_mod_SOURCES): Likewise.
35679 (png_mod_CFLAGS): Likewise.
35680 (png_mod_LDFLAGS): Likewise.
35681
35682 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
35683 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
35684 (video_mod_SOURCES): Added.
35685 (video_mod_CFLAGS): Likewise.
35686 (video_mod_LDFLAGS): Likewise.
35687 (videotest_mod_SOURCES): Likewise.
35688 (videotest_mod_CFLAGS): Likewise.
35689 (videotest_mod_LDFLAGS): Likewise.
35690 (bitmap_mod_SOURCES): Likewise.
35691 (bitmap_mod_CFLAGS): Likewise.
35692 (bitmap_mod_LDFLAGS): Likewise.
35693 (tga_mod_SOURCES): Likewise.
35694 (tga_mod_CFLAGS): Likewise.
35695 (tga_mod_LDFLAGS): Likewise.
35696 (jpeg_mod_SOURCES): Likewise.
35697 (jpeg_mod_CFLAGS): Likewise.
35698 (jpeg_mod_LDFLAGS): Likewise.
35699 (png_mod_SOURCES): Likewise.
35700 (png_mod_CFLAGS): Likewise.
35701 (png_mod_LDFLAGS): Likewise.
35702 (gfxterm_mod_SOURCES): Likewise.
35703 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 35704 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 35705
35706 * term/gfxterm.c: Removed include to grub/machine/memory.h,
35707 grub/machine/console.h.
35708
644fff97 357092009-01-04 Jerone Young <jerone@gmail.com>
35710
35711 Make on screen instructions clearer
35712
35713 Based on patch created by Jidanni <jidanni@jidanni.org>
35714
35715 * normal/menu.c: print clearer instructions on the screen
35716
1e901a75 357172009-01-02 Colin D Bennett <colin@gibibit.com>
35718
35719 New font engine.
34c44600 35720
1e901a75 35721 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
35722 build system and fixed gfxterm.c to work with different sized fonts.
35723
35724 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 35725
1e901a75 35726 * configure: Re-generated.
34c44600 35727
1e901a75 35728 * DISTLIST: Removed font/manager.c.
35729 Added font/font.c.
35730 Added font/font_cmd.c.
34c44600 35731
1e901a75 35732 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
35733 compilation.
34c44600 35734
1e901a75 35735 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 35736
35737 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 35738
35739 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 35740
1e901a75 35741 * normal/menu.c: Likewise.
34c44600 35742
1e901a75 35743 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
35744 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 35745
1e901a75 35746 * include/grub/font.h: Replaced with new file.
34c44600 35747
1e901a75 35748 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
35749 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
35750 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
35751 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
35752 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 35753 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 35754 fg_red, fg_green, fg_blue, fg_alpha.
35755 (grub_video_adapter): Removed blit_glyph.
34c44600 35756 (grub_video_blit_glyph): Removed.
35757
1e901a75 35758 * font/manager.c: Removed file.
34c44600 35759
35760 * font/font.c: New file.
35761
1e901a75 35762 * font/font_cmd.c: Likewise.
34c44600 35763
1e901a75 35764 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 35765
1e901a75 35766 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
35767 (grub_video_vbe_map_rgba): Likewise.
35768 (grub_video_vbe_unmap_color_int): Likewise.
35769 (grub_video_vbe_blit_glyph): Removed.
35770 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 35771
1e901a75 35772 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
35773 (get_pixel): Likewise.
34c44600 35774 (set_pixel): Likewise.
35775
1e901a75 35776 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 35777
1e901a75 35778 * term/gfxterm.c: Adapted to new font engine.
34c44600 35779
1e901a75 35780 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 35781
1e901a75 35782 * term/i386/pc/vga.c: Likewise.
34c44600 35783
1e901a75 35784 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 35785
1e901a75 35786 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 35787
1e901a75 35788 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35789
1e901a75 35790 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35791
1e901a75 35792 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 35793
1e901a75 35794 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 35795
1e901a75 35796 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 35797
1e901a75 35798 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 35799
1e901a75 35800 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35801
35802 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 35803
1e901a75 35804 * util/grub-mkconfig_lib.in: Changed font extension.
35805
278922e8 358062008-12-28 Felix Zielcke <fzielcke@z-51.de>
35807
35808 * util/getroot.c (grub_util_get_grub_dev): Add support for
35809 /dev/md/dNNpNN style partitionable mdraid devices.
35810
3ced05cf 358112008-12-12 Alex Smith <alex@alex-smith.me.uk>
35812
35813 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
35814 at a time limit of the PXE TFTP API correctly.
35815 (grub_pxefs_close): Likewise.
35816
7fd0ee30 358172008-11-29 Robert Millan <rmh@aybabtu.com>
35818
34c44600 35819 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 35820 grub_ata_device_initialize() calls.
35821
34c44600 358222008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 35823
35824 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
35825 iteration failed.
35826 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
35827
89313780 358282008-11-28 Robert Millan <rmh@aybabtu.com>
35829
35830 Fix build on powerpc-ieee1275. Based on patch created by
35831 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
35832 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35833 `kern/ieee1275/mmap.c'.
35834 * include/grub/powerpc/ieee1275/memory.h: New file.
35835
15257703 35836 Provide grub-install on coreboot.
35837 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
35838 (grub_install_SOURCES): New variable.
35839 * util/i386/pc/grub-install.in: Add a few condition checks to make it
35840 usable on coreboot.
35841
9fc5388a 358422008-11-25 Felix Zielcke <fzielcke@z-51.de>
35843
35844 * util/grub-fstest.c (grub_term_get_current_input): Change return type
35845 to `grub_term_input_t'.
35846 (grub_term_get_current_output): Change return type to
35847 `grub_term_output_t'.
35848
bc3a2f31 358492008-11-22 Robert Millan <rmh@aybabtu.com>
35850
34c44600 35851 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 35852 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
35853 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
35854 grub_vga_text_cls().
35855
80fc88f2 35856 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 35857 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 35858
cbf36fd3 35859 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
35860 to 0x200000 (avoids trouble with some OFW implementations, and matches
35861 with the one in Yaboot).
35862 Reported by Manoel Abranches
35863
73e8e268 358642008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 35865
35866 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
35867 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
35868
73e8e268 35869 * util/grub-mkconfig_lib.in (grub_warn): New function.
35870 (convert_system_path_to_grub_path): Use grub_warn() when issuing
35871 warnings, to obtain consistent formatting.
35872 * util/grub.d/00_header.in: Likewise.
35873 * util/update-grub_lib.in: Likewise.
35874
e94045a1 35875 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 35876 Move comment text to `#error' stanza.
e94045a1 35877
79d29fd7 35878 Harmonize ieee1275's grub_available_iterate() with the generic
35879 grub_machine_mmap_iterate() interface (fixes a recently-introduced
35880 build problem on i386-ieee1275):
35881 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
35882 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
35883 parameter `type'. Update all users of this function.
35884 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
35885 `kern/ieee1275/mmap.c'.
35886 * kern/ieee1275/init.c
35887 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
35888 with ...
35889 (grub_machine_mmap_iterate): ... this.
35890 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
35891 return type to `grub_err_t'. Update all implementations of this
35892 function prototype.
35893 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
35894 Likewise.
35895
60d6b16e 35896 Add `lsmmap' command (lists firmware-provided memory map):
35897 * commands/lsmmap.c: New file.
35898 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
35899 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
35900 variables.
35901 * conf/powerpc-ieee1275.rmk: Likewise.
35902 * conf/i386-coreboot.rmk: Likewise.
35903 * conf/i386-ieee1275.rmk: Likewise.
35904
ebaaf49b 359052008-11-19 Robert Millan <rmh@aybabtu.com>
35906
35907 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 35908 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
35909 constraints to initrd allocation (based on code from
35910 loader/i386/pc/linux.c). Without them, initrd was allocated too high
35911 for Linux to find it.
ebaaf49b 35912
dfab719f 359132008-11-14 Robert Millan <rmh@aybabtu.com>
35914
35915 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
35916 order to cope with duplicate slashes.
35917
10fc3eb9 359182008-11-14 Robert Millan <rmh@aybabtu.com>
35919
35920 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
35921 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
35922 don't want to mess with lower memory, because it is used in the Linux
35923 loader.
35924
35925 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 35926 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 35927 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
35928 is in our heap (probably as a result of it being corrupted during
2f2a3442 35929 decompression). Add #error instance with comment to explain why this
35930 loader isn't currently usable on PC/BIOS.
10fc3eb9 35931
e2e07847 359322008-11-14 Robert Millan <rmh@aybabtu.com>
35933
35934 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 35935 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 35936
fe8e8d69 359372008-11-12 Robert Millan <rmh@aybabtu.com>
35938
35939 Make loader/i386/linux.c buildable on i386-pc (although disabled).
35940
35941 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
35942 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
35943 from here ...
35944 * include/grub/i386/pc/memory.h: ... to here.
35945
976b07d0 359462008-11-12 Robert Millan <rmh@aybabtu.com>
35947
35948 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
35949 split).
35950
35951 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
35952 (grub_console_cur_color, grub_console_real_putchar)
35953 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35954 (grub_console_setcolorstate, grub_console_setcolor)
35955 (grub_console_getcolor): Move from here ...
35956 * include/grub/i386/vga_common.h: ... to here (new file).
35957
35958 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
35959 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
35960 `<grub/i386/io.h>'.
35961 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
35962 `<grub/i386/vga_common.h>'.
35963
76679cd3 359642008-11-12 Robert Millan <rmh@aybabtu.com>
35965
35966 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35967 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35968 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35969 variables.
35970 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35971 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35972
35973 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35974 grub_console_init() with call to grub_vga_text_init().
35975 (grub_machine_fini): Replace call to
35976 grub_console_fini() with call to grub_vga_text_fini() and
35977 grub_at_keyboard_fini().
35978
35979 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35980 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35981 (grub_console_setcolorstate, grub_console_setcolor)
35982 (grub_console_getcolor): New function prototypes.
35983
35984 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35985 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35986 (grub_vga_text_setcursor): Static-ize.
35987 (grub_vga_text_term): New structure.
35988 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35989
35990 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35991 (grub_console_cur_color, grub_console_standard_color)
35992 (grub_console_normal_color, grub_console_highlight_color)
35993 (map_char, grub_console_putchar, grub_console_getcharwidth)
35994 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35995 (grub_console_getcolor): Move from here ...
35996 * term/i386/vga_common.c: ... to here (same function names).
35997
95b841d3 359982008-11-12 Robert Millan <rmh@aybabtu.com>
35999
36000 Use newly-added Multiboot support in coreboot.
36001
36002 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36003 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
36004
36005 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
36006 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
36007 (codestart): Store the MBI in `startup_multiboot_info' when we're
36008 being loaded using Multiboot.
36009
36010 * kern/i386/coreboot/init.c (grub_machine_init): Move
36011 grub_at_keyboard_init() call to beginning of function (useful for
36012 debugging). Call grub_machine_mmap_init() before attempting to use
36013 grub_machine_mmap_iterate().
36014 (grub_lower_mem, grub_upper_mem): Move from here ...
36015 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
36016 here (new file).
36017
36018 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
36019 function prototype.
36020
761ca975 360212008-11-12 Robert Millan <rmh@aybabtu.com>
36022
36023 Fix a regression introduced by the at_keyboard.mod split. Because
36024 some terminals are default on some platforms and non-default on
36025 others, the first terminal being registered determines which is
36026 going to be default.
36027
36028 * kern/term.c (grub_term_register_input): If this is the first
36029 terminal being registered, set it as the current one.
36030 (grub_term_register_output): Likewise.
36031
36032 * term/efi/console.c (grub_console_init): Do not call
36033 grub_term_set_current_output() or grub_term_set_current_input().
36034 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
36035 * term/i386/pc/console.c (grub_console_init): Likewise.
36036 (grub_console_fini): Do not call grub_term_set_current_input()
36037 (but leave grub_term_set_current_output() to restore text mode).
36038
6c529df7 360392008-11-10 Robert Millan <rmh@aybabtu.com>
36040
36041 * util/grub.d/00_header.in: Add backward compatibility check for
36042 versions of terminal.mod that don't understand `terminal_input' or
36043 `terminal_output'.
36044
132e4113 360452008-11-09 Robert Millan <rmh@aybabtu.com>
36046
36047 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
36048 `terminal_input' / `terminal_output', not `terminal'.
36049
ac293d50 360502008-11-08 Robert Millan <rmh@aybabtu.com>
36051
36052 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 36053 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 36054
0025933a 360552008-11-08 Robert Millan <rmh@aybabtu.com>
36056
36057 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 36058 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 36059 members. Update all users.
36060 * util/console.c (grub_ncurses_term): Split in ...
36061 (grub_ncurses_term_input): ... this, and ...
36062 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 36063 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 36064
37c86336 360652008-11-08 Robert Millan <rmh@aybabtu.com>
36066
36067 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
36068 (PKGDATA): Add $(pkgdata_SRCDIR).
36069 (pkglib_BUILDDIR): New variable.
36070 (pkgdata_SRCDIR): New variable.
36071 (build_env.mk): New target.
36072 (include_DATA): New variable.
36073 (install-local): Install $(include_DATA) files in $(includedir).
36074
b6c15a2d 360752008-11-07 Pavel Roskin <proski@gnu.org>
36076
d99d46f1 36077 * gendistlist.sh: Use C locale for sorting to ensure consistent
36078 output on all systems.
36079
b6c15a2d 36080 * util/grub.d/00_header.in: Remove incorrect space before
36081 "serial".
36082
c32ee8c9 360832008-11-07 Robert Millan <rmh@aybabtu.com>
36084
36085 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
36086 per specification.
36087 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
36088 * loader/multiboot_loader.c (find_multi_boot2_header): New function
36089 (based on find_multi_boot1_header).
36090 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
36091 using find_multi_boot2_header(), and abort if neither Multiboot or
36092 Multiboot headers were found.
36093
651c29b7 360942008-11-07 Robert Millan <rmh@aybabtu.com>
36095
36096 Modularize at_keyboard.mod:
36097
36098 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
36099 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
36100 (at_keyboard_mod_LDFLAGS): New variables.
36101
36102 Actual terminal split:
36103
36104 * include/grub/term.h (struct grub_term): Split in ...
36105 (struct grub_term_input): ... this, and ...
36106 (struct grub_term_output): ... this. Update all users.
36107 (grub_term_set_current): Split in ...
36108 (grub_term_set_current_input): ... this, and ...
36109 (grub_term_set_current_output): ... this.
36110 (grub_term_get_current): Split in ...
36111 (grub_term_get_current_input): ... this, and ...
36112 (grub_term_get_current_output): ... this.
36113 (grub_term_register): Split in ...
36114 (grub_term_register_input): ... this, and ...
36115 (grub_term_register_output): ... this.
36116 (grub_term_unregister): Split in ...
36117 (grub_term_unregister_input): ... this, and ...
36118 (grub_term_unregister_output): ... this.
36119 (grub_term_iterate): Split in ...
36120 (grub_term_iterate_input): ... this, and ...
36121 (grub_term_iterate_output): ... this.
36122
36123 * kern/term.c (grub_term_list): Split in ...
36124 (grub_term_list_input): ... this, and ...
36125 (grub_term_list_output): ... this. Update all users.
36126 (grub_cur_term): Split in ...
36127 (grub_cur_term_input): ... this, and ...
36128 (grub_cur_term_output): ... this. Update all users.
36129 (grub_term_set_current): Split in ...
36130 (grub_term_set_current_input): ... this, and ...
36131 (grub_term_set_current_output): ... this.
36132 (grub_term_get_current): Split in ...
36133 (grub_term_get_current_input): ... this, and ...
36134 (grub_term_get_current_output): ... this.
36135 (grub_term_register): Split in ...
36136 (grub_term_register_input): ... this, and ...
36137 (grub_term_register_output): ... this.
36138 (grub_term_unregister): Split in ...
36139 (grub_term_unregister_input): ... this, and ...
36140 (grub_term_unregister_output): ... this.
36141 (grub_term_iterate): Split in ...
36142 (grub_term_iterate_input): ... this, and ...
36143 (grub_term_iterate_output): ... this.
36144
36145 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
36146 a check for input and one for output (and only attempt to get keys
36147 from user when input works).
36148
36149 * util/grub-probe.c (grub_term_get_current): Split in ...
36150 (grub_term_get_current_input): ... this, and ...
36151 (grub_term_get_current_output): ... this.
36152 * util/grub-fstest.c: Likewise.
36153 * util/i386/pc/grub-setup.c: Likewise.
36154 * util/grub-editenv.c: Likewise.
36155
36156 Portability adjustments:
36157
36158 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36159 `term/i386/pc/at_keyboard.c'.
36160 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36161 grub_keyboard_controller_init() (now handled by terminal .init).
36162 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36163 grub_at_keyboard_init().
36164 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36165 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36166 at_keyboard.mod via input terminal interface).
36167 * include/grub/i386/coreboot/console.h: Convert into a stub for
36168 `<grub/i386/pc/console.h>'.
36169
36170 Migrate full terminals to new API:
36171
36172 * term/efi/console.c (grub_console_term): Split into ...
36173 (grub_console_term_input): ... this, and ...
36174 (grub_console_term_output): ... this. Update all users.
36175 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36176 (grub_ofconsole_init): Split into ...
36177 (grub_ofconsole_init_input): ... this, and ...
36178 (grub_ofconsole_init_output): ... this.
36179 (grub_ofconsole_term): Split into ...
36180 (grub_ofconsole_term_input): ... this, and ...
36181 (grub_ofconsole_term_output): ... this. Update all users.
36182 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36183 (grub_serial_term_input): ... this, and ...
36184 (grub_serial_term_output): ... this. Update all users.
36185 * term/i386/pc/console.c (grub_console_term): Split into ...
36186 (grub_console_term_input): ... this, and ...
36187 (grub_console_term_output): ... this. Update all users.
36188 (grub_console_term_input): Only enable it on PC/BIOS platform.
36189 (grub_console_init): Remove grub_keyboard_controller_init() call.
36190
36191 Migrate input terminals to new API:
36192
36193 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36194 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36195 i386-specific anyway).
36196 (grub_console_checkkey): Rename to ...
36197 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36198 users.
36199 (grub_keyboard_controller_orig): New variable.
36200 (grub_console_getkey): Rename to ...
36201 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36202 users.
36203 (grub_keyboard_controller_init): Static-ize. Save original
36204 controller value so that it can be restored ...
36205 (grub_keyboard_controller_fini): ... here (new function).
36206 (grub_at_keyboard_term): New structure.
36207 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36208 functions.
36209
36210 Migrate output terminals to new API:
36211
36212 * term/i386/pc/vga.c (grub_vga_term): Change type to
36213 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36214 members. Update all users.
36215 * term/gfxterm.c (grub_video_term): Change type to
36216 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36217 members. Update all users.
36218 * include/grub/i386/pc/console.h (grub_console_checkkey)
36219 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36220 etc).
36221
36222 Migrate `terminal' command and userland tools to new API:
36223
36224 * commands/terminal.c (grub_cmd_terminal): Split into ...
36225 (grub_cmd_terminal_input): ... this, and ...
36226 (grub_cmd_terminal_output): ... this.
36227 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36228 `terminal_input' and `terminal_output'.
36229 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36230 `terminal_input' / `terminal_output' API.
36231 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36232 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36233 provided ${GRUB_TERMINAL}, convert it).
36234
96e5d876 362352008-11-04 Robert Millan <rmh@aybabtu.com>
36236
36237 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36238 for FreeBSD.
36239 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36240
556f3775 362412008-11-03 Bean <bean123ch@gmail.com>
36242
36243 * kern/elf.c (grub_elf32_load): Revert to previous code.
36244 (grub_elf64_load): Likewise.
36245
36246 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36247
926b9823 362482008-11-01 Robert Millan <rmh@aybabtu.com>
36249
36250 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36251 (TARGET_CPPFLAGS): Likewise.
36252 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36253
1432e958 362542008-11-01 Carles Pina i Estany <carles@pina.cat>
36255
36256 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36257
dba3f844 362582008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 36259
36260 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36261 addition of objects until the code is not going to be able to fail.
36262
dba3f844 362632008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 36264
36265 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36266 (add a missing NULL check, and correct them by moving the pointer
36267 operations after the actual check).
36268
7ab28c21 362692008-10-29 Robert Millan <rmh@aybabtu.com>
36270
36271 * util/i386/pc/grub-install.in: Handle empty string as output from
36272 make_system_path_relative_to_its_root().
36273
1b7748eb 362742008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36275
36276 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36277 circular metadata worst case scenario. If the metadata is circular
36278 then copy the wrap in place.
36279 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36280 project lib/format_text/layout.h
36281 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36282
c9618ab2 362832008-10-03 Felix Zielcke <fzielcke@z-51.de>
36284
7a36edca 36285 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 36286
bf981c62 362872008-10-03 Felix Zielcke <fzielcke@z-51.de>
36288
36289 * util/update-grub_lib.in: Mention filename in warning message.
36290
6d994591 362912008-09-29 Felix Zielcke <fzielcke@z-51.de>
36292
36293 * NEWS: Update for rename of update-grub to grub-mkconfig.
36294
18ade780 362952008-09-29 Felix Zielcke <fzielcke@z-51.de>
36296
36297 * util/update-grub_lib.in: Copy to ...
36298 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 36299 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 36300 * util/update-grub.in: Rename to ...
36301 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36302 option. Add `--output' option to allow users to specify the generated
36303 configuration file. Default to stdout.
36304 (update_grub_dir): Rename to ...
36305 (grub_mkconfig_dir): ... this.
36306 (grub_cfg): Default to an empty string.
36307 * conf/common.rmk (update-grub): Rename to ...
36308 (grub-mkconfig): ... this.
36309 (update-grub_lib): Copy to ...
36310 (grub-mkconfig_lib): ... this.
36311 (update-grub_SCRIPTS): Copy to ...
36312 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36313 (update-grub_DATA): Rename to ...
36314 (grub-mkconfig_DATA): ... this.
36315
556ce6ac 363162008-09-28 Robert Millan <rmh@aybabtu.com>
36317
36318 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36319 to `modified'. Add the real `created' field.
36320 (grub_iso9660_uuid): Use `modified' rather than `created' for
36321 constructing the UUID.
36322
363232008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 36324
36325 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36326 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36327
92274e85 363282008-09-28 Bean <bean123ch@gmail.com>
36329
36330 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36331 Thanks to Christian Franke for finding this bug.
36332
add6f17a 363332008-09-25 Robert Millan <rmh@aybabtu.com>
36334
36335 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36336 instances of grub_util_get_disk_name() (see previous commit).
36337
d2a367b8 363382008-09-25 Robert Millan <rmh@aybabtu.com>
36339
36340 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36341 `util/i386/get_disk_name.c'.
36342 * conf/i386-efi.rmk: Likewise.
36343 * conf/x86_64-efi.rmk: Likewise.
36344 * conf/i386-coreboot.rmk: Likewise.
36345 * conf/i386-ieee1275.rmk: Likewise.
36346 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36347 `util/ieee1275/get_disk_name.c'.
36348 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36349 * util/ieee1275/get_disk_name.c: Remove file.
36350 * util/i386/get_disk_name.c: Remove file.
36351 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36352 "hd%d" for device.map entries, rather than using
36353 grub_util_get_disk_name().
36354
81a06771 363552008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 36356
36357 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36358 warning.
36359 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36360
5a004279 363612008-09-24 Carles Pina i Estany <carles@pina.cat>
36362
36363 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36364 Changed to 0x5100.
36365 (GRUB_TERM_PPAGE): Changed to 0x4900.
36366
397093d3 363672008-09-24 Robert Millan <rmh@aybabtu.com>
36368
36369 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36370 macros (they were i386-pc specific).
36371 * include/grub/sparc64/ieee1275/console.h: Likewise.
36372 * include/grub/efi/console.h: Likewise.
36373
a91b6c7c 363742008-09-22 Bean <bean123ch@gmail.com>
36375
36376 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36377 resident and in attribute list.
36378
36379 * include/grub/ntfs.h (BMP_LEN): Removed.
36380
c40fd116 363812008-09-22 Bean <bean123ch@gmail.com>
36382
81a06771 36383 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 36384 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36385
36386 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36387 error occurs, as grub_disk_open will call grub_disk_close, which will
36388 call p->close (scsi).
36389
81a06771 363902008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 36391
36392 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36393 (AC_PREREQ): Bumped to 2.59.
36394 (AC_TRY_COMPILE): Replace obsolete macro with ...
36395 (AC_COMPILE_IFELSE): ... this.
36396 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36397 (AC_LINK_IFELSE): ... this.
36398
5dc43410 363992008-09-21 Felix Zielcke <fzielcke@z-51.de>
36400
36401 * autogen.sh: Add a call to `gendistlist.sh'.
36402
9035dce4 364032008-09-19 Christian Franke <franke@computer.org>
36404
36405 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36406 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36407 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36408 Export __enable_execute_stack() to modules.
36409 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36410 New function.
36411
7fd75377 364122008-09-09 Felix Zielcke <fzielcke@z-51.de>
36413
040030b3 36414 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36415 Sort the list.
36416
364172008-09-09 Felix Zielcke <fzielcke@z-51.de>
36418
36419 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 36420 #include <grub/util/hostdisk.h>.
36421
89d5ffcf 364222008-09-08 Robert Millan <rmh@aybabtu.com>
36423
36424 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36425 segments when their filesz is zero (grub_file_read() interprets
81a06771 36426 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 36427 Use `lowest_segment' rather than 0 for calculating the current
36428 segment load address.
36429
40da438f 364302008-09-08 Robert Millan <rmh@aybabtu.com>
36431
36432 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36433 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36434 clobbered useful information.
36435
ddbf5556 364362008-09-08 Robert Millan <rmh@aybabtu.com>
36437
36438 * include/grub/util/biosdisk.h: Move to ...
36439 * include/grub/util/hostdisk.h: ... here. Update all users.
36440 * util/biosdisk.c: Move to ...
36441 * util/hostdisk.c: ... here. Update all users.
36442
783d0f48 364432008-09-07 Robert Millan <rmh@aybabtu.com>
36444
36445 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
36446 variables.
36447 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
36448 and length can be stored directly in the `mbi->mmap_addr' and
36449 `mbi->mmap_length' struct fields.
36450
548e2ea5 364512008-09-07 Robert Millan <rmh@aybabtu.com>
36452
36453 * conf/i386.rmk: New file. Provides declaration for building
36454 `cpuid.mod'.
36455 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
36456 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
36457 variables.
36458 Include `conf/i386.mk'.
36459 * conf/i386-efi.rmk: Likewise.
36460 * conf/x86_64-efi.rmk: Likewise.
36461 * conf/i386-coreboot.rmk: Likewise.
36462 * conf/i386-ieee1275.rmk: Likewise.
36463
0ea85a37 364642008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
36465
36466 Based on patch created by Colin D Bennett <colin@gibibit.com>.
36467 Adds optimization support for BGR based modes.
36468
36469 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
36470 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36471 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36472 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36473 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36474 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36475 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36476 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36477 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36478 (grub_video_i386_vbeblit_index_index): Likewise.
36479 (grub_video_i386_vbeblit_replace_directN): Added.
36480 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36481 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36482 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36483 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36484 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36485 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 36486 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 36487 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36488 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36489 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36490 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36491 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36492 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36493
36494 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
36495 (grub_video_i386_vbefill_R8G8B8): Likewise.
36496 (grub_video_i386_vbefill_index): Likewise.
36497 (grub_video_i386_vbefill_direct32): Added.
36498 (grub_video_i386_vbefill_direct24): Likewise.
36499 (grub_video_i386_vbefill_direct16): Likewise.
36500 (grub_video_i386_vbefill_direct8): Likewise.
36501
81a06771 36502 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 36503 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
36504 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
36505 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
36506 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
36507 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 36508
0ea85a37 36509 * video/video.c (grub_video_get_blit_format): Updated to use new
36510 blit formats. Added handling for 16 bit color modes.
81a06771 36511
36512 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 36513 fillers.
36514 (common_blitter): Updated to use new blitters.
36515
36516 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
36517 Removed.
36518 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36519 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36520 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36521 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36522 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36523 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36524 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36525 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36526 (grub_video_i386_vbeblit_index_index): Likewise.
36527 (grub_video_i386_vbeblit_replace_directN): Added.
36528 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36529 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36530 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36531 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36532 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36533 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36534 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36535 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36536 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36537 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36538 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36539 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36540 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 36541
0ea85a37 36542 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
36543 (grub_video_i386_vbefill_R8G8B8): Likewise.
36544 (grub_video_i386_vbefill_index): Likewise.
36545 (grub_video_i386_vbefill_direct32): Added.
36546 (grub_video_i386_vbefill_direct24): Likewise.
36547 (grub_video_i386_vbefill_direct16): Likewise.
36548 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 36549
0ea85a37 36550 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
36551 types.
81a06771 36552
0ea85a37 36553 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
36554 types.
81a06771 36555
0ea85a37 36556 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
36557 blitter types.
81a06771 36558
0ea85a37 36559 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
36560 types.
36561
e8a83df6 365622008-09-06 Felix Zielcke <fzielcke@z-51.de>
36563
36564 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
36565 RAID level 1.
36566
6bcd8ee5 365672008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 36568
6bcd8ee5 36569 * fs/iso9660.c (grub_iso9660_date): New structure.
36570 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
36571 (grub_iso9660_uuid): New function.
c375ae58 36572
59261157 365732008-09-05 Bean <bean123ch@gmail.com>
36574
36575 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
36576
36577 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
36578 insensitive bit for names in Win32 and Win32 & DOS namespace.
36579
36580 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
36581
36582 * include/grub/types.h (LONG_MAX): Likewise.
36583
58b6645a 365842008-09-04 Felix Zielcke <fzielcke@z-51.de>
36585
4ee55921 36586 * util/getroot.c: Include <config.h>.
36587 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
36588 add support for /dev/md/N devices and handle LVM double dash escaping.
36589
365902008-09-04 Felix Zielcke <fzielcke@z-51.de>
36591
36592 * config.guess: Update to latest version from config git.
36593 * config.sub: Likewise.
58b6645a 36594
9124f65d 365952008-09-03 Robert Millan <rmh@aybabtu.com>
36596
36597 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
36598 `disk->total_sectors'.
36599
81a06771 366002008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 36601
36602 * include/grub/normal.h: Fixed incorrect comment for
36603 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
36604
81a06771 366052008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 36606
36607 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
36608 values with defines.
36609
36610 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
36611 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
36612 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
36613 (GRUB_VBE_MODEATTR_COLOR): Likewise.
36614 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
36615 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
36616 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
36617 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
36618 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
36619 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
36620 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
36621 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
36622 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
36623 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
36624 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
36625 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
36626 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
36627 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
36628 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
36629
93d5cbf8 366302008-08-31 Robert Millan <rmh@aybabtu.com>
36631
36632 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
36633 declaration.
36634 (grub_multiboot): Fix a few warnings.
36635
21751d50 366362008-08-31 Robert Millan <rmh@aybabtu.com>
36637
36638 * loader/i386/pc/multiboot.c: Update comment not to say that
36639 boot_device support is unimplemented.
36640
e27a75c5 366412008-08-31 Robert Millan <rmh@aybabtu.com>
36642
36643 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
36644 or memory map support are unimplemented.
36645
81a06771 366462008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 36647
36648 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
36649
81a06771 366502008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 36651
36652 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
36653 total video memory in 'vbeinfo' output; show color format details for
36654 each video mode.
36655
7c5d8d95 366562008-08-30 Pavel Roskin <proski@gnu.org>
36657
36658 * util/genmoddep.c: Remove for real this time.
36659 * DISTLIST: Remove util/genmoddep.c.
36660
4cebd25a 366612008-08-30 Robert Millan <rmh@aybabtu.com>
36662
36663 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
36664 as required by Multiboot spec (it was already 4-byte aligned, but
36665 only by chance).
36666
b497a269 366672008-08-29 Pavel Roskin <proski@gnu.org>
36668
e3925185 36669 * kern/powerpc/ieee1275/crt0.S: Rename to ...
36670 * kern/powerpc/ieee1275/startup.S: ... this.
36671 * conf/powerpc-ieee1275.rmk: Adjust for the above.
36672 * DISTLIST: Likewise.
36673
b497a269 36674 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
36675 grub/cpu/kernel.h. Add start label for consistency with other
36676 platforms. Add grub_prefix immediately after start. Add jump
36677 to the code after grub_prefix.
36678 * include/grub/powerpc/kernel.h: Provide valid values for
36679 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
36680
6e5a42fe 366812008-08-29 Bean <bean123ch@gmail.com>
36682
36683 * configure.ac: Change host_os to cygwin for mingw.
36684 (asprintf): New check for function.
36685
36686 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
36687 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
36688
36689 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 36690 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 36691 sync, sleep and grub_util_get_disk_size for mingw.
36692
36693 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
36694 to get size in mingw.
36695 (open_device): Use flag O_BINARY if it's defined.
36696 (find_root_device): Add dummy code for mingw.
36697
36698 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
36699 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
36700 (get_scsi_disk_name): Return 0 for mingw.
36701
36702 * util/hostfs.c: #include <grub/util/misc.h>.
36703 (grub_hostfs_open): Use "rb" flag to open file, use
36704 grub_util_get_disk_size to get disk size for mingw.
36705
36706 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
36707 (asprintf): New function if HAVE_ASPRINTF is not set.
36708 (sync): New function for mingw.
36709 (sleep): Likewise.
36710 (grub_util_get_disk_size): Likewise.
36711
ab3f2673 367122008-08-28 Pavel Roskin <proski@gnu.org>
36713
36714 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36715 kern/time.c.
36716
1c282483 367172008-08-28 Robert Millan <rmh@aybabtu.com>
36718
36719 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
36720
678e849c 367212008-08-28 Robert Millan <rmh@aybabtu.com>
36722
36723 Change find_grub_drive() syntax so it doesn't prevent it from
36724 detecting NULL names as errors.
36725
36726 * util/biosdisk.c (find_grub_drive): Move free slot search code
36727 from here ...
36728 (find_free_slot): ... to here.
36729 (read_device_map): Use find_free_slot() to search for free slots.
36730
965c75ca 367312008-08-27 Marco Gerards <marco@gnu.org>
36732
36733 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
36734 (scsi_mod_SOURCES): New variable.
36735 (scsi_mod_CFLAGS): Likewise
36736 (scsi_mod_LDFLAGS): Likewise.
36737
36738 * disk/scsi.c: New file.
36739
36740 * include/grub/scsi.h: Likewise.
36741
36742 * include/grub/scsicmd.h: Likewise.
36743
36744 * disk/ata.c: Include <grub/scsi.h>.
36745 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
36746 instead.
36747 (grub_ata_iterate): Skip ATAPI devices.
36748 (grub_ata_open): Only handle ATAPI devices.
36749 (struct grub_atapi_read): Removed.
36750 (grub_atapi_readsector): Likewise.
36751 (grub_ata_read): No longer handle ATAPI devices.
36752 (grub_ata_write): Likewise.
36753 (grub_atapi_iterate): New function.
36754 (grub_atapi_read): Likewise.
36755 (grub_atapi_write): Likewise.
36756 (grub_atapi_open): Likewise.
36757 (grub_atapi_close): Likewise.
36758 (grub_atapi_dev): New variable.
36759 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
36760 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
36761
36762 * include/grub/disk.h (enum grub_disk_dev_id): Add
36763 `GRUB_DISK_DEVICE_SCSI_ID'.
36764
c07ae501 367652008-08-26 Robert Millan <rmh@aybabtu.com>
36766
36767 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
36768 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
36769 descriptive.
36770
5ed20adc 367712008-08-23 Bean <bean123ch@gmail.com>
36772
36773 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
36774 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36775 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
36776 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
36777 dm_nv.mod.
36778 (raid5rec_mod_SOURCES): New macro.
36779 (raid5rec_mod_CFLAGS): Likewise.
36780 (raid5rec_mod_LDFLAGS): Likewise.
36781 (raid6rec_mod_SOURCES): Likewise.
36782 (raid6rec_mod_CFLAGS): Likewise.
36783 (raid6rec_mod_LDFLAGS): Likewise.
36784 (mdraid_mod_SOURCES): Likewise.
36785 (mdraid_mod_CFLAGS): Likewise.
36786 (mdraid_mod_LDFLAGS): Likewise.
36787 (dm_nv_mod_SOURCES): Likewise.
36788 (dm_nv_mod_CFLAGS): Likewise.
36789 (dm_nv_mod_LDFLAGS): Likewise.
36790
36791 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
36792 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36793 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36794
36795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
36796 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36797
36798 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36799
36800 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36801
36802 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36803
36804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36805
36806 * disk/raid5_recover.c: New file.
36807
36808 * disk/raid6_recover.c: Likewise.
36809
36810 * disk/mdraid_linux.c: Likewise.
36811
36812 * disk/dmraid_nvidia.c: Likewise.
36813
36814 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
36815 ULONG_MAX.
36816
36817 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
36818 calculate the size of raid device.
36819 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
36820 different layout of raid5.
36821 (grub_raid_scan_device): Remove code specific to mdraid.
36822 (grub_raid_list): New variable.
36823 (free_array): New function.
36824 (grub_raid_register): Likewise.
36825 (grub_raid_unregister): Likewise.
36826 (grub_raid_rescan): Likewise.
36827 (GRUB_MOD_INIT): Don't iterate device here.
36828 (GRUB_MOD_FINI): Use free_array to release resource.
36829
36830 * include/grub/raid.h: Remove macro and structure specific to mdraid.
36831 (grub_raid5_recover_func_t): New function variable type.
36832 (grub_raid6_recover_func_t): Likewise.
36833 (grub_raid5_recover_func): New variable.
36834 (grub_raid6_recover_func): Likewise.
36835 (grub_raid_register): New function.
36836 (grub_raid_unregister): Likewise.
36837 (grub_raid_rescan): Likewise.
36838 (grub_raid_block_xor): Likewise.
36839
36840 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
36841 (CMD_CRC): New macro.
36842 (part): Removed.
36843 (read_file): Handle device as well as file.
36844 (cmd_crc): New function.
36845 (fstest): Handle multiple disks.
36846 (options): Remove part, raw and long, add root and diskcount.
36847 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 36848 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 36849 add handling for the new options, support multiple disks.
36850
36851 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
36852
29c18915 368532008-08-23 Bean <bean123ch@gmail.com>
36854
36855 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
36856
36857 * genfslist.sh: Ignore kernel.mod.
36858
36859 * genpartmaplist.sh: Likewise.
36860
8415f261 368612008-08-23 Robert Millan <rmh@aybabtu.com>
36862
36863 * util/getroot.c (find_root_device): Skip anything that starts with
36864 a dot, not just directories. This avoids things like /dev/.tmp.md0.
36865
d5a7dc5b 368662008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 36867
d5a7dc5b 36868 * util/update-grub.in (GRUB_GFXMODE): Export variable.
36869 * util/grub.d/00_header.in: Allow the administrator to change default
36870 gfxmode via ${GRUB_GFXMODE}.
36871
380cfbb4 368722008-08-21 Felix Zielcke <fzielcke@z-51.de>
36873
36874 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
36875
c9baafe7 368762008-08-21 Robert Millan <rmh@aybabtu.com>
36877
36878 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
36879 loader.
36880 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
36881 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
36882
e290bef2 368832008-08-20 Carles Pina i Estany <carles@pina.cat>
36884
36885 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
36886 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
36887
f9dbfc96 368882008-08-19 Robert Millan <rmh@aybabtu.com>
36889
36890 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
36891 (struct grub_virtual_screen): Remove `cursor_color'.
36892 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
36893 initialization.
36894 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
36895
dd6bd6ab 368962008-08-18 Robert Millan <rmh@aybabtu.com>
36897
36898 Unify (identical) linux_normal.c files.
36899 * loader/i386/efi/linux_normal.c: Move from here ...
36900 * loader/linux_normal.c: ... to here. Update all users.
36901 * loader/i386/pc/linux_normal.c: Delete. Update all users.
36902 * loader/i386/ieee1275/linux_normal.c: Likewise.
36903
7f42f83e 369042008-08-18 Robert Millan <rmh@aybabtu.com>
36905
36906 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
36907 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
36908 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
36909 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
36910 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
36911 New macros.
36912 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
36913 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
36914 (GRUB_LINUX_CL_END_OFFSET): ... to here.
36915 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
36916 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
36917 (GRUB_EFI_CL_END_OFFSET): Rename to ...
36918 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
36919 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
36920 Initialize `params->video_cursor_x' and `params->video_cursor_y'
36921 portably using grub_getxy().
36922 Replace `-EFI' with `-bzImage' in boot message.
36923
38487ddb 369242008-08-17 Robert Millan <rmh@aybabtu.com>
36925
36926 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
36927
deceb3ec 369282008-08-17 Robert Millan <rmh@aybabtu.com>
36929
36930 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
36931
36932 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
36933 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
36934 (grub_machine_mmap_iterate): New function declaration.
36935 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
36936 structure.
36937 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
36938 macros.
36939
36940 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
36941 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
36942 Move e820 parsing from here ...
36943 * kern/i386/pc/mmap.c: New file.
36944 (grub_machine_mmap_iterate): ... to here.
36945
36946 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
36947 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
36948 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
36949 (grub_available_iterate): Redeclare to return `void', and redeclare
36950 its hook to use grub_uint64_t as addr and size parameters, and rename
36951 to ...
36952 (grub_machine_mmap_iterate): ... this. Update all users.
36953
36954 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
36955 to make it more readable. Rename to ...
36956 (grub_machine_mmap_iterate): ... this.
36957
36958 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
36959 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
36960 (grub_multiboot): Allocate an extra region after the payload, and fill
36961 it with a Multiboot memory map. Adjust a.out loader to calculate size
36962 with the extra space.
36963 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36964 with the extra space.
36965
f8aa0f43 369662008-08-17 Carles Pina i Estany <carles@pina.cat>
36967
9807deb9 36968 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36969
605f5bb6 369702008-08-17 Felix Zielcke <fzielcke@z-51.de>
36971
36972 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36973 mdate-sh to the list `find' searches for.
36974 * DISTLIST: Regenerated.
36975
210db6c6 369762008-08-16 Felix Zielcke <fzielcke@z-51.de>
36977
36978 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36979 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36980 genmoddep.awk, gensymlist.sh.in.
36981 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36982 * DISTLIST: Regenerated.
48cdbfd4 36983 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36984
1082b929 369852008-08-16 Robert Millan <rmh@aybabtu.com>
36986
36987 * disk/raid.c (grub_raid_init): Handle/report errors set by
36988 grub_device_iterate().
36989 * disk/lvm.c (grub_lvm_init): Likewise.
36990
42ce5170 369912008-08-15 Bean <bean123ch@gmail.com>
36992
36993 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36994 and datehook.mod.
36995 (datetime_mod_SOURCES): New macro.
36996 (datetime_mod_CFLAGS): Likewise.
36997 (datetime_mod_LDFLAGS): Likewise.
36998 (date_mod_SOURCES): Likewise.
36999 (date_mod_CFLAGS): Likewise.
37000 (date_mod_LDFLAGS): Likewise.
37001 (datehook_mod_SOURCES): Likewise.
37002 (datehook_mod_CFLAGS): Likewise.
37003 (datehook_mod_LDFLAGS): Likewise.
37004
37005 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37006 and datehook.mod.
37007 (datetime_mod_SOURCES): New macro.
37008 (datetime_mod_CFLAGS): Likewise.
37009 (datetime_mod_LDFLAGS): Likewise.
37010 (date_mod_SOURCES): Likewise.
37011 (date_mod_CFLAGS): Likewise.
37012 (date_mod_LDFLAGS): Likewise.
37013 (datehook_mod_SOURCES): Likewise.
37014 (datehook_mod_CFLAGS): Likewise.
37015 (datehook_mod_LDFLAGS): Likewise.
37016
37017 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37018 and datehook.mod.
37019 (datetime_mod_SOURCES): New macro.
37020 (datetime_mod_CFLAGS): Likewise.
37021 (datetime_mod_LDFLAGS): Likewise.
37022 (date_mod_SOURCES): Likewise.
37023 (date_mod_CFLAGS): Likewise.
37024 (date_mod_LDFLAGS): Likewise.
37025 (datehook_mod_SOURCES): Likewise.
37026 (datehook_mod_CFLAGS): Likewise.
37027 (datehook_mod_LDFLAGS): Likewise.
37028
37029 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37030 and datehook.mod.
37031 (datetime_mod_SOURCES): New macro.
37032 (datetime_mod_CFLAGS): Likewise.
37033 (datetime_mod_LDFLAGS): Likewise.
37034 (date_mod_SOURCES): Likewise.
37035 (date_mod_CFLAGS): Likewise.
37036 (date_mod_LDFLAGS): Likewise.
37037 (datehook_mod_SOURCES): Likewise.
37038 (datehook_mod_CFLAGS): Likewise.
37039 (datehook_mod_LDFLAGS): Likewise.
37040
37041 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37042 and datehook.mod.
37043 (datetime_mod_SOURCES): New macro.
37044 (datetime_mod_CFLAGS): Likewise.
37045 (datetime_mod_LDFLAGS): Likewise.
37046 (date_mod_SOURCES): Likewise.
37047 (date_mod_CFLAGS): Likewise.
37048 (date_mod_LDFLAGS): Likewise.
37049 (datehook_mod_SOURCES): Likewise.
37050 (datehook_mod_CFLAGS): Likewise.
37051 (datehook_mod_LDFLAGS): Likewise.
37052
37053 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
37054
37055 * commands/date.c: New file.
37056
37057 * hook/datehook.c: Likewise.
37058
37059 * include/grub/lib/datetime.h: Likewise.
37060
37061 * include/grub/i386/cmos.h: Likewise.
37062
37063 * lib/datetime.c: Likewise.
37064
37065 * lib/i386/datetime.c: Likewise.
37066
37067 * lib/efi/datetime.c: Likewise.
37068
0e9242da 370692008-08-14 Robert Millan <rmh@aybabtu.com>
37070
37071 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
37072 (grub_mkelfimage_SOURCES): New variable.
37073 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
37074
37075 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
37076 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
37077 * conf/powerpc-ieee1275.rmk: Likewise.
37078 * conf/i386-ieee1275.rmk: Likewise.
37079
37080 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
37081 * kern/i386/coreboot/init.c: Likewise.
37082
37083 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
37084 with `<grub/cpu/kernel.h>'.
37085 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
37086 to ...
37087 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
37088 * kern/i386/coreboot/startup.S: Likewise.
37089
37090 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
37091 (GRUB_MOD_GAP): Remove.
37092 * include/grub/powerpc/kernel.h: New file.
37093 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
37094 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37095 * include/grub/i386/kernel.h: New file.
37096 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
37097 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
37098 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37099
37100 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
37101 `grub-mkelfimage'.
37102 Use --directory when invoking grub_mkimage.
37103
37104 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
37105 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
37106 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
37107 and GRUB_KERNEL_CPU_PREFIX.
37108
b86408f8 371092008-08-14 Felix Zielcke <fzielcke@z-51.de>
37110
d5e619ca 37111 * include/grub/err.h (grub_err_printf): New function prototype.
37112 * util/misc.c (grub_err_printf): New function.
37113 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
37114 grub_printf.
37115 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 37116
7161f0e0 371172008-08-13 Robert Millan <rmh@aybabtu.com>
37118
37119 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
37120
a1967522 371212008-08-13 Robert Millan <rmh@aybabtu.com>
37122
37123 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
37124 boot entry.
37125
371458b5 371262008-08-12 Robert Millan <rmh@aybabtu.com>
37127
37128 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
37129 of the relocation code from here ...
37130 (grub_multiboot): ... to here.
37131 (forward_relocator, backward_relocator): Move from here ...
37132 * kern/i386/loader.S (grub_multiboot_forward_relocator)
37133 (grub_multiboot_backward_relocator): ... to here.
37134 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
37135 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
37136 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
37137 (grub_multiboot_forward_relocator_end)
37138 (grub_multiboot_backward_relocator)
37139 (grub_multiboot_backward_relocator_end): New variables.
37140
05f9452b 371412008-08-12 Bean <bean123ch@gmail.com>
37142
37143 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
37144
20024ab0 371452008-08-11 Robert Millan <rmh@aybabtu.com>
37146
37147 * kern/i386/linuxbios/startup.S: Move from here ...
37148 * kern/i386/coreboot/startup.S: ... to here.
37149
37150 * kern/i386/linuxbios/init.c: Move from here ...
37151 * kern/i386/coreboot/init.c: ... to here.
37152
37153 * kern/i386/linuxbios/table.c: Move from here ...
37154 * kern/i386/coreboot/mmap.c: ... to here.
37155
37156 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37157
e352e9cd 371582008-08-11 Robert Millan <rmh@aybabtu.com>
37159
37160 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37161 errors. Leave it to the upper layer to handle them.
37162
2d05bc6a 371632008-08-09 Christian Franke <franke@computer.org>
37164
37165 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37166 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37167 Install `grub.d/10_windows' only on Cygwin.
37168 * configure.ac: Add subst of `target_os'.
37169 Check `target_os' also before setting TARGET_OBJ2ELF.
37170 Add `--enable-grub-pe2elf'.
37171
042bd419 371722008-08-08 Robert Millan <rmh@aybabtu.com>
37173
37174 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37175 (grub_last_time): Change type to grub_uint64_t.
37176 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37177 (grub_disk_close): Likewise.
37178
37179 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37180 (run_menu): Migrate code from to using grub_get_time_ms().
37181
37182 * util/misc.c (grub_get_time_ms): New function.
37183
7f280db5 371842008-08-08 Marco Gerards <marco@gnu.org>
37185
37186 * disk/ata.c (grub_ata_regget): Change return type to
37187 `grub_uint8_t'.
37188 (grub_ata_regget2): Likewise.
37189 (grub_ata_wait_status): New function.
37190 (grub_ata_wait_busy): Removed function, updated all users to use
37191 `grub_ata_wait_status'.
37192 (grub_ata_wait_drq): Likewise.
37193 (grub_ata_cmd): New function.
37194 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37195 error handling.
37196 (grub_ata_pio_write): Add error handling.
37197 (grub_atapi_identify): Likewise.
37198 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37199 handling.
37200 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37201 handling. Actually use the detected registers. Reorder the
37202 detection logic such that it is easier to read.
37203 (grub_ata_pciinit): Do not assign the same ID to each controller.
37204 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37205 handling.
37206 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37207
37208 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37209
1fbc5e66 372102008-08-08 Marco Gerards <marco@gnu.org>
37211
37212 * NEWS: Update.
37213
819ce6c0 372142008-08-07 Bean <bean123ch@gmail.com>
37215
37216 * include/grub/x86_64/pci.h: New file.
37217
5c41d44d 372182008-08-07 Christian Franke <franke@computer.org>
37219
37220 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37221 (TIMER2_GATE): Likewise.
37222 (grub_pit_wait): Add enable/disable of the timer2 gate
37223 bit of port 0x61. This fixes a possible infinite loop.
37224
5ebc275d 372252008-08-07 Bean <bean123ch@gmail.com>
37226
37227 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37228 kern/i386/tsc.c and kern/i386/pit.c.
37229
37230 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37231 x86_64 platform.
37232
37233 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37234 <grub/i386/tsc.h>.
37235
37236 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37237
e383b3d0 372382008-08-07 Bean <bean123ch@gmail.com>
37239
37240 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37241
37242 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37243
37244 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37245 multiple inclusion. Add #include <grub/types.h>.
37246
1cbb58ac 372472008-08-06 Christian Franke <franke@computer.org>
37248
37249 * conf/common.rmk: Build and install `10_windows'.
37250 * util/grub.d/10_windows.in: New script.
37251
337f5a1e 372522008-08-06 Pavel Roskin <proski@gnu.org>
37253
37254 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37255
057bc4ac 372562008-08-06 Robert Millan <rmh@aybabtu.com>
37257
37258 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37259 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37260
2b99f123 372612008-08-06 Bean <bean123ch@gmail.com>
37262
37263 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37264 (grub_pxefs_fs_int): Remove dummy definition.
37265 (grub_pxefs_open): Use data->block_size to store the current block
37266 size setting.
37267 (grub_pxefs_read): Use block size stored in data->block_size. As the
37268 value of grub_pxe_blksize can be changed after the file is opened.
37269
9f0234cb 372702008-08-06 Bean <bean123ch@gmail.com>
37271
37272 * fs/i386/pc/pxe.c (curr_file): new variable.
37273 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37274 require the dummy internal file system anymore.
37275 (grub_pxefs_read): Removed.
37276 (grub_pxefs_close): Likewise.
37277 (grub_pxefs_fs_int): Likewise.
37278 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37279 connection when we switch file.
37280 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37281
a55d42e0 372822008-08-06 Robert Millan <rmh@aybabtu.com>
37283
37284 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37285 `halt.mod'.
37286 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37287 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37288
37289 * kern/i386/halt.c: New file.
37290 * kern/i386/reboot.c: Likewise.
37291 * include/grub/i386/reboot.h: Likewise.
37292 * include/grub/i386/halt.h: Likewise.
37293
37294 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37295 Include `<grub/cpu/halt.h>'.
37296 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37297 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37298
37299 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37300 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37301 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37302 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37303 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37304 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37305 from here ...
37306 * include/grub/i386/at_keyboard.h: ... to here.
37307
24371d26 373082008-08-05 Robert Millan <rmh@aybabtu.com>
37309
37310 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37311 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37312 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37313 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37314 `kern/generic/millisleep.c'.
37315
37316 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37317 instead of grub_get_rtc().
37318 (grub_tsc_init): Initialize `tsc_boot_time'.
37319
37320 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37321 (grub_machine_init): Use grub_tsc_init() rather than
37322 installing an RTC-based handler via grub_install_get_time_ms().
37323
37324 * kern/i386/pit.c: New file.
37325 * include/grub/i386/pit.h: Likewise.
37326
9e7007b3 373272008-08-05 Bean <bean123ch@gmail.com>
37328
37329 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37330
37331 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37332 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37333 (pxe_mod_SOURCES): New macro.
37334 (pxe_mod_CFLAGS): Likewise.
37335 (pxe_mod_LDFLAGS): Likewise.
37336 (pxecmd_mod_SOURCES): Likewise.
37337 (pxecmd_mod_CFLAGS): Likewise.
37338 (pxecmd_mod_LDFLAGS): Likewise.
37339
37340 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37341 (grub_pxe_call): Likewise.
37342
37343 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37344
37345 * commands/i386/pc/pxecmd.c: New file.
37346
9f0234cb 37347 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 37348
37349 * include/grub/i386/pc/pxe.h: Likewise.
37350
6977d49f 373512008-08-05 Bean <bean123ch@gmail.com>
37352
37353 * util/console.c (grub_console_cur_color): New variable.
37354 (grub_console_standard_color): Likewise.
37355 (grub_console_normal_color): Likewise.
37356 (grub_console_highlight_color): Likewise.
37357 (color_map): Likewise.
37358 (use_color): Likewise.
37359 (NUM_COLORS): New macro.
37360 (grub_ncurses_setcolorstate): Handle color properly.
37361 (grub_ncurses_setcolor): Don't change color here, just remember the
37362 settings, color will be set in grub_ncurses_setcolorstate.
37363 (grub_ncurses_getcolor): New function.
37364 (grub_ncurses_init): Initialize color pairs.
37365 (grub_ncurses_term): New member grub_ncurses_getcolor.
37366
9c2ff3ee 373672008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 37368
9c2ff3ee 37369 High resolution timer support. Implemented for x86 CPUs using TSC.
37370 Extracted generic grub_millisleep() so it's linked in only as needed.
37371 This requires a Pentium compatible CPU; if the RDTSC instruction is
37372 not supported, then it falls back on the generic grub_get_time_ms()
37373 implementation that uses the machine's RTC.
37374
37375 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37376 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37377 `kern/generic/millisleep.c'.
37378
37379 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37380 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37381
37382 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37383 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37384
37385 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37386
37387 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37388 `kern/generic/millisleep.c'.
37389
37390 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37391
37392 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37393
37394 * kern/generic/rtc_get_time_ms.c: New file.
37395
37396 * kern/generic/millisleep.c: New file.
337f5a1e 37397
9c2ff3ee 37398 * kern/misc.c: Don't include
37399 <kern/time.h> anymore.
37400 (grub_millisleep_generic): Removed.
37401
37402 * commands/sleep.c (grub_interruptible_millisleep): Uses
37403 grub_get_time_ms() instead of grub_get_rtc().
37404
37405 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37406 function.
37407 (grub_cpu_is_cpuid_supported): New inline function.
37408 (grub_cpu_is_tsc_supported): New inline function.
37409 (grub_tsc_init): New function prototype.
37410 (grub_tsc_get_time_ms): New function prototype.
37411
37412 * kern/i386/tsc.c (grub_get_time_ms): New file.
37413
37414 * include/grub/time.h: Include <grub/types.h.
37415 (grub_millisleep_generic): Removed.
37416 (grub_get_time_ms): New prototype.
37417 (grub_install_get_time_ms): New prototype.
37418 (grub_rtc_get_time_ms): New prototype.
37419
37420 * kern/time.c (grub_get_time_ms): New function.
37421 (grub_install_get_time_ms): New function.
37422
37423 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37424 <grub/time.h> anymore.
37425 (grub_millisleep): Removed.
37426 (grub_machine_init): Call grub_tsc_init.
37427
37428 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37429 get_time_ms() implementation.
37430
37431 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37432 (ieee1275_get_time_ms): New function.
37433 (grub_machine_init): Install get_time_ms() implementation.
37434
37435 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37436 (grub_machine_init): Call grub_tsc_init().
37437 (grub_millisleep): Removed.
bf06a93f 37438
9c2ff3ee 37439 * kern/ieee1275/init.c (grub_millisleep): Removed.
37440 (grub_machine_init): Install ieee1275_get_time_ms()
37441 implementation.
37442 (ieee1275_get_time_ms): New function.
37443 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
37444 real work.
37445
9ec92aaf 374462008-08-05 Marco Gerards <marco@gnu.org>
37447
37448 * disk/ata.c: Include <grub/pci.h>.
37449 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
37450 (grub_ata_initialize): Rewritten.
37451 (grub_ata_device_initialize): New function.
37452
8d23f507 374532008-08-04 Pavel Roskin <proski@gnu.org>
37454
37455 * kern/main.c: Include grub/mm.h.
37456
5e15ee3d 374572008-08-04 Robert Millan <rmh@aybabtu.com>
37458
37459 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
37460 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
37461 corruption problem).
37462
a9053f8f 374632008-08-04 Robert Millan <rmh@aybabtu.com>
37464
37465 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
37466 warnings introduced in my last commit.
37467
dd19c7d7 374682008-08-03 Robert Millan <rmh@aybabtu.com>
37469
37470 Make PCI available on all i386 architectures.
37471
37472 * include/grub/i386/pc/pci.h: Move from here ...
37473 * include/grub/i386/pci.h: ... to here.
37474
37475 * include/grub/i386/pc/pci.h: Remove.
37476 * include/grub/i386/efi/pci.h: Remove.
37477 * include/grub/x86_64/efi/pci.h: Remove.
37478
37479 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
37480 `<grub/cpu/pci.h>'.
37481
37482 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
37483 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
37484 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
37485
37486 * conf/i386-ieee1275.rmk: Likewise.
37487
e14a6184 374882008-08-03 Robert Millan <rmh@aybabtu.com>
37489
37490 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
37491 (grub_console_setcursor): Make it possible to set cursor off.
37492
52768e37 374932008-08-03 Robert Millan <rmh@aybabtu.com>
37494
37495 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
37496 of modules instead of assuming which platform provides what.
37497 * util/update-grub.in: Likewise.
37498
2d52f57f 374992008-08-03 Robert Millan <rmh@aybabtu.com>
37500
37501 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
37502 instead of `grub_install_dos_part' to determine whether a drive needs
37503 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 37504 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 37505
2a5cd121 375062008-08-02 Robert Millan <rmh@aybabtu.com>
37507
37508 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
37509
93808428 375102008-08-02 Robert Millan <rmh@aybabtu.com>
37511
37512 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
37513 of informational grub_dprintf() calls.
37514
3bd0a12a 375152008-08-02 Robert Millan <rmh@aybabtu.com>
37516
37517 * disk/memdisk.c (memdisk_size): Don't initialize.
37518 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
37519
37520 * include/grub/i386/pc/kernel.h
37521 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
37522 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
37523 (grub_memdisk_image_size, grub_arch_memdisk_addr)
37524 (grub_arch_memdisk_size): Remove.
37525
37526 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
37527 field (was only used to transfer a constant). Add `type' field to
37528 support multiple module types.
37529 (grub_module_iterate): New function.
37530
37531 * kern/device.c (grub_device_open): Do not hide error messages
37532 when grub_disk_open() fails. Use grub_print_error() instead.
37533
37534 * kern/i386/pc/init.c (grub_arch_modules_addr)
37535 (grub_arch_memdisk_size): Remove functions.
37536 (grub_arch_modules_addr): Return the module address in high memory
37537 (now that it isn't copied anymore).
37538
37539 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
37540 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
37541 decompression routine (grub_total_module_size already includes that
37542 now). Don't copy modules back to low memory.
37543
37544 * kern/main.c: Include `<grub/mm.h>'.
37545 (grub_load_modules): Split out (and use) ...
37546 (grub_module_iterate): ... this function, which iterates through
37547 module objects and runs a hook.
37548 Comment out grub_mm_init_region() call, as it would cause non-ELF
37549 modules to be overwritten.
37550
37551 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
37552 the memdisk image in its own region, make it part of the module list.
37553 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
37554 (main): Parse --memdisk|-m option, and pass user-provided path as
37555 parameter to generate_image().
37556 (add_segments): Pass `memdisk_path' down to load_modules().
37557 (load_modules): Embed memdisk image in module section when requested.
37558 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
37559 `header.type' instead of `header.offset'.
37560
37561 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
37562 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
37563 (memdisk_mod_LDFLAGS): New variables.
37564 * conf/i386-coreboot.rmk: Likewise.
37565 * conf/i386-ieee1275.rmk: Likewise.
37566
a927cc73 375672008-08-02 Robert Millan <rmh@aybabtu.com>
37568
37569 * loader/i386/pc/multiboot.c (playground, forward_relocator)
37570 (backward_relocator): New variables. Used to allocate and relocate
37571 the payload, respectively.
37572 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 37573 address, install the appropriate relocator code in each bound of
a927cc73 37574 the payload, and set the entry point such that
37575 grub_multiboot_real_boot() will jump to one of them.
37576
37577 * kern/i386/loader.S (grub_multiboot_payload_size)
37578 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37579 (grub_multiboot_payload_entry_offset): New variables.
37580 (grub_multiboot_real_boot): Set cpu context to what the relocator
37581 expects, and jump to the relocator instead of the payload.
37582
37583 * include/grub/i386/loader.h (grub_multiboot_payload_size)
37584 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37585 (grub_multiboot_payload_entry_offset): Export.
37586
b15d8a0c 375872008-08-01 Bean <bean123ch@gmail.com>
37588
37589 * normal/menu_entry.c (editor_getline): Don't return the original
37590 string as result, as it will be released by lexer once it has done
37591 using it.
37592
cdfb3d22 375932008-08-01 Robert Millan <rmh@aybabtu.com>
37594
37595 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
37596 within menuentries, not before them.
37597 util/grub.d/10_hurd.in: Likewise.
37598
9175e93d 375992008-08-01 Bean <bean123ch@gmail.com>
37600
37601 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
37602 (bufio_mod_SOURCES): New macro.
37603 (bufio_mod_CFLAGS): Likewise.
37604 (bufio_mod_LDFLAGS): Likewise.
37605
37606 * include/grub/bufio.h: New file.
37607
37608 * io/bufio.c: Likewise.
37609
37610 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
37611 (grub_video_reader_png): Use grub_buffile_open to open file.
37612
37613 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
37614 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
37615
37616 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
37617 (grub_video_reader_tga): Use grub_buffile_open to open file.
37618
37619 * font/manager.c: Include <grub/bufio.h>.
37620 (add_font): Use grub_buffile_open to open file.
37621
3d8383e7 376222008-07-31 Robert Millan <rmh@aybabtu.com>
37623
37624 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
37625 ELF segments, use a macro for arbitrarily accessing any of them instead
37626 of preparing a pointer that allows access to one at a time.
37627 (grub_multiboot_load_elf64): Likewise.
37628
16e641b6 376292008-07-31 Bean <bean123ch@gmail.com>
37630
37631 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
37632 GRUB_KERNEL_MACHINE_DATA_END.
37633
59198b72 376342008-07-30 Robert Millan <rmh@aybabtu.com>
37635
37636 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
37637 Increase from 0x50 to 0x60.
37638 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
37639 use UUIDs to identify the root drive for them. If that's not
37640 possible, abort.
37641 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
37642 check, for cross-disk installs.
37643
ae88bca3 376442008-07-30 Robert Millan <rmh@aybabtu.com>
37645
37646 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
37647 is non-empty, use it to set the `prefix' environment variable instead
37648 of the usual approach.
37649 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
37650 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
37651 environment variable instead of dummy make_install_device().
37652
37653 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
37654 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 37655 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 37656
37657 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
37658 New variable reference.
37659 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
37660 New macro. Defines offset of `grub_prefix' within startup.S (relative
37661 to `start').
37662 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
37663 section within startup.S (relative to `start').
37664 * include/grub/i386/coreboot/kernel.h: Likewise.
37665
37666 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
37667 Overwrite grub_prefix with its contents, at the beginning of the
37668 first segment.
37669 (main): Understand -p|--prefix.
37670
14f41dd1 376712008-07-30 Robert Millan <rmh@aybabtu.com>
37672
37673 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
37674
4ca049a3 376752008-07-30 Robert Millan <rmh@aybabtu.com>
37676
37677 * term/i386/pc/vga_text.c (grub_console_cls): Use
37678 grub_console_gotoxy() to go back to beginning of the screen.
37679 Found by Patrick Georgi <patrick.georgi@coresystems.de>
37680
2921d337 376812008-07-29 Christian Franke <franke@computer.org>
37682
37683 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37684 Add conversion of emulated mount points on Cygwin.
37685
b609876d 376862008-07-29 Christian Franke <franke@computer.org>
37687
37688 * util/update-grub.in: Add a check for admin
37689 group on Cygwin.
37690 Remove old `grub.cfg.new' before creation.
37691 Add `-f' to `mv' to handle the different filesystem
37692 semantics of Windows.
37693
e93e4679 376942008-07-29 Bean <bean123ch@gmail.com>
37695
37696 * normal/main.c (get_line): Fix buffer overflow bug.
37697
41694fd0 376982008-07-28 Robert Millan <rmh@aybabtu.com>
37699
37700 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
37701 (struct grub_apple_header): New struct. Describes the layout of
37702 the partmap header.
37703 (apple_partition_map_iterate): Check the header magic as well as the
37704 partition magic (which was already being checked).
37705
cfd0b4e6 377062008-07-28 Pavel Roskin <proski@gnu.org>
37707
37708 * genmk.rb: Add a warning to the beginning of the output that
37709 it's a generated file and should not be edited.
37710
93cce016 377112008-07-28 Robert Millan <rmh@aybabtu.com>
37712
37713 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37714 with the same number are found, just use issue a warning with
37715 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 37716
cd1df915 377172008-07-27 Robert Millan <rmh@aybabtu.com>
37718
37719 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
37720 information.
37721
b70a8427 377222008-07-27 Bean <bean123ch@gmail.com>
37723
37724 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
37725 (grub_fat_find_dir): Ignore case when comparing filename.
37726
8f5e379f 377272008-07-27 Bean <bean123ch@gmail.com>
37728
37729 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
37730 smallino, as it's more descriptive, and i8count can be confused with
37731 the other field count.
37732 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
37733 inode type.
37734
a85cd5a0 377352008-07-27 Bean <bean123ch@gmail.com>
37736
37737 * commands/crc.c: New file.
37738
37739 * lib/crc.c: Likewise.
37740
37741 * include/grub/lib/crc.h: Likewise.
37742
37743 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
37744
37745 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
37746 (hexdump): Move this function to ...
37747
37748 * lib/hexdump.c: ... here.
37749
37750 * include/grub/hexdump.h: Renamed to ...
37751
37752 * include/grub/lib/hexdump.h: ... this.
37753
37754 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
37755
37756 * util/grub-editenv.c: Likewise.
37757
37758 * include/envblk.h: Renamed to ...
37759
37760 * include/lib/envblk.h: ... this.
37761
37762 * util/envblk.c: Renamed to ...
37763
37764 * lib/envblk.c: ... this.
37765
37766 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
37767 lib/hexdump.c.
37768 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
37769 (pkglib_MODULES): Add crc.mod.
37770 (hexdump_mod_SOURCES): Add lib/hexdump.c.
37771 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
37772 (crc_mod_SOURCES): New macro.
37773 (crc_mod_CFLAGS): Likewise.
37774 (crc_mod_LDFLAGS): Likewise.
37775
37776 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
37777
37778 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37779
37780 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37781
37782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37783
37784 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37785
c298def0 377862008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 37787
37788 * commands/help.c: Include <grub/term.h>.
37789 (TERM_WIDTH): Removed. Updated all users.
37790
cc349fb3 377912008-07-27 Pavel Roskin <proski@gnu.org>
37792
37793 * util/getroot.c (find_root_device): Rephrase a comment to avoid
37794 spurious warnings about a comment within a comment.
37795
9051607e 377962008-07-25 Robert Millan <rmh@aybabtu.com>
37797
37798 * util/getroot.c (find_root_device): Skip devices that match
37799 /dev/dm-[0-9]. This lets the real device be found for any type of
37800 abstraction (LVM, EVMS, RAID..).
37801 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
37802 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
37803 device is found first, find_root_device() will now skip it.
37804
01453bfc 378052008-07-24 Pavel Roskin <proski@gnu.org>
37806
37807 * include/grub/types.h: Use __builtin_bswap32() and
37808 __builtin_bswap64() with gcc 4.3 and newer.
37809
6af9849f 378102008-07-24 Christian Franke <franke@computer.org>
37811
3a0fa256 37812 * util/i386/pc/grub-install.in: If `--debug' is specified,
37813 pass `--verbose' to grub-setup.
37814 Abort script if make_system_path_relative_to_its_root() fails.
37815
7810e747 378162008-07-24 Bean <bean123ch@gmail.com>
37817
37818 * configure.ac: Fixed a bug caused by the previous cygwin patch,
37819 variable `target_platform' should be `platform'.
37820
42290e17 378212008-07-24 Bean <bean123ch@gmail.com>
37822
51cc5193 37823 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 37824 (grub_png_init_fixed_block): New function.
37825 (grub_png_decode_image_data): Handle fixed huffman code compression.
37826
2a8a80e4 378272008-07-24 Bean <bean123ch@gmail.com>
37828
37829 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
37830 (grub_pe2elf_SOURCES): New macro.
37831 (CLEANFILES): Add grub-pe2elf.
37832
37833 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
37834 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
37835 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
37836 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
37837 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
37838 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
37839 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
37840 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
37841 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
37842 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
37843 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
37844 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
37845 (GRUB_PE32_DT_FUNCTION): Likewise.
37846 (GRUB_PE32_REL_I386_DIR32): Likewise.
37847 (GRUB_PE32_REL_I386_REL32): Likewise.
37848 (grub_pe32_symbol): New structure.
37849 (grub_pe32_reloc): Likewise.
37850
37851 * util/grub-pe2elf.c: New file.
37852
37853 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
37854 start symbol in non pc platform.
37855
37856 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
37857
37858 The following patches are from Christian Franke.
37859
37860 * include/grub/dl.h: Remove .previous, gas supports this only
37861 for ELF format.
37862
37863 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
37864 Remove .type, gas supports this only for ELF format.
37865
37866 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
37867 nullbytes in symbol table. This fixes an infinite loop if table is
37868 zero filled.
37869
37870 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
37871 TARGET_IMG_LDFLAGS and EXEEXT.
37872
37873 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
37874 TARGET_IMG_LDFLAGS_AC.
37875 (grub_CHECK_STACK_ARG_PROBE): New function.
37876
37877 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
37878
37879 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
37880
37881 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
37882 to set TARGET_IMG_LD* accordingly.
37883 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
37884 Add call to grub_CHECK_STACK_ARG_PROBE.
37885 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
37886
37887 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
37888
37889 * genmk.rb: Add EXEEXT to CLEANFILES.
37890
12ccdb75 378912008-07-23 Robert Millan <rmh@aybabtu.com>
37892
37893 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
37894 define the codes for arrows and lines used for the menu).
37895 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
37896 as well.
37897
37898 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
37899 fonts, because the latter are too slow.
37900
18eeaf04 379012008-07-21 Bean <bean123ch@gmail.com>
37902
37903 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
37904 a20. Run keyboard test last, as it will cause macbook to halt.
37905
b095e2ad 379062008-07-18 Pavel Roskin <proski@gnu.org>
37907
37908 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
37909 load foreign architecture modules correctly anyway. Keep
37910 support for loading host architecture modules, whether we
37911 compile them or not.
37912
737feb35 379132008-07-17 Pavel Roskin <proski@gnu.org>
37914
3f4ce737 37915 * configure.ac: Use -m32 or -m64 regardless of whether we had to
37916 change target_cpu. The compiler default can mismatch target_cpu
37917 in any case.
37918
4ad2d049 37919 * disk/efi/efidisk.c: Fix format warnings on x86_64.
37920 * kern/efi/efi.c: Likewise.
37921
f6130a12 37922 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
37923 target compiler is functional.
37924 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
37925 are set up.
37926
58393a2d 37927 * configure.ac: Default to efi platform for x86_64-apple. Allow
37928 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
37929 adjustments from the rest, only do them if target is not
37930 explicitly given. Merge other adjustments with the final sanity
37931 check. Remove an extraneous check for supported CPU. Be
37932 specific which CPU and which platform is not supported.
37933
737feb35 37934 * configure.ac: Default to pc platform for x86_64.
37935
546f966a 379362008-07-17 Robert Millan <rmh@aybabtu.com>
37937
37938 Partial LinuxBIOS -> Coreboot rename.
37939
37940 * conf/i386-linuxbios.rmk: Renamed to ...
37941 * conf/i386-coreboot.rmk: ... this.
37942 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
37943 * configure.ac: Accept "coreboot" as input platform (but maintain
37944 compatibility with "linuxbios").
37945 * include/grub/i386/linuxbios: Renamed to ...
37946 * include/grub/i386/coreboot: ... this.
37947
20011694 379482008-07-17 Bean <bean123ch@gmail.com>
37949
37950 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 37951 (appleldr_mod_SOURCE): New variable.
20011694 37952 (appleldr_mod_CFLAGS): Likewise.
37953 (appleldr_mod_LDFLAGS): Likewise.
37954 (pci_mod_SOURCES): Likewise.
37955 (pci_mod_CFLAGS): Likewise.
37956 (pci_mod_LDFLAGS): Likewise.
37957 (lspci_mod_SOURCES): Likewise.
37958 (lspci_mod_CFLAGS): Likewise.
37959 (lspci_mod_LDFLAGS): Likewise.
37960
37961 * conf/x86_64-efi.rmk: New file.
37962
37963 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37964 macro.
37965 (grub_efidisk_write): Likewise.
37966
37967 * include/efi/api.h (efi_call_0): New macro.
37968 (efi_call_1): Likewise.
37969 (efi_call_2): Likewise.
37970 (efi_call_3): Likewise.
37971 (efi_call_4): Likewise.
37972 (efi_call_5): Likewise.
37973 (efi_call_6): Likewise.
37974
37975 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37976 grub_rescue_cmd_chainloader.
37977
37978 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37979 (grub_pe32_optional_header): Change some fields based on i386 or
37980 x86_64 platform.
37981 (GRUB_PE32_PE32_MAGIC): Likewise.
37982
37983 * include/grub/efi/uga_draw.h: New file.
37984
37985 * include/grub/elf.h (STN_ABS): New constant.
37986 (R_X86_64_NONE): Relocation constant for x86_64.
37987 (R_X86_64_64): Likewise.
37988 (R_X86_64_PC32): Likewise.
37989 (R_X86_64_GOT32): Likewise.
37990 (R_X86_64_PLT32): Likewise.
37991 (R_X86_64_COPY): Likewise.
37992 (R_X86_64_GLOB_DAT): Likewise.
37993 (R_X86_64_JUMP_SLOT): Likewise.
37994 (R_X86_64_RELATIVE): Likewise.
37995 (R_X86_64_GOTPCREL): Likewise.
37996 (R_X86_64_32): Likewise.
37997 (R_X86_64_32S): Likewise.
37998 (R_X86_64_16): Likewise.
37999 (R_X86_64_PC16): Likewise.
38000 (R_X86_64_8): Likewise.
38001 (R_X86_64_PC8): Likewise.
38002
38003 * include/grub/i386/efi/pci.h: New file.
38004
38005 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
38006 Change it value based on platform.
38007 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
38008 (GRUB_E820_RAM): Likewise.
38009 (GRUB_E820_RESERVED): Likewise.
38010 (GRUB_E820_ACPI): Likewise.
38011 (GRUB_E820_NVS): Likewise.
38012 (GRUB_E820_EXEC_CODE): Likewise.
38013 (GRUB_E820_MAX_ENTRY): Likewise.
38014 (grub_e820_mmap): New structure.
38015 (linux_kernel_header): Change the efi field according to different
38016 kernel version, also field from linux_kernel_header.
38017
38018 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
38019
38020 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
38021 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
38022 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
38023 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
38024 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
38025 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
38026 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
38027 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
38028 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
38029 (GRUB_PCI_ADDR_IO_MASK): Likewise.
38030
38031 * include/grub/x86_64/efi/kernel.h: New file.
38032
38033 * include/grub/x86_64/efi/loader.h: Likewise.
38034
38035 * include/grub/x86_64/efi/machine.h: Likewise.
38036
38037 * include/grub/x86_64/efi/pci.h: Likewise.
38038
38039 * include/grub/x86_64/efi/time.h: Likewise.
38040
38041 * include/grub/x86_64/linux.h: Likewise.
38042
38043 * include/grub/x86_64/setjmp.h: Likewise.
38044
38045 * include/grub/x86_64/time.h: Likewise.
38046
38047 * include/grub/x86_64/types.h: Likewise.
38048
38049 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
38050 GRUB_TARGET_SIZEOF_VOID_P.
38051
38052 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
38053 (grub_efi_locate_handle): Likewise.
38054 (grub_efi_open_protocol): Likewise.
38055 (grub_efi_set_text_mode): Likewise.
38056 (grub_efi_stall): Likewise.
38057 (grub_exit): Likewise.
38058 (grub_reboot): Likewise.
38059 (grub_halt): Likewise.
38060 (grub_efi_exit_boot_services): Likewise.
38061 (grub_get_rtc): Likewise.
38062
38063 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
38064 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
38065 (grub_efi_allocate_pages): Wrap efi calls.
38066 (grub_efi_free_pages): Wrap efi calls.
38067 (grub_efi_get_memory_map): Wrap efi calls.
38068
38069 * kern/x86_64/dl.c: New file.
38070
38071 * kern/x86_64/efi/callwrap.S: Likewise.
38072
38073 * kern/x86_64/efi/startup.S: Likewise.
38074
38075 * loader/efi/appleloader.c: Likewise.
38076
38077 * loader/efi/chainloader.c (cmdline): New variable.
38078 (grub_chainloader_unload): Wrap efi calls.
38079 (grub_chainloader_boot): Likewise.
38080 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
38081 command line.
38082
38083 * loader/efi/chainloader_normal.c (chainloader_command):
38084 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
38085 command line.
38086
38087 * loader/i386/efi/linux.c (allocate_pages): Change allocation
38088 method.
38089 (grub_e820_add_region): New function.
38090 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
38091 booting.
38092 (grub_find_video_card): New function.
38093 (grub_linux_setup_video): New function.
38094 (grub_rescue_cmd_linux): Probe for video information.
38095
38096 * normal/x86_64/setjmp.S: New file.
38097
38098 * term/efi/console.c (map_char): New function.
38099 (grub_console_putchar): Map unicode char.
38100 (grub_console_checkkey): Wrap efi calls.
38101 (grub_console_getkey): Likewise.
38102 (grub_console_getwh): Likewise.
38103 (grub_console_gotoxy): Likewise.
38104 (grub_console_cls): Likewise.
38105 (grub_console_setcolorstate): Likewise.
38106 (grub_console_setcursor): Likewise.
38107
38108 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
38109
59652a20 381102008-07-16 Pavel Roskin <proski@gnu.org>
38111
ef294055 38112 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
38113 format strings.
38114
59652a20 38115 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
38116 pointer, not an integer. This fixes a warning and prevents
38117 precision loss on 64-bit systems.
38118 (relocate_addresses): Remove unneeded cast.
38119
afc3b5d7 381202008-07-15 Pavel Roskin <proski@gnu.org>
38121
506b2b3e 38122 * kern/i386/ieee1275/init.c: Include grub/cache.h.
38123
62ead89c 38124 * term/ieee1275/ofconsole.c: Disable code unused on i386.
38125
c4cd51d7 38126 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
38127 Fix comparison between signed and unsigned.
38128
0d3d8f28 38129 * include/grub/i386/ieee1275/console.h: Declare
38130 grub_console_init() and grub_console_fini().
38131
8804b286 38132 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
38133 It's empty and unused.
38134
ee01cf35 38135 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
38136 beginning to avoid warnings with some compilers.
38137
afc3b5d7 38138 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
38139 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
38140
e4e8eaa5 381412008-07-14 Pavel Roskin <proski@gnu.org>
38142
407aceb4 38143 * kern/env.c (grub_register_variable_hook): Don't copy empty
38144 string, it leaks memory. Pass "" to grub_env_set(), it should
38145 handle constant strings.
38146
e4e8eaa5 38147 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
38148 * commands/cmp.c (grub_cmd_cmp): Likewise.
38149 * kern/dl.c (grub_dl_flush_cache): Likewise.
38150 (grub_dl_load_core): Likewise.
38151 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
38152 (grub_elf64_load_phdrs): Likewise.
38153
d4e2dad3 381542008-07-13 Pavel Roskin <proski@gnu.org>
38155
38156 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38157 between signed and unsigned.
38158 (LzmaEnc_Finish): Fix warning about an unused parameter.
38159
aa24b516 381602008-07-13 Bean <bean123ch@gmail.com>
38161
38162 * Makefile.in (enable_lzo): New rule.
38163
38164 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38165
38166 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38167
38168 * boot/i386/pc/lnxboot.S: #include <config.h>.
38169
38170 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 38171 its value according to the compression algorithm used, lzo or lzma.
aa24b516 38172
38173 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38174 compression algorithm according to configure macro.
38175
38176 * kern/i386/pc/startup.S (codestart): Likewise.
38177
38178 * kern/i386/pc/lzma_decode.S: New file.
38179
38180 * include/grub/lib/LzFind.h: Likewise.
38181
38182 * include/grub/lib/LzHash.h: Likewise.
38183
38184 * include/grub/lib/LzmaDec.h: Likewise.
38185
38186 * include/grub/lib/LzmaEnc.h: Likewise.
38187
38188 * include/grub/lib/LzmaTypes.h: Likewise.
38189
38190 * lib/LzFind.c: Likewise.
38191
38192 * lib/LzmaDec.c: Likewise.
38193
38194 * lib/LzmaEnc.c: Likewise.
38195
4ae821ac 381962008-07-13 Bean <bean123ch@gmail.com>
38197
38198 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38199 (grub_ext4_extent_header): New structure.
38200 (grub_ext4_extent): Likewise.
38201 (grub_ext4_extent_idx): Likewise.
38202 (grub_ext4_find_leaf): New function.
38203 (grub_ext2_read_block): Handle extents.
38204
9a745147 382052008-07-12 Robert Millan <rmh@aybabtu.com>
38206
38207 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38208
d49a4cf6 382092008-07-11 Robert Millan <rmh@aybabtu.com>
38210
38211 * util/grub.d/40_custom.in: New file. Example on how to add custom
38212 entries to /etc/grub.d.
38213 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38214 40_custom (implicitly, by merging all the grub.d rules).
38215
947414b4 382162008-07-11 Pavel Roskin <proski@gnu.org>
38217
0059cf6f 38218 * commands/read.c (grub_getline): Fix invalid memory access.
38219 Don't add newline to the variable value.
38220
947414b4 38221 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38222 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38223 (serial_hw_get_port): Check validity of the port number.
38224 (grub_cmd_serial): Check return value of serial_hw_get_port().
38225
62a02d00 382262008-07-07 Pavel Roskin <proski@gnu.org>
38227
38228 * boot/i386/pc/diskboot.S (notification_string): Replace
38229 "Loading kernel" with just "loading". This is shorter, less
38230 confusing and saves a few bytes for possible future changes.
38231
3e5581b0 382322008-07-05 Pavel Roskin <proski@gnu.org>
38233
ea387a48 38234 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38235 size for ATAPI devices, they are undefined. Output sector
38236 number in decimal form.
38237
3e5581b0 38238 * disk/ata.c: Use named constants for status bits.
38239
fdecb8fd 382402008-07-04 Pavel Roskin <proski@gnu.org>
38241
bcd35b90 38242 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38243 grub_addr_t before casting it to the void pointer to fix a
38244 warning. Non-addressable regions are discarded earlier.
38245 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38246 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38247 (check_signature): Don't shadow table_header.
38248 (grub_linuxbios_table_iterate): Cast numeric constants to
38249 grub_linuxbios_table_header_t.
38250 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38251 grub_stop().
38252
af58ab3d 38253 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38254 prevent warnings.
38255
1759aa57 38256 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38257 pointer, which can cause warnings. Support 64-bit addresses.
38258
fdecb8fd 38259 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38260 of sizeof(long). This fixes PowerPC image generation on x86_64.
38261
8516d2a8 382622008-07-04 Robert Millan <rmh@aybabtu.com>
38263
38264 This fixes a performance issue when pc & gpt partmap iterators
38265 didn't abort iteration even after our hook found what it was
fe987087 38266 looking for (often causing expensive probes of non-existent drives).
8516d2a8 38267
38268 Some callers relied on previous buggy behaviour, since they would
34c44600 38269 raise an error when their own hooks caused early abortion of its
8516d2a8 38270 iteration.
38271
38272 * kern/device.c (grub_device_open): Improve error message.
38273 * disk/lvm.c (grub_lvm_open): Likewise.
38274 * disk/raid.c (grub_raid_open): Likewise.
38275
38276 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38277 when hook requests it, independently of grub_errno.
38278 (pc_partition_map_probe): Do not fail when find_func() caused
38279 early abortion of pc_partition_map_iterate().
38280
38281 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38282 when hook requests it, independently of grub_errno.
38283 (gpt_partition_map_probe): Do not fail when find_func() caused
38284 early abortion of gpt_partition_map_iterate().
38285
38286 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38287 when hook requests it, independently of grub_errno. Do not fail when
38288 part_map_iterate_hook() caused early abortion of p->iterate().
38289
38290 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38291 when grub_partition_iterate() returned with non-zero.
38292
277d0de9 382932008-07-03 Pavel Roskin <proski@gnu.org>
38294
38295 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38296 like we do in grub_ata_pio_read().
38297 (grub_ata_readwrite): Always write individual sectors. Fix the
38298 sector count for the remainder.
38299 (grub_ata_write): Enable writing to ATA devices. Correctly
38300 report error for ATAPI devices.
38301
d4c9b428 383022008-07-02 Pavel Roskin <proski@gnu.org>
38303
e43fc690 38304 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38305 warning.
38306
f707af42 38307 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38308 for every read sector, we already increment it for the whole
38309 batch. This fixes reading more than 256 sectors at once.
38310
11e16b15 38311 * util/grub-editenv.c (cmd_info): Cast argument to long
38312 explicitly. ptrdiff_t reduces to int on i386.
38313
cbabfdd4 38314 * util/grub-editenv.c (main): Be specific which parameter is
38315 missing.
38316
b8fbce0a 38317 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38318 (memdisk): Make memdisk_orig_addr a pointer.
38319
c9c8e606 38320 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38321 for file offsets, use grub_off_t instead. Fix printf format
38322 warnings.
38323
ca62e598 38324 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38325 there. Real unexpected warnings should not drown in the noise
38326 about known problems.
38327
ce8d1766 38328 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38329 grub_disk_addr_t for memory addresses.
38330
00c7a56a 38331 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38332 explicitly to fix a warning.
38333
08d3ef09 38334 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38335
cb71ba20 38336 * Makefile.in (MODULE_LDFLAGS): New variable.
38337 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38338 the linker accepts --build-id=none.
38339 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38340 MODULE_LDFLAGS.
38341 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38342
d4c9b428 38343 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38344 those in Linux XFS code. Provide a way to access 64-bit parent
38345 inode.
38346 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38347 the end of struct grub_xfs_dir_header.
38348
d4156eee 383492008-07-02 Bean <bean123ch@gmail.com>
38350
38351 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38352 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38353 and GRUB_IEEE1275_FLAG_NO_ANSI.
38354
38355 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38356 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38357 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38358
38359 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38360 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38361
38362 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38363 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38364
38365 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38366 esc sequence on non ANSI terminal.
38367 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38368
38369 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38370 beginning of file.
38371
2270f77b 383722008-07-02 Bean <bean123ch@gmail.com>
38373
38374 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38375 (grub_editenv_SOURCES): New variable.
38376 (pkglib_MODULES): Add loadenv.mod.
38377 (loadenv_mod_SOURCES): New variable.
38378 (loadenv_mod_CFLAGS): Likewise.
38379 (loadenv_mod_LDFLAGS): Likewise.
38380
38381 * include/grub/envblk.h: New file.
38382
38383 * util/envblk.c: New file.
38384
38385 * util/grub-editenv.c: New file.
38386
38387 * commands/loadenv.c: New file.
38388
0e9e51ec 383892008-07-01 Pavel Roskin <proski@gnu.org>
38390
d89b7634 38391 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38392 not unsigned char. This fixes warnings and is consistent with
38393 other tags.
38394
bf1835b1 38395 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38396
8222a04b 38397 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38398
6a42d99d 38399 * term/tparm.c (analyze): Always set *popcount.
38400
10b159d1 38401 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38402 cast to fix a warning.
38403
b8789f6c 38404 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38405 cast to suppress a warning.
38406
29d7e38a 38407 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38408 grub_fshelp_read_file() expects.
38409
f341f669 38410 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38411 write uuid as a 32-bit value in CPU byte order, so declare and
38412 use it as such.
38413
0e9e51ec 38414 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38415 long if the format specifier expects it.
38416 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38417 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38418 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38419 long to fix a warning.
38420 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38421 grub_dprintf() arguments to fix warnings.
38422
3aefa857 384232008-06-30 Pavel Roskin <proski@gnu.org>
38424
56c7668b 38425 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38426 install_bsd_part immediately before core.img is embedded or
38427 modified on disk. This fixes core.img verification if core.img
38428 cannot be embedded.
38429
3aefa857 38430 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38431 core_path to calculate the blocklist.
38432 Patch from Javier Martín <lordhabbit@gmail.com>
38433
5444088d 384342008-06-29 Robert Millan <rmh@aybabtu.com>
38435
38436 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38437 block to disk block.
38438 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38439 Patch from Niels Böhm <bitbucket@arcor.de>
38440
674835c8 384412008-06-29 Robert Millan <rmh@aybabtu.com>
38442
38443 * util/update-grub_lib.in (font_path): Search for fonts in
38444 /boot/grub first, which is more likely to be readable (we aren't
38445 deciding where fonts live, just looking for them).
38446
f527dbc8 384472008-06-26 Pavel Roskin <proski@gnu.org>
38448
6c2d8df6 38449 * util/biosdisk.c (read_device_map): Don't leave dead map
38450 entries for devices failing stat() check.
38451
f527dbc8 38452 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
38453 core_path_dev for the core.img path on the target device.
38454
aebe3d13 384552008-06-26 Robert Millan <rmh@aybabtu.com>
38456
38457 * disk/fs_uuid.c: New file.
38458 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
38459 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
38460 (fs_uuid_mod_LDFLAGS): New variables.
38461 * include/grub/disk.h (grub_disk_dev_id): Add
38462 `GRUB_DISK_DEVICE_UUID_ID'.
38463 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
38464 implement iterate().
38465
37aaf354 384662008-06-26 Robert Millan <rmh@aybabtu.com>
38467
38468 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
38469 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
38470 Linux image includes no initrd.
38471
25ff262a 384722008-06-21 Javier Martín <lordhabbit@gmail.com>
38473
38474 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
38475 call to resolve the core image location that effectively appended the
38476 name twice.
38477
76a2bd44 384782008-06-21 Robert Millan <rmh@aybabtu.com>
38479
38480 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
38481 call from here ...
38482
38483 * util/grub.d/10_hurd.in: ... to here ...
38484 * util/grub.d/10_linux.in: ... and here.
38485
650e1c79 384862008-06-19 Robert Millan <rmh@aybabtu.com>
38487
fe987087 38488 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 38489 after it has been set by grub_machine_set_prefix().
38490
6ce63911 384912008-06-19 Robert Millan <rmh@aybabtu.com>
38492
38493 * commands/search.c (search_label, search_fs_uuid, search_file): Print
38494 search result when not saving to variable, not the other way around.
38495 When saving to variable, abort iteration as soon as a match is found.
38496
73940cec 384972008-06-19 Robert Millan <rmh@aybabtu.com>
38498
38499 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
38500 check for partition that provides /boot/grub. Its logic is flawed,
38501 as it prevents prepare_grub_to_access_device() from being called
38502 multiple times.
38503
3c62a39d 385042008-06-19 Robert Millan <rmh@aybabtu.com>
38505
38506 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
38507 "insmod" command directly when abstraction modules are needed,
fe987087 38508 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 38509 since it had already been processed).
38510
47395a42 385112008-06-19 Pavel Roskin <proski@gnu.org>
38512
38513 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
38514 changed. This is needed in case GRUB_LIBDIR changes.
38515 * conf/i386-ieee1275.rmk: Likewise.
38516 * conf/i386-linuxbios.rmk: Likewise.
38517 * conf/i386-pc.rmk: Likewise.
38518 * conf/powerpc-ieee1275.rmk: Likewise.
38519
a145ac2d 385202008-06-18 Pavel Roskin <proski@gnu.org>
38521
38522 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
38523 kernel_elf_symlist.c to symlist.c for consistency with other
38524 architectures. Update all users.
38525 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38526
7847c51e 385272008-06-18 Robert Millan <rmh@aybabtu.com>
38528
38529 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
38530 it in prefix.
38531
38532 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
38533 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
38534 a RAID device, run setup() for all members independently on whether
38535 LVM abstraction is being used.
38536 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
38537 If grub-mkimage has set `*install_dos_part == -2', don't override this
38538 value.
38539 Perform *install_dos_part adjustments independently on whether
38540 we're embedding or not.
38541 Clarify error message when image is too big for embedding.
38542 Remove duplicate *install_dos_part stanza.
38543
b23e5644 385442008-06-17 Robert Millan <rmh@aybabtu.com>
38545
38546 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
38547 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
38548 variables.
38549 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
38550 values in grub_ofconsole_normal_color and
38551 grub_ofconsole_highlight_color (they're not directly related to
38552 background and foreground).
38553 (grub_ofconsole_setcolorstate): Extract background and foreground
38554 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
38555
0aac2f79 385562008-06-17 Robert Millan <rmh@aybabtu.com>
38557
38558 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
38559 /boot/grub for the check in last commit, not /boot (they could be
38560 different partitions).
38561
3cca7ef3 385622008-06-16 Robert Millan <rmh@aybabtu.com>
38563
38564 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
38565 asked to setup access for the same partition that provides /boot,
38566 don't bother using UUIDs since our root already has the value we
38567 want.
38568
347396d8 385692008-06-16 Robert Millan <rmh@aybabtu.com>
38570
38571 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
38572 I2O devices.
38573 Patch from Sven Mueller <sven@debian.org>.
38574
991477f8 385752008-06-16 Robert Millan <rmh@aybabtu.com>
38576
38577 * util/update-grub.in: Check for $EUID instead of $UID.
38578 Reported by Vincent Zweije.
38579
d31a32a1 385802008-06-16 Bean <bean123ch@gmail.com>
38581
fe987087 38582 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 38583 (grub_ext2_read_block): Likewise.
38584 (grub_ext2_read_inode): Likewise.
38585 (grub_ext2_mount): Likewise.
38586 (grub_ext2_close): Likewise.
38587 (grub_ext3_get_journal): Removed.
38588
fe987087 38589 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 38590 (grub_reiserfs_read_symlink): Likewise.
38591 (grub_reiserfs_mount): Likewise.
38592 (grub_reiserfs_open): Likewise.
38593 (grub_reiserfs_read): Likewise.
38594 (grub_reiserfs_close): Likewise.
38595 (grub_reiserfs_get_journal): Removed.
38596
38597 * fs/fshelp.c (grub_fshelp_read): Removed.
38598 (grub_fshelp_map_block): Likewise.
38599
38600 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
38601 (grub_fshelp_journal): Likewise.
38602 (grub_fshelp_read): Likewise.
38603 (grub_fshelp_map_block): Likewise.
38604
3540a760 386052008-06-16 Pavel Roskin <proski@gnu.org>
38606
38607 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
38608 floating point anymore.
38609 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
38610
95614c84 386112008-06-15 Pavel Roskin <proski@gnu.org>
38612
38613 * commands/ls.c (grub_ls_list_files): Use integer calculations
38614 for human readable format, avoid floating point use.
38615 * kern/misc.c (grub_ftoa): Remove.
38616 (grub_vsprintf): Remove floating point support.
38617
50465dd6 386182008-06-15 Robert Millan <rmh@aybabtu.com>
38619
fe6b695a 38620 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 38621 devices.
38622 Reported by Max Vozeler.
38623
a9207284 386242008-06-15 Robert Millan <rmh@aybabtu.com>
38625
38626 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
38627 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
38628 skipped later.
38629 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
38630 the beginning of the prefix.
38631
38632 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
38633 It is assumed that if we have a memdisk, grub-mkimage has set
38634 grub_prefix to include the "(memdisk)" drive in it.
38635
a7cbd45a 386362008-06-15 Robert Millan <rmh@aybabtu.com>
38637
38638 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
38639 Initialize keyboard controller after registering the terminal, so that
38640 grub_printf() can be called from grub_keyboard_controller_init().
38641
21cf716a 386422008-06-15 Robert Millan <rmh@aybabtu.com>
38643
38644 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
38645 extent-btree which is written as big endian on disk.
38646 Reported by Alain Greppin <al@chilibi.org>.
38647
23a64d8e 386482008-06-14 Robert Millan <rmh@aybabtu.com>
38649
38650 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
38651 * util/i386/pc/grub-install.in (modules): Likewise.
38652
d687651c 386532008-06-13 Pavel Roskin <proski@gnu.org>
38654
38655 * commands/ls.c (grub_ls_list_files): Fix format warnings.
38656
dfe9ddd4 386572008-06-13 Bean <bean123ch@gmail.com>
38658
38659 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
38660
38661 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
38662
38663 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
38664 to indicate sparse block.
38665
16ae7781 386662008-06-12 Pavel Roskin <proski@gnu.org>
38667
e6d1a308 38668 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
38669 number, grub_fshelp_read() does it for us.
38670
16ae7781 38671 * fs/fshelp.c (grub_fshelp_read): New function. Implement
38672 linear disk read with journal translation.
38673 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
38674 * include/grub/fshelp.h: Declare grub_fshelp_read().
38675
40fd3a2b 386762008-06-09 Pavel Roskin <proski@gnu.org>
38677
38678 * fs/minix.c (grub_minix_mount): Handle error reading
38679 superblock.
38680
f5679726 386812008-06-08 Robert Millan <rmh@aybabtu.com>
38682
38683 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
38684 don't append the RAID prefix afterwards.
38685 Reported by Clint Adams.
38686
ce525529 386872008-06-08 Robert Millan <rmh@aybabtu.com>
38688
38689 Based on description from Pavel:
38690 * kern/disk.c (grub_disk_check_range): Rename to ...
38691 (grub_disk_adjust_range): ... this. Add a comment explaining the
38692 tasks performed by this function.
38693
ad4936a0 386942008-06-08 Robert Millan <rmh@aybabtu.com>
38695
38696 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
38697 `num_serial' (for consistency with other variables).
38698 (struct grub_ntfs_data): Add `uuid' member.
38699 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
38700 (grub_ntfs_uuid): New function.
38701 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
38702
dc20b0f9 387032008-06-07 Pavel Roskin <proski@gnu.org>
38704
38705 * util/biosdisk.c (open_device): Revert last change to the
38706 function, it broke installation. The sector needs to be
38707 different dependent on which device is opened.
38708
c5e3cfba 387092008-06-06 Robert Millan <rmh@aybabtu.com>
38710
38711 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
38712 rest of GRUB, and breakage doesn't happen if its value were modified.
38713
38714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38715 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
38716 a constant (same value).
38717 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
38718 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
38719
26a1f8c4 387202008-06-06 Robert Millan <rmh@aybabtu.com>
38721
38722 * util/biosdisk.c (open_device): Do not modify sector offset when
38723 accessing a partition. kern/disk.c already handles this for us.
38724
25d6b327 387252008-06-06 Robert Millan <rmh@aybabtu.com>
38726
38727 * util/grub-emu.c (grub_machine_init): Move code in this function from
38728 here ...
38729 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
38730 segfault in case grub_printf() is called).
38731
38732 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
38733 grub_probe. Update all users not to explicitly add it again.
38734 (grub_device): New variable; contains corresponding device for grubdir.
38735 (fs_module, partmap_module, devabstraction_module): Pass
38736 `--device ${grub_device}' to grub_probe to avoid traversing /dev
38737 every time.
38738
9ece62fb 387392008-06-05 Robert Millan <rmh@aybabtu.com>
38740
38741 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
38742 is found, print it (same layout as with labels).
38743
1ad36d37 387442008-06-04 Robert Millan <rmh@aybabtu.com>
38745
38746 * util/biosdisk.c (get_drive): Rename to ...
38747 (find_grub_drive): ... this. Update all users.
38748
38749 (get_os_disk): Rename to ...
38750 (convert_system_partition_to_system_disk): ... this. Update all users.
38751
38752 (find_drive): Rename to ...
38753 (find_system_device): ... this. Update all users.
38754
e6a30859 387552008-06-04 Robert Millan <rmh@aybabtu.com>
38756
38757 * util/biosdisk.c (get_os_disk): Handle IDA devices.
38758 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38759 (make_device_map): Likewise.
38760
00c108a4 387612008-06-01 Robert Millan <rmh@aybabtu.com>
38762
38763 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
38764 before dereferencing it.
38765
38766 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
38767 union with fat12/fat16-specific ones. Add some new fields, including
38768 `num_serial' for both versions.
38769 (struct grub_fat_data): Add `uuid' member.
38770 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
38771 names. Initialize `data->uuid' using `num_serial'.
38772 (grub_fat_uuid): New function.
38773 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
38774
38775 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
38776 (grub_reiserfs_uuid): New function.
38777 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
38778 member.
38779
38780 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
38781 (grub_xfs_uuid): New function.
38782 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
38783
1385c5bb 387842008-06-01 Robert Millan <rmh@aybabtu.com>
38785
38786 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
38787 code that is backward compatible with pre-uuid search command.
38788
c682dfd7 387892008-05-31 Robert Millan <rmh@aybabtu.com>
38790
38791 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
38792 floppies after everything else, to ensure floppy drive isn't accessed
38793 unnecessarily (patch from Bean).
38794
b7db5d47 387952008-05-31 Robert Millan <rmh@aybabtu.com>
38796
38797 * commands/search.c (search_label, search_fs_uuid, search_file): Do
38798 not print device names when we were asked to set a variable.
38799
6e037aa9 388002008-05-31 Robert Millan <rmh@aybabtu.com>
38801
38802 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
38803 using "cursor-on" and "cursor-off" commands (understood at least by
38804 the Open Firmware flavour on OLPC).
38805
41305bc8 388062008-05-31 Michael Gorven <michael@gorven.za.net>
38807
38808 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
38809 on and off sequences.
38810
69ba137e 388112008-05-31 Robert Millan <rmh@aybabtu.com>
38812
38813 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
38814 * util/update-grub.in: Likewise.
38815
520ae21b 388162008-05-30 Pavel Roskin <proski@gnu.org>
38817
38818 * util/biosdisk.c (linux_find_partition): Simplify logic and
38819 make the code more universal. Keep special processing for
38820 devfs, but use a simple rule for all other devices. If the
38821 device ends with a number, append 'p' and the partition number.
38822 Otherwise, append only the partition number.
38823
5786569b 388242008-05-30 Robert Millan <rmh@aybabtu.com>
38825
38826 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
38827 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
38828 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
38829 the `root' parameter to Linux.
38830
51500452 388312008-05-30 Robert Millan <rmh@aybabtu.com>
38832
38833 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
38834 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
38835 --fs_uuid with --fs-uuid.
38836 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
38837 all filesystems support them).
38838
811d3878 388392008-05-30 Robert Millan <rmh@aybabtu.com>
38840
38841 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 38842 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 38843
cab63c95 388442008-05-30 Robert Millan <rmh@aybabtu.com>
38845
38846 * util/grub.d/00_header.in: Remove obsolete comment referencing
38847 convert_system_path_to_grub_path().
38848 * util/update-grub.in: Likewise.
38849 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
38850 (convert_system_path_to_grub_path): Add a warning message explaining
38851 that this function is deprecated. Rely on is_path_readable_by_grub()
38852 for the readability checks.
38853 (font_path): Use is_path_readable_by_grub() for the readability
38854 check rather than convert_system_path_to_grub_path().
38855
972e2f7a 388562008-05-30 Robert Millan <rmh@aybabtu.com>
38857
38858 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
38859 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
38860 converting it first.
38861 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
38862 grub.cfg for access to font file, and afterwards call it again to set
38863 the root device.
38864
62191274 388652008-05-30 Robert Millan <rmh@aybabtu.com>
38866
38867 * commands/search.c (options): Add --fs_uuid option.
38868 (search_fs_uuid): New function.
38869 (grub_cmd_search): Fix --set argument passing.
38870 Use search_fs_uuid() when requested via --fs_uuid.
38871 (grub_search_init): Update help message.
38872 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
38873 and redeclare it as an array of 16-bit words.
38874 (grub_ext2_uuid): New function.
38875 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
38876 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
38877 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
38878 (GRUB_DEVICE_BOOT_UUID): New variables.
38879 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
38880 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
38881 whenever possible.
38882 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
38883 just assume `root' variable has the right value.
38884 * util/grub.d/10_linux.in: Likewise.
38885 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
38886 via PRINT_FS_UUID.
38887 (main): Recognise `-t fs_uuid' argument.
38888
01b73ec8 388892008-05-30 Robert Millan <rmh@aybabtu.com>
38890
38891 * util/biosdisk.c (map): Redefine structure to hold information
38892 about GRUB drive name.
fe6b695a 38893 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 38894 drive names.
38895 (call_hook): Remove.
38896 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
38897 member. Assume drive has partitions.
38898 (grub_util_biosdisk_open): Access device names via `.device' struct
38899 member.
38900 (open_device): Likewise.
38901 (find_drive): Likewise.
38902 (read_device_map): Adjust map[] usage to match the new struct
38903 definition. Don't check for duplicates (still possible, but not cheap
38904 anymore).
38905 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
38906 (make_device_name): Remove assumption of BIOS-like drive names.
38907
22f16596 389082008-05-30 Pavel Roskin <proski@gnu.org>
38909
38910 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
38911 compiling execute.c doesn't need grub_script.tab.h anymore.
38912 (normal/command.c_DEPENDENCIES): Likewise.
38913 (normal/function.c_DEPENDENCIES): Likewise.
38914 * conf/i386-ieee1275.rmk: Likewise.
38915 * conf/i386-linuxbios.rmk: Likewise.
38916 * conf/i386-pc.rmk: Likewise.
38917 * conf/powerpc-ieee1275.rmk: Likewise.
38918 * conf/sparc64-ieee1275.rmk: Likewise.
38919
528ad8f2 389202008-05-29 Pavel Roskin <proski@gnu.org>
38921
d1dff95d 38922 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
38923 when scanning metadata for volume group name.
38924
528ad8f2 38925 * include/grub/script.h: Don't include grub_script.tab.h. It's
38926 a generated file, which may only be included from the files with
38927 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
38928 use union YYSTYPE, as the later allows forward declaration.
38929 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
38930
47248e08 389312008-05-29 Robert Millan <rmh@aybabtu.com>
38932
38933 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
38934 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
38935 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
38936 (grub_console_checkkey): Add grub_dprintf() call to report unknown
38937 scan codes.
38938
ee632529 389392008-05-29 Robert Millan <rmh@aybabtu.com>
38940
38941 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
38942 control key combinations.
38943
eee96e08 389442008-05-29 Robert Millan <rmh@aybabtu.com>
38945
38946 * util/powerpc/ieee1275/grub-install.in: Move from here ...
38947 * util/ieee1275/grub-install.in: ... to here.
38948 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
38949 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
38950 (grub_install_SOURCES): Likewise.
38951
da9a6a94 389522008-05-29 Robert Millan <rmh@aybabtu.com>
38953
38954 * fs/affs.c: Update copyright year.
38955 * fs/ext2.c: Likewise.
38956 * fs/fshelp.c: Likewise.
38957 * fs/hfsplus.c: Likewise.
38958 * fs/ntfs.c: Likewise.
38959 * fs/xfs.c: Likewise.
38960 * include/grub/fshelp.h: Likewise.
38961 * util/grub-mkdevicemap.c: Likewise.
38962
12e65f3a 389632008-05-28 Robert Millan <rmh@aybabtu.com>
38964
38965 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38966 might need to be fatfs to support some firmware implementations
38967 (e.g. OFW or EFI).
38968
23023641 389692008-05-28 Robert Millan <rmh@aybabtu.com>
38970
38971 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38972 devices.
38973 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38974 (make_device_map): Likewise.
38975
887d2619 389762008-05-20 Bean <bean123ch@gmail.com>
38977
38978 * fs/fshelp.c (grub_fshelp_map_block): New function.
38979 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38980 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38981
38982 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38983 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38984 (grub_fshelp_journal): New structure.
38985 (grub_fshelp_map_block): New function prototype.
38986 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38987 (grub_fshelp_map_block): Likewise.
38988
38989 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38990 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38991 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38992 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38993 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38994 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38995 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38996 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38997 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38998 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38999 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
39000 (grub_ext2_sblock): New members for journal support.
39001 (grub_ext3_journal_header): New structure.
39002 (grub_ext3_journal_revoke_header): Likewise.
39003 (grub_ext3_journal_block_tag): Likewise.
39004 (grub_ext3_journal_sblock): Likewise.
39005 (grub_fshelp_node): New members logfile and journal.
39006 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
39007 grub_fshelp_map_block to get real block number.
39008 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
39009 number.
39010 (grub_ext2_read_inode): Likewise.
39011 (grub_ext3_get_journal): New function.
39012 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
39013 (grub_ext2_close): Release memory used by journal.
39014
39015 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
39016 (REISERFS_MAGIC_DESC_BLOCK): New macro.
39017 (grub_reiserfs_transaction_header): Renamed to
39018 grub_reiserfs_description_block, replace field data with real_blocks.
39019 (grub_reiserfs_commit_block): New structure.
39020 (grub_reiserfs_data): New member journal.
39021 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
39022 number.
39023 (grub_reiserfs_read_symlink): Likewise.
39024 (grub_reiserfs_iterate_dir): Likewise.
39025 (grub_reiserfs_open): Likewise.
39026 (grub_reiserfs_read): Likewise.
39027 (grub_reiserfs_get_journal): New function.
39028 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
39029 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
39030 using grub_reiserfs_get_journal.
39031 (grub_reiserfs_close): Release memory used by journal.
39032
39033 * fs/affs.c (grub_affs_read_block): Change block type to
39034 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
39035
39036 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
39037
39038 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
39039
39040 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
39041
39042 * fs/udf.c (grub_udf_read_block): Change block type to
39043 grub_disk_addr_t. Use type cast to avoid warning.
39044
39045 * fs/xfs.c (grub_xfs_read_block): Likewise.
39046
b7c6bed5 390472008-05-16 Christian Franke <franke@computer.org>
39048
39049 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
39050 to ensure that break with ESC will always work.
39051 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
39052 Remove ESC from keyboard queue.
39053
eedf167f 390542008-05-16 Christian Franke <franke@computer.org>
39055
39056 * util/biosdisk.c: [__CYGWIN__] Add includes.
39057 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
39058 (get_os_disk): Move variable declarations to OS specific
39059 parts to avoid warning.
39060 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
39061 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
39062 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
39063 Cygwin.
39064 * util/getroot.c: [__CYGWIN__] Add includes.
39065 (strip_extra_slashes): Fix "/" case.
39066 [__CYGWIN__] (get_win32_path): New function.
39067 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
39068 [__CYGWIN__] (find_root_device): Disable.
39069 [__CYGWIN__] (get_bootsec_serial): New function.
39070 [__CYGWIN__] (find_cygwin_root_device): Likewise.
39071 [__linux__] (grub_guess_root_device): Add early returns to simplify
39072 structure.
39073 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
39074 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
39075 check for Linux only.
39076
a079699e 390772008-05-15 Bean <bean123ch@gmail.com>
39078
39079 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
39080 keyboard hang problem in apple's intel mac.
39081
1cf4059a 390822008-05-09 Robert Millan <rmh@aybabtu.com>
39083
39084 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
39085 devices.
39086 * util/grub-mkdevicemap.c (get_virtio_disk_name)
39087 (make_device_map): Likewise.
39088 Reported by Aurelien Jarno <aurel32@debian.org>
39089
ed759390 390902008-05-07 Ian Campbell <ijc@hellion.org.uk>
39091
39092 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
39093 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
39094 (make_device_map): Output entries for xvd type disks.
39095
b56c4eaa 390962008-05-07 Robert Millan <rmh@aybabtu.com>
39097
39098 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
39099 devices.
39100 * util/grub-mkdevicemap.c (get_cciss_disk_name)
39101 (make_device_map): Likewise.
39102 Reported by Roland Dreier <rdreier@cisco.com>
39103
7f8866ed 391042008-05-07 Robert Millan <rmh@aybabtu.com>
39105
39106 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
39107 grub_strstr() call. Correct a few mistakes in failure path handling.
39108
b0346e0f 391092008-05-06 Robert Millan <rmh@aybabtu.com>
39110
39111 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39112 Do not print a trailing slash (therefore, the root directory is an
39113 empty string).
39114 (convert_system_path_to_grub_path): Do not remove trailing slash
39115 from make_system_path_relative_to_its_root() output.
39116
39117 * util/i386/pc/grub-install.in: Add trailing slash to output from
39118 make_system_path_relative_to_its_root().
39119
6cf12cbd 391202008-05-06 Robert Millan <rmh@aybabtu.com>
39121
39122 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
39123 ensures that output lines aren't intermangled with those sent to
39124 stderr (via grub_util_info()).
39125 * util/grub-probe.c (grub_refresh): Likewise.
39126 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
39127
0fbb3117 391282008-05-05 Christian Franke <franke@computer.org>
39129
39130 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
39131 Add Cygwin device names.
39132 (get_ide_disk_name) [__CYGWIN__]: Likewise.
39133 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
39134 (check_device): Return error instead of success on empty name.
39135 (make_device_map): Move label inside linux specific code to
39136 prevent compiler warning.
39137
8124cdb7 391382008-04-30 Robert Millan <rmh@aybabtu.com>
39139
39140 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
39141 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
39142 first boot option.
39143 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
39144
094c01d0 391452008-04-29 Robert Millan <rmh@aybabtu.com>
39146
39147 * docs/grub.cfg: New file (example GRUB configuration).
39148
f4b1fc02 391492008-04-26 Robert Millan <rmh@aybabtu.com>
39150
329ce2a5 39151 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
39152 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
39153 and `disk/ieee1275/nand.c'.
f4b1fc02 39154
25f16ec1 391552008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 39156
25f16ec1 39157 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39158 i386-linuxbios.
39159
39160 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39161 change the buffer size to 4096 for cdrom device.
39162
39163 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39164 and nand.mod.
39165 (_linux_mod_SOURCES): New variable.
39166 (_linux_mod_CFLAGS): Likewise.
39167 (_linux_mod_LDFLAGS): Likewise.
39168 (linux_mod_SOURCES): Likewise.
39169 (linux_mod_CFLAGS): Likewise.
39170 (linux_mod_LDFLAGS): Likewise.
39171 (nand_mod_SOURCES): Likewise.
39172 (nand_mod_CFLAGS): Likewise.
39173 (nand_mod_LDFLAGS): Likewise.
39174
39175 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39176 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39177 type property. (nand device in olpc don't have this property)
39178
39179 * include/grub/disk.h (grub_disk_dev_id): New macro
39180 GRUB_DISK_DEVICE_NAND_ID.
39181
39182 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39183 function prototype.
39184 (grub_rescue_cmd_initrd): Likewise.
39185
39186 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39187 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39188 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 39189
25f16ec1 39190 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39191 GRUB_MACHINE_IEEE1275 is defined.
39192
39193 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39194 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39195
39196 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39197 on nested function heap_init.
39198 (grub_upper_mem): New variable for i386-ieee1275.
39199 (grub_get_extended_memory): New function for i386-ieee1275.
39200 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39201
39202 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39203 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39204 property.
f19dbdb7 39205
25f16ec1 39206 * loader/i386/ieee1275/linux.c: New file.
39207
39208 * loader/i386/ieee1275/linux_normal.c: New file.
39209
39210 * disk/ieee1275/nand.c: New file.
39211
e89d61e9 392122008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39213
39214 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39215 value.
39216 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39217
602566f6 392182008-04-18 Robert Millan <rmh@aybabtu.com>
39219
39220 Restructures early code path on ieee1275 to unify grub_main() as
39221 the first C function that is executed in every platform.
39222
39223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39224 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39225 cmain().
39226 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39227 * kern/ieee1275/cmain.c (cmain): Rename to ...
39228 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39229 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39230 at the beginning.
39231
57490c2b 392322008-04-18 Robert Millan <rmh@aybabtu.com>
39233
39234 * util/update-grub.in: Fix syntax error when setting
39235 `GRUB_PRELOAD_MODULES'.
39236 Reported by Stephane Chazelas <stephane@artesyncp.com>
39237
1977517d 392382008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39239
39240 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39241 section into account, newer toolchains generate unique build ids
39242 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 39243 we want build ids to be preserved
1977517d 39244 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39245 far from other sections don't cause the raw binary images grow
39246 size
39247
bfb1f1a2 392482008-04-15 Robert Millan <rmh@aybabtu.com>
39249
39250 * disk/lvm.c: Update copyright year.
39251 * kern/misc.c: Likewise.
39252
01979850 392532008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39254
39255 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 39256 there is no memory left for physical volume name.
01979850 39257
0a1150e2 392582008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39259
39260 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39261 volume name mapping to support bigger than 9 character names properly.
39262
82ead3fe 392632008-04-13 Robert Millan <rmh@aybabtu.com>
39264
39265 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39266 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39267
e54a72f5 392682008-04-13 Christian Franke <franke@computer.org>
39269
39270 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39271 to create a floppy emulation boot CD when non emulation mode
39272 does not work.
39273 Enable Joliet CD filesystem extension.
39274
9fe86034 392752008-04-13 Robert Millan <rmh@aybabtu.com>
39276
39277 * kern/misc.c (grub_strncat): Fix off-by-one error.
39278 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39279
39280 * kern/env.c (grub_env_context_close): Clear current context, not
39281 previous one.
39282 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39283
39284 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39285
7ceeee39 392862008-04-13 Robert Millan <rmh@aybabtu.com>
39287
39288 Improve robustness when handling LVM.
39289
39290 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 39291 (and leave `*p' unmodified).
7ceeee39 39292 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39293 through it.
39294 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39295 iterating through it.
39296 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39297 through it.
fe6b695a 39298 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 39299 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39300 Don't assume `vg->pvs != NULL' when iterating through it.
39301
58cd3d85 393022008-04-13 Robert Millan <rmh@aybabtu.com>
39303
39304 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39305 * genmk.rb (partmap): New variable.
39306 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39307 (#{partmap}): New target rule.
39308 * genpartmaplist.sh: New file.
39309 * Makefile.in (pkglib_DATA): Add partmap.lst.
39310 (partmap.lst): New target rule.
39311 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39312 modules (including all partition maps), instead of preloading them.
39313
78b51059 393142007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39315
39316 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39317 `linux-boot-prober' (if installed) to detect other operating
39318 systems which are installed on the computer and add them to
39319 the boot menu.
39320 * conf/common.rmk: Build and install 30_os-prober.
39321
a91627b4 393222008-04-12 Robert Millan <rmh@aybabtu.com>
39323
39324 * kern/powerpc/ieee1275/init.c: Move from here ...
39325 * kern/ieee1275/init.c: ... to here. Update all users.
39326
39327 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39328 * kern/ieee1275/cmain.c: ... to here. Update all users.
39329
39330 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39331 * kern/ieee1275/openfw.c: ... to here. Update all users.
39332
39333 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39334 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39335
322562ea 393362008-04-10 Pavel Roskin <proski@gnu.org>
39337
39338 * configure.ac: Always use "_cv_" in cache variables for
39339 compatibility with Autoconf 2.62.
39340
a02a73c5 393412008-04-07 Robert Millan <rmh@aybabtu.com>
39342
39343 Revert grub/machine/init.h addition by Pavel (since it breaks on
39344 i386-ieee1275 and others):
39345 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39346 * util/powerpc/ieee1275/misc.c: Likewise.
39347
25c024b1 393482008-04-07 Robert Millan <rmh@aybabtu.com>
39349
39350 * util/grub-probe.c (probe): Improve error message.
39351
3cbd2f98 393522008-04-07 Robert Millan <rmh@aybabtu.com>
39353
39354 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39355 (this prevents the presence of a bogus entry from ruining the whole
39356 thing).
39357
87a297bf 393582008-04-06 Pavel Roskin <proski@gnu.org>
39359
36747a62 39360 * util/biosdisk.c: Include grub/util/biosdisk.h.
39361 * util/grub-fstest.c (execute_command): Make static.
39362 * util/grub-mkdevicemap.c (check_device): Likewise.
39363 * util/i386/pc/misc.c: Include grub/machine/init.h.
39364 * util/powerpc/ieee1275/misc.c: Likewise.
39365 * util/lvm.c: Include grub/util/lvm.h.
39366 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39367 grub/cache.h.
39368 * util/raid.c: Include grub/util/raid.h.
39369 (grub_util_getdiskname): Make static.
39370
87a297bf 39371 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39372 grub_hostfs_fini(), as they are called from grub_init_all() and
39373 grub_fini_all() respectively. This fixes an infinite loop in
39374 grub-fstest due to double registration of hostfs.
39375 Reported by Christian Franke <Christian.Franke@t-online.de>
39376
f6ce7629 393772008-04-05 Pavel Roskin <proski@gnu.org>
39378
39379 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39380 all 8 functions. Otherwise, probe function 0 only.
39381
070e49e4 393822008-04-04 Pavel Roskin <proski@gnu.org>
39383
8b088a4c 39384 * commands/lspci.c (grub_lspci_iter): Print the bus number
39385 correctly.
39386
4f657021 39387 * commands/lspci.c (grub_pci_classes): Fix typos.
39388 (grub_lspci_iter): Don't print func twice. Print vendor ID
39389 before device ID, as it's normally done.
39390
070e49e4 39391 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39392 Fix signedness warnings.
39393 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39394 Likewise.
39395 * util/ieee1275/get_disk_name.c: Include config.h so that
39396 _GNU_SOURCE is defined and getline() is declared. Mark an
39397 unused argument as such. Fix a signedness warning.
39398
ba7328dc 393992008-04-02 Pavel Roskin <proski@gnu.org>
39400
26887f22 39401 * genkernsyms.sh.in: Use more robust assignments for CC and
39402 srcdir. Quote srcdir.
39403 * gensymlist.sh.in: Likewise. Assert at the compile time that
39404 the symbol table is not empty.
39405
ba7328dc 39406 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39407 * fs/cpio.c (grub_cpio_read): Likewise.
39408
0f582c6b 394092008-04-01 Pavel Roskin <proski@gnu.org>
39410
4b6e1995 39411 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39412 * disk/host.c (grub_host_open): Likewise.
39413 * disk/loopback.c (grub_loopback_open): Likewise.
39414 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39415 disk->id as in disk/host.c, not a multi-character constant.
39416
828a2768 39417 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39418 later is obsolete, potentially dangerous and sets a bad example.
39419 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39420 * util/misc.c (grub_util_get_image_size): Likewise.
39421
2bb4fb47 39422 * disk/loopback.c (options): Improve help for "--partitions".
39423
0f582c6b 39424 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39425 options to align them with the short options, e.g. "echo -e".
39426
a33224e0 394272008-03-31 Bean <bean123ch@gmail.com>
39428
39429 * video/reader/png.c (grub_png_data): New member is_16bit and
39430 image_data.
39431 (grub_png_decode_image_header): Detect 16 bit png image.
39432 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39433 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39434 (grub_video_reader_png): Release memory occupied by image_data.
39435
39436 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39437 4096 bytes.
39438 (grub_nfs_mount): Skip the test for sector per cluster.
39439
39440 * include/grub/ntfs.h (MAX_SPC): Removed.
39441
86cb4f54 394422008-03-31 Bean <bean123ch@gmail.com>
39443
39444 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
39445 (grub_probe_SOURCES): Add fs/afs.c.
39446 (grub_fstest_SOURCES): Likewise.
39447 (afs_mod_SOURCES): New variable.
39448 (afs_mod_CFLAGS): Likewise.
39449 (afs_mod_LDFLAGS): Likewise.
39450
39451 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
39452 (grub_emu_SOURCES): Likewise.
39453
39454 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39455
39456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39457
39458 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39459
39460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39461
39462 * fs/afs.c: New file.
39463
17c74c21 394642008-03-30 Pavel Roskin <proski@gnu.org>
39465
4cb68e89 39466 * disk/host.c: Include grub/misc.h to fix a warning.
39467 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
39468 warnings about implicit declarations.
39469
8790bb04 39470 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
39471 variable.
39472 * include/grub/i386/loader.h: Change declaration of
39473 grub_linux_boot() to match what grub_loader_set() expects.
39474 * util/getroot.c (grub_guess_root_device): Return const char* to
39475 fix a warning.
39476 * util/grub-probe.c (probe): Fix a warning about uninitialized
39477 abstraction_name variable.
39478 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
39479 second argument as unused to fix a warning.
39480
9a3f3296 39481 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
39482 missing grub_error() call.
39483
0ecef90d 39484 * util/update-grub_lib.in: Define datarootdir, since Autoconf
39485 2.60 and newer uses it to define datadir.
39486
0bf6d401 39487 * commands/sleep.c: Fix warning about implicit declaration.
39488 * disk/memdisk.c: Likewise.
39489 * loader/aout.c: Likewise.
39490 * loader/i386/bsd_normal.c: Likewise.
39491 * util/grub-probe.c: Likewise.
39492
7cdacf97 39493 * commands/i386/cpuid.c (has_longmode): Make static.
39494 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
39495 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
39496
17c74c21 39497 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
39498 GDT. This is more robust, as %ds can change.
39499 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
39500 calling real_to_prot().
39501 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
39502
80a3e68b 395032008-03-28 Pavel Roskin <proski@gnu.org>
39504
39505 * kern/i386/pc/startup.S: Assert that uncompressed functions
39506 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
39507 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
39508 code, as they push parts of the code (error handlers) beyond
39509 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
39510 code as correctness and size.
39511
77bcd272 395122008-03-28 Pavel Roskin <proski@gnu.org>
39513
39514 * kern/i386/pc/startup.S
39515 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
39516 data block address to the real mode, keep offset minimal. This
39517 works around a bug in AWARD BIOS on old Athlon systems, which
39518 makes CD detection hang.
39519
c5dfd43b 395202008-03-26 Pavel Roskin <proski@gnu.org>
39521
39522 * normal/color.c (grub_parse_color_name_pair): Make `name' a
39523 const.
39524 * include/grub/normal.h: Add grub_parse_color_name_pair()
39525 declaration.
39526
bf962df2 395272008-03-24 Bean <bean123ch@gmail.com>
39528
39529 * disk/i386/pc/biosdisk.c (cd_start): Removed.
39530 (cd_count): Removed.
39531 (cd_drive): New variable.
39532 (grub_biosdisk_get_drive): Don't check for (cdN) device.
39533 (grub_biosdisk_call_hook): Likewise.
39534 (grub_biosdisk_iterate): Change cdrom detection method.
39535 (grub_biosdisk_open): Replace cd_start with cd_drive.
39536 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
39537 detect cdrom device.
39538
39539 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
39540 Removed.
39541 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
39542 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
39543 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
39544 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
39545 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
39546 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
39547 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
39548 (grub_biosdisk_cdrp): New structure.
39549 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
39550
39551 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
39552
39553 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
39554 device.
39555
39556 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
39557 New function.
39558
68e7fc7a 395592008-03-20 Robert Millan <rmh@aybabtu.com>
39560
39561 Remove 2 TiB limit in ata.mod.
39562 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
39563 (grub_ata_dumpinfo): Print sector count with 0x%llx.
39564 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
39565 grub_uint64_t instead of grub_uint32_t.
39566
38ad2cf5 395672008-03-05 Bean <bean123ch@gmail.com>
39568
39569 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
39570 (grub_multiboot): Set boot device.
39571
39572 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
39573
2b89344e 395742008-03-02 Bean <bean123ch@gmail.com>
39575
39576 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
39577 symlink_buffer.
39578
87a95d1f 395792008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
39580
39581 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
39582 texinfo.tex.
39583
39584 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
39585 modified.
39586
39587 * docs/fdl.texi: New file.
f19dbdb7 39588
87a95d1f 39589 * docs/mdate-sh: New file. Copied from gnulib.
39590 * docs/texinfo.tex: Likewise.
39591
39592 * config.guess: Updated from gnulib.
39593 * install-sh: Likewise.
39594
7dc15d8e 395952008-02-28 Robert Millan <rmh@aybabtu.com>
39596
39597 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
39598 (aout_mod_SOURCES): New variable.
39599 (aout_mod_CFLAGS): Likewise.
39600 (aout_mod_LDFLAGS): Likewise.
39601
39602 * conf/i386-ieee1275.rmk: Likewise.
39603
b00ab696 396042008-02-28 Robert Millan <rmh@aybabtu.com>
39605
39606 * util/update-grub.in: Reorganise terminal validity check. Accept
39607 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
39608 Based on suggestion by Franklin PIAT.
39609
79ca2d78 396102008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
39611
39612 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
39613 function.
39614 * util/getroot.c (grub_util_check_block_device): New function that
39615 returns the given argument if it is a block device and returns NULL else.
39616 * util/grub-probe.c (argument_is_device): New variable.
39617 (probe): Promote device_name from a variable to an argument. Receive
39618 device_name from grub_util_check_block_device() if path is NULL and from
39619 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 39620 (options): Introduce new parameter '-d, --device'.
79ca2d78 39621 (main): Add description of the new parameter to the help screen.
39622 Rename path variable to argument. Set argument_is_device if the '-d'
39623 option is given. Pass argument to probe() depending on
39624 argument_is_device.
39625
0d16e571 396262008-02-24 Bean <bean123ch@gmail.com>
39627
39628 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
39629 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
39630 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
39631 (GRUB_ISO9660_VOLDESC_PART): Likewise.
39632 (GRUB_ISO9660_VOLDESC_END): Likewise.
39633 (grub_iso9660_primary_voldesc): New member escape.
39634 (grub_iso9660_data): New member joliet.
39635 (grub_iso9660_convert_string): New function.
39636 (grub_iso9660_mount): Detect joliet extension.
39637 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
39638 (grub_iso9660_iso9660_label): Likewise.
39639
39640 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
39641 (grub_setup_SOURCES): Add fs/udf.c.
39642 (grub_fstest_SOURCES): Likewise.
39643 (udf_mod_SOURCES): New variable.
39644 (udf_mod_CFLAGS): Likewise.
39645 (udf_mod_LDFLAGS): Likewise.
39646
39647 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
39648 (grub_emu_SOURCES): Likewise.
39649
39650 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39651
39652 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39653
39654 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39655
39656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39657
39658 * fs/udf.c: New file.
39659
8a594a17 396602008-02-24 Robert Millan <rmh@aybabtu.com>
39661
39662 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
39663 (normal/lexer.c_DEPENDENCIES): New variables.
39664 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39665 (normal/lexer.c_DEPENDENCIES): Likewise.
39666 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
39667 (normal/lexer.c_DEPENDENCIES): Likewise.
39668 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
39669 (normal/lexer.c_DEPENDENCIES): Likewise.
39670 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39671 (normal/lexer.c_DEPENDENCIES): Likewise.
39672 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39673 (normal/lexer.c_DEPENDENCIES): Likewise.
39674
2dc33c03 396752008-02-23 Robert Millan <rmh@aybabtu.com>
39676
39677 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
39678 since they were intended to be in hex. This didn't break previously
39679 because of a bug in gpt_partition_map_iterate() (see below).
39680
39681 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
39682 when checking the validity of GPT header.
39683 Remove `partno', since it always provides the same information as `i'.
39684
f6f4cfb0 396852008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
39686
39687 * include/grub/efi/time.h: Fix a wrong comment.
39688
79ff665f 396892008-02-19 Pavel Roskin <proski@gnu.org>
39690
39691 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
39692 message.
39693
d38e24c2 396942008-02-19 Bean <bean123ch@gmail.com>
39695
39696 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
39697 (aout_mod_SOURCES): New variable.
39698 (aout_mod_CFLAGS): Likewise.
39699 (aout_mod_LDFLAGS): Likewise.
39700 (_bsd_mod_SOURCES): New variable.
39701 (_bsd_mod_CFLAGS): Likewise.
39702 (_bsd_mod_LDFLAGS): Likewise.
39703 (bsd_mod_SOURCES): New variable.
39704 (bsd_mod_CFLAGS): Likewise.
39705 (bsd_mod_LDFLAGS): Likewise.
39706
39707 * include/grub/aout.h: New file.
39708
39709 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
39710
39711 * include/grub/i386/bsd.h: New file.
39712
39713 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
39714 to make it public.
39715
39716 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
39717 function is called, so that it's possible to change it inside the hook.
39718 (grub_elf64_load): Likewise.
39719 (grub_elf_file): Don't close the file if elf header is not found.
39720 (grub_elf_close): Close the file if grub_elf_file fails (The new
39721 grub_elf_file won't close it).
39722 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
39723 (grub_elf64_size): Likewise.
39724
39725 * kern/i386/loader.S (grub_unix_real_boot): New function.
39726
39727 * loader/aout.c: New file.
39728
39729 * loader/i386/bsd.c: New file.
39730
39731 * loader/i386/bsd_normal.c: New file.
39732
39733 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
39734
39735 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 39736 can test other formats.
d38e24c2 39737
b93bdb0f 397382008-02-19 Robert Millan <rmh@aybabtu.com>
39739
39740 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
39741 (grub_gpt_partition_type_empty): Redefine with macro from
39742 `<grub/gpt_partition.h>'.
39743 (gpt_partition_map_iterate): Adjust partition type comparison.
39744
39745 Export `entry' as partmap-specific `part.data' struct.
39746 (grub_gpt_header, grub_gpt_partentry): Move from here ...
39747
39748 * include/grub/gpt_partition.h (grub_gpt_header)
39749 (grub_gpt_partentry): ... to here (new file).
39750
39751 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
39752
39753 (grub_gpt_partition_type_bios_boot): New const variable, defined
39754 with macro from `<grub/gpt_partition.h>'.
39755
39756 (setup): Replace `first_start' with `embed_region', which keeps
39757 track of the embed region (and is partmap-agnostic).
39758
39759 Replace find_first_partition_start() with find_usable_region(),
39760 which finds a usable region for embedding using partmap-specific
39761 knowledge (supports PC/MSDOS and GPT).
39762
39763 Fix all assumptions that the embed region start at sector 1, using
39764 `embed_region.start' from now on. Similarly, use `embed_region.end'
39765 rather than `first_start' to calculate available size.
39766
39767 In grub_util_info() message, replace "into after the MBR" with an
39768 indication of the specific sector our embed region starts at.
39769
66cb40f6 397702008-02-19 Robert Millan <rmh@aybabtu.com>
39771
39772 * DISTLIST: Replace `commands/ieee1275/halt.c' and
39773 `commands/ieee1275/reboot.c' with `commands/halt.c' and
39774 `commands/reboot.c'.
39775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39776 (halt_mod_SOURCES): Likewise.
39777 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39778 (halt_mod_SOURCES): Likewise.
39779
b7202015 397802008-02-17 Christian Franke <franke@computer.org>
39781
39782 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
39783
32b0fc49 397842008-02-17 Robert Millan <rmh@aybabtu.com>
39785
39786 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39787 set `first_start' to 0 for non-PC/MSDOS partition maps.
39788
aca63502 397892008-02-16 Robert Millan <rmh@aybabtu.com>
39790
39791 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39792 do not assume partition map is PC/MSDOS before performing checks that
39793 are specific to that layout.
39794
0de8be86 397952008-02-13 Robert Millan <rmh@aybabtu.com>
39796
39797 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
39798 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
39799 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
39800
c3db8364 398012008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
39802
39803 * configure.ac: Only a cosmetic change on the handling of
39804 -fno-stack-protector.
39805
f714229e 398062008-02-12 Alexandre Boeglin <alex@boeglin.org>
39807
c3db8364 39808 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
39809 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
39810 reboot.c.
f714229e 39811 (grub_install_SOURCES): Add halt.mod and reboot.mod.
39812 (halt_mod_SOURCES): New variable.
39813 (halt_mod_CFLAGS): Likewise.
39814 (halt_mod_LDFLAGS): Likewise.
39815 (reboot_mod_SOURCES): Likewise.
39816 (reboot_mod_CFLAGS): Likewise.
39817 (reboot_mod_LDFLAGS): Likewise.
39818
c3db8364 39819 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
39820 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
39821 reboot.c.
f714229e 39822 (halt_mod_SOURCES): Likewise.
39823 (reboot_mod_SOURCES): Likewise.
39824
c3db8364 39825 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
39826 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 39827 (reboot_mod_SOURCES): Likewise.
39828
39829 * commands/i386/pc/reboot.c: merge this file ...
39830
39831 * commands/ieee1275/reboot.c: ... and this file ...
39832
39833 * commands/reboot.c: ... to this file.
c3db8364 39834 Add some precompiler directive to include the correct header for
39835 each machine.
f714229e 39836
39837 * commands/ieee1275/halt.c: move this file ...
39838
39839 * commands/halt.c: ... to here.
c3db8364 39840 Add some precompiler directive to include the correct header for
39841 each machine.
f714229e 39842
39843 * include/grub/efi/efi.h (grub_reboot): New function declaration.
39844 (grub_halt): Likewise.
39845
39846 * kern/efi/efi.c (grub_reboot): New function.
39847 (grub_halt): Likewise.
39848
c74493e0 398492008-02-12 Robert Millan <rmh@aybabtu.com>
39850
39851 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
39852 /dev (like it is done for /dev/mapper). This doesn't provide support
39853 for EVMS, but at least it is now easy to identify the problem when it
39854 arises.
39855
d0db4b04 398562008-02-11 Robert Millan <rmh@aybabtu.com>
39857
39858 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
39859 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
39860 comparing it with -1, not 0.
39861
bf748642 398622008-02-10 Robert Millan <rmh@aybabtu.com>
39863
39864 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
39865 `disk/lvm.c'.
39866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39867 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
39868
39869 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
39870 `disk/lvm.c' to the end of the list.
39871 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39872 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39873
b5db202a 398742008-02-10 Robert Millan <rmh@aybabtu.com>
39875
39876 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
39877 grub_print_error() instead. This will let user know why we're entering
39878 rescue mode.
39879 Based on suggestions from Sam Morris.
39880
83abee31 398812008-02-10 Alexandre Boeglin <alex@boeglin.org>
39882
39883 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
39884 on remaining N args, instead of "--" arg N times.
39885
78d5a08b 398862008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
39887
39888 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
39889 (fill_with_default_glyph): Changed to use unknown_glyph for fill
39890 pattern for unknown glyphs.
39891
68807e5f 398922008-02-09 Robert Millan <rmh@aybabtu.com>
39893
39894 * configure.ac: Probe for `help2man'.
39895 * Makefile.in (builddir): New variable.
39896 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
39897 or otherwise add a few flags/options to it.
39898 (install-local): For every executable utility or script that is
39899 installed, invoke $(HELP2MAN) to install a manpage based on --help
39900 output.
39901
39902 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
39903 that it doesn't prevent --help from working in build tree.
39904
39905 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
39906 with `bug-grub@gnu.org'.
39907 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
39908 * util/update-grub.in (usage): New function.
39909 Implement proper argument check, with support for --help and --version
39910 (as well as existing -y).
39911
399122008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 39913
39914 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
39915 avoid overwriting previous output.
39916 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
39917
c1962162 399182008-02-09 Robert Millan <rmh@aybabtu.com>
39919
39920 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
39921 drawing the menu.
39922
3dac2e3f 399232008-02-09 Robert Millan <rmh@aybabtu.com>
39924
39925 * commands/sleep.c: New file.
39926 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
39927 (sleep_mod_SOURCES): New variable.
39928 (sleep_mod_CFLAGS): Likewise.
39929 (sleep_mod_LDFLAGS): Likewise.
39930
7a634e08 399312008-02-09 Robert Millan <rmh@aybabtu.com>
39932
39933 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
39934 situations in which we can deduce the RAID size and the superblock
39935 doesn't match it.
39936
b92f0c18 399372008-02-09 Robert Millan <rmh@aybabtu.com>
39938
39939 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
39940 and return a grub_diskmemberlist_t composed of LVM physical volumes.
39941 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
39942
39943 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
39944 and return a grub_diskmemberlist_t composed of physical array members.
39945 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
39946
39947 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
39948 prototype.
39949 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
39950 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
39951 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
39952
39953 * util/grub-probe.c (probe): Move partmap probing code from here ...
39954 (probe_partmap): ... to here.
39955 (probe): Use probe_partmap() once for the disk we're probing, and
39956 additionally, when such disk contains a memberlist() struct member,
39957 once for each disk that is contained in the structure returned by
39958 memberlist().
39959
91a4bf68 399602008-02-09 Robert Millan <rmh@aybabtu.com>
39961
39962 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39963 environment variable to 'all' in order to obtain debug output from
39964 non-util/ code.
39965 * util/i386/pc/grub-setup.c (main): Likewise.
39966
a96f9caa 399672008-02-08 Robert Millan <rmh@aybabtu.com>
39968
39969 * disk/raid.c (grub_raid_scan_device): Check for
39970 `array->device[sb.this_disk.number]' rather than for
39971 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39972 guaranteed to be accessible.
a96f9caa 39973
b37a9222 399742008-02-08 Robert Millan <rmh@aybabtu.com>
39975
39976 * disk/raid.c: Update copyright.
39977 * fs/cpio.c: Likewise.
39978 * include/grub/raid.h: Likewise.
39979 * loader/i386/pc/multiboot.c: Likewise.
39980 * util/hostfs.c: Likewise.
39981
5626aee1 399822008-02-08 Robert Millan <rmh@aybabtu.com>
39983
39984 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39985 to a grub_disk_t array.
39986 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39987 `device[x]'.
39988 (grub_raid_scan_device): Replace `device[x].name' accesses with
39989 `device[x]->name'. Simplify initialization of `array->device[x]'.
39990
554f0187 399912008-02-08 Robert Millan <rmh@aybabtu.com>
39992
39993 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39994 grub_dprintf() calls.
39995 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39996 error message.
39997
1ec8425d 399982008-02-07 Christian Franke <franke@computer.org>
39999
40000 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
40001 instead of fseek and ftell to support large files.
40002 (grub_hostfs_read): Likewise.
40003
f2156fda 400042008-02-07 Robert Millan <rmh@aybabtu.com>
40005
40006 Patch from Jeroen Dekkers.
40007 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 40008 failure, since successfully reading all array members might not be
f2156fda 40009 required.
40010
9216e0e7 400112008-02-06 Robert Millan <rmh@aybabtu.com>
40012
40013 * util/grub-probe.c (probe): Simplify partmap probing (with the
40014 assumption that the first word up to the underscore equals to
40015 the module name).
40016
b0dfd29a 400172008-02-06 Christian Franke <franke@computer.org>
40018
40019 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
40020 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
40021 last block of a cpio or tar stream.
40022 Check for "TRAILER!!!" instead of any empty data
40023 block to detect last block of a cpio stream.
40024 (grub_cpio_dir): Fix constness of variable np.
40025 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
40026 cpio or tar trailer is detected. This fixes a crash
40027 on open of a non existing file.
40028
c32865bf 400292008-02-05 Bean <bean123ch@gmail.com>
40030
40031 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
40032 address of entry.
40033 (grub_multiboot_load_elf64): Likewise.
40034 (grub_multiboot): Initialize mbi structure.
40035
40036 * util/grub-fstest.c: Don't include unused header file script.h.
40037
fe6b695a 40038 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 40039 of file.
40040 (grub_fstest_SOURCES): Likewise.
40041
409480b7 400422008-02-05 Robert Millan <rmh@aybabtu.com>
40043
40044 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
40045 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
40046 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
40047 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
40048
40049 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
40050 (translation_table): Replace hardcoded values with macros
40051 provided by `<grub/term.h>'.
40052
40053 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
40054 (keyboard_map): Correct/add a few values, with macros provided
40055 by `<grub/term.h>'.
40056 (keyboard_map_shift): Zero values that don't differ from their
40057 `keyboard_map' equivalents.
40058 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
40059 Discard the second scan code that is always sent by Caps lock.
40060 Only use `keyboard_map_shift' when it provides a non-zero value,
40061 otherwise fallback to `keyboard_map'.
40062
99fadbaa 400632008-02-04 Bean <bean123ch@gmail.com>
40064
40065 * Makefile.in (enable_grub_fstest): New variable.
40066
40067 * conf/common.rmk (grub_fstest_init.lst): New rule.
40068 (grub_fstest_init.h): Likewise.
40069 (grub_fstest_init.c): Likewise.
40070 (util/grub-fstest.c_DEPENDENCIES): New variable.
40071 (grub_fstest_SOURCES): Likewise.
40072
40073 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
40074
40075 * util/grub-fstest.c: New file.
40076
bf567c50 400772008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40078
40079 Make grub-setup handle a separate root device.
f19dbdb7 40080
bf567c50 40081 * util/i386/pc/grub-setup.c (setup): Always open the root device,
40082 so that the root device can be compared with the destination
40083 device.
40084 When embedding the core image, if the root and destination devices
40085 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
40086 0xFF.
40087 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 40088
9be6b98b 400892008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40090
40091 Add support for having a grub directory in a different drive. This
40092 is still only the data handling part.
f19dbdb7 40093
9be6b98b 40094 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
40095 (codestart): Save %dh in GRUB_ROOT_DRIVE.
40096 (grub_root_drive): New variable.
40097
40098 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
40099 instead of GRUB_BOOT_DRIVE to construct a device name. Set
40100 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
40101 as it was.
40102
40103 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
40104
40105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
40106 macro.
40107 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
40108
40109 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
40110 is bogus, because PXE booting does not specify any drive
40111 correctly.
40112
40113 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
40114 am not sure if this is really correct.
40115
40116 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
40117 is always identical to the boot drive when booting from a CD.
40118
40119 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
40120 longer.
40121 (root_drive): New variable.
40122 (real_start): Unconditionally set %dh to ROOT_DRIVE.
40123 (setup_sectors): Push %dx right after popping it, because %dh will
40124 be modified later.
40125 (copy_buffer): Restore %dx.
40126
e0ca0677 401272008-02-03 Robert Millan <rmh@aybabtu.com>
40128
40129 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
40130 use `cdboot.img' for cdrom images.
40131
3b3f6629 401322008-02-03 Robert Millan <rmh@aybabtu.com>
40133
40134 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
40135 only setup gfxterm when `font' command has succeeded.
40136
d42b3672 401372008-02-03 Robert Millan <rmh@aybabtu.com>
40138
40139 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
40140 (grub_rescue_cmd_multiboot_loader)
40141 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
40142
fa370ea6 401432008-02-03 Pavel Roskin <proski@gnu.org>
40144
e0c5dacb 40145 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 40146 %edx and %esi from stack only after grub_gate_a20() is called.
40147 grub_gate_a20() clobbers %edx.
40148
f2a76e1d 401492008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40150
40151 * configure.ac (AC_INIT): Bumped to 1.96.
40152
40153 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40154 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40155 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40156 video/readers/png.c.
40157
90fd32d1 401582008-02-03 Bean <bean123ch@gmail.com>
9be665dd 40159
40160 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40161 (cdboot_img_SOURCES): New variable.
40162 (cdboot_img_ASFLAGS): New variable.
40163 (cdboot_img_LDFLAGS): New variable.
40164
40165 * boot/i386/pc/cdboot.S: New file.
40166
40167 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40168 (cd_count): Likewise.
40169 (grub_biosdisk_get_drive): Add support for cd device.
40170 (grub_biosdisk_call_hook): Likewise.
40171 (grub_biosdisk_iterate): Likewise.
40172 (grub_biosdisk_open): Likewise.
40173 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40174 (grub_biosdisk_rw): Support reading from cd device.
40175 (GRUB_MOD_INIT): Iterate cd devices.
40176
40177 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40178 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40179 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40180
40181 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40182
4020aa53 401832008-02-02 Robert Millan <rmh@aybabtu.com>
40184
40185 * commands/read.c: New file.
40186 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40187 (read_mod_SOURCES): New variable.
40188 (read_mod_CFLAGS): Likewise.
40189 (read_mod_LDFLAGS): Likewise.
40190
e03a1132 401912008-02-02 Robert Millan <rmh@aybabtu.com>
40192
40193 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40194 determining whether menu has to be displayed.
40195
58c69220 401962008-02-02 Marco Gerards <marco@gnu.org>
40197
40198 * bus/pci.c: New file.
40199
40200 * include/grub/pci.h: Likewise.
40201
40202 * include/grub/i386/pc/pci.h: Likewise.
40203
40204 * commands/lspci.c: Likewise.
40205
40206 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40207 `lspci.mod'.
40208 (pci_mod_SOURCES): New variable.
40209 (pci_mod_CFLAGS): Likewise.
40210 (pci_mod_LDFLAGS): Likewise.
40211 (lspci_mod_SOURCES): Likewise.
40212 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 40213 (lspci_mod_LDFLAGS): Likewise.
58c69220 40214
c004e1b4 402152008-02-02 Bean <bean123ch@gmail.com>
40216
40217 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40218 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40219
40220 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40221 (grub_xfs_btree_node): New structure.
40222 (grub_xfs_btree_root): New structure.
40223 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40224 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40225 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40226 (GRUB_XFS_EXTENT_SIZE): Likewise.
40227 (grub_xfs_read_block): Support btree format type.
40228 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40229 Use directory block as basic unit.
40230
40231 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40232
40233 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40234 __attribute__ ((__regparm__ (1))).
40235
f95562bf 402362008-02-01 Robert Millan <rmh@aybabtu.com>
40237
40238 Correct a mistake in previous commit.
40239
40240 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40241 top.
40242 (normal/command.c_DEPENDENCIES): New variable.
40243
7d31f41f 402442008-02-01 Robert Millan <rmh@aybabtu.com>
40245
40246 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40247 top.
40248 (normal/command.c_DEPENDENCIES): New variable.
40249 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40250 * conf/i386-ieee1275.rmk: Likewise.
40251 * conf/i386-linuxbios.rmk: Likewise.
40252 * conf/i386-pc.rmk: Likewise.
40253 * conf/sparc64-ieee1275.rmk: Likewise.
40254 * conf/powerpc-ieee1275.rmk: Likewise.
40255 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40256
40257 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40258
60b6be74 402592008-02-01 Robert Millan <rmh@aybabtu.com>
40260
40261 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40262 call at beginning of function.
40263
078522ab 402642008-01-31 Pavel Roskin <proski@gnu.org>
40265
40266 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 40267 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40268 (grub_mkrescue_SOURCES): Likewise.
078522ab 40269 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40270
ccaa8a5f 402712008-01-30 Robert Millan <rmh@aybabtu.com>
40272
40273 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40274 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40275 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40276 (grub_probe_SOURCES): ... to here.
40277
40278 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40279 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40280 * conf/i386-ieee1275.rmk: Likewise.
40281 * conf/i386-linuxbios.rmk: Likewise.
40282 * conf/powerpc-ieee1275.rmk: Likewise.
40283
ae5a9cd7 402842008-01-30 Tristan Gingold <gingold@free.fr>
40285
40286 * kern/rescue.c: Silently accept empty lines.
40287
70bc2ef2 402882008-01-29 Bean <bean123ch@gmail.com>
40289
40290 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40291 (real_code_2): Code cleanup and change comment style.
40292 (move_memory): Avoid using 32-bit address mode.
40293
6a4d50ea 402942008-01-29 Bean <bean123ch@gmail.com>
40295
40296 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40297 (png_mod_SOURCES): New variable.
40298 (png_mod_CFLAGS): Likewise.
40299 (png_mod_LDFLAGS): Likewise.
40300
40301 * video/readers/png.c: New file.
40302
11cc30ac 403032008-01-28 Robert Millan <rmh@aybabtu.com>
40304
40305 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40306 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40307 `ifndef GRUB_MOD_GAP' hack.
40308 * util/elf/grub-mkimage.c (add_segments): Likewise.
40309
3abc589f 403102008-01-27 Robert Millan <rmh@aybabtu.com>
40311
40312 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40313 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 40314 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 40315
e1907778 403162008-01-27 Robert Millan <rmh@aybabtu.com>
40317
40318 Get grub-emu to build again (including parallel builds).
40319
40320 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40321 Split into ...
40322 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40323 (normal/execute.c_DEPENDENCIES): ... this, ...
40324 (grub-emu_DEPENDENCIES): ... and this.
40325
40326 * conf/i386-efi.rmk: Likewise.
40327 * conf/i386-linuxbios.rmk: Likewise.
40328 * conf/i386-ieee1275.rmk: Likewise.
40329 * conf/powerpc-ieee1275.rmk: Likewise.
40330 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40331
2216b101 403322008-01-27 Robert Millan <rmh@aybabtu.com>
40333
40334 * NEWS: Add a few items.
40335
f75172d9 403362008-01-27 Robert Millan <rmh@aybabtu.com>
40337
40338 Fix parallel builds with grub-emu. Based on earlier commit for
40339 grub-probe and grub-setup.
40340
40341 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40342 (util/grub-emu.c_DEPENDENCIES): ... this.
40343 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40344 (util/grub-emu.c_DEPENDENCIES): ... this.
40345 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40346 (util/grub-emu.c_DEPENDENCIES): ... this.
40347 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40348 (util/grub-emu.c_DEPENDENCIES): ... this.
40349 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40350 (util/grub-emu.c_DEPENDENCIES): ... this.
40351
3f51de77 403522008-01-27 Pavel Roskin <proski@gnu.org>
40353
40354 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40355 to create a gap between _end and the modules added to the image
40356 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40357 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40358 * util/elf/grub-mkimage.c (add_segments): Likewise.
40359
2033f53e 403602008-01-26 Pavel Roskin <proski@gnu.org>
40361
40362 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40363 just return an error.
40364
22da1f6f 403652008-01-26 Bean <bean123ch@gmail.com>
40366
40367 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40368 (grub_reiserfs_get_item): Save offset of the next item.
40369 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40370
2a9525e6 403712008-01-25 Robert Millan <rmh@aybabtu.com>
40372
40373 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40374 make all filesystem sources appear together (possibly fixing omissions
40375 while at it).
40376 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40377 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40378 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40380
40381 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40382 add `kern/file.c'.
40383 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40384 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40385 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40386 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40387
40388 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40389 (probe): Add a sanity check to make sure of our ability to read
40390 requested files when probing for filesystem type.
40391
40392 * genmk.rb: Update copyright year (2007).
40393
40394 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40395 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40396 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40397 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40398 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40399 : Remove function prototypes.
40400
b95f71b5 404012008-01-25 Robert Millan <rmh@aybabtu.com>
40402
40403 Revert my previous commits (based on wrong assumption of how grub_errno
40404 works).
40405
fe6b695a 40406 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 40407 * kern/file.c (grub_file_open): Likewise.
40408
d08bbb49 404092008-01-24 Pavel Roskin <proski@gnu.org>
40410
40411 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40412 that hang if GRUB tries to setup colors.
40413 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40414 colors for firmwares that don't support it.
40415 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40416 Recognize Open Hack'Ware, set flags to work around its
40417 limitations.
40418
605e36ed 404192008-01-24 Robert Millan <rmh@aybabtu.com>
40420
40421 * kern/file.c (grub_file_open): Do not account previous failures of
40422 unrelated functions when grub_errno is checked for.
40423 Reported by Oleg Strikov.
40424
bac332a1 404252008-01-24 Bean <bean123ch@gmail.com>
40426
40427 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40428 (grub_ufs_sblock): New member volume name.
40429 (grub_ufs_find_file): Fix string copy bug.
40430 (grub_ufs_label): Implement this function properly.
40431
40432 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40433 (grub_hfs_iterate_records): Use the correct file number for extents
40434 and catalog file. Fix problem in next index calculation.
40435 (grub_hfs_find_node): Replace recursive function call with loop.
40436 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40437
15c80c09 404382008-01-23 Robert Millan <rmh@aybabtu.com>
40439
40440 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
40441 `<grub/symbol.h>' and `<grub/multiboot.h>'.
40442 (grub_multiboot2_real_boot): New function prototype.
40443
40444 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
40445 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
40446
40447 * kern/i386/ieee1275/init.c (grub_os_area_addr)
40448 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
40449
305338fd 404502008-01-23 Robert Millan <rmh@aybabtu.com>
40451
40452 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
40453 #ifdef'ed out grub_printf().
40454
3ea52685 404552008-01-23 Robert Millan <rmh@aybabtu.com>
40456
40457 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
40458 grub_dprintf calls, since they make "debug=all" mode unusable.
40459 (grub_console_checkkey): Likewise.
40460
5882ae4b 404612008-01-23 Robert Millan <rmh@aybabtu.com>
40462
40463 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40464 `term/i386/pc/at_keyboard.c'.
40465 (pkglib_MODULES): Add `serial.mod'.
40466 (serial_mod_SOURCES): New variable.
40467 (serial_mod_CFLAGS): Likewise.
40468 (serial_mod_LDFLAGS): Likewise.
40469
40470 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
40471 `<grub/powerpc/ieee1275/console.h>'.
40472 (grub_keyboard_controller_init): New function prototype.
40473 (grub_console_checkkey): Likewise.
40474 (grub_console_getkey): Likewise.
40475
40476 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
40477 keyboard on i386.
40478
40479 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
40480 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
40481
06ab5303 404822008-01-23 Robert Millan <rmh@aybabtu.com>
40483
40484 * kern/i386/pc/init.c (make_install_device): When memdisk image is
40485 present, "(memdisk)/boot/grub" becomes the default prefix.
40486
40487 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
40488 a memdisk tarball with all the modules. Add --overlay=DIR option that
40489 allows users to overlay additional files into the image.
40490
dbb475a4 404912008-01-23 Robert Millan <rmh@aybabtu.com>
40492
40493 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
40494 and `machine/memory.h'.
40495 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
40496 (_multiboot_mod_SOURCES): New variable.
40497 (_multiboot_mod_CFLAGS): Likewise.
40498 (_multiboot_mod_LDFLAGS): Likewise.
40499 (multiboot_mod_SOURCES): Likewise.
40500 (multiboot_mod_CFLAGS): Likewise.
40501 (multiboot_mod_LDFLAGS): Likewise.
40502
40503 * include/grub/i386/ieee1275/loader.h: New file.
40504
40505 * include/grub/i386/ieee1275/machine.h: Likewise.
40506
40507 * include/grub/i386/ieee1275/memory.h: Likewise.
40508
40509 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
40510 variable declaration.
40511 (grub_os_area_size): Likewise.
40512
40513 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
40514 (grub_lower_mem, grub_upper_mem): New variables.
40515 (grub_stop_floppy): New function (just to make
40516 grub_multiboot2_real_boot() happy).
40517
40518 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
40519 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
40520 (grub_stop): New function.
40521 Include `"../realmode.S"' and `"../loader.S"'.
40522
40523 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
40524 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
40525
40526 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
40527 rely on grub_multiboot2_real_boot() for final boot.
40528
25638629 405292008-01-22 Robert Millan <rmh@aybabtu.com>
40530
40531 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
40532 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
40533 device that doesn't look like an SD card.
40534 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40535 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
40536 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
40537 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
40538 found.
40539
9dad816d 405402008-01-22 Robert Millan <rmh@aybabtu.com>
40541
40542 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
40543 avoid claiming over our own code.
40544
34842f2d 405452008-01-22 Bean <bean123ch@gmail.com>
40546
40547 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
40548 (jpeg_mod_SOURCES): New variable.
40549 (jpeg_mod_CFLAGS): Likewise.
40550 (jpeg_mod_LDFLAGS): Likewise.
40551
40552 * video/readers/jpeg.c : New file.
40553
44023a28 405542008-01-22 Bean <bean123ch@gmail.com>
40555
40556 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
40557 there are no more items.
40558
bc2d8ac6 405592008-01-21 Robert Millan <rmh@aybabtu.com>
40560
40561 * kern/mm.c (grub_mm_init_region): Improve debug message.
40562
261bd4bc 405632008-01-21 Robert Millan <rmh@aybabtu.com>
40564
40565 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
40566 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
40567 address.
40568 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
40569 a C macro.
40570 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
40571 Indicates start of upper memory.
40572 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
40573 (generate_image): Abort when image size is big enough to corrupt
40574 upper memory.
40575
40576 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
40577 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
40578 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40579 instead of hardcoding 0xA0000.
40580 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
40581 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40582 instead of hardcoding 0xA0000.
40583
f970b55e 405842008-01-21 Robert Millan <rmh@aybabtu.com>
40585
40586 * disk/memdisk.c (memdisk_size): New variable.
40587 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
40588 `memdisk_size'.
40589 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
40590 image to dynamic memory.
40591 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
40592 `memdisk_size'. Free memdisk block.
40593
1a8b0526 405942008-01-21 Robert Millan <rmh@aybabtu.com>
40595
40596 Fix detection of very small filesystems (like tar).
40597
40598 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
40599 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
40600 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
40601 a problem with this disk).
40602
6e9b4aab 406032008-01-21 Robert Millan <rmh@aybabtu.com>
40604
40605 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
40606 on grub_biosdisk_rw_standard() error.
40607
0d8837b2 406082008-01-21 Robert Millan <rmh@aybabtu.com>
40609
40610 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
40611 recent changes.
40612 * kern/elf.c: Likewise.
40613 * kern/ieee1275/ieee1275.c: Likewise.
40614 * kern/powerpc/ieee1275/openfw.c: Likewise.
40615 * term/ieee1275/ofconsole.c: Likewise.
40616
ffd36e34 406172008-01-21 Robert Millan <rmh@aybabtu.com>
40618
40619 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
40620
3f0093d0 40621 * include/grub/kernel.h (grub_arch_memdisk_addr)
40622 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 40623
3f0093d0 40624 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
40625 (grub_arch_memdisk_size): ... to here.
ffd36e34 40626
6c391b21 406272008-01-21 Robert Millan <rmh@aybabtu.com>
40628
40629 Mostly based on bugfix from Bean.
40630
40631 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
40632 attribute with hook() parameter.
40633 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
40634 declaration.
40635 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
40636 attribute with hook() parameter.
40637 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
40638 declaration.
40639
55a581dc 406402008-01-21 Robert Millan <rmh@aybabtu.com>
40641
40642 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
40643 (pkglib_MODULES): Add `memdisk.mod'.
40644 (memdisk_mod_SOURCES): New variable.
40645 (memdisk_mod_CFLAGS): Likewise.
40646 (memdisk_mod_LDFLAGS): Likewise.
40647
40648 * disk/memdisk.c: New file.
40649
40650 * include/grub/disk.h (grub_disk_dev_id): Add
40651 `GRUB_DISK_DEVICE_MEMDISK_ID'.
40652
40653 * include/grub/i386/pc/kernel.h
40654 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
40655 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
40656 (grub_kernel_image_size): New variable declaration.
40657 (grub_total_module_size): Likewise.
40658 (grub_memdisk_image_size): Likewise.
40659
40660 * include/grub/i386/pc/memory.h
40661 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
40662
40663 * include/grub/kernel.h: Include `<grub/symbol.h>'.
40664 (grub_arch_memdisk_addr): New variable declaration.
40665 (grub_arch_memdisk_size): Likewise.
40666
40667 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
40668 (grub_arch_memdisk_size): Likewise.
40669
40670 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
40671 (codestart): Replace hardcoded `0x100000' with
40672 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
40673
40674 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
40675 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
40676 not NULL, append the contents of the file it refers to, at the end of
40677 the compressed kernel image. Initialize `grub_memdisk_image_size'
40678 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
40679 (options): Add "memdisk"|'m' option.
40680 (main): Parse --memdisk|-m option, and pass user-provided path as
40681 parameter to generate_image().
40682
3d7f54c9 406832008-01-20 Robert Millan <rmh@aybabtu.com>
40684
40685 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
40686 grub_dprintf() calls from here ...
40687 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
40688
0bf74728 406892008-01-20 Robert Millan <rmh@aybabtu.com>
40690
40691 Fix detection of "real mode" when /options/real-mode? doesn't exist.
40692
40693 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
40694 declaration.
40695 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
40696 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
40697 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 40698 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 40699 property).
40700 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
40701 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
40702
33bf70a7 407032008-01-19 Robert Millan <rmh@aybabtu.com>
40704
fe6b695a 40705 Get rid of confusing function (superseded by
33bf70a7 40706 `grub_ieee1275_get_integer_property')
40707 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
40708 prototype.
40709 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
40710 function.
40711 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
40712 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 40713 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 40714
e2da7d26 407152008-01-19 Robert Millan <rmh@aybabtu.com>
40716
40717 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
40718 command after "shut-down", since implementations differ on which
40719 the command for halt is.
40720
59f1fd8d 407212008-01-19 Robert Millan <rmh@aybabtu.com>
40722
40723 * include/grub/i386/linuxbios/console.h: Add header protection.
40724 (grub_keyboard_controller_init): New function prototype.
40725 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
40726 (KEYBOARD_COMMAND_READ): Likewise.
40727 (KEYBOARD_COMMAND_WRITE): Likewise.
40728 (KEYBOARD_SCANCODE_SET1): Likewise.
40729 (grub_keyboard_controller_write): New function.
40730 (grub_keyboard_controller_read): Likewise.
40731 (grub_keyboard_controller_init): Likewise.
40732
40733 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
40734 (grub_console_init): On coreboot/LinuxBIOS, call
40735 grub_keyboard_controller_init().
40736
5f5a7c15 407372008-01-19 Robert Millan <rmh@aybabtu.com>
40738
40739 PowerPC changes provided by Pavel Roskin.
40740
40741 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
40742 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
40743 don't rely on cmain() doing it.
40744 * kern/i386/ieee1275/startup.S (_start): Store %eax in
40745 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
40746
1210e168 407472008-01-16 Robert Millan <rmh@aybabtu.com>
40748
40749 * include/grub/i386/linuxbios/memory.h
40750 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
40751 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
40752 receive `table_header' as argument. Instead, probe for it in the
40753 known memory ranges where it can be present.
40754 (grub_available_iterate): Do not pass a fixed `table_header' address
40755 to grub_linuxbios_table_iterate().
40756
3d04eab8 407572008-01-15 Robert Millan <rmh@aybabtu.com>
40758
40759 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
40760 * conf/i386-ieee1275.rmk: New file.
40761 * include/grub/i386/ieee1275/console.h: Likewise.
40762 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
40763 * include/grub/i386/ieee1275/kernel.h: Likewise.
40764 * include/grub/i386/ieee1275/time.h: Likewise.
40765 * kern/i386/ieee1275/init.c: Likewise.
40766 * kern/i386/ieee1275/startup.S: Likewise.
40767
d1bc1b73 407682008-01-15 Robert Millan <rmh@aybabtu.com>
40769
40770 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
40771 when pointers are 32-bit (but still do set it to one when they are
40772 64-bit).
40773
66a65807 407742008-01-15 Robert Millan <rmh@aybabtu.com>
40775
40776 * include/grub/ieee1275/ieee1275.h
40777 (grub_ieee1275_get_integer_property): New function prototype.
40778
40779 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
40780 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 40781 grub_ieee1275_get_property() to handle endianness.
66a65807 40782
40783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
40784 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 40785 where appropriate.
66a65807 40786 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
40787 (grub_map): Likewise.
40788 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
40789
a83ccafd 407902008-01-15 Bean <bean123ch@gmail.com>
40791
40792 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
40793 (grub_script_execute_cmdline): Reset grub_errno.
40794
40795 * normal/main.c (read_config_file): Reset grub_errno.
40796
40797 * normal/parse.y (script_init): New.
40798 (script): Move function and menuentry here.
40799 (delimiter): New.
40800 (command): Add delimiter at the end of command.
40801 (commands): Adjust to match the new command.
40802 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 40803 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 40804 (if): Use the new commands.
40805
40806 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
40807
df6ecfc6 408082008-01-15 Robert Millan <rmh@aybabtu.com>
40809
40810 * normal/menu.c (run_menu): Move timeout message from here ...
40811 (print_timeout): ... to here.
40812 (run_menu): Use print_timeout() once during initial draw to print
40813 the whole message, and again in every clock tick to update only
40814 the number of seconds.
40815
87ae25eb 408162008-01-15 Robert Millan <rmh@aybabtu.com>
40817
40818 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
40819 actual size of `available' from grub_ieee1275_get_property(), and
40820 restrict parsing to that bound.
40821
47bf09a4 408222008-01-15 Christian Franke <franke@computer.org>
40823
40824 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
40825 (argp_program_version): Remove variable.
40826 (argp_program_bug_address): Likewise.
40827 (options): Convert from struct argp_option to struct option.
40828 (struct arguments): Remove.
40829 (parse_opt): Remove.
40830 (usage): New function.
40831 (main): Replace struct args members by simple variables.
40832 Replace argp_parse() by getopt_long().
40833 Add switch to evaluate options.
40834 Add missing "(...)" around root_dev in prefix string.
40835
c86f1469 408362008-01-14 Robert Millan <rmh@aybabtu.com>
40837
40838 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
40839 for grub_ieee1275_exit(), in order to improve portability.
40840
e622c559 408412008-01-14 Robert Millan <rmh@aybabtu.com>
40842
40843 * util/grub.d/10_linux.in (prefix): Define.
40844 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
40845
44cb1ec8 408462008-01-13 Pavel Roskin <proski@gnu.org>
40847
40848 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
40849 grub_errno if no errors have been detected.
40850
1eb8c802 408512008-01-12 Robert Millan <rmh@aybabtu.com>
40852
40853 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
40854 (grub_util_get_dev_abstraction): New function prototype.
40855
40856 * util/getroot.c: Include `<grub/util/getroot.h>'
40857 (grub_util_get_grub_dev): Move detection of abstraction type to ...
40858 (grub_util_get_dev_abstraction): ... here (new function).
40859
40860 * util/grub-probe.c: Convert PRINT_* to an enum. Add
40861 `PRINT_ABSTRACTION'.
40862 (probe): Probe for abstraction type when requested.
40863 (main): Understand `--target=abstraction'.
40864
40865 * util/i386/efi/grub-install.in: Add abstraction module to core
40866 image when it is found to be necessary.
40867 * util/i386/pc/grub-install.in: Likewise.
40868 * util/powerpc/ieee1275/grub-install.in: Likewise.
40869
40870 * util/update-grub_lib.in (font_path): Return system path without
40871 converting to GRUB path.
40872 * util/update-grub.in: Convert system path returned by font_path()
40873 to a GRUB path. Use `grub-probe -t abstraction' to determine what
40874 abstraction module is needed for loading fonts (if any). Export
40875 that as `GRUB_PRELOAD_MODULES'.
40876 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
40877 insmod commands).
40878
52bd3de9 408792008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
40880
40881 Remove some unused code from reiserfs.
f19dbdb7 40882
52bd3de9 40883 * fs/reiserfs.c (struct grub_reiserfs_key)
40884 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
40885 (struct grub_reiserfs_node_body): Removed.
40886 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40887 Likewise.
40888 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40889 Likewise.
40890 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40891 Likewise.
40892 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40893 Likewise.
40894 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40895 Likewise.
40896 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
40897 Likewise.
40898 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40899 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40900 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40901
2f80039d 409022008-01-10 Robert Millan <rmh@aybabtu.com>
40903
40904 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
40905 Determines if a file is garbage left by packaging systems, etc.
40906 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
40907 for processing /etc/grub.d scripts.
40908 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
40909 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
40910 as a condition for processing Linux images.
40911
87888032 409122008-01-10 Pavel Roskin <proski@gnu.org>
40913
40914 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
40915 to compile reiserfs.c on PowerPC.
40916
7e54fced 409172008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 40918
40919 * kern/device.c (grub_device_iterate): Do not abort device iteration
40920 when one of the devices cannot be opened.
40921 * kern/disk.c (grub_disk_open): Do not account previous failures of
40922 unrelated functions when grub_errno is checked for.
40923
5aa541e6 409242008-01-08 Robert Millan <rmh@aybabtu.com>
40925
40926 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
40927 `! grub_linux_is_bzimage', change order of address comparison to make
40928 it more intuitive, and improve "too big zImage" error message.
40929
7076340d 409302008-01-08 Robert Millan <rmh@aybabtu.com>
40931
40932 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
40933 `$(update-grub_DATA)'.
40934 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
40935 targets.
40936
9ca70333 409372008-01-07 Robert Millan <rmh@aybabtu.com>
40938
40939 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
40940 which instruction is modified by grub-setup during installation
40941 (since it wasn't obvious by only looking at this file).
40942
38ccf575 409432008-01-07 Robert Millan <rmh@aybabtu.com>
40944
40945 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
40946 listing actual TODO items.
40947
f5db4291 409482008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40949
868967cf 40950 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
40951 correctly.
40952 (grub_reiserfs_get_key_offset): Likewise.
40953 (grub_reiserfs_set_key_offset): Likewise.
40954 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 40955 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 40956
40957 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
40958 better to remove the bitfield version completely.
f19dbdb7 40959
868967cf 409602008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40961
f5db4291 40962 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40963 allocated from the heap, due to the fshelp implementation.
40964 (grub_reiserfs_dir): Free NODE, due to the same reason.
40965
492e6d9d 409662008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40967
40968 Mostly from Vincent Pelletier:
f19dbdb7 40969
492e6d9d 40970 * fs/reiserfs.c: New file.
f19dbdb7 40971
492e6d9d 40972 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40973 (reiserfs_mod_SOURCES): New variable.
40974 (reiserfs_mod_CFLAGS): Likewise.
40975 (reiserfs_mod_LDFLAGS): Likewise.
40976
40977 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40978 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40979 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40980 normal/color.c.
40981
9ce3e7c1 409822008-01-06 Robert Millan <rmh@aybabtu.com>
40983
40984 * normal/color.c: Remove `<grub/env.h>'.
40985
f3b58148 409862008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40987
40988 * include/grub/normal.h: Include <grub/env.h>.
40989
7ac3bcfa 409902008-01-05 Robert Millan <rmh@aybabtu.com>
40991
40992 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40993 usage example with `(hd0,1)'.
fb358190 40994 Reported by Samuel Thibault.
7ac3bcfa 40995
c8ee99d7 409962008-01-05 Robert Millan <rmh@aybabtu.com>
40997
40998 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40999 (grub_linux_boot_zimage): Rename to ...
41000 (grub_linux_boot): ... this.
41001 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
41002 (grub_linux_boot_zimage): Conditionalize zImage copy.
41003
41004 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
41005 (grub_linux_boot_bzimage): Remove prototype.
41006 (grub_linux_boot_zimage): Rename to ...
41007 (grub_linux_boot): ... this.
41008
41009 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
41010 (grub_linux_boot): Remove function.
41011
0ece25b1 410122008-01-05 Robert Millan <rmh@aybabtu.com>
41013
41014 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
41015 (grub_env_write_color_highlight): Likewise.
41016 (grub_wait_after_message): Likewise.
41017
41018 * normal/color.c: New file.
41019
41020 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41021 (normal_mod_DEPENDENCIES): Likewise.
41022
41023 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41024 (normal_mod_DEPENDENCIES): Likewise.
41025
41026 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41027 (normal_mod_DEPENDENCIES): Likewise.
41028
41029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41030 (normal_mod_DEPENDENCIES): Likewise.
41031
41032 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
41033 for waiting after a message is printed.
41034 * normal/main.c (read_config_file): Likewise.
41035 (grub_normal_init): Register grub_env_write_color_normal() and
41036 grub_env_write_color_highlight() hooks. Mark `color_normal' and
41037 `color_highlight' variables as global.
41038
41039 * normal/menu.c (grub_wait_after_message): New function.
41040 (grub_color_menu_normal): New variable. Replaces ...
41041 (GRUB_COLOR_MENU_NORMAL): ... this macro.
41042 (grub_color_menu_highlight): New variable. Replaces ...
41043 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
41044 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
41045 `GRUB_TERM_COLOR_STANDARD'.
41046 (print_message): Use `grub_setcolorstate' to reload colors. Rename
41047 `normal_code' and `highlight_code' to `old_color_normal' and
41048 `old_color_highlight', respectively.
41049 (grub_menu_init_page): Update colors when drawing the menu, based on
41050 `menu_color_normal' and `menu_color_highlight' variables.
41051 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
41052 a message is printed.
41053
182dd4e5 410542008-01-05 Robert Millan <rmh@aybabtu.com>
41055
41056 * kern/env.c (grub_env_context_open): Propagate hooks for global
41057 variables to new context.
41058
41059 * kern/main.c (grub_set_root_dev): Export `root' variable.
41060
ddf8f6ad 410612008-01-05 Robert Millan <rmh@aybabtu.com>
41062
41063 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 41064 discs unconditionally, since udev and others have options to provide
ddf8f6ad 41065 them.
41066
d8b43d9b 410672008-01-05 Robert Millan <rmh@aybabtu.com>
41068
41069 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
41070
2bff2de3 410712008-01-04 Christian Franke <franke@computer.org>
41072
41073 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
41074 of eisa_mmap.
41075
97eab917 410762008-01-03 Pavel Roskin <proski@gnu.org>
41077
41078 * kern/i386/linuxbios/init.c: Put "void" to all function
41079 declarations with no arguments.
41080 * kern/powerpc/ieee1275/init.c: Likewise.
41081 * term/i386/pc/at_keyboard.c: Likewise.
41082 * term/i386/pc/vga_text.c: Likewise.
41083 * util/grub-mkdevicemap.c: Likewise.
41084
b9416d00 410852008-01-02 Robert Millan <rmh@aybabtu.com>
41086
41087 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
41088 message when loaded image is out of bounds.
41089 (grub_multiboot_load_elf64): Likewise.
41090
92695df9 410912008-01-02 Pavel Roskin <proski@gnu.org>
41092
41093 * util/grub.d/10_linux.in: Try version without ".old" when
41094 looking for initrd. It's better to use initrd from the newer
41095 kernel of the same version than no initrd at all.
41096
d98d9cad 410972008-01-01 Robert Millan <rmh@aybabtu.com>
41098
41099 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
41100
dbfdce36 411012008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
41102
f19dbdb7 41103 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 41104 grub_video_get_active_render_target.
41105 (grub_video_adapter): Added unmap_color and get_active_render_target.
41106
f19dbdb7 41107 * video/video.c: Added grub_video_unmap_color and
dbfdce36 41108 grub_video_get_active_render_target.
41109 (grub_video_get_info): Changed method to accept NULL pointer as an
41110 argument to allow detection of active video adapter.
41111
41112 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
41113 grub_video_vbe_unmap_color_int.
41114 Added grub_video_vbe_unmap_color and
41115 grub_video_vbe_get_active_render_target.
41116 (grub_video_vbe_adapter): Added unmap_color and
41117 get_active_render_target.
41118
f19dbdb7 41119 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 41120 with grub_video_vbe_unmap_color_int.
41121
41122 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
41123 (DEFAULT_NORMAL_COLOR): Likewise.
41124 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
41125 (DEFAULT_FG_COLOR): Removed.
41126 (DEFAULT_BG_COLOR): Likewise.
41127 (DEFAULT_CURSOR_COLOR): Changed value.
41128 (grub_virtual_screen): Added standard_color_setting,
41129 normal_color_setting, highlight_color_setting and term_color.
41130 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
41131 (bitmap_width): Added.
41132 (bitmap_height): Likewise.
41133 (bitmap): Likewise.
41134 (set_term_color): Likewise.
41135 (grub_virtual_screen_setup): Changed to use new terminal coloring
41136 settings.
41137 (grub_gfxterm_init): Added init for bitmap.
41138 (grub_gfxterm_fini): Added destroy for bitmap.
41139 (redraw_screen_rect): Updated to use background bitmap and new
41140 terminal coloring.
41141 (scroll_up): Added optimization for case when there is no bitmap.
41142 (grub_gfxterm_cls): Fixed to use correct background color.
41143 (grub_virtual_screen_setcolorstate): Changed to use new terminal
41144 coloring.
41145 (grub_virtual_screen_setcolor): Likewise.
41146 (grub_virtual_screen_getcolor): Added.
41147 (grub_gfxterm_background_image_cmd): Likewise.
41148 (grub_video_term): Added setcolor and getcolor.
41149 (MOD_INIT): Added registration of background_image command.
41150 (MOD_TERM): Added unregistration for background_image command.
41151
c3c20931 411522007-12-30 Pavel Roskin <proski@gnu.org>
41153
41154 * loader/multiboot_loader.c: Fix multiboot command
41155 unregistration. Fix all typos in the word "multiboot".
41156
df266716 411572007-12-29 Pavel Roskin <proski@gnu.org>
94239199 41158
41159 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41160 support for initrd names used in Fedora.
41161
fc6e896c 411622007-12-26 Bean <bean123ch@gmail.com>
41163
41164 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41165 (cpio_mod_SOURCES): New variable.
41166 (cpio_mod_CFLAGS): Likewise.
41167 (cpio_mod_LDFLAGS): Likewise.
41168
41169 * fs/cpio.c: New file.
41170
41171 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41172
41173 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41174
41175 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41176
41177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41178
533110ad 411792007-12-25 Robert Millan <rmh@aybabtu.com>
41180
41181 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41182 (grub_getcolor): New function.
41183
41184 * kern/term.c (grub_getcolor): New function.
41185 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41186 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41187 (print_entry): Set normal and highlight colors to
41188 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41189 respectively, before printing and restore them to old
41190 values afterwards.
41191 (grub_menu_init_page): Likewise. Fill an additional colored space
41192 that would otherwise be left blank.
41193
41194 * term/efi/console.c (grub_console_getcolor): New function.
41195 (struct grub_console_term.getcolor): New variable.
41196 * term/i386/pc/console.c (grub_console_getcolor): New function.
41197 (struct grub_console_term.getcolor): New variable.
41198 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41199 (struct grub_console_term.getcolor): New variable.
41200
41201 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41202 (struct grub_console_term.setcolor): Remove variable.
41203 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41204 (struct grub_console_term.setcolor): Remove variable.
41205 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41206 (struct grub_console_term.setcolor): Remove variable.
41207 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41208 (struct grub_console_term.setcolor): Remove variable.
41209
4931827f 412102007-12-25 Robert Millan <rmh@aybabtu.com>
41211
41212 * configure.ac: Search for possible unifont.hex locations, and
41213 define UNIFONT_HEX if found.
41214
41215 * Makefile.in (UNIFONT_HEX): Define variable.
41216 (DATA): Rename to ...
41217 (PKGLIB): ... this. Update all users.
41218 (PKGDATA): New variable.
41219 (pkgdata_IMAGES): Rename to ...
41220 (pkglib_IMAGES): ... this. Update all users.
41221 (pkgdata_MODULES): Rename to ...
41222 (pkglib_MODULES): ... this. Update all users.
41223 (pkgdata_PROGRAMS): Rename to ...
41224 (pkglib_PROGRAMS): ... this. Update all users.
41225 (pkgdata_DATA): Rename to ...
41226 (pkglib_DATA): ... this. Update all users.
41227 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41228 (unicode.pff, ascii.pff): New rules.
41229 (all-local): Add `$(PKGDATA)' dependency.
41230 (install-local): Process `$(PKGDATA)'.
41231
41232 * util/update-grub_lib.in (font_path): Search for *.pff files in
41233 a few more locations, including `${pkgdata}'.
41234
57e57e31 412352007-12-23 Robert Millan <rmh@aybabtu.com>
41236
41237 Patch from Bean <bean123ch@gmail.com>:
41238 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41239 `size'.
41240
4bc72aa9 412412007-12-21 Bean <bean123ch@gmail.com>
41242
41243 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41244 (ntfscomp_mod_SOURCES): New variable.
41245 (ntfscomp_mod_CFLAGS): Likewise.
41246 (ntfscomp_mod_LDFLAGS): Likewise.
41247
41248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41249 (grub_probe_SOURCES): Likewise.
41250 (grub_emu_SOURCES): Likewise.
41251
41252 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41253 (grub_emu_SOURCES): Likewise.
41254
41255 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41256 (grub_emu_SOURCES): Likewise.
41257
41258 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41259 (grub_emu_SOURCES): Likewise.
41260
41261 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41262 (read_run_list): Renamed to grub_ntfs_read_run_list.
41263 (decomp_nextvcn): Moved to ntfscomp.c.
41264 (decomp_getch): Likewise.
41265 (decomp_get16): Likewise.
41266 (decomp_block): Likewise.
41267 (read_block): Likewise.
41268 (read_data): Partially moved to ntfscomp.c.
41269 (fixup): Change unsigned to grub_uint16_t.
41270 (read_mft): Change unsigned long to grub_uint32_t.
41271 (read_attr): Likewise.
41272 (read_data): Likewise.
41273 (read_run_data): Likewise.
41274 (read_run_list): Likewise.
41275 (read_mft): Likewise.
41276
41277 * fs/ntfscomp.c: New file.
41278
41279 * include/grub/ntfs.h: New file.
41280
af680a87 412812007-12-16 Robert Millan <rmh@aybabtu.com>
41282
41283 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41284 IDE disk check, since Linux is known to support 20 IDE disks.
41285 Reported by Colin Watson.
41286
84be7599 412872007-12-15 Bean <bean123ch@gmail.com>
41288
41289 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41290 (lnxboot_img_SOURCES): New variable.
41291 (lnxboot_img_ASFLAGS): Likewise.
41292 (lnxboot_img_LDFLAGS): Likewise.
41293
41294 * boot/i386/pc/lnxboot.S: New file.
41295
6af9db01 412962007-11-24 Pavel Roskin <proski@gnu.org>
41297
41298 * configure.ac: Test if '--build-id=none' is supported by the
41299 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41300 objcopy to generate incorrect binary files (binutils
41301 2.17.50.0.18-1 as shipped by Fedora 8).
41302 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41303 linking, so that build ID doesn't break the test.
41304
7361cfe6 413052007-11-24 Pavel Roskin <proski@gnu.org>
41306
41307 * include/grub/i386/time.h: use "void" in the argument list
41308 of grub_cpu_idle().
41309 * include/grub/powerpc/time.h: Likewise.
41310 * include/grub/sparc64/time.h: Likewise.
41311
1593e10c 413122007-11-18 Christian Franke <franke@computer.org>
41313
41314 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41315 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41316 This fixes the problem that function keys did not work in grub-emu.
41317
3b8db1a8 413182007-11-18 Christian Franke <franke@computer.org>
41319
41320 * disk/host.c (grub_host_open): Remove attribute unused from
41321 name parameter. Add check for "host". This fixes the problem
41322 that grub-emu does not find partitions.
41323
2e29408d 413242007-11-18 Christian Franke <franke@computer.org>
41325
41326 * util/hostfs.c (is_dir): New function.
41327 (grub_hostfs_dir): Handle missing dirent.d_type case.
41328 (grub_hostfs_read): Add missing fseek().
41329 (grub_hostfs_label): Clear label pointer. This fixes a crash
41330 of grub-emu on "ls (host)".
41331
398cd047 413322007-11-18 Christian Franke <franke@computer.org>
41333
41334 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41335 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41336 to 64 bit boundary by default.
41337
c405c391 413382007-11-18 Bean <bean123ch@gmail.com>
41339
41340 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41341 (hexdump_mod_SOURCES): New variable.
41342 (hexdump_mod_CFLAGS): Likewise.
41343 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 41344
c405c391 41345 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41346
41347 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41348
41349 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41350
41351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41352
41353 * include/grub/hexdump.h: New file.
41354
41355 * commands/hexdump.c: New file.
41356
5cced7fd 413572007-11-10 Robert Millan <rmh@aybabtu.com>
41358
41359 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41360 in grub_outb() calls.
41361 (beep_on): Likewise.
41362
8b714eb0 413632007-11-10 Christian Franke <franke@computer.org>
41364
41365 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41366 (grub_menu_run): Likewise.
41367
ce0f1839 413682007-11-10 Robert Millan <rmh@aybabtu.com>
41369
41370 * include/grub/i386/efi/machine.h: New file.
41371 * include/grub/i386/linuxbios/machine.h: Likewise.
41372 * include/grub/i386/pc/machine.h: Likewise.
41373 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41374 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41375
41376 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41377 (serial_hw_io_addr): New variable.
41378 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41379 instead of `(unsigned short *) 0x400'.
41380
270c237d 413812007-11-10 Bean <bean123ch@gmail.com>
41382
41383 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41384
a87783bf 413852007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41386
41387 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41388 (vga_mod_SOURCES): Added.
41389 (vga_mod_CFLAGS): Likewise.
41390 (vga_mod_LDFLAGS): Likewise.
41391
41392 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41393 grub_outb() calls.
41394 (set_map_mask): Likewise.
41395 (set_read_map): Likewise.
41396 (set_read_address): Likewise.
41397 (vga_font): Removed variable.
41398 (get_vga_glyph): Removed function.
41399 (invalidate_char): Likewise.
41400 (write_char): Changed to use grub_font_get_glyph() for font
41401 information.
41402 (grub_vga_putchar): Likewise.
41403 (grub_vga_getcharwidth): Likewise.
41404
6433b448 414052007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41406
41407 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41408 flags.
41409 (pxeboot_img_LDFLAGS): Likewise.
41410 (diskboot_img_LDFLAGS): Likewise.
41411 (kernel_img_LDFLAGS): Likewise.
41412
49178511 414132007-11-06 Robert Millan <rmh@aybabtu.com>
41414
41415 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41416 in grub_outb() calls.
41417 (serial_hw_init): Likewise.
41418
53b052de 414192007-11-05 Robert Millan <rmh@aybabtu.com>
41420
41421 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41422 spaces. Skip non-regular files.
41423
5ab33bba 414242007-11-05 Robert Millan <rmh@aybabtu.com>
41425
41426 * kern/disk.c (grub_disk_firmware_fini)
41427 (grub_disk_firmware_is_tainted): New variables.
41428
41429 * include/grub/disk.h (grub_disk_firmware_fini)
41430 (grub_disk_firmware_is_tainted): Likewise.
41431
41432 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41433 (grub_disk_biosdisk_fini): ... to here.
41434 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41435 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41436 is set. Register grub_disk_biosdisk_fini() in
41437 `grub_disk_firmware_fini'.
41438
41439 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
41440 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
41441 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
41442 to finish existing firmware disk interface.
41443
41444 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
41445 (ata_mod_SOURCES): New variable.
41446 (ata_mod_CFLAGS): Likewise.
41447 (ata_mod_LDFLAGS): Likewise.
41448
0149ab7c 414492007-11-05 Robert Millan <rmh@aybabtu.com>
41450
41451 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
41452 (grub_ata_wait): Reimplement using grub_millisleep().
41453
41454 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
41455 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
41456
be7ac41e 414572007-11-03 Marco Gerards <marco@gnu.org>
41458
41459 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
41460 (CRTC_ADDR_PORT): New macro.
41461 (CRTC_DATA_PORT): Likewise.
41462 (CRTC_CURSOR): Likewise.
41463 (CRTC_CURSOR_ADDR_HIGH): Likewise.
41464 (CRTC_CURSOR_ADDR_LOW): Likewise.
41465 (update_cursor): New function.
41466 (grub_console_real_putchar): Call `update_cursor'.
41467 (grub_console_gotoxy): Likewise.
41468 (grub_console_cls): Set the default color when clearing the
41469 screen.
41470 (grub_console_setcursor): Implemented.
41471
bb06ab2e 414722007-11-03 Marco Gerards <marco@gnu.org>
41473
41474 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
41475 become activate.
41476 (grub_ata_pio_write): Likewise.
41477
41478 (grub_atapi_identify): Wait after issuing an ATA command.
41479 (grub_atapi_packet): Likewise.
41480 (grub_ata_identify): Likewise.
41481 (grub_ata_readwrite): Likewise.
41482
cf8f780b 414832007-11-03 Marco Gerards <marco@gnu.org>
41484
41485 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
41486 (grub_ata_pio_write): Likewise.
41487 (grub_ata_readwrite): Use `grub_error', instead of
41488 returning `grub_errno'.
41489
ed649e54 414902007-11-03 Marco Gerards <marco@gnu.org>
41491
41492 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
41493 grub_ata_pio_write once for every single sector, instead of for
41494 multiple sectors.
41495
ca25d8f0 414962007-10-31 Robert Millan <rmh@aybabtu.com>
41497
41498 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
41499
41500 * conf/i386-linuxbios.rmk: New file.
41501
41502 * kern/i386/pc/hardware.c: Likewise.
41503 * term/i386/pc/at_keyboard.c: Likewise.
41504 * term/i386/pc/vga_text.c: Likewise.
41505
41506 * include/grub/i386/linuxbios/boot.h: Likewise.
41507 * include/grub/i386/linuxbios/console.h: Likewise.
41508 * include/grub/i386/linuxbios/init.h: Likewise.
41509 * include/grub/i386/linuxbios/kernel.h: Likewise.
41510 * include/grub/i386/linuxbios/loader.h: Likewise.
41511 * include/grub/i386/linuxbios/memory.h: Likewise.
41512 * include/grub/i386/linuxbios/serial.h: Likewise.
41513 * include/grub/i386/linuxbios/time.h: Likewise.
41514
41515 * kern/i386/linuxbios/init.c: Likewise.
41516 * kern/i386/linuxbios/startup.S: Likewise.
41517 * kern/i386/linuxbios/table.c: Likewise.
41518
e911ecc1 415192007-10-31 Marco Gerards <marco@gnu.org>
41520
41521 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
41522 (ata_mod_SOURCES): New variable.
41523 (ata_mod_CFLAGS): Likewise.
41524 (ata_mod_LDFLAGS): Likewise.
41525
41526 * disk/ata.c: New file.
41527
41528 * include/grub/disk.h (grub_disk_dev_id): Add
41529 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 41530
7f66d0e0 415312007-10-31 Robert Millan <rmh@aybabtu.com>
41532
41533 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
41534 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
41535
41536 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
41537 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
41538
41539 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
41540 `<grub/types.h>'.
41541
41542 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
41543
5cd7dd46 415442007-10-27 Robert Millan <rmh@aybabtu.com>
41545
3236ca65 41546 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 41547
2ebfc90f 415482007-10-22 Robert Millan <rmh@aybabtu.com>
41549
41550 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
41551 `"../realmode.S"'.
41552 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
41553
73fcb0f3 415542007-10-22 Robert Millan <rmh@aybabtu.com>
41555
41556 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
41557 (pkgdata_MODULES): Add `biosdisk.mod'.
41558 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
41559 variables.
41560
41561 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
41562 (grub_biosdisk_init): Replace with ...
41563 (GRUB_MOD_INIT(biosdisk)): ... this.
41564 (grub_biosdisk_fini): Replace with ...
41565 (GRUB_MOD_FINI(biosdisk)): ... this.
41566
41567 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
41568 (grub_machine_init): Remove call to grub_biosdisk_init().
41569 (grub_machine_fini): Remove call to grub_machine_fini().
41570
41571 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
41572
3381d274 415732007-10-22 Robert Millan <rmh@aybabtu.com>
41574
41575 * include/grub/time.h: New file.
41576 * include/grub/i386/time.h: Likewise.
41577 * include/grub/powerpc/time.h: Likewise.
41578 * include/grub/sparc64/time.h: Likewise.
41579
41580 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
41581 instances to ...
41582 (KERNEL_MACHINE_TIME_HEADER): ... this.
41583 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41584 instances to ...
41585 (KERNEL_MACHINE_TIME_HEADER): ... this.
41586 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41587 instances to ...
41588 (KERNEL_MACHINE_TIME_HEADER): ... this.
41589
41590 * kern/i386/efi/init.c: Include `<grub/time.h>'.
41591 (grub_millisleep): New function.
41592 * kern/i386/pc/init.c: Include `<grub/time.h>'.
41593 (grub_millisleep): New function.
41594 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
41595 Remove `grub/machine/time.h' include.
41596 (grub_millisleep): New function.
41597 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
41598 Remove `grub/machine/time.h' include.
41599 (grub_millisleep): New function.
41600
41601 * include/grub/misc.h (grub_div_roundup): New function.
41602
41603 * kern/misc.c: Include `<grub/time.h>'.
41604 (grub_millisleep_generic): New function.
41605
41606 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
41607 Add `time.h'.
41608 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
41609 Add `time.h'.
41610 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
41611 `machine/time.h'. Add `time.h'.
41612 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41613
a39a0312 416142007-10-21 Robert Millan <rmh@aybabtu.com>
41615
41616 * include/grub/misc.h (grub_max): New function.
41617
2aad70e2 416182007-10-21 Robert Millan <rmh@aybabtu.com>
41619
41620 * util/misc.c (grub_util_info): Call fflush() before returning.
41621
54b71c4b 416222007-10-20 Robert Millan <rmh@aybabtu.com>
41623
41624 * genmk.rb (Image): Copy `extra_flags' from here ...
41625 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
41626
41627 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
41628 to `argc' and `args' arguments.
41629
a979f513 416302007-10-17 Robert Millan <rmh@aybabtu.com>
41631
41632 * kern/i386/loader.S: New file.
41633
41634 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
41635 * kern/i386/loader.S (grub_linux_prot_size)... to here.
41636 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
41637 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
41638 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
41639 * kern/i386/loader.S (grub_linux_real_addr)... to here.
41640 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
41641 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
41642 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
41643 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
41644 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
41645 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
41646 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
41647 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
41648
41649 * kern/i386/realmode.S: New file.
41650
41651 * kern/i386/pc/startup.S (protstack): Moved from here ...
41652 * kern/i386/realmode.S (protstack)... to here.
41653 * kern/i386/pc/startup.S (gdt): Moved from here ...
41654 * kern/i386/realmode.S (gdt)... to here.
41655 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
41656 * kern/i386/realmode.S (prot_to_real)... to here.
41657
41658 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
41659 `kern/i386/realmode.S'.
41660
825fc8fd 416612007-10-17 Robert Millan <rmh@aybabtu.com>
41662
41663 * include/grub/i386/loader.h: New file.
41664
41665 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
41666 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41667 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41668 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41669 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
41670 * include/grub/i386/loader.h (grub_linux_prot_size)
41671 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41672 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41673 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41674 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
41675
41676 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
41677
e179b2f4 416782007-10-15 Robert Millan <rmh@aybabtu.com>
41679
41680 * normal/misc.c (grub_normal_print_device_info): Do not probe for
41681 filesystem when dev->disk is unset.
41682 Do probe for filesystem even when dev->disk->has_partitions is set.
41683 In case a filesystem is found, always report it.
41684 In case it isn't, if dev->disk->has_partitions is set, report that
41685 a partition table was found instead of reporting that no filesystem
41686 could be identified.
41687
5db82af6 416882007-10-12 Robert Millan <rmh@aybabtu.com>
41689
41690 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
41691 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
41692
68f6ac74 41693 * include/grub/types.h (grub_host_to_target16): New macro.
41694 (grub_host_to_target32): Likewise.
41695 (grub_host_to_target64): Likewise.
41696 (grub_target_to_host16): Likewise.
41697 (grub_target_to_host32): Likewise.
41698 (grub_target_to_host64): Likewise.
5db82af6 41699
41700 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41701 Renamed from to ...
41702 (GRUB_MOD_ALIGN): ...this. Update all users.
41703
68f6ac74 41704 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
41705 grub_host_to_target32.
41706 Replace grub_be_to_cpu32 with grub_target_to_host32.
41707 (load_modules): Likewise.
41708 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
41709 Replace grub_be_to_cpu32 with grub_target_to_host32.
41710 Replace grub_cpu_to_be16 with grub_host_to_target16.
41711 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 41712
3cf497cc 417132007-10-12 Robert Millan <rmh@aybabtu.com>
41714
41715 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
41716 * util/elf/grub-mkimage.c: ... here.
41717
41718 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
41719 `util/powerpc/ieee1275/grub-mkimage.c'.
41720
c8cc3692 417212007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 41722
c8cc3692 41723 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
41724 and make it easier to figure out.
41725 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
41726 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
41727 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
41728 leave us with less than HEAP_MIN_SIZE total heap.
41729 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 41730
5c58b791 417312007-10-03 Robert Millan <rmh@aybabtu.com>
41732
41733 * include/grub/i386/io.h: New file.
41734 * commands/i386/pc/play.c (inb): Removed.
41735 (outb): Removed.
41736 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41737 with grub_outb().
afcd2ef8 41738 * term/i386/pc/serial.c (inb): Removed.
41739 (outb): Removed.
41740 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41741 with grub_outb().
41742 * term/i386/pc/vga.c (inb): Removed.
41743 (outb): Removed.
41744 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41745 with grub_outb().
5c58b791 41746
1a477ed6 417472007-10-02 Robert Millan <rmh@aybabtu.com>
41748
41749 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
41750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41751 Reported by Marcin Kurek.
41752
6b5d80fa 417532007-09-07 Robert Millan <rmh@aybabtu.com>
41754
41755 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
41756 SmartFirmware version updates (as released by Sven Luther), and avoid
41757 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
41758 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
41759 known broken.
41760
5618afbf 417612007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41762
41763 From Hitoshi Ozeki:
41764 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
41765 when merging two regions.
41766
6139dcd9 417672007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41768
508e39ee 41769 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
41770 * normal/completion.c (grub_normal_do_completion): Likewise.
41771 Reported by Hitoshi Ozeki.
41772
417732007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 41774
6139dcd9 41775 Do not use devices at boot in chainloading.
f19dbdb7 41776
6139dcd9 41777 * loader/i386/pc/chainloader.c (boot_drive): New variable.
41778 (boot_part_addr): Likewise.
41779 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
41780 with BOOT_DRIVE and BOOT_PART_ADDR.
41781 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
41782 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
41783
38da6516 417842007-08-29 Robert Millan <rmh@aybabtu.com>
41785
41786 Patch from Simon Peter <dn.tlp@gmx.net>:
41787 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
41788 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
41789 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
41790 util/i386/pc/grub-setup.c_DEPENDENCIES.
41791 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
41792 util/grub-probe.c_DEPENDENCIES.
41793 * conf/powerpc-ieee1275.rmk: Likewise.
41794
29d0928c 417952007-08-28 Robert Millan <rmh@aybabtu.com>
41796
41797 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
41798 to tell grub-mkdevicemap how to name devices.
41799 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
41800 feature).
41801
41802 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
41803 util/i386/get_disk_name.c.
41804 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
41805 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
41806 util/ieee1275/get_disk_name.c.
41807
41808 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
41809
41810 * DISTLIST: Add util/i386/get_disk_name.c and
41811 util/ieee1275/get_disk_name.c.
41812
41813 * util/grub-mkdevicemap.c: Replace device naming logic with
41814 grub_util_get_disk_name() calls.
41815
5a0d3cca 418162007-08-20 Robert Millan <rmh@aybabtu.com>
41817
41818 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
41819 (so that it works for both plural and singular quantities).
41820
8b72db2f 418212007-08-05 Robert Millan <rmh@aybabtu.com>
41822
41823 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
41824 so that [xz] isn't taken into account when determining order.
41825
352466bf 418262007-08-02 Marco Gerards <marco@gnu.org>
41827
41828 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
41829 `include/multiboot2.h', `include/grub/elfload.h',
41830 `include/multiboot.h', `include/grub/multiboot.h',
41831 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
41832 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
41833 `kern/elf.c', `loader/multiboot_loader.c',
41834 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
41835 `loader/i386/pc/multiboot2.c',
41836 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
41837 `util/i386/pc/grub-mkrescue.in'. Remove
41838 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
41839 `include/grub/i386/pc/util/biosdisk.h' and
41840 `include/grub/powerpc/ieee1275/multiboot.h'.
41841
8f096014 418422007-08-02 Bean <bean123ch@gmail.com>
41843
41844 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
41845 (ntfs_mod_SOURCES): New variable.
41846 (ntfs_mod_CFLAGS): Likewise.
41847 (ntfs_mod_LDFLAGS): Likewise.
41848
41849 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
41850 (grub_probe_SOURCES): Likewise.
41851 (grub_emu_SOURCES): Likewise.
41852
41853 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41854 (grub_emu_SOURCES): Likewise.
41855
41856 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41857 (grub_emu_SOURCES): Likewise.
f19dbdb7 41858
8f096014 41859 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
41860
41861 * fs/ntfs.c: New file.
41862
9959f7db 418632007-08-02 Bean <bean123ch@gmail.com>
41864
41865 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
41866
41867 * file.h (grub_file): Likewise.
41868
41869 * fshelp.h (grub_fshelp_read_file): Likewise.
41870
41871 * util/i386/pc/grub-setup.c (setup): Likewise.
41872 (save_first_sector): Likewise.
41873 (save_blocklists): Likewise.
f19dbdb7 41874
9959f7db 41875 * fs/affs.c (grub_affs_read_file): Likewise.
41876
41877 * fs/ext2.c (grub_ext2_read_file): Likewise.
41878
41879 * fs/fat.c (grub_fat_read_data): Likewise.
41880
41881 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
41882
41883 * fs/hfs.c (grub_hfs_read_file): Likewise.
41884
41885 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41886
41887 * fs/jfs.c (grub_jfs_read_file): Likewise.
41888
41889 * fs/minix.c (grub_minix_read_file): Likewise.
41890
41891 * fs/sfs.c (grub_sfs_read_file): Likewise.
41892
41893 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 41894
9959f7db 41895 * fs/xfs.c (grub_xfs_read_file): Likewise.
41896
41897 * command/blocklist.c (read_blocklist): Likewise.
41898 (print_blocklist): Likewise.
41899
0a203f83 419002007-08-02 Marco Gerards <marco@gnu.org>
41901
41902 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
41903 `util/hostfs.c'.
41904
41905 * disk/host.c: New file.
41906
41907 * util/hostfs.c: Likewise.
41908
41909 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
41910 return `GRUB_ERR_BAD_FS'.
41911 * fs/sfs.c (grub_sfs_mount): Likewise.
41912 * fs/xfs.c (grub_xfs_mount): Likewise.
41913
41914 * include/grub/disk.h (enum grub_disk_dev_id): Add
41915 `GRUB_DISK_DEVICE_HOST_ID'.
41916
41917 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
41918
e5dfe777 419192007-07-24 Jerone Young <jerone@gmail.com>
41920
f19dbdb7 41921 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 41922 modules for compilation.
41923 * conf/powerpc-ieee1275.rmk: Likewise.
41924
41925 * include/multiboot.h: Move multiboot definitions to one file. Rename
41926 many definitions to not get grub specific.
41927 * include/multiboot2.h: Create header with multiboot 2 definitions.
41928 * include/grub/multiboot.h: Header for grub specific function
41929 prototypes and definitions.
41930 * include/grub/multiboot2.h: Likewise.
41931 * include/grub/multiboot_loader.h: Likewise.
41932 * include/grub/i386/pc/multiboot.h: Removed.
41933 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
41934
41935 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
41936 and 2 to allow for one multiboot and module commands.
41937 * loader/multiboot2.c: Add multiboot2 functionality.
41938 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
41939 and definition names.
41940 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
41941 2 functions.
41942 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
41943 ieee1275 specific multiboot2 code.
41944
41945 * kern/i386/pc/startup.S: Change headers and definition names for
41946 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
41947
daf0f0ba 419482007-07-22 Robert Millan <rmh@aybabtu.com>
41949
41950 * geninitheader.sh: Process file specified in first parameter rather
41951 than hardcoding grub_modules_init.lst.
fe6b695a 41952 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 41953 than hardcoding grub_modules_init.h.
41954
41955 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
41956 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
41957 grub_probe_init.[ch] and grub_setup_init.[ch].
41958
41959 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
41960 grub_modules_init.h with grub_emu_init.h.
41961 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
41962 grub_probe_init.[ch] files.
41963 * conf/i386-efi.rmk: Likewise.
41964 * conf/i386-pc.rmk: Likewise.
41965 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41966 grub_setup_init.[ch] files.
41967
41968 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41969 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41970 to initialize modules rather than a list of hardcoded functions.
41971 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41972 grub_init_all() to initialize modules rather than a list of hardcoded
41973 functions.
41974
54cdc1cc 419752007-07-22 Robert Millan <rmh@aybabtu.com>
41976
41977 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41978 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41979
ad0686cc 419802007-07-22 Robert Millan <rmh@aybabtu.com>
41981
41982 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41983 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41984 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41985 flag when running on SmartFirmware.
41986 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41987 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41988 was set.
41989
41990 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41991 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41992 rather than decreasing it.
41993
41994 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41995 there's not enough space to do it, fail in the same way as when it
41996 can't be done because there are no partitions.
41997
41998 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41999 when nvsetenv failed.
42000
969c02ec 420012007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42002
42003 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
42004 because this rule is automatically generated.
42005 (grub-mkrescue): Removed for the same reason as above.
42006
5a79f472 420072007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42008
42009 Migrate to GNU General Public License Version 3.
f19dbdb7 42010
5a79f472 42011 * COPYING: Replaced with the plain text version of GPLv3.
42012
42013 * config.guess: Updated from gnulib.
42014 * config.sub: Likewise.
42015
42016 * geninit.sh: Output a GPLv3 copyright notice.
42017 * geninitheader.sh: Likewise.
42018 * genmodsrc.sh: Likewise.
42019 * gensymlist.sh.in: Likewise.
42020
42021 * boot/i386/pc/boot.S: Upgraded to GPLv3.
42022 * boot/i386/pc/diskboot.S: Likewise.
42023 * boot/i386/pc/pxeboot.S: Likewise.
42024 * commands/blocklist.c: Likewise.
42025 * commands/boot.c: Likewise.
42026 * commands/cat.c: Likewise.
42027 * commands/cmp.c: Likewise.
42028 * commands/configfile.c: Likewise.
42029 * commands/echo.c: Likewise.
42030 * commands/help.c: Likewise.
42031 * commands/ls.c: Likewise.
42032 * commands/search.c: Likewise.
42033 * commands/terminal.c: Likewise.
42034 * commands/test.c: Likewise.
42035 * commands/videotest.c: Likewise.
42036 * commands/i386/cpuid.c: Likewise.
42037 * commands/i386/pc/halt.c: Likewise.
42038 * commands/i386/pc/play.c: Likewise.
42039 * commands/i386/pc/reboot.c: Likewise.
42040 * commands/i386/pc/vbeinfo.c: Likewise.
42041 * commands/i386/pc/vbetest.c: Likewise.
42042 * commands/ieee1275/halt.c: Likewise.
42043 * commands/ieee1275/reboot.c: Likewise.
42044 * commands/ieee1275/suspend.c: Likewise.
42045 * disk/loopback.c: Likewise.
42046 * disk/lvm.c: Likewise.
42047 * disk/raid.c: Likewise.
42048 * disk/efi/efidisk.c: Likewise.
42049 * disk/i386/pc/biosdisk.c: Likewise.
42050 * disk/ieee1275/ofdisk.c: Likewise.
42051 * font/manager.c: Likewise.
42052 * fs/affs.c: Likewise.
42053 * fs/ext2.c: Likewise.
42054 * fs/fat.c: Likewise.
42055 * fs/fshelp.c: Likewise.
42056 * fs/hfs.c: Likewise.
42057 * fs/hfsplus.c: Likewise.
42058 * fs/iso9660.c: Likewise.
42059 * fs/jfs.c: Likewise.
42060 * fs/minix.c: Likewise.
42061 * fs/sfs.c: Likewise.
42062 * fs/ufs.c: Likewise.
42063 * fs/xfs.c: Likewise.
42064 * hello/hello.c: Likewise.
42065 * include/grub/acorn_filecore.h: Likewise.
42066 * include/grub/arg.h: Likewise.
42067 * include/grub/bitmap.h: Likewise.
42068 * include/grub/boot.h: Likewise.
42069 * include/grub/cache.h: Likewise.
42070 * include/grub/device.h: Likewise.
42071 * include/grub/disk.h: Likewise.
42072 * include/grub/dl.h: Likewise.
42073 * include/grub/elfload.h: Likewise.
42074 * include/grub/env.h: Likewise.
42075 * include/grub/err.h: Likewise.
42076 * include/grub/file.h: Likewise.
42077 * include/grub/font.h: Likewise.
42078 * include/grub/fs.h: Likewise.
42079 * include/grub/fshelp.h: Likewise.
42080 * include/grub/gzio.h: Likewise.
42081 * include/grub/hfs.h: Likewise.
42082 * include/grub/kernel.h: Likewise.
42083 * include/grub/loader.h: Likewise.
42084 * include/grub/lvm.h: Likewise.
42085 * include/grub/misc.h: Likewise.
42086 * include/grub/mm.h: Likewise.
42087 * include/grub/net.h: Likewise.
42088 * include/grub/normal.h: Likewise.
42089 * include/grub/parser.h: Likewise.
42090 * include/grub/partition.h: Likewise.
42091 * include/grub/pc_partition.h: Likewise.
42092 * include/grub/raid.h: Likewise.
42093 * include/grub/rescue.h: Likewise.
42094 * include/grub/script.h: Likewise.
42095 * include/grub/setjmp.h: Likewise.
42096 * include/grub/symbol.h: Likewise.
42097 * include/grub/term.h: Likewise.
42098 * include/grub/terminfo.h: Likewise.
42099 * include/grub/tparm.h: Likewise.
42100 * include/grub/types.h: Likewise.
42101 * include/grub/video.h: Likewise.
42102 * include/grub/efi/api.h: Likewise.
42103 * include/grub/efi/chainloader.h: Likewise.
42104 * include/grub/efi/console.h: Likewise.
42105 * include/grub/efi/console_control.h: Likewise.
42106 * include/grub/efi/disk.h: Likewise.
42107 * include/grub/efi/efi.h: Likewise.
42108 * include/grub/efi/pe32.h: Likewise.
42109 * include/grub/efi/time.h: Likewise.
42110 * include/grub/i386/linux.h: Likewise.
42111 * include/grub/i386/setjmp.h: Likewise.
42112 * include/grub/i386/types.h: Likewise.
42113 * include/grub/i386/efi/kernel.h: Likewise.
42114 * include/grub/i386/efi/loader.h: Likewise.
42115 * include/grub/i386/efi/time.h: Likewise.
42116 * include/grub/i386/pc/biosdisk.h: Likewise.
42117 * include/grub/i386/pc/boot.h: Likewise.
42118 * include/grub/i386/pc/chainloader.h: Likewise.
42119 * include/grub/i386/pc/console.h: Likewise.
42120 * include/grub/i386/pc/init.h: Likewise.
42121 * include/grub/i386/pc/kernel.h: Likewise.
42122 * include/grub/i386/pc/loader.h: Likewise.
42123 * include/grub/i386/pc/memory.h: Likewise.
42124 * include/grub/i386/pc/multiboot.h: Likewise.
42125 * include/grub/i386/pc/serial.h: Likewise.
42126 * include/grub/i386/pc/time.h: Likewise.
42127 * include/grub/i386/pc/vbe.h: Likewise.
42128 * include/grub/i386/pc/vbeblit.h: Likewise.
42129 * include/grub/i386/pc/vbefill.h: Likewise.
42130 * include/grub/i386/pc/vbeutil.h: Likewise.
42131 * include/grub/i386/pc/vga.h: Likewise.
42132 * include/grub/ieee1275/ieee1275.h: Likewise.
42133 * include/grub/ieee1275/ofdisk.h: Likewise.
42134 * include/grub/powerpc/libgcc.h: Likewise.
42135 * include/grub/powerpc/setjmp.h: Likewise.
42136 * include/grub/powerpc/types.h: Likewise.
42137 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
42138 * include/grub/powerpc/ieee1275/console.h: Likewise.
42139 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
42140 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
42141 * include/grub/powerpc/ieee1275/loader.h: Likewise.
42142 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
42143 * include/grub/powerpc/ieee1275/time.h: Likewise.
42144 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
42145 * include/grub/sparc64/libgcc.h: Likewise.
42146 * include/grub/sparc64/setjmp.h: Likewise.
42147 * include/grub/sparc64/types.h: Likewise.
42148 * include/grub/sparc64/ieee1275/console.h: Likewise.
42149 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
42150 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
42151 * include/grub/sparc64/ieee1275/time.h: Likewise.
42152 * include/grub/util/biosdisk.h: Likewise.
42153 * include/grub/util/getroot.h: Likewise.
42154 * include/grub/util/lvm.h: Likewise.
42155 * include/grub/util/misc.h: Likewise.
42156 * include/grub/util/raid.h: Likewise.
42157 * include/grub/util/resolve.h: Likewise.
42158 * io/gzio.c: Likewise.
42159 * kern/device.c: Likewise.
42160 * kern/disk.c: Likewise.
42161 * kern/dl.c: Likewise.
42162 * kern/elf.c: Likewise.
42163 * kern/env.c: Likewise.
42164 * kern/err.c: Likewise.
42165 * kern/file.c: Likewise.
42166 * kern/fs.c: Likewise.
42167 * kern/loader.c: Likewise.
42168 * kern/main.c: Likewise.
42169 * kern/misc.c: Likewise.
42170 * kern/mm.c: Likewise.
42171 * kern/parser.c: Likewise.
42172 * kern/partition.c: Likewise.
42173 * kern/rescue.c: Likewise.
42174 * kern/term.c: Likewise.
42175 * kern/efi/efi.c: Likewise.
42176 * kern/efi/init.c: Likewise.
42177 * kern/efi/mm.c: Likewise.
42178 * kern/i386/dl.c: Likewise.
42179 * kern/i386/efi/init.c: Likewise.
42180 * kern/i386/efi/startup.S: Likewise.
42181 * kern/i386/pc/init.c: Likewise.
42182 * kern/i386/pc/lzo1x.S: Likewise.
42183 * kern/i386/pc/startup.S: Likewise.
42184 * kern/ieee1275/ieee1275.c: Likewise.
42185 * kern/powerpc/cache.S: Likewise.
42186 * kern/powerpc/dl.c: Likewise.
42187 * kern/powerpc/ieee1275/cmain.c: Likewise.
42188 * kern/powerpc/ieee1275/crt0.S: Likewise.
42189 * kern/powerpc/ieee1275/init.c: Likewise.
42190 * kern/powerpc/ieee1275/openfw.c: Likewise.
42191 * kern/sparc64/cache.S: Likewise.
42192 * kern/sparc64/dl.c: Likewise.
42193 * kern/sparc64/ieee1275/init.c: Likewise.
42194 * kern/sparc64/ieee1275/openfw.c: Likewise.
42195 * loader/efi/chainloader.c: Likewise.
42196 * loader/efi/chainloader_normal.c: Likewise.
42197 * loader/i386/efi/linux.c: Likewise.
42198 * loader/i386/efi/linux_normal.c: Likewise.
42199 * loader/i386/pc/chainloader.c: Likewise.
42200 * loader/i386/pc/chainloader_normal.c: Likewise.
42201 * loader/i386/pc/linux.c: Likewise.
42202 * loader/i386/pc/linux_normal.c: Likewise.
42203 * loader/i386/pc/multiboot.c: Likewise.
42204 * loader/i386/pc/multiboot_normal.c: Likewise.
42205 * loader/powerpc/ieee1275/linux.c: Likewise.
42206 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42207 * normal/arg.c: Likewise.
42208 * normal/cmdline.c: Likewise.
42209 * normal/command.c: Likewise.
42210 * normal/completion.c: Likewise.
42211 * normal/execute.c: Likewise.
42212 * normal/function.c: Likewise.
42213 * normal/lexer.c: Likewise.
42214 * normal/main.c: Likewise.
42215 * normal/menu.c: Likewise.
42216 * normal/menu_entry.c: Likewise.
42217 * normal/misc.c: Likewise.
42218 * normal/parser.y: Likewise.
42219 * normal/script.c: Likewise.
42220 * normal/i386/setjmp.S: Likewise.
42221 * normal/powerpc/setjmp.S: Likewise.
42222 * normal/sparc64/setjmp.S: Likewise.
42223 * partmap/acorn.c: Likewise.
42224 * partmap/amiga.c: Likewise.
42225 * partmap/apple.c: Likewise.
42226 * partmap/gpt.c: Likewise.
42227 * partmap/pc.c: Likewise.
42228 * partmap/sun.c: Likewise.
42229 * term/gfxterm.c: Likewise.
42230 * term/terminfo.c: Likewise.
42231 * term/efi/console.c: Likewise.
42232 * term/i386/pc/console.c: Likewise.
42233 * term/i386/pc/serial.c: Likewise.
42234 * term/i386/pc/vesafb.c: Likewise.
42235 * term/i386/pc/vga.c: Likewise.
42236 * term/ieee1275/ofconsole.c: Likewise.
42237 * util/biosdisk.c: Likewise.
42238 * util/console.c: Likewise.
42239 * util/genmoddep.c: Likewise.
42240 * util/getroot.c: Likewise.
42241 * util/grub-emu.c: Likewise.
42242 * util/grub-mkdevicemap.c: Likewise.
42243 * util/grub-probe.c: Likewise.
42244 * util/lvm.c: Likewise.
42245 * util/misc.c: Likewise.
42246 * util/raid.c: Likewise.
42247 * util/resolve.c: Likewise.
42248 * util/update-grub.in: Likewise.
42249 * util/update-grub_lib.in: Likewise.
42250 * util/grub.d/00_header.in: Likewise.
42251 * util/grub.d/10_hurd.in: Likewise.
42252 * util/grub.d/10_linux.in: Likewise.
42253 * util/i386/efi/grub-install.in: Likewise.
42254 * util/i386/efi/grub-mkimage.c: Likewise.
42255 * util/i386/pc/grub-install.in: Likewise.
42256 * util/i386/pc/grub-mkimage.c: Likewise.
42257 * util/i386/pc/grub-mkrescue.in: Likewise.
42258 * util/i386/pc/grub-setup.c: Likewise.
42259 * util/i386/pc/misc.c: Likewise.
42260 * util/powerpc/ieee1275/grub-install.in: Likewise.
42261 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42262 * util/powerpc/ieee1275/misc.c: Likewise.
42263 * video/bitmap.c: Likewise.
42264 * video/video.c: Likewise.
42265 * video/i386/pc/vbe.c: Likewise.
42266 * video/i386/pc/vbeblit.c: Likewise.
42267 * video/i386/pc/vbefill.c: Likewise.
42268 * video/i386/pc/vbeutil.c: Likewise.
42269 * video/readers/tga.c: Likewise.
42270
3572d015 422712007-07-02 Robert Millan <rmh@aybabtu.com>
42272
42273 * conf/i386-efi.rmk: Replace obsolete reference to
42274 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42275 with util/getroot.c.
42276 * conf/powerpc-ieee1275.rmk: Likewise.
42277 * conf/sparc64-ieee1275.rmk: Likewise.
42278
42279 * util/grub-emu.c (main): Fix unchecked pointer handling.
42280
2c2a681b 422812007-07-02 Robert Millan <rmh@aybabtu.com>
42282
42283 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42284 invocation to fail, in order to support partition-less media.
42285
42286 * util/i386/pc/grub-install.in: Likewise.
42287
42288 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42289 which fs or partmap modules are needed (akin to its sister scripts).
42290
42291 Also use grub-probe to get rid of unportable /proc/mounts check.
42292
42293 Print the same informational message that the other scripts do, before
fe6b695a 42294 exiting.
2c2a681b 42295
6193defe 422962007-06-23 Robert Millan <rmh@aybabtu.com>
42297
fe6b695a 42298 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 42299 a font file can be found and, if so, echo the GRUB path to it.
42300
42301 * util/update-grub.in: Handle multiple terminals depending on user
42302 input, platform availability and font file presence. Propagate
42303 variables of our findings to /etc/grub.d/ children.
42304
42305 * util/grub.d/00_header.in: Handle multiple terminals, based on
42306 environment setup by update-grub.
42307
eface1dc 423082007-06-23 Robert Millan <rmh@aybabtu.com>
42309
ba50d28f 42310 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 42311
bf697e28 423122007-06-21 Robert Millan <rmh@aybabtu.com>
42313
42314 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42315 indicate end of data section in kernel image.
42316 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42317 GRUB_KERNEL_MACHINE_DATA_END.
42318
42319 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42320 space for it.
42321 * kern/i386/efi/startup.S: Likewise.
42322
42323 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42324 during image generation. Implement --prefix option to override this
42325 patch.
42326 * util/i386/efi/grub-mkimage.c: Likewise.
42327
42328 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42329 code to make path relative to its root into a separate function.
42330
42331 * util/i386/pc/grub-install.in: Use newly provided
42332 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42333 pass the result to grub-install --prefix.
42334
baa574b4 423352007-06-13 Robert Millan <rmh@aybabtu.com>
42336
42337 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42338 DEFAULT_DEVICE_MAP.
42339 * util/grub-emu.c: Use above definitions from misc.h instead of
42340 defining them.
42341 * util/grub-mkdevicemap.c: Likewise.
42342 * util/i386/pc/grub-setup.c: Likewise.
42343 * util/grub-probe.c: Likewise.
42344 (probe): Abort with grub_util_error() when either
42345 grub_guess_root_device or grub_util_get_grub_dev fails.
42346
0215dcbf 423472007-06-12 Robert Millan <rmh@aybabtu.com>
42348
42349 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42350 "pager" assignment.
42351 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42352 "pcdata".
42353 * util/grub-probe.c (probe): Likewise for "drive_name".
42354
8af2ab7b 423552007-06-11 Robert Millan <rmh@aybabtu.com>
42356
42357 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42358 not just the cdrom one.
42359
59d31694 423602007-06-11 Robert Millan <rmh@aybabtu.com>
42361
42362 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42363 Add --pkglibdir=DIR option to override pkglibdir.
42364 Mention --image-type=TYPE in help output.
42365 Fix --grub-mkimage (it was a no-op).
fe6b695a 42366 Abort gracefully when no parameter is given.
59d31694 42367
7ee367e4 423682007-06-11 Robert Millan <rmh@aybabtu.com>
42369
42370 * util/i386/pc/grub-mkrescue.in: New file.
42371 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42372 * Makefile.in: Handle bin_SCRIPTS.
42373
29b0ed46 423742007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42375
42376 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42377 list of video modes.
42378
c0f90770 423792007-06-06 Robert Millan <rmh@aybabtu.com>
42380
42381 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42382 file doesn't exist, or if it is in a filesystem grub can't read.
42383
42384 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42385 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42386 header comment to fit in 80 columns when the variables are resolved.
42387
42388 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42389 could be identified by update-grub. Remove redundant check for
fe6b695a 42390 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 42391 handles that).
42392
fb36dc26 423932007-06-04 Robert Millan <rmh@aybabtu.com>
42394
42395 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42396
42397 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42398
42399 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42400
0c68c93e 424012007-06-04 Robert Millan <rmh@aybabtu.com>
42402
42403 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42404
42405 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42406 grub_apple_partition_map_fini.
42407
42408 * util/biosdisk.c
42409 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42410 to access >2 TiB disks).
42411
42412 Print disk->total_sectors with %llu instead of %lu, since this
42413 variable is always 64-bit (prevents wrong disk size from being displayed
42414 on either >2 TiB disk or big-endian CPU).
42415
42416 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42417 into a generic case that supports all (sane) partition maps.
42418
42419 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42420 breaks big-endian.
42421
42422 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42423 and grub_apple_partition_map_fini() after that.
42424
0f23eb74 424252007-06-01 Robert Millan <rmh@aybabtu.com>
42426
42427 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42428
42429 * util/grub.d/00_header.in: Only enable gfxterm when
42430 convert_system_path_to_grub_path() succeeds.
42431
42c71976 424322007-05-20 Robert Millan <rmh@aybabtu.com>
42433
42434 * util/update-grub_lib.in: New file.
42435 * DISTLIST: Add update-grub_lib.in.
42436 * conf/common.rmk: Generate update-grub_lib and install it in
42437 $(lib_DATA).
42438 * Makefile.in: Add install routine for $(lib_DATA).
42439
42440 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
42441 function provided by update-grub_lib to support arbitrary paths of
42442 unifont.pff.
42443 * util/update-grub.in: Use convert_system_path_to_grub_path() to
42444 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
42445
5beb2291 424462007-05-19 Robert Millan <rmh@aybabtu.com>
42447
42448 * commands/i386/cpuid.c: New module.
42449 * DISTLIST: Add it.
42450 * conf/i386-efi.rmk: Enable cpuid.mod.
42451 * conf/i386-pc.rmk: Likewise.
42452
7262eca1 424532007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42454
42455 * kern/disk.c (grub_disk_read): Check return value of
42456 grub_realloc().
42457
260ba823 424582007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42459
42460 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
42461 arrays.
42462 * disk/raid.c (grub_raid_open): Likewise.
42463
1ecb6cf2 424642007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42465
42466 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
42467 stack instead of on the heap.
42468
42469 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
42470 before doing a read on it.
42471
42472 * configure.ac: Only use -fno-stack-protector for the target
42473 environment.
f19dbdb7 42474
21c8cbb1 424752007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42476
42477 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
42478 __attribute_ ((unused)) to mode_type argument.
42479
42480 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 42481
21c8cbb1 42482 * kern/misc.c (memcmp): Fix prototype.
42483
42484 * include/grub/partition.h [GRUB_UTIL]
42485 (grub_gpt_partition_map_init): Add prototype.
42486 (grub_gpt_partition_map_fini): Likewise.
42487
42488 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
42489 at the right place.
42490
42491 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
42492 (grub_fat_read_data): Likewise.
42493 (grub_fat_find_dir): Likewise.
42494
42495 * font/manager.c (find_glyph): Make table a const.
42496 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 42497
849d55d3 424982007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
42499
42500 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
42501 code, first search for device in /dev/mapper, then in /dev.
42502 (grub_util_get_grub_dev): New function.
42503 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
42504 prototype.
42505 * util/grub-probe.c (probe): Remove check for RAID, call
42506 grub_util_get_grub_dev() instead of
42507 grub_util_biosdisk_get_grub_dev().
42508 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
42509 grub_util_biosdisk_get_grub_dev().
42510 * util/i386/pc/grub-setup.c (main): Likewise.
42511
8fff7c2f 425122007-05-16 Robert Millan <rmh@aybabtu.com>
42513
42514 * DISTLIST: Update for the latest changes.
42515 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
42516 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
42517 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
42518 grub/util/biosdisk.h.
42519 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
42520 grub/util/biosdisk.h.
42521
48e12b52 425222007-05-16 Robert Millan <rmh@aybabtu.com>
42523
42524 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
42525
46b9d128 425262007-05-16 Robert Millan <rmh@aybabtu.com>
42527
42528 * util/i386/efi/grub-install.in: New.
42529 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
42530 newly added grub-install.
42531 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
42532 include.
42533 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
42534 grub/util/biosdisk.h.
42535 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
42536 grub/util/biosdisk.h.
42537
2d1a40a9 425382007-05-16 Robert Millan <rmh@aybabtu.com>
42539
42540 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
42541 * include/grub/util/biosdisk.h: ... here.
42542 * util/i386/pc/biosdisk.c: Moved to ...
42543 * util/biosdisk.c: ... here.
42544 * util/i386/pc/getroot.c: Moved to ...
42545 * util/getroot.c: ... here.
42546 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
42547 * util/grub-mkdevicemap.c: ... here.
42548 * util/i386/pc/grub-probe.c: Moved to ...
42549 * util/grub-probe.c: ... here.
42550
9e26e3bc 425512007-05-15 Robert Millan <rmh@aybabtu.com>
42552
42553 * util/update-grub.in: Remove duplicated line in grub.cfg header
42554 message.
42555
57f96397 425562007-05-13 Robert Millan <rmh@aybabtu.com>
42557
42558 * util/update-grub.in: Fix a few assumptions about the devices holding
42559 /, /boot and /boot/grub being the same.
42560 * util/grub.d/00_header.in: Likewise.
42561 * util/grub.d/10_hurd.in: Likewise.
42562 * util/grub.d/10_linux.in: Likewise.
42563
42564 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
42565 patterns. Use that to define the `.old' suffix as older than `'.
42566
42567 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
42568
42569 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
42570 the grub.cfg header message.
42571
2e610d62 425722007-05-11 Robert Millan <rmh@aybabtu.com>
42573
42574 * util/update-grub.in: Create device.map if it doesn't already exist,
42575 before attempting to run grub-probe.
42576 Check for grub-probe and grub-mkdevicemap with the same code
42577 grub-install is using.
42578 Remove test mode.
42579
3f6a10ef 425802007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
42581
42582 * Makefile.in: Add the datarootdir autoconf variable.
42583
02e7b75e 425842007-05-09 Robert Millan <rmh@aybabtu.com>
42585
42586 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 42587 fail gracefully if dev->disk->partition == NULL.
02e7b75e 42588
75f396cc 425892007-05-07 Robert Millan <rmh@aybabtu.com>
42590
42591 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
42592 determine partition map module.
42593 * util/i386/pc/grub-install.in: Use this feature to decide which
42594 partition module to load, instead of hardcoding pc and gpt.
42595
da65cb36 425962007-05-07 Robert Millan <rmh@aybabtu.com>
42597
42598 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
42599 source directory differs from build directory.
42600
b57d6a91 426012007-05-05 Robert Millan <rmh@aybabtu.com>
42602
42603 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
42604 initialisation.
42605
509d00f1 426062007-05-05 Robert Millan <rmh@aybabtu.com>
42607
42608 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
42609
c48f23ef 426102007-05-05 Robert Millan <rmh@aybabtu.com>
42611
42612 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
42613 command-line arguments via ${GRUB_CMDLINE_LINUX}.
42614
20b97658 426152007-05-05 Robert Millan <rmh@aybabtu.com>
42616
42617 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
42618 (grub_probe_SOURCES): Likewise.
42619 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
42620 GPT and initialize dos_part and bsd_part accordingly.
42621 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
42622 install_bsd_part.
42623 (main): Activate gpt module for use during partition identification,
42624 and deactivate it afterwards.
42625 * util/i386/pc/grub-install.in: Add gpt module to core.img.
42626 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
42627 partition identification, and deactivate it afterwards.
42628
99123174 426292007-05-05 Robert Millan <rmh@aybabtu.com>
42630
42631 * term/i386/pc/console.c (grub_console_fini): Call
42632 grub_term_set_current() before grub_term_unregister().
42633
ebd97f6e 426342007-05-04 Robert Millan <rmh@aybabtu.com>
42635
42636 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
42637 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
42638 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
42639 and update-grub_DATA.
42640 * conf/common.rmk: Build and install update-grub components.
42641 * conf/common.mk: Regenerate.
42642 * util/update-grub.in: New. Core of update-grub.
42643 * util/grub.d/00_header.in: New. Generates grub.cfg header.
42644 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
42645 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
42646 * util/grub.d/README: New. Document grub.d directory layout.
42647
b06a264d 426482007-05-01 Robert Millan <rmh@aybabtu.com>
42649
42650 * util/grub-emu.c: Move initialization functions
42651 grub_util_biosdisk_init() and grub_init_all() before
42652 grub_util_biosdisk_get_grub_dev(), which relies on them.
42653
41f0050e 426542007-04-19 Robert Millan <rmh@aybabtu.com>
42655
42656 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
42657 it is used later.
42658
04582bb3 426592007-04-18 Jerone Young <jerone@gmail.com>
42660
f19dbdb7 42661 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 42662 stanza.
42663
08db4632 426642007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 42665
08db4632 42666 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
42667 continue on and look for device node with real device name.
42668
801b76be 426692007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 42670
fe6b695a 42671 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 42672 ability.
42673 * Makefile.in: Add autoconf package transformation code.
42674 * util/i386/pc/grub-install.in: Likewise.
42675 * util/powerpc/ieee1275/grub-install.in: Likewise.
42676
6795c4e1 426772007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
42678
42679 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
42680 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
42681 (EXT2_REVISION): Likewise.
42682 (EXT2_INODE_SIZE): Likewise.
42683 (struct grub_ext2_block_group): Added a missing member
42684 "used_dirs".
42685 (grub_ext2_read_inode): Divide by the inode size in a superblock
42686 instead of 128 to obtain INODES_PER_BLOCK.
42687 Use the macro EXT2_INODE_SIZE instead of directly using
42688 SBLOCK->INODE_SIZE.
42689
d70af616 426902007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
42691
42692 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
42693 superblock instead of the structure size to compute an
42694 offset. This fixes the problem that GRUB could not read a
42695 filesystem when inode size is different from 128-byte.
42696
3b801603 426972007-03-05 Marco Gerards <marco@gnu.org>
42698
42699 * normal/main.c (read_config_file): When "menu" is not set, create
42700 an initial context.
42701
4785bfe4 427022007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42703
42704 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
42705 (HEAP_LIMIT): New macro.
42706 (grub_claim_heap): Claim memory up to `heaplimit'.
42707
a0cbb023 427082007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42709
42710 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
42711 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
42712 (_start): Likewise.
42713 (grub_arch_modules_addr): Return address after `_end'.
42714 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
42715 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
42716 (add_segments): Calculate `_end' from phdr size and location.
42717 (ALIGN_UP): Moved to ...
42718 * include/grub/misc.h: here.
42719 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42720 New macro.
42721 (GRUB_IEEE1275_MODULE_BASE): Removed.
42722
fd7d8eba 427232007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42724
42725 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
42726 loop boundary.
42727
9b09e6fc 427282007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42729
42730 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
42731 All users updated.
42732 (grub_elf64_load_hook_t): Likewise.
42733 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
42734 debug output.
42735
3ce27299 427362007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42737
42738 * kern/mm.c: Update copyright.
42739 (grub_mm_debug): Correct syntax error.
42740 (grub_mm_dump_free): New function.
42741 (grub_debug_free): Call `grub_free'.
42742 * include/grub/mm.h: Update copyright.
42743 (grub_mm_dump_free): Add declaration.
42744
077d5fee 427452007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42746
42747 * include/grub/ieee1275/ieee1275.h: Update copyright.
42748 * kern/powerpc/ieee1275/init.c: Likewise.
42749 * kern/powerpc/ieee1275/openfw.c: Likewise.
42750
42751 * loader/powerpc/ieee1275/linux.c: Likewise.
42752 * include/grub/elfload.h: Likewise.
42753 * kern/elf.c: Likewise.
42754 (grub_elf32_load): Pass `base' and `size' parameters. Update all
42755 callers.
42756 (grub_elf64_load): Likewise.
42757 (grub_elf32_load_segment): Move to a nested function.
42758 (grub_elf64_load_segment): Likewise.
42759
dc946850 427602007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42761
42762 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
42763 prototype.
42764 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
42765 (grub_heap_len): Likewise.
42766 (HEAP_SIZE): New macro.
42767 (grub_claim_heap): New function.
42768 (grub_machine_init): Don't claim heap directly. Call
42769 `grub_claim_heap'.
42770 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
42771 (grub_available_iterate): New function.
42772
baa2a121 427732007-02-03 Thomas Schwinge <tschwinge@gnu.org>
42774
42775 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
42776 * configure.ac: Use it for testing the HOST and TARGET compilers.
42777
4fe9862e 427782006-12-13 Thomas Schwinge <tschwinge@gnu.org>
42779
42780 * Makefile.in (enable_grub_emu): New variable.
42781 * configure.ac (--enable-grub-emu): New option.
42782 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
42783 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
42784 * conf/i386-pc.rmk: Likewise.
42785 * conf/powerpc-ieee1275.rmk: Likewise.
42786 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
42787
a8aa5762 427882006-12-12 Marco Gerards <marco@gnu.org>
42789
42790 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
42791
42792 * kern/env.c (grub_env_unset): Don't free the member `value' when
42793 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
42794 pointer.
42795
42796 * normal/main.c (current_menu): Removed.
42797 (free_menu): Unset the `menu' environment variable.
42798 (grub_normal_menu_addentry): Make use of the environment variable
42799 `menu', instead of using the global `current_menu'. Allocate
42800 memory for the sourcecode of this entry.
42801 (read_config_file): New argument `nested', changed all callers.
42802 Only in the case of a new context, initialize a new menu. Set the
42803 `menu' environment variable.
42804 (grub_normal_execute): Don't set and unset the environment
42805 variable `menu' here anymore. Only free the menu when leaving the
42806 context.
42807
42808 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
42809 leak.
42810
957b3a3e 428112006-12-11 Marco Gerards <marco@gnu.org>
42812
42813 * normal/menu_entry.c (run): Fix off by one bug so the last line
42814 is executed. Move the loader check to outside the loop.
42815
ef875714 428162006-12-08 Hollis Blanchard <hollis@penguinppc.org>
42817
42818 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
42819
4e739985 428202006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
42821
42822 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
42823 the number of sectors. Reported by Andrey Shuvikov
42824 <mr_hyro@yahoo.com>.
f19dbdb7 42825
790707f2 428262006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
42827
42828 * kern/disk.c (grub_disk_read): When there is a read error, always
42829 try to read only the necessary data.
f19dbdb7 42830
790707f2 42831 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
42832 disk/raid.c.
42833 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
42834 prototype.
42835 [GRUB_UTIL] (grub_raid_fini): Likewise.
42836 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 42837 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 42838 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
42839 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
42840 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
42841 and grub_raid_fini().
f19dbdb7 42842
03e58196 428432006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42844
42845 * include/grub/types.h (__unused): Rename to UNUSED.
42846 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
42847 (grub_elf64_size): Likewise.
f19dbdb7 42848
ae4f23bf 428492006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42850
42851 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
42852 grub_error_push and grub_error_pop in the error-handling path.
42853 (grub_elf32_load_segment): Only call grub_file_read with non-zero
42854 length.
42855
2166cc83 428562006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42857
42858 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
42859 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42861 (kernel_elf_SOURCES): Likewise.
42862 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
42863 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
42864 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42865 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42866 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
42867 (elf_mod_SOURCES): New variable.
42868 (elf_mod_CFLAGS): Likewise.
42869 (elf_mod_LDFLAGS): Likewise.
42870 * include/grub/types.h (__unused): New macro.
42871 * include/grub/elfload.h: New file.
42872 * kern/elf.c: Likewise.
42873 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
42874 (ELF32_LOADMASK): New macro.
42875 (ELF64_LOADMASK): Likewise.
42876 (vmlinux): Removed.
42877 (grub_linux_load32): New function.
42878 (grub_linux_load64): Likewise.
42879 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
42880 Use grub_elf_t instead of grub_file_t.
42881
a09d5aa5 428822006-11-02 Hollis Blanchard <hollis@penguinppc.org>
42883
42884 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
42885 `catch_result' to struct set_color_args.
42886
d976fc51 428872006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42888
42889 * normal/menu.c: Include grub/script.h.
42890 * normal/menu_entry.c: Likewise.
42891 * include/grub/normal.h: Do not include grub/script.h.
42892
67507549 428932006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42894
42895 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
42896
69203a99 428972006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42898
42899 * kern/disk.c (grub_disk_open): Print debug messages when opening a
42900 disk.
42901 (grub_disk_close): Print debug messages when closing a disk.
42902 (grub_disk_read): Print debug messages when disk read fails.
42903 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
42904 filesystem type.
42905 * kern/partition.c: Include misc.h.
42906 (grub_partition_iterate): Print debug messages when detecting
42907 partition type.
42908
e2b8278c 429092006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42910
42911 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
42912 is negative.
42913 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
42914
97b2f2ff 429152006-10-26 Hollis Blanchard <hollis@penguinppc.org>
42916
42917 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42918 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
42919
6555d655 429202006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
42921
42922 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
42923 instead of sizeof(lv). Patch by Michael Guntsche.
42924
4d42b77f 429252006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
42926
42927 * disk/lvm.c: Rename VGS to VG_LIST.
42928 (grub_lvm_iterate): Change VGS->LV to VG-LV.
42929 (grub_lvm_open): Likewise.
42930 Thanks to Michael Guntsche for finding this bug.
42931
5d74d927 429322006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
42933
42934 * configure.ac (AC_INIT): Bumped to 1.95.
42935
a1bb27e4 429362006-10-14 Robert Millan <rmh@aybabtu.com>
42937
42938 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
42939 with "/dev/.static/dev/md".
42940
e0994b8b 429412006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42942
42943 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
42944 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
42945 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
42946 DRIVE_NAME are always freed.
42947
42948 * util/i386/pc/biosdisk.c (make_device_name): Add one into
42949 DOS_PART, as a DOS partition is counted from one instead of zero
42950 now. Reported by Robert Millan.
42951
ddd5cee9 429522006-10-14 Robert Millan <rmh@aybabtu.com>
42953
42954 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
42955 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
42956 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
42957 string returned by grub_guess_root_device.
42958 * util/i386/pc/grub-setup.c: Likewise.
42959 * util/i386/pc/grub-probefs.c: Likewise.
42960
42961 * util/i386/pc/grub-probefs.c: Rename to ...
42962 * util/i386/pc/grub-probe.c: ... this.
42963 * DISTLIST: Remove grub-probefs, add grub-probe.
42964 * conf/i386-efi.rmk: Likewise.
42965 * conf/i386-pc.rmk: Likewise.
42966 * util/i386/pc/grub-install.in: Likewise.
42967
42968 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42969 choose which information we want to print.
42970
2b002173 429712006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42972
42973 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42974 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42975 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42976 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42977 video/readers/tga.c and video/i386/pc/vbeutil.c.
42978
429792006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42980
42981 Added support for RAID and LVM.
f19dbdb7 42982
2b002173 42983 * disk/lvm.c: New file.
42984 * disk/raid.c: Likewise.
42985 * include/grub/lvm.h: Likewise.
f19dbdb7 42986 * include/grub/raid.h: Likewise.
2b002173 42987 * include/grub/util/lvm.h: Likewise.
42988 * include/grub/util/raid.h: Likewise.
42989 * util/lvm.c: Likewise.
42990 * util/raid.c: Likewise.
42991
42992 * include/grub/disk.h (grub_disk_dev_id): Add
42993 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42994 (grub_disk_get_size): New prototype.
42995 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42996 returns a partition.
42997 (grub_disk_get_size): New function.
f19dbdb7 42998
2b002173 42999 * kern/i386/pc/init.c (make_install_device): Copy the prefix
43000 verbatim if grub_install_dos_part is -2.
43001
43002 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
43003 and LVM devices.
43004
43005 * util/i386/pc/grub-setup.c (setup): New argument
43006 MUST_EMBED. Force embedding of GRUB when the argument is
43007 true. Close FILE before returning.
43008 (main): Add support for RAID and LVM.
f19dbdb7 43009
2b002173 43010 * conf/common.rmk: Add RAID and LVM modules.
43011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
43012 util/lvm.c.
43013 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
43014
43015 * kern/misc.c (grub_strstr): New function.
43016 * include/grub/misc.h (grub_strstr): New prototype.
43017
050548d0 430182006-10-10 Tristan Gingold <tristan.gingold@bull.net>
43019
43020 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
43021
da849d2d 430222006-10-05 Tristan Gingold <tristan.gingold@bull.net>
43023
43024 * kern/misc.c (grub_strtoull): Guess the base only if not
43025 specified.
43026
97b2f2ff 430272006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 43028
43029 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
43030 PowerMac support.
43031
97b2f2ff 430322006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 43033
43034 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
43035
43036 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
43037 Remove `flags' argument. All callers changed.
43038 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
43039 (IEEE1275_IHANDLE_INVALID): New variable.
43040 (IEEE1275_CELL_INVALID): New variable.
43041 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
43042 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
43043 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
43044 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
43045 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
43046 codes from Open Firmware. All callers updated.
43047 (grub_ieee1275_next_property): Directly return Open Firmware return
43048 code.
43049 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43050 Standardize error checking from `grub_ieee1275_get_property'.
43051 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
43052 `devalias' to `aliases'. Correct comments. Consolidate error paths.
43053
97b2f2ff 430542006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 43055
43056 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
43057 `instance_to_package_args' to `instance_to_path_args'.
43058
43059 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
43060 `grub_ieee1275_chosen'.
43061
43062 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
43063 `grub_ieee1275_interpret'.
43064
97b2f2ff 430652006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 43066
43067 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
43068
97b2f2ff 430692006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 43070
43071 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
43072 (__cmpdi): Likewise.
43073
43074 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
43075 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
43076 `grub_ssize_t'.
43077
02bb8acc 43078 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 43079
43080 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
43081 to type `grub_ssize_t'.
43082 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
43083
7f9a8531 430842006-09-22 Marco Gerards <marco@gnu.org>
43085
43086 * normal/script.c (grub_script_create_cmdmenu): Skip leading
43087 newlines.
43088
b5ef1102 430892006-09-22 Marco Gerards <marco@gnu.org>
43090
43091 * commands/echo.c: New file.
43092
43093 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
43094
43095 * conf/common.rmk (echo_mod_SOURCES): New variable.
43096 (echo_mod_CFLAGS): Likewise.
43097 (echo_mod_LDFLAGS): Likewise.
43098
2cff3677 430992006-09-22 Marco Gerards <marco@gnu.org>
43100
43101 * normal/main.c (get_line): Malloc memory instead of using
43102 preallocated memory. Removed the arguments `cmdline' and
43103 `max_len'. Updated all callers.
43104
6ba4688b 431052006-09-22 Marco Gerards <marco@gnu.org>
43106
43107 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
43108 (normal_mod_DEPENDENCIES): Likewise.
43109
43110 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
43111 (normal_mod_DEPENDENCIES): Likewise.
43112
43113 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
43114
e02ac02c 431152006-09-22 Johan Rydberg <jrydberg@gnu.org>
43116
43117 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
43118 programs.
43119 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
43120 (normal_mod_DEPENDENCIES): Likewise.
43121 * conf/i386-pc.mk: Regenerate.
43122 * conf/i386-efi.mk: Likewise
43123 * conf/common.mk: Likewise.
43124 * conf/powerpc-ieee1275.mk: Likewise.
43125 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 43126
8d252e44 431272006-09-22 Robert Millan <rmh@aybabtu.com>
43128
43129 Sync with i386 version.
43130 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
43131 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
43132
209bf7ac 431332006-09-21 Robert Millan <rmh@aybabtu.com>
43134
43135 Import from GRUB Legacy (lib/device.c):
43136 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
43137 (init_device_map) [__linux__]: Add support for I2O devices.
43138
6b146090 431392006-09-14 Marco Gerards <marco@gnu.org>
43140
43141 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
43142 `-melf_i386'.
43143
e38600a8 431442006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 43145
43146 * util/i386/pc/grub-install.in: Skip menu.lst when removing
43147 /boot/grub/*.lst.
78fa1790 43148
2952da5d 43149 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 43150
2952da5d 43151 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
43152 before adding it to device.map.
43153
01b82a64 431542006-08-15 Johan Rydberg <jrydberg@gnu.org>
43155
fe6b695a 43156 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 43157 compiles a file; using the -MD option.
43158 * conf/common.mk: Regenerate.
43159 * conf/i386-pc.mk: Likewise.
43160 * conf/i386-efi.mk: Likewise.
43161 * conf/powerpc-ieee1275.mk: Likewise.
43162 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 43163
1064790d 431642006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43165
43166 Move the prototypes of grub_setjmp and grub_longjmp to
43167 cpu/setjmp.h, so that each architecture may specify different
43168 attributes.
f19dbdb7 43169
1064790d 43170 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43171 (grub_longjmp): Likewise.
43172 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43173 (grub_longjmp): Likewise.
43174 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43175 (grub_longjmp): Likewise.
43176
43177 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43178 [!GRUB_UTIL] (grub_longjmp): Removed.
43179
29dda3ed 431802006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43181
43182 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43183 "color!" method does not return any value.
43184
ad2a06ed 431852006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43186
43187 * include/grub/bitmap.h: New file.
43188
43189 * include/grub/i386/pc/vbeutil.h: Likewise.
43190
43191 * video/bitmap.c: Likewise.
43192
43193 * video/readers/tga.c: Likewise.
43194
43195 * video/i386/pc/vbeutil.c: Likewise.
43196
43197 * commands/videotest.c: Code cleanup and updated to reflect to new
43198 video API.
43199
43200 * term/gfxterm.c: Likewise.
43201
43202 * video/video.c: Likewise.
43203
43204 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43205 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43206 (bitmap_mod_SOURCES): New entry.
43207 (bitmap_mod_CFLAGS): Likewise.
43208 (bitmap_mod_LDFLAGS): Likewise.
43209 (tga_mod_SOURCES): Likewise.
43210 (tga_mod_CFLAGS): Likewise.
43211 (tga_mod_LDFLAGS): Likewise.
43212
43213 * include/grub/video.h (grub_video_blit_operators): New enum type.
43214 (grub_video_render_target): Changed as forward declaration and moved
43215 actual definition to be video driver specific.
43216 (grub_video_adapter.blit_bitmap): Added blitting operator.
43217 (grub_video_adapter.blit_render_target): Likewise.
43218 (grub_video_blit_bitmap): Likewise.
43219 (grub_video_blit_render_target): Likewise.
43220
43221 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43222 driver specific render target definition.
43223 (grub_video_vbe_map_rgba): Added driver internal helper.
43224 (grub_video_vbe_unmap_color): Updated to use
43225 grub_video_i386_vbeblit_info.
43226 (grub_video_vbe_get_video_ptr): Likewise.
43227
43228 * include/grub/i386/pc/vbeblit.h
43229 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43230 grub_video_i386_vbeblit_info.
43231 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43232 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43233 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43234 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43235 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43236 (grub_video_i386_vbeblit_index_index): Likewise.
43237 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43238 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43239 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43240 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43241 operator.
43242 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43243 operator.
43244
43245 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43246 include/grub/i386/pc/vbeblit.h.
43247
43248 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43249 Updated to use grub_video_i386_vbeblit_info.
43250 (grub_video_i386_vbefill_R8G8B8): Likewise.
43251 (grub_video_i386_vbefill_index): Likewise.
43252 (grub_video_i386_vbefill): Added generic filler.
43253
43254 * video/i386/pc/vbefill.c: Updated to reflect changes on
43255 include/grub/i386/pc/vbefill.h.
43256
43257 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43258 grub_video_i386_vbeblit_info.
43259 (grub_video_vbe_unmap_color): Likewise.
43260 (grub_video_vbe_blit_glyph): Likewise.
43261 (grub_video_vbe_scroll): Likewise.
43262 (grub_video_vbe_draw_pixel): Removed function.
43263 (grub_video_vbe_get_pixel): Likewise.
43264 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43265 updated code to use it.
43266 (common_blitter): Added common blitter for render target and bitmap.
43267 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43268 (grub_video_vbe_blit_render_target): Likewise.
43269
bc8c036d 432702006-07-30 Johan Rydberg <jrydberg@gnu.org>
43271
43272 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43273 is in text mode if there is no console control protocol instance
43274 available.
43275
684a8eff 432762006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43277
43278 * include/grub/video.h: Code cleanup.
43279
43280 * include/grub/i386/pc/vbe.h: Likewise.
43281
43282 * video/i386/pc/vbe.c: Likewise.
43283
43284 * video/i386/pc/vbeblit.c: Likewise.
43285
43286 * video/i386/pc/vbefill.c: Likewise.
43287
43288 * video/video.c: Likewise. Also added more comments.
43289
5915059b 432902006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43291
43292 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43293 (struct grub_biosdisk_dap): Likewise.
43294
43295 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43296 linkage settings for all functions.
43297
90ce5d56 432982006-07-12 Marco Gerards <marco@gnu.org>
43299
43300 * configure.ac (--enable-mm-debug): Fix typo.
43301
43302 * genkernsyms.sh.in: Use proper quoting for `CC'.
43303
43e7f879 433042006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43305
43306 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43307 (normal_mod_ASFLAGS): Remove "-m32".
43308
4889bdec 433092006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43310
43311 * util/misc.c: Include config.h.
43312 [!HAVE_MEMALIGN]: Do not include malloc.h.
43313 (grub_memalign): Use posix_memalign, if present. Then, use
43314 memalign, if present. Otherwise, emit an error.
43315
43316 * util/grub-emu.c: Do not include malloc.h.
43317
43318 * include/grub/util/misc.h: Include unistd.h. This is required for
43319 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43320 D. Eades III <hde@foobar-qux.org>.
43321
43322 * configure.ac (AC_GNU_SOURCE): Added.
43323 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43324 type.
43325
fd39d4da 433262006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43327
43328 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43329 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43330
b786f3b5 433312006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43332
43333 * include/grub/types.h (grub_host_addr_t): Rename to
43334 grub_target_addr_t.
43335 (grub_host_off_t): Rename to grub_target_off_t.
43336 (grub_host_size_t): Rename to grub_target_size_t.
43337 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43338 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43339
43340 * include/grub/kernel.h (struct grub_module_header): Change type
43341 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43342 (grub_module_info): Likewise.
f19dbdb7 43343
051988bb 433442006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43345
43346 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43347 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43348 Velazquez <jesus.velazquez@gmail.com>.
43349
deae281b 433502006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43351
43352 Count partitions from 1 instead of 0 in the string representation
43353 of partitions. Still use 0-based internally.
f19dbdb7 43354
deae281b 43355 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43356 (sun_partition_map_iterate): Use grub_partition_t instead of
43357 struct grub_partition *. Cast DESC->START_CYLINDER to
43358 grub_uint64_t after converting the endian.
43359 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43360 (sun_partition_map_get_name): Add 1 to P->INDEX.
43361
43362 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43363 PCDATA->DOS_PART.
43364 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43365
43366 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43367 zero instead of one.
43368 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43369 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43370
43371 * partmap/apple.c (apple_partition_map_iterate): Change the type
43372 of POS to unsigned.
43373 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43374 (apple_partition_map_get_name): Add 1 into P->INDEX.
43375
43376 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43377 of POS to unsigned.
43378 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43379 calculate the offset of a partition.
43380 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43381 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43382
43383 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43384 SECTOR to grub_disk_addr_t.
43385 (acorn_partition_map_iterate): Likewise.
43386 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43387 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43388 top.
43389 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43390
43391 * kern/i386/pc/init.c (make_install_device): Add 1 into
43392 GRUB_INSTALL_DOS_PART.
43393
43394 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43395 conditional.
43396
524a1e6a 433972006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43398
43399 Clean up the code to support 64-bit addressing in disks and
43400 files. This change is not enough for filesystems yet.
f19dbdb7 43401
524a1e6a 43402 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43403 type of "start" to grub_uint64_t.
43404 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43405 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43406 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43407 convert addresses.
43408
43409 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43410 to grub_disk_addr_t.
43411
43412 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43413 string.
43414
43415 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43416
43417 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43418 to char *.
43419
43420 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43421
43422 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43423
43424 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43425
43426 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43427 to grub_off_t, to detect an error from grub_file_seek.
43428 (grub_multiboot_load_elf32): Likewise.
43429
43430 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43431 maximum unsigned long value when an overflow is detected.
43432 (grub_strtoull): New function.
43433 (grub_divmod64): Likewise.
43434 (grub_lltoa): use grub_divmod64.
43435
43436 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43437 grub_disk_addr_t.
43438 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43439 the pointer to next character. Use grub_strtoull instead of
43440 grub_strtoul.
43441 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
43442 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
43443 respectively.
43444
fe6b695a 43445 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 43446 return value is signed.
43447 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
43448 test if OFFSET is less than zero, as OFFSET is unsigned now.
43449
43450 * kern/disk.c (struct grub_disk_cache): Change the type of
43451 "sector" to grub_disk_addr_t.
43452 (grub_disk_cache_get_index): Change the type of SECTOR to
43453 grub_disk_addr_t. Calculate the hash with SECTOR casted to
43454 unsigned after shifting.
43455 (grub_disk_cache_invalidate): Change the type of SECTOR to
43456 grub_disk_addr_t.
43457 (grub_disk_cache_unlock): Likewise.
43458 (grub_disk_cache_store): Likewise.
43459 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
43460 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
43461 grub_disk_addr_t and grub_uint64_t, respectively.
43462 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
43463 body, as the value of OFFSET is tweaked by
43464 grub_disk_check_range. Change the types of START_SECTOR, LEN and
43465 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
43466 respectively.
43467 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
43468 body, as the value of OFFSET is tweaked by
43469 grub_disk_check_range. Change the types of LEN and N to
43470 grub_size_t.
43471
43472 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
43473 and "saved_offset" to grub_off_t.
43474 (test_header): Cast BUF to char *.
43475 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
43476 to char *.
43477 (grub_gzio_read): Change the types of OFFSET and SIZE to
43478 grub_off_t and grub_size_t, respectively.
43479
43480 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
43481 Removed.
43482 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
43483 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
43484 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
43485 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
43486 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
43487
43488 * include/grub/types.h (grub_off_t): Unconditionally set to
43489 grub_uint64_t.
43490 (grub_disk_addr_t): Changed to grub_uint64_t.
43491
43492 * include/grub/partition.h (struct grub_partition): Change the
43493 types of "start", "len" and "offset" to grub_disk_addr_t,
43494 grub_uint64_t and grub_disk_addr_t, respectively.
43495 (grub_partition_get_start): Return grub_disk_addr_t.
43496 (grub_partition_get_len): Return grub_uint64_t.
43497
43498 * include/grub/misc.h (grub_strtoull): New prototype.
43499 (grub_divmod64): Likewise.
43500
43501 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
43502 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
43503 grub_off_t, respectively.
43504 All callers and references changed.
43505
43506 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
43507 grub_size_t in "read".
43508 All callers and references changed.
43509
43510 * include/grub/file.h (struct grub_file): Change the types of
43511 "offset" and "size" to grub_off_t and grub_off_t,
43512 respectively. Change the type of SECTOR to grub_disk_addr_t in
43513 "read_hook".
43514 (grub_file_read): Change the type of LEN to grub_size_t.
43515 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
43516 grub_off_t.
43517 (grub_file_size): Return grub_off_t.
43518 (grub_file_tell): Likewise.
43519 All callers and references changed.
43520
43521 * include/grub/disk.h (struct grub_disk_dev): Change the types of
43522 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
43523 "write".
43524 (struct grub_disk): Change the type of "total_sectors" to
43525 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 43526 "read_hook".
524a1e6a 43527 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
43528 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
43529 (grub_disk_write): Likewise.
43530 All callers and references changed.
43531
43532 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
43533 char * for grub_strncmp to silence gcc.
43534 (grub_iso9660_mount): Likewise.
43535 (grub_iso9660_mount): Likewise.
43536 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
43537 return statement.
43538 (grub_iso9660_iterate_dir): Likewise.
43539 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
43540
43541 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
43542 LEN to grub_disk_addr_t and grub_size_t, respectively.
43543
43544 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43545
43546 * fs/jfs.c (grub_jfs_read_file): Likewise.
43547
43548 * fs/minix.c (grub_jfs_read_file): Likewise.
43549
43550 * fs/sfs.c (grub_jfs_read_file): Likewise.
43551
43552 * fs/ufs.c (grub_jfs_read_file): Likewise.
43553
43554 * fs/xfs.c (grub_jfs_read_file): Likewise.
43555
43556 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
43557 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
43558 respectively.
43559
43560 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
43561 BLKNR to -1 instead of returning GRUB_ERRNO.
43562 (grub_ext2_read_file): Change the types of SECTOR and
43563 LEN to grub_disk_addr_t and grub_size_t, respectively.
43564
43565 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
43566 LEN to grub_disk_addr_t and grub_size_t, respectively.
43567
43568 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
43569 grub_file_read.
43570
43571 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
43572 string. Do not cast SECTOR explicitly.
43573
43574 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
43575 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
43576 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
43577 grub_disk_addr_t and grub_size_t, respectively. If the sector is
43578 over 2TB and LBA mode is not supported, raise an error.
43579 (get_safe_sectors): New function.
43580 (grub_biosdisk_read): Use get_safe_sectors.
43581 (grub_biosdisk_write): Likewise.
43582
43583 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
43584 (grub_efidisk_write): Likewise.
43585
43586 * disk/loopback.c (delete_loopback): Cosmetic changes.
43587 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
43588 correctly.
43589 (grub_loopback_open): Likewise.
43590 (grub_loopback_read): Likewise. Also, change the type of POS to
43591 grub_off_t, and fix the usage of grub_memset.
43592
43593 * commands/i386/pc/play.c: Include grub/machine/time.h.
43594
43595 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
43596 print FILE->SIZE.
43597
43598 * commands/configfile.c: Include grub/env.h.
43599
43600 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
43601 GRUB_ERRNO directly instead. Change the type of POS to
43602 grub_off_t. Follow the coding standard.
43603
43604 * commands/blocklist.c: Include grub/partition.h.
43605 (grub_cmd_blocklist): Return an error if the underlying device is
43606 not a disk. Take the starting sector of a partition into account,
43607 if a partition is used.
43608
43609 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
43610 a length field.
43611 (lba_mode): Support 64-bit addresses.
43612 (chs_mode): Likewise.
43613 (copy_buffer): Adapted to the new offsets of a length field and a
43614 segment field.
43615 (blocklist_default_start): Allocate 64-bit space.
43616
43617 * boot/i386/pc/boot.S (force_lba): Removed.
43618 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 43619 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 43620 space.
43621 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
43622 is useless.
43623 (lba_mode): Refactored to support a 64-bit address. More size
43624 optimization.
43625 (setup_sectors): Likewise.
43626
53af98ad 436272006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43628
43629 * DISTLIST: Added include/grub/i386/linux.h. Removed
43630 include/grub/i386/pc/linux.h
43631
43632 * configure.ac (AC_INIT): Bumped to 1.94.
43633
43634 * config.guess: Updated from gnulib.
43635 * config.sub: Likewise.
43636 * install-sh: Likewise.
43637 * mkinstalldirs: Likewise.
43638
b4c1940a 436392006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43640
43641 * conf/common.rmk (grub_modules_init.lst): Depended on
43642 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
43643 MODSRCFILES.
43644
43645 * genmk.rb (PModule::rule): Reverted the previous change.
43646
cfca1cfd 436472006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43648
43649 * conf/common.rmk (grub_modules_init.lst): Depends on
43650 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
43651 that the target does not exist before producing.
43652 (grub_modules_init.h): Remove the target before generating.
43653 (grub_emu_init.c): Likewise.
43654
43655 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
43656
aa6d7826 436572006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
43658
43659 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
43660 for the target-specific tests. Make sure that we also have the
43661 up-to-date target variables for those tests.
43662
26c607b9 436632006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43664
43665 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
43666 (PModule::rule): Likewise.
43667
0162321a 436682006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43669
43670 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
43671 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
43672 target-specific flags should be prefixed.
43673 (PModule::rule): Likewise.
43674
6c826348 436752006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
43676
43677 * configure.ac (CMP): Check if cmp is available explicitly.
43678
b977bf01 436792006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
43680
43681 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
43682 (target_cpu): New variable.
43683 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 43684
b977bf01 43685 * util/i386/pc/grub-install.in (host_cpu): Removed.
43686 (target_cpu): New variable.
43687 (pkglibdir): Use target_cpu instead of host_cpu.
43688
43689 * util/genmoddep.c: Removed.
f19dbdb7 43690
b977bf01 43691 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
43692 instead of GRUB_HOST_SIZEOF_VOID_P.
43693 * kern/dl.c: Likewise.
43694
43695 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
43696 ...
43697 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43698 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43699 (GRUB_TARGET_SIZEOF_LONG): ... this.
43700 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43701 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43702 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43703 to ...
43704 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43705 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43706 (GRUB_TARGET_SIZEOF_LONG): ... this.
43707 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43708 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43709 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43710 to ...
43711 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43712 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43713 (GRUB_TARGET_SIZEOF_LONG): ... this.
43714 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43715 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43716
43717 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
43718 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
43719 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
43720 instead of GRUB_HOST_SIZEOF_LONG.
43721 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
43722 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
43723 GRUB_CPU_WORDS_BIGENDIAN.
43724 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
43725 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
43726 grub_host_ssize_t.
43727
43728 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
43729 (genmoddep_SOURCES): Likewise.
43730 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
43731 (genmoddep_SOURCES): Likewise.
43732 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
43733 (genmoddep_SOURCES): Likewise.
43734 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
43735 Likewise.
43736 (genmoddep_SOURCES): Likewise.
43737
43738 * genmoddep.awk: New file.
43739
43740 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
43741 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
43742 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
43743 (PModule::rule): Likewise.
43744 (Program::rule): Likewise.
43745 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
43746 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
43747 respectively.
43748
43749 * configure.ac: Rewritten intensively to use host and target
43750 instead of build and host, respectively.
43751
43752 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
43753 (host_cpu): Removed.
43754 (target_cpu): New variable.
43755 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
43756 (BUILD_CC): Removed.
43757 (BUILD_CFLAGS): Likewise.
43758 (BUILD_CPPFLAGS): Likewise.
43759 (TARGET_CC): New variable.
43760 (TARGET_CFLAGS): Likewise.
43761 (TARGET_CPPFLAGS): Likewise.
43762 (TARGET_LDFLAGS): Likewise.
43763 (AWK): Likewise.
43764 (include): Use target_cpu instead of host_cpu.
43765 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 43766
b977bf01 43767 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
43768
f09771a1 437692006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
43770
43771 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
43772 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
43773 field 'false' to 'exec_on_false'.
43774 (grub_script_create_cmdif): Renamed argument names to reflect above
43775 changes.
43776
43777 * normal/execute.c (grub_script_execute_cmdif): Likewise.
43778
43779 * normal/script.c (grub_script_create_cmdif): Likewise.
43780
118f4fb3 437812006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
43782
43783 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
43784 top.
43785 (grub_hfsplus_btree_recptr): Likewise.
43786 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
43787 FILEBLOCK both to pass a block number and store next block
43788 number.
43789 (grub_hfsplus_read_block): Rewritten heavily to support an extent
43790 overflow file correctly. Specify errors appropriately, because
43791 fshelp expects that GRUB_ERRNO is set when fails. Reuse
43792 grub_hfsplus_btree_recptr to get the pointer to a found key.
43793 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
43794 is found.
43795
43796 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
43797 linux.mod.
43798 (_linux_mod_SOURCES): New variable.
43799 (_linux_mod_CFLAGS): Likewise.
43800 (_linux_mod_LDFLAGS): Likewise.
43801 (linux_mod_SOURCES): Likewise.
43802 (linux_mod_CFLAGS): Likewise.
43803 (linux_mod_LDFLAGS): Likewise.
43804
43805 * DISTLIST: Added loader/i386/efi/linux.c,
43806 loader/i386/efi/linux_normal.c and
43807 include/grub/i386/efi/loader.h.
43808
43809 * loader/i386/efi/linux.c: New file.
43810 * loader/i386/efi/linux_normal.c: Likewise.
43811 * include/grub/i386/efi/loader.h: Likewise.
43812
89a7d726 438132006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
43814
43815 * commands/blocklist.c: New file.
43816
43817 * DISTLIST: Added commands/blocklist.c.
43818
43819 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 43820 color for the background, and a darker color for the foreground.
89a7d726 43821 (grub_console_checkkey): Return READ_KEY.
43822 (grub_console_cls): Set the background to
43823 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
43824
43825 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
43826
43827 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
43828 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
43829
43830 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
43831 prototype.
43832
43833 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
43834 BG. The spec is wrong again.
43835
43836 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
43837 prototype.
43838 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
43839
43840 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
43841 commands/blocklist.c.
43842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 43843
89a7d726 43844 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
43845 (blocklist_mod_SOURCES): New variable.
43846 (blocklist_mod_CFLAGS): Likewise.
43847 (blocklist_mod_LDFLAGS): Likewise.
43848
75c8f258 438492006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
43850
43851 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
43852 duplication.
43853 (lba_mode): Use %eax more intensively to reduce the code size.
43854
da2eb181 438552006-05-20 Marco Gerards <marco@gnu.org>
43856
43857 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
43858
43859 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
43860 for `menuentry'.
43861 (script): Accept leading newlines.
43862 (newlines): New rule to describe 0 or more newlines.
43863 (commands): Accept `command' with trailing newline. Fixed the
43864 order in which arguments were passed to `grub_script_add_cmd'.
43865 Accept commands separated by newlines.
43866 (function): Changed to accept newlines.
43867 (menuentry) Rewritten.
43868
43869 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
43870 front of the list, instead of to the end.
43871
577b4050 438722006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
43873
43874 * util/i386/pc/grub-install.in (bindir): New variable.
43875 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
43876 Shaver <lbgwjl@gmail.com>.
43877
0d6e1189 438782006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
43879
43880 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
43881 grub/machine/linux.h
43882 * loader/i386/pc/linux.c: Likewise.
43883
43884 * include/grub/i386/pc/linux.h: Moved to ...
43885 * include/grub/i386/linux.h: ... here.
43886
43887 * include/grub/i386/linux.h (struct linux_kernel_params): New
43888 struct.
f19dbdb7 43889
31b86e9f 438902006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
43891
43892 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
43893 checking.
43894 (grub_video_vbe_blit_glyph): Likewise.
43895 (grub_video_vbe_blit_bitmap): Likewise.
43896 (grub_video_vbe_blit_render_target): Likewise.
43897
83b984de 438982006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
43899
43900 * configure.ac (--with-platform): Properly quote the square
43901 brackets.
43902
5f0413bd 439032006-05-08 Marco Gerards <marco@gnu.org>
43904
43905 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
43906 this...
43907 (kernel_elf_HEADERS): ...to this. Updated all users.
43908 (grubof_symlist.c): Renamed from this...
43909 (kernel_elf_symlist.c): ...to this. Updated all users.
43910 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43911 (grubof_SOURCES): Renamed from this...
43912 (kernel_elf_SOURCES): ...to this.
43913 (grubof_HEADERS): Renamed from this...
43914 (kernel_elf_HEADERS): ...to this.
43915 (grubof_CFLAGS): Renamed from this...
43916 (kernel_elf_CFLAGS): ...to this.
43917 (grubof_ASFLAGS): Renamed from this...
43918 (kernel_elf_ASFLAGS): ...to this.
43919 (grubof_LDFLAGS): Renamed from this...
43920 (kernel_elf_LDFLAGS): ...to this.
43921
43922 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
43923 this...
43924 (kernel_elf_HEADERS): ...to this. Updated all users.
43925 (grubof_symlist.c): Renamed from this...
43926 (kernel_elf_symlist.c): ...to this. Updated all users.
43927 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43928 (grubof_SOURCES): Renamed from this...
43929 (kernel_elf_SOURCES): ...to this.
43930 (grubof_HEADERS): Renamed from this...
43931 (kernel_elf_HEADERS): ...to this.
43932 (grubof_CFLAGS): Renamed from this...
43933 (kernel_elf_CFLAGS): ...to this.
43934 (grubof_ASFLAGS): Renamed from this...
43935 (kernel_elf_ASFLAGS): ...to this.
43936 (grubof_LDFLAGS): Renamed from this...
43937 (kernel_elf_LDFLAGS): ...to this.
43938
43939 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
43940 `kernel.elf' instead of `grubof'.
43941
05568c2e 439422006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
43943
43944 Add --with-platform to configure. Use pkglibdir instead of
43945 pkgdatadir. This is reported by Roger Leigh.
43946
43947 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
43948 (host_vendor): Likewise.
43949 (host_os): Likewise.
43950 (pkgdatadir): Likewise.
43951 (platform): New variable.
43952 (pkglibdir): Likewise.
43953 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 43954
05568c2e 43955 * util/i386/pc/grub-install.in (datadir): Removed.
43956 (host_vendor): Likewise.
43957 (host_os): Likewise.
43958 (pkgdatadir): Likewise.
43959 (platform): New variable.
43960 (pkglibdir): Likewise.
43961 Use PKGLIBDIR instead of PKGDATADIR.
43962
43963 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43964 instead of GRUB_DATADIR.
43965 (main): Likewise.
43966 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43967 (main): Likewise.
43968 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43969 (main): Likewise.
43970
43971 * configure.ac (--with-platform): New option.
43972 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43973
43974 * Makefile.in: Include a makefile based on PLATFORM instead of
43975 HOST_VENDOR.
43976 (pkgdatadir): Not appended by the machine type.
43977 (pkglibdir): Appended by the machine type.
43978 (host_vendor): Removed.
43979 (platform): New variable.
43980 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43981 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43982 (uninstall): Likewise.
43983
4e93851c 439842006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43985
43986 Use the environment context in the menu. Remove the commands
43987 "default" and "timeout", and use variables instead.
f19dbdb7 43988
4e93851c 43989 * normal/menu.c: Include grub/env.h.
43990 (print_entry): Cast TITLE to silence gcc.
43991 (get_timeout): New function.
43992 (set_timeout): Likewise.
43993 (get_entry_number): Likewise.
43994 (run_menu): Use a default entry, a fallback entry and a timeout
43995 in the environment variables "default", "fallback" and
43996 "timeout". Also, tweak the default entry if it is not within the
43997 current menu entries.
43998 (grub_menu_run): Use a fallback entry in the environment variable
43999 "fallback".
44000
44001 * normal/main.c (read_config_file): Do not initialize
44002 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
44003 NEWMENU->TIMEOUT.
44004 (grub_normal_execute): Use a data slot to store the menu.
44005
44006 * include/grub/normal.h (struct grub_menu): Removed default_entry,
44007 fallback_entry and timeout.
44008 (struct grub_menu_list): Removed.
44009 (grub_menu_list_t): Likewise.
44010 (struct grub_context): Likewise.
44011 (grub_context_t): Likewise.
44012 (grub_context_get): Likewise.
44013 (grub_context_get_current_menu): Likewise.
44014 (grub_context_push_menu): Likewise.
44015 (grub_context_pop_menu): Likewise.
44016 (grub_default_init): Likewise.
44017 (grub_default_fini): Likewise.
44018 (grub_timeout_init): Likewise.
44019 (grub_timeout_fini): Likewise.
44020
44021 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
44022 and timeout.mod.
44023 (normal_mod_SOURCES): Removed normal/context.c.
44024
44025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
44026 commands/default.c, commands/timeout.c and normal/context.c.
44027 (normal_mod_SOURCES): Removed normal/context.c.
44028
44029 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
44030 commands/timeout.c and normal/context.c.
44031 (normal_mod_SOURCES): Removed normal/context.c.
44032
44033 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
44034 commands/default.c, commands/timeout.c and normal/context.c.
44035 (normal_mod_SOURCES): Removed normal/context.c.
44036
44037 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
44038 timeout.mod.
44039 (default_mod_SOURCES): Removed.
44040 (default_mod_CFLAGS): Likewise.
44041 (default_mod_LDFLAGS): Likewise.
44042 (timeout_mod_SOURCES): Removed.
44043 (timeout_mod_CFLAGS): Likewise.
44044 (timeout_mod_LDFLAGS): Likewise.
44045
44046 * DISTLIST: Removed commands/default.c, commands/timeout.c and
44047 normal/context.c.
44048
44049 * commands/default.c: Removed.
44050 * commands/timeout.c: Likewise.
44051 * normal/context.c: Likewise.
44052
1eb9cc1d 440532006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
44054
44055 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
44056
385bd9c1 440572006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
44058
44059 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
44060 "next" to "prev" for readability.
44061 (struct grub_env_sorted_var): New struct.
44062 (grub_env_context): Renamed to ...
44063 (initial_context): ... this.
44064 (grub_env_var_context): Renamed to ...
44065 (current_context): ... this.
44066 (grub_env_find): Look only at CURRENT_CONTEXT.
44067 (grub_env_context_open): Rewritten to copy exported variables from
44068 previous context.
44069 (grub_env_context_close): Rewritten according to the new
44070 scheme. Also, add an assertion to prevent the initial context from
44071 removed.
44072 (grub_env_insert): Removed the code for the sorted list.
44073 (grub_env_remove): Likewise.
44074 (grub_env_export): Simply mark the variable with
44075 GRUB_ENV_VAR_GLOBAL.
44076 (grub_env_set): A cosmetic change for naming consistency.
44077 (grub_env_get): Likewise.
44078 (grub_env_unset): Likewise.
44079 (grub_env_iterate): Rewritten to sort variables within this
44080 function.
44081 (grub_register_variable_hook): Fixed for naming consistency. Call
44082 grub_env_find again, only if NAME is not found at the first time.
44083 (mangle_data_slot_name): New function.
44084 (grub_env_set_data_slot): Likewise.
44085 (grub_env_get_data_slot): Likewise.
44086 (grub_env_unset_data_slot): Likewise.
44087
44088 * include/grub/env.h (grub_env_var_type): New enum.
44089 (GRUB_ENV_VAR_LOCAL): New constant.
44090 (GRUB_ENV_VAR_GLOBAL): Likewise.
44091 (GRUB_ENV_VAR_DATA): Likewise.
44092 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
44093 "type".
44094 (grub_env_set): Replace VAR with NAME for consistency.
44095 (grub_register_variable_hook): Likewise.
44096 (grub_env_export): Specify the name of the argument.
44097 (grub_env_set_data_slot): New prototype.
44098 (grub_env_get_data_slot): Likewise.
44099 (grub_env_unset_data_slot): Likewise.
44100
7f362539 441012006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44102
44103 Extend the loader so that GRUB can accept a loader which comes
44104 back to GRUB when a loaded image exits. Also, this change adds
44105 support for a chainloader on EFI.
f19dbdb7 44106
7f362539 44107 * term/efi/console.c: Include grub/misc.h.
44108 (grub_console_checkkey): Display a scan code on the top for
44109 debugging. This will be removed once the EFI port gets stable.
44110 Correct the scan code mapping.
44111
44112 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
44113 allocate memory from larger regions, in order to reduce the number
44114 of allocated regions. Otherwise, the MacOSX loader panics.
44115 (filter_memory_map): Avoid less than 1MB for compatibility with
44116 other loaders.
44117 (add_memory_regions): Allocate from the tail of a region, if
44118 possible, to avoid allocating a region near to 1MB, for the MacOSX
44119 loader.
44120
44121 * kern/efi/init.c (grub_efi_set_prefix): Specify
44122 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
44123
44124 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
44125 argument IMAGE_HANDLE and specify it to get a loaded image.
44126 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
44127 grub_efi_get_loaded_image.
fe6b695a 44128 (grub_efi_get_filename): Divide the length by the size of
7f362539 44129 grub_efi_char16_t.
44130 (grub_efi_get_device_path): New function.
44131 (grub_efi_print_device_path): Print End Device Path nodes. Divide
44132 the length by the size of grub_efi_char16_t for a file path device
44133 path node.
44134
44135 * kern/loader.c (grub_loader_noreturn): New variable.
44136 (grub_loader_set): Accept a new argument NORETURN. Set
44137 GRUB_LOADER_NORETURN to NORETURN.
44138 All callers changed.
44139 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
44140 grub_machine_fini.
44141
44142 * include/grub/efi/efi.h (grub_efi_get_device_path): New
44143 prototype.
44144 (grub_efi_get_loaded_image): Take an argument to specify an image
44145 handle.
44146
44147 * include/grub/loader.h (grub_loader_set): Added one more argument
44148 NORETURN.
44149
44150 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
44151 instead of grub_efi_open_protocol.
44152 (grub_efidisk_get_device_name): Likewise.
44153 (grub_efidisk_close): Print a newline.
44154 (grub_efidisk_get_device_handle): Fixed to use
44155 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44156 GRUB_EFI_DEVICE_PATH_TYPE.
44157
44158 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44159 * kern/efi/efi.c (device_path_guid): ... here.
44160
44161 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44162 chain.mod.
44163 (kernel_mod_HEADERS): Added efi/disk.h.
44164 (_chain_mod_SOURCES): New variable.
44165 (_chain_mod_CFLAGS): Likewise.
44166 (_chain_mod_LDFLAGS): Likewise.
44167 (chain_mod_SOURCES): Likewise.
44168 (chain_mod_CFLAGS): Likewise.
44169 (chain_mod_LDFLAGS): Likewise.
44170
44171 * DISTLIST: Added include/grub/efi/chainloader.h,
44172 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44173
44174 * include/grub/efi/chainloader.h: New file.
44175 * loader/efi/chainloader.c: Likewise.
44176 * loader/efi/chainloader_normal.c: Likewise.
44177
c0111d6e 441782006-04-30 Marco Gerards <marco@gnu.org>
44179
44180 * commands/configfile.c (grub_cmd_source): New function.
44181 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44182 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44183
df5341da 441842006-04-30 Marco Gerards <marco@gnu.org>
44185
44186 * normal/execute.c (grub_script_execute_cmd): Change the return
44187 type to `grub_err_t'. Correctly return the error.
44188 (grub_script_execute_cmdline): In case a command line is not a
44189 command or a function, try to interpret it as an assignment.
44190
f85934bd 441912006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44192
44193 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44194 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44195 skip a node whose name is obviously invalid as UTF-16,
44196 i.e. contains a NUL character. Stop the iteration when the last
44197 directory entry is found. Instead of using the return value of
44198 grub_hfsplus_btree_iterate_node, store the value in RET and use
44199 it, because the iterator can be stopped by the last directory
44200 entry.
44201
8f8a2cf8 442022006-04-30 Marco Gerards <marco@gnu.org>
44203
44204 * include/grub/env.h (grub_env_export): New prototype. Reported
44205 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44206
a27e84ce 442072006-04-30 Marco Gerards <marco@gnu.org>
44208
44209 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44210 size of the extents in a catalog file record.
44211
eaef0553 442122006-04-29 Marco Gerards <marco@gnu.org>
44213
44214 * commands/configfile.c (grub_cmd_configfile): Execute the
44215 configfile within its own context.
44216
44217 * include/grub/env.h (grub_env_context_open): New prototype.
44218 (grub_env_context_close): Likewise.
44219
44220 * kern/env.c (grub_env): Removed.
44221 (grub_env_sorted): Likewise.
44222 (grub_env_context): New variable.
44223 (grub_env_var_context): Likewise.
44224 (grub_env_find): Search both the active context and the global
44225 context.
44226 (grub_env_context_open): New function.
44227 (grub_env_context_close): Likewise.
44228 (grub_env_insert): Likewise.
44229 (grub_env_remove): Likewise.
44230 (grub_env_export): Likewise.
44231 (grub_env_set): Changed to use helper functions to avoid code
44232 duplication.
44233 (grub_env_iterate): Rewritten so both the current context and the
44234 global context are being used.
44235
44236 * normal/command.c (export_command): New function.
44237 (grub_command_init): Register the `export' function.
44238
7b455f4d 442392006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44240
44241 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44242 explicitly to suppress gcc's warnings.
44243 * fs/fat.c (grub_fat_find_dir): Likewise.
44244 (grub_fat_label): Likewise.
44245 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44246 (grub_xfs_mount): Likewise.
44247 (grub_xfs_label): Likewise.
44248 * fs/affs.c (grub_affs_mount): Likewise.
44249 (grub_affs_label): Likewise.
44250 (grub_affs_iterate_dir): Likewise.
44251 * fs/sfs.c (grub_sfs_mount): Likewise.
44252 (grub_sfs_iterate_dir): Likewise.
44253 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44254 * fs/hfs.c (grub_hfs_mount): Likewise.
44255 (grub_hfs_cmp_catkeys): Likewise.
44256 (grub_hfs_find_dir): Likewise.
44257 (grub_hfs_dir): Likewise.
44258 (grub_hfs_label): Likewise.
44259 * fs/jfs.c (grub_jfs_mount): Likewise.
44260 (grub_jfs_opendir): Likewise.
44261 (grub_jfs_getent): Likewise.
44262 (grub_jfs_lookup_symlink): Likewise.
44263 (grub_jfs_label): Likewise.
44264 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44265 (grub_hfsplus_iterate_dir): Likewise.
44266 (grub_hfsplus_btree_iterate_node): Made static.
44267
44268 * util/grub-emu.c (prefix): New variable.
44269 (grub_machine_set_prefix): New function.
44270 (main): Do not set the environment variable "prefix" here. Only
44271 set PREFIX, which is used later by grub_machine_set_prefix.
44272
44273 * include/grub/video.h: Do not include grub/symbol.h.
44274 (grub_video_register): Not exported. This symbol is not defined in
44275 the kernel.
44276 (grub_video_unregister): Likewise.
44277 (grub_video_iterate): Likewise.
44278 (grub_video_setup): Likewise.
44279 (grub_video_restore): Likewise.
44280 (grub_video_get_info): Likewise.
44281 (grub_video_get_blit_format): Likewise.
44282 (grub_video_set_palette): Likewise.
44283 (grub_video_get_palette): Likewise.
44284 (grub_video_set_viewport): Likewise.
44285 (grub_video_get_viewport): Likewise.
44286 (grub_video_map_color): Likewise.
44287 (grub_video_map_rgb): Likewise.
44288 (grub_video_map_rgba): Likewise.
44289 (grub_video_fill_rect): Likewise.
44290 (grub_video_blit_glyph): Likewise.
44291 (grub_video_blit_bitmap): Likewise.
44292 (grub_video_blit_render_target): Likewise.
44293 (grub_video_scroll): Likewise.
44294 (grub_video_swap_buffers): Likewise.
44295 (grub_video_create_render_target): Likewise.
44296 (grub_video_delete_render_target): Likewise.
44297 (grub_video_set_active_render_target): Likewise.
44298
44299 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44300 Undefined.
44301 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44302
44303 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44304 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44305 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44306 instead of $(srcdir)/genkernsyms.sh.
44307
44308 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44309 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44310 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44311 instead of $(srcdir)/genkernsyms.sh.
44312
44313 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44314 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44315 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44316 instead of $(srcdir)/genkernsyms.sh.
44317
44318 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44319 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44320 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44321 instead of $(srcdir)/genkernsyms.sh.
44322
44323 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44324 genkernsyms.sh.
44325
44326 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44327 genkernsyms.sh.
44328 (gensymlist.sh): New target.
44329 (genkernsyms.sh): Likewise.
44330
44331 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44332 genkernsyms.sh.in and gensymlist.sh.in.
44333
44334 * genkernsyms.sh: Removed.
44335 * gensymlist.sh: Likewise.
f19dbdb7 44336
7b455f4d 44337 * genkernsyms.sh.in: New file.
44338 * gensymlist.sh.in: Likewise.
44339
1885bb27 443402006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44341
44342 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44343 clobber "prefix", since we may have already set it manually.
44344
71538dff 443452006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44346
44347 * kern/misc.c (abort): New alias for grub_abort.
44348
2965c7cc 443492006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44350
44351 A new machine-specific function "grub_machine_set_prefix" is
44352 defined. This is called after loading modules, so that a prefix
44353 initialization can use modules. Also, this change adds an
44354 intensive debugging feature for the memory manager via the
44355 configure option "--enable-mm-debug".
f19dbdb7 44356
2965c7cc 44357 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44358 PART.LEN.
44359
44360 * kern/sparc64/ieee1275/init.c (abort): Removed.
44361 (grub_stop): Likewise.
44362 (grub_exit): New function.
44363 (grub_set_prefix): Renamed to ...
44364 (grub_machine_set_prefix): ... this.
44365 (grub_machine_init): Do not call grub_set_prefix.
44366
44367 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44368 (grub_machine_set_prefix): ... this.
44369 (grub_machine_init): Do not call grub_set_prefix.
44370
44371 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44372 (grub_machine_init): Do not set the prefix here.
44373
44374 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44375
44376 * kern/efi/init.c: Include grub/mm.h.
44377 (grub_efi_set_prefix): New function.
44378
44379 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44380 (grub_efi_get_filename): New function.
44381 (grub_print_device_path): Renamed to ...
44382 (grub_efi_print_device_path): ... this.
44383
44384 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44385 [MM_DEBUG] (grub_realloc): Likewise.
44386 [MM_DEBUG] (grub_free): Likewise.
44387 [MM_DEBUG] (grub_memalign): Likewise.
44388 [MM_DEBUG] (grub_mm_debug): New variable.
44389 [MM_DEBUG] (grub_debug_malloc): New function.
44390 [MM_DEBUG] (grub_debug_free): New function.
44391 [MM_DEBUG] (grub_debug_realloc): New function.
44392 [MM_DEBUG] (grub_debug_memalign): New function.
44393
44394 * kern/misc.c (grub_abort): Print a newline to distinguish
44395 the message.
44396
44397 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44398 grub_set_root_dev after loading modules. This is necessary when
44399 setting a prefix depends on modules.
44400
44401 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44402 (grub_efi_print_device_path): ... this.
44403 (grub_efi_get_filename): New prototype.
44404 (grub_efi_set_prefix): Likewise.
44405
44406 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44407 and grub/disk.h.
44408 (grub_efidisk_get_device_handle): New prototype.
44409 (grub_efidisk_get_device_name): Likewise.
44410
44411 * include/grub/mm.h: Include config.h.
44412 (MM_DEBUG): Removed.
44413 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44414 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44415 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44416 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44417 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44418 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44419 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44420 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44421 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44422
44423 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44424
44425 * disk/efi/efidisk.c: Include grub/partition.h.
44426 (iterate_child_devices): New function.
44427 (add_device): First, compare only last device path nodes, so that
44428 devices are sorted by the types.
44429 (grub_efidisk_get_device_handle): New function.
44430 (grub_efidisk_get_device_name): Likewise.
44431
44432 * configure.ac (--enable-mm-debug): New option to enable the
44433 memory manager debugging feature. This makes the binary much
44434 bigger, so is disabled by default.
44435
9cacaa17 444362006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44437
44438 Use grub_abort instead of grub_stop, and grub_exit must be
44439 define in each architecture now. Also, this change adds support
44440 for EFI disks.
f19dbdb7 44441
9cacaa17 44442 * util/i386/pc/grub-probefs.c: Include grub/term.h.
44443 (grub_getkey): New function.
44444 (grub_term_get_current): Likewise.
44445
44446 * util/i386/pc/grub-setup.c: Include grub/term.h.
44447 (grub_getkey): New function.
44448 (grub_term_get_current): Likewise.
44449
44450 * util/misc.c (grub_stop): Renamed to ...
44451 (grub_exit): ... this.
44452
44453 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
44454 (grub_exit): ... this.
44455 (grub_machine_init): Use grub_abort instead of abort.
44456 (grub_stop): Removed.
44457
44458 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
44459 abort.
44460
44461 * kern/i386/pc/startup.S (grub_exit): New function.
44462 (cold_reboot): New label.
44463
44464 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
44465 (grub_efi_init): Call grub_efidisk_init.
44466 (grub_efi_fini): Call grub_efidisk_fini.
44467
44468 * kern/efi/efi.c: Include grub/mm.h.
44469 (grub_efi_console_control_guid): Renamed to ...
44470 (console_control_guid): ... this.
44471 (grub_efi_loaded_image_guid): Renamed to ...
44472 (loaded_image_guid): ... this.
44473 (grub_efi_locate_handle): New function.
44474 (grub_efi_open_protocol): Likewise.
44475 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
44476 GRUB_EFI_CONSOLE_CONTROL_GUID.
44477 (grub_efi_exit): Removed.
44478 (grub_stop): Likewise.
44479 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
44480 (grub_exit): New function.
44481 (grub_print_device_path): Likewise.
44482
44483 * kern/rescue.c (grub_rescue_cmd_exit): New function.
44484 (grub_enter_rescue_mode): Register "exit".
44485
44486 * kern/misc.c (grub_real_dprintf): A cosmetic change.
44487 (grub_abort): New function.
44488
44489 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
44490
44491 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
44492
44493 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
44494
44495 * include/grub/efi/efi.h (grub_efi_exit): Removed.
44496 (grub_print_device_path): New prototype.
44497 (grub_efi_locate_handle): Likewise.
44498 (grub_efi_open_protocol): Likewise.
44499
44500 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
44501 * disk/efi/efidisk.c: Likewise.
44502
44503 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
44504
44505 * include/grub/efi/console_control.h
44506 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
44507
44508 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
44509 last 8 bytes as an array.
44510 (GRUB_EFI_DISK_IO_GUID): New macro.
44511 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
44512 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
44513 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
44514 grub_uint8_t.
44515 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
44516 (struct grub_efi_device_path): Rename the member "sub_type" to
44517 "subtype".
44518 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
44519 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
44520 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
44521 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
44522 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
44523 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
44524 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
44525 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
44526 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
44527 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
44528 (struct grub_efi_pci_device_path): New structure.
44529 (grub_efi_pci_device_path_t): New type.
44530 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
44531 (struct grub_efi_pccard_device_path): New structure.
44532 (grub_efi_pccard_device_path_t): New type.
44533 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
44534 (struct grub_efi_memory_mapped_device_path): New structure.
44535 (grub_efi_memory_mapped_device_path_t): New type.
44536 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
44537 (struct grub_efi_vendor_device_path): New structure.
44538 (grub_efi_vendor_device_path_t): New type.
44539 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
44540 (struct grub_efi_controller_device_path): New structure.
44541 (grub_efi_controller_device_path_t): New type.
44542 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
44543 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
44544 (struct grub_efi_acpi_device_path): New structure.
44545 (grub_efi_acpi_device_path_t): New type.
44546 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
44547 (struct grub_efi_expanded_acpi_device_path): New structure.
44548 (grub_efi_expanded_acpi_device_path_t): New type.
44549 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
44550 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
44551 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
44552 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
44553 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
44554 (struct grub_efi_atapi_device_path): New structure.
44555 (grub_efi_atapi_device_path_t): New type.
44556 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
44557 (struct grub_efi_fibre_channel_device_path): New structure.
44558 (grub_efi_fibre_channel_device_path_t): New type.
44559 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
44560 (struct grub_efi_1394_device_path): New structure.
44561 (grub_efi_1394_device_path_t): New type.
44562 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
44563 (struct grub_efi_usb_device_path): New structure.
44564 (grub_efi_usb_device_path_t): New type.
44565 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
44566 (struct grub_efi_usb_class_device_path): New structure.
44567 (grub_efi_usb_class_device_path_t): New type.
44568 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
44569 (struct grub_efi_i2o_device_path): New structure.
44570 (grub_efi_i2o_device_path_t): New type.
44571 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
44572 (struct grub_efi_mac_address_device_path): New structure.
44573 (grub_efi_mac_address_device_path_t): New type.
44574 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
44575 (struct grub_efi_ipv4_device_path): New structure.
44576 (grub_efi_ipv4_device_path_t): New type.
44577 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
44578 (struct grub_efi_ipv6_device_path): New structure.
44579 (grub_efi_ipv6_device_path_t): New type.
44580 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
44581 (struct grub_efi_infiniband_device_path): New structure.
44582 (grub_efi_infiniband_device_path_t): New type.
44583 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
44584 (struct grub_efi_uart_device_path): New structure.
44585 (grub_efi_uart_device_path_t): New type.
44586 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
44587 (struct grub_efi_vendor_messaging_device_path): New structure.
44588 (grub_efi_vendor_messaging_device_path_t): New type.
44589 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
44590 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
44591 (struct grub_efi_hard_drive_device_path): New structure.
44592 (grub_efi_hard_drive_device_path_t): New type.
44593 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
44594 (struct grub_efi_cdrom_device_path): New structure.
44595 (grub_efi_cdrom_device_path_t): New type.
44596 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
44597 (struct grub_efi_vendor_media_device_path): New structure.
44598 (grub_efi_vendor_media_device_path_t): New type.
44599 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
44600 (struct grub_efi_file_path_device_path): New structure.
44601 (grub_efi_file_path_device_path_t): New type.
44602 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
44603 (struct grub_efi_protocol_device_path): New structure.
44604 (grub_efi_protocol_device_path_t): New type.
44605 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
44606 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
44607 (struct grub_efi_bios_device_path): New structure.
44608 (grub_efi_bios_device_path_t): New type.
44609 (struct grub_efi_disk_io): New structure.
44610 (grub_efi_disk_io_t): New type.
44611 (struct grub_efi_block_io_media): New structure.
44612 (grub_efi_block_io_media_t): New type.
44613 (struct grub_efi_block_io): New structure.
44614 (grub_efi_block_io_t): New type.
44615
44616 * include/grub/misc.h (grub_stop): Removed.
44617 (grub_exit): New prototype.
44618 (grub_abort): Likewise.
44619
44620 * include/grub/disk.h (enum grub_disk_dev_id): Added
44621 GRUB_DISK_DEVICE_EFIDISK_ID.
44622
44623 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
44624 disk/efi/efidisk.c.
44625 (kernel_syms.lst): Remove the target if an error occurs.
44626
49986a9f 446272006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
44628
44629 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
44630 as it was simply too buggy.
44631
970d3b8a 446322006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
44633
44634 * kern/misc.c (grub_lltoa): New function.
44635 (grub_vsprintf): Added support for the long long suffix,
44636 i.e. "ll".
44637
ff04ec24 446382006-04-20 Hollis Blanchard <hollis@penguinppc.org>
44639
44640 * Makefile.in (LDFLAGS): Add variable.
44641 (LD): Remove variable.
44642 * configure.ac: Add -m32 to LDFLAGS.
44643 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
44644 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
44645 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
44646 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
44647 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
44648 variables.
44649 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
44650 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
44651 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
44652
37e5e1a4 446532006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
44654
44655 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
44656 length for unknown glyph.
44657
c352d8dd 446582006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
44659
2eab1c0d 44660 Add support for pre-loaded modules into the EFI port.
f19dbdb7 44661
2eab1c0d 44662 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
44663 completely. Accept one more argument DIR. The caller has changed.
44664
44665 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
44666
44667 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
44668 (grub_efi_loaded_image_guid): New variable.
44669 (grub_efi_get_loaded_image): New function.
44670 (grub_arch_modules_addr): Likewise.
44671
44672 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
44673 prototype.
44674
44675 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
44676 (struct grub_efi_loaded_image): New structure.
44677 (grub_efi_loaded_image_t): New type.
44678
446792006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44680
c352d8dd 44681 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
44682 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
44683 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
44684
6d01d6b4 446852006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
44686
44687 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
44688
976a4ea0 446892006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
44690
44691 * DISTLIST: Added include/grub/efi/console.h,
44692 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
44693 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44694
44695 * include/grub/efi/console.h: New file.
44696 * include/grub/efi/time.h: Likewise.
44697 * include/grub/i386/efi/kernel.h: Likewise.
44698 * kern/efi/init.c: Likewise.
44699 * kern/efi/mm.c: Likewise.
44700 * term/efi/console.c: Likewise.
f19dbdb7 44701
976a4ea0 44702 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
44703 (grub_stop): Removed.
44704 (grub_get_rtc): Likewise.
44705 (grub_machine_init): Simply call grub_efi_init.
44706 (grub_machine_fini): Call grub_efi_fini.
44707
44708 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
44709 (grub_efi_output_string): Removed.
44710 (grub_efi_stall): New function.
44711 (grub_stop): Likewise.
44712 (grub_get_rtc): Likewise.
44713
44714 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
44715 (grub_efi_stall): New prototype.
44716 (grub_efi_allocate_pages): Likewise.
44717 (grub_efi_free_pages): Likewise.
44718 (grub_efi_get_memory_map): Likewise.
44719 (grub_efi_mm_init): Likewise.
44720 (grub_efi_mm_fini): Likewise.
44721 (grub_efi_init): Likewise.
44722 (grub_efi_fini): Likewise.
44723
44724 * include/grub/i386/efi/time.h: Do not include
44725 grub/symbol.h. Include grub/efi/time.h.
44726 (GRUB_TICKS_PER_SECOND): Removed.
44727 (grub_get_rtc): Likewise.
44728
44729 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
44730 Added padding. The EFI spec is buggy.
44731 (GRUB_EFI_BLACK): New macro.
44732 (GRUB_EFI_BLUE): Likewise.
44733 (GRUB_EFI_GREEN): Likewise.
44734 (GRUB_EFI_CYAN): Likewise.
44735 (GRUB_EFI_RED): Likewise.
44736 (GRUB_EFI_MAGENTA): Likewise.
44737 (GRUB_EFI_BROWN): Likewise.
44738 (GRUB_EFI_LIGHTGRAY): Likewise.
44739 (GRUB_EFI_BRIGHT): Likewise.
44740 (GRUB_EFI_DARKGRAY): Likewise.
44741 (GRUB_EFI_LIGHTBLUE): Likewise.
44742 (GRUB_EFI_LIGHTGREEN): Likewise.
44743 (GRUB_EFI_LIGHTCYAN): Likewise.
44744 (GRUB_EFI_LIGHTRED): Likewise.
44745 (GRUB_EFI_LIGHTMAGENTA): Likewise.
44746 (GRUB_EFI_YELLOW): Likewise.
44747 (GRUB_EFI_WHITE): Likewise.
44748 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
44749 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
44750 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
44751 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
44752 (GRUB_EFI_BACKGROUND_RED): Likewise.
44753 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
44754 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
44755 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
44756 (GRUB_EFI_TEXT_ATTR): Likewise.
44757
44758 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
44759 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44760 (kernel_mod_HEADERS): Added efi/time.h.
44761
83709125 447622006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
44763
44764 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
44765 include/grub/efi/api.h, include/grub/efi/console_control.h,
44766 include/grub/efi/efi.h, include/grub/efi/pe32.h,
44767 include/grub/i386/efi/time.h, kern/efi/efi.c,
44768 kern/i386/efi/init.c, kern/i386/efi/startup.S,
44769 and util/i386/efi/grub-mkimage.c.
44770
44771 * Makefile.in (RMKFILES): Added i386-efi.rmk.
44772
44773 * genmk.rb (PModule#rule): Do not export symbols if
44774 #{prefix}_EXPORTS is set to "no".
44775
44776 * conf/i386-efi.mk: New file.
44777 * conf/i386-efi.rmk: Likewise.
44778 * include/grub/efi/api.h: Likewise.
44779 * include/grub/efi/console_control.h: Likewise.
44780 * include/grub/efi/efi.h: Likewise.
44781 * include/grub/efi/pe32.h: Likewise.
44782 * include/grub/i386/efi/time.h: Likewise.
44783 * kern/efi/efi.c: Likewise.
44784 * kern/i386/efi/init.c: Likewise.
44785 * kern/i386/efi/startup.S: Likewise.
44786 * util/i386/efi/grub-mkimage.c: Likewise.
44787
447882006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 44789
44790 * include/grub/script.h: Include <grub/parser.h> and
44791 "grub_script.tab.h".
44792 (struct grub_lexer_param): New struct.
44793 (struct grub_parser_param): Likewise.
44794 (grub_script_create_arglist): Pass the state in an argument.
44795 (grub_script_add_arglist): Likewise.
44796 (grub_script_create_cmdline): Likewise.
44797 (grub_script_create_cmdblock): Likewise.
44798 (grub_script_create_cmdif): Likewise.
44799 (grub_script_create_cmdmenu): Likewise.
44800 (grub_script_add_cmd): Likewise.
44801 (grub_script_arg_add): Likewise.
44802 (grub_script_lexer_ref): Likewise.
44803 (grub_script_lexer_deref): Likewise.
44804 (grub_script_lexer_record_start): Likewise.
44805 (grub_script_lexer_record_stop): Likewise.
44806 (grub_script_mem_record): Likewise.
44807 (grub_script_mem_record_stop): Likewise.
44808 (grub_script_malloc): Likewise.
44809 (grub_script_yylex): Likewise.
44810 (grub_script_yyparse): Likewise.
44811 (grub_script_yyerror): Likewise.
44812 (grub_script_yylex): Likewise.
44813 (grub_script_lexer_init): Return the state.
44814
44815 * normal/lexer.c (grub_script_lexer_state): Removed variable.
44816 (grub_script_lexer_done): Likewise.
44817 (grub_script_lexer_getline): Likewise.
44818 (grub_script_lexer_refs): Likewise.
44819 (script): Likewise.
44820 (newscript): Likewise.
44821 (record): Likewise.
44822 (recording): Likewise.
44823 (recordpos): Likewise.
44824 (recordlen): Likewise.
44825 (grub_script_lexer_init): Return the state instead of setting
44826 global variables.
44827 (grub_script_lexer_ref): Use the newly added argument for state
44828 instead of globals.
44829 (grub_script_lexer_deref): Likewise.
44830 (grub_script_lexer_record_start): Likewise.
44831 (grub_script_lexer_record_stop): Likewise.
44832 (recordchar): Likewise.
44833 (nextchar): Likewise.
44834 (grub_script_yylex2): Likewise.
44835 (grub_script_yylex): Likewise.
44836 (grub_script_yyerror): Likewise.
44837
44838 * normal/parser.y (func_mem): Removed variable.
44839 (menu_entry): Likewise.
44840 (err): Likewise.
44841 (%lex-param): New parser option.
44842 (%parse-param): Likewise.
44843 (script): Always return the AST.
44844 (argument): Pass the state around.
44845 (arguments): Likewise.
44846 (grubcmd): Likewise.
44847 (commands): Likewise.
44848 (function): Likewise.
44849 (menuentry): Likewise.
44850 (if_statement): Likewise.
44851 (if): Likewise.
44852
44853 * normal/script.c (grub_script_memused): Removed variable.
44854 (grub_script_parsed): Likewise.
44855 (grub_script_malloc): Added a state argument. Use that instead of
44856 global variables.
44857 (grub_script_mem_record): Likewise.
44858 (grub_script_mem_record_stop): Likewise.
44859 (grub_script_arg_add): Likewise.
44860 (grub_script_add_arglist): Likewise.
44861 (grub_script_create_cmdline): Likewise.
44862 (grub_script_create_cmdif): Likewise.
44863 (grub_script_create_cmdmenu): Likewise.
44864 (grub_script_add_cmd): Likewise.
44865 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 44866
e2a8c904 448672006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 44868
44869 * normal/command.c (grub_command_init): Remove the title command.
44870
44871 * normal/lexer.c (grub_script_yylex): Renamed from this...
44872 (grub_script_yylex2): ... to this.
44873 (grub_script_yylex): New function. Temporary
44874 introduced to filter some tokens.
44875 (grub_script_yyerror): Print a newline.
44876
44877 * normal/main.c (read_config_file): Output information about the
44878 lines that contain errors. Wait for a key after all lines have
44879 been processed. Don't return an empty menu.
44880
44881 * normal/parser.y (func_mem): Don't initialize.
44882 (menu_entry): Likewise.
44883 (err): New variable.
44884 (script): Don't return anything when an error was encountered.
44885 (ws, returns): Removed rules.
44886 (argument): Disabled concatenated variable support.
44887 (arguments): Remove explicit separators.
44888 (grubcmd): Likewise.
44889 (function): Likewise.
44890 (menuentry): Likewise.
44891 (if): Likewise.
44892 (commands): Likewise. Add error handling.
44893
44894 * normal/script.c (grub_script_create_cmdline): If
44895 `grub_script_parsed' is 0, assume the parser encountered an error.
44896
c9a86192 448972006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
44898
44899 * configure.ac: Add support for EFI. Fix the typo
44900 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
44901
70f3b243 449022006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44903
44904 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
44905 foreign multibyte characters should be shown correctly.
44906
65f201ad 449072006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44908
44909 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
44910 calculation.
44911 (read_config_file): Made it to close file before returning.
44912
b4b93674 449132006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
44914
44915 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
44916 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
44917 video/i386/pc/vbefill.c.
44918
44919 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
44920 video/i386/pc/vbefill.c.
44921
44922 * include/grub/video.h (grub_video_blit_format): New enum.
44923 (grub_video_mode_info): Added new member blit_format.
44924 (grub_video_get_blit_format): New function prototype.
44925
44926 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
44927 function prototype.
44928 (grub_video_vbe_map_rgb): Likewise.
44929 (grub_video_vbe_unmap_color): Likewise.
44930
44931 * include/grub/i386/pc/vbeblit.h: New file.
44932
44933 * include/grub/i386/pc/vbefill.h: New file.
44934
44935 * video/video.c (grub_video_get_blit_format): New function.
44936 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
44937 (grub_video_vbe_map_rgb): Likewise.
44938 (grub_video_vbe_unmap_color): Likewise.
44939
44940 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
44941 optimized fills.
44942 (grub_video_vbe_blit_render_target): Changed to use more optimized
44943 blits.
44944 (grub_video_vbe_setup): Added detection for optimized settings.
44945 (grub_video_vbe_create_render_target): Likewise.
44946
44947 * video/i386/pc/vbeblit.c: New file.
44948
44949 * video/i386/pc/vbefill.c: New file.
44950
c2379b9c 449512006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
44952
44953 * font/manager.c (grub_font_get_glyph): Removed font fixup from
44954 here...
44955
44956 * util/unifont2pff.rb: ... and moved it to here. Improved argument
44957 parsing to support both hex and dec ranges. If filename was missing
44958 show usage information.
44959
bd0d7896 449602006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
44961
44962 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44963 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44964
44965 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44966 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44967 (video_mod_SOURCES): Added.
44968 (video_mod_CFLAGS): Likewise.
44969 (video_mod_LDFLAGS): Likewise.
44970 (gfxterm_mod_SOURCES): Likewise.
44971 (gfxterm_mod_CFLAGS): Likewise.
44972 (gfxterm_mod_LDFLAGS): Likewise.
44973 (videotest_mod_SOURCES): Likewise.
44974 (videotest_mod_CFLAGS): Likewise.
44975 (videotest_mod_LDFLAGS): Likewise.
44976 (vesafb_mod_SOURCES): Removed.
44977 (vesafb_mod_CFLAGS): Likewise.
44978 (vesafb_mod_LDFLAGS): Likewise.
44979 (vga_mod_SOURCES): Likewise.
44980 (vga_mod_CFLAGS): Likewise.
44981 (vga_mod_LDFLAGS): Likewise.
44982
44983 * commands/videotest.c: New file.
44984
44985 * font/manager.c (fill_with_default_glyph): Modified to use
44986 grub_font_glyph.
44987 (grub_font_get_glyph): Likewise.
44988 (fontmanager): Renamed from this...
44989 (font_manager): ... to this.
44990
44991 * include/grub/font.h (grub_font_glyph): Added new structure.
44992 (grub_font_get_glyph): Modified to use grub_font_glyph.
44993
44994 * include/grub/misc.h (grub_abs): Added as inline function.
44995
44996 * include/grub/video.h: New file.
44997
44998 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44999 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
45000 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
45001 (grub_vbe_get_controller_info): Renamed from this...
45002 (grub_vbe_bios_get_controller_info): ... to this.
45003 (grub_vbe_get_mode_info): Renamed from this...
45004 (grub_vbe_bios_get_mode_info): ... to this.
45005 (grub_vbe_set_mode): Renamed from this...
45006 (grub_vbe_bios_set_mode): ... to this.
45007 (grub_vbe_get_mode): Renamed from this...
45008 (grub_vbe_bios_get_mode): ... to this.
45009 (grub_vbe_set_memory_window): Renamed from this...
45010 (grub_vbe_bios_set_memory_window): ... to this.
45011 (grub_vbe_get_memory_window): Renamed from this...
45012 (grub_vbe_bios_get_memory_window): ... to this.
45013 (grub_vbe_set_scanline_length): Renamed from this...
45014 (grub_vbe_set_scanline_length): ... to this.
45015 (grub_vbe_get_scanline_length): Renamed from this...
45016 (grub_vbe_bios_get_scanline_length): ... to this.
45017 (grub_vbe_set_display_start): Renamed from this...
45018 (grub_vbe_bios_set_display_start): ... to this.
45019 (grub_vbe_get_display_start): Renamed from this...
45020 (grub_vbe_bios_get_display_start): ... to this.
45021 (grub_vbe_set_palette_data): Renamed from this...
45022 (grub_vbe_bios_set_palette_data): ... to this.
45023 (grub_vbe_set_pixel_rgb): Removed.
45024 (grub_vbe_set_pixel_index): Likewise.
45025
45026 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
45027 from this...
45028 (grub_vbe_bios_get_controller_info): ... to this.
45029 (grub_vbe_get_mode_info): Renamed from this...
45030 (grub_vbe_bios_get_mode_info): ... to this.
45031 (grub_vbe_set_mode): Renamed from this...
45032 (grub_vbe_bios_set_mode): ... to this.
45033 (grub_vbe_get_mode): Renamed from this...
45034 (grub_vbe_bios_get_mode): ... to this.
45035 (grub_vbe_set_memory_window): Renamed from this...
45036 (grub_vbe_bios_set_memory_window): ... to this.
45037 (grub_vbe_get_memory_window): Renamed from this...
45038 (grub_vbe_bios_get_memory_window): ... to this.
45039 (grub_vbe_set_scanline_length): Renamed from this...
45040 (grub_vbe_set_scanline_length): ... to this.
45041 (grub_vbe_get_scanline_length): Renamed from this...
45042 (grub_vbe_bios_get_scanline_length): ... to this.
45043 (grub_vbe_set_display_start): Renamed from this...
45044 (grub_vbe_bios_set_display_start): ... to this.
45045 (grub_vbe_get_display_start): Renamed from this...
45046 (grub_vbe_bios_get_display_start): ... to this.
45047 (grub_vbe_set_palette_data): Renamed from this...
45048 (grub_vbe_bios_set_palette_data): ... to this.
45049 (grub_vbe_bios_get_controller_info): Fixed problem with registers
45050 getting corrupted after calling it. Added more pushes and pops.
45051 (grub_vbe_bios_set_mode): Likewise.
45052 (grub_vbe_bios_get_mode): Likewise.
45053 (grub_vbe_bios_get_memory_window): Likewise.
45054 (grub_vbe_bios_set_scanline_length): Likewise.
45055 (grub_vbe_bios_get_scanline_length): Likewise.
45056 (grub_vbe_bios_get_display_start): Likewise.
45057 (grub_vbe_bios_set_palette_data): Likewise.
45058
45059 * normal/cmdline.c (cl_set_pos): Refresh the screen.
45060 (cl_insert): Likewise.
45061 (cl_delete): Likewise.
45062
45063 * term/gfxterm.c: New file.
45064
45065 * term/i386/pc/vesafb.c: Removed file.
45066
45067 * video/video.c: New file.
45068
45069 * video/i386/pc/vbe.c (real2pm): Added new function.
45070 (grub_video_vbe_draw_pixel): Likewise.
45071 (grub_video_vbe_get_video_ptr): Likewise.
45072 (grub_video_vbe_get_pixel): Likewise
45073 (grub_video_vbe_init): Likewise.
45074 (grub_video_vbe_fini): Likewise.
45075 (grub_video_vbe_setup): Likewise.
45076 (grub_video_vbe_get_info): Likewise.
45077 (grub_video_vbe_set_palette): Likewise.
45078 (grub_video_vbe_get_palette): Likewise.
45079 (grub_video_vbe_set_viewport): Likewise.
45080 (grub_video_vbe_get_viewport): Likewise.
45081 (grub_video_vbe_map_color): Likewise.
45082 (grub_video_vbe_map_rgb): Likewise.
45083 (grub_video_vbe_map_rgba): Likewise.
45084 (grub_video_vbe_unmap_color): Likewise.
45085 (grub_video_vbe_fill_rect): Likewise.
45086 (grub_video_vbe_blit_glyph): Likewise.
45087 (grub_video_vbe_blit_bitmap): Likewise.
45088 (grub_video_vbe_blit_render_target): Likewise.
45089 (grub_video_vbe_scroll): Likewise.
45090 (grub_video_vbe_swap_buffers): Likewise.
45091 (grub_video_vbe_create_render_target): Likewise.
45092 (grub_video_vbe_delete_render_target): Likewise.
45093 (grub_video_vbe_set_active_render_target): Likewise.
45094 (grub_vbe_set_pixel_rgb): Remove function.
45095 (grub_vbe_set_pixel_index): Likewise.
45096 (index_color_mode): Remove static variable.
45097 (active_mode): Likewise.
45098 (framebuffer): Likewise.
45099 (bytes_per_scan_line): Likewise.
45100 (grub_video_vbe_adapter): Added new static variable.
45101 (framebuffer): Likewise.
45102 (render_target): Likewise.
45103 (initial_mode): Likewise.
45104 (mode_in_use): Likewise.
45105 (mode_list): Likewise.
45106
5f97350b 451072006-03-10 Marco Gerards <marco@gnu.org>
45108
45109 * configure.ac (AC_INIT): Bumped to 1.93.
45110
45111 * DISTLIST: Added `include/grub/hfs.h'.
45112
a3c5c6f8 451132006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
45114
45115 * boot/i386/pc/boot.S (general_error): Before looping, try INT
45116 18H, which might help the BIOS falling back to next boot media.
45117
6de53d26 451182006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
45119
45120 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
45121 Poe Chen <poe.poechen@gmail.com>.
45122
77c4a393 451232006-01-17 Marco Gerards <marco@gnu.org>
45124
45125 * include/grub/normal.h: Include <grub/script.h>.
45126 (grub_command_list): Removed struct.
45127 (grub_command_list_t): Removed type.
45128 (grub_menu_entry): Remove members `num' and `command_list'. Add
45129 members `commands' and `sourcecode'.
45130 * include/grub/script.h: Add inclusion guards.
45131 (grub_script_cmd_menuentry): New struct.
45132 (grub_script_execute_menuentry): New prototype.
45133 (grub_script_lexer_record_start): Likewise.
45134 (grub_script_lexer_record_stop): Likewise.
45135 * normal/execute.c (grub_script_execute_menuentry): New function.
45136 * normal/lexer.c (record, recording, recordpos, recordlen): New
45137 variables.
45138 (grub_script_lexer_record_start): New function.
45139 (grub_script_lexer_record_stop): Likewise.
45140 (recordchar): Likewise.
45141 (nextchar): Likewise.
45142 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
45143 2048 as the buffer size. Add the tokens `menuentry' and `@'.
45144 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
45145 (current_menu): New variable.
45146 (free_menu): Mainly rewritten.
45147 (grub_normal_menu_addentry): New function.
45148 (read_config_file): Rewritten.
45149 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 45150 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 45151 the menu entry.
45152 (run): Mainly rewritten.
45153 * normal/parser.y (menu_entry): New variable.
45154 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45155 (menuentry): New rule.
45156 (command): Add `menuentry'.
45157 (if_statement): Allow additional returns before `fi'.
45158 * normal/script.c (grub_script_create_cmdmenu): New function.
45159
144f1f98 451602006-01-03 Marco Gerards <marco@gnu.org>
45161
45162 * INSTALL: GNU Bison is required.
45163 * configure.ac: Rewritten the test to detect Bison.
45164 * Makefile.in (YACC): New variable. Reported by Xun Sun
45165 <xun.sun.cn@gmail.com>.
45166
af4b2d89 451672006-01-03 Marco Gerards <marco@gnu.org>
45168
45169 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45170 the HFS+ filesystem to filesystem blocks.
45171 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45172 GCC warning is silenced.
45173
15643b71 451742006-01-03 Marco Gerards <marco@gnu.org>
45175
45176 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45177 read from disk from big endian to host byte order.
45178
00905879 451792006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45180
45181 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45182 documentation.
45183 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45184 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45185 embedded HFS+ filesystem.
45186 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45187 (grub_hfs_sblock): Move from here...
45188 * include/grub/hfs.h: To here... New file.
45189 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45190 documentation.
45191 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45192 New macros.
45193 (grub_hfsplus_volheader): Change type of member `magic' to
45194 `grub_uint16_t'.
45195 (grub_hfsplus_data): Add new member `embedded_offset'.
45196 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45197 returned block.
45198 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45199 Calculate the offset.
45200
8899bc3e 452012005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45202
45203 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45204 Removed.
45205 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45206
ae8c0277 452072005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45208
45209 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45210 ENV->NAME is NULL after allocating ENV->VALUE.
45211
07084456 452122005-12-25 Marco Gerards <marco@gnu.org>
45213
45214 * kern/env.c (grub_env_set): Rewritten the error handling code.
45215
4750f5f1 452162005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45217
45218 * geninit.sh: Made more robust, and more portable.
45219
50214199 452202005-12-25 Marco Gerards <marco@gnu.org>
45221
45222 Add support for Apple HFS+ filesystems.
f19dbdb7 45223
50214199 45224 * fs/hfsplus.c: New file.
45225
45226 * DISTLIST: Added `fs/hfsplus.c'.
45227
45228 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45229 (hfsplus_mod_SOURCES): New variable.
45230 (hfsplus_mod_CFLAGS): Likewise.
45231 (hfsplus_mod_LDFLAGS): Likewise.
45232 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45233 (grub_setup_SOURCES): Likewise.
45234 (grub_mkdevicemap_SOURCES): Likewise.
45235 (grub_emu_SOURCES): Likewise.
45236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45237
45238 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45239
45240 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45241
befaed6c 452422005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45243
45244 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45245 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45246 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45247 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45248 normal/lexer.c, normal/parser.y, normal/script.c, and
45249 partmap/gpt.c.
45250 Removed kern/sparc64/cache.c.
45251
45252 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45253 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45254 grub_emu_init.c.
45255
45256 * configure.ac (AC_INIT): Bumped to 1.92.
45257
6a124103 452582005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45259
45260 * kern/err.c (grub_error_push): Added new function to support error
45261 stacks.
45262 (grub_error_pop): Likewise.
45263 (grub_error_stack_items): New local variable to support error stacks.
45264 (grub_error_stack_pos): Likewise.
45265 (grub_error_stack_assert): Likewise.
45266 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45267 stack depth.
45268 (grub_print_error): Added support to print errors from error stack.
45269
45270 * include/grub/err.h (grub_error_push): Added function prototype.
45271 (grub_error_pop): Likewise.
45272
be973c1b 452732005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45274
45275 * configure.ac: Accept `powerpc64' as host_cpu.
45276 (amd64): Rename to `biarch32'.
45277
45278 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45279 non-cacheline-aligned addresses.
45280
45281 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45282 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45283 if `size' is non-zero.
45284
b04216ab 452852005-12-03 Marco Gerards <mgerards@xs4all.nl>
45286
45287 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45288 and `cd' to make sure the filename is not prefixed with a
45289 directory name.
45290 (pkgdata_MODULES): Add `gpt.mod'.
45291 (gpt_mod_SOURCES): New variable.
45292 (gpt_mod_CFLAGS): Likewise.
45293 (gpt_mod_LDFLAGS): Likewise.
45294
45295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45296
45297 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45298 New macro.
45299
45300 * partmap/gpt.c: New file.
45301
45302 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45303 GPT partition map is detected.
45304
41730ed9 453052005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45306
45307 * commands/i386/pc/play.c: New file.
45308 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45309 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45310 macros.
f19dbdb7 45311
95dc3643 453122005-11-27 Marco Gerards <mgerards@xs4all.nl>
45313
45314 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45315 ((unused))' to silence gcc warning.
45316
1569ec51 453172005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45318
45319 * configure.ac: Correct `AC_PROG_YACC' test.
45320
9abde152 453212005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45322
45323 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45324 check before installing files.
45325
44b83271 453262005-11-22 Mike Small <smallm@panix.com>
45327
45328 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45329 number regex so multidigit numbers are recognized correctly.
45330
453312005-11-22 Mike Small <smallm@panix.com>
45332
45333 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45334 debugging message before attempting to claim memory.
45335 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45336 multiple addresses in case of failure.
45337
9c12956b 453382005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45339
45340 * term/tparm.c (get_space): Remove empty `if' statement.
45341
45342 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45343
45344 * kern/parser.c (check_varstate): Rename `state' to 's'.
45345
aeaf81d9 453462005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45347
45348 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45349 variable definitions to the beginning of each function. Sort stack
45350 variables by size.
45351 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45352 `buf' argument to `char *'.
45353
79bbb63f 453542005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45355
45356 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45357 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45358 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 45359 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45360 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45361 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45362 configfile.mod, search.mod, gzio.mod and test.mod.
45363 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45364 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45365 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45366 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45367 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45368 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45369 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45370 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45371 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45372 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45373 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45374 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45375 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45376 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45377 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45378 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45379 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45380 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45381 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45382 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45383 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45384 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45385 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45386
45387 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45388 `grep --include'.
45389 (pkgdata_MODULES): Add test.mod.
45390
233b1628 453912005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45392
45393 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45394 appending to variables with "+=".
45395 (PModule): Use full pathname to generate *.lst filenames.
45396
45397 * Makefile.in: Fixed list rules moved from genmk.rb.
45398 (.DELETE_ON_ERROR): New special target.
45399 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45400
45401 * conf/i386-pc.rmk: Include conf/common.mk.
45402 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45403 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 45404 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45405 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45406 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45407 configfile.mod, search.mod, gzio.mod and test.mod.
45408 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45409 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45410 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45411 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45412 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45413 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45414 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45415 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45416 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45417 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45418 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45419 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45420 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45421 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45422 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45423 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45424 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45425 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45426 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45427 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45428 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45429 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45430 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45431 here...
45432 * conf/common.rmk: ... to here. New file.
45433
45434 * conf/common.mk: New file.
45435
16f820c8 454362005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45437
45438 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45439 (grub_script.tab.c): ... here.
45440
45441 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
45442 (grub_script.tab.c): ... here.
45443
45444 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
45445 (grub_script.tab.c): ... here.
45446
45447 * normal/command.c (grub_command_find): Fixed a memory leak of
45448 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
45449
63ba1554 454502005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45451
45452 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
45453 "@" which marks the start of a comment on ARM.
45454 (VARIABLE): Likewise.
45455
7f67dc13 454562005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45457
79bbb63f 45458 Add support for Linux/ADFS partition tables.
7f67dc13 45459
45460 * partmap/acorn.c: New file.
45461
45462 * include/grub/acorn_filecore.h: Likewise.
45463
45464 * DISTLIST: Added `partmap/acorn.c' and
45465 `include/grub/acorn_filecore.h'.
f19dbdb7 45466
7f67dc13 45467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45468 `partmap/acorn.c'.
45469 (pkgdata_MODULES): Add `acorn.mod'.
45470 (acorn_mod_SOURCES): New variable.
45471 (acorn_mod_CFLAGS): Likewise.
45472
45473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45474 `partmap/acorn.c'.
45475 (pkgdata_MODULES): Add `acorn.mod'.
45476 (acorn_mod_SOURCES): New variable.
45477 (acorn_mod_CFLAGS): Likewise.
45478
45479 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
45480 (pkgdata_MODULES): Add `acorn.mod'.
45481 (acorn_mod_SOURCES): New variable.
45482 (acorn_mod_CFLAGS): Likewise.
45483 (acorn_mod_LDFLAGS): Likewise.
45484
45485 * include/types.h (grub_disk_addr_t): New typedef.
45486
6d099807 454872005-11-13 Marco Gerards <mgerards@xs4all.nl>
45488
45489 * geninit.sh: New file.
45490
45491 * geninitheader.sh: Likewise.
45492
45493 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
45494 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
45495 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
45496 * commands/configfile.c (grub_configfile_init)
45497 (grub_configfile_fini): Likewise.
45498 * commands/default.c (grub_default_init, grub_default_fini):
45499 Likewise.
45500 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
45501 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
45502 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
45503 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
45504 Likewise.
45505 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
45506 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
45507 Likewise.
45508 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 45509 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 45510 Likewise.
45511 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
45512 Likewise.
fe6b695a 45513 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 45514 Likewise.
45515 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
45516 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
45517 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
45518 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
45519 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
45520 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
45521 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
45522 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
45523 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
45524 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
45525 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
45526 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
45527 * partmap/amiga.c (grub_amiga_partition_map_init)
45528 (grub_amiga_partition_map_fini): Likewise.
45529 * partmap/apple.c (grub_apple_partition_map_init)
45530 (grub_apple_partition_map_fini): Likewise.
45531 * partmap/pc.c (grub_pc_partition_map_init)
45532 (grub_pc_partition_map_fini): Likewise.
45533 * partmap/sun.c (grub_sun_partition_map_init,
45534 grub_sun_partition_map_fini): Likewise.
45535 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
45536 Likewise.
45537
45538 * util/grub-emu.c: Include <grub_modules_init.h>.
45539 (main): Don't initialize and de-initialize any modules directly,
45540 use `grub_init_all' and `grub_fini_all' instead.
45541
45542 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
45543 `grub_vesafb_mod_init'.
45544 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
45545 all users.
45546 * term/i386/pc/vga.c (grub_vga_init): Renamed to
45547 `grub_vga_mod_init'. Updated all users.
45548 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 45549
6d099807 45550 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
45551 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
45552 rules.
45553
45554 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
45555 Generate a function to initialize the module in utilities.
45556 Updated all callers.
45557 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
45558 initialize the module in utilities. Updated all callers.
45559
9046bcf0 455602005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45561
45562 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
45563 escape sequence and a literal ^L to clear the screen.
45564
45565 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
45566 when returning from Open Firmware.
45567
d13ea639 455682005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45569
45570 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
45571 (grub_ofconsole_height): Likewise.
45572 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
45573 manually insert a '\n'.
45574 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
45575 `grub_ofconsole_height'. Return early if these are already set.
45576
a8fcf206 455772005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
45578
45579 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45580 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
45581 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
45582 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
45583 and `normal/script.c'.
45584 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45585 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45586 (test_mod_SOURCES): New variable.
45587 (test_mod_CFLAGS): Likewise.
45588 (test_mod_LDFLAGS): Likewise.
45589 (pkgdata_MODULES): Add `test.mod'.
45590 (grub_script.tab.c): New rule.
45591 (grub_script.tab.h): Likewise.
45592
b6b32745 455932005-11-07 Marco Gerards <mgerards@xs4all.nl>
45594
45595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45596 `commands/test.c', `normal/execute.c', `normal/lexer.c',
45597 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45598 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45599 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45600 (test_mod_SOURCES): New variable.
45601 (test_mod_CFLAGS): Likewise.
45602 (pkgdata_MODULES): Add `test.mod'.
45603 (grub_script.tab.c): New rule.
45604 (grub_script.tab.h): Likewise.
45605
daac212a 456062005-11-06 Marco Gerards <mgerards@xs4all.nl>
45607
45608 Add initial scripting support.
45609
45610 * commands/test.c: New file.
45611 * include/grub/script.h: Likewise.
45612 * normal/execute.c: Likewise.
45613 * normal/function.c: Likewise.
45614 * normal/lexer.c: Likewise.
45615 * normal/parser.y: Likewise.
45616 * normal/script.c: Likewise.
45617
45618 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 45619
daac212a 45620 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
45621 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
45622 `normal/function.c' and `normal/script.c'.
45623 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45624 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 45625 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
45626 variables.
daac212a 45627 (pkgdata_MODULES): Add `test.mod'.
45628 (grub_script.tab.c): New rule.
45629 (grub_script.tab.h): Likewise.
45630
45631 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
45632
45633 * include/grub/normal.h (grub_test_init): New prototype.
45634 (grub_test_fini): Likewise.
f19dbdb7 45635
daac212a 45636 * normal/command.c: Include <grub/script.h>.
45637 (grub_command_execute): Rewritten.
f19dbdb7 45638
daac212a 45639 * util/grub-emu.c (main): Call `grub_test_init' and
45640 `grub_test_fini'.
45641
77500b2b 456422005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45643
45644 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
45645 to 0.
45646 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
45647 there are no pending characters.
45648
e45deb9e 456492005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45650
45651 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
45652 `grub_strndup' to drop device arguments. Replace unnecessary
45653 `grub_strndup' with `grub_strdup'.
45654
4ce32619 456552005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45656
45657 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
45658 `debug' environment variable has been set.
45659
456602005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 45661
4ce32619 45662 * Makefile.in (install-local): Use $(DATA).
45663 (uninstall): Likewise.
45664 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
45665 (sbin_UTILITIES): ... to here.
45666 (sbin_SCRIPTS): New variable.
45667 (grub_install_SOURCES): New variable.
45668 * util/powerpc/ieee1275/grub-install.in: New file.
45669 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
45670 variable.
45671 (add_segments): Call `grub_util_get_path'.
45672
25fe6f03 456732005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45674
45675 From Timothy Baldwin:
45676 * commands/ls.c (grub_ls_list_files): Close FILE with
45677 grub_file_close.
45678 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
45679
04ccf3ec 456802005-10-24 Marco Gerards <mgerards@xs4all.nl>
45681
45682 * include/grub/parser.h: New file.
45683
45684 * kern/parser.c: Likewise.
45685
45686 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
45687 (grub_setup_SOURCES): Likewise.
45688 (grub_probefs_SOURCES): Likewise.
45689 (grub_emu_SOURCES): Likewise.
45690 (kernel_img_HEADERS): Add `parser.h'.
45691
45692 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45693 (grub_emu_SOURCES): Add `kern/parser.c'.
45694 (grubof_SOURCES): Likewise.
45695
45696 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45697 (grubof_SOURCES): Add `kern/parser.c'.
45698
45699 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
45700
45701 * kern/misc.c (grub_split_cmdline): Removed function.
45702
45703 * kern/rescue.c: Include <grub/parser.h>.
45704 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
45705 of `grub_split_cmdline'.
45706
45707 * normal/command.c: Include <grub/parser.h>.
45708 (grub_command_execute): Use `grub_parser_split_cmdline' instead
45709 of `grub_split_cmdline'.
45710
45711 * normal/completion.c: Include <grub/parser.h>.
45712 (cmdline_state): New variable.
45713 (iterate_dir): End the filename with a quote depending on the
45714 command line state.
45715 (get_state): new function.
45716 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
45717 split the arguments and determine the current argument. When the
45718 argument string is not quoted, escape all spaces.
45719
6d8f4b0e 457202005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45721
45722 * normal/sparc64/setjmp.S: New file.
45723
15cf03ed 457242005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45725
45726 * include/grub/sparc64/libgcc.h: New file.
45727 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
45728 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
45729 normal/sparc64/setjmp.c.
45730
03e8661a 457312005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45732
45733 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
45734 * kern/sparc64/cache.S: New file.
45735 * kern/sparc64/cache.c: Removed.
45736 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
45737 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
45738 -mtune=ultrasparc.
45739 (COMMON_LDFLAGS): Add -melf64_sparc.
45740 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
45741 (grubof_SOURCES): Use cache.S instead of cache.c.
45742 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
45743 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
45744 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
45745 commented though.
45746 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
45747 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
45748 (linux_mod_CFLAGS): Commented out.
45749 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
45750 out because module isn't built.
45751 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
45752 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
45753 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
45754 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
45755 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
45756 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45757 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45758 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
45759 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
45760 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
45761 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45762 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45763 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
45764 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
45765
34eeec8a 457662005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
45767
45768 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
45769 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
45770 longer, because HFS should not be used on PC.
45771
708367a3 457722005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45773
45774 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
45775 consistently within the loop.
45776
6fa1251a 457772005-10-15 Marco Gerards <mgerards@xs4all.nl>
45778
45779 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
45780 directory can not be read.
45781
4801580b 457822005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45783
45784 * configure.ac (AC_INIT): Increase the version number to 1.91.
45785
45786 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
45787 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
45788 term/i386/pc/serial.c.
45789
219ad426 457902005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45791
45792 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
45793 file size must be permitted.
45794
45795 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
45796 between %ah and %al.
45797
688e5699 457982005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45799
45800 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
45801 grub_uint64_t.
45802 Call the hook with a NUL-terminated filename.
45803 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
45804 grub_cpu_to_be32.
45805
45806 * kern/term.c (cursor_state): New variable.
45807 (grub_term_set_current): Reset the cursor state on a new
45808 terminal.
45809 (grub_setcursor): Rewritten to use CURSOR_STATE.
45810 (grub_getcursor): New function.
45811
45812 * include/grub/term.h (grub_getcursor): New prototype.
45813
45814 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
45815 integers on ARM. Reported by Timothy Baldwin
45816 <T.E.Baldwin99@members.leeds.ac.uk>.
45817
bb34586c 458182005-10-11 Marco Gerards <mgerards@xs4all.nl>
45819
45820 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
45821 allocated.
45822 (grub_sfs_dir): Likewise.
45823
9a909877 458242005-10-09 Marco Gerards <mgerards@xs4all.nl>
45825
45826 Add support for the SFS filesystem.
45827
45828 * fs/sfs.c: New file.
45829
45830 * DISTLIST: Added `fs/sfs.c'.
45831
45832 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
45833 (grub_probefs_SOURCES): Likewise.
45834 (grub_emu_SOURCES): Likewise.
45835 (pkgdata_MODULES): Add `sfs.mod'.
45836 (sfs_mod_SOURCES): New variable.
45837 (sfs_mod_CFLAGS): Likewise.
45838 (sfs_mod_LDFLAGS): Likewise.
45839
45840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
45841 (pkgdata_MODULES): Add `sfs.mod'.
45842 (sfs_mod_SOURCES): New variable.
45843 (sfs_mod_CFLAGS): Likewise.
45844
45845 * util/grub-emu.c (main): Call `grub_sfs_init' and
45846 `grub_sfs_fini'.
45847
45848 * include/grub/fs.h (grub_sfs_init): New prototype.
45849 (grub_sfs_fini): Likewise.
45850
57bdbde3 458512005-10-07 Marco Gerards <mgerards@xs4all.nl>
45852
45853 Add support for the AFFS filesystem.
45854
45855 * fs/affs.c: New file.
45856
45857 * DISTLIST: Added `fs/affs.c'.
45858
45859 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
45860 (grub_probefs_SOURCES): Likewise.
45861 (grub_emu_SOURCES): Likewise.
45862 (pkgdata_MODULES): Add `affs.mod'.
45863 (affs_mod_SOURCES): New variable.
45864 (affs_mod_CFLAGS): Likewise.
45865 (affs_mod_LDFLAGS): Likewise.
45866
45867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
45868 (pkgdata_MODULES): Add `affs.mod'.
45869 (affs_mod_SOURCES): New variable.
45870 (affs_mod_CFLAGS): Likewise.
45871
45872 * util/grub-emu.c (main): Call `grub_affs_init' and
45873 `grub_affs_fini'.
45874
45875 * include/grub/fs.h (grub_affs_init): New prototype.
45876 (grub_affs_fini): Likewise.
45877
047b67e0 458782005-10-01 Marco Gerards <mgerards@xs4all.nl>
45879
45880 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
45881
59b8208a 458822005-10-01 Marco Gerards <mgerards@xs4all.nl>
45883
45884 * configure.ac: Accept `x86_64' as host_cpu. In that case add
45885 `-m32' to CFLAGS.
45886
45887 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
45888 linking.
f19dbdb7 45889
59b8208a 45890 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
45891 (COMMON_LDFLAGS): New variable.
45892 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
45893 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
45894 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
45895 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
45896 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
45897 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
45898 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
45899 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
45900 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
45901 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
45902 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45903 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45904 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
45905 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
45906 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
45907 variables.
45908 (normal_mod_ASFLAGS): Add `-m32'.
45909
45910 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
45911 (grub_host_size_t, grub_host_ssize_t): New types.
45912 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 45913 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 45914 `GRUB_HOST_SIZEOF_VOID_P'.
45915
45916 * include/grub/kernel.h (struct grub_module_header): Type of
45917 member offset changed to `grub_host_off_t'. Type of member size
45918 changed to `grub_host_size_t'.
45919 (struct grub_module_info): Type of member offset changed to
45920 `grub_host_off_t'. Type of member size changed to
45921 `grub_host_size_t'.
45922
b4093103 459232005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
45924
45925 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 45926
b4093103 45927 * kern/i386/pc/startup.S (multiboot_header): New label.
45928 (multiboot_entry): Likewise.
45929 (multiboot_trampoline): Likewise.
45930
45931 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45932 Increased to 0x4A0.
45933
45934 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
45935 put parentheses after a question mark.
45936 [!GRUB_UTIL] (my_mod): New variable.
45937
45938 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
45939
b2499b29 459402005-09-28 Marco Gerards <mgerards@xs4all.nl>
45941
45942 Adds support for the XFS filesystem. Btrees are not supported
45943 yet.
45944
45945 * fs/xfs.c: New file.
45946
45947 * DISTLIST: Added `fs/xfs.c'.
45948
45949 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
45950 (grub_probefs_SOURCES): Likewise.
45951 (grub_emu_SOURCES): Likewise.
45952 (pkgdata_MODULES): Add `xfs.mod'.
45953 (xfs_mod_SOURCES): New variable.
45954 (xfs_mod_CFLAGS): Likewise.
45955
45956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
45957 (pkgdata_MODULES): Add `xfs.mod'.
45958 (xfs_mod_SOURCES): New variable.
45959 (xfs_mod_CFLAGS): Likewise.
45960
45961 * util/grub-emu.c (main): Call `grub_xfs_init' and
45962 `grub_xfs_fini'.
45963
45964 * include/grub/fs.h (grub_xfs_init): New prototype.
45965 (grub_xfs_fini): Likewise.
45966
f19dbdb7 45967
83d37a62 459682005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45969
45970 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45971 color modes, allow greater than 16 colors to be configured as
45972 a default palette.
45973
47d2d65e 459742005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45975
45976 * normal/completion.c (complete_arguments): Add the qualifier
45977 const into OPTIONS.
45978
45979 From Omniflux <omniflux+lists@omniflux.com>:
45980 * include/grub/terminfo.h: New file.
45981 * include/grub/tparm.h: Likewise.
45982 * include/grub/i386/pc/serial.h: Likewise.
45983 * term/terminfo.c: Likewise.
45984 * term/tparm.c: Likewise.
45985 * term/i386/pc/serial.c: Likewise.
45986 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45987 serial.mod.
45988 (terminfo_mod_SOURCES): New variable.
45989 (terminfo_mod_CFLAGS): Likewise.
45990 (serial_mod_SOURCES): Likewise.
45991 (serial_mod_CFLAGS): Likewise.
45992
48b671ff 459932005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45994
45995 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45996 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45997 and kern/powerpc/ieee1275/cmain.c, respectively.
45998
45999 * boot/powerpc/ieee1275/crt0.S: Moved to ...
46000 * kern/powerpc/ieee1275/crt0.S: ... here.
46001
46002 * boot/powerpc/ieee1275/cmain.c: Moved to ...
46003 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 46004
48b671ff 46005 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
46006 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
46007 instead of boot/powerpc/ieee1275/crt0.S and
46008 boot/powerpc/ieee1275/cmain.c, respectively.
46009
46010 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
46011 sectors. It was not used anyway.
46012
09fc77a7 460132005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46014
46015 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
46016 `unused parameter' warning.
46017
003789c7 460182005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46019
46020 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
46021 function.
46022 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
46023 getcharwidth.
46024
67f44c86 460252005-08-28 Marco Gerards <metgerards@student.han.nl>
46026
46027 * include/grub/normal.h (enum grub_completion_type): Added
46028 `GRUB_COMPLETION_TYPE_ARGUMENT'.
46029
46030 * normal/cmdline.c (print_completion): Handle
46031 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
46032 * normal/menu_entry.c (store_completion): Likewise.
46033
46034 * normal/completion.c (complete_arguments): New function.
46035 (grub_normal_do_completion): Call `complete_arguments' when the
46036 current words start with a dash.
46037
0b5abe02 460382005-08-27 Marco Gerards <metgerards@student.han.nl>
46039
46040 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
46041 `gzio.mod' instead of `io.mod').
46042
d9864ee1 460432005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
46044
46045 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
46046 (DISTDIRS): Added io and video.
46047 Rewrite the search routine to make an output consistently.
46048
46049 * DISTLIST: Added conf/sparc64-ieee1275.mk,
46050 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
46051 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
46052 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
46053 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
46054 util/powerpc/ieee1275/misc.c.
f19dbdb7 46055
d9864ee1 46056 * include/grub/gzio.h: New file.
46057 * io/gzio.c: Likewise.
f19dbdb7 46058
d9864ee1 46059 * kern/file.c (grub_file_close): Call grub_device_close only if
46060 FILE->DEVICE is not NULL.
46061
46062 * include/grub/mm.h [!NULL] (NULL): New macro.
46063
46064 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
46065
46066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
46067 (pkgdata_MODULES): Added gzio.mod.
46068 (gzio_mod_SOURCES): New variable.
46069 (gzio_mod_CFLAGS): Likewise.
46070
46071 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
46072 (pkgdata_MODULES): Added gzio.mod.
46073 (gzio_mod_SOURCES): New variable.
46074 (gzio_mod_CFLAGS): Likewise.
46075
46076 * commands/cat.c: Include grub/gzio.h.
46077 (grub_cmd_cat): Use grub_gzfile_open instead of
46078 grub_file_open.
f19dbdb7 46079
d9864ee1 46080 * commands/cmp.c: Include grub/gzio.h.
46081 (grub_cmd_cmp): Use grub_gzfile_open instead of
46082 grub_file_open.
46083
46084 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
46085 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
46086 grub_file_open.
46087 (grub_rescue_cmd_module): Likewise.
46088
fa46f4b5 460892005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46090
46091 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
46092 kern/sparc64/ieee1275/init.c because it contains _start.
46093 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
46094
e9211b5d 460952005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46096
46097 * configure.ac: Add support for sparc64 host with ieee1275
46098 firmware.
46099 * configure: Generated from configure.ac.
46100 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
46101 instead of int.
46102 (grub_ofdisk_read): Likewise.
46103 (grub_ofdisk_open): Use %p to print pointer values, and cast the
46104 pointers as (void *) to remove a warning.
46105 (grub_ofdisk_close): Likewise.
46106 (grub_ofdisk_read): Likewise.
46107 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
46108 returns, so make it return void to remove a warning.
46109 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
46110 Corresponding prototype change.
46111 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
46112 values, and cast the pointers as (void *) to remove a warning.
46113 (grub_mm_dump): Likewise.
46114 * conf/sparc64-ieee1275.mk: New file.
46115 * conf/sparc64-ieee1275.rmk: Likewise.
46116 * include/grub/sparc64/setjmp.h: Likewise.
46117 * include/grub/sparc64/types.h: Likewise.
46118 * include/grub/sparc64/ieee1275/console.h: Likewise.
46119 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46120 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46121 * include/grub/sparc64/ieee1275/time.h: Likewise.
46122 * kern/sparc64/cache.c: Likewise.
46123 * kern/sparc64/dl.c: Likewise.
46124 * kern/sparc64/ieee1275/init.c: Likewise.
46125 * kern/sparc64/ieee1275/openfw.c: Likewise.
46126
385c6a92 461272005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46128
46129 * util/console.c (grub_ncurses_putchar): If C is greater than
46130 0x7f, set C to a question mark.
46131 (grub_ncurses_getcharwidth): New function.
46132 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
46133 getcharwidth.
46134
46135 * normal/menu.c (print_entry): Made aware of Unicode. First,
46136 convert TITLE to UCS-4, and predict the cursor position by
46137 grub_getcharwidth.
46138
46139 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
46140 const to SRC.
46141 * kern/misc.c (grub_utf16_to_utf8): Likewise.
46142
16ccb8b1 461432005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46144
46145 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
46146 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46147 grub_strcat.
46148
46149 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
46150 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46151 grub_strcpy and grub_strlen. Take it into account that a space
46152 character is inserted as a delimiter.
46153
6a85ce79 461542005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46155
46156 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 46157 invalid magic in the error.
6a85ce79 46158
46159 * commands/search.c: New file.
f19dbdb7 46160
6a85ce79 46161 * util/grub-emu.c (main): Call grub_search_init and
46162 grub_search_fini.
46163
46164 * kern/rescue.c (grub_rescue_print_disks): Removed.
46165 (grub_rescue_print_devices): New function.
46166 (grub_rescue_cmd_ls): Use grub_device_iterate with
46167 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46168 grub_rescue_print_disks.
46169
46170 * kern/partition.c (grub_partition_iterate): Return the result of
46171 PARTMAP->ITERATE instead of GRUB_ERRNO.
46172
46173 * kern/device.c: Include grub/partition.h.
46174 (grub_device_iterate): New function.
46175
46176 * include/grub/partition.h (grub_partition_iterate): Return int
46177 instead of grub_err_t.
46178
46179 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46180 prototype.
46181 [GRUB_UTIL] (grub_search_fini): Likewise.
46182
46183 * include/grub/device.h (grub_device_iterate): New prototype.
46184
46185 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46186 commands/search.c.
46187 (pkgdata_MODULES): Added search.mod.
46188 (search_mod_SOURCES): New variable.
46189 (search_mod_CFLAGS): Likewise.
46190
46191 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46192 (pkgdata_MODULES): Added search.mod.
46193 (search_mod_SOURCES): New variable.
46194 (search_mod_CFLAGS): Likewise.
46195
46196 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46197 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46198 All callers changed.
46199
46200 * DISTLIST: Added commands/search.c.
46201
ef095434 462022005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46203
46204 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46205 conversion.
46206 (grub_getcharwidth): New function.
46207
46208 * kern/misc.c (grub_utf8_to_ucs4): New function.
46209
46210 * include/grub/term.h (struct grub_term): Added a new member
46211 "getcharwidth".
46212 (grub_getcharwidth): New prototype.
46213
46214 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46215
46216 * term/i386/pc/console.c (map_char): New function. Segregated from
46217 grub_console_putchar.
46218 (grub_console_putchar): Use map_char.
46219 (grub_console_getcharwidth): New function.
46220 (grub_console_term): Specified grub_console_getcharwidth as
46221 getcharwidth.
46222
46223 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46224 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46225
46226 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46227 GRUB_ERRNO.
46228 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46229 on grub_strtoul completely.
46230 (write_char): Declare local variables in the beginning of the
46231 function.
46232 (grub_vesafb_getcharwidth): New function.
46233 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46234 getcharwidth.
46235
1f0a95e4 462362005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46237
46238 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46239 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46240 commands/i386/pc/vbetest.c.
46241
46242 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46243 call grub_vbe_get_controller_info again, because the returned
46244 information is volatile.
46245 (grub_vbe_set_video_mode): Mostly rewritten.
46246 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46247 grub_vbe_status_t correctly.
46248 (grub_vbe_get_video_mode_info): Likewise.
46249 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46250 several if statements.
46251
46252 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46253 * commands/i386/pc/vbeinfo.c: ... this.
46254
46255 * commands/i386/pc/vbe_test.c: Renamed to ...
46256 * commands/i386/pc/vbetest.c: ... this.
46257
46258 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46259 ...
46260 (grub_cmd_vbeinfo): ... this. Save video modes before
46261 iterating. Skip a video mode, if it is not available, not enough
46262 information is given or it is monochrome. Show the memory
46263 model. Leave the interpretation of MODEVAR to grub_strtoul
46264 completely.
46265 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46266 (GRUB_MOD_FINI): Likewise.
46267
46268 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46269 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46270 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46271 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46272 grub_strtoul completely.
46273 (real2pm): Removed.
46274 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46275 (GRUB_MOD_FINI): Likewise.
46276
46277 * normal/misc.c: Include grub/mm.h.
46278
46279 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46280 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46281 (vbe_list_modes_mod_SOURCES): Removed.
46282 (vbe_list_modes_mod_CFLAGS): Likewise.
46283 (vbe_test_mod_SOURCES): Likewise.
46284 (vbe_test_mod_CFLAGS): Likewise.
46285 (vbeinfo_mod_SOURCES): New variable.
46286 (vbeinfo_mod_CFLAGS): Likewise.
46287 (vbetest_mod_SOURCES): Likewise.
46288 (vbetest_mod_CFLAGS): Likewise.
46289
992ffbbe 462902005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46291
46292 * normal/misc.c: New file.
46293
46294 * DISTLIST: Added normal/misc.c.
f19dbdb7 46295
992ffbbe 46296 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46297 DISK to HOOK. Call HOOK with DISK.
46298 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46299 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46300 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46301
46302 * normal/menu_entry.c (struct screen): Added a new member
46303 "completion_shown".
46304 (completion_buffer): New global variable.
46305 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46306 (store_completion): New function.
46307 (complete): Likewise.
46308 (clear_completions): Likewise.
46309 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46310 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46311 a tab, call complete.
46312
46313 * normal/completion.c (disk_dev): Removed.
46314 (print_simple_completion): Likewise.
46315 (print_partition_completion): Likewise.
46316 (print_func): New global variable.
46317 (add_completion): Do not take the arguments WHAT or PRINT any
46318 longer. Added a new argument TYPE. Instead of printing directly,
46319 call PRINT_FUNC if not NULL.
46320 All callers changed.
46321 (complete_device): Use a local variable DEV instead of
46322 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46323 (grub_normal_do_completion): Take a new argument HOOK. Do not
46324 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46325 empty string, return NULL instead.
46326 All callers changed.
46327
46328 * normal/cmdline.c (print_completion): New function.
46329
46330 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46331 to HOOK.
46332 All callers changed.
46333
46334 * kern/disk.c (grub_print_partinfo): Removed.
46335
46336 * include/grub/partition.h (struct grub_partition_map): Add a new
46337 argument DISK into HOOK of ITERATE.
46338 (grub_partition_iterate): Add a new argument DISK to HOOK.
46339
46340 * include/grub/normal.h (enum grub_completion_type): New enum.
46341 (grub_completion_type_t): New type.
46342 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46343 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46344 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46345 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46346 (grub_normal_do_completion): Added a new argument HOOK.
46347 (grub_normal_print_device_info): New prototype.
46348
46349 * include/grub/disk.h (grub_print_partinfo): Removed.
46350
46351 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46352 (normal_mod_SOURCES): Likewise.
46353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46354 (normal_mod_SOURCES): Likewise.
46355
46356 * commands/ls.c (grub_ls_list_disks): Use
46357 grub_normal_print_device_info instead of grub_print_partinfo. Free
46358 PNAME.
46359 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46360 duplicating the code.
46361
0bd41162 463622005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46363
46364 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 46365 follow GCS more precisely.
46366 * commands/i386/pc/vbe_test.c: Likewise.
46367 * include/grub/i386/pc/vbe.h: Likewise.
46368 * term/i386/pc/vesafb.c: Likewise.
46369 * video/i386/pc/vbe.c: Likewise.
0bd41162 46370
6323696a 463712005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46372
46373 * DISTLIST: Added term/i386/pc/vesafb.c
46374 DISTLIST: Added video/i386/pc/vbe.c
46375 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46376 DISTLIST: Added commands/i386/pc/vbe_test.c.
46377 * commands/i386/pc/vbe_list_modes.c: New file.
46378 * commands/i386/pc/vbe_test.c: Likewise.
46379 * term/i386/pc/vesafb.c: Likewise.
46380 * video/i386/pc/vbe.c: Likewise.
46381 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46382 (grub_vbe_probe) Added prototype.
46383 (grub_vbe_set_video_mode) Likewise.
46384 (grub_vbe_get_video_mode) Likewise.
46385 (grub_vbe_get_video_mode_info) Likewise.
46386 (grub_vbe_set_pixel_rgb) Likewise.
46387 (grub_vbe_set_pixel_index) Likewise.
46388 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46389 (pkgdata_MODULES): Added vesafb.mod.
46390 (pkgdata_MODULES): Added vbe_list_modes.mod.
46391 (pkgdata_MODULES): Added vbe_test.mod.
46392 (vbe_mod_SOURCES): Added.
46393 (vbe_mod_CFLAGS): Likewise.
46394 (vesafb_mod_SOURCES): Likewise.
46395 (vesafb_mod_CFLAGS): Likewise.
46396 (vbe_list_modes_mod_SOURCES): Likewise.
46397 (vbe_list_modes_mod_CFLAGS): Likewise.
46398 (vbe_test_mod_SOURCES): Likewise.
46399 (vbe_test_mod_CFLAGS): Likewise.
46400
0a74e62f 464012005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46402
0a74e62f 46403 * normal/command.c (grub_command_execute): If INTERACTIVE is
46404 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46405 CMDLINE. Disable the pager if INTERACTIVE is true.
46406 All callers are changed.
46407
46408 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46409 before reading a config file.
46410 * normal/main.c (read_config_file): Even if a command is not
46411 found, register it if it is within an entry.
46412
46413 * util/grub-emu.c: Include sys/types.h and unistd.h.
46414 (options): Added --hold.
46415 (struct arguments): Added a new member "hold".
46416 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46417 missing.
46418 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46419 cleared by a debugger, if it is not zero.
46420
46421 * include/grub/normal.h (grub_command_execute): Add an argument
46422 INTERACTIVE.
46423
e51f85ae 464242005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46425
46426 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46427
e9c6f39b 464282005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46429
46430 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46431 program with another one, because the old one didn't detect a bug
46432 in gcc-3.4. Always use regparm 2, because the new test is still
46433 not enough for gcc-4.0. Someone must investigate a simple test
46434 case which detects a bug in gcc-4.0.
46435
8de3495c 464362005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46437
46438 * DISTLIST: Added normal/completion.c.
46439
46440 * normal/completion.c: New file.
f19dbdb7 46441
8de3495c 46442 * term/i386/pc/console.c (grub_console_getwh): New function.
46443 (grub_console_term): Assign grub_console_getwh to getwh.
46444
46445 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
46446 function is defined in normal/completion.c as
46447 grub_normal_do_completion.
46448 (grub_cmdline_get): Use grub_normal_do_completion instead of
46449 grub_tab_complete.
46450
46451 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
46452 returns non-zero, otherwise return 0.
46453 (grub_partition_iterate): First, probe the partition map. Then,
46454 call ITERATE only for this partition map.
46455
46456 * kern/misc.c (grub_strncmp): Rewritten.
46457
46458 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
46459 returns non-zero. Otherwise return 0.
46460
46461 * include/grub/partition.h (grub_partition_map_iterate): Return
46462 int instead of void.
46463
46464 * include/grub/normal.h (grub_normal_do_completion): New prototype.
46465
46466 * include/grub/misc.h (grub_strncmp): Change the type of N to
46467 grub_size_t.
46468
46469 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
46470 of void.
46471
46472 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 46473 unsigned explicitly before comparing it with I.
8de3495c 46474
46475 * kern/main.c (grub_env_write_root): Add the attribute unused into
46476 VAR.
46477
46478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46479 normal/completion.c.
46480 (normal_mod_SOURCES): Likewise.
46481 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
46482 (normal_mod_SOURCES): Likewise.
46483
46484 * normal/command.c (grub_iterate_commands): If ITERATE returns
46485 non-zero, return one immediately.
46486
e85e144b 464872005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
46488
46489 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
46490 * kern/i386/pc/startup.S: Updated Global Descriptor table's
46491 descriptions.
46492 (grub_vbe_get_controller_info): New function.
46493 (grub_vbe_get_mode_info): Likewise.
46494 (grub_vbe_set_mode): Likewise.
46495 (grub_vbe_get_mode): Likewise.
46496 (grub_vbe_set_memory_window): Likewise.
46497 (grub_vbe_get_memory_window): Likewise.
46498 (grub_vbe_set_scanline_length): Likewise.
46499 (grub_vbe_get_scanline_length): Likewise.
46500 (grub_vbe_set_display_start): Likewise.
46501 (grub_vbe_get_display_start): Likewise.
46502 (grub_vbe_set_palette_data): Likewise.
46503 * include/grub/i386/pc/vbe.h: New file.
46504
c46153d2 465052005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46506
46507 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46508 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
46509 * DISTLIST: Likewise.
46510 * kern/ieee1275/of.c: Moved to ...
46511 * kern/ieee1275/ieee1275.c: ... here.
46512
0cb90c45 465132005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46514
46515 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
46516 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
46517 Pass 0 as `end' parameter to grub_strtoul().
46518
a19fb360 465192005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46520
46521 * include/grub/powerpc/ieee1275/console.h: Do not include
46522 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
46523 ifdef.
46524 (grub_console_cur_color): Remove i386-specific prototype.
46525 (grub_console_real_putchar): Likewise.
46526 (grub_console_checkkey): Likewise.
46527 (grub_console_getkey): Likewise.
46528 (grub_console_getxy): Likewise.
46529 (grub_console_gotoxy): Likewise.
46530 (grub_console_cls): Likewise.
46531 (grub_console_setcursor): Likewise.
46532 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
46533 Include <grub/machine/console.h>.
46534 * term/ieee1275/ofconsole.c: Likewise.
46535
4ac9bd04 465362005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
46537
46538 * Makefile.in (LIBLZO): New variable.
46539
46540 * configure.ac: Check for LZO version 2.
46541
46542 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
46543 lzo/lzo1x.h instead of lzo1x.h.
46544
46545 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
46546 of -llzo.
46547
46548 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
46549 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
46550
46551 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
46552 copying the data from PARTITION to P.
46553
f4917dfd 465542005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46555
46556 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
46557 negative, unload the module.
46558
46559 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
46560 map is "pc_partition_map" but not "pc".
46561 (usage): Fix the description. The options are --boot-image and
46562 --core-image but not --boot-file or --core-file.
46563 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
46564 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
46565 DEFAULT_DIRECTORY.
46566
46567 * util/i386/pc/grub-install.in: Do not specify --boot-file or
46568 --core-file. Specify INSTALL_DEVICE as an argument.
46569
46570 * util/console.c: Include config.h.
46571 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
46572 [HAVE_NCURSES_H]: Include ncurses.h.
46573 [HAVE_CURSES_H]: Include curses.h.
46574 [!A_NORMAL] (A_NORMAL): Defined as zero.
46575 [!A_STANDOUT] (A_STANDOUT): Likewise.
46576
46577 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
46578 -lncurses.
46579 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
46580
46581 * configure.ac: Check for curses libraries and headers.
46582
46583 * Makefile.in (LIBCURSES): New variable.
46584
46585 * genmk.rb (Script::rule): Set the executable bits.
46586
46587 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
46588 name of the PC partition map is "pc_partition_map" but not "pc".
46589
0e143073 465902005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46591
46592 * util/i386/pc/grub-install.in (grub_probefs): New variable.
46593 (modules): Likewise.
46594 (usage): Added descriptions for --modules and --grub-probefs.
46595 Handle --modules and --grub-probefs. Save the arguments in MODULES
46596 and GRUB_PROBEFS, respectively.
46597 Auto-detect a filesystem module against GRUBDIR. If the result is
46598 empty and modules are not specified explicitly, abort the
46599 installation. Add the result to MODULES.
46600
46601 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
46602 disk/powerpc/ieee1275/ofdisk.c,
46603 include/grub/powerpc/ieee1275/init.h and
46604 term/powerpc/ieee1275/ofconsole.c.
46605 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
46606 term/ieee1275/ofconsole.c.
46607
46608 * include/grub/powerpc/ieee1275/console.h: Resurrected.
46609
46610 * COPYING: Upgraded to the latest version. Only the address of the
46611 FSF office has changed.
f19dbdb7 46612
efd6e6d5 466132005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46614
46615 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46616 kern/ieee1275.c with kern/ieee1275/of.c.
46617
46618 * kern/ieee1275.c: Moved to ...
46619 * kern/ieee1275/of.c: ... here.
46620
8ceafda2 466212005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
46622
46623 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 46624 readability.
8ceafda2 46625
46626 * config.guess: Updated to the latest version from gnulib.
46627 * config.sub: Likewise.
46628 * install.sh: Likewise.
46629 * mkinstalldirs: Likewise.
46630
46631 * include/grub/console.h: Removed. This file is arch-specific. Do
46632 not put this in include/grub.
46633
46634 * include/grub/i386/pc/console.h: Resurrected.
46635
46636 * util/console.c: Include grub/machine/console.h instead of
46637 grub/console.h.
46638 * util/grub-emu.c: Likewise.
46639
267f6cd9 466402005-08-04 Marco Gerards <metgerards@student.han.nl>
46641
46642 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
46643 hardcoded value.
f19dbdb7 46644
267f6cd9 46645 From Vincent Pelletier <subdino2004@yahoo.fr>
46646 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
46647 Redefined to use grub_getwh.
46648 (grub_term): New member named getwh.
46649 (grub_getwh): New prototype.
46650 * kern/term.c (grub_getwh): New function.
46651 * term/i386/pc/console.c (grub_console_getwh): New function.
46652 (grub_console_term): New member `getwh'.
46653 * term/i386/pc/vga.c (grub_vga_getwh): New function.
46654 (grub_vga_term): New member `getwh'.
0b5abe02 46655 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 46656 grub_ssize_t.
46657 (grub_ofconsole_getw): New function.
46658 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
46659 (grub_ofconsole_term): New field named getwh and new initial
46660 value.
46661
3be7266d 466622005-08-03 Hollis Blanchard <hollis@penguinppc.org>
46663
46664 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
46665 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
46666 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
46667 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
46668 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
46669 of <grub/machine/ieee1275.h>.
46670 * commands/ieee1275/reboot.c: Likewise.
46671 * boot/powerpc/ieee1275/ieee1275.c: Move ...
46672 * kern/ieee1275.c: ... to here. All users updated. Change all
46673 parameter structs to use new type `grub_ieee1275_cell_t'.
46674 * term/powerpc/ieee1275/ofconsole.c: Move ...
46675 * term/ieee1275/ofconsole.c: ... to here. All users updated.
46676 * disk/powerpc/ieee1275/ofdisk.c: Move ...
46677 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
46678 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
46679 to return int.
46680 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
46681 Remove unused prototypes. All users updated.
46682 * include/grub/powerpc/ieee1275/console.h: Removed.
46683 * include/grub/powerpc/ieee1275/ieee1275.h: Define
46684 `grub_ieee1275_cell_t'.
46685 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
46686 Cast comparisons with -1 to the correct type.
46687 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
46688 type to match `grub_ieee1275_entry_fn'.
46689
8b5f3938 466902005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
46691
46692 * DISTLIST: Added util/i386/pc/grub-probefs.c.
46693
46694 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
46695 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
46696 partmap/sun.c.
46697 (grub_probefs_SOURCES): New variable.
46698
46699 * util/i386/pc/grub-probefs.c: New file.
46700
46701 * util/i386/pc/grub-setup.c (main): Call
46702 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
46703 grub_hfs_init and grub_jfs_init to initialize the system. Call
46704 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
46705 grub_pc_partition_map_fini to finish the system.
46706
ea409713 467072005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
46708
46709 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
46710 function.
46711 (grub_multiboot_load_elf32): Likewise.
46712 (grub_multiboot_is_elf64): Likewise.
46713 (grub_multiboot_load_elf64): Likewise.
46714 (grub_multiboot_load_elf): Likewise.
46715 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
46716 an ELF32 or ELF64 file.
46717 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
46718
46719 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
46720 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
46721 NULL before calling FS->LABEL.
46722 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
46723 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
46724 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
46725 before calling FS->LABEL.
46726
141a288b 467272005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
46728
46729 * util/i386/pc/grub-install.in (datadir): New variable.
46730 (libdir): Removed.
46731 (pkgdatadir): New variable.
46732 (pkglibdir): Removed.
46733
0d5f8a54 467342005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
46735
46736 * DISTLIST: Added util/i386/pc/grub-install.in.
46737
46738 * util/i386/pc/grub-install.in: New file.
46739
46740 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
46741 (grub_install_SOURCES): Likewise.
46742
46743 * genmk.rb: Added support for scripts.
46744 (Script): New class.
46745 (scripts): New variable.
46746
46747 * Makefile.in (install-local): Install sbin_SCRIPTS by
46748 INSTALL_SCRIPT.
46749 (uninstall): Remove sbin_SCRIPTS.
46750
46751 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
46752 device, try to get a GRUB device by
46753 grub_util_biosdisk_get_grub_dev.
46754 Free DEST_DEV.
46755
46756 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
46757 description for --device-map.
46758
5f968e1e 467592005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46760
46761 Change the semantics of variable hooks. They now return strings
46762 instead of error values.
f19dbdb7 46763
5f968e1e 46764 * util/i386/pc/grub-setup.c: Include grub/env.h.
46765 (setup): Use grub_device_set_root instead of grub_env_set.
46766
46767 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
46768 grub_env_get instead of grub_device_set_root and
46769 grub_device_get_root, respectively.
46770
46771 * kern/main.c (grub_env_write_root): New function.
46772 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
46773 grub_env_set instead of grub_device_set_root.
46774
46775 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
46776 many variables.
46777 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
46778 rather than calling ENV->WRITE_HOOK afterwards.
46779 (grub_env_get): Return the result of ENV->READ_HOOK rather than
46780 passing a pointer of a pointer.
46781 (grub_register_variable_hook): Change the types of "read_hook" and
46782 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
46783 respectively.
46784 Allocate the default empty string on the heap, because this string
46785 may be freed later.
46786
46787 * kern/device.c: Include grub/env.h.
46788 (grub_device_set_root): Removed.
46789 (grub_device_get_root): Likewise.
46790 (grub_device_open): Use grub_env_get instead of
46791 grub_device_get_root.
46792
46793 * include/grub/env.h (grub_env_read_hook_t): New type.
46794 (grub_env_write_hook_t): Likewise.
46795 (grub_env_var): Change the types of "read_hook" and "write_hook"
46796 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
46797 (grub_register_variable_hook): Likewise.
46798
46799 * include/grub/device.h (grub_device_set_root): Removed.
46800 (grub_device_set_root): Likewise.
46801
46802 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
46803 make sure that DIRNAME terminates with '/', so that
46804 grub_fat_find_dir will fail if PATH is not a directory.
46805
46806 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
46807 from DIRNAME.
46808 Use the qualifier auto for print_files and print_files_long.
46809 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
46810 as a regular file.
46811 Put a newline only if there is no error.
46812 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
46813 used.
46814
896f0afd 468152005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46816
46817 * kern/partition.c (grub_partition_probe): Initialize PART to
46818 NULL. Otherwise, when no partition map is registered, this returns
46819 a garbage.
46820
b28b81b2 468212005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
46822
46823 * partmap/apple.c (apple_partition_map_iterate): Check if POS
46824 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
46825 valid.
46826
5f3607e0 468272005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
46828
46829 * commands/ls.c (grub_ls_list_disks): Print the filesystem
46830 information on each device, if it does not have partitions. Print
46831 "Device" instead of "Disk", because this function is not specific
46832 to disk devices.
46833
46834 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
46835 static to ensure that it is put on the memory rather than a
46836 register.
46837
502c87e8 468382005-07-17 Yoshinori Okuji <okuji@enbug.org>
46839
46840 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
46841 (grub_cat_init): Likewise.
46842 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
46843 (options): Likewise.
46844 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
46845 (grub_configfile_init): Likewise.
46846 * font/manager.c (GRUB_MOD_INIT): Likewise.
46847 * commands/help.c (GRUB_MOD_INIT): Likewise.
46848 (grub_help_init): Likewise.
46849 * normal/command.c (grub_command_init): Likewise.
46850 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
46851 * disk/loopback.c (grub_loop_init): Likewise.
46852 (GRUB_MOD_INIT): Likewise.
46853 * commands/ls.c (grub_ls_init): Likewise.
46854 (GRUB_MOD_INIT): Likewise.
46855 (options): Likewise.
46856 * commands/boot.c (grub_boot_init): Likewise.
46857 (GRUB_MOD_INIT): Likewise.
46858 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
46859 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
46860 (GRUB_MOD_INIT): Likewise.
46861 * commands/cmp.c (grub_cmp_init): Likewise.
46862 (GRUB_MOD_INIT): Likewise.
46863
46864 * normal/arg.c: Use <> instead of "" to include header files.
46865 (SHORT_ARG_HELP): New macro.
46866 (SHORT_ARG_USAGE): Likewise.
46867 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
46868 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
46869 descriptions.
46870 (find_short): Check if C is 'h' or 'u' explicitly.
46871 (grub_arg_show_help): Use space characters instead of tabs. Treat
46872 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
46873 are shown with --help and --usage only if they are not used for
46874 the command itself.
46875 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
46876 'h' and 'u'.
46877
46878 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
46879 const into "longarg". Change the type of "shortarg" to int.
46880
f806d18e 468812005-07-17 Yoshinori Okuji <okuji@enbug.org>
46882
46883 * boot/i386/pc/boot.S (boot_drive_check): New label.
46884
46885 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
46886 macro.
46887
46888 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
46889 which do not pass a boot drive correctly. Copied from GRUB Legacy.
46890
e293232b 468912005-07-17 Yoshinori Okuji <okuji@enbug.org>
46892
46893 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
46894 When turning off Gate A20, skip the check and return immediately,
46895 because this is not fatal usually.
46896
ebedfd00 468972005-07-17 Yoshinori Okuji <okuji@enbug.org>
46898
46899 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
46900 be 0x7C00 instead of 0x8000.
46901
46902 * boot/i386/pc/pxeboot.S: Rewritten.
46903
46904 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
46905 EXT_C.
46906 (gate_a20_check_state): Read a byte from 0x108000. Invert the
46907 result.
46908
654fc59f 469092005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
46910
46911 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
46912 robustness. This routine now supports a BIOS call and System
46913 Control Port A to modify the gate A20.
46914
46915 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46916 Increased to 0x440.
46917
09f9923f 469182005-07-12 Hollis Blanchard <hollis@penguinppc.org>
46919
46920 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
46921 device path and resulting ihandle.
46922 (grub_ofdisk_close): dprintf the ihandle being closed.
46923 (grub_ofdisk_read): dprintf function parameters.
46924 * kern/mm.c (grub_mm_init_region): Likewise.
46925 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
46926 (grub_linux_boot): dprintf the Linux entry point, initrd address and
46927 size, and boot arguments.
46928 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
46929 before loading into memory.
46930 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
46931 before loading into memory.
46932
7ef504d8 469332005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
46934
46935 * kern/mm.c: Added much documentation.
46936 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
46937 8, set to 5 instead of 8.
46938
e0f050c2 469392005-07-10 Yoshinori Okuji <okuji@enbug.org>
46940
46941 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
46942
46943 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
46944 (grub_mkdevicemap_SOURCES): New variable.
46945
46946 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
46947 lib/device.c of GRUB Legacy.
46948
7224189a 469492005-07-10 Yoshinori Okuji <okuji@enbug.org>
46950
46951 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
46952 instead of PATH is NULL.
46953
68c864eb 469542005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
46955
46956 * commands/cmp.c (BUFFER_SIZE): New macro.
46957 (grub_cmd_cmp): Close the right file at the right time. Compare
46958 only data just read. Don't report files of different size as
46959 identical. Dynamically allocate buffers. Move variable
46960 declarations at the beginning of function.
46961
e6f3e614 469622005-07-09 Yoshinori Okuji <okuji@enbug.org>
46963
46964 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46965 reverse.
46966
f8f1559a 469672004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46968
46969 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46970 when backspace is pressed at beginning of line.
46971
39c9d41d 469722005-07-03 Yoshinori Okuji <okuji@enbug.org>
46973
46974 * DISTLIST: Added genfslist.sh.
46975
46976 * normal/main.c (fs_module_list): New variable.
46977 (autoload_fs_module): New function.
46978 (read_fs_list): Likewise.
46979 (grub_normal_execute): Call read_fs_list.
46980
46981 * kern/fs.c (grub_fs_autoload_hook): New variable.
46982 (grub_fs_probe): Added support for auto-loading.
46983
46984 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46985 (grub_fs_module_list_t): New type.
46986
46987 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46988 (grub_fs_autoload_hook): New prototype.
46989
46990 * genfslist.sh: New file.
f19dbdb7 46991
39c9d41d 46992 * genmk.rb: Added a rule to generate a filesystem list.
46993
121c1d83 469942005-06-30 Marco Gerards <metgerards@student.han.nl>
46995
46996 * configure.ac: Fix the test for cross-compiling.
46997
46998 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46999 define GRUB_UTIL anymore.
47000
47001 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
47002 so this function works on other systems than just big endian.
47003 (load_modules): Likewise.
47004 (add_segments): Likewise.
47005
e75d76e1 470062005-06-23 Hollis Blanchard <hollis@penguinppc.org>
47007
47008 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
47009 contains `l' modifier, get a long from va_arg().
47010
50b5a0a7 470112005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
47012
47013 * kern/mm.c (grub_free): If the next free block which is being
47014 merged is the first free block, set the first block to the block
47015 being freed.
47016 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
47017
89371b20 470182005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47019
47020 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
47021 `grub_ieee1275_chosen'.
47022
168d6e58 470232005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47024
47025 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
47026 (grub_ieee1275_chosen): New variable.
47027 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
47028 `chosen'.
47029 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
47030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47031 Rename first argument to `phandle' for consistency.
47032 (grub_ieee1275_get_property_length): Likewise.
47033 (grub_ieee1275_next_property): Likewise. Change type of first argument
47034 to grub_ieee1275_phandle_t.
47035 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
47036 Move export next to declaration.
47037 (grub_ieee1275_chosen): New variable.
47038 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
47039 Correct cosmetic typo.
47040 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
47041 `grub_ieee1275_chosen'.
47042 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
47043 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
47044 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
47045 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
47046 `grub_ieee1275_chosen'.
47047
ca5baa3f 470482005-05-10 Hollis Blanchard <hollis@penguinppc.org>
47049
47050 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
47051 /chosen/bootargs.
47052 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
47053 /chosen/bootargs as "variable=value" pairs.
47054
708b345f 470552005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
47056
47057 * include/grub/misc.h (grub_dprintf): New macro.
47058 (grub_real_dprintf): New prototype.
47059 (grub_strword): Likewise.
47060 (grub_iswordseparator): Likewise.
47061 * kern/misc.c (grub_real_dprintf): New function.
47062 (grub_strword): Likewise.
47063 (grub_iswordseparator): Likewise.
47064
f4c5e67c 470652005-04-30 Hollis Blanchard <hollis@penguinppc.org>
47066
47067 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
47068 (roundup): Remove macro.
47069 (grub_ieee1275_flags): Make static.
47070 (grub_ieee1275_realmode): Remove.
47071 (grub_ieee1275_test_flag): New function.
47072 (grub_ieee1275_set_flag): Likewise.
47073 (find_options): Rename to `grub_ieee1275_find_options'; update
47074 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
47075 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
47076 (cmain): New prototype.
47077 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
47078 `grub_ieee1275_flags' directly.
47079 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
47080 machine/biosdisk.h.
47081 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
47082 Don't include grub/machine/init.h.
47083 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
47084 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47085 Remove prototype.
47086 (grub_ieee1275_realmode): Likewise.
47087 (grub_ieee1275_flag): New enum.
47088 (grub_ieee1275_test_flag): New prototype.
47089 (grub_ieee1275_set_flag): New prototype.
47090 * include/grub/powerpc/ieee1275/init.h: Remove file.
47091 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
47092 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
47093 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
47094 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
47095 comment.
47096 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
47097 `grub_ieee1275_test_flag'.
47098 (grub_ieee1275_encode_devname): Likewise.
47099
ed16607e 471002005-04-21 Hollis Blanchard <hollis@penguinppc.org>
47101
47102 * include/grub/powerpc/ieee1275/ieee1275.h
47103 (grub_ieee1275_encode_devname): New prototype.
47104 (grub_ieee1275_get_filename): Likewise.
47105 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
47106 function.
47107 (grub_set_prefix): Likewise.
47108 (grub_machine_init): Call grub_set_prefix.
47109 * kern/powerpc/ieee1275/openfw.c: Fix typos.
47110 (grub_parse_type): New enum.
47111 (grub_ieee1275_get_devargs): New function.
47112 (grub_ieee1275_get_devname): Likewise.
47113 (grub_ieee1275_parse_args): Likewise.
47114 (grub_ieee1275_get_filename): Likewise.
47115 (grub_ieee1275_encode_devname): Likewise.
47116
be369920 471172005-03-30 Marco Gerards <metgerards@student.han.nl>
47118
47119 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
47120 `grub_loader_unset'.
47121
a5ce3a4a 471222005-03-26 Hollis Blanchard <hollis@penguinppc.org>
47123
47124 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
47125 instead of grub_ieee1275_interpret.
47126 (grub_halt_init): New function.
47127 (grub_halt_fini): Likewise.
47128 (GRUB_MOD_INIT): Correct message grammar.
47129 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
47130 instead of grub_ieee1275_interpret.
47131 (grub_reboot_init): New function.
47132 (grub_reboot_fini): Likewise.
47133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
47134 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
47135 util/i386/pc/misc.c with commands/ieee1275/halt.c,
47136 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
47137 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
47138 function.
47139 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
47140 Add prototype.
47141 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
47142 prototype.
47143 (grub_halt): Likewise.
47144 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
47145 (cmain): Remove __attribute__((unused)).
47146 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
47147 (grub_heap_len): Likewise.
47148 (grub_machine_fini): New function.
47149 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
47150 (grub_halt): Likewise.
47151 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
47152 function.
47153 * util/powerpc/ieee1275/misc.c: New file.
47154
0058f771 471552005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47156
47157 * DISTLIST: New file.
47158 * gendistlist.sh: Likewise.
f19dbdb7 47159
0058f771 47160 * Makefile.in (COMMON_DISTFILES): Removed.
47161 (BOOT_DISTFILES): Likewise.
47162 (CONF_DISTFILES): Likewise.
47163 (DISK_DISTFILES): Likewise.
47164 (FS_DISTFILES): Likewise.
47165 (INCLUDE_DISTFILES): Likewise.
47166 (KERN_DISTFILES): Likewise.
47167 (LOADER_DISTFILES): Likewise.
47168 (TERM_DISTFILES): Likewise.
47169 (UTIL_DISTFILES): Likewise.
47170 (DISTFILES): Likewise.
47171 (uninstall): Uninstall files in $(pkgdata_DATA).
47172 (DISTLIST): New target.
47173 (distdir): Use the contents of the file DISTLIST to get a list of
47174 distributed files.
47175
46b3b8a5 471762005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47177
47178 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47179 descriptor. This is ported from GRUB Legacy.
47180
47181 * gencmdlist.sh: Added an extra semicolon to make it work with
47182 old sed versions. Reported by Robert Bihlmeyer
47183 <robbe@orcus.priv.at>.
47184
5822ff87 471852005-03-08 Yoshinori Okuji <okuji@enbug.org>
47186
47187 Automatic loading of commands is supported.
f19dbdb7 47188
5822ff87 47189 * normal/main.c (read_command_list): New function.
47190 (grub_normal_execute): Call read_command_list.
47191
47192 * normal/command.c (grub_register_command): Return zero or CMD.
47193 Allocate CMD->NAME from the heap.
47194 Initialize CMD->MODULE_NAME to zero.
47195 Find the same name as well. If the same command is found and it is
47196 a dummy command, overwrite members. If it is not a dummy command,
47197 return zero.
47198 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47199 (grub_command_find): If a dummy command is found, load a module
47200 and retry to find a command only once.
47201
47202 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47203 make sure that each command is loaded.
47204
47205 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47206 macro.
47207 (struct grub_command): Remove const from the member `name'.
47208 Add a new member `module_name'.
47209 (grub_register_command): Return grub_command_t.
47210
47211 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47212 sure that each command is loaded.
47213
47214 * genmk.rb (PModule::rule): Specify a module name without the
47215 suffix ".mod" to gencmdlist.sh.
47216
7b1f4b57 472172005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47218
47219 * gencmdlist.sh: New file.
f19dbdb7 47220
7b1f4b57 47221 * genmk.rb (PModule::rule): Generate a rule for a command list.
47222 Clean command.lst.
47223 Generate command.lst from $(COMMANDFILES).
47224
47225 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47226 (DATA): Added $(pkgdata_DATA).
47227 (install-local): Install files in $(pkgdata_DATA).
47228
062aaf39 472292005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47230
47231 * term/i386/pc/vga.c (debug_command): Removed.
47232 (GRUB_MOD_INIT): Do not register the command "debug".
47233
47234 From Hollis Blanchard:
47235 * commands/configfile.c: New file.
47236 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47237 commands/configfile.c.
47238 (pkgdata_MODULES): Added configfile.mod.
47239 (configfile_mod_SOURCES): New variable.
47240 (configfile_mod_CFLAGS): Likewise.
47241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47242 commands/configfile.c.
47243 (pkgdata_MODULES): Added configfile.mod.
47244 (configfile_mod_SOURCES): New variable.
47245 (configfile_mod_CFLAGS): Likewise.
47246 * util/grub-emu.c (main): Call grub_configfile_init and
47247 grub_configfile_fini.
47248 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47249 prototype.
47250 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 47251
cee01aa6 472522005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47253
47254 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47255 address.
47256
47257 * commands/help.c (grub_cmd_help): Do not print newlines after
47258 the last command in print_command_help.
47259
93f3a1d8 472602005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47261
47262 * commands/default.h: New file.
47263 * commands/timeout.h: Likewise.
47264 * normal/context.c: Likewise.
f19dbdb7 47265
93f3a1d8 47266 * util/misc.c: Do not include sys/times.h.
47267 Include sys/time.h and grub/machine/time.h.
47268 (grub_get_rtc): Rewritten with gettimeofday.
47269
47270 * util/grub-emu.c (main): Call grub_default_init and
47271 grub_timeout_init before grub_normal_init, and call
47272 grub_timeout_fini and grub_default_fini after grub_main.
47273
47274 * util/console.c (grub_ncurses_checkkey): Return the read
47275 character or -1.
47276
47277 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47278 timeouts.
47279
47280 * normal/main.c (read_config_file): Push MENU. If this fails,
47281 print an error and wait for a user input.
47282 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47283 If a menu is empty or an error occurs, pop MENU.
47284 (grub_normal_execute): Pop and free MENU after grub_menu_run
47285 returns.
47286
47287 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47288
47289 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47290 include time.h.
47291 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47292 without GRUB_UTIL.
47293 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47294 time.h.
47295 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47296 without GRUB_UTIL.
47297
47298 * include/grub/normal.h (struct grub_menu_list): New struct.
47299 (grub_menu_list_t): New type.
47300 (struct grub_context): New struct.
47301 (grub_context_t): New type.
47302 (grub_register_command): Got rid of EXPORT_FUNC.
47303 (grub_unregister_command): Likewise.
47304 (grub_context_get): New prototype.
47305 (grub_context_get_current_menu): Likewise.
47306 (grub_context_push_menu): Likewise.
47307 (grub_context_pop_menu): Likewise.
47308 [GRUB_UTIL] (grub_default_init): Likewise.
47309 [GRUB_UTIL] (grub_default_fini): Likewise.
47310 [GRUB_UTIL] (grub_timeout_init): Likewise.
47311 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47312
47313 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47314 commands/timeout.c and normal/context.c.
47315 (pkgdata_MODULES): Added default.mod and timeout.mod.
47316 (normal_mod_SOURCES): Added normal/context.c.
47317 (default_mod_SOURCES): New variable.
47318 (default_mod_CFLAGS): Likewise.
47319 (timeout_mod_SOURCES): Likewise.
47320 (timeout_mod_CFLAGS): Likewise.
47321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47322 conf/i386-pc.rmk.
47323 (pkgdata_MODULES): Added default.mod and timeout.mod.
47324 (normal_mod_SOURCES): Added normal/context.c.
47325 (default_mod_SOURCES): New variable.
47326 (default_mod_CFLAGS): Likewise.
47327 (timeout_mod_SOURCES): Likewise.
47328 (timeout_mod_CFLAGS): Likewise.
47329
47330 * Makefile.in (all-local): Added $(MKFILES).
47331
4ed2e1dd 473322005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47333
47334 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47335 (grub_emu_SOURCES): Likewise.
47336 (pkgdata_MODULES): Add `sun.mod'.
47337 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47339 `partmap/sun.c'.
47340 (pkgdata_MODULES): Add `sun.mod'.
47341 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47342 * include/grub/partition.h (grub_sun_partition_map_init): New
47343 prototype.
47344 (grub_sun_partition_map_fini): Likewise.
47345 * partmap/sun.c: New file.
47346 * util/grub-emu.c (main): Initialize and de-initialize the sun
47347 partitionmap support.
47348
4d4e372e 473492005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47350
47351 This implements an Emacs-like menu entry editor.
f19dbdb7 47352
4d4e372e 47353 * normal/menu_entry.c: New file.
f19dbdb7 47354
4d4e372e 47355 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47356 characters to ASCII.
47357 (saved_char): New variable.
47358 (grub_ncurses_checkkey): Rewritten completely.
47359 (grub_ncurses_getkey): Likewise.
47360 (grub_ncurses_init): Call raw instead of cbreak.
47361
47362 * normal/menu.c (print_entry): Do not put a space.
47363 (init_page): Renamed to ...
47364 (grub_menu_init_page): ... this. All callers changed.
47365 (edit_menu_entry): Removed.
47366 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47367
47368 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47369
47370 * kern/misc.c (grub_vprintf): Call grub_refresh.
47371
47372 * normal/menu.c (DISP_LEFT): Renamed to ...
47373 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47374 * normal/menu.c (DISP_UP): Renamed to ...
47375 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47376 * normal/menu.c (DISP_RIGHT): Renamed to ...
47377 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47378 * normal/menu.c (DISP_DOWN): Renamed to ...
47379 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47380 * normal/menu.c (DISP_HLINE): Renamed to ...
47381 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47382 * normal/menu.c (DISP_VLINE): Renamed to ...
47383 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47384 * normal/menu.c (DISP_UL): Renamed to ...
47385 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47386 * normal/menu.c (DISP_UR): Renamed to ...
47387 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47388 * normal/menu.c (DISP_LL): Renamed to ...
47389 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47390 * normal/menu.c (DISP_LR): Renamed to ...
47391 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47392 * normal/menu.c (TERM_WIDTH): Renamed to ...
47393 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47394 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47395 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47396 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47397 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47398 * normal/menu.c (TERM_MARGIN): Renamed to ...
47399 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47400 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47401 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47402 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47403 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47404 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47405 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47406 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47407 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47408 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47409 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47410 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47411 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47412 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47413 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47414 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47415 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47416 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47417 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47418 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47419 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47420 All callers changed.
47421
47422 * include/grub/normal.h: New prototype.
47423
47424 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47425 normal/menu_entry.c.
47426 (normal_mod_SOURCES): Likewise.
47427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47428 (normal_mod_SOURCES): Likewise.
47429
e6b92c8a 474302005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47431
47432 * include/grub/normal.h (grub_halt_init): New prototype.
47433 (grub_halt_fini): Likewise.
47434 (grub_reboot_init): Likewise.
47435 (grub_reboot_fini): Likewise.
47436
47437 * util/grub-emu.c: Include signal.h.
47438 (main_env): New global variable.
47439 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
47440 catch C-c.
47441 (grub_machine_fini): New function.
47442 (main): Call grub_halt_init and grub_reboot_init before
47443 grub_main, and grub_reboot_fini and grub_halt_fini after it.
47444 Call setjmp with MAIN_ENV to go back afterwards.
47445 Call grub_machine_fini right before return.
47446
47447 * include/grub/util/misc.h: Include setjmp.h.
47448 (main_env): New prototype.
47449
47450 * include/grub/kernel.h (grub_machine_fini): New prototype.
47451 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
47452 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
47453
47454 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
47455 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
47456 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 47457
e6b92c8a 47458 * util/i386/pc/misc.c: New file.
f19dbdb7 47459
e6b92c8a 47460 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47461 util/i386/pc/misc.c, commands/i386/pc/halt.c and
47462 commands/i386/pc/reboot.c.
47463
c642636f 474642005-02-14 Guillem Jover <guillem@hadrons.org>
47465
47466 * include/grub/dl.h (grub_dl_check_header): New prototype.
47467 (grub_arch_dl_check_header): Change return type to grub_err_t,
47468 remove size parameter and export function. Update all callers.
47469 * kern/dl.c (grub_dl_check_header): New function.
47470 (grub_dl_load_core): Use `grub_dl_check_header' instead of
47471 `grub_arch_dl_check_header'. Check ELF type. Check if sections
47472 are inside the core.
47473 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
47474 independent ELF header checks.
47475 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47476 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
47477 `grub_dl_check_header' instead of explicit checks. Check for the
47478 ELF type.
47479 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
47480 `grub_dl_check_header' instead of explicit checks. Remove arch
47481 specific ELF header checks.
47482
e6b92c8a 47483 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
47484 argument SIZE.
47485
5eabe94b 474862005-02-13 Hollis Blanchard <hollis@penguinppc.org>
47487
47488 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
47489 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
47490
1b14a681 474912005-02-12 Hollis Blanchard <hollis@penguinppc.org>
47492
47493 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 47494 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 47495 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 47496 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 47497 * partmap/amiga.c (amiga_partition_map_iterate): Return
47498 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
47499 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47500
aca108aa 475012005-02-01 Guillem Jover <guillem@hadrons.org>
47502
47503 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
47504 help info.
47505
c9f9c556 475062005-01-31 Marco Gerards <metgerards@student.han.nl>
47507
47508 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
47509 Removed prototype.
47510 (grub_rescue_cmd_linux): New prototype.
47511 (grub_rescue_cmd_initrd): Likewise.
47512 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
47513 `bi_rec'.
47514 (grub_linux_release_mem): Release the memory for the initrd.
47515 (grub_load_linux): Renamed from this...
47516 (grub_rescue_cmd_linux): ...To this. Changed all callers.
47517 Changed `entry' not to be static. Loop over memory regions to
47518 find another one when the default fails.
47519 (grub_rescue_cmd_initrd): New function.
47520 (grub_linux_init): Remove function.
47521 (grub_linux_fini): Likewise.
47522 (GRUB_MOD_INIT): Register `initrd'.
47523 (GRUB_MOD_FINI): Unregister `initrd'.
47524 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
47525 Function removed.
47526 (grub_linux_normal_fini): Likewise.
47527 (GRUB_MOD_INIT): Register `initrd'.
47528 (GRUB_MOD_FINI): Unregister `initrd'.
47529
990cf3aa 475302005-01-31 Marco Gerards <metgerards@student.han.nl>
47531
47532 * commands/help.c: New file.
47533 * normal/arg.c (show_help): Renamed to...
47534 (grub_arg_show_help): ... this.
47535 * commands/i386/pc/halt.c: New file.
47536 * commands/i386/pc/reboot.c: Likewise.
47537 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
47538 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
47539 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
47540 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
47541 variables.
47542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47543 `commands/help.c'.
47544 (pkgdata_MODULES): Add `help.mod'.
47545 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
47546 * grub/i386/pc/init.h (grub_reboot): New prototype.
47547 (grub_halt): Likewise.
47548 * include/grub/normal.h (grub_arg_show_help): New prototype.
47549 (grub_help_init): Likewise.
47550 (grub_help_fini): Likewise.
47551 * util/grub-emu.c (main): Initialize and deinitialize the help
47552 command.
47553
47554 * normal/cmdline.c (grub_cmdline_get): Doc fix.
47555
47556 * normal/command.c (grub_command_init): Fixed the description of
47557 the `set' and `unset' commands.
47558
475592005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 47560
47561 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
47562 function.
47563 * commands/ieee1275/halt.c: New file.
47564 * commands/ieee1275/reboot.c: Likewise.
47565 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
47566 `__attribute__ ((unused))'. Some GCS related fixed.
47567 (grub_suspend_init) [GRUB_UTIL]: Function removed.
47568 (grub_suspend_fini): Likewise.
47569 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
47570 and `halt.mod'.
47571 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
47572 (halt_mod_CFLAGS): New variables.
47573 * include/grub/powerpc/ieee1275/ieee1275.h
47574 (grub_ieee1275_interpret): New prototype.
47575
1ab09cc7 475762005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
47577
47578 * include/grub/misc.h (memmove): New prototype.
47579 (memcpy): Likewise.
47580
8b8cbdb2 475812005-01-22 Hollis Blanchard <hollis@penguinppc.org>
47582
47583 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
47584 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
47585
e3741a27 475862005-01-22 Marco Gerards <metgerards@student.han.nl>
47587
47588 * kern/misc.c (grub_strndup): Function rewritten.
47589
776bd780 475902005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
47591
47592 * normal/menu.c (TERM_WIDTH): Macro redefined.
47593 (TERM_TOP_BORDER_Y): Likewise.
47594 (draw_border): Replaced while-loop by a for-loop. Make the number
47595 of lines consistent with the number of lines displayed in
47596 print_entries. Added a margin below the rectangle.
47597 (print_entry): Make the entry fit in the rectangle.
47598 (print_entries): Display the scroll arrows next to the right
47599 border.
47600
78026bce 476012005-01-21 Marco Gerards <metgerards@student.han.nl>
47602
47603 * fs/minix.c (grub_minix_find_file): Reserve more space for
47604 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
47605 `grub_strncpy' to copy `path' into it.
47606
67bbaf0f 476072005-01-21 Marco Gerards <metgerards@student.han.nl>
47608
47609 Add the loopback device, a device via which files can be accessed
47610 as devices.
f19dbdb7 47611
67bbaf0f 47612 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
47613 (pkgdata_MODULES): Add loopback.mod.
47614 (loopback_mod_SOURCES): New variable.
47615 (loopback_mod_CFLAGS): Likewise.
47616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47617 `disk/loopback.c'.
47618 (pkgdata_MODULES): Add loopback.mod.
47619 (loopback_mod_SOURCES): New variable.
47620 (loopback_mod_CFLAGS): Likewise.
47621 * disk/loopback.c: new file.
47622 * include/grub/normal.h (grub_loop_init): New prototype.
47623 (grub_loop_fini): New prototype.
47624 * util/grub-emu.c (main): Initialize and de-initialize loopback
47625 support.
47626 * include/grub/disk.h (grub_disk_dev_id): Add
47627 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
47628
6f1c18bd 476292005-01-20 Hollis Blanchard <hollis@penguinppc.org>
47630
47631 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
47632 function.
47633 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
47634 (suspend_mod_SOURCES): New variable.
47635 (suspend_mod_CFLAGS): Likewise.
47636 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
47637 New prototype.
47638 * commands/ieee1275/suspend.c: New file.
47639
b38551da 476402005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47641
47642 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 47643 ((unused))' to `__attribute__ ((used))'.
b38551da 47644 (GRUB_MOD_FINI): Likewise.
47645 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
47646 * genmk.rb (PModule): Assign space to common symbols when linking
47647 modules.
47648
777aff39 476492005-01-20 Marco Gerards <metgerards@student.han.nl>
47650
47651 * include/grub/mm.h (grub_mm_init_region): Change the type of the
47652 `unsigned' arguments to `grub_size_t'.
47653 (grub_malloc): Likewise.
47654 (grub_realloc): Likewise.
47655 (grub_memalign): Likewise.
47656 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
47657 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47658 * util/misc.c (grub_malloc): Likewise.
47659 (grub_realloc): Likewise.
47660 * kern/mm.c (get_header_from_pointer): Change the casts to
47661 `unsigned' into a cast to `grub_size_t'.
47662
47663 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
47664 point to `currnode' when `currnode' is changed.
47665
47666 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
47667 Schottelius <nico-linux@schottelius.org>.
47668
d0ff18e1 476692005-01-09 Hollis Blanchard <hollis@penguinppc.org>
47670
47671 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
47672 (note_path): Remove variable.
47673 (GRUB_IEEE1275_NOTE_NAME): New macro.
47674 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
47675 (grub_ieee1275_note_hdr): New structure.
47676 (grub_ieee1275_note_desc): Likewise.
47677 (grub_ieee1275_note): Likewise.
47678 (load_note): Remove `dir' argument. All callers updated. Remove
47679 `note_img' and `path'. Do not load a file from `note_path'.
47680 Initialize a struct grub_ieee1275_note and write that to `out'.
47681 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
47682
4ca7004c 476832005-01-05 Marco Gerards <metgerards@student.han.nl>
47684
47685 * util/misc.c (grub_util_read_image): Revert last change. It
47686 called `grub_util_read_at', which seeks from the beginning of the
47687 file.
47688
0b412211 476892005-01-04 Hollis Blanchard <hollis@penguinppc.org>
47690
47691 * TODO: Add note about endianness in grub-mkimage.
47692 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
47693 section.
47694 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
47695 (grub_mkimage_SOURCES): New target.
47696 * include/grub/kernel.h (grub_start_addr): Remove variable.
47697 (grub_end_addr): Likewise.
47698 (grub_total_module_size): Likewise.
47699 (grub_kernel_image_size): Likewise.
47700 (GRUB_MODULE_MAGIC): New constant.
47701 (grub_module_info): New structure.
47702 (grub_arch_modules_addr): New prototype.
47703 (grub_get_end_addr): Remove prototype.
47704 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
47705 * include/grub/powerpc/ieee1275/kernel.h: New file.
47706 * include/grub/util/misc.h (grub_util_get_fp_size): New
47707 prototype.
47708 (grub_util_read_at): Likewise.
47709 (grub_util_write_image_at): Likewise.
47710 * kern/main.c (grub_get_end_addr): Remove function.
47711 (grub_load_modules): Call grub_arch_modules_addr instead of using
47712 grub_end_addr. Look for a grub_module_info struct in memory. Use
47713 the grub_module_info fields instead of calling grub_get_end_addr
47714 as loop conditions. Move grub_add_unused_region code here.
47715 (grub_add_unused_region): Remove function.
47716 * kern/i386/pc/init.c: Include grub/cache.h.
47717 (grub_machine_init): Remove call to grub_get_end_addr. Remove
47718 one call to add_mem_region.
47719 (grub_arch_modules_addr): New function.
47720 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
47721 (grub_total_module_size): Likewise.
47722 Include grub/machine/kernel.h.
47723 (grub_arch_modules_addr): New function.
47724 * util/grub-emu.c (grub_end_addr): Remove variable.
47725 (grub_total_module_size): Likewise.
47726 (grub_arch_modules_addr): New function.
47727 * util/misc.c: Include unistd.h.
47728 (grub_util_get_fp_size): New function.
47729 (grub_util_read_at): Likewise.
47730 (grub_util_write_image_at): Likewise.
47731 (grub_util_read_image): Call grub_util_read_at.
47732 (grub_util_write_image): Call grub_util_write_image_at.
47733 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
47734 additional memory in kernel_img for a struct grub_module_info.
47735 Fill in that grub_module_info.
47736 * util/powerpc/ieee1275/grub-mkimage.c: New file.
47737
458786f8 477382005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47739
47740 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
47741 New function.
47742 * include/grub/powerpc/ieee1275/ieee1275.h
47743 (grub_ieee1275_milliseconds): New prototype.
47744 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
47745 Change to 1000.
47746 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
47747 grub_ieee1275_milliseconds.
47748
ac507d1b 477492005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47750
47751 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
47752 variable.
47753 (find_options): New function.
47754 (cmain): Call find_options.
47755 * include/grub/powerpc/ieee1275/ieee1275.h
47756 (grub_ieee1275_realmode): New extern variable.
47757 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
47758 grub_map if grub_ieee1275_realmode is false.
47759
6b8fd1c4 477602004-12-29 Marco Gerards <metgerards@student.han.nl>
47761
47762 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
47763 lines are inserted and make it work like readline. Reported by
47764 Vincent Pelletier <subdino2004@yahoo.fr>.
47765
8514a1e0 477662004-12-28 Marco Gerards <metgerards@student.han.nl>
47767
47768 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
47769
47770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
47771 `kern/powerpc/cache.S'.
47772
924b6140 477732004-12-27 Marco Gerards <metgerards@student.han.nl>
47774
47775 * genmk.rb: Handle the `Program' class in the main loop. Written
47776 by Johan Rydberg <jrydberg@gnu.org>.
47777 (Program): New class.
47778 (programs): New variable.
47779 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
47780 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
47781 instead of "grub/kernel.h". Include <grub/machine/init.h>.
47782 (help_arch): Function removed.
47783 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
47784 `powerpc/libgcc.h' and `loader.h'.
47785 (pkgdata_PROGRAMS): New variable.
47786 (sbin_UTILITIES): Variable removed.
47787 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
47788 (grubof_SOURCES): Variable re-defined so it only includes the
47789 core functionality.
47790 (grubof_CFLAGS): Remove `-DGRUBOF'.
47791 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
47792 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
47793 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
47794 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
47795 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
47796 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
47797 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
47798 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
47799 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
47800 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
47801 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47802 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
47803 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
47804 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
47805 (pc_mod_CFLAGS): New variables.
47806 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
47807 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
47808 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
47809 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
47810 Moved from here...
47811 * include/grub/i386/pc/init.h (grub_os_area_addr)
47812 (rub_os_area_size): ... to here.
47813 * include/grub/powerpc/ieee1275/ieee1275.h
47814 (grub_ieee1275_entry_fn): Export symbol.
47815 * include/grub/powerpc/ieee1275/init.h: New file.
47816 * include/grub/powerpc/libgcc.h: Likewise.
47817 * include/grub/cache.h: Likewise.
47818 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
47819 <hollis@penguinppc.org>.
47820 * kern/dl.c: Include <grub/cache.h>.
47821 (grub_dl_flush_cache): New function.
47822 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
47823 for this module.
47824 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
47825 (grub_console_init): Removed prototypes.
47826 (grub_machine_init): Don't initialize the modules anymore.
47827 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
47828 static.
47829 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
47830 Macro undef removed.
47831 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
47832 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
47833 relocation `R_PPC_REL32'. Return an error when the relocation is
47834 unknown.
47835 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
47836 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
47837 * util/misc.c (grub_arch_sync_caches): Likewise.
47838
e4b47e0c 478392004-12-19 Marco Gerards <metgerards@student.han.nl>
47840
47841 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
47842 `symlist.c', add `grubof_symlist.c'.
47843 (symlist.c): Variable removed.
47844 (grubof_HEADERS): Variable added.
47845 (grubof_symlist.c): New target.
47846 (kernel_syms.lst): Use `grubof_HEADERS' instead of
47847 `kernel_img_HEADERS'.
47848 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
47849 * kern/powerpc/dl.c: New file.
47850 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
47851 Function removed.
47852 (grub_arch_dl_relocate_symbols): Likewise.
47853 (grub_register_exported_symbols): Likewise.
47854
4ceb3636 478552004-12-13 Marco Gerards <metgerards@student.han.nl>
47856
47857 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
47858 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
47859 to fail instead. Reported by Vincent Pelletier
47860 <subdino2004@yahoo.fr>.
47861
47862 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
47863 it is not allocated. Reported by Vincent Pelletier
47864 <subdino2004@yahoo.fr>.
47865
47866 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
47867 output so the output looks better.
f19dbdb7 47868
3f1578fe 478692004-12-04 Marco Gerards <metgerards@student.han.nl>
47870
47871 Modulize the partition map support and add support for the amiga
47872 partition map.
f19dbdb7 47873
3f1578fe 47874 * commands/ls.c: Include <grub/partition.h> instead of
47875 <grub/machine/partition.h>.
47876 * kern/disk.c: Likewise.
47877 * kern/rescue.c: Likewise.
47878 * loader/i386/pc/chainloader.c: Likewise.
47879 * normal/cmdline.c: Likewise.
47880 * kern/powerpc/ieee1275/init.c: Likewise.
47881 (grub_machine_init): Call `grub_pc_partition_map_init',
47882 `grub_amiga_partition_map_init' and
47883 `grub_apple_partition_map_init'.
47884 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
47885 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
47886 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
47887 `partition.h' and `pc_partition.h'.
47888 (grub_setup_SOURCES): Remove
47889 `disk/i386/pc/partition.c'. Add `kern/partition.c',
47890 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47891 (grub_emu_SOURCES): Likewise.
47892 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
47893 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
47894 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
47895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47896 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
47897 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47898 (grubof_SOURCES): Likewise.
47899 * disk/i386/pc/partition.c: File removed.
47900 * disk/powerpc/ieee1275/partition.c: Likewise.
47901 * include/grub/powerpc/ieee1275/partition.h: Likewise.
47902 * include/grub/i386/pc/partition.h: Likewise.
47903 * kern/partition.c: New file.
47904 * partmap/amiga.c: Likewise.
47905 * partmap/apple.c: Likewise.
47906 * partmap/pc.c: Likewise.
47907 * include/grub/partition.h: Likewise..
47908 * include/grub/pc_partition.h: Likewise.
47909 * util/grub-emu.c: Include <grub/partition.h> instead of
47910 <grub/machine/partition.h>.
47911 (main): Call `grub_pc_partition_map_init',
47912 `grub_amiga_partition_map_init' and
47913 `grub_apple_partition_map_init' and deinitialize afterwards.
47914 * util/i386/pc/biosdisk.c: Include `#include
47915 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47916 `<grub/machine/partition.h>'.
47917 * util/i386/pc/grub-setup.c: Likewise.
47918 * util/i386/pc/biosdisk.c: Likewise.
47919 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
47920 partition information in case of a PC partition.
47921 * util/i386/pc/grub-setup.c: Include `#include
47922 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47923 `<grub/machine/partition.h>'.
47924 (setup): Only access the PC specific partition information in case
47925 of a PC partition.
47926
0ef4ced9 479272004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47928
0ef4ced9 47929 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
47930 (grub_longjmp): Likewise.
47931 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
47932 20.
47933 * normal/powerpc/setjmp.S: New file.
47934 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47935 `normal/powerpc/setjmp.S'.
47936 (grubof_CFLAGS): Add `-DGRUBOF'.
47937 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
47938 [GRUB_UTIL && !GRUBOF].
f19dbdb7 47939
19950e29 479402004-11-16 Marco Gerards <metgerards@student.han.nl>
47941
47942 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
47943 property named `name'. Correctly handle the error returned by
47944 `grub_ieee1275_finddevice' if a device can not be opened.
47945
a2fea427 479462004-11-02 Hollis Blanchard <hollis@penguinppc.org>
47947
47948 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
47949 `actual' for negativity.
47950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47951 kern/fshelp.c.
47952
41ea0ea3 479532004-11-01 Marco Gerards <metgerards@student.han.nl>
47954
47955 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
47956 (PAGE_OFFSET): New macro.
47957 (CRTC_ADDR_PORT): Likewise.
47958 (CRTC_DATA_PORT): Likewise.
47959 (START_ADDR_HIGH_REGISTER): Likewise.
47960 (START_ADDR_LOW_REGISTER): Likewise.
47961 (GRAPHICS_ADDR_PORT): Likewise.
47962 (GRAPHICS_DATA_PORT): Likewise.
47963 (READ_MAP_REGISTER): Likewise.
47964 (INPUT_STATUS1_REGISTER): Likewise.
47965 (INPUT_STATUS1_VERTR_BIT): Likewise.
47966 (page): New variable.
47967 (wait_vretrace): New function.
47968 (set_read_map): Likewise.
47969 (set_start_address): Likewise.
47970 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47971 the right page.
47972 (check_vga_mem): Take the page into account.
47973 (write_char): Likewise.
47974 (write_cursor): Likewise.
47975 (scroll_up): Likewise. Copy the page to the page that is not
47976 shown and switch between both pages.
47977 (grub_vga_putchar): Fix off by one error.
47978 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47979 account.
47980
ad0bd20b 479812004-11-01 Marco Gerards <metgerards@student.han.nl>
47982
47983 Add support for iso9660 (including rockridge).
f19dbdb7 47984
ad0bd20b 47985 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47986 (iso9660_mod_SOURCES): New variable.
47987 (iso9660_mod_CFLAGS): Likewise.
47988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47989 * include/grub/fs.h (grub_iso9660_init): New prototype.
47990 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47991 * fs/iso9660.c: New file.
47992
47993 * include/grub/misc.h (grub_strncat): New prototype.
47994 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47995
ad0bd20b 47996 * fs/hfs.c (grub_hfs_mount): Translate the error
47997 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47998 * fs/jfs.c (grub_jfs_mount): Likewise.
47999 * fs/ufs.c (grub_ufs_mount): Likewise.
48000
a5477a59 480012004-10-28 Hollis Blanchard <hollis@penguinppc.org>
48002
48003 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
48004 which initialized BAT registers.
48005 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
48006 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48007 Move from here...
48008 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
48009 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48010 ... to here.
48011 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
48012 (grub_mapclaim): Likewise.
48013 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
48014 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
48015 hand.
48016
9304c1f8 480172004-10-19 Hollis Blanchard <hollis@penguinppc.org>
48018
48019 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
48020 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
48021 -ffreestanding and -msoft-float.
48022
86f4ae25 480232004-10-15 Hollis Blanchard <hollis@penguinppc.org>
48024
48025 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
48026 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
48027 set in grub_ieee1275_flags.
48028
38912228 480292004-10-14 Hollis Blanchard <hollis@penguinppc.org>
48030
48031 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
48032 prototype.
48033 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
48034 grub_console_init first.
48035 Change the memory range used for grub_ieee1275_claim and
48036 grub_mm_init_region.
48037 Print an error message if the claim fails.
48038 Include <grub/misc.h>.
48039
d1923dc8 480402004-10-13 Hollis Blanchard <hollis@penguinppc.org>
48041
48042 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
48043 Call grub_children_iterate for device nodes of type `scsi',
48044 `ide', or `ata'.
48045 (grub_ofdisk_open): Remove manual device alias resolution.
48046 Fix memory leak when device cannot be opened.
f19dbdb7 48047 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 48048 (grub_children_iterate): New prototype.
48049 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
48050 New function.
48051 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48052 Return -1 if args.size was -1.
48053
4512e4f3 480542004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48055
48056 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
48057 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
48058 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
48059 Open Firmware's memory for it; claim memory from _start to _end.
48060 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
48061 (_end): New extern.
48062 (_start): Zero BSS from __bss_start to _end.
48063 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48064 New extern.
48065 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
48066
4d61feb0 480672004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48068
ad0bd20b 48069 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
48070 -1 if args.base was -1.
4d61feb0 48071
026fa2f9 480722004-10-08 Hollis Blanchard <hollis@penguinppc.org>
48073
48074 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
48075 escape sequence instead of a literal ^L. Also call
48076 grub_ofconsole_gotoxy.
48077
9f2220ef 480782004-10-03 Hollis Blanchard <hollis@penguinppc.org>
48079
48080 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
48081 void * arguments to grub_addr_t. All callers updated. Also make
48082 the `result' argument optional.
48083 (grub_ieee1275_release): change void * arguments to grub_addr_t.
48084 All callers updated.
48085
8a572cd7 480862004-09-22 Hollis Blanchard <hollis@penguinppc.org>
48087
48088 * commands/ls.c (grub_ls_list_files): Use the string following the
48089 initial ')', if present, as the filesystem path.
48090 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
48091
48092 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
48093
18aa81f2 480942004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
48095
48096 Make the source code of the menu interface more readable.
f19dbdb7 48097
18aa81f2 48098 * normal/menu.c: Include grub/mm.h.
48099 (TERM_WIDTH): New macro.
48100 (TERM_HEIGHT): Likewise.
48101 (TERM_INFO_HEIGHT): Likewise.
48102 (TERM_MARGIN): Likewise.
48103 (TERM_SCROLL_WIDTH): Likewise.
48104 (TERM_TOP_BORDER_Y): Likewise.
48105 (TERM_LEFT_BORDER_X): Likewise.
48106 (TERM_BORDER_WIDTH): Likewise.
48107 (TERM_MESSAGE_HEIGHT): Likewise.
48108 (TERM_BORDER_HEIGHT): Likewise.
48109 (TERM_NUM_ENTRIES): Likewise.
48110 (TERM_FIRST_ENTRY_Y): Likewise.
48111 (TERM_ENTRY_WIDTH): Likewise.
48112 (TERM_CURSOR_X): Likewise.
48113 (draw_border): Use macros instead of magic numbers.
48114 (print_entry): Likewise.
48115 (print_entries): Likewise.
48116 (run_menu): Likewise. Also, handle the key 'e'.
48117 (run_menu_entry): Ignore empty command lines.
48118 (print_message): Added a new argument EDIT. If EDIT is true,
48119 print a different message.
48120 (init_page): Likewise.
48121 (edit_menu_entry): New function. Not implemented yet.
48122
b47efe30 481232004-09-17 Marco Gerards <metgerards@student.han.nl>
48124
48125 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
48126 can be loaded from normal mode.
f19dbdb7 48127
b47efe30 48128 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
48129 `multiboot.mod'.
48130 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
48131 (multiboot_mod_CFLAGS): New variables.
48132 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 48133 * loader/i386/pc/multiboot_normal.c: Likewise.
48134
b47efe30 48135 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
48136 attribute `unused'.
f19dbdb7 48137
b47efe30 48138 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
48139 `fdiro' to read the mode information from instead of `diro'.
48140
48141 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
48142 looking up a symlink.
48143
48144 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
48145 macro.
48146 * normal/command.c (grub_command_execute): Don't parse the
48147 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
48148 flags of the command.
48149
48150 * normal/menu.c (grub_menu_run): Fix typo.
48151
da75ac71 481522004-09-14 Hollis Blanchard <hollis@penguinppc.org>
48153
48154 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48155
48156 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48157 `y + 1' instead of `y - 1'.
48158
48159 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 48160
062b24c2 481612004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48162
48163 From Hollis Blanchard <hollis@penguinppc.org>:
48164 * kern/misc.c (memmove): New alias for grub_memmove.
48165 (memcmp): New alias for grub_memcmp.
48166 (memset): New alias for grub_memset.
f19dbdb7 48167 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 48168 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 48169 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 48170 (grub_ieee1275_get_property): Likewise.
f19dbdb7 48171
8ddad845 481722004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48173
48174 Added normal mode command `chainloader' as module chain.mod, which
48175 depends on normal.mod and _chain.mod.
f19dbdb7 48176
8ddad845 48177 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48178 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48179 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48180 Deleted prototype.
48181 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48182 but arguments parsing moved to ...
48183 (grub_chainloader_cmd): ... here. New function.
48184 * include/grub/i386/pc/chainloader.h: New file.
48185 * loader/i386/pc/chainloader_normal.c: Likewise.
48186
2c1f4ce3 481872004-09-11 Marco Gerards <metgerards@student.han.nl>
48188
48189 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48190 (grub_mkimage_LDFLAGS): Likewise.
48191 (grub_emu_SOURCES): Likewise.
48192 (kernel_img_HEADERS): Added fshelp.h.
48193 * fs/ext2.c: Include <grub/fshelp.h>.
48194 (FILETYPE_REG): New macro.
48195 (FILETYPE_INO_REG): Likewise.
48196 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48197 Changed all users.
48198 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48199 all users.
48200 (grub_fshelp_node): New struct.
48201 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48202 to a pointer.
48203 (grub_ext2_get_file_block): Removed function.
48204 (grub_ext2_read_block): New function.
48205 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48206 This function was written.
48207 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48208 (grub_ext2_find_file): Removed function.
48209 (grub_ext2_read_symlink): New function.
48210 (grub_ext2_iterate_dir): Likewise.
48211 (grub_ext2_open): Rewritten.
48212 (grub_ext2_dir): Rewritten.
48213 * include/grub/fshelp.h: New file.
48214 * fs/fshelp.c: Likewise.
48215
3c52136a 482162004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48217
48218 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48219 (print_message): Add a missing newline.
48220 (run_menu): Added timeout support.
48221 (run_menu_entry): New local function.
48222 (grub_menu_run): Added support for booting.
48223
48224 * kern/loader.c (grub_loader_is_loaded): New function.
48225
48226 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48227 (grub_get_rtc): Exported.
48228
48229 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48230 (grub_get_rtc): Exported.
48231
48232 * include/grub/normal.h (struct grub_command_list): Remove
48233 constant from the member `command'.
48234
48235 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48236
48237 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48238
48239 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48240
aa033560 482412004-08-28 Marco Gerards <metgerards@student.han.nl>
48242
48243 Add support for the JFS filesystem.
48244
48245 * fs/jfs.c: New file.
48246 * include/grub/fs.h (grub_jfs_init): New prototype.
48247 (grub_jfs_fini): New prototype.
48248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48249 (grub_emu_SOURCES): Likewise.
48250 (pkgdata_MODULES): Add jfs.mod.
48251 (jfs_mod_SOURCES): New variable.
48252 (jfs_mod_CFLAGS): Likewise.
48253 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48254 (grubof_SOURCES): Likewise.
48255 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48256
48257 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48258 endian to the host endian.
48259 (grub_fat_utf16_to_utf8): Move function from there...
48260 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 48261 the endianness of the source string anymore.
aa033560 48262 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48263
94bc45af 482642004-08-24 Marco Gerards <metgerards@student.han.nl>
48265
48266 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48267 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48268 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48269 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 48270
94bc45af 48271 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48272 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48273 for `node_found' and `it_dir'.
48274 (grub_hfs_dir): Add prototype for `dir_hook'.
48275
48276 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48277 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48278 and `indir32' to silence a gcc warning.
48279
48280 * include/grub/fs.h (grub_hfs_init): New prototype.
48281 (grub_hfs_fini): Likewise.
f19dbdb7 48282
48283
97543f08 482842004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48285
48286 Each disk device has its own id now. This is useful to make use
48287 of multiple disk devices.
f19dbdb7 48288
97543f08 48289 * include/grub/disk.h (grub_disk_dev_id): New enum.
48290 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48291 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48292
48293 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48294 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48295
48296 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48297 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48298
48299 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48300 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48301
48302 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48303 "id" which is used by the cache manager.
48304
48305 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48306 of just "GRUB".
48307
64372eb4 483082004-08-18 Marco Gerards <metgerards@student.han.nl>
48309
48310 * fs/hfs.c: New file.
48311 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48312 (grub_emu_SOURCES): Likewise.
48313 (pkgdata_MODULES): Add hfs.mod.
48314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48315 (grubof_SOURCES): Likewise.
48316 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48317
48318 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48319 * kern/misc.c (grub_strncasecmp): Add function.
48320
cc61b58f 483212004-08-14 Marco Gerards <metgerards@student.han.nl>
48322
48323 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48324 with parentheses.
48325
48326 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48327 (grub_ext2_dir): In case the directory entry type is unknown, read
48328 it from the inode.
48329
0ef123f6 483302004-08-02 Peter Bruin <pjbruin@dds.nl>
48331
48332 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48333 grub_load_linux instead of grub_rescue_cmd_linux as second
48334 argument of grub_rescue_register_command.
48335
48336 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48337
a447c5df 483382004-07-27 Marco Gerards <metgerards@student.han.nl>
48339
48340 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48341 function.
48342 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48343 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48344 `loader/powerpc/ieee1275/linux.c',
48345 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48346 * include/grub/powerpc/ieee1275/ieee1275.h
48347 (grub_ieee1275_release): New prototype.
48348 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48349 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48350 normal, boot, linux and linux_normal.
48351 * loader/powerpc/ieee1275/linux.c: New file.
48352 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48353
5a9e3546 483542004-07-12 Marco Gerards <metgerards@student.han.nl>
48355
48356 * normal/arg.c (grub_arg_parse): Correct error handling after
48357 reallocating the argumentlist (check if `argl' is not null instead
48358 of checking if `args' is not null).
48359 * kern/mm.c (grub_realloc): Return the same pointer when using the
48360 same region, instead of returning the header address.
48361
e15199cb 483622004-07-11 Marco Gerards <metgerards@student.han.nl>
48363
48364 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48365 one block instead of two when looking for the initial partition.
48366 (grub_partition_probe): Initialize the local variable `p' with 0.
48367 Use base 10 for the grub_strtoul call.
48368 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48369 need for one local variable.
48370 (grub_strtoul): Don't add the new value to `num', instead of that
48371 just assign it.
48372
020616c2 483732004-07-11 Marco Gerards <metgerards@student.han.nl>
48374
48375 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48376 (pxeboot_img_SOURCES): New variable.
48377 (pxeboot_img_ASFLAGS): Likewise.
48378 (pxeboot_img_LDFLAGS): Likewise.
48379 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48380 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48381 <lode_leroy@hotmail.com>.
48382
6c51eb64 483832004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48384
48385 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48386 there was no input.
48387
cfb12aff 483882004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48389
48390 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48391 the history buffer logic.
48392
6eabba74 483932004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48394
48395 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48396 (FILETYPE_INO_SYMLINK): New macros.
48397 (grub_ext2_find_file): Check if the node is a directory using the
48398 inode stat information instead of using the filetype in the
48399 dirent. Exclude the first character of an absolute symlink.
48400 (grub_ext2_dir): Mask out the filetype part of the mode member of
48401 the inode.
48402
66e19ef8 484032004-05-24 Marco Gerards <metgerards@student.han.nl>
48404
48405 Add support for UFS version 1 and 2. Add support for the minix
48406 filesystem version 1 and 2, both the variants with 14 and 30 long
48407 filenames.
f19dbdb7 48408
66e19ef8 48409 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48410 fs/minix.c.
48411 (grub_emu_SOURCES): Likewise.
48412 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48413 (ufs_mod_SOURCES): New variable.
48414 (ufs_mod_CFLAGS): Likewise.
48415 (minix_mod_SOURCES): Likewise.
48416 (minix_mod_CFLAGS): Likewise.
48417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48418 fs/minix.c.
48419 (grubof_SOURCES): Likewise.
48420 * fs/ufs.c: New file.
48421 * fs/minix.c: New file.
48422 * include/grub/fs.h (grub_ufs_init): New prototype.
48423 (grub_ufs_fini): Likewise.
48424 (grub_minix_init): Likewise.
48425 (grub_minix_fini): Likewise.
48426 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48427 minix fs.
48428
cc2e748a 484292004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48430
48431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48432 commands/ls.c, commands/terminal.c, commands/boot.c,
48433 commands/cmp.c and commands/cat.c.
48434 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48435
48436 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48437 "env.h"
48438
4b13b216 484392004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48440
48441 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
48442 and grub_, respectively. Because the conversion is trivial and
48443 mechanical, I omit the details here. Please refer to the CVS
48444 if you need more information.
48445
6a142551 484462004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48447
48448 * include/pupa: Renamed to ...
48449 * include/grub: ... this.
48450 * util/i386/pc/pupa-mkimage.c: Renamed to ...
48451 * util/i386/pc/grub-mkimage.c: ... this.
48452 * util/i386/pc/pupa-setup.c: Renamed to ...
48453 * util/i386/pc/grub-setup.c: ... this.
48454 * util/pupa-emu.c: Renamed to ...
48455 * util/grub-emu.c: ... this.
48456
e56cdf21 484572004-03-29 Marco Gerards <metgerards@student.han.nl>
48458
48459 Add support for the newworld apple macintosh (PPC). This has been
48460 tested on the powerbook 2000 only. It only adds support for
48461 generic ieee1275 functions, console and disk support. This should
48462 be easy to port to other architectures with support for Open
48463 Firmware.
f19dbdb7 48464
e56cdf21 48465 * configure.ac: Accept the powerpc as host_cpu. In the case of
48466 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
48467 specific tests are only executed while building for the i386.
48468 Inverse test for crosscompile.
48469 * genmk.rb (Utility): Allow assembler files.
48470 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
48471 * conf/powerpc-ieee1275.rmk: New file.
48472 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
48473 * disk/powerpc/ieee1275/partition.c: Likewise.
48474 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
48475 * include/pupa/powerpc/ieee1275/console.h: Likewise.
48476 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
48477 * include/pupa/powerpc/ieee1275/time.h: Likewise.
48478 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
48479 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
48480 * include/pupa/powerpc/ieee1275/loader.h
48481 * include/pupa/powerpc/setjmp.h: Likewise.
48482 * include/pupa/powerpc/types.h: Likewise.
48483 * kern/powerpc/ieee1275/init.c: Likewise.
48484 * kern/powerpc/ieee1275/openfw.c: Likewise.
48485 * term/powerpc/ieee1275/ofconsole.c: Likewise.
48486
48487 These files were written by Johan Rydberg
48488 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 48489
e56cdf21 48490 * boot/powerpc/ieee1275/cmain.c: New file.
48491 * boot/powerpc/ieee1275/crt0.S: Likewise.
48492 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
48493 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
48494
8c8cc205 484952004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
48496
48497 * Makefile.in: Update copyright.
48498 * genmodsrc.sh: Likewise.
48499 * gensymlist.sh: Likewise.
48500 * term/i386/pc/vga.c: Indent correctly.
48501
48502 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
48503 bugreporting address.
48504 * util/i386/pc/pupa-setup.c (usage): Likewise,
48505 (main): Call pupa_ext2_init and pupa_ext2_fini.
48506
f19dbdb7 48507 * fs/fat.c (log2): Renamed to ...
8c8cc205 48508 (fat_log2): ... this.
48509 All callers changed.
48510 * kern/misc.c (memcpy): Alias to pupa_memmove.
48511 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
48512 lvalue cast.
48513 * util/console.c (pupa_ncurses_fini): Return 0.
48514
48515 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
48516 Move fail label here.
48517 [__GNU__]: Don't warn when using stat.
48518 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
48519 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
48520 long int. Use strtol instead of strtoul.
f19dbdb7 48521
db1771cf 485222004-03-14 Marco Gerards <metgerards@student.han.nl>
48523
48524 * commands/boot.c: New file.
48525 * commands/cat.c: Likewise.
48526 * commands/cmp.c: Likewise.
48527 * commands/ls.c: Likewise.
48528 * commands/terminal.c: Likewise.
48529 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
48530 (pupa_register_command): Changed interface to match the new
48531 argument parser.
48532 (pupa_command_execute): Changed (almost rewritten) so it uses
48533 pupa_split_command. Added support for setting variables using the
48534 syntax `foo=bar'.
48535 (rescue_command): Changed to work with the new argument parser.
48536 (terminal_command): Moved from here to commands/terminal.c.
48537 (set_command): New function.
48538 (unset_command): New function.
48539 (insmod_command): New function.
48540 (rmmod_command): New function.
48541 (lsmod_command): New function.
48542 (pupa_command_init): Don't initialize the command terminal
48543 anymore. Initialize the commands set, unset, insmod, rmmod and
48544 lsmod.
48545 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
48546 (kernel_img_HEADERS): Add arg.h and env.h.
48547 (pupa_mkimage_LDFLAGS): Add kern/env.c.
48548 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
48549 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
48550 normal/arg.c.
48551 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
48552 terminal.mod.
48553 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
48554 (boot_mod_SOURCES): New variable.
48555 (terminal_mod_SOURCES): Likewise.
48556 (ls_mod_SOURCES): Likewise.
48557 (cmp_mod_SOURCES): Likewise.
48558 (cat_mod_SOURCES): Likewise.
48559
48560 * normal/arg.c: New file.
48561 * kern/env.c: Likewise.
48562 * include/pupa/arg.h: Likewise.
48563 * include/pupa/env.h: Likewise.
48564 * font/manager.c (font_command): Changed to match argument parsing
48565 interface changes.
48566 (PUPA_MOD_INIT): Likewise.
48567 * hello/hello.c (pupa_cmd_hello): Likewise.
48568 (PUPA_MOD_INIT): Likewise.
48569 * include/pupa/disk.h: Include <pupa/device.h>.
48570 (pupa_print_partinfo): New prototype.
48571 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
48572 (pupa_dl_get_prefix): Likewise.
48573 * include/pupa/misc.h: Include <pupa/err.h>.
48574 (pupa_isgraph): New prototype.
48575 (pupa_isdigit): Likewise.
48576 (pupa_split_cmdline): Likewise.
48577 * include/pupa/normal.h: Include <pupa/arg.h>.
48578 (pupa_command): Changed the prototype of the member `func' to
48579 match the argument parsing interface. Added member `options'.
48580 (pupa_register_command): Updated to match function.
48581 (pupa_arg_parse): New prototype.
48582 (pupa_hello_init) [PUPA_UTIL]: New prototype.
48583 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
48584 (pupa_ls_init) [PUPA_UTIL]: Likewise.
48585 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
48586 (pupa_cat_init) [PUPA_UTIL]: Likewise.
48587 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
48588 (pupa_boot_init) [PUPA_UTIL]: Likewise.
48589 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
48590 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
48591 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
48592 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
48593 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
48594 * kern/disk.c: Include <pupa/file.h>.
48595 (pupa_print_partinfo): New function.
48596 * kern/dl.c: Include <pupa/env.h>.
48597 (pupa_dl_dir): Variable removed.
48598 (pupa_dl_load): Use the environment variable `prefix' instead of
48599 the variable pupa_dl_dir.
48600 (pupa_dl_set_prefix): Function removed.
48601 (pupa_dl_get_prefix): Likewise.
48602 * kern/i386/pc/init.c: Include <pupa/env.h>.
48603 (pupa_machine_init): Use the environment variable `prefix' instead of
48604 using pupa_dl_set_prefix to set the prefix.
48605 * kern/main.c: Include <pupa/env.h>.
48606 (pupa_set_root_dev): Use the environment variable `prefix' instead of
48607 using pupa_dl_get_prefix to get the prefix.
48608 * kern/misc.c: Include <pupa/env.h>.
48609 (pupa_isdigit): New function.
48610 (pupa_isgraph): Likewise.
48611 (pupa_ftoa): Likewise.
48612 (pupa_vsprintf): Added support for printing values of the type
48613 `double'. Make it possible to format variable output when using
48614 formatting like `%1.2%f'.
48615 (pupa_split_cmdline): New function.
48616 * kern/rescue.c: Include <pupa/env.h>.
48617 (next_word): Removed function.
48618 (pupa_rescue_cmd_prefix): Likewise.
48619 (pupa_rescue_cmd_set): New function.
48620 (pupa_rescue_cmd_unset): New function.
48621 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
48622 split the command line instead of splitting it here. Added
48623 support for setting variables using the syntax `foo=bar'. Don't
48624 initialize the prefix command anymore. Initialized the set and
48625 unset commands.
48626 * normal/cmdline.c: Include <pupa/env.h>.
48627 (pupa_tab_complete): Added prototypes for print_simple_completion,
48628 print_partition_completion, add_completion, iterate_commands,
48629 iterate_dev, iterate_part and iterate_dir. Moved code to print
48630 partition information from here to kern/disk.c.
fe6b695a 48631 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 48632 * normal/main.c: Include <pupa/env.h>.
48633 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
48634 instead of using pupa_dl_get_prefix to get the prefix.
48635 * term/i386/pc/vga.c: Include <pupa/arg.h>.
48636 (check_vga_mem): Cast pointers to `void *' to silence a gcc
48637 warning.
48638 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
48639 (pupa_vga_setcolor): Declare unused variables with `__attribute__
48640 ((unused))' to silence a gcc warning.
48641 (pupa_vga_setcolor): Likewise.
48642 (debug_command): Changed to match argument parsing
48643 interface changes.
48644 * util/pupa-emu.c: Include <pupa/env.h>.
48645 (options): Added 0's for unused fields to silence a gcc warning.
48646 (argp): Likewise.
48647 (main): Use the environment variable `prefix' instead of using
48648 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
48649 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
48650 and terminal.
48651
48652 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
48653 * util/misc.c: Include <malloc.h>.
48654 (pupa_malloc): Rewritten so errors are correctly reported.
48655 (pupa_realloc): Likewise.
48656 (pupa_memalign): Likewise.
48657 (pupa_mm_init_region): Declare unused variables with
48658 `__attribute__ ((unused))' to silence a gcc warning.
48659 * normal/i386/setjmp.S: Remove tab at the end of the file to
48660 silence a gcc warning.
48661 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
48662 variables with `__attribute__ ((unused))' to silence a gcc
48663 warning.
48664 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
48665 local variable i unsigned to silence a gcc warning.
48666
48667 * kern/term.c: Include <pupa/misc.h>.
48668 (pupa_more_lines): New variable.
48669 (pupa_more): Likewise.
48670 (pupa_putcode): When the pager is active pause at the end of every
48671 screen.
48672 (pupa_set_more): New function.
48673 * include/pupa/term.h (pupa_set_more): New prototype.
48674
48675
3b1139cb 486762004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
48677
48678 Now this project is GRUB 2 rather than PUPA. The location of
48679 the CVS repository was moved to GRUB's.
f19dbdb7 48680
3b1139cb 48681 * configure.ac: Use bug-grub as the reporting address.
48682 Use GRUB instead of PUPA.
48683 Change the version number to 1.90.
48684
8367695c 486852004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
48686
48687 * genkernsyms.sh: Updated copyright information.
48688 * genmk.rb: Likewise.
48689 * genmodsrc.sh: Likewise.
48690 * gensymlist.sh: Likewise.
48691 * boot/i386/pc/boot.S: Likewise.
48692 * boot/i386/pc/diskboot.S: Likewise.
48693 * disk/i386/pc/biosdisk.c: Likewise.
48694 * disk/i386/pc/partition.c: Likewise.
48695 * font/manager.c: Likewise.
48696 * fs/ext2.c: Likewise.
48697 * fs/fat.c: Likewise.
48698 * include/pupa/boot.h: Likewise.
48699 * include/pupa/device.h: Likewise.
48700 * include/pupa/disk.h: Likewise.
48701 * include/pupa/dl.h: Likewise.
48702 * include/pupa/elf.h: Likewise.
48703 * include/pupa/err.h: Likewise.
48704 * include/pupa/file.h: Likewise.
48705 * include/pupa/font.h: Likewise.
48706 * include/pupa/fs.h: Likewise.
48707 * include/pupa/kernel.h: Likewise.
48708 * include/pupa/loader.h: Likewise.
48709 * include/pupa/misc.h: Likewise.
48710 * include/pupa/mm.h: Likewise.
48711 * include/pupa/net.h: Likewise.
48712 * include/pupa/normal.h: Likewise.
48713 * include/pupa/rescue.h: Likewise.
48714 * include/pupa/setjmp.h: Likewise.
48715 * include/pupa/symbol.h: Likewise.
48716 * include/pupa/term.h: Likewise.
48717 * include/pupa/types.h: Likewise.
48718 * include/pupa/i386/setjmp.h: Likewise.
48719 * include/pupa/i386/types.h: Likewise.
48720 * include/pupa/i386/pc/biosdisk.h: Likewise.
48721 * include/pupa/i386/pc/boot.h: Likewise.
48722 * include/pupa/i386/pc/console.h: Likewise.
48723 * include/pupa/i386/pc/init.h: Likewise.
48724 * include/pupa/i386/pc/kernel.h: Likewise.
48725 * include/pupa/i386/pc/linux.h: Likewise.
48726 * include/pupa/i386/pc/loader.h: Likewise.
48727 * include/pupa/i386/pc/memory.h: Likewise.
48728 * include/pupa/i386/pc/multiboot.h: Likewise.
48729 * include/pupa/i386/pc/partition.h: Likewise.
48730 * include/pupa/i386/pc/time.h: Likewise.
48731 * include/pupa/i386/pc/vga.h: Likewise.
48732 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
48733 * include/pupa/util/getroot.h: Likewise.
48734 * include/pupa/util/misc.h: Likewise.
48735 * include/pupa/util/resolve.h: Likewise.
48736 * kern/device.c: Likewise.
48737 * kern/disk.c: Likewise.
48738 * kern/dl.c: Likewise.
48739 * kern/err.c: Likewise.
48740 * kern/file.c: Likewise.
48741 * kern/fs.c: Likewise.
48742 * kern/loader.c: Likewise.
48743 * kern/main.c: Likewise.
48744 * kern/misc.c: Likewise.
48745 * kern/mm.c: Likewise.
48746 * kern/rescue.c: Likewise.
48747 * kern/term.c: Likewise.
48748 * kern/i386/dl.c: Likewise.
48749 * kern/i386/pc/init.c: Likewise.
48750 * kern/i386/pc/lzo1x.S: Likewise.
48751 * kern/i386/pc/startup.S: Likewise.
48752 * loader/i386/pc/chainloader.c: Likewise.
48753 * loader/i386/pc/linux.c: Likewise.
48754 * loader/i386/pc/multiboot.c: Likewise.
48755 * normal/cmdline.c: Likewise.
48756 * normal/command.c: Likewise.
48757 * normal/main.c: Likewise.
48758 * normal/menu.c: Likewise.
48759 * normal/i386/setjmp.S: Likewise.
48760 * term/i386/pc/console.c: Likewise.
48761 * term/i386/pc/vga.c: Likewise.
48762 * util/console.c: Likewise.
48763 * util/genmoddep.c: Likewise.
48764 * util/misc.c: Likewise.
48765 * util/pupa-emu.c: Likewise.
48766 * util/resolve.c: Likewise.
48767 * util/unifont2pff.rb: Likewise.
48768 * util/i386/pc/biosdisk.c: Likewise.
48769 * util/i386/pc/getroot.c: Likewise.
48770 * util/i386/pc/pupa-mkimage.c: Likewise.
48771 * util/i386/pc/pupa-setup.c: Likewise.
48772
e6eced71 487732004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
48774
48775 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
48776 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
48777 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
48778 reading and reset it after reading.
48779 (pupa_ext2_close): Return PUPA_ERR_NONE.
48780
48781 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
48782 Correct value.
48783 (struct linux_kernel_header): Add kernel_version and
48784 initrd_addr_max.
48785 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
48786 pupa_file_read succeeds.
48787 (pupa_rescue_cmd_initrd): Implement.
48788
5aded270 487892003-12-03 Marco Gerards <metgerards@student.han.nl>
48790
48791 * fs/ext2.c (pupa_ext2_label): New function.
48792 (pupa_ext2_fs): Added label.
48793 * fs/fat.c (pupa_fat_label): New function.
48794 (pupa_fat_fs): Added label.
48795 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
48796
48797 * kern/misc.c (pupa_strndup): New function.
48798 * include/pupa/misc.h (pupa_strndup): New prototype.
48799
48800 * include/pupa/normal.h: Include <pupa/err.h>.
48801 (pupa_set_history): New prototype.
48802 (pupa_iterate_commands): New prototype.
48803 * normal/cmdline.c: Include <pupa/machine/partition.h>,
48804 <pupa/disk.h>, <pupa/file.h>.
48805 (hist_size): New variable.
48806 (hist_lines): Likewise.
48807 (hist_end): Likewise.
48808 (hist_used): Likewise.
48809 (pupa_set_history): New function.
48810 (pupa_history_get): Likewise.
48811 (pupa_history_add): Likewise.
48812 (pupa_history_replace): Likewise.
48813 (pupa_tab_complete): Likewise.
48814 (pupa_cmdline_run): Added tab completion and history buffer. Tab
48815 completion shows partitionnames while completing partitions, this
48816 feature was suggested by Jeff Bailey.
48817 * normal/command.c (pupa_iterate_commands): New function.
48818 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
48819 (pupa_normal_init): Initialize history buffer.
48820 (PUPA_MOD_INIT): Likewise.
48821 (pupa_normal_fini): Free the history buffer.
48822 (PUPA_MOD_FINI): Likewise.
48823
48824 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
48825 key.
48826
48827 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
48828 * configure.ac [i386]: Check for regparam bug.
48829 (NESTED_FUNC_ATTR) [! i386]: Defined.
48830
1f7315a3 488312003-11-17 Marco Gerards <metgerards@student.han.nl>
48832
48833 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
48834 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
48835 (pupa_emu_SOURCES): New variable.
48836 (pupa_emu_LDFLAGS): Likewise.
48837 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
48838 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
48839 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
48840 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48841 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
48842 (pupa_jmp_buf): New typedef.
48843 (pupa_setjmp) [PUPA_UTIL]: New macro.
48844 (pupa_longjmp) [PUPA_UTIL]: Likewise.
48845 * include/pupa/term.h (struct pupa_term): New member `refresh'.
48846 (pupa_refresh): New prototype.
48847 * include/pupa/util/getroot.h: New file.
48848 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
48849 it.
48850 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
48851 (pupa_rescue_cmd_cat): Likewise.
48852 (pupa_rescue_cmd_ls): Likewise.
48853 (pupa_rescue_cmd_testload): Likewise.
48854 (pupa_rescue_cmd_lsmod): Likewise.
48855 * normal/cmdline.c (pupa_cmdline_get): Likewise.
48856 * normal/menu.c (run_menu): Likewise.
48857 * kern/term.c (pupa_cls): Likewise.
48858 (pupa_refresh): New function.
48859 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
48860 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48861 * util/console.c: New file.
f19dbdb7 48862
1f7315a3 48863 * util/i386/pc/getroot.c: New file.
48864 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
48865 (pupa_putchar): New function.
48866 (pupa_refresh): Likewise.
48867 (xgetcwd): Function moved to ...
48868 (strip_extra_slashes): Likewise.
48869 (get_prefix): Likewise.
f19dbdb7 48870 * util/i386/pc/getroot.c: ... here.
1f7315a3 48871 (find_root_device): Function moved and renamed to...
48872 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
48873 Changed all callers.
48874 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
48875 and renamed to...
48876 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
48877 Changed all callers.
48878 * util/misc.c (pupa_memalign): New function.
48879 (pupa_mm_init_region): Likewise.
48880 (pupa_register_exported_symbols): Likewise.
48881 (pupa_putchar): Function removed.
48882 * util/pupa-emu.c: New file.
48883
9a5c1ade 488842003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
48885
48886 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
48887 (_multiboot_mod_SOURCES): New variable.
48888 (_multiboot_mod_CFLAGS): Likewise.
48889 * loader/i386/pc/multiboot.c: New file.
48890 * include/pupa/i386/pc/multiboot.h: Likewise.
48891 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
48892 (pupa_multiboot_real_boot): New function.
48893 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
48894 (pupa_multiboot_real_boot): New prototype.
48895 (pupa_rescue_cmd_multiboot): Likewise
48896 (pupa_rescue_cmd_module): Likewise.
48897
48898 * kern/loader.c (pupa_loader_set): Continue when
48899 pupa_loader_unload_func() fails.
48900 (pupa_loader_unset): New function.
48901 * include/pupa/loader.h (pupa_loader_unset): New prototype.
48902
48903 * kern/misc.c (pupa_stpcpy): New function.
48904 * include/pupa/misc.h (pupa_stpcpy): New prototype.
48905
8e72a9c0 489062003-11-12 Marco Gerards <metgerards@student.han.nl>
48907
48908 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
48909 for available extensions.
48910
48911 * include/pupa/i386/pc/time.h: New file.
48912 * kern/disk.c: Include <pupa/machine/time.h>.
48913 (PUPA_CACHE_TIMEOUT): New macro.
48914 (pupa_last_time): New variable.
48915 (pupa_disk_open): Flush the cache when there was a timeout.
48916 (pupa_disk_close): Reset the timer.
48917 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
48918 pupa_currticks.
48919 * util/misc.c: Include <sys/times.h>
48920 (pupa_get_rtc): New function.
48921
c4adbd32 489222003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48923
48924 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
48925 as blocks.
48926 (pupa_ext2_get_file_block): Use blocks member.
48927
48928 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
48929 first block. Return -1 instead of pupa_errno on error.
48930
bfd30f06 489312003-10-27 Marco Gerards <metgerards@student.han.nl>
48932
48933 * README: In the pupa-mkimage example use _chain instead of chain
48934 and ext2 instead of fat.
48935 * TODO: Replace ext2fs with jfs as an example. Add an item for
48936 adding journal playback for ext2fs.
48937 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
48938 (pkgdata_MODULES): Added ext2.mod.
48939 (ext2_mod_SOURCES): New variable.
48940 (ext2_mod_CFLAGS): Likewise.
48941 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
48942 * include/pupa/misc.h (pupa_strncpy): New prototype.
48943 (pupa_strcat): Likewise.
48944 (pupa_strncmp): Likewise.
48945 * kern/misc.c (pupa_strcat): Enable function.
48946 (pupa_strncpy): New function.
48947 (pupa_strncmp): Likewise.
48948 * fs/ext2.c: New file.
f19dbdb7 48949
bfd30f06 48950 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
48951 when the read failed before retrying.
48952 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
48953 (_FILE_OFFSET_BITS): Likewise.
48954 * configure.ac: Added AC_SYS_LARGEFILE.
48955
98d15063 489562003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48957
48958 * genmk.rb (PModule#rule): Make sure to get only symbol names
48959 from the output of nm.
59cad637 48960 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 48961
18d9c7cd 489622003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48963
48964 I forgot to check in these changes for a long time. This adds
48965 incomplete support for VGA console, and this is still very
48966 buggy. Also, a lot of consideration is required for I18N,
48967 UNICODE, and VGA font issues. Therefore, assume that this is
48968 such that "better than nothing".
f19dbdb7 48969
18d9c7cd 48970 * font/manager.c: New file.
48971 * include/pupa/font.h: Likewise.
48972 * include/pupa/i386/pc/vga.h: Likewise.
48973 * term/i386/pc/vga.c: Likewise.
48974 * util/unifont2pff.rb: Likewise.
48975
48976 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48977 (pkgdata_MODULES): Added vga.mod and font.mod.
48978 (vga_mod_SOURCES): New variables.
48979 (vga_mod_CFLAGS): Likewise.
48980 (font_mod_SOURCES): Likewise.
48981 (font_mod_CFLAGS): Likewise.
48982
48983 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48984
48985 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48986 (struct pupa_term): Added init and fini.
18d9c7cd 48987 Changed the argument of putchar to pupa_uint32_t.
48988
48989 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48990 (pupa_console_real_putchar): New prototype.
48991 (pupa_console_putchar): Removed.
48992 (pupa_console_checkkey): Exported.
48993 (pupa_console_getkey): Likewise.
48994
48995 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48996 characters.
48997
48998 * kern/term.c (pupa_term_set_current): Rewritten.
48999 (pupa_putchar): Likewise.
49000 (pupa_putcode): New function.
49001
49002 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
49003 (pupa_console_real_putchar): ... this.
49004 (pupa_vga_set_mode): New function.
49005 (pupa_vga_get_font): Likewise.
49006
49007 * normal/command.c: Include pupa/term.h.
49008 (terminal_command): New function.
49009 (pupa_command_init): Register the command "terminal".
49010
49011 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
49012 (DISP_UP): Likewise.
49013 (DISP_RIGHT): Likewise.
49014 (DISP_DOWN): Likewise.
49015 (DISP_HLINE): Likewise.
49016 (DISP_VLINE): Likewise.
49017 (DISP_UL): Likewise.
49018 (DISP_UR): Likewise.
49019 (DISP_LL): Likewise.
49020 (DISP_LR): Likewise.
49021
49022 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 49023
977329f5 490242003-02-08 NIIBE Yutaka <gniibe@m17n.org>
49025
49026 * util/resolve.c (pupa_util_resolve_dependencies): BUG
49027 FIX. Reverse the path_list.
49028
49029 * include/pupa/normal.h: Export pupa_register_command and
49030 pupa_unregister_command.
49031
49032 * hello/hello.c (pupa_cmd_hello): New module.
49033 * conf/i386-pc.rmk: Added hello.mod.
49034
1f5ab428 490352003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
49036
49037 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 49038
1f5ab428 49039 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
49040 (compress_kernel): New variable.
49041 (generate_image): Heavily modified to support compressing a
49042 large part of the core image.
49043
49044 * util/misc.c (pupa_util_read_image): Fix a file descriptor
49045 leak.
49046 (pupa_util_load_image): New function.
49047
49048 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
49049 (pupa_compressed_size): New variable.
49050 (codestart): Enable Gate A20 here.
49051 Decompress the compressed part of the core image.
49052 Rearrange the code to put functions and variables which are
49053 required for initialization in the non-compressed part.
49054 Include lzo1x.S.
49055
49056 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
49057 here.
49058
49059 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
49060
f19dbdb7 49061 * include/pupa/i386/pc/kernel.h
1f5ab428 49062 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
49063 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
49064 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49065 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49066 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
49067
49068 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
49069
49070 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
49071 (Utility#rule): Likewise.
49072
49073 * configure.ac: Check if LZO is available.
49074
ce5bf700 490752003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
49076
49077 * include/pupa/normal.h: New file.
49078 * include/pupa/setjmp.h: Likewise.
49079 * include/pupa/i386/setjmp.h: Likewise.
49080 * normal/cmdline.c: Likewise.
49081 * normal/command.c: Likewise.
49082 * normal/main.c: Likewise.
49083 * normal/menu.c: Likewise.
49084 * normal/i386/setjmp.S: Likewise.
f19dbdb7 49085
ce5bf700 49086 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
49087 (pupa_rescue_cmd_initrd): Likewise.
49088
49089 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
49090 Likewise.
49091
49092 * kern/i386/pc/startup.S (translation_table): New variable.
49093 (translate_keycode): New function.
49094 (pupa_console_getkey): Call translate_keycode.
49095
49096 * kern/rescue.c (attempt_normal_mode): New function.
49097 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
49098 it failed, print a message.
49099
49100 * kern/mm.c (pupa_real_malloc): Print more information when a
49101 free magic is broken.
49102 (pupa_free): If the first free header is not free actually, set
49103 it to P.
49104
49105 * kern/main.c (pupa_load_normal_mode): Just load the module
49106 "normal".
49107 (pupa_main): Don't print the message
49108 "Entering into rescue mode..." here.
49109
49110 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
49111 Declared.
49112 (pupa_rescue_cmd_initrd): Likewise.
49113 (pupa_rescue_cmd_initrd): Likewise.
49114
49115 * include/pupa/symbol.h (FUNCTION): Specify the type.
49116 (VARIABLE): Likewise.
49117
49118 * include/pupa/err.h (pupa_err_t): Added
49119 PUPA_ERR_UNKNOWN_COMMAND.
49120
49121 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
49122 (pupa_dl_get_prefix): Likewise.
49123
49124 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
49125 Added _chain.mod and _linux.mod instead of chain.mod and
49126 linux.mod.
49127 (chain_mod_SOURCES): Renamed to ...
49128 (_chain_mod_SOURCES): ... this.
49129 (chain_mod_CFLAGS): Renamed to ...
49130 (_chain_mod_CFLAGS): ... this.
49131 (linux_mod_SOURCES): Renamed to ...
49132 (_linux_mod_SOURCES): ... this.
49133 (linux_mod_CFLAGS): Renamed to ...
49134 (_linux_mod_CFLAGS): ... this.
49135 (normal_mod_SOURCES): New variable.
49136 (normal_mod_CFLAGS): Likewise.
49137 (normal_mod_ASFLAGS): Likewise.
49138
491392003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
49140
49141 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
49142 possible.
49143
fe6b695a 49144 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 49145 recursively.
49146 (pupa_dl_unref): Unrefer depending modules recursively.
49147 Don't call pupa_dl_unload implicitly, because PUPA can crash if
49148 a module is unloaded before one depending on that module is
49149 unloaded.
49150 (pupa_dl_unload): Unload depending modules explicitly,
49151 if possible.
49152
c04da074 491532003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49154
49155 * include/pupa/i386/pc/linux.h: New file.
49156 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 49157
c04da074 49158 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49159 Removed.
49160 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49161 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49162 of PUPA_CHAINLOADER_BOOT_SECTOR.
49163
49164 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49165 (pupa_linux_prot_size): New variable.
49166 (pupa_linux_tmp_addr): Likewise.
49167 (pupa_linux_real_addr): Likewise.
49168 (pupa_linux_boot_zimage): New function.
49169 (pupa_linux_boot_bzimage): Likewise.
49170
49171 * kern/i386/pc/init.c (struct mem_region): New structure.
49172 (MAX_REGIONS): New macro.
49173 (mem_regions): New variable.
49174 (num_regions): Likewise.
49175 (pupa_os_area_addr): Likewise.
49176 (pupa_os_area_size): Likewise.
49177 (pupa_lower_mem): Likewise.
49178 (pupa_upper_mem): Likewise.
49179 (add_mem_region): New function.
49180 (compact_mem_regions): Likewise.
49181 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49182 the size of the conventional memory and that of so-called upper
49183 memory (before the first memory hole).
49184 Instead of adding each found region to free memory, use
49185 add_mem_region and add them after removing overlaps.
49186 Also, add only 1/4 of the upper memory to free memory. The rest
49187 is used for loading OS images. Maybe this is ad hoc, but this
49188 makes it much easier to relocate OS images when booting.
49189
49190 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49191 (pupa_enter_rescue_mode): Don't register initrd and module.
49192
49193 * kern/mm.c: Include pupa/dl.h.
49194
49195 * kern/main.c: Include pupa/file.h and pupa/device.h.
49196
49197 * kern/loader.c (pupa_loader_load_module_func): Removed.
49198 (pupa_loader_load_module): Likewise.
49199
49200 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49201 ``.o''.
49202
49203 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49204 (pupa_linux_tmp_addr): Likewise.
49205 (pupa_linux_real_addr): Likewise.
49206 (pupa_linux_boot_zimage): Likewise.
49207 (pupa_linux_boot_bzimage): Likewise.
49208
49209 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49210 (pupa_upper_mem): Likewise.
49211 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49212 module is too dangerous.
49213
49214 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49215 (pupa_os_area_size): Likewise.
49216 (pupa_loader_set): Remove the first argument. Loader doesn't
49217 manage modules or initrd any longer.
49218 (pupa_loader_load_module): Removed.
49219
49220 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49221 (linux_mod_SOURCES): New variable.
49222 (linux_mod_CFLAGS): Likewise.
49223
a13f9237 492242003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49225
49226 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49227 the length of a blocklist correctly.
49228
49229 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49230 Use ioctl only if the OS file is a block device.
49231 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49232 not very useful for normal files.
49233
49234 * kern/main.c (pupa_set_root_dev): New function.
49235 (pupa_load_normal_mode): Likewise.
49236 (pupa_main): Call those above.
49237
49238 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49239 pupa_uint16_t.
49240
49241 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49242
a5ffe966 492432003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49244
49245 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49246 (setup): Configure the installed partition information and the
49247 dl prefix.
49248
49249 * loader/i386/pc/chainloader.c (my_mod): New variable.
49250 (pupa_chainloader_unload): New function.
49251 (pupa_rescue_cmd_chainloader): Refer itself.
49252 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49253
49254 * kern/i386/pc/startup.S (install_partition): Removed.
49255 (version_string): Likewise.
49256 (config_file): Likewise.
49257 (pupa_install_dos_part): New variable.
49258 (pupa_install_bsd_part): Likewise.
49259 (pupa_prefix): Likewise.
49260 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49261
49262 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49263 and pupa/misc.h.
49264 (make_install_device): New function.
49265 (pupa_machine_init): Set the dl prefix.
49266
49267 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49268 (buf): Renamed to ...
49269 (linebuf): ... this.
49270 (pupa_rescue_cmd_prefix): New function.
49271 (pupa_rescue_cmd_insmod): Likewise.
49272 (pupa_rescue_cmd_rmmod): Likewise.
49273 (pupa_rescue_cmd_lsmod): Likewise.
49274 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49275 rmmod and lsmod.
49276
49277 * kern/mm.c (pupa_memalign): If failed even after invalidating
49278 disk caches, unload unneeded modules and retry.
49279
49280 * kern/misc.c (pupa_memmove): New function.
49281 (pupa_memcpy): Removed.
49282 (pupa_strcpy): New function.
49283 (pupa_itoa): Made static.
49284
49285 * kern/dl.c (pupa_dl_iterate): New function.
49286 (pupa_dl_ref): Likewise.
49287 (pupa_dl_unref): Likewise.
49288 (pupa_dl_unload): Return if succeeded or not.
49289 (pupa_dl_unload_unneeded): New function.
49290 (pupa_dl_unload_all): Likewise.
49291 (pupa_dl_init): Renamed to ...
49292 (pupa_dl_set_prefix): ... this.
49293 (pupa_dl_get_prefix): New function.
49294
49295 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49296 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49297 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49298 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49299 (pupa_install_dos_part): Declared.
49300 (pupa_install_bsd_part): Likewise.
49301 (pupa_prefix): Likewise.
49302 (pupa_boot_drive): Likewise.
49303
49304 * include/pupa/types.h: Fix a typo.
49305
49306 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49307 pupa_memmove.
49308 (pupa_memmove): Declared.
49309 (pupa_strcpy): Likewise.
49310
49311 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49312 pupa_mod_init takes one argument, its own module.
49313 (pupa_dl_unload_unneeded): Declared.
49314 (pupa_dl_unload_all): Likewise.
49315 (pupa_dl_ref): Likewise.
49316 (pupa_dl_unref): Likewise.
49317 (pupa_dl_iterate): Likewise.
49318 (pupa_dl_init): Renamed to ...
49319 (pupa_dl_set_prefix): ... this.
49320 (pupa_dl_get_prefix): Declared.
49321
49322 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 49323 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 49324 unloaded.
49325 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49326 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49327
49328 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49329 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49330
012d7999 493312003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49332
49333 * util/i386/pc/pupa-setup.c (setup): Define the internal
49334 function find_first_partition_start at the top level, because GCC
49335 3.0.x cannot compile internal functions in deeper scopes
49336 correctly.
49337 (find_root_device): Use lstat instead of stat.
49338 Don't follow symbolic links.
49339 Fix the path-constructing code.
49340
49341 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49342 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49343 by a BLKGETSIZE ioctl first, because block devices don't fill
49344 the member st_mode of the structure stat on Linux.
49345 [__linux__] (linux_find_partition): Use a temporary buffer
49346 REAL_DEV for the working space. Copy it to DEV before returning.
49347 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49348 buffer cache consistent.
49349 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49350 strncmp. The previous value was merely wrong.
49351 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49352
49353 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49354 FAT size is 12. The previous value was merely wrong.
49355
49356 * kern/main.c (pupa_main): Don't split the starting message from
49357 newlines.
49358
49359 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49360 LF, because BIOS goes crazy about character attributes in this
49361 case.
49362
1cc73a62 493632003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49364
49365 * include/i386/pc/util/biosdisk.h: New file.
49366 * util/i386/pc/biosdisk.c: Likewise.
49367 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 49368
1cc73a62 49369 * Makefile.in (INCLUDE_DISTFILES): Added
49370 include/pupa/i386/pc/util/biosdisk.h.
49371 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49372 directory util/i386/pc.
49373 (install-local): Added a rule for sbin_UTILITIES.
49374 (uninstall): Likewise.
49375
49376 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49377
49378 * util/misc.c (xrealloc): New function.
49379 (pupa_malloc): Likewise.
49380 (pupa_free): Likewise.
49381 (pupa_realloc): Likewise.
49382 (pupa_stop): Likewise.
49383 (pupa_putchar): Likewise.
49384
49385 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49386
49387 * include/pupa/util/misc.h (xrealloc): Declared.
49388
49389 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49390 macro.
49391 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49392 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49393
49394 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49395 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49396
49397 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49398 way should be implemented.
49399 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49400
49401 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49402 the size of NAME for safety.
49403 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49404 0x88.
49405
49406 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49407 (pupa_setup_SOURCES): Likewise.
49408
49409 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49410
08b70fe8 494112002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49412
49413 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49414 bunch of pushl's from pusha, because this destroys the return
49415 value.
49416
62ddcc8f 494172002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49418
49419 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49420 This means that any missing prototypes could be fatal. Also, you
49421 must take care when writing assembly code. See the comments at
49422 the beginning of startup.S, for more details.
f19dbdb7 49423
62ddcc8f 49424 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49425 compilation mechanism.
49426 (pupa_chainloader_real_boot): Likewise.
49427 (pupa_biosdisk_rw_int13_extensions): Likewise.
49428 (pupa_biosdisk_rw_standard): Likewise.
49429 (pupa_biosdisk_check_int13_extensions): Likewise.
49430 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49431 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49432 (pupa_get_memsize): Likewise.
49433 (pupa_get_mmap_entry): Likewise.
49434 (pupa_console_putchar): Likewise.
49435 (pupa_console_setcursor): Likewise.
49436 (pupa_getrtsecs): Use pushl instead of push.
49437
49438 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49439 memory instead of the stack for a mmap entry, because some
49440 BIOSes may ignore the maximum size and overflow.
49441
49442 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
49443
49444 * genmk.rb (PModule#rule): Compile automatically generated
49445 sources with module-specific CFLAGS as well as other sources.
49446
9962ed99 494472002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49448
49449 * configure.ac: Check ld.
49450 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
49451 respectively, before checking endianness and sizes.
49452
49453 * Makefile.in (LD): New variable.
f19dbdb7 49454
abdfc3c5 494552002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49456
49457 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
49458
6a161fa9 494592002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49460
49461 * Changelog: New file.
49462