]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* .gitignore: Only ignore grub-mk* at the top level.
[grub2.git] / ChangeLog
CommitLineData
59ba9d14
CW
12013-11-15 Colin Watson <cjwatson@debian.org>
2
3 * .gitignore: Only ignore grub-mk* at the top level.
4
23012db9
CW
52013-11-15 Colin Watson <cjwatson@ubuntu.com>
6
7 * util/grub-reboot.in (usage): Fix a typo.
8
6fcec439
VS
92013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Replace libgcc version of ctz with our own.
12
13 On upcoming arm64 port libgcc ctz* are not usable in standalone
14 environment. Since we need ctz* for this case and implementation is
15 in C we may as well use it on all concerned platforms.
16
a9f25a08
VS
172013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * configure.ac: Probe for linking format rather than guessing it based
20 on target_os.
21
c7995256
VS
222013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
25 "1" prior to handoff.
26
27 Reported by: M A Young.
28
e1aa5b66
VS
292013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
32 \0 to all files.
33
34 Reported by: M A Young.
35
da5ed5cf
VS
362013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
39 compilation on NetBSD.
40
5757a93e
VS
412013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * acinclude.m4: Don't add -P on initial nm test.
44
45 Note: even though this patch postdates Andrey's it bears 14 Nov as
46 date due to timezone difference.
47
a5986276
AB
482013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
49
50 * grub-core/Makefile.core.def (signature_test): Add missing
51 tests/signatures.h.
52
0de172a0
CW
532013-11-14 Colin Watson <cjwatson@ubuntu.com>
54
55 * util/grub-install_header: Set localedir here, since this file is
56 where it's used.
57 * util/grub-install.in: Remove setting of localedir.
58 * util/grub-mkrescue.in: Likewise.
59
da45f43c
VS
602013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
63
20aea949
VS
642013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
65
66 * configure.ac: Move nm checks to the end.
67 Call grub_PROG_NM_WORKS.
68 * acinclude.m4: New check grub_PROG_NM_WORKS.
69 Use $TARGET_CFLAGS -c when compiling test binary.
70
1326b9ae
CW
712013-11-14 Colin Watson <cjwatson@ubuntu.com>
72
73 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
74 unused variables.
75
1fe26ab4
MG
762013-11-14 Matthew Garrett <mjg@redhat.com>
77
78 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
79 cmdpath to firmware directory.
80
83e9c273
VS
812013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
84 at the start of second iteration.
85
ec525c18
VS
862013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
89
93fcc7ad
VS
902013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * Makefile.am (default_payload.elf): New target for easier coreboot
93 build.
94
57ffe934
VS
952013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
98 clang (not necessarry with -no-integrated-as).
99 * include/grub/symbol.h [__arm__]: Likewise.
100
2312f06c
VS
1012013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * configure.ac: Use -no-integrated-as on arm with clang.
104 * INSTALL: Mention ARM compilation with clang.
105
2416415c
VS
1062013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
109 -mthumb-interwork.
110
5da55172
CW
1112013-11-14 Colin Watson <cjwatson@ubuntu.com>
112
113 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
114 code for indirect block handling.
115
116 Saves 185 bytes on compressed image.
117
da770328
PFS
1182013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
119
120 Fix make clean.
121
122 * Makefile.am: Remove build-grub-* in make clean.
123
f02e6b56
PFS
1242013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
125
126 New files to gitignore.
127
128 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
129 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
130
035a26c1
LL
1312013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
132
133 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
134
bc8a6137
LL
1352013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
136
137 * .gitignore: fix rules for .dep* and add *.a post git migration
138
6fe506b0
CW
1392013-11-13 Colin Watson <cjwatson@ubuntu.com>
140
141 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
142 to match INSTALL.
143
81a2e438
CW
1442013-11-13 Colin Watson <cjwatson@ubuntu.com>
145
146 * grub-core/kern/misc.c: Don't redirect divisions in the
147 GRUB_UTIL case.
148 * include/grub/misc.h: Likewise.
149
9b45c073
CW
1502013-11-13 Colin Watson <cjwatson@ubuntu.com>
151
152 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
153 systems that require checking the return value of write.
154
11b2a9b7
CW
1552013-11-13 Colin Watson <cjwatson@ubuntu.com>
156
157 * util/grub-install.in (efi_quiet): Fix inverted logic: make
158 efibootmgr quiet when --debug is not used, rather than when it is.
159
d743d22d
CW
1602013-11-13 Colin Watson <cjwatson@ubuntu.com>
161
162 * gentpl.py (define_macro_for_platform_dependencies): Remove
163 first (and thus unused) of two definitions for this function.
164 (platform_dependencies): Likewise.
165
11da14b5
CW
1662013-11-13 Colin Watson <cjwatson@ubuntu.com>
167
168 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
169 functions, we only need to check this for the target, not the host.
170 * configure.ac (grub_apple_cc): Likewise.
171
2bdd0719
VS
1722013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
173
174 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
175 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
176 asm to stay in arm even if surrounding is thumb.
177
5e77d9cf
VS
1782013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
181 helper functions are needed for thumb.
182
7d511625
VS
1832013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
186 level / 3 division explicitly unsigned. Saves few bytes.
187
81023dbd
VS
1882013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
191
b2e9294f
VS
1922013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
195 division.
196
16a22c38
VS
1972013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
200 grub_uboot_boot_data to asm part.
201
c9cd02c9
VS
2022013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
205 literal load.
206 (grub_uboot_syscall): Save/restore r9 and align stack.
207
81498615
VS
2082013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
209
210 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
211
ea57de18
VS
2122013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
215 occurencies with END.
216
d0d1e3da
CW
2172013-11-13 Colin Watson <cjwatson@ubuntu.com>
218
219 * util/grub-editenv.c (help_filter, argp): Document how to delete
220 the whole environment block.
221 Reported by Dan Jacobson. Fixes Debian bug #726265.
222
3809f016
CW
2232013-11-13 Colin Watson <cjwatson@ubuntu.com>
224
225 * docs/grub.texi (Internationalisation, Supported kernels): Fix
226 sectioning.
227
46d8a203
JT
2282013-11-13 Josh Triplett <josh@joshtriplett.org>
229
230 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
231 increment/decrement.
232
513eeb61
VS
2332013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
236 compiling with clang.
237
bc379c1a
VS
2382013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
241 ".".
242
2432013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 244
16057d6b
VS
245 Redirect all divisions to grub_divmod64.
246
f649a6a8
VS
2472013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
250
ef28ee8b
VS
2512013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
252
253 Add missing includes of loader.h.
254
300f48c5
VS
2552013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * configure.ac: Allow disabling themes.
258
2d357558
LS
2592013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
260
261 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
262
0c62a5b2
VS
2632013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
264
265 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
266 until it becomes operational.
267
b0720b49
VS
2682013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
269
270 * grub-core/Makefile.core.def (legacy_password_test): Disable
271 on platforms where no legacycfg is compiled.
272 * grub-core/tests/lib/functional_test.c: Tolerate failure to
273 load legacy_password_test.
274
d5bab2c0
VS
2752013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
278
3ea0ccb3
VS
2792013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * grub-core/efiemu/prepare.c: Remove variable length arrays.
282
08772054
VS
2832013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
284
285 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
286 strict-aliasing warning.
287 (fsync): Silence cast warning.
288
1dcb2715
VS
2892013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * grub-core/commands/verify.c: Remove variable length arrays.
292 Load gcry_dsa/gcry_rsa automatically.
293
61c22fdf
VS
2942013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
295
296 * grub-core/tests/signature_test.c: New test.
297
431e57a7
VS
2982013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
299
300 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
301 API.
302
b521bb81
VS
3032013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * grub-core/tests/legacy_password_test.c (vectors): Make static.
306 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
307
7d06b24e
VS
3082013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
311
3bbeade4
VS
3122013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/fs/proc.c: Allow \0 in proc files.
315
ba82db7a
VS
3162013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
319
801564c8
VS
3202013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
323
ac8cac1d
VS
3242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * grub-core/fs/ext2.c: Remove variable length arrays.
327
4b85f122
VS
3282013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
331 length arrays.
332
c35fcdc0
VS
3332013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
336 * grub-core/disk/cryptodisk.c: Likewise.
337 * grub-core/disk/geli.c: Likewise.
338 * grub-core/disk/luks.c: Likewise.
339
15decd26
VS
3402013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
341
342 * grub-core/tests/legacy_password_test.c: New test.
343 * grub-core/commands/legacycfg.c: Remove variable length arrays.
344
9c6482b8
VS
3452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
346
347 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
348
41f26e0e
VS
3492013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/tests/pbkdf2_test.c: New test.
352
2def6616
VS
3532013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
356
9e34a34e
VS
3572013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * grub-core/io/lzopio.c: Remove variable length arrays.
360
5ccaf904
VS
3612013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * include/grub/crypto.h: Add maximums on hash size and cipher block
364 size.
365
44a387e0
VS
3662013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
369
a388e255
VS
3702013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/tests/xnu_uuid_test.c: New test.
373
a1ef7718
VS
3742013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
377 covers it).
378
65ddb300
VS
3792013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * grub-core/commands/hashsum.c: Remove variable length arrays.
382
31747dd5
VS
3832013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
386 condition.
387 * tests/grub_func_test.in: Increase memory allocation.
388
6a74c4df
VS
3892013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
390
391 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
392 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
393 sys/mount.h.
394
394c3e0a
VS
3952013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
396
397 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
398 (grub_util_get_fd_size_os): ...this.
399 (grub_hostdisk_flush_initial_buffer): New empty function.
400
60d31116
VS
4012013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/gensyminfo.sh.in: Handle the case of portable output
404 without --defined-only.
405
8445b011
VS
4062013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
409 rip-relative addressing in prologue.
410
8506a641
VS
4112013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
414 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
415
66acd9d6
VS
4162013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
417
418 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
419 Add missing semicolon.
420
348d0535
VS
4212013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
424
0d2d30bb
VS
4252013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * configure.ac: Check for lzma.h for enabling liblzma and allow
428 manual disabling.
429
631187be
VS
4302013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
431
432 Add missing includes of loader.h.
433
e756ec82
FZ
4342013-11-11 Fam Zheng <famcool@gmail.com>
435
436 * util/grub.d/30_os-prober.in: Add minix entry.
437
87d62d7d
VS
4382013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
441 right buffer for temporary load.
442
5460cfeb
VS
4432013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
446
89977306
VS
4472013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
450 payload.
451
3617c59b
VS
4522013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
455 not Types.h.
456 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
457 environment.
458 (LzmaDec_InitDicAndState): Make static.
459
881c6a10
VS
4602013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
463
2024ade2
VS
4642013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
467
468 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
469
674ad4f6
VS
4702013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
471
472 * docs/grub-dev.texi: Replace bzr references with git ones.
473
5b99970e
AB
4742013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
475
476 * docs/grub.texi (Simple configuration): Remove reference to
477 grub-reboot from saved default entry description - grub-default
478 does not use it anymore.
479
3c2304d5
VS
4802013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * configure.ac: Make efiemu test cflags match the cflags efiemu is
483 compiled with.
484
80cfd940
AB
4852013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
486
487 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
488
33690255
VS
4892013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
490
491 Fix grub_machine_fini bitrot.
492
493 Reported by: Glenn Washburn.
494
c61471fc
VS
4952013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
498
54da019f
VS
4992013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
502 -DELF.
503 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
504 instead of ELF*.
505
5062013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
507
508 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
509 Add -march=core2 when testing compile of efiemu64.
510
511 Thanks Andrey Borzenkov for spotting this.
512
9612ebc0
VS
5132013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
514
515 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
516 XEN PV environment and load kernels.
517
1a46a3a4
VS
5182013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
521 * grub-core/loader/multiboot_mbi2.c: Likewise.
522
2df12551
VS
5232013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
526 handling.
527
3c980381
VS
5282013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
531
532 Tested by: Denis 'GNUtoo' Carikli.
533
800f63d3
VS
5342013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
537
9f8acdaa
VS
5382013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
539
5620eb53
VS
540 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
541 Use to get rounded angle rather than truncated.
542
5432013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
546 RTS/CTS flow control.
547
2dc1eb6c
VS
5482013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
551 divisions.
552
b9563c94
VS
5532013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
556 Use grub_fatal rather than divide by zero.
557 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
558
d6d8e9a9
VS
5592013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
562 truncate.
563 (grub_fixed_fsf_divide): Likewise.
564
d06de6c8
VS
5652013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
566
567 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
568 division by-zero and senseless negative divisions.
569
6af7d49b
VS
5702013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
573 division by-zero and senseless negative divisions.
574 (circprog_set_property): Don't accept negative num_ticks.
575
bcfa6d72
VS
5762013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
579 division by-zero and senseless negative divisions.
580
dd7f792c
VS
5812013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * configure.ac: Use elf_*_fbsd on kfreebsd.
584
d061fda7
VS
5852013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * grub-core/tests/div_test.c: New test.
588
4db22500
VT
5892013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
590
591 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
592 * grub-core/gfxmenu/gui_canvas.c: Likewise.
593 * grub-core/gfxmenu/view.c: Likewise.
594 * grub-core/video/fb/video_fb.c: Introduce new functions:
595 grub_video_set_area_status, grub_video_get_area_status,
596 grub_video_set_region, grub_video_get_region.
597 * grub-core/video/bochs.c: Likewise.
598 * grub-core/video/capture.c: Likewise.
599 * grub-core/video/video.c: Likewise.
600 * grub-core/video/cirrus.c: Likewise.
601 * grub-core/video/efi_gop.c: Likewise.
602 * grub-core/video/efi_uga.c: Likewise.
603 * grub-core/video/emu/sdl.c: Likewise.
604 * grub-core/video/radeon_fuloong2e.c: Likewise.
605 * grub-core/video/sis315pro.c: Likewise.
606 * grub-core/video/sm712.c: Likewise.
607 * grub-core/video/i386/pc/vbe.c: Likewise.
608 * grub-core/video/i386/pc/vga.c: Likewise.
609 * grub-core/video/ieee1275.c: Likewise.
610 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
611 * include/grub/video.h: Likewise.
612 * include/grub/video_fb.h: Likewise.
613 * include/grub/fbfill.h: Updated render_target structure.
614 grub_video_rect_t viewport, region, area
615 int area_offset_x, area_offset_y, area_enabled
616 * include/grub/gui.h: New helper function
617 grub_video_bounds_inside_region.
618 * docs/grub-dev.texi: Added information about new functions.
619
c6b755df
VS
6202013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
623 for alignment.
624
e2a68100
VS
6252013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
628 missing attribute.
629 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
630
c4f11a2a
VS
6312013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
634 simple division on arm and ia64.
635
e0a7bffa
VS
6362013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
639 link with libgcc.
640
38b864ea
VS
6412013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
644
12359faf
VS
6452013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
646
647 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
648 prefix symbol, not @.
649
9fdc64a9
VS
6502013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * INSTALL: Add note about older gcc and clang.
653
665c575b
VS
6542013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
657
47dcf7b1
VS
6582013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
659
660 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
661 NULL pointer dereference.
662
d59849b2
VS
6632013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
666 clang.
667
7a3f4a18
VS
6682013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
671 warnings.
672
7f084087
VS
6732013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
676 function.
677 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
678 * grub-core/disk/geli.c (ascii2hex): Likewise.
679
d5524ca8
VS
6802013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * configure.ac: Run linker tests without -Werror.
683 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
684 Change all occurences of -static-libgcc resp -lgcc to
685 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
686
390cd7ca
VS
6872013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
690
60375a88
VS
6912013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
692
693 Allow compiling with clang (not really supported though).
694
695 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
696 unconditionally.
697 * configure.ac: Add -no-integrated-as when using clangfor asm files.
698 Add -mrtd -mregparm=3 on i386 when not using clang.
699 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
700
dd07e0c4
VS
7012013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
704 bindings.
705 * grub-core/lib/reed_solomon.c: Likewise.
706 * include/grub/i386/gdb.h: Likewise.
707 * include/grub/i386/pc/int.h: Likewise.
708 * include/grub/i386/pc/pxe.h: Likewise.
709 * include/grub/ieee1275/ieee1275.h: Likewise.
710
9d3ae8ec
VS
7112013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
712
713 Import libgcrypt 1.5.3.
714
c12936c5
VS
7152013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * configure.ac: Don't add -Wcast-align on x86.
718
cdc17f60
VS
7192013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * configure.ac: Add -freg-struct-return on all platforms that
722 support it.
723
b35ec299
VS
7242013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * acinclude.m4: Use -Werror on parameter tests.
727 * configure.ac: Likewise.
728
05f3a0d7
VS
7292013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
732
c966a489
VS
7332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * configure.ac: Check that -malign-loops works rather than assuming that
736 either -falign-loops or -malign-loops work.
737
bb0c57ec
VS
7382013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * configure.ac: Remove -fnested-functions. We don't need it anymore.
741
24f4e57c
VS
7422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * configure.ac: Prevent cflags leaking to subsequent tests by always
745 resetting cflags to target_cflags in target tests.
746
ac319fbc
VS
7472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
748
749 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
750 function.
751
4bfe934c
VS
7522013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
755
40a5bfde
VS
7562013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
759
a67c755e
VS
7602013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/normal/cmdline.c (grub_cmdline_get):
763 Remove nested functions.
764
87a04a2d
VS
7652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * tests/test_sha512sum.in: Make it work on emu.
768
c03995d2
VS
7692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
772 functions.
773 (grub_bidi_line_logical_to_visual): Likewise.
774
ec0ebb3f
VS
7752013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
776
777 Remove vestiges of -Wunsafe-loop-optimisations.
778
779 * conf/Makefile.common (CFLAGS_GNULIB): Remove
780 -Wno-unsafe-loop-optimisations.
781 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
782 pragma.
783 * grub-core/io/gzio.c: Likewise.
784 * grub-core/script/parser.y: Likewise.
785 * grub-core/script/yylex.l: Likewise.
786 * util/grub-mkfont.c: Likewise.
787
6ab537e3
VS
7882013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * util/grub-mkfont.c (process_cursive): Remove nested function.
791
e6c368d4
VS
7922013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
795 (grub_boot_time): Likewise.
796
4f1cfd22
VS
7972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * include/grub/symbol.h (FUNCTION): Use @function rather than
800 "function".
801 (VARIABLE): Likewise.
802
6d5a4cee
VS
8032013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
806
f06c2172
VS
8072013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
810 (parse_dhcp_vendor): Likewise.
811
7cb24eb5
VS
8122013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
815
f30c692c
VS
8162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/gettext/gettext.c (main_context), (secondary_context):
819 Define after defining type and not before.
820
8b66bb5d
VS
8212013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
824 type.
825 (grub_gcm_decrypt): Likewise.
826 (algo_decrypt): Likewise.
827 (grub_zfs_decrypt_real): Transform error type.
828
5d17fd0f
VS
8292013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
832
ac35a0f7
VS
8332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
834
835 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
836 (grub_usbms_cbi_reset): Likewise.
837 (grub_usbms_bo_reset): Likewise.
838 (grub_usbms_reset): Likewise.
839 (grub_usbms_attach): Likewise.
840 (grub_usbms_transfer_cbi): Likewise.
841
3ee08697
VS
8422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
843
844 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
845 "checksum = checksum;".
846
70bb6c85
VS
8472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
850 entry_type.
851
c7f34744
VS
8522013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
855 BIOS disk check.
856
3f63b4d8
VS
8572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
860 type.
861 (grub_ehci_fini_hw): Likewise.
862 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
863
dac6ce73
VS
8642013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
867 return grub_usb_err_t for cosistency. All users updated.
868
5701750c
VS
8692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
872 assigning to itself.
873
9e236169
GLD
8742013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
8752013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
876
877 Issue separate DNS queries for ipv4 and ipv6
878
879 Adding multiple questions on a single DNS query is not supportted by
880 most DNS servers. This patch issues two separate DNS queries
881 sequentially for ipv4 and then for ipv6.
882
883 Fixes: https://savannah.gnu.org/bugs/?39710
884
885 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
886 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
887 * (grub_net_dns_lookup): Now using separated dns packages.
888 * (grub_cmd_nslookup): Add error condition.
889 * (grub_cmd_list_dns): Print DNS option.
890 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
891 --prefer-ipv4, and --prefer-ipv6.
892 * include/grub/net.h (grub_dns_option_t): New enum.
893 * (grub_net_network_level_address): option added.
894
339eacce
VT
8952013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
896
897 * grub-core/video/fb/video_fb.c: Merge two blit functions
898 into one.
899
810f991b
VS
9002013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
901
902 * grub-core/term/terminfo.c: Add sequences for home and end.
903
386571a2
VS
9042013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
907 graphics console.
908
3fe63754
VS
9092013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
912 add mode 0x12.
913
76681e71
VS
9142013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
917 e-mail by Per Öberg.
918
46522fb7
VS
9192013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
922 name.
923
e7d09ac4
AB
9242013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
925
926 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
927 emu platforms.
928 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
929
67508925
VS
9302013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * docs/grub.texi: Document usage of menuentry id.
933
0c62124e
VS
9342013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
937
9b5d4eed
PL
9382013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
939
940 * grub-core/commands/i386/nthibr.c: New command.
941
79054c1d
VS
9422013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
945
44d47bbe
VS
9462013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
949 coordinate.
950
323de05b
VS
9512013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
952
953 Support GRUB_DISABLE_SUBMENU config.
954
955 Inspired by patch from Prarit Bhargava.
956
5a01722e
VS
9572013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * docs/grub.texi: Mention RSA support.
960
1106c3f0
VS
9612013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * grub-core/commands/verify.c: Add RSA support.
964
a1dcc2cb
VS
9652013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
968 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
969 device is known to be ATAPI.
970
ee7fb780
MF
9712013-11-03 Mike Frysinger <vapier>
972
973 * configure.ac: Don't add target-prefix.
974
5ade4a42
VS
9752013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
978 variables.
979
6cd66043
VS
9802013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
983 if language is English.
984
090d7c81
VS
9852013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
986
987 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
988
dd614590
VS
9892013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * configure.ac: Don't add -m32/-m64 on emu.
992
a8686589 9932013-11-02 neil
994
995 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
996 broken linux headers.
997
fb9f12a0
VS
9982013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
1001
e25f8e1f
VS
10022013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
1005 Reed-Solomon recovery if more than half of redundancy info is 0.
1006
4685200f
VS
10072013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * util/grub-mount.c: Handle symlinks to directories.
1010
1397f0b5
VS
10112013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
1014 find_file recursively for symlink.
1015
8b3e6eb6
VS
10162013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * tests/util/grub-shell.in: Copy themes.
1019
a0c9d5c6
VS
10202013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
1023
5cf9459c
VS
10242013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * configure.ac: Use 0x8000 for address instead of 8000.
1027
e7b66a28
VS
10282013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
1031 signature.
1032
203f53fb
VS
10332013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
1036 variable.
1037
02663ee9
VS
10382013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
1041
f169f65e
VS
10422013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
1045 file_progress_read_hook.
1046 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
1047
2855a0fc
VS
10482013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
1051 and double.
1052
bf0f3a8c
VS
10532013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
1056
cb72aa18
VS
10572013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 Rewrite blocklist functions in order to get progress when
1060 reading large extents and decrease amount of blocklist hook calls.
1061
896f9135
VS
10622013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
1065 of SI suffixes.
1066
89295a06
VS
10672013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 Support --base-clock for serial command to handle weird cards with
1070 non-standard base clock.
1071
eb03ede0
VS
10722013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
1075 strncpy.
1076 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
1077 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
1078 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
1079 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
1080 + strcpy rather than strncpy.
1081
8fbe5c7d
VS
10822013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
1085 (check_pool_label): Likewise. Fixes overflow.
1086 (nvlist_find_value): Fix comparison.
1087
e54b8f53
VS
10882013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 * include/grub/misc.h (grub_strcat): Removed. All users changed to
1091 more appropriate functions.
1092
fa9b3dca
VS
10932013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
1096 realloc.
1097
9a021c55
VS
10982013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 * util/grub-mkrescue.in: Do not use UUID search on EFI.
1101
80e8b13a
VS
11022013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
1105 on core size.
1106
b61599ac
VS
11072013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
1110
a602dc54
VS
11112013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
1114 (initialize_tables): reset tl and td to NULL after freeing.
1115
93c12075
VS
11162013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
1119
1ca4b75e
VS
11202013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
1123 of supported tags.
1124
329550c4
VS
11252013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
1128
00bfa988
VS
11292013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * grub-core/loader/multiboot.c: Add support for multiboot kernels
1132 quirks.
1133
81afc5cc
VS
11342013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
1137 a page in protected space.
1138
cb3c4a47
VS
11392013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
1142 allocate space for zero-sized modules.
1143
954f7bf5
VS
11442013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
1147
526d3d25
FL
11482013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
1149
1150 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
1151
74124c34
VS
11522013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
1155 safeguards. Fixes a crash with i386/pc/console.c.
1156
5177391e
VS
11572013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
1160 and grub_hostfs_init.
1161
64db14b0
VS
11622013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
1165 windows method on other platforms without good stat as well.
1166
effe2036
VS
11672013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
1170
82591fa6 11712013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 1172
82591fa6
VS
1173 Make / in btrfs refer to real root, not the default volume.
1174 Modify mkrelpath to work even if device is mounted with subvolid option.
1175
11762013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
1177
1178 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
1179 extra_dist.
1180 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
1181 extra_dist.
1182
30fd7198
VS
11832013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
1186 fails.
1187
8d179dae
BC
11882013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
1189
1190 * docs/autoiso.cfg: New file.
1191
3bc9c8cf
VS
11922013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
1195 COND_GRUB_PE2ELF conditions.
1196
8b46b0ea
VS
11972013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
1200 "vnd", "rd" and "fd" disks.
1201
442b86de
VS
12022013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Move grub_disk_write out of kernel into disk.mod.
1205
04dea7e6
VS
12062013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
1209 handling.
1210
12112013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
1212
1213 * grub-core/kern/misc.c (grub_abort): Make static
1214
04dea7e6 12152013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
1216
1217 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
1218 transform invalid unicode codepoints.
1219
04dea7e6 12202013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
1221
1222 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1223 \0 checking.
1224
03dcac7f
VS
12252013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
1228
c81acb7f
VS
12292013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 Consolidate cpuid code.
1232
c1bee646
VS
12332013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 Move cpuid code to cpuid.h and TSC code to tsc.c.
1236
f37bf9c7
GS
12372013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1238
1239 * util/grub.d/00_header.in: Don't use LANG if it's not set.
1240
4021132b
GS
12412013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1242
1243 * util/grub-mkconfig.in: Replace $0 with $self.
1244 * util/grub-reboot.in: Likewise.
1245 * util/grub-set-default.in: Likewise.
1246
3ace8d75
BC
12472013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1248
1249 * docs/osdetect.cfg: New file.
1250
1e6ad6a6
BC
12512013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1252
1253 * tests/util/grub-shell.in: Add new --debug option.
1254
188929eb
BC
12552013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1256
1257 * tests/test_unset.in: New test.
1258
7994a09a
BC
12592013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1260
1261 * tests/test_sha512sum.in: New test.
1262
2a8a7585
VS
12632013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
1266 * include/grub/misc.h: Remove strncat.
1267 * grub-core/lib/posix_wrap/string.h: Likewise.
1268
cf8d6bbd
VS
12692013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
1272 Try to handle more than 0xFFFF packets.
1273 Reported by: Bernhard Übelacker <bernhardu>.
1274 He also spotted few overflows in first version of this patch.
1275
6d1fc99a
VS
12762013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 * tests/date_unit_test.c: New test.
1279
10bafa1c
VS
12802013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
1283 of first three years after start of validity of unixtime.
1284
b1c6d037
VS
12852013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
1288 division as the one making more sense.
1289 (update_screen): Likewise.
1290 (complete): Likewise.
1291
5f4028d4
VS
12922013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
1295
a2856736
VS
12962013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 Make char and string width grub_size_t rather than grub_ssize_t.
1299
0a7e52b2
VS
13002013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
1303 unsigned.
1304 (grub_history_replace): Likewise.
1305
42829573
VS
13062013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
1309 appropriate.
1310
3523b8d8
VS
13112013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
1314 appropriate.
1315
d43c6489
VS
13162013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
1319 Use unsigned divisions rather than signed variants.
1320
f690f8b0
VS
13212013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/video/readers/png.c (grub_png_convert_image): Use
1324 unsigned arithmetics.
1325 Add missing break.
1326
74ff2c05
VS
13272013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
1330
fb56391e
VS
13312013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
1334 rather than signed one.
1335 (recovery): Likewise.
1336
40f29060
VS
13372013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
1340
c64577a5
VS
13412013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
1344 than signed.
1345
c16535a8
JM
13462013-10-25 Jon McCune <jonmccune@google.com>
1347
1348 * docs/grub.texi: Cleanup security documentation around signatures.
1349
6673d8e7
VS
13502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
1353
a105d375
VS
13542013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
1357 than int.
1358
af81ed88
VS
13592013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
1362 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
1363 functions when compiling for kernel.
1364
ea899a57
VS
13652013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
1368 unsigned long long when using %llu.
1369
c6dc6fa1
VS
13702013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
1373 terminal after updating progress.
1374
ad2dc003
VS
13752013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
1378 argument. We don't disable Gate A20 in this code.
1379
b46684ae
VS
13802013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
1383 Conceptually based on change in branch "vbe-on-coreboot".
1384
f70d5c07
RM
13852013-10-24 Robert Millan <rmh@gnu.org>
1386
1387 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
1388 numeric constants with their symbolic equivalent.
1389 Taken from branch "vbe-on-coreboot".
1390
bca274b4
VS
13912013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * docs/grub.texi: Fix ordering and use pxref rather than xref.
1394
238f0489
VS
13952013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
1398 divmod64 for offset division.
1399
863c590b
PFS
14002013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1401
1402 Rename .bzrignore to .gitignore. Add "*.o" rule.
1403
1404 * .bzrignore: Renamed to...
1405 * .gitignore: ...this.
1406
84a0e969
PFS
14072013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1408
1409 Add new progress module that displays the load progress of files.
1410
1411 * grub-core/lib/progress.c: New file.
1412 * grub-core/Makefile.core.def (progress): New module.
1413 * grub-core/kern/file.c (grub_file_open): File name added.
1414 * (grub_file_read): Progress hook added.
1415 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
1416 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
1417 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
1418 * include/grub/file.h (struct grub_file): Add progress module members.
1419 * include/grub/term.h (struct grub_term_output): Likewise.
1420 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
1421 Terminal velocity added.
1422 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
1423 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
1424 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
1425 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
1426 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
1427 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
1428 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
1429 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
1430 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
1431 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
1432 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
1433 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
1434
0d711431
VS
14352013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 Verify signatures of signatures unless --skip-sig is specified.
1438
f8401f76
VS
14392013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1442 \0 checking.
1443
1444 Saves 70 bytes on compressed image.
1445
ac1feb61
VS
14462013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
1449 check.
1450
1451 Saves 10 bytes on compressed image.
1452
00f72e89
VS
14532013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/kern/misc.c (grub_isprint): Move to ...
1456 * include/grub/misc.h (grub_isprint): ... here. Make inline.
1457
1458 Saves 20 bytes on compressed image due to remving exporting.
1459
067e6ae7
VS
14602013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
1463
1464 Saves 5 bytes on compressed image.
1465
64a6c791
VS
14662013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
1469 function get_utf8.
1470
1471 Saves 379 bytes on compressed image.
1472
979d9f52
VS
14732013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
1476
1437da54
VS
14772013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
1480
1481 Saves 40 bytes on compressed image.
1482
d9ee2269
VS
14832013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
1486 mask rather than 64-bit type.
1487
1488 Saves 20 bytes on compressed image.
1489
63efa602
VS
14902013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
1493 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
1494
47601ffe
VS
1495 Saves 273 bytes on compressed image.
1496
2cc679ad
VS
14972013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
1500 variable length arrays.
1501
1502 Saves 50 bytes on compressed image.
1503
2e4659b8
VS
15042013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1507
2a40badf
VS
15082013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/fs/ufs.c: Remove variable length arrays.
1511
1ba6b9b9
VS
15122013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
1515
f3e39341
VS
15162013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/fs/zfs.c: Remove variable length arrays.
1519 Reduces zfs.mod by 160 bytes (208 compressed).
1520
71523935
VS
15212013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
1524
28153eb8
VS
15252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/net/arp.c: Remove variable length arrays.
1528 * grub-core/net/bootp.c: Likewise.
1529 * grub-core/net/dns.c: Likewise.
1530 * grub-core/net/icmp6.c: Likewise.
1531 * grub-core/net/net.c: Likewise.
1532
88ce4cd7
VS
15332013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * grub-core/fs/ntfs.c: Remove variable length arrays.
1536 Increases ntfs.mod by 64 bytes (but decreases by 3 when
1537 compressed).
1538
66123940
VS
15392013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/fs/hfs.c: Remove variable length arrays.
1542 Reduces hfs.mod by 8 bytes (52 compressed).
1543
0927e5bd
VS
15442013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 1547 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
1548 compressed).
1549
9c12ac97
VS
15502013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 1553 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
1554 compressed).
1555
97ec2d71
VS
15562013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 1559 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
1560 compressed).
1561
156e4ea0
VS
15622013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 * grub-core/fs/xfs.c: Remove variable length arrays.
1565 Reduces xfs.mod by 40 bytes (43 compressed).
1566
3b502c29
VS
15672013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 * grub-core/fs/fshelp.c: Remove variable length arrays.
1570 Reduces fshelp.mod by 116 bytes (23 compressed).
1571
c7037f1d
VS
15722013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * grub-core/normal/completion.c: Remove variable length arrays.
1575 * grub-core/normal/menu_entry.c: Likewise.
1576
1577 Reduces normal.mod by 496 bytes.
1578
a07e6ad0
VS
15792013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
1582 by 356 bytes (158 compressed).
1583
2359bf88
VS
15842013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
1587 by 364 bytes (169 compressed).
1588
d28e1163
VS
15892013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
1592 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
1593 * include/grub/types.h (grub_unaligned_uint64_t): New type.
1594
e89c2d48
VS
15952013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
1598 bitmasks to small structures of size chosen to fit in registers.
1599
7abdac8e
VS
16002013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * conf/Makefile.common: Use -freg-struct-return on i386. This
1603 decreases code size and improves performance.
1604
518864c0
VS
16052013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
1608
bbd2b539
VS
16092013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
1612 "(null)" string.
1613 Simplify expressions to save around 256 bytes in kernel.img.
1614 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
1615
99519c15
VS
16162013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
1619 Use GRUB_UTIL_FD_O_* rather than O_*.
1620
20285765
VS
16212013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 Add haiku-specific functions.
1624
887c0bb6
VS
16252013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
1628
cd78a56f
VS
16292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 Move stat () and device mode checking into OS-dependent files as
1632 long as performance doesn't suffer.
1633
a4012f07
VS
16342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 Split make_system_path_relative_to_its_root into separate file
1637 relpath.c from getroot.c as it's common between unix and haiku
1638 but otherwise haiku doesn't use any functions from unix getroot.c.
1639
31de274d
VS
16402013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
1643 New function.
1644 (grub_util_is_special_file): Likewise.
1645
40346de6
VS
16462013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
1649 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
1650
d3923ab9
VS
16512013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
1654 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
1655
663f6eb1
VS
16562013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
1659 (load_image): Likewise.
1660
44d1c20a
VS
16612013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * util/grub-render-label.c: Move backend part to ...
1664 * util/render-label.c: ... here.
1665
d0a116ee
VS
16662013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
1669 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
1670
b47fcae6
VS
16712013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
1674
0f7c00c1
VS
16752013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
1678 CD-ROM in case when it's declared as having subpartitions.
1679
29013cba
VS
16802013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 Don't add -lm on haiku.
1683
1684 * configure.ac: Define BUILD_LIBM to -lm on most platforms
1685 and empty on haiku.
1686 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
1687 -lm.
1688
e8559d24
VS
16892013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * configure.ac: Use -melf_*_haiku as target on haiku.
1692
8104063c
VS
16932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * Makefile.util.def: Add util/setup.c to extra_dist.
1696
fc3182c7
VS
16972013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
1700 unknown types through.
1701
f90a3cc0
VS
17022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1703
1704 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
1705 (grub_util_check_char_device): Likewise.
1706 * include/grub/emu/getroot.h: Likewise.
1707
1e3e7419
VS
17082013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
1711 memset rather than inline static function.
1712
92c88fc8
VS
17132013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
1716 not doing embedded decompressor.
1717
3cd910a2
VS
17182013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
1721 shadowing.
1722 * grub-core/kern/disk.c: Likewise.
1723 * grub-core/kern/misc.c: Likewise.
1724 * include/grub/parser.h: Likewise.
1725 * include/grub/script_sh.h: Likewise.
1726 * include/grub/zfs/zfs.h: Likewise.
1727
7b3aca00
VS
17282013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
1731
97dfe7e4
VS
17322013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
1735 defined before trying to use it.
1736
bf919aa9
VS
17372013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
1740 warning.
1741
f4ccf29d
VS
17422013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1743
1744 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
1745 Use __unused__ rather than __used__ on gcc < 3.2.
1746
0d3a6f85
VS
17472013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
1750 gcc < 4.0.
1751 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
1752
757e3eb7
VS
17532013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
1756
fb320faf
VS
17572013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1758
1759 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
1760 * include/grub/emu/misc.h: Likewise.
1761
ea73acd2
VS
17622013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1765 cur_color.
1766
71237a6f
VT
17672013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1768
1769 * grub-core/tests/checksums.h: Regenerated due to progress bar
1770 get_minimal_size changes.
1771
3d46c22f
BC
17722013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1773
1774 Added `tr' command support.
1775
1776 * grub-core/commands/tr.c: New file.
1777 * grub-core/Makefile.core.def: Build rules for new module.
1778
1779 * tests/grub_cmd_tr.in: New test.
1780 * Makefile.util.def: Build rules for new test.
1781
47e0a61f
VT
17822013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1783
1784 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1785
946fd073
VT
17862013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1787
1788 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1789 * docs/gurb.texi: Likewise.
1790
9c13c576
VT
17912013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1792
1793 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1794 Pixmap highlighted section with east and west slices was displayed
1795 incorrectly due to negative width of the central slice.
1796
ad543f12
VT
17972013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1798
1799 * docs/grub.texi: Graphical options information update.
1800 Removed outdated. Updated current. Inserted missed.
1801
6176a0cd
VS
18022013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * docs/grub.texi: Mention few new platform-specific commands.
1805
9688cae2
VS
18062013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1809 currently used so this doesn't really have any effect.
1810 Reported by: Douglas Ray <dougray>
1811
f7b69a3f
VS
18122013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1815 compilation but prevents gcc from displaying messages in non-Latin
1816 alphabets.
1817 * conf/Makefile.common: Likewise.
1818
ceca6ddf
HY
18192013-10-16 Hiroyuki YAMAMORI
1820
1821 Handle Japanese special keys.
1822 Reported by: Hiroyuki YAMAMORI.
1823 Codes supplied by: Hiroyuki YAMAMORI.
1824
ac48d334
VT
18252013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1826
1827 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1828
b2b71bff
VT
18292013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1830
1831 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1832 * docs/grub.texi: Likewise.
1833
669fc449
VS
18342013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1837 value in case of incomplete read.
1838 (grub_util_fd_write): Likewise.
1839
59381678
VS
18402013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1843
bacfefbb
VS
18442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * util/grub-editenv.c (create_envblk_file): More from here ...
1847 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1848
f7c49570
VS
18492013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1852 canonicalize file name before doing the rest.
1853
7b83ca44
VS
18542013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1857 mingw32.
1858
df1e64c9
VS
18592013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 Define grub_util_is_directory/regular/special_file and
1862 use OS-dependent versions rather than to rely on stat().
1863
ec16e026
VS
18642013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * util/grub-mkimage.c: Move backend part to ...
1867 * util/mkimage.c: ... here.
1868
4b4eeb3c
VS
18692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 Allow compilation with mingw64 albeit with warnings due to lack of
1872 %llx/%llu.
1873
1874 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1875 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1876 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1877 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1878 on mingw64.
1879 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1880
f4e0adc0
VS
18812013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 Remove leftover references to some of the system headers.
1884
e0127364
VS
18852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1888 read.
1889
20d53541
VS
18902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1893 of strerror.
1894
5a869940
VS
18952013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 Split out blocklist retrieving from setup.c to
1898 grub-core/osdep/blocklist.c and add windows implementation since
1899 generic version doesn't work on NTFS on Windows due to aggressive
1900 unflushable cache.
1901
c06c7520
VS
19022013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1905 files.
1906
8f53bb3f
VS
19072013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1910 Cut tailing newline. Remove arbitrary limitation. Always use
1911 grub_util_tchar_to_utf8.
1912
148f1007
VS
19132013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1916 * tests/printf_unit_test.c (printf_test): Add %% tests.
1917 Reported by: Paulo Flabiano Smorigo.
1918
af3b06be
VS
19192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1922 implement fsync.
1923
27f9d02e
VS
19242013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1927 use nvlist_lookup_string and don't use nvlist_print.
1928
f6a81f0a
VS
19292013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1932 closedir to handle filename charset translation.
1933
d7750b32
VS
19342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * include/grub/emu/hostdisk.h: Move file operations to
1937 * include/grub/emu/hostfile.h: ... here.
1938
2859196e
VS
19392013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1942 unicode path.
1943
c018c968
VS
19442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1947
7e45abce
VS
19482013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1951 and remove export.h.
1952
23934da2
VS
19532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * grub-core/kern/emu/error.c: Removed.
1956 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1957 explicitly as it's already in libgnu.a.
1958
c11ebcc8
VS
19592013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1962 config-util.h include.
1963
70671037
VS
19642013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 Split emunet into platform-dependent and GRUB-binding parts. Keep
1967 platform-dependent part in kernel for easy access to OS functions.
1968
25ac643a
VS
19692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1972 open/read/write.
1973
69ca5876
VS
19742013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * grub-core/osdep/windows/emuconsole.c: New file.
1977
d9d68ef0
AB
19782013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1979
1980 * conf/Makefile.extra-dist: Add osdep/*/init.c
1981
58e211cc
VS
19822013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1985
588744d0
VS
19862013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * util/grub-probe.c (probe): Separate different drives in hint-str
1989 by spaces and not newlines.
1990 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1991
44016e52
AB
19922013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1993
1994 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1995 Handle CD-ROMs.
1996
6de9ee86
VS
19972013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 Pass-through unknown E820 types. It required reorganisation of mmap
2000 module.
2001
f8f3f155
AB
20022013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
2003
2004 * Makefile.util.def: Add osdep/init.c to grub-mount files.
2005
b73249d2
VS
20062013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
2009 fseeko.
2010
dac86b18 20112013-10-14 qwertial <qwertial>
2012
2013 * grub-core/gdb_grub.in: Fix overflow and wrong field.
2014
17614b84
JM
20152013-10-14 Jon McCune <jonmccune@google.com>
2016
2017 * docs/grub.texi: Document new signatures possibility.
2018
6de292cb
VS
20192013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
2022
84379b61
VS
20232013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
2026 missing prototype.
2027 (grub_util_tchar_to_utf8): Likewise.
2028
21d85db1
VS
20292013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
2032 * grub-core/kern/emu/main.c: Add missing include.
2033 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
2034 Don't call grub_util_init_nls.
2035 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
2036 Likewise.
2037
66a1b3ee
VS
20382013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
2041 stat.
2042
e19bec17
VS
20432013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
2046
ee8c1b29
VS
20472013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
2050
bb338aaf
VS
20512013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 Add a wrapper for fopen. On unix-like systems just pass-through. On
2054 windows use unicode version.
2055
ae5540d3
VS
20562013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 Move set_program_name and init_nls to host_init. On windows
2059 fix in this fuction console and argument charset as well.
2060
4cd3c4fe
AB
20612013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
2062
2063 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
2064 GRUB_ENABLE_CRYPTODISK.
2065
2066 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
2067 GRUB_ENABLE_CRYPTODISK.
2068 * util/grub-mkconfig_lib.in: Likewise.
2069
78170f3e
CCZ
20702013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
2071
2072 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
2073
3414b6c0
MC
20742013-10-12 Melki Christian <Christian.melki@saabgroup.com>
2075
2076 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
2077 error when enabling debug.
2078
6d0740e8
IB
20792013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
2080
2081 * configure.ac: Use -melf_*_obsd on openbsd.
2082
ff2d4dc4
VS
20832013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
2084
2085 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
2086
eac6ae82
VS
20872013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * include/grub/misc.h: Use gnu_printf rather than printf as format
2090 template since our functions are independent of libc.
2091
ba9baabe
VS
20922013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * util/grub-setup.c (setup): Move copying of partition table as
2095 futher up as possible to avoid possible overwrite by floppy routines.
2096
20972013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
2098
2099 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
2100
145e2369
VT
21012013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2102
2103 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
2104 * docs/grub.texi: Likewise.
2105
3530bc9d
VS
21062013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
2109 it's mostly unused. Move vestiges to the callers.
2110
fb9f59c3
VS
21112013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
2114 version of salt and hash. Use grub_snprintf rather than snprintf.
2115
9be1c255
VS
21162013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * docs/grub.texi: Fix problem with braces.
2119
ed8c0887
VS
21202013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * conf/Makefile.extra-dist: Fix extra-dist list.
2123 * grub-core/Makefile.core.def: Likewise.
2124
f72ab14e
VS
21252013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * docs/grub.texi: Document disk names used on Windows and AROS.
2128
2fe53a22
VS
21292013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
2132 with AROS devs.
2133 * grub-core/osdep/aros/hostdisk.c: Likewise.
2134
71c1d67a
VS
21352013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 Avoid including hostfile.h when not necessarry as it pulls
2138 in OS-specific headers which may redefine generic names
2139 like "far".
2140
ad297ec7
VT
21412013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
2142
2143 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
2144 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
2145 scrollbar_bottom_pad
2146 * docs/grub.texi: Likewise.
2147
6e9e5dc9
VT
21482013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
2149
2150 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
2151
761c718b
VS
21522013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
2155
37149a2f
VS
21562013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
2159 Removed.
2160 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
2161 Made static.
2162
3837a151
VS
21632013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
2166 leftover.
2167
caca1c70
VS
21682013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 Move OS-specific driver configuration to grub_util_fd_open. This
2171 moves OS-dependent parts from kern/emu/hostdisk.c to
2172 grub-core/osdep/*/hostdisk.c.
2173
f7676b70
VS
21742013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * util/grub-mkimage.c (generate_image): Use size_t instead of
2177 grub_size_t.
2178 * util/grub-mkimagexx.c (locate_sections): Likewise.
2179 (load_image): Likewise.
2180
22f98db2
VS
21812013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
2184 size_t.
2185 (grub_util_write_image): Likewise.
2186
b102ce69
VS
21872013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
2190 get random when no RNG is available.
2191 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
2192
acbbe5cb
VS
21932013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 * include/grub/util/lvm.h: Removed.
2196
2112fb3f
VS
21972013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
2200 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
2201
79f78fbf
VS
22022013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/osdep/windows/sleep.c: Add missing config.h.
2205
c2e6f705
VS
22062013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
2209
aabe433a
VS
22102013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 * grub-core/net/drivers/emu/emunet.c: Move to ..
2213 * grub-core/osdep/linux/emunet.c: ..here.
2214
9a2c903f
VS
22152013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2216
2217 * util/ieee1275/ofpath.c: Move to ...
2218 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
2219 * grub-core/osdep/basic/ofpath.c: ..here.
2220
4a445f58
VS
22212013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 Move password-querying (util-version) routines to grub-core/osdep.
2224
c1ca4244
VS
22252013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 Move sleep routines to grub-core/osdep.
2228
672fa55e
VS
22292013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 Move OS-dependent files to grub-core/osdep and document it.
2232
a5b0365a
VS
22332013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
2236 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
2237
29072e99
VS
22382013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
2241
f8772ea7
VS
22422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * util/misc.c: Remove leftover inclusion of malloc.h.
2245
a1a315e7
VS
22462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * include/grub/setjmp.h: Remove leftover GRUBOF.
2249
cef86fef
VS
22502013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * util/raid.c: Fold into ...
2253 * util/getroot_linux.c: ... here. Make all functions static.
2254
c4cf25ee
VS
22552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
2258 macros to GRUB ones.
2259
53a5f5c2
VT
22602013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2261
2262 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
2263 occasional bug. If there are too many boot entries or too low
2264 scrollbar height then we need to use another formula to calculate
2265 the position and size of the scrollbar thumb.
2266
de300af2
VS
22672013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2268
c4cf25ee 2269 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 2270
c5827364
VT
22712013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2272
2273 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
2274 * docs/grub.texi: Likewise.
2275
dd2ed8b0
VT
22762013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2277
2278 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
2279 viewport.
2280
7286c384
VT
22812013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2282
ffdfc1f3
VT
2283 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
2284 minimal width calculations.
7286c384 2285
ea547e14
VS
22862013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * docs/grub.texi: Update note on colors on emu console.
2289
b726be76
VS
22902013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
2293 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
2294 it's FS and not GRUB limitation.
2295
a5f6ade6
VS
22962013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
2299
3b0f3aa2
VS
23002013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
2303
1db38304
ST
23042013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2305
2306 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
2307 kernels by version order.
2308
fb295fc0
VS
23092013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
2312
47345010
VS
23132013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 Add AROS hostdisk and getroot routines.
2316
bf25f879
VS
23172013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 Make cryptodisk and diskfilter probe data retrievable programmatically
2320 and not just printable.
2321
24ca4512
VS
23222013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 Split random retrieving code into separate files.
2325
c7c177f0
VS
23262013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
2329 R_ARM_V4BX.
2330
d71b45ae
VS
23312013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
2334 condition.
2335 * grub-core/tests/fake_input.c: Likewise.
2336 * grub-core/tests/cmdline_cat_test.c: Likewise.
2337
e44b9a83
VS
23382013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * grub-core/video/capture.c: Do not do finalization when .fini
2341 is called as there is explicit capture_end.
2342
4fa60739
VS
23432013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
2346 changing windows to avoid crash.
2347
17c8bc37
VS
23482013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
2351
9d4d7977
VS
23522013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * po/exclude.pot: Add several strings to exclude.
2355
0caa407c
VS
23562013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
2359
9ae393da
VS
23602013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * autogen.sh: Add ./util/grub-gen-widthspec.c and
2363 ./util/grub-gen-asciih.c to exclude list.
2364
498d5033
VS
23652013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
2368 and don't mark error strings for translation.
2369
7d93298f
VS
23702013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
2373 properly in case of missing block size.
2374
b2cae20c
VS
23752013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * grub-core/lib/arm/setjmp.S: Add missing license section.
2378
3896d6b4
VS
23792013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * po/swiss.sed: Add replacement for key names and for term computer.
2382
ebc1da55
VT
23832013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
2384
2385 * grub-core/gfxmenu/theme_loader.c: New global options for the
2386 theme background image handling. desktop-image-scale-method,
2387 desktop-image-h-align, desktop-image-v-align.
2388 * grub-core/gfxmenu/view.c: Likewise.
2389 * include/gfxmenu_view.h: Likewise.
2390 * include/bitmap_scale.h: Proportional scale functions introduced.
2391 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
2392 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
2393 cases of unexpected input variables for scale functions.
2394 * docs/grub.texi: Updated documentation for new options.
2395
c5739143
VS
23962013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
2399
be74aeb3
VT
24002013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2401
2402 * grub-core/tests/checksums.h: Corrected due to changes in
2403 bilinear interpolation function.
2404
d999ac72
VT
24052013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2406
2407 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
2408 to eliminate artefacts in bilinear interpolation.
2409
2b131610
VS
24102013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/video/readers/tga.c: Support paletted tga.
2413
de6e5ff8
VS
24142013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
2417 incorrect cbcr setting when in color mode.
2418
fa31ee9c
VS
24192013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/video/readers/png.c: Support paletted images and clean up
2422 greyscale support.
2423
e84f8188
VS
24242013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
2427 usage of wrong table which resulted in mishandling of 4-byte
2428 sequences.
2429
24302013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
2431
2432 * grub-core/term/terminfo.c: Add Home and End key sequences.
2433
d72bff09
VS
24342013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * grub-core/video/readers/png.c (grub_png_decode_image_header):
2437 Fix formula for computing total number of bytes.
2438
29648c5d
VS
24392013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
2442 image processing, fix big-endian and support grayscale.
2443
4a876492
VS
24442013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
2447 Correctly will with maximum transparency when using index color.
2448
3ccf16df
VS
24492013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * grub-core/video/readers/png.c: Support grayscale
2452
24532013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
2454
2455 * grub-core/video/readers/jpeg.c: Support grayscale.
2456
3ccf16df 24572013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
2458
2459 * grub-core/commands/loadenv.c: Support skipping signature check
2460 and variable names filtering.
2461
30b7f58f
VS
24622013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
2465 * grub-core/kern/emu/hostfs.c: Likewise.
2466 * util/getroot_unix.c: Likewise.
2467
bab7b1eb
VS
24682013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
2471 Migrate all explicit defines to this new one.
2472
43b1c99d
VS
24732013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
2476 grub_util_fd_strerror when using grub_util_fd_*.
2477 (grub_util_fd_open_device): Likewise.
2478 (grub_util_biosdisk_read): Likewise.
2479 (grub_util_biosdisk_write): Likewise.
2480 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
2481 (grub_util_fd_strerror): Likewise.
2482 (grub_util_fd_sync): Likewise.
2483 (grub_util_fd_close): Likewise.
2484 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
2485 (grub_util_fd_close): Likewise.
2486 (grub_util_fd_strerror): Likewise.
2487 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
2488 function proto rather than macro.
2489 (grub_util_fd_sync): Likewise.
2490 (grub_util_fd_open): Likewise.
2491 (grub_util_fd_strerror): New proto.
2492
e8fd80bc
VS
24932013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
2496 platforms on which it doesn't work.
2497
bf645fda
VS
24982013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
2501 stat immediately to where it's used.
2502
5177ba14
VS
25032013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * util/getroot.c (grub_util_check_block_device): Move to ...
2506 * util/getroot_unix.c (grub_util_check_block_device): ... here.
2507 * util/getroot.c (grub_util_check_char_device): Move to ...
2508 * util/getroot_unix.c (grub_util_check_char_device): ... here.
2509
9db826e1
VS
25102013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
2513 disk closing logic.
2514
49120085
AB
25152013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2516
2517 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
2518
b3328b68
AB
25192013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2520
2521 * docs/grub.texi (File name syntax): Document ZFS filenames
2522 (/volume@snapshot/...).
2523
3fff48ab
VS
25242013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
2527 Always return full path. Fixes a problem with mkrelpath.
2528
39cfdaa9
PFS
25292013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2530
2531 * util/grub-install.in: Add GPT PReP support.
2532 * util/grub-probe.c (probe): Support GPT partition type.
2533 (main): Support -t gpt_parttype.
2534
7c680e1f 25352013-09-23 Aleš Nesrsta <starous@volny.cz>
2536
2537 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
2538
890bdabe
MM
25392013-09-23 Massimo Maggi <me@massimo-maggi.eu>
2540
2541 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
2542
9c262ff9
TH
25432013-09-23 Tim Hardeck <thardeck>
2544
2545 * util/grub.d/10_hurd.in: Filter out character for the class.
2546 * util/grub.d/10_kfreebsd.in: Likewise.
2547 * util/grub.d/10_linux.in: Likewise.
2548 * util/grub.d/20_linux_xen.in: Likewise.
2549
d755342a
MC
25502013-09-23 Melki Christian <Christian.melki@saabgroup.com>
2551
2552 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
2553 "changed".
2554
68b77707
JT
25552013-09-23 Josh Triplett <josh@joshtriplett.org>
2556
2557 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
2558 boot partition.
2559
efa68bfa
VS
25602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
2563 doesn't use posix_wrap. Keep literal -fno-builtin however.
2564
d9104204
VS
25652013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
2568
c248781a 25692013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
25702013-09-23 neil
2571
5830df88 2572 * configure.ac: Do not enable -Wmissing-noreturn as its
2573 usefulness is limited and creates problems on some OS notably with
2574 code generated by bison.
2575
25762013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
25772013-09-23 neil
2578
2579 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 2580 supported by all gcc and when it is, it's already enabled by -Wall.
2581
621bed69
VS
25822013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
2585 desactivated use of EDID at all.
2586
71764dc8 25872013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
25882013-09-23 neil
2589
2590 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
2591 video if no text is available.
2592
affce7d4 25932013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
25942013-09-23 neil
2595
2596 * configure.ac: Substitute TARGET_RANLIB.
2597
25982013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
25992013-09-23 neil
affce7d4
VS
2600
2601 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
2602
2603 Based on patches from AROS.
2604
0e8daad0 26052013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 26062013-09-23 neil
0e8daad0
VS
2607
2608 * grub-core/Makefile.am: Override STRIP and RANLIB.
2609 * configure.ac: compute TARGET_RANLIB.
2610 * INSTALL: Document TARGET_RANLIB
2611
2612 Based on patches from AROS.
2613
3f7d9c82
VS
26142013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
2617 that floppies are unpartitioned.
2618
bca8873a
VS
26192013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
2622 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
2623
26242013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
2627 less nice but more portable.
2628 * grub-core/lib/posix_wrap/wchar.h: Likewise.
2629
a47a78be
VS
26302013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
2633 for cheat_fd.
2634 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
2635 functions.
2636 (grub_cryptodisk_cheat_insert): Likewise.
2637 (grub_cryptodisk_close): Likewise.
2638
e85a5d5c
VS
26392013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
2642 Use windows path for DEFAULT_DIRECTORY.
2643
dad9fa6b
VS
26442013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
2647 difference was likely just gcc version, not anything mingw-related.
2648
7e518ca8
VS
26492013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 Use Winapi on both cygwin and mingw32 to share more code between both.
2652
d68d0157
AB
26532013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2654
2655 * util/grub-install.in: Add --grub-editenv option.
2656 * util/grub-install_header (grub_compress_file): Explicitly check for
2657 plain file to avoid cp error.
2658
775b284d
AB
26592013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2660
2661 * docs/grub.texi (Device syntax): Document new LVM UUID based device
2662 names; fix LVM driver name (lvm, not lv).
2663 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
2664 names.
2665
3ff4063d
VS
26662013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
2669 files rather than one file with loads of #if's.
2670 * util/getroot.c: Likewise.
2671
287faafe
VS
26722013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
2675
d1983764
VS
26762013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
2679 GNU/Hurd to the list of checked PRNG.
2680
15ce95c4
VS
26812013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * configure.ac: On FreeBSD use -melf_*_fbsd format.
2684
207862dd 26852013-09-21 Ales Nesrsta <starous@volny.cz>
2686
7c680e1f 2687 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 2688
63653cfd
VS
26892013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
2692 * grub-core/disk/lvm.c: Add LVM UUIDs.
2693 * util/getroot.c: Use LVM UUIDs whenever possible.
2694
f5d3e7ef
AB
26952013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
2696
2697 * docs/grub.texi (Networking commands): Add documentation for
2698 network related commands.
2699
53c6b7d6
VS
27002013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * util/getroot.c (grub_util_open_dm): Check major rather than the name
2703 to determine if device is handled by devmapper.
2704 (convert_system_partition_to_system_disk): Likewise.
2705 (get_dm_uuid): Don't check explicitly if device is mapped, it's
2706 already done in grub_util_open_dm.
2707
e70d6736
LL
27082013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
2709
2710 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
2711 Clean up stack manipulation (sync_caches_armv*)
2712
90379808
VS
27132013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * util/lvm.c: Remove since unused. Remove remaining references.
2716
386701a8
VS
27172013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 Handle the case of partitioned LVM properly.
2720
2721 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2722 Stop on meeting LVM, mpath or DMRAID.
2723 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
2724 (read_device_map): Likewise.
2725 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
2726 device is full disk rather than erroring out on LVM and similar cases.
2727
53070787
VS
27282013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
2731
1bc783bd
VS
27322013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
2735 4K before the end.
2736 Reported by: Leif Lindholm
2737
436ad5c3
PW
27382013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
27392013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
2742 codes.
2743
607319c9
CW
27442013-09-18 Colin Watson <cjwatson@ubuntu.com>
2745
2746 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
2747 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
2748
d404d154
DR
27492013-09-18 Douglas Ray <dougray@cpan.org>
2750
2751 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
2752 as secure.
2753
28851ef6
AN
27542013-09-18 Aleš Nesrsta <starous@volny.cz>
2755
2756 * docs/grub.texi: Fix broken link.
2757
897c3bc6
MC
27582013-09-18 Melki Christian <Christian.melki@saabgroup.com>
2759
2760 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
2761 to break endless loop.
2762
f1630459
VS
27632013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * util/grub-fstest.c: Fix several printf formats.
2766 * util/grub-mkimage.c: Likewise.
2767 * util/grub-mkimagexx.c: Likewise.
2768 * util/grub-script-check.c: Likewise.
2769
64463dfd
VS
27702013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2773 error.
2774
48972495
VS
27752013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2778
5dd5e64b
VS
27792013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2782 removed in current versions cygwin_conv_*.
2783
1c1f31e5
VS
27842013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * configure.ac: Disable efiemu runtime on cygwin.
2787
c546a259
VS
27882013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2791 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2792
81690478
VS
27932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2796 error message.
2797
6b87c10a
VS
27982013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2801 windows variant.
2802 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2803 data.
2804
8f0baaac
VS
28052013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2808 when on x86 and not cygwin.
2809 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2810 -Wl,-melf_x86_64.
2811
b224c266
VS
28122013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 * configure.ac: Set CPP to build one when checkoing for freetype for
2815 build.
2816
506b336b
VS
28172013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2820 [!GRUB_BUILD]: Remove has_argument.
2821
8c8c87b7
VS
28222013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2825 Replace with a dummy.
2826
7dc5ca13
VS
28272013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * configure.ac: Don't change host_os from mingw to cygwin.
2830
c3302aa5
VS
28312013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * configure.ac: Change target_os from windows to cygwin.
2834
7b780018
VS
28352013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2838
2839 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2840 (build-grub-gen-asciih): Likewise.
2841 (build-grub-gen-widthspec): Likewise.
2842 * Makefile.util.def (grub-pe2elf): Remove.
2843 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2844 * configure.ac: Separate tests for build.
2845 Move ./build-grub-pe2elf to grub-core.
2846 Fix typo.
2847 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2848 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2849 defined.
2850 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2851 constants.
2852 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2853 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2854 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2855
984cfd8a
VS
28562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2859 mingw32 as well based on grub_util_get_disk_size.
2860 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2861 grub_util_get_fd_size.
2862 (sync): Removed.
2863 (fsync): Moved to ...
2864 * grub-core/kern/emu/misc.c (fsync): ... here.
2865
f82d79c9
VS
28662013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * include/grub/mm.h (grub_extend_alloc): Remove.
2869 * grub-core/loader/i386/pc/plan9.c: Use own version of
2870 grub_extend_alloc with appropriate types.
2871
fd7dd66d
VS
28722013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2875
43ffba7c
VS
28762013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2879
3c7eac44
VS
28802013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 Fix dependencies on cygwin.
2883
2884 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2885 dependencies when used and defined.
2886 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2887
bdb5ba47
VS
28882013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2891 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2892
ed7fbf43
VS
28932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2896 implementation available to cause compile-time rather than runtime
2897 error.
2898
fc46e9fc
VS
28992013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * util/grub-fstest.c: Don't check for symlinks on windows.
2902
7f68269a
VS
29032013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * INSTALL: Mention unavailability of man pages when cross-compiling.
2906
8ed358e0
VS
29072013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2910 and gcry_log_bug.
2911 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2912
fc97214f
VS
29132013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * INSTALL: Document cross-compilation.
2916 * acinclude.m4: Determine whether nm support -P and --defined-only.
2917 * configure.ac: Add TARGET_ to all variables pertaining to target
2918 that don't have it yet.
2919 * gentpl.py: Likewise.
2920 * grub-core/Makefile.am: Likewise.
2921 * grub-core/genmod.sh.in: Likewise.
2922 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2923 as well.
2924
ca1fb563
IB
29252013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2926
2927 * configure.ac: Remove -Wempty-body. It's not essential and needs
2928 recent gcc.
2929
0031b229
IB
29302013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2931
2932 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2933 * util/getroot.c: Likewise.
2934
54ea2f44
VS
29352013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/disk/ahci.c: Add needed explicit cast.
2938 * grub-core/lib/backtrace.c: Likewise.
2939 * grub-core/net/ip.c: Likewise.
2940 * grub-core/net/tcp.c: Likewise.
2941 * grub-core/net/udp.c: Likewise.
2942
3c601f8c
VS
29432013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2946
1d679dda
VS
29472013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * util/import_gcry.py: Add final newline in visibility.h.
2950
00c28dd9
VS
29512013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * conf/Makefile.common: Fix typo.
2954
32af299a
VS
29552013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2958
e733cf52
VS
29592013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * Makefile.am (widthspec.h): Fix typo.
2962 * util/grub-gen-widthspec.c: Likewise.
2963
c6b066f2
VS
29642013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 Move ascii.h and widthspec.h generation to a separate build-time-only
2967 tool.
2968
ad1fe3f9 29692013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2970
2971 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2972 Always fill bootdisk info and improve check for NetBSD disklabel.
2973
92a52dd4
VS
29742013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * conf/Makefile.extra-dist: Add util/bin2h.c.
2977 Reported by: floppym.
2978
b2e9d276
VS
29792013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2982
7b966834
VS
29832013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * configure.ac: Disable unifont and starfield if no freetype was found.
2986
d5c1eef1
VS
29872013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2990 on NetBSD and OpenBSD.
2991
66345b50 29922013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
2993
2994 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2995
66345b50 29962013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
2997
2998 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2999 reduced. Inheritant options are processed during the theme loading.
3000
66345b50 30012013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
3002
3003 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
3004
369508b3
AS
30052013-08-14 Avik Sil <aviksil@in.ibm.com>
3006
3007 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
3008
30092013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
3010
3011 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
3012 using qemu.
3013
6f27a3f6
PFS
30142013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3015
3016 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
3017 remove-potcdate.sed.
3018
c6ed362a
AB
30192013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
3020
3021 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
3022 unused attribute from pull argument.
3023
5e7d9464
AB
30242013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
3025
3026 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
3027 memory leak.
3028
dea55e2a
AB
30292013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
3030
3031 * util/getroot.c (pull_lvm_by_command): add --separator option
3032 to vgs call to disable padding of output to 10 characters.
3033
f0b94ded
VS
30342013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
3037 here ...
3038 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
3039 here.
3040
b828fb5d
VS
30412013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
3044 length.
3045
7c9d0c39
VS
30462013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 Fix handling of build-time grub-bin2h and grub-mkfont when doing
3049 full Canadian cross. Tested with build=x86_64, host=arm,
3050 target=ppc-ieee1275.
3051
816719c8
VS
30522013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * configure.ac: Error if no $BUILD_CC could be found.
3055 Reported by: DevHC.
3056
2af2353b
VS
30572013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
3060 i386-multiboot.
3061
797abd0a
VS
30622013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
3065 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
3066
36e87d25
CW
30672013-08-13 Colin Watson <cjwatson@ubuntu.com>
3068
3069 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
3070 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
3071 falling back to the partition device, otherwise a later call to this
3072 function may fail spuriously.
3073 Reported by Axel Beckert. Fixes Debian bug #708614.
3074
273349fe
GS
30752013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
3076
3077 * autogen.sh: Replace find -not by the POSIX-compliant find !.
3078
418f86c6
GS
30792013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
3080
3081 Prevent shadowing of stdlib's devname(3) on BSD.
3082
3083 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
3084 and devlast to diskname and disklast, respectively.
3085
c137aea0
CW
30862013-08-11 Colin Watson <cjwatson@ubuntu.com>
3087
3088 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
3089
272dc8df 30902013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
3091
3092 * docs/grub.texi: Introduce terminal window position options:
3093 terminal-left: terminal window's left position
3094 terminal-top: terminal window's top position
3095 terminal-width: terminal window's width
3096 terminal-height: terminal window's height
3097 terminal-border: terminal window's border width
3098 * grub-core/gfxmenu/theme-loader.c: Likewise.
3099 * include/grub/gfxmenu_view.h: Likewise.
3100 * po/exlude.pot: Likewise.
3101 * grub-core/gfxmenu/view.c: Likewise.
3102 Also updated minimal window size.
3103 Also terminal_sanity_check function has been introduced.
272dc8df
VT
3104 * grub-core/tests/checksums.h: Update (terminal window height
3105 is adjusted now for low resolution screen)
b4743461 3106
748a4533
VS
31072013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
3110 position).
3111
fca5f944
VS
31122013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * po/exclude.pot: Add few recent exceptions.
3115
4f47d809
VS
31162013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * tests/grub_func_test.in: Add unicode.pf2.
3119
a62ae90c
VS
31202013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
3123 standard rather than noral color, in line with other terminals.
3124
4ed41392
VS
31252013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
3128 analysis.
3129
3719fbc5
VS
31302013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/loader/arm/linux.c: Change printf to dprintf.
3133
459b1d91
VS
31342013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
3137 inappropriate printf.
3138
f4e1ab9d
AB
31392013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
3140
3141 * .bzrignore: Remove grub-core/lib/dtc-grub,
3142 grub-core/Makefile.libfdt.def
3143 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
3144
fa471bfa
VS
31452013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * include/grub/video.h (grub_video_register): Keep double-linked as
3148 well as single-linked invariants.
3149 Reported by: qwertial.
3150
d65be02b
VS
31512013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/commands/nativedisk.c (get_uuid): Handle
3154 GRUB_DISK_DEVICE_UBOOTDISK_ID.
3155
ba8bc620
VT
31562013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
3157
3158 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
3159 maximum of NW, N, NE heights instead of N's height and maximum of
3160 NW, W, SW widths instead of W's width. (So the box will be always
3161 correctly drawn)
3162
4f0ad029
GS
31632013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
3164
3165 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
3166 Fix misuse of variable count.
3167
43d53b72
LL
31682013-07-18 Leif Lindholm <leif.lindholm@arm.com>
31692013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
31702013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 3171
43d53b72
LL
3172 New ports to arm-uboot and arm-efi.
3173 Mostly by Leif Lindholm with some additions from
3174 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 3175
88f8d146
VS
31762013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
3179 and not before.
3180 Reported by: Leon Drugi.
3181
3f42504c
VS
31822013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
3185 Reported by: Paulo Flabiano Smorigo.
3186
d110499b
VT
31872013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
3188
3189 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
3190
a8674ad3
VT
31912013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
3192
3193 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
3194
286fe4b3
VS
31952013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
3198
1bd57aa3
VS
31992013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
3202
7a87d69f
AB
32032013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
3204
3205 * grub-core/net/bootp.c: Export net_* variables.
3206 * grub-core/net/net.c: Likewise.
3207
b2182299
VS
32082013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
3211
795b3dc0
VS
32122013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
3215
68714c43
VS
32162013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
3219
af211bab
VS
32202013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
3223
0036f02d
MM
32242013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3225
3226 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
3227 <= 0.
3228
6d0ddff3
MM
32292013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3230
3231 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
3232 functions.
3233
038016f4
MM
32342013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3235
3236 * grub-core/fs/zfs/zfs_lz4.c: New file.
3237 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
3238
776bdce2
MM
32392013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3240
3241 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
3242
c71dbd40
MM
32432013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3244
3245 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
3246 (check_pool_label): Likewise.
3247 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
3248
32492013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
3250
3251 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
3252
8e67b50f
AB
32532013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
3254
3255 * docs/grub.texi (Commands): Document postition parameters
3256 for menuentry command.
3257
f5ae3717
AB
32582013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
3259
3260 * util/grub-mknetdir.in: Remove stray line from help output.
3261
9c28da2a
VS
32622013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 Remove early sm712 init as there is no reason for it (the "watchdog"
3265 effect was due to wrong GPIO map).
3266
139072b8
VS
32672013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * grub-core/commands/pcidump.c: Remove static variables.
3270
c6a61bda
VS
32712013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * grub-core/commands/sleep.c: Refresh screen before sleeping.
3274
51369614
VS
32752013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * configure.ac: Move delimiter after the infos.
3278
efa8640a
VS
32792013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
3282
6f80a7b2
VS
32832013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
3286 not filling whole 8x16 space.
3287
a2371e19
VS
32882013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
3291
64fce2d8
VS
32922013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * configure.ac: Indicate which liblzma is used if any.
3295
eb272d84
PW
32962013-06-21 Paul Wise <pabs3@bonedaddy.net>
32972013-06-21 Craig Sanders <savannah@taz.net.au>
3298
3299 * util/grub-reboot.in: Document submenu usage.
3300
a9e5abee
CW
33012013-06-25 Colin Watson <cjwatson@ubuntu.com>
3302
3303 * .bzrignore: Update with a number of new test-related files.
3304
e639c204
CW
33052013-06-25 Colin Watson <cjwatson@ubuntu.com>
3306
3307 * util/grub-script-check.c: Fail on scripts containing no
3308 commands, to guard against corrupted grub-mkconfig setups that
3309 produce no useful output.
3310 * tests/grub_script_no_commands.in: New test.
3311 * Makefile.util.def (grub_script_no_commands): Add.
3312 Reported by Hans Putter. Fixes Debian bug #713886.
3313
a4c89b17
AB
33142013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3315
3316 * grub-core/disk/diskfilter.c: Forgot to remove comment
3317 from previous commit.
3318
5b06b53c
AB
33192013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3320
3321 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3322 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
3323
702da5c9
AB
33242013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3325
3326 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
3327
aa62a5b7
AB
33282013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3329
3330 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
3331 rescan diskfilter devices until nothing new is found.
3332
4aa237c8
VS
33332013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Fix casts when compiling coreboot-specific code for 64-bit EFI.
3336
93d8479b
VS
33372013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 Don't try to detect cbfs on *-emu.
3340
837222cc
VS
33412013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/term/gfxterm.c: USe right background color when scrolling.
3344
99c971af
VS
33452013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 Add support for processed coreboot payload chainloading.
3348
e6930a45
VS
33492013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 Enable coreboot information commands even when not loaded as
3352 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
3353
5027af38
VS
33542013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 Support for cbfs. Also factor out the part which is common
3357 for all archives to a separate module. This splits tar from cpio
3358 as they are very different but keeps cpio, cpio_be, odc and newc
3359 together since they're very similar.
3360
a5b55c4b
DM
33612013-06-15 David Michael <fedora.dm0@gmail.com>
3362
3363 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
3364 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
3365
0301a8b3
VS
33662013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * tests/grub_script_eval.in: Really add the eval test.
3369
3d84cb17
VS
33702013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 Move flavour-specific parts out of common cpio.c file and
3373 rename remaining to cpio_common.c
3374
593e430c
AB
33752013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3376
3377 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
3378 off new function grub_script_execute_new_scope. Change callers to use
3379 either of them as appropriate.
3380 * grub-core/commands/eval.c: New command eval.
3381 * docs/grub.texi (Commands): Document it.
3382
63c29849
AB
33832013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3384
3385 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
3386 to fetch values when listing.
3387
cc284112
AB
33882013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3389
3390 Fix make dist on non-pc.
3391
33922013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
3393
3394 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
3395 without a device name.
3396
69544d1e
VS
33972013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 Remove enable_executable_check as it's not needed anymore.
3400 Reported by: dougray.
3401
96dbe648
VS
34022013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
3405 ambigouos RAID before discovering RAIDs on top of it.
3406 Reported by: bodom.
3407
ccfc0bdb
VS
34082013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 Fix typo (failback vs fallback).
3411
f2587088
AB
34122013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
3413
3414 * util/grub.d/30_os-prober.in: Add support for probing EFI
3415 System Partition (as of os-prober 1.58).
3416
cec5cf0c
VS
34172013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * configure.ac: Add yet another path to unifont. For parabola.
3420
e40b4596
JT
34212013-05-30 Josh Triplett <josh@joshtriplett.org>
3422
3423 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
3424 handling to copy the killed characters to the kill buffer as
3425 UCS4 stored as grub_uint32_t rather than as 8-bit characters
3426 stored as char. Eliminates UCS4 truncation and corruption
3427 observed when killing characters with Ctrl-u and yanking them
3428 back with Ctrl-y.
3429
fc4c4fdd
VS
34302013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 Detach optional parts of gfxterm and integrate in with coreboot init.
3433
6570b205
VS
34342013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 Move blit and fill dispatcher to appropriate files to decrease export
3437 and relocation overhead.
3438
b8323067
VS
34392013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/font/font.c, include/grub/font.h: Inline simple font
3442 functions.
3443
3cc1878f
VS
34442013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/Makefile.am: Fix compilation problem with some
3447 automake versions.
3448
4b80e43c
VS
34492013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
3452
57e0c20c
VS
34532013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
3456 automake versions.
3457
4fd42c53
VS
34582013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
3461 SSDT.
3462
1e908b34
RS
34632013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
3464
3465 * grub-core/partmap/dfly.c: New partition map.
3466
1359e474
VS
34672013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
3470 checking.
3471 Reported by: Francesco Lavra.
3472
17806392
AB
34732013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
3474
3475 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
3476 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
3477 false conditions.
3478 * conf/Makefile.common: define dist_grubconf_DATA
3479
cdce14fa
VS
34802013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 Progressively skip menu elements on small terminals rather
3483 than crashing.
3484
c8d6cc3c
VS
34852013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3488 to avoid losing last column.
3489
a73b31ce
VS
34902013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * po/exclude.pot: Add missing string "%C".
3493
1202c764
VS
34942013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
3497 after the test.
3498
50268344
VS
34992013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * util/grub-install.in: Gettextize "Not found" message.
3502
62b15edf
VS
35032013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 Fix distfiles list.
3506 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3507
35082013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
3509
3510 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
3511 present.
3512 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
3513
709ad61b
VS
35142013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
3517
d128901a
VS
35182013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
3521 attribute since structure is not necessarily aligned.
3522
34b22f5c
AB
35232013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
3524
3525 * docs/grub.texi (Device syntax): Clarify description of network
3526 drives.
3527
0f7e980b
VS
35282013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
3531 for vasprintf presence.
3532
30b03dc2
VS
35332013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3534
3535 * util/grub-install.in: Handle efibootmgr presence check.
3536 Reported by: Leif Lindholm.
3537
0dc11c08
VS
35382013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
3541 new strings to translate.
3542
f8024c3f
VS
35432013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
3546 yet another string (pun intended) to translate.
3547
b4c1da62
VS
35482013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 * po/POTFILES-shell.in: Autogenerate it.
3551
0ef7478b
VS
35522013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
3555
8200fa15
VS
35562013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
3559 misnomer.
3560
091945b2
AB
35612013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
3562
3563 * docs/grub.texi (Network): Add description of net_default_interface,
3564 net_default_ip and net_default_mac. Rewrite variables description
3565 to emphasize that they are per-interface.
3566
0e7b2e32
VS
35672013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 New test: cmdline and cat.
3570
16f7c8f6
VS
35712013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/commands/cat.c: Show UTF-8 characters.
3574
3e912fda
VS
35752013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * conf/Makefile.common: Poison float and double on non-emu.
3578
ee0220bc
VS
35792013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * configure.ac: Don't disable extended registers on emu.
3582
89e0240c
VS
35832013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * configure.ac: Don't use extended registers on x86_64.
3586 Reported by: Peter Jones.
3587
e56d9637
VS
35882013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/term/efi/console.c: Fix compile error.
3591
8098f655
VS
35922013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 Compressed HFS+ support.
3595
16940e07
VS
35962013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
3599 pixel".
3600
c5dbc13d
VS
36012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 Menu color test.
3604
011f8ae8
VS
36052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/tests/setjmp_test.c: New test.
3608
2aa072d7
VS
36092013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 New variables 'net_default_*' to determine MAC/IP of default interface.
3612
43fe02cb
VS
36132013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * tests/gettext_strings_test.in: A test to check for strings not
3616 marked for translation.
3617
bed06142
VS
36182013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * autogen.sh: Exclude unused libgcrypt files from translation.
3621
fb2666b5
VS
36222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 Simplify few strings.
3625
d22840ec
VS
36262013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 Mark few forgotten strings for translation.
3629
e34092fd
VS
36302013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
3633 rather than printf.
3634
47cf82b4
VS
36352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
3638 rather than printf.
3639 * grub-core/video/readers/tga.c: Likewise.
3640
1eed0e6e
VS
36412013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * tests/priority_queue_unit_test.cc: New test.
3644
c5b7697b
VS
36452013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
3648 than printf.
3649
5945c2f8
AB
36502013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
3651
3652 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
3653 variable for one time boot menu entry.
3654
fa292343
B
36552013-05-05 Bean <bean123ch@gmail.com>
3656
3657 * grub-core/commands/testspeed.c: New command testspeed.
3658
310d4214
VS
36592013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 Factor-out human-size printing.
3662
85002bf3
VS
36632013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 Agglomerate more mallocs to speed-up gfxterm.
3666
22b06e96
VS
36672013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 Speed-up gfxterm by slightly agglomerating mallocs.
3670
b7c036bc
VS
36712013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 More video checks.
3674
92323d1f
VS
36752013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 Speed-up gfxterm by saving intermediate results in index+alpha
3678 format.
3679
0fb356a3
VS
36802013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
3683 test.
3684
44dea3f9
VS
36852013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
3688 line of timeout as it may contain the rest of long line.
3689
14af86e4
VS
36902013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/normal/main.c: Fix freed memory dereference.
3693
03f7c8c3
VS
36942013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 Fix several memory leaks.
3697
c686014c
VS
36982013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
3701
0788a695
VS
37022013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
3705
daf01d61
VS
37062013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 Fix test -a and -o precedence.
3709 Reported by: adrian15.
3710
82ae74d7
VS
37112013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
3714
8cec7bd4
AB
37152013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
3716
3717 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
3718 and add it as source to functional_test module.
3719
aa73d688
VS
37202013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
3723
c104b6f9
VS
37242013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 New series of tests for gfxterm and gfxmenu.
3727
7391c4d5
VS
37282013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
3731 the theme path relative to $prefix/themes.
3732
cff50118
VS
37332013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
3736 Fix order bug.
3737 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3738
7c332bdc
VS
37392013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
3742 descriptor.
3743
a4f9a5ff
VS
37442013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
3747 grub_gfxmenu_timeout_notifications.
3748 (grub_gfxmenu_view_destroy): Likewise.
3749
b5a2114d
VS
37502013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
3753
a8905e8a
VS
37542013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 Several fixes to ieee1275 and big-endian video.
3757
813c1622
VS
37582013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 Add missing exports on mips.
3761
3f3e7326
VS
37622013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3765 if no unifont is found.
3766 Restore original keyboard.
3767
095accd1
VS
37682013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3771 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3772
50361660
VS
37732013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 First automated video test (running videotest and comparing results)
3776
cd0f6eec
VS
37772013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3780 instead of 2 to have full RGB/CMY test pattern.
3781
3f9634e5
VS
37822013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Add few more tests.
3785
583e5b64
VS
37862013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3789 ARCS. All users updated.
3790
aa7bcb99
VS
37912013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3794
95ef1a54
VS
37952013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3798
46546fc5
VS
37992013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3802 Reported by: qwertial.
3803
3476e0ef
VT
38042013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3805
3806 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3807 with syntax "XXX deg"/"XXX °".
3808
96f33fed
VS
38092013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 Make PCI init in i386-qemu port more robust.
3812
38132013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
3814
3815 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3816 cached view is reused.
3817 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3818 open boot menus.
3819
c53b4e67
VS
38202013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 Unify more code in grub-install_header.
3823
f7457fb2
VS
38242013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 Add few new tests.
3827
e2f27a8c
VS
38282013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 Enforce disabling of firmware disk drivers when native drivers kick in.
3831
ef9d8cd5
VS
38322013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/commands/nativedisk.c: Customize the list of modules on
3835 platform. Don't try to search for disks already using native drivers.
3836
f7bf6c31
VS
38372013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3840 platforms.
3841
bdc4add8
VS
38422013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3845 handling of variables containing backslash.
3846
e9e46c9a
VS
38472013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3850 dereference.
3851 Reported by: qwertial.
3852
0e90dee8
VS
38532013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3856
e0aacf24
VS
38572013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3860 dereference.
3861 Reported by: qwertial.
3862
3c0003c3
VS
38632013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3866
adb7d667
VS
38672013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3870
7cd0df84
VS
38712013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 New command `nativedisk'.
3874
02adbb93
VS
38752013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3876
3877 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3878 * grub-core/loader/i386/bsd.c: Likewise.
3879
9fb0fd4f
VS
38802013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3883
bd69257a
VS
38842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3887 grub_get_unaligned16 rather than shifts.
3888
178c2764
VS
38892013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * grub-core/kern/file.c: Use const char * rather than casting to
3892 non-const.
3893
eadfad24
VS
38942013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/commands/probe.c: Add missing grub_device_close.
3897
9f73ebd4
VS
38982013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * INSTALL: Document linguas.sh.
3901
965fa829
VS
39022013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 Remove POTFILES.in and regenerate it in autogen.sh.
3905
d417ddc4
VS
39062013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 Move --directory/--override-directorry to grub-install_header and unify.
3909
f97ec546
VS
39102013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/term/morse.c: Macroify dih and dah.
3913
b2d7470c
PFS
39142013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3915
3916 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3917
141e2a78
VS
39182013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/term/ns8250.c: Systematically probe ports by writing
3921 to SR before using them.
3922
1dd70ebd
PFS
39232013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3924
3925 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3926 disks.
3927 (check_sas): Get sas_adress info.
3928
c796a107
VS
39292013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3932 ports.
3933
43168646
LD
39342013-04-27 Leon Drugi <eyak>
3935
3936 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3937 BSS clearing.
3938
e7b8fd08
VS
39392013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 Core compression test.
3942
17f9fd29
VS
39432013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 Implement grub_machine_get_bootlocation for ARC.
3946
dc2a6c8b
VS
39472013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3948
3949 Improve AHCI detection and command issuing.
3950
f25a2ba6
VS
39512013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 Fix pseries test.
3954
a6393224
VS
39552013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 Make 'make check' work on emu.
3958
db99fbe8
VS
39592013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 Replace libcurses with our own vt100 handling for the ease of testing
3962 and decreasing prerequisites.
3963
b24ca7cd
VS
39642013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3965
3966 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3967
63314aa4
VS
39682013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3971 compile when not needed.
3972
c1b00fff
VS
39732013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3974
3975 * tests/pseries_test.in: New test.
3976
f93e89ef
VS
39772013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 Add test to check that different boot mediums work.
3980
c4b456d3
VS
39812013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3984 ofw limited ISO support.
3985
5fe67f39
VS
39862013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * configure.ac: Fix loongson conditional.
3989
7f63a64f
VS
39902013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 Enable mipsel-arc.
3993
b04b5990
VS
39942013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 Add serial on ARC platform.
3997
88d2f302
VS
39982013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
4001 commit.
4002
86eb23bc
VS
40032013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * tests/partmap_test.in: Add missing double semicolon.
4006
eec3bb75
VS
40072013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * util/grub-mkrescue.in: Fix loongson filename.
4010
e0810df3
VS
40112013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * util/grub-mkrescue.in: Move all files that don't have a location
4014 set in stone under /boot/grub. Use ISO hard links rather than copies
4015 to save some space.
4016
65a6b30b
VS
40172013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
4020 bogus SLOF values.
4021
6aff0107
VS
40222013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 Make check work on mips-arc.
4025
5e013e56
VS
40262013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * util/grub-mkrescue.in: Alias sashARCS as sash.
4029
d1989e2e
VS
40302013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
4033 it's serial.
4034
1a25e72c
VS
40352013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * util/grub-install.in: Fix target fo qemu_mips.
4038 Fix extension on EFI.
4039
a59a9826
VS
40402013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
4043 in front of chosen entry to mark it even if highlighting is lost.
4044
1a40f80c
VS
40452013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
4048 gfxpayload=keep if cbfb is active.
4049
e343549c
VS
40502013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
4053
45fbd9a2
VS
40542013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 Add missing video ids to coreboot and ieee1275 video.
4057
ab1440bd
VS
40582013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * util/grub-mkrescue.in: Add mips-arc support.
4061
cdeb8324
VS
40622013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
4065
8528c879
VS
40662013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 Move mips-arc link address. Previous link address was chosen
4069 in belief that RAM on SGI platforms grows down while in fact it
4070 grows up from an unusual base.
4071
17fca573
VS
40722013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
4075 Fix a type which prevented CD-ROM and floppy boot.
4076
d178788e
VS
40772013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 Support coreboot framebuffer.
4080
4081 * grub-core/video/i386/coreboot/cbfb.c: New file.
4082
fe4c3e7e
VS
40832013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
4086 detecting too small regions.
4087
ec2dd179
VS
40882013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
4091
872dac83
VS
40922013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
4095 Remove dprintf.
4096 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
4097
90ec4b7f
VS
40982013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
4101 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
4102 * grub-core/loader/powerpc/ieee1275/linux.c
4103 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
4104
f32555dd
VS
41052013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4106
4107 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
4108 Look for /boot-rom as well as /rom/boot-rom.
4109
38649799
VS
41102013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
4113 handling when creating text_layer failed.
4114 * grub-core/video/video.c (grub_video_create_render_target):
4115 Set result to 0 on error.
4116 (grub_video_delete_render_target): Do not dereference NULL.
4117
aeace7f7
VS
41182013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
4121 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
4122 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
4123 (grub_linux_load64): Mask out 2 high bits.
4124
4eafa175
AB
41252013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
4126
4127 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
4128 more place.
4129
daaa64bd
VS
41302013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 Add support for pseries and other bootinfo machines to grub-mkrescue.
4133
4134 Tested by: Paulo Flabiano Smorigo.
4135
d0d2daa6
VS
41362013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 * util/grub-mkrescue.in: Add GPT for EFI boot.
4139
b193e100
VS
41402013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
4143 It improves performance in qemu.
4144
a0f8f3ac
VS
41452013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * build-aux/snippet: Add missing gnulib files.
4148
284df0e2
AB
41492013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
4150
4151 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
4152
740201f3
AB
41532013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
4154
4155 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
4156
a7e03923
PJ
41572013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
41582013-04-15 Peter Jones <pjones@redhat.com>
4159
4160 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
4161 sectors.
4162 Based on patch by Peter Jones.
4163
25fc51a8
VS
41642013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 Fix DMRAID partition handling.
4167
88017d47
VS
41682013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * tests/grub_cmd_date.in: Skip on sparc64.
4171
fa7d914e
VS
41722013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
4175 firmware error messages.
4176
cbe57a48
VS
41772013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
4180 source and destination differ.
4181
21aecce0
VS
41822013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
4185 detection.
4186
25092d29
VS
41872013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
4190 match config-util.h to avoid warnings and increase compatibility.
4191
79451522 41922013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 41932013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
4194
4195 Add option to compress files on install/image creation.
4196
78b7d77b
VS
41972013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * docs/grub-dev.texi: Rearrange menu to match the section order.
4200 Reported by: Bryan Hundven.
4201
cc2fa5ec
VS
42022013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
4205
b49fe879
VS
42062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 Move GRUB out of system area when using xorriso 1.2.9 or later.
4209
5351da81
VS
42102013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * tests/grub_cmd_date.in: Add missing exit 1.
4213
c9d586ea
VS
42142013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * tests/partmap_test.in: Skip on sparc64.
4217
3f729741
VS
42182013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Support grub-shell on sparc64.
4221
8ca86b3a
VS
42222013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4223
4224 Support mkrescue on sparc64.
4225
aa1af9bb
VS
42262013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 Allow IEEE1275 ports on path even if it wasn't detected automatically.
4229 Needed on OpenBIOS due to incomplete device tree.
4230
ac4fea79
VS
42312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
4234 would be otherwise excluded.
4235
42362013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
4237
4238 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
4239 Inline name defines used only once.
4240
fe22b071
VS
42412013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 Fix memory leaks in ofnet.
4244 Reported by: Francesco Lavra.
4245
9d21381b
VS
42462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 * docs/man/grub-glue-efi.h2m: Add missing file.
4249
07aec23c
VS
42502013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
4253
67ab8353
VS
42542013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 Better support Apple Intel Macs on CD.
4257
ba44ca6d
VS
42582013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 Replace stpcpy with grub_stpcpy in tools.
4261
bbdd6305
VS
42622013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 Handle Japanese special keys.
4265 Reported by: Hiroyuki YAMAMORI.
4266 Codes supplied by: Hiroyuki YAMAMORI.
4267
8573d302
VS
42682013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * util/grub-mkimage.c: Document memdisk implying --prefix.
4271
d70dbab7
VS
42722013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
4275 much we can do about it anyway.
4276
51a4c3e3
AN
42772013-04-12 Aleš Nesrsta <starous@volny.cz>
4278
4279 Fix handling of split transfers.
4280
92c8f58d
VS
42812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/net/http.c: Fix bad free.
4284
b7d17a49
VS
42852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
4288 than buffer size.
4289
a3d566d4
VS
42902013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 Disable partmap check on i386-ieee1275 due to openfirmware issues.
4293
a936af56
VS
42942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * tests/util/grub-shell.in: Fix it on powerpc.
4297
51212234
VS
42982013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 Turn off QEMU ACPI-way since new releases don't have shutdown port
4301 anymore.
4302
a21eec9e
VS
43032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4304
4305 * docs/grub.texi: Update coreboot status info.
4306
e3734b84
VS
43072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * tests/grub_cmd_date.in: New test for datetime.
4310
f9d40055
VS
43112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * tests/partmap_test.in: Fix missing qemudisk setting.
4314
dbc56d8f
VS
43152013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 Support i386-ieee1275 grub-mkrescue and make check on it.
4318
a79b8a15
VS
43192013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
4322 feature for it.
4323
48f39bb4
VS
43242013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
4327 GRUB_CMDLINE_XEN_DEFAULT.
4328 Reported by: Marc Warne (GigaTux) <gigatux>
4329
053cfcdd
VS
43302013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 Import new gnulib.
4333
93cd84df
VS
43342013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 Use ACPI shutdown intests as traditional port was removed.
4337
f4b1fa4f
AB
43382013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
4339
4340 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
4341 distinction.
4342
49818a59
VS
43432013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
4346 Fix few warining messages and leaks while on it.
4347
9277a306
AB
43482013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
4349
4350 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
4351 links under grub-core/lib/libgcrypt-grub/mpi.
4352
d5e2a158
VS
43532013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 Fix ia64-efi image generation on big-endian machines. Deduplicate
4356 some code while on it.
4357 Reported by: Leif Lindholm.
4358
18866643
AB
43592013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4360
4361 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
4362 as extra_dist.
4363
ca53deb8
AB
43642013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4365
4366 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
4367
d4c4b8e1
BH
43682013-04-08 Bryan Hundven <bryanhundven@gmail.com>
4369
4370 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
4371 texinfo-5.1.
4372
47043f95
VS
43732013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * grub-core/normal/term.c: Few more fixes for menu entry editor
4376 rendering.
4377 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4378
a3216068
VS
43792013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 * grub-core/normal/term.c: Few more fixes for menu entry editor
4382 rendering.
4383 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4384
21026747
AB
43852013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4386
4387 * conf/Makefile.extra-dist (EXTRA_DIST): Add
4388 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
4389
59624ca8
AB
43902013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4391
4392 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
4393 instead of hardcoding grub.mo.
4394
1f44478c
FN
43952013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
4396
4397 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
4398
eeada7b1
VS
43992013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
4402 grub-core/disk/geli.c.
4403
132867de
VS
44042013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 * util/grub-mkfont.c: Prefer enum to #define.
4407
de73de17
VS
44082013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
4411
1865baa7
VS
44122013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
4415
ce7d92a9
VS
44162013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
4419
52eab656
VS
44202013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
4423
98b23b95
VS
44242013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * include/grub/bsdlabel.h: Use enums.
4427
0467a5dd
VS
44282013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 Move GRUB_CHAR_BIT to types.h.
4431
16cc9f03
AB
44322013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4433
4434 * docs/grub.texi: Document more user commands.
4435
3152aecb
AB
44362013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4437
4438 * docs/grub.texi: Document menuentry --id option.
4439
c506fc30
FL
44402013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
4441
4442 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
4443
aa428238
VS
44442013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 Unify file copying setup across different install scripts. Add
4447 options for performing partial install.
4448
efe0cdda
PJ
44492013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
44502013-04-04 Peter Jones <pjones@redhat.com>
4451
4452 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
4453
f75835bd
VS
44542013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 Use TSC as a possible time source on i386-ieee1275.
4457
2cd5ce6c
VS
44582013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
4461 Init err.
4462
c9625630
VS
44632013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * util/grub-setup.c (setup): Handle some corner cases.
4466
be008941
VS
44672013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
4470
1a78d573
VS
44712013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/commands/verify.c: Save verified file to avoid it being
4474 tampered with after verification was done.
4475
db8ff59f
VS
44762013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
4479 reported width by one to compensate for curesor algorithm problem.
4480
91bf46b1
VS
44812013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 Fix screen corruption in menu entry editor and simplify the code
4484 flow while on it.
4485
a7b1d693
AB
44862013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
4487
4488 * util/grub-mount.c (fuse_init): Return error if fuse_main
4489 failed.
4490
31df9ad8
FL
44912013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
4492
4493 * include/grub/elf.h: Add missing ARM relocation codes and fix
4494 existing ones.
4495
07f392eb
VT
44962013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4497
4498 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
4499
9efd73ec 45002013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
45012013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
4504 into account when calculating radius.
4505
45062013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
4507
4508 * grub-core/gfxmenu/view.c: Fix off-by-one error.
4509
4985ddaa
VT
45102013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4511
4512 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
4513
8c3635ff
RS
45142013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4515
4516 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
4517 missing closing bracket.
4518
74a35e69
RS
45192013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4520
4521 * INSTALL: Mention xorriso requirement.
4522
40f1c000
AB
45232013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
4524
4525 * grub-core/commands/verify.c: Fix hash algorithms values for
4526 the first three hashes - they start with 1, not with 0.
4527
e75fdee4
VS
45282013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
4531 Try terminating EFI services several times due to quirks in some
4532 implementations.
4533
33028f4c
CW
45342013-03-26 Colin Watson <cjwatson@ubuntu.com>
4535
4536 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
4537 skipping Event, Device, Processor, PowerRes, ThermalZone, and
4538 BankField extended opcodes.
4539 (get_sleep_type): Add minimal scope handling (just enough to
4540 handle setting the scope to the root path).
4541 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
4542 * include/grub/acpi.h: Add enumeration values for Event, Device,
4543 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
4544
33871a10
VT
45452013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
4546
4547 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
4548 memory leak.
4549
8990963a
VS
45502013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 * grub-core/disk/ahci.c: Give more time for AHCI request.
4553
daae8f9e
VS
45542013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
4557 command.
4558
6a7fb94b
VS
45592013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 Replace the region at 0 from coreboot tables to available in BSD
4562 memory map.
4563
ff99babd
VS
45642013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
4567 non-BIOS platforms.
4568
30d6b1b2
VS
45692013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
4572 platforms.
4573
6ccd0b31
VS
45742013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
4577 handling of multi-device filesystems.
4578
23c9cc04
VS
45792013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
4582 platforms.
4583
ce50dbd7
VS
45842013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 Add new 'proc' filesystem framework and put luks_script into it.
4587
d975e8d5
VS
45882013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
4591 and qemu.
4592
e73ba5e8
VS
45932013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
4596
92750e4c
VS
45972013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 Add ability to generate newc additions on runtime.
4600
0ec45a68
VS
46012013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
4604 description.
4605
320abd43
VS
46062013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * po/POTFILES.in: Regenerate.
4609
d7a6506e
VS
46102013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * grub-core/commands/verify.c (hashes): Add several hashes
4613 from the spec.
4614
8fe05def
VS
46152013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 Slight improve in USB-related boot-time checkpoints.
4618
524e2766
VS
46192013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/commands/boottime.c: Fix copyright header.
4622
cc19857a
VS
46232013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
4626 coreboot tables content. Support for cbmemc.
4627
ef8810e9
VS
46282013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 Fix a conflict between ports structures with 2 controllers of
4631 same kind.
4632
e9dabdfa
VS
46332013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * include/grub/boottime.h: Add missing file.
4636
f6df57d2
VS
46372013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 Initialize USB ports in parallel to speed-up boot.
4640
d745dda7
VS
46412013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 Fix USB devices not being detected when requested
4644 due to delayed attach.
4645
e5a2dd7b
VS
46462013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4647
e744219b
VS
4648 Implement boot time analysis framework.
4649
46502013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
4653 descriptor to just receive it as argument rather than endpoint
4654 address.
4655
5dd6f587
VS
46562013-03-19 Aleš Nesrsta <starous@volny.cz>
4657
4658 Better estimate the maximum USB transfer size.
4659
2f1071d5
VS
46602013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 Resend a packet if we got the wrong buffer in status.
4663
46ecfc49
VS
46642013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
4667 multiplication rather than division.
4668
ea811130
VS
46692013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
4672 than divisions.
4673
d2789cf0
VS
46742013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4675
4676 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
4677 operations to have intended shifts and not divisions.
4678
a9c94590
VS
46792013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
4682 intended shifts rather than division.
4683
84cfe81b
VS
46842013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
4687 computation for some years before epoch. Avode confusing division
4688 while on it.
4689
21344ef6
VS
46902013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * grub-core/video/i386/pc/vbe.c
4693 (grub_video_vbe_print_adapter_specific_info): Replace division by
4694 shifts.
4695
3f2b4d1a
VS
46962013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 Adjust types in gdb module to have intended unsigned shifts rather than
4699 signed divisions.
4700
3dac5878
VS
47012013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4702
4703 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
4704 maximum size is 4G - 1 on hfs
4705
5341c0fb
VS
47062013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
4709
fc3ff2a2
VS
47102013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
4713 function.
4714
81455e8e
AB
47152013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
4716
4717 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
4718 causing gcc error with gcc 4.7.1.
4719
efd4f117
NZ
47202013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4721
4722 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
4723 dereference null pointer. While the code is technically correct, gcc
4724 may eliminate a null check if pointer is already dereferenced.
4725
e11645f4
NZ
47262013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4727
4728 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
4729 OOM check.
4730 * grub-core/normal/term.c (read_terminal_list): Likewise.
4731
77468368
VS
47322013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 Lift up core size limits on some platforms. Fix potential memory
4735 corruption with big core on small memory systems. Document remaining
4736 limits.
4737
f6b58fe5
VS
47382013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
4741 gotoxy to 0,0.
4742
19ce697d
VS
47432013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 Remove all trampoline support. Add -Wtrampolines when
4746 present. Remove symbols used for trampolines to make
4747 link fail if trampolines are present.
4748
73b5d90f
VS
47492013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
4752 append out of its parent.
4753
cb758e96
VS
47542013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
4757 parent.
4758
3188131f
VS
47592013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
4762 all vars to a macro. All users updated.
4763
e42b2514
VS
47642013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4767 i386-ieee1275.
4768
83e1a1a1
VS
47692013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4772
1d5a880f
VS
47732013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4776
6e4146c4
VS
47772013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 Move to more hookless approach in IEEE1275 devices handling.
4780
99fcda8a
VS
47812013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * grub-core/kern/term.c (grub_term_normal_color),
4784 (grub_term_highlight_color): Add back lost defaults.
4785
73bf57e2
VS
47862013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 Make elfload not use hooks. Opt for flags and iterators instead.
4789
7f8c105f
VS
47902013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4793 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4794
396d4091
VS
47952013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4798
47992013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4802 hook pass-through parameter. All users updated and unnested.
4803
74a27421
VS
48042013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4807 out of its parent.
4808
b46d4213
VS
48092013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/fs/hfs.c: Remove nested functions.
4812
e114c3cc
VS
48132013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4816 the context through.
4817 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4818
f9b7d780
VS
48192013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * util/grub-editenv.c (list_variables): Move print_var out of its
4822 parent.
4823
ca9c2608
VS
48242013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4827 function.
4828
5d983f5f
VS
48292013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 * grub-core/gentrigtables.c: Make tables const.
4832
3056d3e7
VS
48332013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 Remove nested functions from videoinfo iterators.
4836
e2303774
VS
48372013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4840 for 64-bit platforms.
4841
f42e3a2f
VS
48422013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4845 a FOR_CHILDREN macro.
4846
be174e5e
VS
48472013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4850 platform from firmware path.
4851
0789b672
VS
48522013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 Enable linux16 on non-BIOS systems for i.a. memtest.
4855
4856 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4857 correctly.
4858 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4859
005a9c32
VS
48602013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4863 Fix end of table condition.
4864
ff2b3cd9
VS
48652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4868 out of its parent.
4869
4fc40ff8
VS
48702013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * grub-core/fs/jfs.c: Remove nested functions.
4873
be42d97a
VS
48742013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * grub-core/fs/minix.c: Remove nested functions.
4877
99373ce4
VS
48782013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * grub-core/fs/iso9660.c: Remove nested functions.
4881
5aec2afe
VS
48822013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4885 of parent function.
4886
6c69e691
VS
48872013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * util/grub-fstest.c: Remove nested functions.
4890
43c91882
VS
48912013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/loader/machoXX.c: Remove nested functions.
4894
4eb8b756
CW
48952013-02-27 Colin Watson <cjwatson@ubuntu.com>
4896
4897 Remove nested functions from disk and file read hooks.
4898
4899 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4900 (struct grub_disk): Add read_hook_data member.
4901 * include/grub/file.h (struct grub_file): Likewise.
4902 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4903 argument.
4904
4905 Update all callers.
4906
df6da5a5
AB
49072012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4908
4909 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4910 Fix off by one error in enumerating extended partitions.
4911
21aecde5
AB
49122013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4913
4914 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4915 memory leak if device name is not found.
4916
f1a19118
AB
49172013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4918
4919 * grub-core/normal/menu_entry.c (update_screen): remove
4920 unused variable `off' which caused scroll down arrow to be always shown.
4921
958bfd20
AB
49222013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4923
4924 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4925 access to unallocated memory.
4926
b7b78edb
AB
49272013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4928
4929 * Makefile.util.def: Add partmap/msdos.c to common library.
4930 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4931 * grub-core/disk/ldm.c: Check for existence of
4932 GRUB_PC_PARTITION_TYPE_LDM.
4933
28d468d6
VS
49342013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4937 sizes and display sector size.
4938
d55ffb02
VS
49392013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 Implement new command cmosdump.
4942
b5ea6ce0
VS
49432013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4944
4945 Support Openfirmware disks with non-512B sectors.
4946
4947 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4948 size of the disk.
4949 * (grub_ofdisk_get_block_size): New function.
4950 * (grub_ofdisk_prepare): Use the correct block size.
4951 * (grub_ofdisk_read): Likewise.
4952 * (grub_ofdisk_write): Likewise.
4953 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4954 New proto.
4955
cc0e476f
VS
49562013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4959
c5dbdc33
VS
49602013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4963 on first error.
4964
3f078c0f
VS
49652013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4968 freeing it.
4969
66a93674
VS
49702013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 Implement USBDebug (full USB stack variant).
4973
c9f0c134
VS
49742013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4977 unless they have unexpected values.
4978
cfe1288b
VS
49792013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4982 grub_print_error.
4983
e42b9969
VS
49842013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4987 zero-out of port structure.
4988
cf94fd62
VS
49892013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4992 of extended attributes.
4993
f81ef4b5
AB
49942013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4995
4996 * util/grub-install.in: change misleading comment about
4997 device.map creation
4998
af18fdb4
VS
49992013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
5002 when menu highlight color isn't set.
5003
08bcec50
M
50042013-01-27 C. Masloch <pushbx@38.de>
5005
5006 Improve FreeDOS direct loading support compatibility.
5007
5008 * include/grub/i386/relocator.h (grub_relocator16_state):
5009 New member ebp.
5010 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
5011 variable.
5012 (grub_relocator16_boot): Handle %ebp.
5013 * grub-core/lib/i386/relocator16.S: Likewise.
5014 * grub-core/loader/i386/pc/freedos.c:
5015 Load BPB to pass kernel which partition to load from.
5016 Check that kernel file is not too large.
5017 Set register dl to BIOS unit number as well.
5018
7782b8a6
CW
50192013-01-22 Colin Watson <cjwatson@ubuntu.com>
5020
5021 * util/grub-reboot.in (usage): Document the need for
5022 GRUB_DEFAULT=saved.
5023 * util/grub-set-default.in (usage): Likewise.
5024 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
5025
e661c180
VS
50262013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
5029 than defining WORDS_BIGENDIAN manually.
5030
1c22ca9a
VS
50312013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
5034 invariants.
5035
d44892fe
CW
50362013-01-21 Colin Watson <cjwatson@ubuntu.com>
5037
5038 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
5039 nested.
5040 (blit_comb: add_device_width): Likewise.
5041
5fdbaed1
CW
50422013-01-21 Colin Watson <cjwatson@ubuntu.com>
5043
5044 Remove nested functions from USB iterators.
5045
5046 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
5047 (grub_usb_controller_iterate_hook_t): Likewise.
5048 (grub_usb_iterate): Add hook_data argument.
5049 (grub_usb_controller_iterate): Likewise.
5050 (struct grub_usb_controller_dev.iterate): Likewise.
5051
5052 Update all implementations and callers.
5053
4250985a
VS
50542013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
5057 margin when not needed.
5058
7d8848f3
VS
50592013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5060
bc136973 5061 Make color variables global instead of it being per-terminal.
7d8848f3
VS
5062
50632013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5064
bc136973
VS
5065 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
5066 asterisk.
7d8848f3 5067
ed12a003
CW
50682013-01-21 Colin Watson <cjwatson@ubuntu.com>
5069
5070 Fix powerpc and sparc64 build failures caused by un-nesting memory
5071 map iterators.
5072
6a0db449
CW
50732013-01-21 Colin Watson <cjwatson@ubuntu.com>
5074
5075 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
5076 parameter declarations.
5077
ccd86b21
VS
50782013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
5081
822b726b
VS
50822013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5083
5084 Improve spkmomdem reliability by adding a separator between bytes.
5085
115c2cc1
CW
50862013-01-21 Colin Watson <cjwatson@ubuntu.com>
5087
5088 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
5089 an Acer registration utility with several sightings in the wild.
5090 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
5091
fc524edf
CW
50922013-01-21 Colin Watson <cjwatson@ubuntu.com>
5093
5094 Remove nested functions from filesystem directory iterators.
5095
5096 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
5097 (struct grub_fs.dir): Add hook_data argument.
5098
5099 Update all implementations and callers.
5100
53d3e4e3
CW
51012013-01-21 Colin Watson <cjwatson@ubuntu.com>
5102
5103 * docs/grub.texi (Multi-boot manual config): Fix typo for
5104 "recommended".
5105
c821711f
LL
51062013-01-20 Leif Lindholm <leif.lindholm@arm.com>
5107
5108 * util/grub-mkimage.c (main): Postpone freeing arguments.output
5109 until after its use in generate_image.
5110
6a0debbd
CW
51112013-01-20 Colin Watson <cjwatson@ubuntu.com>
5112
5113 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
5114 initrd size to addr_min, since the initrd will be allocated after
5115 this address.
5116
f41e08db
AB
51172013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
5118
5119 * conf/Makefile.common: Fix autogen rules to pass definition
5120 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
5121
77529e0f
LL
51222013-01-20 Leif Lindholm <leif.lindholm@arm.com>
5123
5124 * include/grub/elf.h: Update ARM definitions based on binutils.
5125
b879aa7b
VS
51262013-01-20 Aleš Nesrsta <starous@volny.cz>
5127
5128 Split long USB transfers into short ones.
5129
8eb8284d
AB
51302013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
5131
5132 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
5133 is interrupted by ESC.
5134
08dad2dc
VS
51352013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * util/grub-script-check.c (main): Uniform the error message.
5138
6c724b85
CW
51392013-01-20 Colin Watson <cjwatson@ubuntu.com>
5140
5141 Remove nested functions from ELF iterators.
5142
25239370
CW
51432013-01-20 Colin Watson <cjwatson@ubuntu.com>
5144
5145 Remove nested functions from device iterators.
5146
5147 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
5148 (grub_arc_iterate_devs): Add hook_data argument.
5149 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
5150 (struct grub_ata_dev.iterate): Add hook_data argument.
5151 * include/grub/device.h (grub_device_iterate_hook_t): New type.
5152 (grub_device_iterate): Add hook_data argument.
5153 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
5154 (struct grub_disk_dev.iterate): Add hook_data argument.
5155 (grub_disk_dev_iterate): Likewise.
5156 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
5157 Likewise.
5158 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
5159 Likewise.
5160 * include/grub/partition.h (grub_partition_iterate_hook_t): New
5161 type.
5162 (struct grub_partition_map.iterate): Add hook_data argument.
5163 (grub_partition_iterate): Likewise.
5164 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
5165 (struct grub_scsi_dev.iterate): Add hook_data argument.
5166
5167 Update all callers.
5168
6c0314d6
CW
51692013-01-20 Colin Watson <cjwatson@ubuntu.com>
5170
5171 Fix typos for "developer" and "development".
5172
600dc5f1
VS
51732013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 Add license header to spkmodem-recv.c.
5176
17334a6b
VS
51772013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 Rewrite spkmodem to use PIT for timing. Double the speed.
5180
7d462559
VS
51812013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 Add new command pcidump.
5184
b78d6c32
VS
51852013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 New terminal outputs using serial: morse and spkmodem.
5188
34f71cb8
VS
51892013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 Improve bidi handling in entry editor.
5192
4542e71b
VS
51932013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5196 argument to prevent name collision.
5197
09fd6d82
CW
51982013-01-15 Colin Watson <cjwatson@ubuntu.com>
5199
5200 Remove nested functions from script reading and parsing.
5201
5202 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
5203 getline_data argument, passed to getline.
5204 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
5205 getline_data argument, passed to grub_parser_split_cmdline.
5206 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
5207 lexerstate->getline_data to lexerstate->getline.
5208 (grub_script_lexer_init): Add getline_data argument, saved in
5209 lexerstate->getline_data.
5210 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
5211 argument, passed to grub_script_parse.
5212 * grub-core/script/script.c (grub_script_parse): Add getline_data
5213 argument, passed to grub_script_lexer_init.
5214 * include/grub/parser.h (grub_parser_split_cmdline): Update
5215 prototype. Update all callers to pass appropriate getline data.
5216 (struct grub_parser.parse_line): Likewise.
5217 (grub_rescue_parse_line): Likewise.
5218 * include/grub/reader.h (grub_reader_getline_t): Add void *
5219 argument.
5220 * include/grub/script_sh.h (struct grub_lexer_param): Add
5221 getline_data member.
5222 (grub_script_parse): Update prototype. Update all callers to pass
5223 appropriate getline data.
5224 (grub_script_lexer_init): Likewise.
5225 (grub_normal_parse_line): Likewise.
5226
5227 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
5228 data argument.
5229 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
5230 static instead of nested. Rename to ...
5231 (grub_parser_execute_getline): ... this.
5232 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
5233 data argument.
5234 * grub-core/normal/main.c (read_config_file: getline): Make static
5235 instead of nested. Rename to ...
5236 (read_config_file_getline): ... this.
5237 (grub_normal_read_line): Add unused data argument.
5238 * grub-core/script/execute.c (grub_script_execute_sourcecode:
5239 getline): Make static instead of nested. Rename to ...
5240 (grub_script_execute_sourcecode_getline): ... this.
5241 * util/grub-script-check.c (main: get_config_line): Make static
5242 instead of nested.
5243
d0d4b8a0
CW
52442013-01-15 Colin Watson <cjwatson@ubuntu.com>
5245
5246 Remove nested functions from memory map iterators.
5247
5248 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
5249 argument, passed to hook.
5250 * grub-core/kern/i386/coreboot/mmap.c
5251 (grub_linuxbios_table_iterate): Likewise.
5252 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
5253 instead of nested.
5254 (grub_machine_mmap_iterate): Add hook_data argument.
5255 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
5256 Add hook_data argument, passed to hook.
5257 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
5258 Likewise.
5259 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
5260 Likewise.
5261 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
5262 Likewise.
5263 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
5264 Likewise.
5265 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
5266 Likewise.
5267 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
5268 Likewise.
5269 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
5270 (grub_machine_mmap_iterate): Likewise.
5271 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
5272 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
5273 prototype.
5274 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
5275 Remove NESTED_FUNC_ATTR from here and from all users.
5276 (grub_mmap_iterate): Update prototype.
5277 (grub_efi_mmap_iterate): Update prototype. Update all callers to
5278 pass appropriate hook data.
5279 (grub_machine_mmap_iterate): Likewise.
5280
5281 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
5282 static instead of nested.
5283 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
5284 Rename to ...
5285 (lsmmap_hook): ... this.
5286 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
5287 Likewise.
5288 (grub_efiemu_mmap_fill: fill_hook): Likewise.
5289 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
5290 heap_init): Likewise.
5291 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
5292 Rename to ...
5293 (mmap_iterate_hook): ... this.
5294 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
5295 Likewise.
5296 * grub-core/lib/ieee1275/relocator.c
5297 (grub_relocator_firmware_get_max_events: count): Likewise.
5298 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
5299 to ...
5300 (grub_relocator_firmware_fill_events_iter): ... this.
5301 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
5302 hook): Likewise. Rename to ...
5303 (grub_relocator_alloc_chunk_align_iter): ... this.
5304 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
5305 Rename to ...
5306 (generate_e820_mmap_iter): ... this.
5307 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
5308 Rename to ...
5309 (count_hook): ... this.
5310 (grub_linux_boot: hook): Likewise. Rename to ...
5311 (grub_linux_boot_mmap_find): ... this.
5312 (grub_linux_boot: hook_fill): Likewise. Rename to ...
5313 (grub_linux_boot_mmap_fill): ... this.
5314 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
5315 hook): Likewise. Rename to ...
5316 (grub_fill_multiboot_mmap_iter): ... this.
5317 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
5318 hook): Likewise. Rename to ...
5319 (count_hook): ... this.
5320 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
5321 hook): Likewise. Rename to ...
5322 (grub_fill_multiboot_mmap_iter): ... this.
5323 * grub-core/loader/powerpc/ieee1275/linux.c
5324 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
5325 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
5326 Likewise. Rename to ...
5327 (alloc_phys_choose): ... this.
5328 (determine_phys_base: get_physbase): Likewise.
5329 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
5330 find_hook): Likewise.
5331 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
5332 (malloc_hook: count_hook): Likewise.
5333 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
5334 Likewise. Rename to ...
5335 (lower_hook): ... this.
5336 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5337 (upper_hook): ... this.
5338 (grub_mmap_get_post64: hook): Likewise. Rename to ...
5339 (post64_hook): ... this.
5340 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
5341 Likewise. Rename to ...
5342 (lower_hook): ... this.
5343 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5344 (upper_hook): ... this.
5345 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
5346 (grub_mmap_iterate: fill_hook): Likewise.
5347 (fill_mask): Pass addr and mask within a single struct.
5348 (grub_cmd_badram: hook): Make static instead of nested. Rename
5349 to ...
5350 (badram_iter): ... this.
5351 (grub_cmd_cutmem: hook): Likewise. Rename to ...
5352 (cutmem_iter): ... this.
5353
22099030
VS
53542013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
5357 delimit path in strings using quotes.
5358 * util/getroot.c (grub_guess_root_devices): Likewise.
5359 (grub_make_system_path_relative_to_its_root): Likewise.
5360 * util/grub-probe.c (probe): Likewise.
5361 * util/ieee1275/ofpath.c (find_obppath): Likewise.
5362 (xrealpath): Likewise.
5363
4a9950ec
VS
53642013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 Fix compilation with older compilers.
5367
5368 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
5369 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
5370 declarations.
5371 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
5372 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
5373 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
5374 identifier with b.
5375 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
5376 * include/grub/crypto.h: Add type defines.
5377 * util/import_gcrypth.sed: Remove duplicate type defines.
5378
adcc6020
VS
53792013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 New command list_trusted.
5382
5383 * grub-core/commands/verify.c (grub_cmd_list): New function.
5384
a4528937
CW
53852013-01-13 Colin Watson <cjwatson@ubuntu.com>
5386
5387 * util/grub-mkimage.c (generate_image): Fix "size of public key"
5388 info message.
5389
ca3a7446
CW
53902013-01-13 Colin Watson <cjwatson@ubuntu.com>
5391
5392 Remove nested functions from PCI iterators.
5393
5394 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
5395 passed to hook. Update all callers to pass appropriate hook data.
5396 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
5397 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
5398 Remove NESTED_FUNC_ATTR from here and from all users.
5399 (grub_pci_iterate): Update prototype.
5400 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
5401 instead of nested. Rename to ...
5402 (grub_cs5536_find_iter): ... this.
5403 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
5404 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
5405 Likewise.
5406 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
5407 Likewise.
5408 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
5409 Likewise.
5410 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
5411 Likewise.
5412 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
5413 * grub-core/video/radeon_fuloong2e.c
5414 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
5415 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
5416 find_card): Likewise.
5417 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
5418 Likewise.
5419
f8e98fee
VS
54202013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * grub-core/commands/verify.c: Mark messages for translating.
5423
055b36b6
VS
54242013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
5427 fatal.
5428
f7ff879b
VS
54292013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
5432 fatal.
5433
54342013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
5435
5436 * autogen.sh: Do not try to delete nonexistant files.
5437 * util/import_gcrypth.sed: Add some missing header removals.
5438
01323d49
CW
54392013-01-12 Colin Watson <cjwatson@ubuntu.com>
5440
5441 Clean up dangling references to grub-setup.
5442 Fixes Ubuntu bug #1082045.
5443
5444 * docs/grub.texi (Images): Refer generally to grub-install rather
5445 than directly to grub-setup.
5446 (Installing GRUB using grub-install): Remove direct reference to
5447 grub-setup.
5448 (Device map) Likewise.
5449 (Invoking grub-install): Likewise.
5450 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5451 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5452 * util/grub-install.in (usage): Likewise.
5453
5454 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
5455 Apply to grub-bios-setup and grub-sparc64-setup rather than to
5456 grub-setup.
5457 * configure.ac: Remove grub_setup output variable.
5458
5459 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
5460 to grub-bios-setup.
5461 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
5462 grub-setup to grub-sparc64-setup.
5463
5e3b8dcb
VS
54642013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 Import gcrypt public-key cryptography and implement signature checking.
5467
535714bd
VS
54682013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/fs/ntfs.c: Ue more appropriate types.
5471 * grub-core/fs/ntfscomp.c: Likewise.
5472 * include/grub/ntfs.h: Likewise.
5473
3e4f3566
VS
54742013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 Support Apple FAT binaries on non-Apple platforms.
5477
5478 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
5479 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
5480 Likewise.
5481 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
5482 Apple FAT binaries.
5483
4dedb13f
VS
54842013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
5487 sector devices.
5488
f8861eaf
CW
54892013-01-07 Colin Watson <cjwatson@ubuntu.com>
5490
5491 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
5492 explicitly zeroing elements.
5493 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
5494 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
5495 of elements in a structure already allocated using grub_zalloc.
5496 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5497
86065b0a
CW
54982013-01-07 Colin Watson <cjwatson@ubuntu.com>
5499
5500 * docs/grub.texi (grub_cpu): New subsection.
5501 (grub_platform): Likewise.
5502
c6f1e92f
VS
55032013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
5506
f797ec85
VS
55072013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
5510 divisions.
5511
033d0b4b
VS
55122013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
5515 * grub-core/fs/ntfscomp.c: Likewise.
5516 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
5517 (grub_ntfs_comp): Likewise.
5518
21d1b9a0
VS
55192013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5520
5521 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
5522 Rename to ...
5523 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
5524 of groups_per_block. All users updated.
5525
10ca8645
VS
55262013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
5529 grub_error properly.
5530 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
5531 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
5532
a4c3ed4c
VS
55332013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
5536 always in /boot/zfs.
5537 Reported by: Yuta Satoh.
5538
0b716507
YS
55392013-01-03 Yuta Satoh <nigoro>
5540
5541 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
5542 ${grub_probe}
5543
00c05e22
VS
55442013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * configure.ac: Extend -Wno-trampolines to host.
5547
dadddb76
VS
55482013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
5551 entry->len = 0.
5552
54ce53ca
CW
55532013-01-03 Colin Watson <cjwatson@ubuntu.com>
5554
5555 * docs/grub.texi (Invoking grub-mkrelpath): New section.
5556 (Invoking grub-script-check): Likewise.
5557
8912efca
CW
55582013-01-03 Colin Watson <cjwatson@ubuntu.com>
5559
5560 * docs/grub.texi (Invoking grub-mount): New section.
5561 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
5562
c3fc8394
CW
55632013-01-02 Colin Watson <cjwatson@ubuntu.com>
5564
5565 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
5566 test failures, so that a failing unit test correctly causes 'make
5567 check' to fail.
5568
45d26abb
CW
55692013-01-02 Colin Watson <cjwatson@ubuntu.com>
5570
5571 Fix failing printf test.
5572
5573 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
5574 '$' in the correct order when collecting type information.
5575
971dd2c6
CW
55762013-01-02 Colin Watson <cjwatson@ubuntu.com>
5577
5578 * docs/grub.texi (configfile): Explain environment variable
5579 handling.
5580 (source): New section.
5581 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
5582
5c67ea6c
CW
55832012-12-31 Colin Watson <cjwatson@ubuntu.com>
5584
5585 Remove several trivially-unnecessary uses of nested functions.
5586
5587 * grub-core/commands/i386/pc/sendkey.c
5588 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
5589 instead of nested.
5590 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
5591 Rename to ...
5592 (legacy_file_getline): ... this.
5593 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
5594 Likewise.
5595 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
5596 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
5597 to ...
5598 (probe_dummy_iter): ... this.
5599 * grub-core/kern/i386/coreboot/mmap.c
5600 (grub_linuxbios_table_iterate: check_signature): Likewise.
5601 * grub-core/kern/parser.c (grub_parser_split_cmdline:
5602 check_varstate): Likewise. Mark inline.
5603 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
5604 an additional parameter.
5605 (find_long: fnd_long): Likewise. Pass two additional parameters.
5606 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
5607 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
5608 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
5609 Likewise. Rename to ...
5610 (grub_cmos_find_port_iter): ... this.
5611 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
5612 Rename to ...
5613 (find_rtc_iter): ... this.
5614
5615 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
5616 function directly into the function body, since it is only called
5617 once.
5618
33a68ac6
CW
56192012-12-30 Colin Watson <cjwatson@ubuntu.com>
5620
5621 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
5622 __attribute__ ((unused)).
5623 * grub-core/video/bochs.c (find_card): Likewise.
5624 * grub-core/video/cirrus.c (find_card): Likewise.
5625 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
5626 * grub-core/video/sis315pro.c (find_card): Likewise.
5627 * grub-core/video/sm712.c (find_card): Likewise.
5628
608b647a
CW
56292012-12-28 Colin Watson <cjwatson@ubuntu.com>
5630
5631 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
5632 Fixes Savannah bug #37821.
5633
fd49ceb3
CW
56342012-12-28 Colin Watson <cjwatson@ubuntu.com>
5635
5636 Apply program name transformations at build-time rather than at
5637 run-time. Fixes Debian bug #696465.
5638
5639 * acinclude.m4 (grub_TRANSFORM): New macro.
5640 * configure.ac: Create output variables with transformed names for
5641 most programs.
5642 * util/bash-completion.d/grub-completion.bash.in: Use
5643 pre-transformed variables for program names.
5644 * util/grub-install.in: Likewise.
5645 * util/grub-kbdcomp.in: Likewise.
5646 * util/grub-mkconfig.in: Likewise.
5647 * util/grub-mkconfig_lib.in: Likewise.
5648 * util/grub-mknetdir.in: Likewise.
5649 * util/grub-mkrescue.in: Likewise.
5650 * util/grub-mkstandalone.in: Likewise.
5651 * util/grub-reboot.in: Likewise.
5652 * util/grub-set-default.in: Likewise.
5653 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5654 * tests/util/grub-shell-tester.in: Remove unused assignment.
5655 * tests/util/grub-shell.in: Likewise.
5656 * util/grub.d/00_header.in: Likewise.
5657
7024b3c0
CW
56582012-12-28 Colin Watson <cjwatson@ubuntu.com>
5659
5660 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
5661
5662 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
5663 HAVE_RAW_DECL_GETS.
5664 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
5665
e3501b13
VS
56662012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
5669 Reported by: Eriks Latosheks <foresterlv>.
5670
b40c88a9
VS
56712012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * docs/grub.texi (Network): Update instructions on generating netboot
5674 image.
5675
ce96d01c
VS
56762012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
5679 around device name if necessarry.
5680
0f596201
PFS
56812012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5682
5683 * util/grub-install.in: Follow the symbolic link parameter added
5684 to the file command.
5685
600d5bdb
AB
56862012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
5687
5688 * util/grub-install.in: Remove stale TODO.
5689
64ebd2f4
PFS
56902012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5691
5692 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
5693 dynamic allocation for the bootpath buffer.
5694
74b2fe3e
DTB
56952012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
5696
5697 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
5698 window too small.
5699
969b804f
VS
57002012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
5703 argument rather than font name. All users updated.
5704 (grub_gfxterm_set_window): Likewise.
5705
b9f5ebd6
VT
57062012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
5707
5708 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
5709 from working.
5710
258f43b7
VS
57112012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * util/getroot.c (convert_system_partition_to_system_disk): Support
5714 nbd disks.
5715
cc1ce5f9
VS
57162012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
5719 infinite loop on corrupted FS.
5720
e77a16ca
VS
57212012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 Fix big-endian mtime.
5724
5725 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
5726 together sec and usec.
5727 (grub_ufs_dir): Use correct byteswapping for UFS time.
5728
d9c48c7b
VS
57292012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5730
5731 Support big-endian UFS1.
5732
5733 * Makefile.util.def (libgrubmods): Add ufs_be.c
5734 * grub-core/Makefile.core.def (ufs1_be): New module.
5735 * grub-core/fs/ufs_be.c: New file.
5736 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
5737 the file.
5738
2f9f40ba
LL
57392012-11-28 Leif Lindholm <leif.lindholm@arm.com>
5740
5741 * include/grub/types.h: Fix functionality unaffecting typo in
5742 GRUB_TARGET_WORDSIZE conditional macro.
5743
48ff0889
PFS
57442012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5745
5746 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
5747
03711240
GS
57482012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5749
5750 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
5751 that /netbsd appears first (when it exists).
5752
a31b11bd
CJ
57532012-10-12 Christoph Junghans <ottxor@gentoo.org>
5754
5755 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
5756 Fixes Savannah bug #37558.
5757
e8a5d5d4
CW
57582012-10-12 Colin Watson <cjwatson@ubuntu.com>
5759
5760 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
5761 description of extract_entries_configfile.
5762
57632012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
5764
5765 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5766 preferred_address.
5767 (grub_cmd_linux): Likewise.
5768 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5769 preferred_lifetime. Update all users.
5770
288c757d
CW
57712012-09-26 Colin Watson <cjwatson@ubuntu.com>
5772
5773 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5774 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5775
0d35da3f
CW
57762012-09-26 Colin Watson <cjwatson@ubuntu.com>
5777
5778 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5779 errors from grub-probe to /dev/null, not stdout.
5780
b78c3127
VS
57812012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5784 sector 1.
5785
473959f0
CW
57862012-09-24 Colin Watson <cjwatson@ubuntu.com>
5787
5788 * util/grub-install.in: Make the error message if $source_dir
5789 doesn't exist more useful.
5790
794c8c33
CW
57912012-09-22 Colin Watson <cjwatson@ubuntu.com>
5792
5793 Fix grub-emu build on FreeBSD.
5794
5795 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5796 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5797 headers on Linux.
5798 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5799 implementation is currently Linux-specific.
5800 * util/getroot.c (exec_pipe): Define only on Linux or when either
5801 libzfs or libnvpair is unavailable.
5802 (find_root_devices_from_poolname): Remove unused path variable.
5803
86d08fdb
CW
58042012-09-19 Colin Watson <cjwatson@ubuntu.com>
5805
5806 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5807 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5808 should fit before end == 63.
5809
735abf54
CW
58102012-09-19 Colin Watson <cjwatson@ubuntu.com>
5811
5812 * util/grub-setup.c (write_rootdev): Remove unused core_img
5813 parameter. Update all callers.
5814 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5815 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5816 GRUB_SETUP_BIOS.
5817
140acd3c
VS
58182012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5821 (grub_add_tab): New function.
5822 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5823 * util/grub.d/10_illumos.in: Likewise.
5824 * util/grub.d/10_kfreebsd.in: Likewise.
5825 * util/grub.d/10_linux.in: Likewise.
5826 * util/grub.d/10_netbsd.in: Likewise.
5827 * util/grub.d/10_windows.in: Likewise.
5828 * util/grub.d/10_xnu.in: Likewise.
5829 * util/grub.d/20_linux_xen.in: Likewise.
5830 * util/grub.d/30_os-prober.in: Likewise.
5831
7ddffdad
VS
58322012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5835 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5836 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5837 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5838 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5839 ieee1275-nocursor.
5840 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5841 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5842
4e092454
VS
58432012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5846 le-conversion.
5847 Reported by: BURETTE, Bernard.
5848
735abf54 58492012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
5850
5851 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5852 from comment.
5853
dfd39dbd
CW
58542012-09-14 Colin Watson <cjwatson@ubuntu.com>
5855
5856 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5857 IEEE1275 machines. Fixes powerpc-emu compilation.
5858 * include/grub/terminfo.h: Likewise.
5859
3bfa763c
VS
58602012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5861
5862 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5863 a const pointer.
5864 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5865 const pointer.
5866 (efiemu_set_variable): Make vendor_guid a const pointer.
5867
250e475b
VS
58682012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 Don't require grub-mkconfig_lib to generate manpages for programs.
5871
5872 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5873 dependencies, don't add grub-mkconfig_lib.
5874 (program): Pass empty adddeps.
5875 (script): Pass grub-mkconfig_lib as adddeps.
5876
592fd0e4
VS
58772012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5880 * util/getroot.c (grub_find_device): Likewise.
5881 (get_mdadm_uuid): Likewise.
5882 (grub_util_is_imsm): Likewise.
5883 (grub_util_pull_device): Likewise.
5884 * util/grub-probe.c (probe): Likewise.
5885
801a3027
BG
58862012-09-10 Benoit Gschwind <gschwind>
5887
5888 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5889 (devs): Add devpath_8.
5890
c5052c81
PJ
58912012-09-08 Peter Jones <pjones@redhat.com>
5892
5893 * grub-core/Makefile.core.def (efifwsetup): New module.
5894 * grub-core/commands/efi/efifwsetup.c: New file.
5895 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5896 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5897 New define.
5898 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5899
8e832f71
JS
59002012-09-05 Jiri Slaby <jslaby@suse.cz>
5901
5902 * configure.ac: Add SuSe path.
5903
f0f55752
CW
59042012-09-05 Colin Watson <cjwatson@ubuntu.com>
5905
5906 * NEWS: Fix typo.
5907
ecadc4c2
CW
59082012-09-05 Colin Watson <cjwatson@ubuntu.com>
5909
5910 * util/import_gcry.py: Sort cipher_files, to make build system
5911 generation more deterministic.
5912
64498f25
VS
59132012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5916 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5917 (grub_set_datetime): Likewise.
5918
9cc836a2
VS
59192012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5922 warnings.
5923
bcfcea01
VS
59242012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5927
a4099485
VS
59282012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5931
265c162a
CW
59322012-09-04 Colin Watson <cjwatson@ubuntu.com>
5933
5934 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5935 required for checkouts from bzr, but it may be useful for users or
5936 distributors wishing to update translations against a tarball
5937 distribution, and it can be helpful for the tarball to be a superset
5938 of what's in bzr.
5939
3d171e95
CW
59402012-09-04 Colin Watson <cjwatson@ubuntu.com>
5941
5942 * Makefile.am (EXTRA_DIST): Add
5943 grub-core/tests/boot/linux.init-mips.S,
5944 grub-core/tests/boot/linux.init-ppc.S, and
5945 grub-core/tests/boot/linux-ppc.cfg.
5946
f2c2503e
CW
59472012-09-04 Colin Watson <cjwatson@ubuntu.com>
5948
5949 * grub-core/mmap/mips/loongson: Remove empty directory.
5950
59512012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
5952
5953 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5954 gone.
5955
ab2163d5
CW
59562012-09-04 Colin Watson <cjwatson@ubuntu.com>
5957
5958 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5959 grub-sparc64-setup.
5960
ce938140
GS
59612012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5962
5963 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5964
529f58a5
GS
59652012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5966
5967 * po/POTFILES.in: Regenerated.
5968
16cf79e9
GS
59692012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5970
5971 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5972 (NetBSD): New subsection.
5973
39b27f1e 59742012-07-22 Ales Nesrsta <starous@volny.cz>
5975
5976 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5977 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5978
a885261b
VS
59792012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5982 * util/grub.d/10_hurd.in: Add missing quoting.
5983 * util/grub.d/10_illumos.in: Likewise.
5984 * util/grub.d/10_kfreebsd.in: Likewise.
5985 * util/grub.d/10_linux.in: Likewise.
5986 * util/grub.d/20_linux_xen.in: Likewise.
5987
7bd29c01
VS
59882012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5989
5990 New command `lsefi'.
5991
5992 * grub-core/Makefile.core.def (lsefi): New module.
5993 * grub-core/commands/efi/lsefi.c: New file.
5994 * include/grub/efi/api.h: Add more GUIDs.
5995
ac625d8f
VS
59962012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5999 (grub_bsd_elf32_hook): Likewise.
6000 (grub_bsd_elf64_size_hook): Likewise.
6001 (grub_bsd_elf64_hook): Likewise.
6002 (grub_bsd_load_elf): Likewise.
6003
e73bb801
VS
60042012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
6007 if hash function is unavailable.
6008 (dec_stream_header): Likewise.
6009
e81db8b5
VS
60102012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
6013 filter state.
6014
d187a1c3
VS
60152012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 Fix coreboot compilation.
6018
6019 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
6020 (grub_vga_text_init_real): ... this.
6021 (grub_vga_text_fini): Rename to ...
6022 (grub_vga_text_fini_real): ... this.
6023
91a05f64
VS
60242012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
6027
6af96df7
VS
60282012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * grub-core/lib/legacy_parse.c: Support clear and testload.
6031
4d569e12
VS
60322012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
6035
073b57bb
VS
60362012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * grub-core/fs/ext2.c: Experimental support for 64-bit.
6039
a706f4cc
VS
60402012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 * grub-core/net/tftp.c (ack): Fix endianness problem.
6043 (tftp_receive): Likewise.
6044 Reported by: Michael Davidsaver.
6045
e7850aa9
VS
60462012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * gentpl.py: Make mans depend on grub-mkconfig_lib.
6049
60502012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
6053 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
6054 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
6055
35692881
VS
60562012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
6059 efi_mmap_size.
6060 Reported by: Stuart Hayes.
6061
c35fc5bd
VS
60622012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
6065
6066 * grub-core/Makefile.core.def (mda_text): New module.
6067 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
6068 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
6069 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
6070 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
6071 here.
6072 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
6073 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
6074 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
6075 here.
6076 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
6077 to ..
6078 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
6079 ... here
6080 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
6081 here.
6082 * grub-core/term/i386/vga_common.c: Removed.
6083 * include/grub/i386/vga_common.h: Likewise.
6084 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
6085 (grub_vga_cr_bw_read): Likewise.
6086 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
6087 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
6088 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
6089 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
6090 grub_vga_cr_read/grub_vga_cr_write.
6091 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
6092
5f91f701
VS
60932012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * configure.ac: Bump version to 2.00.
6096 * grub-core/normal/main.c (features): Add feature_200_final.
6097
0c4f85f6
VS
60982012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
60992012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
6100
6101 * NEWS: Fix unclarity and language mistakes.
6102
f923ad22
VS
61032012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
6106 additional size to 3 pages.
6107 Reported by: Stuart Hayes.
6108
d22029ba
VS
61092012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * NEWS: Add 2.00 entry.
6112
58eee08f
VS
61132012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
6116 put explicit "/" for empty path.
6117 (wildcard_expand): Improve dprintf.
6118
c59bdff7
VS
61192012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
6122 it's equal to currnode. This can happen with "" symlink.
6123
5e6a440a
YB
61242012-06-27 Yves Blusseau <blusseau@zetam.org>
6125
6126 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
6127 echo shell command by printf command.
6128
73a68bcb
VS
61292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
6132 the value returned by firmware is the maximal position, not diumension.
6133 (grub_terminfo_output_state): Use a more sane fallback.
6134
392a603b
VS
61352012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
6138
42d0867f
VS
61392012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
6142 frequency to 150 MHz.
6143
489509f4
VS
61442012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 Apple fixes.
6147
6148 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
6149 __APPLE_
6150 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
6151 definition.
6152 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
6153
9f3fc883
VS
61542012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 Handle slash in HFS label.
6157
6158 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
6159 (grub_hfs_dir): Tanslate slash.
6160 (grub_hfs_label): Don't translate slash.
6161
54853fd7
VS
61622012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
6165 network protocol listing since it introduces problematic dependency on
6166 net module.
6167
4dc02ddf
VS
61682012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
6171
c50c867d
VS
61722012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 Init video early on yeeloong to avoid being rebooted by watchdog.
6175
6176 * grub-core/Makefile.am (gensm712): New target.
6177 (sm712_start.S): Likewise.
6178 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
6179 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
6180 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
6181 description.
6182 * include/grub/vga.h: Move registry definitions to...
6183 * include/grub/vgaregs.h: ... here.
6184
5f92c8a1
VS
61852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
6188 signedness.
6189
e9e6f111
VS
61902012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
6193 platforms with firmware disk drivers in the core.
6194
754ad9eb
VS
61952012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
6198 informative verbose message.
6199 (read_lv): Handle 64-bit segment size.
6200
315654c2
VS
62012012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
6204
fb022c79
VS
62052012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
6208 character but still remove trainling spaces.
6209 (grub_fat_label): Ignore archive flag.
6210
8645f72c
VS
62112012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
6214 cast between linux_kernel_header and linux_kernel_params.
6215
36498496
VS
62162012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
6219 type for size.
6220 (grub_raid6_recover_func_t): Likewise.
6221 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
6222 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6223
0b5ea6b8
VS
62242012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
6227
650cfcfe
GS
62282012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
6229
6230 Fix overflow.
6231
6232 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
6233 [__NetBSD__]: Add explicit cast before bitshift.
6234
8a4d6a44
VS
62352012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * configure.ac: Bump to 2.00~rc1.
6238
2fb97ed3
VS
62392012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
6242 half of $a0.
6243
1fa097dc
VS
62442012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
62452012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
6246
6247 * docs/grub.texi: Fix search syntax.
6248 (Multi-boot manual config): Put msdos rather than GPT example.
6249 Grammar corrections.
6250
c890ba78
VS
62512012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
6254
0f92dca7
VS
62552012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
6258
3988c4a0
VS
62592012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
6262 message on double free. Put the value of magic in case of mismatch.
6263
9e86d4c5
VS
62642012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 Speed-up video on yeeloong.
6267
6268 * grub-core/video/sm712.c (framebuffer): Remove render_target and
6269 add cached_ptr.
6270 (grub_video_sm712_video_fini): Unmap cached_ptr.
6271 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
6272 (grub_video_sm712_set_active_render_target): Removed.
6273 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6274 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
6275 sync caches.
6276
ed24c312
VS
62772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 Avoid flushing the same line multiple times on loongson.
6280
6281 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
6282 Step in 32 bytes and not 1 byte.
6283 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
6284 Likewise.
6285
d1718e7d
VS
62862012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
6289 subvolumes.
6290
982f1909
VS
62912012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 Implement flow control for http.
6294
6295 * grub-core/net/http.c (parse_line): Handle response 206.
6296 (http_receive): Stall if too many packets are in the queue.
6297 (http_establish): Fix range header.
6298 (http_seek): Fix double free.
6299 (http_close): Likewise.
6300 (http_packets_pulled): New function.
6301 (grub_http_protocol): Set http_seek
6302 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
6303 (ack_real): Set window depending on i_stall.
6304 (grub_net_send_tcp_packet): Likewise.
6305 (grub_net_tcp_stall): New function.
6306 (grub_net_tcp_unstall): Likewise.
6307 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
6308 (grub_net_tcp_unstall): Likewise.
6309
bd407d6e
VS
63102012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/net/tftp.c: Decrease stall to 50 packets.
6313
c7564b8e
VS
63142012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
6317
a3706162
VS
63182012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * tests/util/grub-shell.in: Fix a typo.
6321
b27069e0
VS
63222012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 Implement flow control for tftp.
6325
6326 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
6327 packets but stop only if stop condition is satisfied.
6328 (grub_net_fs_read_real): Call packets_pulled after real read. Use
6329 `stall' instead of `eof' as stop condition.
6330 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
6331 (http_err): Likewise.
6332 * grub-core/net/tftp.c (ack): Replace the first argument with data
6333 instead of socket.
6334 (tftp_receive): Stall if too many packets are in wait queue.
6335 (tftp_packets_pulled): New function.
6336 (grub_tftp_protocol): Set packets_pulled.
6337 * include/grub/net.h (grub_net_packets): New field count.
6338 (grub_net_put_packet): Increment count.
6339 (grub_net_remove_packet): Likewise.
6340 (grub_net_app_protocol): New field `packets_pulled'.
6341 (grub_net): New field `stall'.
6342
6b9cfac6
VS
63432012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
6346 sync part to handle them.
6347
f35abd81
VS
63482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
6351 * grub-core/net/drivers/ieee1275/ofnet.c
6352 (grub_ieee1275_net_config_real): Likewise.
6353
0e7ec820
VS
63542012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
6357 the direct route for server/gateway.
6358
9d611a31
VS
63592012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
6362 IP address to server name since we may not hame the DNS.
6363
418f45ab
VS
63642012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
6367 freeing random buffer on failure.
6368 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
6369
44a0efc1
VS
63702012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
6373
531e2241
VS
63742012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
6377 reserved bytes.
6378 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
6379 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
6380 Handle malloc error correctly.
6381
cde393c9
VS
63822012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
6385 blocks.
6386
538478d0
VS
63872012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
6390 increment.
6391
9b55efe0
VS
63922012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
6395 none is explicitly specified.
6396
9eb832c3
VS
63972012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6398
6399 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
6400 while reallocating.
6401
d6b7c7c9
VS
64022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 Respect netmask from bootp/dhcp.
6405
6406 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
6407 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
6408 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
6409 into ...
6410 (grub_net_add_ipv4_local): ... this.
6411 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
6412 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
6413 (grub_net_add_ipv4_local): New proto.
6414
67caf9eb
VS
64152012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
6418 determining EFI memory map size.
6419
43657558
VS
64202012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
6423
eb6d0dd3
VS
64242012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
6427 when looking for partition separator.
6428
31230544
VS
64292012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6432 Escape commas.
6433
918a2517
VS
64342012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 Restructure FAT driver to avoid hook in label reading as it hits a
6437 GCC bug.
6438
6439 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
6440 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
6441 (grub_fat_iterate_dir): Split into ...
6442 (grub_fat_iterate_init): ... this, ...
6443 (grub_fat_iterate_fini): ... this, ...
6444 (grub_fat_iterate_dir_next): ... and this. All users updated.
6445
9f1d654e
VS
64462012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6449 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
6450 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6451 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
6452 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
6453 New fields last_key and last_key_time.
6454 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
6455 extended key-esc into extended key-extended key.
6456
52f0f643
VS
64572012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 Avoid unnecessary memcpy of whole video buffer.
6460
6461 * grub-core/video/fb/video_fb.c (dirty): New struct.
6462 (framebuffer): Add members current_dirty and previous_dirty.
6463 (dirty): New function.
6464 (grub_video_fb_fill_rect): Update dirty.
6465 (common_blitter): Likewise.
6466 (grub_video_fb_scroll): Likewise.
6467 (doublebuf_blit_update_screen): Copy only dirty part.
6468 (doublebuf_pageflipping_update_screen): Likewise.
6469 (grub_video_fb_doublebuf_blit_init): Init dirty.
6470 (doublebuf_pageflipping_init): Likewise.
6471 (grub_video_fb_setup): Likewise.
6472
e169a180
VS
64732012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
6476 poll rate.
6477
48556879
VS
64782012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 Fix wildcard regexp dot and other special characters handling.
6481 Reported by: Robert Mabee.
6482
6483 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
6484 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
6485 (split_path): Trigger expansion on '?'.
6486 (unescape): New function.
6487 (wildcard_expand): Unescape parts copied without globbing.
6488 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
6489 (grub_script_arglist_to_argv): Don't unescape expansions.
6490
0494408e
VS
64912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * include/grub/net.h (grub_net_card): New member txbufsize.
6494 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
6495 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6496 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
6497 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
6498 txbufsize.
6499 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
6500 compatible property to check for macs. Set
6501 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6502 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
6503 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
6504 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
6505 (send_card_buffer): Use txbuf.
6506 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
6507 nested function out of the parent while on it.
6508
cc35fe8f
VS
65092012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
6512 presence check.
6513 (grub_ieee1275_net_config_real): Fix config pointer.
6514
970a0a09
VS
65152012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
6518 filename parsing to non-block devices.
6519
3e19bf87
VS
65202012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 * grub-core/kern/device.c (grub_device_open): Remove dead code.
6523
c62d1a0c
VS
65242012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
6527 All users updated.
6528
ef76bec3
VS
65292012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
6532 UUID search command even if hints probing failed.
6533
65342012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
6535
6536 * po/POTFILES.in: Regenerated.
6537
70aaf305
VS
65382012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 Speed-up video on fuloong.
6541
6542 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
6543 New function.
6544 (grub_pci_device_unmap_range): Handle non-cached address.
6545 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
6546 add direct_ptr.
6547 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
6548 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
6549 (grub_video_sis315pro_set_active_render_target): Removed.
6550 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
6551 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6552 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
6553 sync caches.
6554 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
6555 New proto.
6556
10400f0b
VS
65572012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 * docs/grub.texi (Multi-boot manual config): New section.
6560
ba67e2c6
VS
65612012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 Avoid slow read-back from VRAM.
6564
6565 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6566 Move from here ...
6567 * grub-core/video/fb/video_fb.c
6568 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
6569 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
6570 (front_target): Remove front_target. Add pages.
6571 (grub_video_fb_init): Skip setting front_pages.
6572 (grub_video_fb_fini): Likewise.
6573 (doublebuf_blit_update_screen): Use pages.
6574 (grub_video_fb_doublebuf_blit_init): Likewise.
6575 (doublebuf_pageflipping_init): Allocate offscreen buffer.
6576 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
6577 (grub_video_fb_setup): Prefer doublebuffing.
6578
377c98cb
VS
65792012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
6582 gzio.
6583
eac49cff
VS
65842012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 Add loongson tests.
6587
6588 * tests/util/grub-shell.in: Handle loongson.
6589 * tests/partmap_test.in: Add loongson to the list of platform using ATA
6590 drivers.
6591 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
6592 Reboot instead of shutdown if REBOOT is defined.
6593
0321415e
VS
65942012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
6597 sized ports since unlike on real hardware qemu supports only 32-bit
6598 regs.
6599
3f2bdd8f
VS
66002012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * Makefile.util.def (grub-mkrescue): Enable on loongson.
6603 * util/grub-mkrescue.in: Handle loongson.
6604
29a049c9
VS
66052012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
6608 Set is_part appropriately.
6609 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
6610 names. Canonicalize partition without full disk.
6611
4abde346
VS
66122012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 Revert usb-quiesce since it's wrong.
6615
6616 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
6617 (grub_ofdisk_init): Don't do quiesce.
6618
61f1d93b
VS
66192012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
6622 PowerMac workaround to Xserves as well.
6623 Information supplied by: Benjamin Herrenschmidt.
6624
a09eb541
VS
66252012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 Don't assume that beginning address is also the entry point on ppc.
6628
6629 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
6630 (grub_linux_boot): Use linux_entry.
6631 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
6632 (grub_linux_load64): Likewise.
6633
505b3c9b
VS
66342012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
6637
cbe0b4ef
VS
66382012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
6641 needlessly lose the console.
6642
3006e981
VS
66432012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
6646 space.
6647
4e5a96b0
VS
66482012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6649
7da036bb
VS
6650 Remove non-functional EFI grub_get_rtc. Put a better fatal message
6651 than current grub_get_rtc() not implemented when booted with
6652 coreboot without TSC.
6653
6654 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
6655 Add machine/time.h to kernel headers on loongson.
6656 * grub-core/Makefile.core.def (kernel): Remove
6657 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
6658 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
6659 (grub_get_rtc): Likewise.
6660 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
6661 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
6662 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
6663 * grub-core/kern/i386/tsc.c (grub_tsc_init)
6664 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
6665 rather than installing known non-working time source.
6666 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
6667 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
6668 * include/grub/time.h: Don't include machine/time.h.
6669 * include/grub/efi/time.h: Removed.
6670 * include/grub/i386/efi/time.h: Likewise.
6671 * include/grub/i386/ieee1275/time.h: Likewise.
6672 * include/grub/powerpc/ieee1275/time.h: Likewise.
6673 * include/grub/sparc64/ieee1275/time.h: Likewise.
6674 * include/grub/x86_64/efi/time.h: Likewise.
6675
66762012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
6679
6680 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
6681 value.
6682 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
6683 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
6684 with dotless variants when any combining above is present.
6685
5561c22d
VS
66862012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
6689 text and not binary.
6690
96f7e60e
VS
66912012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6692
6693 Stop polling as soon as we have the packet we were waiting for.
6694
6695 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
6696 All users updated.
6697 * grub-core/net/arp.c (have_pending): New var.
6698 (pending_req): Likewise.
6699 (grub_net_arp_send_request): Fill pending_req and use have_pending as
6700 stop indicator.
6701 (grub_net_arp_receive): Set have_pending.
6702 * grub-core/net/dns.c (recv_data): New field stop.
6703 (recv_hook): Set stop.
6704 (grub_net_dns_lookup): Init stop and use as stop condition.
6705 * grub-core/net/http.c (http_establish): Use headers_recv as stop
6706 condition.
6707 * grub-core/net/net.c (grub_net_poll_cards): New argument
6708 stop_condition. Stop when it goes true.
6709 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
6710 indicator.
6711 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
6712
3e747239
VS
67132012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 Keep TX and RX buffers on EFI rather than always allocate new ones.
6716
6717 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
6718 card. All users updated.
6719 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
6720 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
6721 (get_card_packet): Likewise.
6722 (grub_efinet_findcards): Init new fields.
6723
f695e99a
VS
67242012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
6727 compilation error on sparc64.
6728
9e5e66d1
VS
67292012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 Use ITC on IA64 rather than broken routine based on daytime.
6732
6733 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
6734 ia64.
6735 (grub_get_rtc) [__ia64__]: Likewise.
6736 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
6737 (get_itc): New function.
6738 (grub_rtc_get_time_ms): Likewise.
6739 (grub_machine_init): Calibrate ITC.
6740 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
6741 Keep only on non-ia64. Don't export since it's broken and used only
6742 if TSC is unavailable.
6743
a1767404
VS
67442012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
6747 even if it's used.
6748 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
6749 Skip if parent is unused.
6750
34b2bced
VS
67512012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
6754
5e619f40
VS
67552012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 Fix wildcard escaping.
6758
6759 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
6760 * grub-core/script/execute.c (wildcard_escape): .. to here.
6761 Don't escape dot.
6762 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
6763 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6764 Don't escape dot.
6765 * grub-core/script/execute.c (gettext_append): Always escape.
6766 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6767 * grub-core/script/yylex.l: Don't cut away the escaping.
6768 * tests/grub_script_echo1.in: Add tests with wildcard.
6769
c8ca5855
VS
67702012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6773 (ftdi_hw_configure): Likewise.
6774 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6775 define.
6776 (real_config): Handle 1.5 stop bits.
6777 (pl2303_hw_configure): Likewise.
6778
7183452c
VS
67792012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * Makefile.am: Add ppc linux bootcheck.
6782 * grub-core/tests/boot/linux-ppc.cfg: New file.
6783 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6784
f57c84cd
VS
67852012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * tests/grub_script_expansion.in: Skip network protocols.
6788
ecfc6207
VS
67892012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6792
8d03d284
VS
67932012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6796 --rom-directory.
6797 Add -graft-points.
6798
61c42af0
VS
67992012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 ESCC serial driver for conducting sautomated tests in qemu.
6802 Not tested on real hardware.
6803
6804 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6805 * grub-core/term/ieee1275/escc.c: New file.
6806 * grub-core/Makefile.core.def (escc): New module.
6807
08fd1291
VS
68082012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6811 invalid on error.
6812 (serial_hw_fetch): Don't read invalid handle.
6813 (serial_hw_put): Don't write into invalid handle.
6814
08dafeea
VS
68152012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 Add a 1.5 stop bits value.
6818
6819 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6820 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6821 GRUB_SERIAL_STOP_BITS_1_5.
6822
9068fdcf
VS
68232012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6826 value rather than let it uninited.
6827
f4d5820f
VS
68282012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 * grub-core/commands/wildcard.c (+check_file): New function.
6831 (wildcard_expand): Don't expand to non-existing files, expand with
6832 suffix and not attempt to expand if not needed.
6833
3d2de9a7
VS
68342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6837 out of partitions containing other partitions.
6838
c5c81ff9
VS
68392012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6842 on some qemu versions with GRUB.
6843
6844 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6845 define.
6846 (grub_openbsd_bootarg_pcibios): New struct.
6847 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6848 Add PCIINFO.
6849
08a14e0b
VS
68502012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 * tests/util/grub-shell.in: Trim firmware output on EFI.
6853
cede3ca3
VS
68542012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6857 and coreboot since it's already in kernel.
6858
558d3a60
VS
68592012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6862 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6863 to here. New return value start. All users updated.
6864 Recursively scan linear mappings.
6865 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6866 proto.
6867 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6868 Use grub_util_get_dm_node_linear_info.
6869 * util/getroot.c (convert_system_partition_to_system_disk): Use
6870 grub_util_info rather than grub_dprintf.
6871 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6872
60fde14d
VS
68732012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6876
6877 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6878 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6879
24bd8838
VS
68802012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * include/grub/types.h (grub_set_unaligned64): New function.
6883 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6884 (setup): Likewise.
6885
7bc06a49
VS
68862012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6889 (grub_ofdisk_fini): Quiesce USB devices.
6890
49cea015
VS
68912012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6894 caches.
6895
8dcbe03b
VS
68962012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6899
5b258735
VS
69002012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/disk/pata.c (grub_pata_pio_read)
6903 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6904 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6905
37ba07eb
VS
69062012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 Extend automated tests to qemu-mips.
6909
6910 * Makefile.am: reorganise tests and enable qemu-mips.
6911 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6912 * grub-core/tests/boot/linux.init-mips.S: New file.
6913 * tests/partmap_test.in: Handle ata0 disks.
6914 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6915 non-pc i386.
6916
070038f8
VS
69172012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6920 ia64.
6921 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6922 quotes while on it.
6923
004be2cd
VS
69242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6927 (grub_halt): Likewise.
6928 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6929
b1622487
VS
69302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/term/serial.c (grub_serial_register)
6933 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6934 the behaviour in line with x86 platforms.
6935
b7b4ab33
VS
69362012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6937
6938 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6939 (grub_ata_strncpy): Likewise.
6940 (grub_ata_identify): Add missing byteswaps.
6941
5e3535ae
VS
69422012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6945 byte-swap.
6946 (screen_read_char): Likewise.
6947 (grub_vga_text_cls): Likewise.
6948
c21b17e6
VS
69492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6952 filenames.
6953 (make_file_path): Likewise.
6954
bf293dec
VS
69552012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6958 machines.
6959 Tested by: Paulo Flabiano Smorigo.
6960 Crucial information about API supplied by: Coleen <Last name unknown>.
6961 Reviewed by: Coleen <Last name unknown>.
6962
81f6ef0e
VS
69632012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * util/grub-mkimage.c: Disable -Wcast-align.
6966
7284143a
VS
69672012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6970 as they are fatal.
6971
b99f3e00
VS
69722012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6975
944f752d
VS
69762012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 * util/grub-probe.c (escape_of_path): Fix double free.
6979
6cce6f38
VS
69802012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * grub-core/commands/videoinfo.c (hook): Show pitch.
6983
1e1eb50e
VS
69842012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6987
1c715b5a
VS
69882012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6991 (probe): Add ieee1275 to OFW devices.
6992
007ae52d
VS
69932012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6996
4557a36d
VS
69972012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 Handle IBM OFW path.
7000
7001 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
7002 available.
7003 (of_path_of_scsi): Handle vdevice.
7004
efbeefe9
VS
70052012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
7008 Allocate in multiples of 16 to avoid adding a few bytes free region the
7009 windows bugs upon.
7010
15a940bb
VS
70112012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
7014 Allocate in multiples of 16 to avoid adding a few bytes free region the
7015 windows bugs upon.
7016 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
7017
6e5efd60
VS
70182012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
7021 resolutions.
7022 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
7023 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
7024
0d3d137e
IS
70252012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
7026
7027 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
7028
45dbe300
VS
70292012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
7032 resulted in \\ at the end of the line.
7033
6d8db947
VS
70342012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
7037 (grub_parser_cmdline_state): Likewise.
7038 (grub_parser_split_cmdline): Likewise.
7039
de89d338
VS
70402012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
7043 /dev/root and /dev/dm-*.
7044
00d41dee
VS
70452012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
7048 fix partially stale display.
7049
f95d1f11
VS
70502012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 * grub-core/normal/menu_entry.c (backward_char): Use right line for
7053 substraction.
7054
6297e197
VS
70552012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
7058 Fix MBR remapping workaround.
7059 (grub_util_biosdisk_read) [__linux__]: Likewise.
7060
8a7ecad3
VS
70612012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
7062
7063 * util/grub-install.in: Check for ieee1275 and not ieee1276.
7064
2b34f944
VS
70652012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * configure.ac: Bump to beta6.
7068
684aef11
CW
70692012-05-31 Christer Weinigel <christer@weinigel.se>
7070
7071 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
7072
05b0bb91
VS
70732012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
7076 (grub_cmd_linux): Likewise.
7077
bda36bfa
CW
70782012-05-31 Christer Weinigel <christer@weinigel.se>
7079
7080 Fix EHCI low-speed.
7081
7082 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
7083 (GRUB_EHCI_MULT_TWO): Likewise.
7084 (GRUB_EHCI_MULT_THREE): Likewise.
7085 (GRUB_EHCI_CMASK_MASK): New enum value.
7086 (GRUB_EHCI_SMASK_MASK): Likewise.
7087 (GRUB_EHCI_CMASK_OFF): Likewise.
7088 (GRUB_EHCI_SMASK_OFF): Likewise.
7089 (grub_ehci_pci_iter): Enable periodic schedule.
7090 (grub_ehci_parse_notrun): Likewise.
7091 (grub_ehci_restore_hw): Likewise.
7092 (grub_ehci_setup_qh): Set flags for low speed transfers.
7093 (grub_ehci_find_qh): Use periodic list for low speed.
7094 (grub_ehci_setup_transfer): Check periodic queue as well.
7095 (grub_ehci_check_transfer): Likewise.
7096 (grub_ehci_cancel_transfer): Cancel periodic transfer.
7097
e12bcb1c
PFS
70982012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7099
7100 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
7101 parameter is used.
7102
bcc75fb3
PJ
71032012-05-31 Peter Jones <pjones@redhat.com>
7104
7105 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
7106 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
7107 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
7108
f19cb95e
VS
71092012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7110
7111 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
7112 uninited variable. Allocate at least setup_sects.
7113
a4e5ca80
VS
71142012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
7115
7116 Fix handling of EFI with big memory maps.
7117
7118 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
7119 (real_mode_mem): Likewise.
7120 (real_mode_target): Likewise.
7121 (real_mode_pages): Likewise.
7122 (prot_mode_pages): Likewise.
7123 (linux_params): New var.
7124 (linux_cmdline): Likewise.
7125 (free_pages): Don't set real mode variables.
7126 (allocate_pages): Don't allocate real mode memory.
7127 (grub_e820_add_region): Remove the limit.
7128 (grub_linux_boot): Allocate and copy real mode memory.
7129 (grub_linux_unload): Free linux_cmdline.
7130 (grub_cmd_linux): Use temporary storage for parameters.
7131 (grub_cmd_initrd): Likewise.
7132 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
7133 (linux_kernel_params): Make it 1K big.
7134
ddb73558
VS
71352012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 * Makefile.util.def: Remove -Wno-format.
7138 * grub-core/Makefile.core.def: Likewise.
7139
1c4afb60
VS
71402012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * tests/cmp_unit_test.c: Add missing failure message.
7143 * tests/example_unit_test.c: Likewise.
7144 * tests/printf_unit_test.c: Likewise.
7145
941e3a6d
VS
71462012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
7149 relaxation of protective MBR requirements.
7150
b105df76
VS
71512012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * configure.ac: Add condition for COND_HOST_XNU.
7154 * Makefile.util.def (10_xnu): New script.
7155 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
7156
84e1569e
VS
71572012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
7160 objconv bug.
7161
130c0f77
VS
71622012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
7165 Binary on other platforms stays identical.
7166
6fd0b143
VS
71672012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
7170 Apple.
7171
0af1751d
VS
71722012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
7175
176d5f7d
VS
71762012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
7179 rather than defining size_t ourselves to avoid conflict.
7180
7de5e20a
VS
71812012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
7184 initialisation to avoid __bzero reference.
7185
f7143efe
VS
71862012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
7189 version.
7190 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
7191 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
7192 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
7193 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
7194 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
7195
e6ad0555
VS
71962012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
7199 * grub-core/kern/misc.c: Likewise.
7200 * grub-core/loader/i386/xnu.c: Likewise.
7201 * include/grub/i386/tsc.h: Likewise.
7202 * include/grub/symbol.h: Likewise.
7203
4a5a3c4a
VS
72042012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
7207 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
7208 on older compiler.
7209
037f6d90
VS
72102012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
7213 Implement Apple flavour.
7214 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
7215
f7194551
VS
72162012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
7219 (memmove) [__APPLE__]: Likewise.
7220 (memcpy) [__APPLE__]: Likewise.
7221 (memset) [__APPLE__]: Likewise.
7222 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
7223 (memmove) [__APPLE__]: Likewise.
7224 (memcpy) [__APPLE__]: Likewise.
7225 (memset) [__APPLE__]: Likewise.
7226
85a730ca
VS
72272012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
7230 dependency discard.
7231
40e80b94
VS
72322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * grub-core/normal/main.c (read_config_file): Provide config_file and
7235 config_directory.
7236 * util/grub.d/41_custom.in: Use config_directoy when available.
7237
9da59c32
VS
72382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
7241 (grub_bfs_dir): Likewise.
7242
2787ae53
PJ
72432012-05-27 Peter Jones <pjones@redhat.com>
7244
7245 The old code gives arguments to a printf function which can't work
7246 correctly, and the compiler complains.
7247
7248 * grub-core/tests/example_functional_test.c (example_test): Add
7249 missing text.
7250 * grub-core/tests/lib/test.c (add_failure): Rewrite.
7251 * include/grub/test.h (grub_test_assert_helper): New declaration.
7252 (grub_test_assert): Use grub_test_assert_helper.
7253
526ef13d
VS
72542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
7257 (exfctest): ... this to avoid overlong filenames.
7258 All users updated.
7259
20dd511c
VS
72602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 Handle "." and ".." on squashfs.
7263
7264 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
7265 Make inode numbers into stack.
7266 (grub_squash_read_symlink): Use stack.
7267 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
7268 (make_root_node): Fill stack.
7269 (grub_squash_open): Use stack.
7270
1d80c62a
VS
72712012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
7274 freeing.
7275
d336f652
VS
72762012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
7279 stderr on test calls.
7280
8b43f587
VS
72812012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
7284
80a3dc3f
VS
72852012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
7288
47e297d4
VS
72892012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
7292 "..".
7293
df042ccb
VS
72942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
7297 (grub_hfsplus_iterate_dir): Add "." and "..".
7298
fc977f48
VS
72992012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * grub-core/fs/cpio.c (canonicalize): Handle "..".
7302 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
7303
f3250e5f
VS
73042012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
7307 (find_path): Handle "." and "..".
7308
fd8ed4c5
VS
73092012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
7312 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
7313 (grub_affs_iterate_dir): Handle hardlinks.
7314
4ce776d2
MG
73152012-05-26 Matthew Garrett <mjg@redhat.com>
7316
7317 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
7318 (grub_efi_console_fini): Likewise.
7319 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
7320 (grub_video_gop_fill_mode_info): Rename to ...
7321 (grub_video_gop_fill_real_mode_info): ... this.
7322 (grub_video_gop_fill_mode_info): New function.
7323 (grub_video_gop_setup): Setup double framebuffer.
7324 (grub_video_gop_get_info_and_fini): Use original framebuffer.
7325 Free offscreen.
7326 (grub_video_gop_swap_buffers): Copy framebuffer.
7327 (grub_video_gop_fini): Free offscreen buffer.
7328 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
7329 New enum.
7330 (grub_efi_gop_blt_pixel): New struct.
7331
683031ba
VS
73322012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * gentpl.py: Remove error disabling for objconv.
7335
c2deb798
VS
73362012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * configure.ac: Remove -Wunitialized as it's not available on older
7339 compilers.
7340
73412012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
7342
7343 Fix extent overflow comparator.
7344
7345 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
7346 (grub_hfsplus_read_block): Set type.
7347 (grub_hfsplus_cmp_extkey): Compare type.
7348
d6b1fd36
VS
73492012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
7352
0a9aa0f6
VS
73532012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
7356 than 0.
7357
8360e159
VS
73582012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
7361 (dejavu_bold_14.pf2): New target.
7362
501b9e4b
VS
73632012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * configure.ac: Fix djvu font detection.
7366
7026b0e2
VS
73672012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
7370 ext* instead of ext2.
7371
c2a51ade
VS
73722012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
7375 name with \0.
7376
8f803a5d
JU
73772012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
7378
7379 * docs/grub-dev.texi: Remove dot from .png.
7380
13c6353f
VS
73812012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
7384 protective entry in any slot.
7385 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
7386 if protective entry is found in any slot.
7387
7388 Protective entry in non-first slot make no sense but is a widespread
7389 brain damage.
7390
4cf6be1b
VS
73912012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7392
7393 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
7394
937d1c44
VS
73952012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
7398 with old reiserfs.
7399 (grub_reiserfs_open): Don't free root.
7400
021d90ec
VS
74012012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
7404 after freeing for safety.
7405
967b2b64
VS
74062012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
7409 Reported by: Jordan Uggla.
7410
34274d02
JU
74112012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
7412
967b2b64
VS
7413 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
7414 actual implementation. Specifically, clarify that the grub menu will
7415 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
7416 passed.
34274d02 7417
dcaaae9d
BH
74182012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
7419
7420 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
7421 of r0.
7422
7086ad52
VS
74232012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 Remove unjustified hard dependency of normal.mod on gfxterm.
7426
7427 * include/grub/term.h (grub_term_output): New member fullscreen.
7428 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
7429 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
7430 (grub_gfxterm): Set .fullscreen.
7431 * grub-core/normal/menu.c (menu_init): Use fullscreen.
7432 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
7433
37ed2c9b
VS
74342012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
7437 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 7438 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 7439
a4469c88
VS
74402012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7441
7442 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
7443
4e461486
VS
74442012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7447 a bad FS.
7448
aa78f5c4
VS
74492012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
7452 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
7453
197626b5
VS
74542012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
7457 (grub_jfs_mount): Fill caseins.
7458 (grub_jfs_find_file): Respect caseins.
7459
8ad3f28c
VS
74602012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
7463 through UTF-16.
7464
0c6c324e
VS
74652012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
7468 New argument origpath. All users updated.
7469
c6666ba6
VS
74702012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
7473 (read_attr): Ensure that we read start of possibly compressed block.
7474
e28e5fe5
VS
74752012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
7478 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
7479 All users updated.
7480
5fc23ab2
VS
74812012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
7484 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
7485 (dejavu.pf2): Replace with ...
7486 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
7487 this.
7488
79dbc21c
VS
74892012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * util/grub.d/20_linux_xen.in: Add missing line.
7492
d2fcfb0c
VS
74932012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
7496 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
7497 (grub_utf16_to_utf8): Likewise.
7498
5560e9d6
VS
74992012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
7502 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
7503 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7504 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
7505 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7506 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
7507
75082012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
7509
7510 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7511 a bad FS.
7512
5560e9d6 75132012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
7514
7515 * grub-core/fs/udf.c (read_string): Bail out on size=0.
7516 (grub_udf_read_symlink): Handle read_string failure.
7517
5eae3175
VS
75182012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
7521 comment.
7522
c1ad82db
VS
75232012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 Fix handling of UDF symlinks.
7526
7527 * grub-core/fs/udf.c (read_string): New argument outbuf.
7528 All users updated.
7529 (grub_ufs_read_symlink): Rename to ...
7530 (grub_udf_read_symlink): ... this. All users updated.
7531 Handle symlinks with more than one component.
7532
33eca6e0
VS
75332012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
7536 symlinks. Replace leading colon with a slash.
7537
57f4a70b
VS
75382012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
7541 filename.
7542
38c8ee20
VS
75432012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
7546 match in inner node.
7547
2e57f28f
VS
75482012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
7551 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
7552 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
7553 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
7554 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
7555 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
7556 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
7557 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
7558 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
7559
fe8c2f11
VS
75602012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 Use grub-probe and not cmp to check that disk is empty.
7563
7564 * util/grub-install.in: Use grub-probe for zero-check.
7565 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
7566 (probe): Handle PRINT_ZERO_CHECK.
7567 (argp_parser): Handle -t zero_check.
7568
75692012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
7570
7571 Flush block cache on adding disk to device map.
7572
7573 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
7574 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
7575 adding.
7576 (read_device_map): Likewise.
7577 (open_device): Flush on opening.
7578
690434e8
VS
75792012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
7582 (handle_symlink): Fix off-by-one error.
7583 Canonicalize the target.
7584 (grub_cpio_dir): Canonicalize the name.
7585 Fix memory leak.
7586 Set directory.
7587 (grub_cpio_open): Canonicalize the name.
7588
742d2be6
VS
75892012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
7592 handling.
7593
3244fe96
VS
75942012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
7597 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
7598
8aeb1837
VS
75992012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
7602 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 7603 All users updated.
8aeb1837 7604
9133fd05
VS
76052012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7606
7607 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
7608 counterpart.
7609
6d521c5b
VS
76102012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 Fix UFS1 big file support.
7613
7614 * grub-core/fs/ufs.c (INODE): Removed.
7615 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
7616 64-bit.
7617 (INODE_MODE): Simplify.
7618 (grub_ufs_inode): Use uint64_t for size and not int64_t.
7619 (grub_ufs_lookup_symlink): Don't use INODE.
7620
21b82e17
VS
76212012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 Fix minixfs with non-power-of-two blocks since it's supported by minix.
7624
7625 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
7626 (grub_minix_data): Replace log_block_size with block_size.
7627 (grub_minix_read_file): Use block_size but avoid 64-bit division.
7628 (grub_minix_mount): Fill block_size.
7629
76302012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
7631
7632 * configure.ac: Bump to beta5.
7633
f417ed04
VS
76342012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 Fix wrapped HFS+ handling.
7637
7638 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
7639 blocks_start. All users updated.
7640 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
7641 wrapping offset.
7642 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
7643
607d282b
VS
76442012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 Fix long symlinks on reiserfs.
7647
7648 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
7649 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
7650 (grub_reiserfs_iterate_dir): Save size for non-directories.
7651 (grub_reiserfs_open): Don't reread stat block as we already know the
7652 size.
7653 (grub_reiserfs_read): Split into...
7654 (grub_reiserfs_read_real): ... and ...
7655 (grub_reiserfs_read): ...this.
7656
ae16024d
VS
76572012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 Fix non-indexed JFS.
7660
7661 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
7662 (grub_jfs_data): New field namecomponentlen.
7663 (grub_jfs_mount): Fill namecomponentlen.
7664 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
7665
eea1e26e
VS
76662012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7667
7668 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
7669 * tests/grub_script_echo1.in: Add tests.
7670
df760f77
VS
76712012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * util/grub-install.in: Ignore empty devicetree directory.
7674
5efb817d
B
76752012-05-08 Bean <bean123ch@gmail.com>
7676
7677 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
7678 All users updated.
7679 (free_rsm): Free header as well.
7680 (free_old_fragments): Fix memory leak.
7681 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
7682 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
7683 (destroy_pq): Likewise.
7684 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
7685
668ea6d2
VS
76862012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
7689 resulting hash as a precaution.
7690
1739b1fe
VS
76912012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
7694 '_' in variable names.
7695 * grub-core/net/net.c (grub_net_network_level_interface_register):
7696 Likewise.
7697
6ae485aa
VS
76982012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 Fix AFFS with non-512B blocks.
7701
7702 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
7703 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
7704 (grub_affs_data): Replace blocksize with log_blocksize.
7705 (grub_affs_read_block): Fix non-512B blocks.
7706 (grub_affs_read_symlink): Likewise.
7707 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
7708 (grub_affs_read): Fix non-512B blocks.
7709 (grub_affs_label): Likewise.
7710 (grub_affs_mtime): Likewise.
7711 (grub_affs_mount): Fix block detection routine.
7712
d20fab84
VS
77132012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 Add filesystem mtime to AFFS.
7716
7717 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
7718 (aftime2ctime): New function.
7719 (grub_affs_dir): Use aftime2ctime.
7720 (grub_affs_label): Fix return value.
7721 (grub_affs_mtime): New function.
7722 (grub_affs_fs): Add mtime.
7723
e87b10f5
VS
77242012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
7727 UTF-8.
7728
7dceec9b
VS
77292012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7730
7731 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
7732 UTF-8.
7733
2f48221f
VS
77342012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
7737
dacd85cf
VS
77382012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
7741 flags.
7742 (FLAGS_CASE_SENSITIVE): New enum value.
7743 (cache_entry): New struct.
7744 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
7745 cache_size and cache.
7746 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
7747 Add log_blocksize and fshelp_flags.
7748 (grub_sfs_read_extent): Handle non-512 blocks.
7749 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
7750 (grub_sfs_read_file): Handle non-512 blocks.
7751 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
7752 fshelp_flags.
7753 (grub_sfs_read_symlink): Handle non-512 blocks.
7754 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
7755 (grub_sfs_dir): Free cache.
7756 (grub_sfs_close): Likewise.
7757
24e9a854
VS
77582012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
7761 filesystems.
7762
62ace64d
VS
77632012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7766
83b2e89c
VS
77672012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7770
75ccaea3
VS
77712012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7774 (grub_sfs_read_extent): Likewise.
7775 (grub_sfs_read_block): Likewise.
7776 (grub_sfs_mount): Likewise.
7777 (grub_sfs_iterate_dir): Likewise.
7778 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7779 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7780
1b8463f2
VS
77812012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7782
7783 Fix errors on compressed NTFS with 512B clusters.
7784
7785 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7786 types.
7787 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7788 not 0.
7789 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7790 Relax check for inline extents.
7791 (ntfscomp): Return correct -1 on error and not 0.
7792
4f8e368f
VS
77932012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7794
7795 * util/grub-install.in: Fix handling of prefix containing spaces.
7796
6f5d5ee8
VS
77972012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7800 (grub_squash_read_data): Fix offset byte-swapping.
7801
ce41ab7a
VS
78022012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7805 per common usage and preffered in several parts of code.
7806 (grub_memcmp): Likewise.
7807 (grub_strncmp): Likewise.
7808 * include/grub/misc.h (grub_strcasecmp): Likewise.
7809 (grub_strncasecmp): Likewise.
7810 * Makefile.util.def (cmp_test): New test.
7811 (grub_script_strcmp): Likewise.
7812 * tests/cmp_unit_test.c: New file.
7813 * tests/grub_script_strcmp.in: Likewise.
7814 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7815
49717bf4
VS
78162012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * include/grub/pci.h: Move enums into no-asm part.
7819
0a308f64
VS
78202012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7823
1796965f
ST
78242012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7825
7826 * util/getroot.c (find_hurd_root_device): Try to make error message
7827 and comments to translators clearer.
7828
4e9b2819
VS
78292012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7832
076aeb50
VS
78332012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7836 btrfs.
7837
19424d94
VS
78382012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * docs/grub.cfg: Update.
7841
ebb73076
VS
78422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 * docs/grub.texi (PXE): Remove not present variables.
7845
9a1b669c
VS
78462012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7847
7848 * grub-core/net/net.c (defserver_set_env): New function.
7849 (defserver_get_env): Likewise.
7850 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7851
d38bf7d3
VS
78522012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7855 entries.
7856
78572012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
7858
7859 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7860 * grub-core/kern/emu/hostdisk.c: Likewise.
7861
e5e4ca48
ST
78622012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7863
7864 Handle hurd userspace partitions.
7865
7866 * util/getroot.c (find_hurd_root_device): New function.
7867 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7868
56bb5dd5
VS
78692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7872 names.
7873 Reported by: Bastian Blank.
7874
9e8bc27a
VS
78752012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7878 crossing page boundary.
7879
aa01499d
VS
78802012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7881
7882 Fix B-tree search in BFS, especially in presence of non-ASCII
7883 characters.
7884
7885 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7886 (find_in_b_tree): Use standard bsearch + btree algorithm.
7887
57006035
VS
78882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7891 and so on.
7892
9d34bb85
MG
78932012-05-03 Matthew Garrett <mjg@redhat.com>
78942012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 Suspend broadcom cards in order to stop their DMA.
7897
7898 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7899 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7900 (pci): Don't build on x86 EFI.
7901 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7902 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7903 New function.
7904 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7905 stop_broadcom if running on EFI.
7906 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7907 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7908 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7909 (grub_pci_find_capability): New proto.
7910
01aab997
VS
79112012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 * docs/grub.texi: Remove dot from the extension as it apparently
7914 doesn't work with some makeinfo versions.
7915
fbd8dca6
VS
79162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7919 with GRUB expectance.
7920
dab797f4
VS
79212012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7924
1516bfb4
VS
79252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7928 zero after directory block since last entry may be not 0-terminated if
7929 it ends on block boundary. Use continue instead of if spanning whole
7930 loop.
7931
a3a0eace
VS
79322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 Support 4K sectors UDF inline files.
7935
7936 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7937 (grub_udf_extended_file_entry): Likewise.
7938 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7939 All users updated.
7940 (get_fshelp_size): New function.
7941 (grub_udf_read_icb): Read whole block.
7942 (grub_udf_iterate_dir): Likewise.
7943 (grub_udf_dir): Likewise.
7944 (grub_udf_open): Likewise.
7945
c82f16c1
VS
79462012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7949
59fd2aac
VS
79502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7951
7952 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7953 inline symlinks in addition to workaround.
7954
3b4afb4d
VS
79552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7958
f45c794a
VS
79592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7960
7961 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7962
f25cecbd
VS
79632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7966
bb9a34e8
VS
79672012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 Fix reiserfs big seek times.
7970
7971 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7972 exact. All users updated.
7973 (grub_reiserfs_read): Use nearest btree search for seeking.
7974 Fix return value on error.
7975
dc478aea
VS
79762012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7979 entries.
7980 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7981 * docs/grub.texi: Update menuentry description.
7982
8db10f47
VS
79832012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7986 crash when embedding onto filesystem.
7987
bcb288ed
VS
79882012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7989
7990 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7991 name.
7992
a626fdd7
VS
79932012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7996
b2f68477
VS
79972012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
8000 commit.
8001
ba15b2af
B
80022012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
80032012-05-01 Bean <bean123ch@gmail.com>
8004
8005 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
8006
a188012e
VS
80072012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
8010 Special behaviour for len = 0 to read whole file isn't used anywhere and
8011 can cause buffer ovewrflows in several places.
8012
f0a53ed2
VS
80132012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8014
8015 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
8016
5ed554f0
VS
80172012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 Handle RAIDZ on non-512B sectors.
8020
8021 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
8022 max_children_ashift.
8023 (fill_vdev_info_real): Fill max_children_ashift.
8024 (read_device): Use max_children_ashift.
8025
ddc58357
VS
80262012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8027
8028 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
8029
e3282399
VS
80302012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8031
8032 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
8033 disk names.
8034 * docs/grub.texi: Update device.map parts.
8035
ee618bd4
VS
80362012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8037
8038 Don't scan into non-diskfilter devices having diskfilter names.
8039
8040 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
8041 (scan_disk): New argument accept_diskfilter. Fix recursion depth
8042 handling.
8043 (scan_disk_hook): New function.
8044
bdf88864
B
80452012-04-29 Bean <bean123ch@gmail.com>
8046
8047 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
8048 allocation.
8049
32745f51
MK
80502012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
8051
8052 * configure.ac: Detect starfield theme font path
8053 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
8054
bc95c8c0
VS
80552012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
8058 geometry on serial consoles.
8059
147fbcab
VS
80602012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
8061
8062 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
8063 because of network consoles.
8064
0f42c889
VS
80652012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
8068 handling.
8069
4a3594c9
VS
80702012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
8073 falls on Q syndrom.
8074
5cb53879
VS
80752012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
8078 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
8079
b282dfe5
VS
80802012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
8083 Allocate at lest 8192 for temporary buffer as required for lzo.
8084
daa59f47
VS
80852012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
8088 to cluster_bits, since it's already added in.
8089 (grub_fat_read_data): Likewise.
8090
986748ce
VS
80912012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
8094 as long as cluster size is multiple of 512 bytes.
8095
a20f6ad0
VS
80962012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * util/grub-mkrescue.in: Fix locale directory.
8099
385f9abb
VS
81002012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * grub-core/kern/emu/hostdisk.c (map): Make static.
8103
1c557d30
B
81042012-04-23 Bean <bean123ch@gmail.com>
8105
8106 * util/grub-fstest.c (fstest): Add missing break.
8107
524b5d3a
ST
81082012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
8109
8110 Fix hurd build.
8111
8112 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
8113 not define nr variable.
fe4824e9 8114 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
8115 find_root_devices_from_poolname, find_root_devices_from_libzfs,
8116 grub_find_device): Do not define.
524b5d3a 8117
9a06490c
VS
81182012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 Fix kfreebsd compile and behaviour.
8121
8122 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
8123 format-security.
8124 * util/getroot.c: Fix wait.h include.
8125 (grub_guess_root_devices): Error if grub_find_device fails.
8126 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
8127 (grub_util_get_dev_abstraction): Likewise.
8128 (grub_util_pull_device): Likewise.
8129 (grub_util_get_grub_dev): Likewise.
8130 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
8131
48143d96
VS
81322012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 Fix and unify wholedisk detection.
8135
8136 * util/getroot.c (convert_system_partition_to_system_disk): New argument
8137 is_part. All users updated.
8138 (device_is_wholedisk): Removed.
8139 (grub_util_biosdisk_get_grub_dev): Use is_part.
8140
ebbd24f3
VS
81412012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8142
8143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
8144 mode.
8145
56f7aa1e
VS
81462012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8147
8148 * configure.ac: Bump to beta4.
8149
9c815e01
VS
81502012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
8153 --fs-uuid --set UUID syntax.
8154
59e2651a
VS
81552012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8156
8157 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
8158 disunification.
8159
54e03cfc
VS
81602012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
8163
81092a75
MK
81642012-04-18 Mads Kiilerich <mads@kiilerich.com>
8165
8166 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
8167
f8315e14
MG
81682012-04-18 Mike Gilbert <floppym@gentoo.org>
8169
8170 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
8171
1501ac21
B
81722012-04-18 Bean <bean123ch@gmail.com>
8173
8174 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
8175 place.
8176
cb7f944e
VS
81772012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
8180 users updated.
8181 (grub_util_biosdisk_read): Handle Linux partitions not exactly
8182 corresponding to GRUB partitions.
8183 (grub_util_biosdisk_write): Likewise.
8184
b72d44a1
VS
81852012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 Scan mdraid before LVM.
8188
8189 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
8190 (grub_diskfilter_register_front): ... this.
8191 (grub_diskfilter_register_back): New function.
8192 All users of grub_diskfilter_register updated.
8193
33d918b8
VS
81942012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * util/grub-install.in: Fix an automatic target detection bug.
8197
c6ca973d
VS
81982012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * util/grub-install.in: New option --efi-directory.
8201
b41be562
VS
82022012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
8205 boot services if we have no other choice.
8206
82072012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
8208
8209 * util/grub-mknetdir.in: Rename --override-directory to --directory and
8210 document it.
8211 * tests/util/grub-shell.in: Update to --directory.
8212
e0595a73
VS
82132012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8214
8215 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
8216
4ed80652
VS
82172012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8218
8219 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
8220 (grub_minix_read_file): Likewise.
8221 (grub_minix_read_inode): Likewise.
8222 (grub_minix_find_file): Likewise.
8223 (grub_minix_dir): Likewise.
8224
56008077
VS
82252012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * util/grub-setup.c (setup): Fix partition handling and blocklist
8228 check.
8229
ee520775
VS
82302012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
8233 redundant buggy overlap check.
8234
16fc9293
VS
82352012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
8238 and grub-mknetdir.
8239
9bab65c4
VS
82402012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
8243 kh.loadflags on pre-2.00 kernels.
8244
3c491b47
VS
82452012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 Terminate UNDI and PXE before launching the payload to avoid problems
8248 with DMA.
8249
8250 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
8251 (grub_loader_flags): ... this. All users updated.
8252 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
8253 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
8254 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
8255 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
8256 function.
8257 (grub_pxe_restore): Likewise.
8258 (fini_hnd): New var.
8259 (GRUB_MOD_INIT): Register shutdown hook.
8260 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
8261 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
8262 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
8263 (grub_loader_set): Rename second argument to flags.
8264
851ffada
VS
82652012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
8268 written bytes.
8269 (grub_get_num_of_utf8_bytes): New function.
8270 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
8271 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
8272 executing it.
8273 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
8274 (grub_ucs4_to_utf8): Change return type.
8275
491c57a8
VS
82762012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
8279 warning.
851ffada
VS
8280 * grub-core/fs/bfs.c (hop_level): Likewise.
8281 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 8282
756773df
VS
82832012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 * grub-core/lib/adler32.c: Recode due to license unclearness.
8286
fd556a96
VS
82872012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
8290 (test_header): Likewise.
8291
9f9d3f69
VS
82922012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8293
8294 Fix --help formatting.
8295
8296 * util/grub-mkconfig_lib.in (print_option_help): New function.
8297 (grub_fmt): Likewise.
8298 * util/grub-install.in: Use print_option_help and grub_fmt.
8299 * util/grub-kbdcomp.in: Likewise.
8300 * util/grub-mkconfig.in: Likewise.
8301 * util/grub-mknetdir.in: Likewise.
8302 * util/grub-mkrescue.in: Likewise.
8303 * util/grub-mkstandalone.in: Likewise.
8304 * util/grub-reboot.in: Likewise.
8305 * util/grub-set-default.in: Likewise.
8306 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8307
561ec77e
VS
83082012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8309
8310 * linguas.sh: Remove autogenerated *.po.
8311
7ec2b021
VS
83122012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 * po/README: Move language fetcing to ...
8315 * linguas.sh: ... here.
8316 * po/README: Point to linguas.sh.
8317
a88f3270
VS
83182012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * po/README: Exclude ko.po due to disclaimer problems.
8321
d61357ce
VS
83222012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
8325 len = 0.
8326 (grub_gettext_translate_real): Handle 0th string.
8327 (grub_gettext_translate): Ensure that "" isn't translated.
8328
505e41dc
VS
83292012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
8332 TRANSLATORS comment.
8333 (grub_diskfilter_print_partmap): Propagate changing of error into
8334 warning.
8335
e44092db
VS
83362012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8337
8338 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
8339 to uint64_t to prevent overflow.
8340 (grub_diskfilter_lv): Increase start_extent and extent_count
8341 to uint64_t to prevent overflow.
8342
9b83956a
VS
83432012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * configure.ac: Increase version.
8346
da0d5b3f
VS
83472012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
8350
8351 * po/Rules-translit: New file.
8352 * po/arabic.sed: Likewise.
8353 * po/cyrillic.sed: Likewise.
8354 * po/greek.sed: Likewise.
8355 * po/hebrew.sed: Likewise.
8356 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
8357 * po/Makefile.in.in: Add extra_dist4.
8358
ac66b453
VS
83592012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 Handle big-endian minixfs (fixes minixfs tests on bigendian).
8362
8363 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
8364 modify names. Introduce MODE_BIGENDIAN.
8365 * grub-core/fs/minix_be.c: New file.
8366 * grub-core/fs/minix2_be.c: Likewise
8367 * grub-core/fs/minix3_be.c: Likewise.
8368 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
8369 minix3_be.
8370 * grub-core/Makefile.core.def (minix_be): New module.
8371 (minix2_be): Likewise.
8372 (minix3_be): Likewise.
8373
83742012-04-01 Felix <email@hamburg.de>
8375
8376 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
8377 (devs): Add MBP 2011.
8378
0a2d5a82
VS
83792012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
8382
d1625889
VS
83832012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * grub-core/normal/cmdline.c (print_completion): New field
8386 prompt_len.
8387 (grub_cmdline_get): Handle width properly.
8388
6d36a236
VS
83892012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8390
8391 * grub-core/commands/lsacpi.c (options): Add missing terminator.
8392
9576977e
VS
83932012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 8396 after 29th of February.
9576977e 8397
d73ff15d
VS
83982012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 Fix exfat endianness handling.
8401
8402 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
8403 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
8404 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
8405 Byte-swap utf16 when necessary.
8406 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
8407
bbb39a45
AB
84082012-03-31 Anton Blanchard <anton@samba.org>
84092012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 Fix btrfs endianness handling.
8412
8413 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
8414 (lower_bound): Make root uint64_t. Use root in le.
8415 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
8416 (find_path): Fix template key init.
8417 (grub_btrfs_dir): Fix mtime byteswap.
8418 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
8419
354e0af7
VS
84202012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
8423 recursion_depth. Break infinite resursions. All users updated.
8424
4e75f21c
VS
84252012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
8428 after free.
8429 Reported by: Peter Jones.
8430
25581802
AB
84312012-03-31 Anton Blanchard <anton@samba.org>
8432
8433 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8434 8 bit values.
8435
08fbf92e
VS
84362012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 * util/grub-install.in: Fix nvram call for PreP.
8439
5d1182a6
VS
84402012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
8443 the error when some elements are missing into a warning.
8444
3f8cdd90
VS
84452012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
8448
51006716
CW
84492012-03-28 Colin Watson <cjwatson@ubuntu.com>
8450
8451 * docs/grub.texi (Invoking grub-probe): New section.
8452 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
8453
e1bd676b
VS
84542012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 Fix tab and wide character handling in editor and menu.
8457
8458 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
8459 agglomerate control characters with combining marks.
8460 (bidi_line_wrap): Allow break on tab.
8461 (grub_unicode_get_comb_start): New function.
8462 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
8463 and tab correctly.
8464 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
8465 with a space.
8466 * grub-core/normal/term.c (print_ucs4_terminal): New argument
8467 fixed_tab_size. All users updated.
8468 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
8469 (grub_term_getcharwidth): Handle \t.
8470 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
8471 and copy.
8472
22e6a774
VS
84732012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 Handle big-endian mdraid.
8476
8477 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
8478 * grub-core/Makefile.core.def (mdraid09_be): New module.
8479 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
8480 rather than grub_le_to_cpu* and grub_cpu_to_le*.
8481 * grub-core/disk/mdraid_linux_be.c: New file.
8482
3c0eae66
VS
84832012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
8486
b6cf74c9
VS
84872012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8490 missing quotes which caused confusion among translators.
8491
83c93b9c
VS
84922012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * util/grub-mkconfig_lib.in: Fix typo.
8495
ac6fd218
VS
84962012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
8499 spaces.
8500 * tests/grub_script_leading_whitespace.in: New file.
8501 * Makefile.util.def (grub_script_leading_whitespace): New test.
8502
ba287dd8
VS
85032012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
8506 to work.
8507
d2d58d0a
VS
85082012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
8511 starts with control character.
8512
0382d9bb
VS
85132012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
8516 overflow.
8517 (grub_gdb_outbuf): Likewise.
8518
d83ff9f9
VS
85192012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
8522 zero terminator. Fixes a crash.
8523
2282da4a
VS
85242012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8525
8526 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
8527 beyond 4 GiB.
8528 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
8529 images independently of preffered adderss field.
8530
0ae4f0bd
VS
85312012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
8534 * grub-core/commands/regexp.c: Likewise.
8535 * grub-core/loader/i386/linux.c: Likewise.
8536 * grub-core/partmap/msdos.c: Likewise.
8537 * grub-core/script/execute.c: Likewise.
8538 * grub-core/term/gfxterm.c: Likewise.
8539
546fbe9b
VS
85402012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 Add variable parsing in $"..." and fix several mismatches with bash.
8543
8544 * Makefile.util.def (grub_script_gettext): New test.
8545 * grub-core/script/execute.c (parse_string): New function.
8546 (gettext_append): Likewise.
8547 (grub_script_arglist_to_argv): Use gettext_append.
8548 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
8549 * tests/grub_script_gettext.in: New file.
8550
9fdb2d7b
VS
85512012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8552
8553 Fix handling of leading spaces in scripts.
8554
8555 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
8556 spaces.
8557 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
8558 other than skipping \r. All users updated.
8559 * tests/grub_script_echo1.in: Add space-related tests.
8560 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
8561
1a1ac4f6
VS
85622012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
8565
b63d89b6
VS
85662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 * configure.ac: Bump up the version to beta2.
8569
17f38c0f
VS
85702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 Fix gettext reload bugs (e.g. inability to disable gettext
8573 once enabled).
8574
8575 * grub-core/gettext/gettext.c: Encapsulate all static variables in
8576 main_context and secondary_context. All functions updated.
8577 (grub_gettext_translate): Rename to ...
8578 (grub_gettext_translate_real): ... this. Return NULL on failed
8579 translate.
8580 (grub_gettext_translate): Handle secondary context.
8581 (grub_gettext_delete_list): Close file and zero-out the context.
8582 (grub_mofile_open): Don't call grub_gettext_delete_list.
8583 Don't close file.
8584 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
8585 if locale="" to avoid pointless error message.
8586 (grub_gettext_env_write_lang): Update lang even if load fails.
8587 Handle secondary context.
8588 (grub_gettext_reread_prefix): New function.
8589 (read_main): Likewise.
8590 (read_secondary): Likewise.
8591 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
8592 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
8593 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
8594 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
8595
8e56f870
VS
85962012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * configure.ac: Decrease warning level to avoid spurious warnings and
8599 to be able to compile with GCC 4.2.
8600 * Makefile.util.def: Remove -Wno-error=logical-op.
8601
82f6d455
WB
86022012-03-10 William Bittner <william.bittner@gmail.com>
8603
8604 * util/import_unicode.py: Add missing brackets around string for
8605 python 3 support.
8606
1ecd61a4
VS
86072012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 Fix efi chainloader on network root.
8610
8611 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
8612 network devices.
8613 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
8614 New function.
8615
14361ee8
VS
86162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
8619 unused show_text member.
8620 * docs/grub.texi: Document "text" property.
8621
922aabf3
VS
86222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
8625 in dprintf.
8626
ec316771
VS
86272012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 Fix IMSM handling on Fedora.
8630
8631 * util/getroot.c (grub_util_is_imsm): New function.
8632 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
8633
0f021838
VS
86342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * Makefile.am: Strip gold section.
8637 * conf/Makefile.common: Likewise.
8638 * gentpl.py: Likewise.
8639 * grub-core/Makefile.core.def: Likewise.
8640 * grub-core/genmod.sh.in: Likewise.
8641
1039c8eb
VS
86422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
8645 * util/grub.d/20_linux_xen.in: Likewise.
8646 Based on Debian patch.
8647
6dd412cd
VS
86482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 * util/grub.d/10_linux.in: Fix syntax error resulting in
8651 Richard Laager's patch.
8652 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
8653
3fd8bae5
VS
86542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
8657 dependencies.
8658
7eea1671
RL
86592012-03-10 Richard Laager <rlaager@wiktel.com>
8660
8661 * util/grub.d/10_linux.in: Fix ZFS root passing.
8662
e8e0566b
VS
86632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8666 * grub-core/commands/xnu_uuid.c: Likewise.
8667 * grub-core/loader/efi/appleloader.c: Likewise.
8668 * grub-core/script/execute.c: Likewise.
8669 * grub-core/script/main.c: Likewise.
8670 * util/grub-mkfont.c: Likewise.
8671
1acc5b1f
VS
86722012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * util/grub-mkfont.c (options): Use more appropriate "select" that
8675 "set" for face index.
8676
35d70620
VS
86772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * util/grub-editenv.c (options): Gettextize command summaries.
8680
c9eb96b5
VS
86812012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
8684 "out of memory" error messagge.
8685
1f493136
VS
86862012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
8689 of diskfilter for diskfilter on diskfilter support.
8690
6d790129
VS
86912012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8692
8693 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
8694
005f46c9
VS
86952012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * util/grub-install.in: Check for themes/starfield/theme.txt and not
8698 themes/starfield.
8699
c8f778a0
VS
87002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
8703
de1e64eb
VS
87042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
8707
c6d54211
VS
87082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
8711 of error message.
8712
dd390777
VS
87132012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8714
8715 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
8716
5fd1c522
VS
87172012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
8720 message.
c6d54211 8721 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 8722
fae01f6c
VS
87232012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
8726 Gettextize.
8727 * util/grub-mount.c (options): Likewise.
8728
292fdaff
VS
87292012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
8732 gettextize.
8733 * grub-core/commands/search_wrap.c (options): Likewise.
8734
ecdbae77
VS
87352012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
8738
52bfedfa
VS
87392012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
8742 size calculation.
8743 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
8744 none is known.
8745
55b20e58
VS
87462012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
8749 "temporary" since it's used in identifier and is limited in space.
8750
fda9d101
VS
87512012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 * po/POTFILES.in: Regenerate. Include *.h since they contain
8754 translatable strings as well.
8755
6a0295e2
VS
87562012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8759 byte-swap on big-endian.
8760 Reported by: Lennart Sorensen
8761
807fb77c
VS
87622012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8763
8764 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8765 (allocate_pages): Improve dprintf.
8766 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8767 code32_start. Fill code32_start and kernel_alignment in params.
8768 (grub_cmd_initrd): Use prot_init_space.
8769
61ac50ba
VS
87702012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8773
abdd26dd
VS
87742012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * util/grub-install.in: Add missing dot at the end of sentence.
8777
6e69da9c
VS
87782012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8781 * grub-core/commands/videotest.c: Likewise.
8782 * grub-core/loader/i386/linux.c: Likewise.
8783
4a929343
VS
87842012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8787 sentence.
8788 Reported by: Milo Casagrande.
8789
bb51c6c6
VS
87902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8793 * grub-core/commands/gptsync.c: Likewise.
8794 * grub-core/commands/hashsum.c: Likewise.
8795 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8796 * grub-core/commands/legacycfg.c: Likewise.
8797 * grub-core/io/gzio.c: Likewise.
8798 * grub-core/net/net.c: Likewise.
8799 * grub-core/term/gfxterm.c: Likewise.
8800 * grub-core/term/terminfo.c: Likewise.
8801 * grub-core/tests/test_blockarg.c: Likewise.
8802 * grub-core/video/video.c: Likewise.
8803 * util/grub-install.in: Likewise.
8804 * util/grub-mkfont.c: Likewise.
8805
b2b149cb
VS
88062012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8807
8808 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8809
c7c080ad
VS
88102012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 8813 Reported by: David Prévot.
c7c080ad 8814
f2e243c0
VS
88152012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8818 description.
8819
09963c76
VS
88202012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * util/grub-script-check.c (main): Fix a syntax error message which was
8823 unclear.
8824
a50514a8
VS
88252012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8828
4650daec
VS
88292012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8832 messages.
8833
88342012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
8835
8836 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8837 without argument.
8838 * util/grub-mount.c (options): Likewise.
8839
bbc5a342
VS
88402012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8843
ef292a87
VS
88442012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 * grub-core/net/http.c: Add TRANSLATORS comments.
8847 * grub-core/normal/cmdline.c: Likewise.
8848 * grub-core/normal/misc.c: Likewise.
8849 * grub-core/partmap/msdos.c: Likewise.
8850 * grub-core/parttool/msdospart.c: Likewise.
8851 * grub-core/script/execute.c: Likewise.
8852 * grub-core/script/main.c: Likewise.
8853 * grub-core/term/terminfo.c: Likewise.
8854 * grub-core/video/bitmap.c: Likewise.
8855 * util/grub-install.in: Likewise.
8856 * util/grub-mkimage.c: Likewise.
8857 * util/grub-mklayout.c: Likewise.
8858 * util/grub-setup.c: Likewise.
8859
0fc19bd0
VS
88602012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8863 with similar messages in grub-fstest.
8864
d95862ef
VS
88652012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * util/grub-install.in: Unify "option requires an argument" message
8868 with similar messages in other files.
8869 * util/grub-mkconfig.in: Likewise.
8870
b7308f90
VS
88712012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * util/grub-set-default.in: Replace printf with gettext_printf (the
8874 string in in question is already translated from grub-reboot)
8875
559dc587
VS
88762012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * configure.ac: Bump up the version to beta1.
8879
1a11761f
VS
88802012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8883 case when min_align = 0.
8884
24539abd
VS
88852012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8888 and fix a case when line_start overflows.
8889
32bd735b
VS
88902012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 * util/grub-reboot.in (usage): Mention id posibility.
8893 * util/grub-set-default.in (usage): Likewise.
8894
1a2fd1e6
VS
88952012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8898 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8899 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8900 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8901 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8902 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8903 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8904
90eeab76
VS
89052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 * grub-core/commands/menuentry.c (options): Remove
8908 GRUB_ARG_OPTION_REPEATABLE.
8909 Reported by: Andreas Vogel
8910
5ad1be82
AV
89112012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8912
8913 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8914
cb055286
HE
89152012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8916
8917 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8918 error.
8919
93b1cd79
VS
89202012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 Use sort -V by the idea of Georgi Georgiev.
8923
8924 * util/grub-mkconfig_lib.in (version_sort): New function.
8925 (version_test_numeric): Use version_sort.
8926
0cdc126c
VS
89272012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8928
8929 Use submenus in grub-mkconfig.
8930
8931 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8932 * util/grub-mkconfig_lib.in (grub_quote): New function.
8933 (gettext_printf): Use gettext and not gettext_quoted to fix several
8934 messages.
8935 * util/grub.d/10_hurd.in: Use submenus.
8936 * util/grub.d/10_kfreebsd.in: Likewise.
8937 * util/grub.d/10_linux.in: Likewise.
8938 * util/grub.d/10_netbsd.in: Likewise.
8939 * util/grub.d/20_linux_xen.in: Likewise.
8940 * util/grub.d/30_os-prober.in: Likewise.
8941 * util/grub.d/10_illumos.in: Add missing quoting.
8942 * util/grub.d/10_windows.in: Likewise.
8943
d9bef9bc
VS
89442012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 Fix menu title instability bug.
8947
8948 * grub-core/commands/menuentry.c (options): New option --id.
8949 (grub_normal_add_menu_entry): New argument id. All users updated.
8950 (grub_cmd_menuentry): Handle --id.
8951 (grub_menu_init): Accept unknown arguments.
8952 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8953 feature_menuentry_options.
8954 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8955 saved_entry.
8956 (get_entry_number): Match with id as well.
8957 * include/grub/menu.h (grub_menu_entry): New member id.
8958 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8959 * util/grub.d/00_header.in: Define menuentry_id_option.
8960 * util/grub.d/10_hurd.in: Define id.
8961 * util/grub.d/10_illumos.in: Likewise.
8962 * util/grub.d/10_kfreebsd.in: Likewise.
8963 * util/grub.d/10_linux.in: Likewise.
8964 * util/grub.d/10_netbsd.in: Likewise.
8965 * util/grub.d/10_windows.in: Likewise.
8966 * util/grub.d/20_linux_xen.in: Likewise.
8967 * util/grub.d/30_os-prober.in: Likewise.
8968
89692012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
8970
8971 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8972 "scope" with "body".
8973
7c8d0ce7
VS
89742012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8975
8976 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8977 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8978 prot_size and prot_file_size.
8979
49de079b
VS
89802012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8983 All users updated. If easily=1 require raid-5/-6 to be full.
8984 (is_node_readable): Likewise.
8985 (scan_devices): Scan incomplete but readable LVs at the end.
8986 (grub_diskfilter_memberlist): Pull missing devices.
8987 (insert_array): Skip scanning until device is complete or scan is
8988 done otherwise.
8989 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8990 check.
8991 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8992 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8993
aff05d45
MG
89942012-03-03 Matthew Garrett <mjg@redhat.com>
89952012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 Avoid EFI boot services when loading Linux.
8998
8999 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
9000 avoid_efi_bootservices. All users updated.
9001 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
9002 argument avoid_efi_bootservices. All users updated.
9003 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
9004 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
9005 align, min_align, relocatable, prefered_address. All users updated.
9006 Allocate avoiding boot services if kernel is relocatable.
9007 (grub_cmd_linux): Check if kernel is relocatable.
9008 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
9009 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
9010 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
9011 avoid_efi_boot_services.
9012 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
9013 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
9014 (linux_kernel_params): Likewise.
9015
3935dde2
MG
90162012-03-03 Matthew Garrett <mjg@redhat.com>
90172012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 Use EDID on EFI.
9020
9021 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
9022 datasize_out.
9023 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
9024 modes. Set gop_handle.
9025 (grub_video_gop_get_edid): New function.
9026 (grub_gop_get_preferred_mode): Likewise.
9027 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
9028 (grub_video_efi_gop_adapter): Set .get_edid.
9029 * include/grub/efi/edid.h: New file.
9030 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
9031
32107ec0
VS
90322012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * util/grub-install.in: Load efivars unconditionally.
9035
e70a2c50
VS
90362012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * po/Rules-piglatin: Change suffix from .po-update-en to
9039 .po-update-en-piglatin.
9040
8f9cace1
VS
90412012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9042
9043 Add a pig farm.
9044
9045 * po/piglatin.sed: New file.
9046 * po/en@piglatin.header: Likewise.
9047 * po/Rules-piglatin: Likewise.
9048 * po/README: Add en@piglatin to autogenerated languages.
9049
8f95d002
VS
90502012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9051
9052 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
9053 "Command for ...".
9054 * grub-core/commands/hdparm.c (options): Use "Display" rather than
9055 "Check" since we don't check anything.
9056 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
9057 is 64-bit one.
9058 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
9059 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
9060 (grub_md_sha512_real): Likewise.
9061
805a8dcc
VS
90622012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/commands/gptsync.c: Fix typographic quoting.
9065 * grub-core/commands/ieee1275/suspend.c: Likewise.
9066 * grub-core/commands/parttool.c: Likewise.
9067 * grub-core/commands/search_wrap.c: Likewise.
9068 * grub-core/commands/videoinfo.c: Likewise.
9069 * grub-core/gfxmenu/gui_label.c: Likewise.
9070 * grub-core/hello/hello.c: Likewise.
9071 * grub-core/kern/emu/main.c: Likewise.
9072 * grub-core/net/net.c: Likewise.
9073 * grub-core/normal/menu.c: Likewise.
9074 * grub-core/normal/menu_text.c: Likewise.
9075 * grub-core/normal/misc.c: Likewise.
9076 * util/grub-editenv.c: Likewise.
9077 * util/grub-install.in: Likewise.
9078 * util/grub-kbdcomp.in: Likewise.
9079 * util/grub-mkconfig.in: Likewise.
9080 * util/grub-mknetdir.in: Likewise.
9081 * util/grub-mkrescue.in: Likewise.
9082 * util/grub-mkstandalone.in: Likewise.
9083 * util/grub-reboot.in: Likewise.
9084 * util/grub-set-default.in: Likewise.
9085 * util/grub-setup.c: Likewise.
9086 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9087
40211ab8
VS
90882012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
9091 * grub-core/commands/keystatus.c: Likewise.
9092 * grub-core/commands/loadenv.c: Likewise.
9093 * grub-core/commands/probe.c: Likewise.
9094 * grub-core/commands/regexp.c: Likewise.
9095 * grub-core/commands/true.c: Likewise.
9096 * grub-core/commands/videoinfo.c: Likewise.
9097 * grub-core/disk/cryptodisk.c: Likewise.
9098 * grub-core/disk/ldm.c: Likewise.
9099 * grub-core/disk/loopback.c: Likewise.
9100 * grub-core/disk/luks.c: Likewise.
9101 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9102 * grub-core/kern/disk.c: Likewise.
9103 * grub-core/kern/emu/hostdisk.c: Likewise.
9104
0c7d99c7
VS
91052012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
9108 * util/grub-install.in: Add missing quote in the comment.
9109
e7d2559b
VS
91102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
9113 * grub-core/commands/lsmmap.c: Likewise.
9114 * grub-core/commands/minicmd.c: Likewise.
9115 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9116 * grub-core/commands/regexp.c: Likewise.
9117 * grub-core/gdb/gdb.c: Likewise.
9118 * grub-core/term/gfxterm.c: Likewise.
9119 * util/grub-mkconfig.in: Likewise.
9120 * util/grub-mkfont.c: Likewise.
9121 * util/grub-mklayout.c: Likewise.
9122 * util/grub-mknetdir.in: Likewise.
9123 * util/grub-mkrescue.in: Likewise.
9124 * util/grub.d/30_os-prober.in: Likewise.
9125
49ce9e50
VS
91262012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
9129 with "Direct color" and "Packed" with "Packed pixel".
9130 (grub_cmd_videoinfo): Simplify legend.
9131
e4b791fa
VS
91322012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
9135 absolutely unclear error message.
9136
fd1265cb
VS
91372012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * util/grub-mkstandalone.in: Remove confusing leftover print.
9140
8822a8a0
VS
91412012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
9144 comments.
9145 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
9146 (GRUB_MOD_INIT): Likewise.
9147 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
9148 VGA mode.
9149 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
9150 comments.
9151 * util/grub-install.in (usage): Likewise.
9152 Spell ID in whole letters.
9153 Add missing ending dot.
9154 Quote variables.
9155 * util/grub-reboot.in: Fix capitalisation.
9156 * util/grub-set-default.in: Likewise.
9157
937fd0cc
VS
91582012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
9161 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
9162 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
9163 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
9164 Disable -Werror for -Wdeprecated-declarations.
9165 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
9166 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
9167 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
9168 (grub_util_get_grub_dev): Make luks handling dependent on
9169 HAVE_DEVICE_MAPPER and not __linux__.
9170 (get_win32_path): Fix format security.
9171 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
9172 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
9173 Don't try grub_find_zpool_from_dir.
9174 (grub_make_system_path_relative_to_its_root) [!__linux__]:
9175 #ifdef-out paresdir.
9176
1bab1ae3
VS
91772012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 * util/grub-pe2elf.c (usage): Add missing noreturn.
9180 (write_section_data): Rename name to shname to avoid shadowing.
9181 (write_symbol_table): Rename name to symname to avoid shadowing.
9182 Fix write_reloc_section call.
9183
ef023e42
VS
91842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
9187 to ensure that it's after the last byte of .text.
9188
48afcb75
VS
91892012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 * util/ieee1275/ofpath.c (my_isdigit): New function.
9192 (trailing_digits): Use my_isdigit.
9193 (strip_trailing_digits): Likewise.
9194
88d51eff
VS
91952012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
9198 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
9199
17edc2ba
VS
92002012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9201
9202 * grub-core/kern/i386/pc/startup.S: Define __start.
9203
ad5518d7
VS
92042012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
9207 strip already transforms he format.
9208
9e95e1bf
VS
92092012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
9212
9cc3ee5c
VS
92132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * util/grub-install.in: Add missing gettext init.
9216 * util/grub-kbdcomp.in: Likewise.
9217 * util/grub-mkconfig.in: Likewise.
9218 * util/grub-mknetdir.in: Likewise.
9219 * util/grub-mkrescue.in: Likewise.
9220 * util/grub-mkstandalone.in: Likewise.
9221 * util/grub-reboot.in: Likewise.
9222 * util/grub-set-default.in: Likewise.
9223 * util/grub.d/00_header.in: Likewise.
9224 * util/grub.d/10_hurd.in: Likewise.
9225 * util/grub.d/10_windows.in: Likewise.
9226 * util/grub.d/30_os-prober.in: Likewise.
9227 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9228
49e08a06
VS
92292012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * po/Rules-swiss: Fix header comment.
9232
3809cb41
AV
92332012-02-29 Andreas Vogel <anvoit>
9234
9235 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
9236 resulted in leak of arguments.
9237
fa6ec573
VS
92382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/boot/i386/pc/startup_raw.S: Use separate
9241 reed_solomon_size const definition instead of computing it since
9242 Apple assembler doesn't support the later.
9243
22899b9c
VS
92442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 * gentpl.py (kernel): Rewrite Apple part.
9247
a132afc3
VS
92482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 * include/grub/kernel.h (FOR_MODULES): Check module magic.
9251
9d742bd4
VS
92522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * util/grub-mkimagexx.c (locate_sections): Support non-standard
9255 ELF section gap.
9256 (load_image): Likewise.
9257
f04a9a21
VS
92582012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * configure.ac: Fix a typo in previous commit.
9261
46cf439c
VS
92622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 Don't add -Wl,-N on Apple platform.
9265
9266 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
9267 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
9268
c4c48c54
VS
92692012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * grub-core/Makefile.core.def (lzma_decompress): Use
9272 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
9273
31a12124
VS
92742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * grub-core/genmod.sh.in: Rewrite the Apple part.
9277
4f3aa1af
VS
92782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
9281 comparison.
9282
7bd8b0c7
VS
92832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * acinclude.m4 (grub_CHECK_PIC): New test.
9286 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
9287
97304d7c
VS
92882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
9291 to avoid the warning.
9292
fb883812
VS
92932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
9296 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
9297 after. All users updated.
9298
a121c964
VS
92992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 Use the common size routine in hostfs so we can read disks as well.
9302
9303 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
9304 (grub_util_get_fd_size): ... this. Return size in bytes.
9305 All users updated.
9306 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
9307 grub_util_get_fd_size.
9308
c66d6410
VS
93092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
9312 Add blocksize retrieval.
9313
dfc8aeb0
VS
93142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9315
9316 * configure.ac: Restore CFLAGS after efiemu check.
9317
403e25a5
VS
93182012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9319
9320 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
9321 Apple bug.
9322
382775d1
VS
93232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
9326
6fd4e6e4
VS
93272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
9330 (grub_cmd_halt): Likewise.
9331
bea359d6
VS
93322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
9335 for local arithmetics.
9336 Break %sp init into 2 instructions.
9337 Add 0 byte at the end.
9338
32eb6ee1
VS
93392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * grub-core/disk/diskfilter.c (read_segment): Initialise err
9342 before loops.
9343
e8377389
VS
93442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
9347 for context.
9348
8cb17de7
VS
93492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9350
9351 * grub-core/disk/ldm.c (make_vg): Init part.name.
9352 (grub_ldm_detect): Silence spurious warning.
9353 (grub_util_is_ldm): Likewise.
9354
595717e6
VS
93552012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
9358 sane value to avoid a spurious warning.
9359
c4b7e588
VS
93602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
9363 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
9364
59824957
VS
93652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
9368 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
9369
70115b99
VS
93702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
9373 hardcoding the relevant info.
9374
56733740
VS
93752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9376
9377 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
9378 missing const qualifiers.
9379 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
9380
43481481
VS
93812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * util/getroot.c [__APPLE__]: Add missing includes.
9384 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
9385
3cb38f01
VS
93862012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * util/grub-mkimage.c (generate_image): Silence spurious warning.
9389
d9dbf11e
VS
93902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
9393 avoid conflicts.
9394
0c42a45d
VS
93952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
9398
46c34eb0
VS
93992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
9402 and grub_file_close call.
9403
99ce1597
VS
94042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 Add LZSS Mach-O support (needed for new xnu kernelcache).
9407
9408 * grub-core/Makefile.core.def (xnu): Add file lzss.c
9409 * grub-core/loader/lzss.c: New file.
9410 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
9411 on Mach-O open failure.
9412 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
9413 Don't free cmdsXX in uncompressedXX is set.
9414 (grub_macho_file): Init new fields.
9415 New argument is_64bit. All users updated.
9416 Handle compressed. Error out if no suitable architecture is found.
9417 Don't close file.
9418 (grub_macho_open): New argument is_64bit. All users updated.
9419 * grub-core/loader/macho32.c: Add defines for new fields.
9420 * grub-core/loader/macho64.c: Likewise.
9421 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
9422 (grub_macho_parse): Handle compressed.
9423 Defer actual processing if compressed.
9424 (grub_macho_cmds_iterate): Decompress if compressed. New argument
9425 "filename". All users updated.
9426 (grub_macho_size): New argument "filename". All users updated.
9427 (grub_macho_get_entry_point): Likewise.
9428 (grub_macho_load): Handle compressed.
9429 * include/grub/macho.h (grub_macho_lzss_header): New struct.
9430 (GRUB_MACHO_LZSS_OFFSET): New define.
9431 (grub_decompress_lzss): New proto.
9432 * include/grub/machoload.h (grub_macho_file): New fields to handle
9433 compressed.
9434 (grub_macho_contains_macho64): Remove proto.
9435 (grub_macho_contains_macho32): Likewise.
9436 * util/grub.d/30_os-prober.in: Use kernel cache if available.
9437
ebd17d6f
VS
94382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
9441
2702b4e4
VS
94422012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Fix make dist.
9445
9446 * Makefile.am (starfield_theme_files): New var.
9447 (starfield_DATA): Use starfield_theme_files.
9448 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
9449 Add bootcheck-related files.
9450 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
9451 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
9452 and font_char_metrics.txt.
9453 * grub-core/Makefile.core.def (kernel): Update extra_dist.
9454 (setjmp): Add lib/ia64/longjmp.S.
9455 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
9456 * po/POTFILES.in: Regenerate.
9457 * po/Rules-swiss: use DISTFILES.common.extra2 and not
9458 DISTFILES.common.extra1.
9459 * util/devicemap.c: Removed.
9460 * grub-core/lib/i386/relocator_backward.S: Likewise.
9461 * util/import_gcry.py: Remove unused files. Add extra_dist for
9462 ChangeLog.
9463
cf1adfdf
VS
94642012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/gettext/gettext.c (grub_mofile_open): Call
9467 grub_gettext_delete_list before changing grub_gettext_max to avoid
9468 running out of array bounds.
9469
94702012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
9471
9472 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
9473 grub_vga_text_init/grub_vga_text_fini.
9474
cf1adfdf 94752012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
9476
9477 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
9478
541d92e9
VS
94792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * configure.ac: Bump to 2.00~beta0.
9482
7931dddf
VS
94832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
9486 missing initialisation.
9487
f1b16fa3
VS
94882012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
9491
83ddae23
VS
94922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 Support v2 xnu boot arguments.
9495
9496 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
9497 New argument fsbfreq_out.
9498 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
9499 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
9500 be used.
9501 * grub-core/loader/machoXX.c (grub_macho_load): New argument
9502 darwin_version.
9503 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
9504 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
9505 (grub_xnu_boot_params): Rename to ...
9506 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
9507 (grub_xnu_boot_params_v2): New struct.
9508
dc693fe6
VS
95092012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
9512 zeroing of CRC field before computing CRC.
9513
5a6e39c2
VS
95142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
9517 Change order of allocations to decrease fragmentation.
9518
6c21f5d7
VS
95192012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
9522
cfe456dc
CW
95232012-02-27 Colin Watson <cjwatson@ubuntu.com>
9524
9525 Use write-combining MTRR to speed up video with buggy BIOSes.
9526
9527 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
9528 (cpuid): New define.
9529 (rdmsr): Likewise.
9530 (wrmsr): Likewise.
9531 (mtrr_base): Likewise.
9532 (mtrr_mask): Likewise.
9533 (grub_vbe_enable_mtrr_entry): New function.
9534 (grub_vbe_enable_mtrr): Likewise.
9535 (grub_vbe_disable_mtrr): Likewise.
9536 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
9537 control off to BIOS.
9538 (grub_video_vbe_init): Fill mtrr.
9539 (grub_video_vbe_fini): Disable mtrr.
9540 (grub_video_vbe_get_info_and_fini): Likewise.
9541 (grub_video_vbe_setup): Enable mtrr.
9542
e3c78337
CW
95432012-02-27 Colin Watson <cjwatson@ubuntu.com>
9544
9545 * include/grub/partition.h (grub_partition_map): Change prototype of
9546 embed to take a maximum value for nsectors.
9547 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
9548 * include/grub/fs.h (grub_fs): Likewise.
9549 * grub-core/partmap/msdos.c (embed_signatures): New array.
9550 (pc_partition_map_embed): Check for and avoid sectors matching any
9551 of the signatures in embed_signatures, up to max_nsectors.
9552 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
9553 returned sector map to max_nsectors.
9554 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
9555 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
9556 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
9557 * util/grub-setup.c (setup): Allow for the embedding area being
9558 split into multiple blocklists. Tell dest_partmap->embed the
9559 maximum number of sectors we care about.
9560
95612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
9564 Specify blocklist_install and reserver_first_sector for all fs.
9565 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
9566 blocklists.
9567
984b973f
VS
95682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 * util/grub-install.in: Clarify strings.
9571 Fix source dir check.
9572
f122e0d6
RL
95732012-02-27 Richard Laager <rlaager@wiktel.com>
9574
9575 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
9576 "zfs" and "fuse.zfs" as synonyms.
9577
071114bb
VS
95782012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * configure.ac: Put platform and target_cpu substitutions back since
9581 they are used for directories.
9582
817e6abc
RL
95832012-02-27 Richard Laager <rlaager@wiktel.com>
95842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * util/grub.d/10_linux.in: Add ZFS-related arguments.
9587 * util/grub.d/20_linux_xen.in: Likewise.
9588
897b7419
RL
95892012-02-27 Richard Laager <rlaager@wiktel.com>
9590
9591 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
9592 with full paths.
9593
a414bd15
RL
95942012-02-27 Richard Laager <rlaager@wiktel.com>
9595
9596 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
9597 unescape.
9598
30ac48c4
VS
95992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 Don't use insecure popen in getroot.
9602
9603 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
9604 (exec_pipe): ... here.
9605 (find_root_devices_from_poolname): Use exec_pipe.
9606
53f13848
VS
96072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 Remove platform and target_cpu replacement.
9610
9611 * configure.ac: Remove platform and target_cpu substitutions.
9612 * tests/util/grub-shell.in: Use modinfo.
9613 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
9614 explicitly.
9615
90cb2803
VS
96162012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 Autodetect platform in grub-install but allow override.
9619
9620 * util/grub-install.in: Autodetect platform. Support --target and
9621 --directory. Read platform from modinfo.sh.
9622
b9136427
VS
96232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 Support btrfs multi-volume probe.
9626
9627 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
9628 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
9629 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
9630 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
9631 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
9632 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
9633 grub_find_root_devices_from_btrfs if on btrfs.
9634
c36e5cd1
VS
96352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 Remove any awareness of *.c util files about target.
9638
9639 * Makefile.util.def (grub-setup): Split to ...
9640 (grub-bios-setup): ... and this.
9641 (grub-sparc64-setup): ... and this.
9642 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
9643 * docs/man/grub-setup.h2m: Split into ...
9644 * docs/man/grub-sparc64-setup.h2m: ... this.
9645 * docs/man/grub-bios-setup.h2m: ... and this.
9646 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
9647 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
9648 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
9649 (grub_target_addr_t): Remove.
9650 (grub_target_size_t): Remove.
9651 (grub_target_ssize_t): Remove.
9652 * util/grub-install.in: Use new grub-*-setup.
9653 * util/grub-mkimagexx.c (Elf_Word): New define.
9654 (Elf_Half): Likewise.
9655 (Elf_Section): Likewise.
9656 (ELF_ST_TYPE): Likewise.
9657 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
9658 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
9659
584b2f8a
VS
96602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Replace grub_target_addr with more appropriate types.
9663
9664 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
9665 grub_target_addr with grub_addr.
9666 * grub-core/commands/iorw.c (grub_cmd_read): Replace
9667 grub_target_addr with grub_port.
9668 (grub_cmd_write): Likewise.
9669 * grub-core/commands/memrw.c (grub_cmd_read): Replace
9670 grub_target_addr with grub_addr.
9671 (grub_cmd_write): Likewise.
9672 * grub-core/video/efi_uga.c (find_line_len): Likewise.
9673
5a0dc6fb
VS
96742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
9677 const qualifier for vendor_guid.
9678
786aff6e
VS
96792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
9682 const qualifier.
9683 (efiemu_memequal): Likewise.
9684 (find_variable): Likewise.
9685
49017b17
VS
96862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 Fix missing console prototype on qemu-mips.
9689
9690 * include/grub/mips/qemu_mips/console.h: New file.
9691
c5988629
MG
96922012-02-27 Matthew Garrett <mjg@redhat.com>
96932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
9696 * include/grub/efi/efi.h: Likewise.
9697 * include/grub/efi/api.h: Add guid for EFI-specified variables.
9698 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
9699 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
9700 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
9701 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
9702 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
9703
e33f8d69
MG
97042012-02-27 Matthew Garrett <mjg@redhat.com>
9705
9706 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
9707
fb312cd9
VS
97082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9709
9710 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
9711 error.
9712
7134247c
VS
97132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * configure.ac: Remove inappropriate use of program_transform_name
9716 on grubdir and bootdir but allow explicit specification of those
9717 variables.
9718
6a313124
VS
97192012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * util/grub-mknetdir.in (grub_prefix): Removed.
9722 (subdir): Use @bootdirname@ and @grubdirname@.
9723
2311c5ca
VS
97242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
9727
7d5d60f7
VS
97282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9729
9730 * po/POTFILES.in: Regenerated.
9731
8151bc82
VS
97322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 Remove improper use of program_transform_name on pkglibrootdir.
9735
9736 * configure.ac (pkglibrootdir): Removed.
9737 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
9738 * util/grub-mkimage.c: Likewise.
9739
b4a6a533
VS
97402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
9743 warning.
9744
668f304f
VS
97452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * util/grub-install.in: Use file identifier if no UUID is available
9748 or user explicitly prompted for it.
9749
665f2341
NP
97502012-02-27 Navdeep Parhar <nparhar@gmail.com>
9751
9752 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
9753 (freebsd_get_zfs): New function.
9754 (grub_freebsd_boot): Pass zfs UUID.
9755 (grub_cmd_freebsd): Set zfs UUID.
9756
8151bc82 97572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
9758
9759 * conf/Makefile.common (platformdir): Base on pkglibdir and not
9760 pkglibrootdir.
9761
e4c498a1
MG
97622012-02-27 Mike Gilbert <floppym@gentoo.org>
9763
9764 Add configure flag to control libzfs integration.
9765
9766 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9767
1e9a9a3f
VS
97682012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9769
9770 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9771 device.
9772 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9773 small devices.
9774
036985b8
VS
97752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9778 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9779 be used on non-modules.
9780
9781 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9782 Rename to grub_boot_init.
9783 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9784 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9785 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9786 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9787 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9788 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9789 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9790 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9791 includes.
9792 (grub_machine_init): Remove empty inits.
9793 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9794 includes.
9795 (grub_machine_init): Remove empty inits.
9796 * grub-core/term/arc/console.c: Remove explicit proto.
9797 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9798 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9799 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9800 grub_at_keyboard_fini.
9801 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9802 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9803 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9804 grub_gfxterm_fini.
9805 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9806 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9807 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9808 grub_vgatext_fini.
9809 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9810 * grub-core/term/serial.c (GRUB_MOD_INIT)
9811 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9812 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9813 grub_serial_fini.
9814 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9815 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9816 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9817 grub_terminfo_fini.
9818 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9819 (GRUB_MOD_FINI): Likewise.
9820 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9821 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9822 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9823 grub_video_radeon_fuloong2e_fini.
9824 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9825 [LOONGSON]: Rename to grub_video_sis315pro_init.
9826 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9827 grub_video_sis315pro_fini.
9828 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9829 [LOONGSON]: Rename to grub_video_sm712_init.
9830 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9831 grub_video_sm712_fini.
9832 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9833 (grub_at_keyboard_fini): Likewise.
9834 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9835 Don't declare grub_{modname}_init.
9836 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9837 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9838 New proto.
9839 (grub_keylayouts_fini) [!EMU]: Likewise.
9840 * include/grub/serial.h (grub_serial_init) [!EMU]:
9841 New proto.
9842 (grub_serial_fini) [!EMU]: Likewise.
9843 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9844 New proto.
9845 (grub_terminfo_fini) [!EMU]: Likewise.
9846 * include/grub/video.h (grub_font_init) [!EMU]:
9847 New proto.
9848 (grub_font_fini) [!EMU]: Likewise.
9849 (grub_gfxterm_init) [!EMU]: Likewise.
9850 (grub_gfxterm_fini) [!EMU]: Likewise.
9851 (grub_video_sm712_init) [!EMU]: Likewise.
9852 (grub_video_sm712_fini) [!EMU]: Likewise.
9853 (grub_video_sis315pro_init) [!EMU]: Likewise.
9854 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9855 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9856 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9857
d5534665
VS
98582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 Make nand a prefix for nand devices.
9861
9862 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9863
10133b5f
VS
98642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9867 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9868
8e307a62
VS
98692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * include/grub/env.h (grub_env_find): Remove prototype.
9872 * grub-core/kern/env.c (grub_env_find): Make static.
9873 (grub_env_set): Remove useless set.
9874
a4c65f34
VS
98752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/kern/i386/realmode.S: Remove useless align.
9878
d87893d5
VS
98792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * include/grub/dl.h (grub_dl_load_file): Don't export.
9882
50159add
VS
98832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9886 grub_dprintf.
9887
b2582b84
VS
98882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9891 grub_errors.
9892 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9893 not reloading whole superblock but only the part which is really needed.
9894 Remove useless grub_errors.
9895 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9896 grub_errors.
9897
e2a83395
VS
98982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 Don't export grub_get_rtc.
9901
9902 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9903 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9904
e7d2a906
VS
99052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9908
6cf1363b
VS
99092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9910
9911 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 9912 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 9913
eece3349
VS
99142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 Remove prio_list.
9917
9918 * include/grub/list.h (grub_prio_list): Removed.
9919 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9920 GRUB_COMMAND_PRIO_MASK.
9921 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9922 GRUB_COMMAND_FLAG_ACTIVE.
9923 (grub_prio_list_insert): Removed.
9924 (grub_prio_list_remove): Likewise.
9925 (GRUB_AS_PRIO_LIST): Likewise.
9926 (GRUB_AS_PRIO_LIST_P): Likewise.
9927 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9928 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9929 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9930 * grub-core/kern/command.c (grub_register_command_prio): Inline
9931 the prio_list code.
9932 (grub_unregister_command): Likewise.
9933
94f064b4
VS
99342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 Fix interrupt mixup from previous commit.
9937
9938 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9939 (grub_realidt): New var.
9940 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9941 Load idt.
9942 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9943 New declaration.
9944 (grub_relocator16_boot): Set grub_relocator16_idt.
9945 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9946 (LOCAL(realidt)): ... this.
9947 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9948 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9949 (grub_realidt): New variable.
9950
27317084
VS
99512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9954 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9955 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9956 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9957 Gettextize.
9958 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9959 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9960 * po/POTFILES.in: Regenerate.
9961
47b40053
VS
99622012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9965 errors.
9966
2b343101
VS
99672012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9970 \0.
9971 (add_length): Likewise.
9972
ff27c3dd
LK
99732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
99742012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9975
9976 GDB serial and backtrace support.
9977
9978 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9979 (prot_to_real): Likewise.
9980 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9981 * grub-core/Makefile.core.def (backtrace): New module.
9982 (gdb): Likewise.
9983 * grub-core/gdb/cstub.c: New file.
9984 * grub-core/gdb/gdb.c: Likewise.
9985 * grub-core/gdb/i386/idt.c: Likewise.
9986 * grub-core/gdb/i386/machdep.S: Likewise.
9987 * grub-core/gdb/i386/signal.c: Likewise.
9988 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 9989 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
9990 * include/grub/backtrace.h: Likewise.
9991 * include/grub/gdb.h: Likewise.
9992 * include/grub/i386/gdb.h: Likewise.
9993
99942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
9995
9996 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9997 New function.
9998 (add_length): Likewise.
9999 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
10000 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
10001 proto.
10002 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
10003 __argp_get_display_len.
10004
ff27c3dd 100052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
10006
10007 $"..." support in scripts.
10008
10009 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
10010 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
10011 * grub-core/script/yylex.l: Likewise.
10012 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
10013 value.
10014
ff27c3dd 100152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
10016
10017 * gentpl.py: Remove obsolete pkglib_DATA handling.
10018
ff27c3dd 100192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
10020
10021 Don't transform PACKAGE_TARNAME following a discussion on autoconf
10022 mailing list.
10023
10024 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
10025 * util/grub-kbdcomp.in: Likewise.
10026 * util/grub-mkconfig.in: Likewise.
10027 * util/grub-mkconfig_lib.in: Likewise.
10028 * util/grub-mknetdir.in: Likewise.
10029 * util/grub-mkrescue.in: Likewise.
10030 * util/grub-mkstandalone.in: Likewise.
10031 * util/grub-reboot.in: Likewise.
10032 * util/grub-set-default.in: Likewise.
10033 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10034
ff27c3dd 100352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
10036
10037 Remove GRUB_PREFIX.
10038
10039 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
10040 * util/grub.d/00_header.in: Compute prefix in the only place it's still
10041 used for backward compatibility.
10042
ff27c3dd 100432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
10044
10045 Add new all_video module.
10046
10047 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
10048 * grub-core/Makefile.core.def (all_video): New module.
10049 * grub-core/genmoddep.awk: Generate dependency of all_video from
10050 video.lst.
10051 * grub-core/lib/fake_module.c: New file.
10052 * grub-core/normal/main.c (features): Add feature_all_video_module.
10053 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
10054 don't do explicit search again.
47454da5 10055 insmod all_video in load_video if available.
22c7ce85 10056
ff27c3dd 100572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
10058
10059 Another round of string clarification and adding TRANSLATORS comments.
10060
ff27c3dd 100612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
10062
10063 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
10064
ff27c3dd 100652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
10066
10067 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
10068 to grub_ssize_t.
10069 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
10070 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
10071
ff27c3dd 100722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
10073
10074 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
10075 trailing newline implicitly. All users updated.
10076
ff27c3dd 100772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
10078
10079 Implement serial on IEEE1275 and EFI.
10080
10081 * docs/grub.texi (Platform-specific limitations): Fix the columen video
10082 on emu. Mention arc and emu as the only platforms without serial
10083 support.
10084 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
10085 ieee1275 platforms.
10086 * grub-core/term/efi/serial.c: New file.
10087 * grub-core/term/ieee1275/serial.c: Likewise.
10088 * grub-core/term/serial.c (grub_serial_find): Disable direct port
10089 specification if no ns8250 driver is available.
10090 (grub_cmd_serial): Likewise.
10091 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
10092 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
10093 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
10094 (grub_efi_parity_type_t): New type.
10095 (grub_efi_stop_bits_t): Likewise.
10096 (grub_efi_serial_io_interface): New struct.
10097 * include/grub/serial.h (grub_serial_port): Make 'broken' field
10098 available for all interfaces.
10099 Add EFI and IEEE1275 fields.
10100 (grub_ofserial_init): New proto.
10101 (grub_efiserial_init): Likeiwse.
10102 * util/grub.d/00_header.in: Don't check for the presence of serial
10103 module.
10104
ff27c3dd 101052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
10106
10107 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
10108 name as if it was an alias.
10109
114076ef
VS
101102012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/commands/lsacpi.c (options): Fix typo.
10113
6a656b0e
VS
101142012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 Convert grub-emu to argp.
10117
10118 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
10119 emu.
10120 * util/argp_common.c: Rename to ...
10121 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
10122 Add missing includes.
10123 * grub-core/kern/emu/main.c: Convert to argp.
10124 * po/POTFILES.in: Regenerate.
10125 * util/grub-install.in (usage): Make first letter lowcase in messages
10126 for uniformity.
10127 * util/grub-setup.c (options): Likewise.
10128
1e3f8ae8
VS
101292012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
10132 Put back accidently commented-out code.
10133
ed167a80
VS
101342012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
10137 loop check using Brent algorithm.
10138 (grub_hfsplus_btree_search): Likewise.
10139
6753c0ec
VS
101402012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * util/grub-install.in: Fix usage of wrong device for PreP install.
10143
4e27343f
VS
101442012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 * conf/Makefile.common (CFLAGS_GNULIB): Add
10147 -Wno-unsafe-loop-optimizations.
10148 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
10149 on tools.
10150 * grub-core/commands/legacycfg.c: Add pragma to skip
10151 -Wunsafe-loop-optimizations.
10152 (check_password_md5_real): Fix loop counter type.
10153 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
10154 reading.
10155 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
10156 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
10157 loop condition.
10158 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
10159 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
10160 * grub-core/net/net.c (grub_net_route_address): Add safety loop
10161 condition.
10162 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
10163 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
10164 avoid possible infinite loops.
10165 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
10166 and -Wunsafe-loop-optimizations.
10167 * grub-core/script/yylex.l: Likewise.
10168 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
10169 (print_glyphs): Avoid infinite loops.
10170 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
10171
697f18b0
GS
101722012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
10173
10174 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
10175 to avoid infinite loop.
10176 (disp_acpi_rsdt_table): Likewise.
10177
274416e8
VS
101782012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * grub-core/font/font.c (grub_font_load): Add support for default
10181 path for fonts ($prefix/fonts).
10182 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
10183 for checking if string is a path.
10184 * grub-core/normal/main.c (features): Add feature_default_font_path.
10185 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
10186 * util/grub.d/00_header.in: Use default directory if possible.
10187 * util/grub-install.in: Install unicode.pf2.
10188
b3e08622
VS
101892012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
10192 * po/Rules-swiss: New file.
10193 * po/swiss.sed: Likewise.
10194
fe42ce09
VS
101952012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
10196
10197 * grub-core/fs/btrfs.c (find_device): Fix typos.
10198 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
10199 * util/grub-mkrelpath.c (argp_parser): Likewise.
10200 Reported by: Yuri Chornoivan.
10201
72f1d065
DO
102022012-02-23 Dalet Omega <daletomega@gmail.com>
10203
10204 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
10205 for usual informative messages.
10206
c5884973
DO
102072012-02-23 Dalet Omega <daletomega@gmail.com>
10208
10209 Starfield theme.
10210
10211 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
10212 * conf/Makefile.common: Define starfielddir.
10213 * configure.ac: Configure starfield.
10214 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
10215 * themes/starfield/README: Likewise.
10216 * themes/starfield/blob_w.png: Likewise.
10217 * themes/starfield/boot_menu_c.png: Likewise.
10218 * themes/starfield/boot_menu_e.png: Likewise.
10219 * themes/starfield/boot_menu_n.png: Likewise.
10220 * themes/starfield/boot_menu_ne.png: Likewise.
10221 * themes/starfield/boot_menu_nw.png: Likewise.
10222 * themes/starfield/boot_menu_s.png: Likewise.
10223 * themes/starfield/boot_menu_se.png: Likewise.
10224 * themes/starfield/boot_menu_sw.png: Likewise.
10225 * themes/starfield/boot_menu_w.png: Likewise.
10226 * themes/starfield/slider_c.png: Likewise.
10227 * themes/starfield/slider_n.png: Likewise.
10228 * themes/starfield/slider_s.png: Likewise.
10229 * themes/starfield/src/blob_nw.xcf: Likewise.
10230 * themes/starfield/src/bootmenu/: Likewise.
10231 * themes/starfield/src/bootmenu/center.xcf: Likewise.
10232 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
10233 * themes/starfield/src/bootmenu/side.xcf: Likewise.
10234 * themes/starfield/src/slider_c.xcf: Likewise.
10235 * themes/starfield/src/slider_n.xcf: Likewise.
10236 * themes/starfield/src/slider_s.xcf: Likewise.
10237 * themes/starfield/src/terminalbox/: Likewise.
10238 * themes/starfield/src/terminalbox/center.xcf: Likewise.
10239 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
10240 * themes/starfield/src/terminalbox/side.xcf: Likewise.
10241 * themes/starfield/starfield.png: Likewise.
10242 * themes/starfield/terminal_box_c.png: Likewise.
10243 * themes/starfield/terminal_box_e.png: Likewise.
10244 * themes/starfield/terminal_box_n.png: Likewise.
10245 * themes/starfield/terminal_box_ne.png: Likewise.
10246 * themes/starfield/terminal_box_nw.png: Likewise.
10247 * themes/starfield/terminal_box_s.png: Likewise.
10248 * themes/starfield/terminal_box_se.png: Likewise.
10249 * themes/starfield/terminal_box_sw.png: Likewise.
10250 * themes/starfield/terminal_box_w.png: Likewise.
10251 * themes/starfield/theme.txt: Likewise.
10252
17d73325
VS
102532012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * util/grub.d/00_header.in: Add missing export theme.
10256
dbebaf92
VS
102572012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10258
10259 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
10260 already included.
10261 Reported by: Eren D.
10262
3d68bffb
VS
102632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * conf/Makefile.common (grubdatadir): Removed.
10266 (Makefile.am): Move eveything grubdata to pkgdata.
10267
4b59234d
VS
102682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * grub-core/commands/acpihalt.c (get_sleep_type):
10271 Remove unused variable.
10272
463dcadc
VS
102732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
10276 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
10277 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
10278 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
10279 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
10280 i18n with gettext no-op.
10281 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
10282 GRUB_ACPI_OPCODE_STRING_CONST.
10283 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
10284 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
10285
e5b90c82
VS
102862012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 * po/POTFILES.in: Regenerate.
10289
2a704ca9
VS
102902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
10293 -Wno-error=missing-noreturn.
10294
84f9d341
VS
102952012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
10298 condition to avoid possibly infinite loops.
10299 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
10300 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
10301
d46683f9
VS
103022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
10305 condition to avoid possibly infinite loops.
10306
c44866b2
VS
103072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10308
10309 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
10310 on show_error.
10311
96790539
VS
103122012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
10315
1ba7e295
VS
103162012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
10319
21ffe8f1
VS
103202012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * util/bin2h.c (usage): Add missing attribute noreturn.
10323
0ccb6b3c
VS
103242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
10327 if the size isn't divisible by 512.
10328
b00d7fb6
VS
103292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 Make list_push and list_remove functions rather than inline functions
10332 to decrease size and avoid aliasing violations.
10333
10334 * include/grub/list.h (grub_list_push): Move to ...
10335 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
10336 * include/grub/list.h (grub_list_remove): Move to ...
10337 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
10338
9d369087
VS
103392012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
10342 and -Wunused-result.
10343
af0250d9
VS
103442012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
10347 Reported by: Seth Goldberg
10348
aad32b14
VS
103492012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
10352
ac96441c
ST
103532012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10354
10355 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
10356 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
10357 command line.
10358 * docs/grub.texi (Simple configuration): Document
10359 GRUB_CMDLINE_GNUMACH.
10360
103612012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
10362
10363 * conf/Makefile.common (platform_SCRIPTS): New variable.
10364 (platform_PROGRAMS): Likewise.
10365 * gentpl.py: Mark *,module and *.image for install.
10366 * grub-core/gdb_grub.in: Add a notice of expected environment.
10367 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
10368 (gmodule.pl): Likewise.
10369
ac96441c 103702012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
10371
10372 Replace grub_checkkey with grub_getkey_noblock.
10373
10374 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
10375 (grub_getkey_noblock): ... this. All users updated.
10376
ac96441c 103772012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
10378
10379 * grub-core/kern/emu/console.c: Move to ...
10380 * grub-core/term/emu/console.c: ...here.
10381 (grub_ncurses_getkey): Fix return value if no key is detected.
10382
e51b5666
VS
103832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
10386 (grub_unit_test_fini): Likewise.
10387 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
10388
103892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * include/grub/test.h (GRUB_UNIT_TEST)
10392
d9a62292
VS
103932012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * grub-core/script/execute.c (grub_script_break): Clarify logic.
10396 Better error handling.
10397 (grub_script_return): Likewise.
10398 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
10399
77c9182f
VS
104002012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
10403 rimplicit redifinition.
10404
edb13cf9
VS
104052012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
10408 GRUB.
10409
a9e9dc7c
VS
104102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
10413 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
10414 prompt here.
10415
b4ba8e02
VS
104162012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
10419 as GRUB_ERR_BUG. Don't malloc if no device is available.
10420
dded5540
VS
104212012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
10424 Mark calling with invalid term as GRUB_ERR_BUG.
10425
0cf69874
VS
104262012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
10429 packets rather than raising an error.
10430
59bfe502
VS
104312012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
10434 in if.
10435
db5fc596
VS
104362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
10439 diagnostic to dprintf.
10440 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10441
e4b7f404
VS
104422012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
10445 device name.
10446
e7b02f9e
VS
104472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
10450 (grub_ntfs_iterate_dir): Likewise.
10451
0331e102
VS
104522012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 Efiemu stylistic fixes and gettext.
10455
10456 * grub-core/efiemu/i386/loadcore32.c
10457 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
10458 * grub-core/efiemu/i386/loadcore64.c
10459 (grub_arch_efiemu_relocate_symbols64): Likewise.
10460 * grub-core/efiemu/i386/pc/cfgtables.c
10461 (grub_machine_efiemu_init_tables): Likewise.
10462 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
10463 (grub_efiemu_loadcore_initXX): Add a filename argument.
10464 All users updated.
10465 Improved error message.
10466 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
10467 Add a filename argument.
10468 All users updated.
10469 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
10470 Reclassify double relocation as GRUB_ERR_BUG.
10471
306fc074
VS
104722012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
10475 handling.
10476
794d8ef2
VS
104772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
10480 on partition.
10481
104822012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
10483
10484 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
10485
794d8ef2 104862012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
10487
10488 Improve string. Gettextize.
10489
78dde88e
VS
104902012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10491
10492 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
10493 utils.
10494 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
10495
4786a90f
VS
104962012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
10499 [GRUB_UTIL]: New function.
10500 (insert_array) [GRUB_UTIL]: Store partmaps.
10501 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
10502 partmaps.
10503 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
10504 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
10505 (probe_abstraction): Print diskfilter and not raid.
10506 Reported by: Lennart Sorensen
10507
0b6225bd
VS
105082012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10509
10510 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
10511 * util/grub-mkimagexx.c (MASK3): New define.
10512 (add_value_to_slot_20b): Use MASK3.
10513 (add_value_to_slot_21): Likewise.
10514 (relocate_addresses): Fix format specification.
10515 (load_image): Explicitly init symtab_section.
10516
b055f8f6
VS
105172012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
10520 (grub_util_biosdisk_get_grub_dev): Fix format specification.
10521
b77c2fb7
VS
105222012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
10525 on powerpc.
10526 Reported by: Lennart Sorensen
10527
e3ec28ab
VS
105282012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10529
10530 * gentpl.py: Add missing license header.
10531 * docs/grub.texi: Update copyright year.
10532
c8d9ead6
GS
105332012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10534
10535 Source grub-mkconfig_lib from the build directory at build time.
10536 Suggested by: Vladimir Serbinenko.
10537
10538 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
10539 * util/grub-install.in: Define pkgdatadir if not already set, and source
10540 grub-mkconfig_lib from there.
10541 * util/grub-kbdcomp.in: Likewise.
10542 * util/grub-mkconfig.in: Likewise.
10543 * util/grub-mknetdir.in: Likewise.
10544 * util/grub-mkrescue.in: Likewise.
10545 * util/grub-mkstandalone.in: Likewise.
10546 * util/grub-reboot.in: Likewise.
10547 * util/grub-set-default.in: Likewise.
10548 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10549
ebcecdf1
VS
105502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10551
10552 Increase warning level.
10553
10554 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
10555 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
10556 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
10557 (TARGET_CFLAGS): Likewise.
10558 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
10559 * grub-core/Makefile.core.def (decompressor_xz): Add
10560 -Wno-unreachable-code.
10561 (normal): Add -Wno-redundant-decls.
10562 (xzio): Add -Wno-unreachable-code.
10563 (lzopio): Add -Wno-redundant-decls -Wno-error.
10564 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
10565 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
10566 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
10567 * grub-core/kern/dl.c: Add exception to -Wcast-align.
10568 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
10569 * grub-core/kern/i386/coreboot/init.c: Add exception to
10570 -Wsuggest-attribute=noreturn.
10571 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
10572 * grub-core/kern/ia64/dl_helper.c: Likewise.
10573 * grub-core/kern/mips/dl.c: Likewise.
10574 * grub-core/kern/sparc64/dl.c: Likewise.
10575 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
10576 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
10577 (memcmp): Likewise.
10578 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
10579 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
10580 * grub-core/loader/mips/linux.c: Likewise.
10581 * grub-core/loader/multiboot_elfxx.c: Likewise.
10582 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
10583 * grub-core/video/sm712.c: Add exception to -Wcast-align.
10584 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
10585 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
10586 fixme.
10587 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10588 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
10589 Fix prototype.
10590
37bb97fe
VS
105912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
10594 address.
10595
29a3550b
VS
105962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10599 Avoid improper use of strings.
10600 (grub_cmd_legacy_initrdnounzip): Likewise.
10601
dfdffd0d
VS
106022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * include/grub/emu/misc.h (grub_util_warn): Add missing format
10605 attribute.
10606 (grub_util_info): Likewise.
10607 (grub_util_error): Likewise.
10608
102fae4a
VS
106092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
10612 * util/grub-fstest.c (fstest): Likewise.
10613
7e94d044
VS
106142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10615
10616 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
10617 (grub_md_sha512_real): Likewise.
10618 (grub_util_get_geli_uuid): Likewise.
10619 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
10620 (grub_util_biosdisk_open): Fix format specification.
10621 Respect format security.
10622 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
10623 (xrealloc): Likewise.
10624 (xasprintf): Likewise.
10625
5ebd9769
VS
106262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10627
10628 * util/import_gcry.py: Include grub/crypto.h in init.c.
10629
495fc8c1
VS
106302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
10633 (generate_image): Make prefix a const char *.
10634 Fix format specifications. Respect format security.
10635 Avoid void * arithmetics.
10636 Avoid shadowing.
10637 (argp_parser): Remove unused variable. Respect format security.
10638 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
10639 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
10640 (count_funcs): Remove unused variable.
10641 (relocate_addresses): Fix format specification.
10642 Disable x86-64 with elf32. Remove unused variables.
10643 (add_fixup_entry): Avoid shadowing.
10644 (make_reloc_section): Fix format specification.
10645 Use assert.
10646 (locate_sections): Fix format specifications.
10647 (load_image): Avoid shadowing.
10648
043c2ea3
VS
106492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
10652 Fix format specifications. Respect format security.
10653 Don't translate already translated grub_errmsg.
10654 (argp_parser): Remove unused variable
10655
3ec65a81
VS
106562012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10657
10658 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
10659
a4d9fe4a
VS
106602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
10663 (main): Likewise. Use xmalloc. Respect format security.
10664
15b81d49
VS
106652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
10668 a const char *.
10669 (argp_parser): Remove unused variable.
10670
31731fc0
VS
106712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
10674 (add_pixel): Make static.
10675 (add_font): Likewise.
10676 (write_string_section): Make name and str a const char *.
10677 (write_be16_section): Make name a const char *.
10678 (print_glyphs): Make static.
10679 (write_font_ascii_bitmap): Likewise.
10680 (write_font_width_spec): Likewise.
10681 (write_font_pf2): Likewise.
10682 (argp_parser): Remove unused variable.
10683 Respect format security.
10684 (main): Avoid shadowing. Respect format security.
10685
0809527b
VS
106862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * util/grub-editenv.c (argp_parser): Make static.
10689 (create_envblk_file): Use xmalloc.
10690 (open_envblk_file): Likewise.
10691 Resepect format security.
10692 (set_variables): Respect format security.
10693
45b0c8b7
VS
106942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10695
10696 * util/getroot.c (grub_find_device): Respect format security.
10697 (get_mdadm_uuid): Remove unused variable.
10698 (grub_util_pull_device): Dont call gettext on already translated
10699 grub_errmsg.
10700 (find_system_device): Remove unused variable.
10701 (grub_util_get_grub_dev): Likewise.
10702 (grub_make_system_path_relative_to_its_root): Respect format security.
10703
1b024b4e
VS
107042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * util/grub-fstest.c (execute_command): Make first argument
10707 a const char *.
10708 (read_file): Avoid shadowing.
10709 Reuse underlying error message if device open fails.
10710 (cmd_cmp): Respect format security.
10711 (root): Make const char *.
10712 (fstest): Remove args argument and use global copy.
10713 Respect format security.
10714 (argp_parser): Make static.
10715 (main): Make default_root const char *.
10716
5d1d4e28
VS
107172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 * util/grub-mount.c (root): Make const char *.
10720 (execute_command): Make first argument a const char *.
10721 (fuse_init): Respect format security.
10722 (argp_parser): Make static. Remove unused variable.
10723 (main): Make default_root a const char *.
10724 Respect format security.
10725
36eb7379
VS
107262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 * util/grub-probe.c (probe): Don't call gettext on already translated
10729 grub_errmsg.
10730 Remove unused variables.
10731 (argp_parser): Remove unused variable.
10732
76fb2ea9
VS
107332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 * util/grub-script-check.c (argp_parser): Remove unused variable.
10736 (main): Rename read to curread to avoid shadowing.
10737
56c98584
VS
107382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 * util/misc.c (grub_util_write_image_at): Fix format specification.
10741 (grub_util_write_image): Likewise.
10742 (grub_script_execute_argument_to_string): Removed (unused).
10743 (grub_script_execute_menuentry): Likewise.
10744 (grub_putchar): Likewise.
10745
164ebb48
VS
107462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
10749 (FUNCTION) [GRUB_UTIL]: Likewise.
10750 (VARIABLE) [GRUB_UTIL]: Likewise.
10751
44318d61
VS
107522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
10755 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
10756
31a26002
VS
107572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
10760 buffer.
10761
107622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10765 (LzmaEnc_SaveState): Removed (unused).
10766 (LzmaEnc_RestoreState): Likewise.
10767 (LzmaEnc_InitPriceTables): Made static.
10768 (LzmaEnc_Construct): Likewise.
10769 (LzmaEnc_FreeLits): Likewise.
10770 (LzmaEnc_Destruct): Likewise.
10771 (LzmaEnc_Init): Likewise.
10772 (LzmaEnc_InitPrices): Likewise.
10773 (LzmaEnc_Finish): Likewise.
10774 (LzmaEnc_PrepareForLzma2): Removed (unused).
10775 (LzmaEnc_MemPrepare): Likewise.
10776 (LzmaEnc_GetNumAvailableBytes): Likewise.
10777 (LzmaEnc_GetCurBuf): Likewise.
10778 (LzmaEnc_CodeOneMemBlock): Likewise.
10779
6fa67967
VS
107802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10783 (grub_util_ldm_embed): Likewise.
10784
9a7428e6
VS
107852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 * util/grub-editenv.c (print_var): Rename name to varname to
10788 avoid shadowing.
10789 (main): Rename index to curindex to avoid shadowing.
31a26002 10790 Make filename a const char *.
9a7428e6 10791
4f96abd1
VS
107922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10795 to arg_getline to avoid shadowing.
10796
44d10dad
VS
107972012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10800 disk_ to avoid shadowing.
10801
340ba63e
VS
108022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10805 curindex to avoid shadowing.
10806 Make static.
10807 (MatchFinder_GetNumAvailableBytes): Make static.
10808
22965bce
VS
108092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10812 avoid shadowing.
10813
7b5784d4
VS
108142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10817 argument from encrypt to do_encrypt to avoid shadowing.
10818
6f48ca01
VS
108192012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10822 incorrect nesting of #if's.
10823
a4ea2dff
VS
108242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10827 checks which are always false on some platforms.
10828 (grub_cmd_lsacpi): Likewise.
10829 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10830 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10831 Likewise.
10832
def9fc1b
VS
108332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10836 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10837
a67b2a04
VS
108382012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10841 re_dfa_t to avoid breaking alignment invariants.
10842 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10843 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10844
44c6828d
VS
108452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10848 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10849
bebe0dd0
VS
108502012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10853 Fix declaration.
10854
a9cdb3cf
VS
108552012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10858 conserve alignment invariants.
10859 (grub_ehci_ehcc_read16): Likewise.
10860 (grub_ehci_oper_read32): Likewise.
10861 (grub_ehci_oper_write32): Likewise.
10862 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10863 Conserve alignment invariants.
10864
ccc3b1b8
VS
108652012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10868 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10869 declarations.
10870
987fbd95
VS
108712012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10874 Remove unused variable.
10875
0df363f3
VS
108762012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10879 Remove set in if.
10880
b2c0c4a6
VS
108812012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10882
10883 * include/grub/net.h: Remove double declarations.
10884
690c531f
VS
108852012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10886
10887 Remove "payload" command in ia64 Linux loader since I couldn't
10888 find any evidence of it being used for anything.
10889 Replace "relocate" command with an environment variable
10890
10891 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10892 fields.
10893 (ia64_boot_payload): Removed.
10894 (last_payload): Likewise.
10895 (RELOCATE_OFF): Likewise.
10896 (RELOCATE_ON): Likewise.
10897 (RELOCATE_FORCE): Likewise.
10898 (relocate): Likewise.
10899 (free_pages): Don't free payloads.
10900 (grub_load_elf64): Use common error messages.
10901 Use "linux_relocate" variable.
10902 Increase the space after boot_params.
10903 (grub_cmd_payload): Removed.
10904 (grub_cmd_relocate): Likewise.
10905 (grub_cmd_fpswa): Improve messages.
10906 (cmd_payload): Removed.
10907 (cmd_relocate): Likewise.
10908 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10909 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10910
01783768
VS
109112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 Convert UHCI to DMA framework.
10914
10915 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10916 (grub_uhci_pci_iter): Fill new members
10917 (grub_alloc_td): Use P2V and V2P functions.
10918 (grub_free_queue): Likewise.
10919 (grub_alloc_qh): Likewise.
10920 (grub_uhci_setup_transfer): Likewise.
10921 (grub_uhci_check_transfer): Likewise.
10922
43206939
VS
109232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10926 Remove assignment in if while on it.
10927
571e140e
VS
109282012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10929
10930 * util/grub-mkstandalone.in: Fix modules directory.
10931
a9d96eeb
VS
109322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10935 on i386-pc target.
10936 (argp_parser): Accept "auto" as compression specification.
10937
e4e37e8d
VS
109382012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 Fix `help' with unloaded modules.
10941
10942 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10943 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10944 (grub_dyncmd_dispatcher): Small stylistic fix.
10945 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10946 explicit help is requested.
10947
e1ea3ade
VS
109482012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10951 Explicitly init restart while on it.
10952
27556881
VS
109532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10954
10955 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10956 uninited variable.
10957
d65f6b36
VS
109582012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * util/grub-mknetdir.in: Use . rather than source for POSIX
10961 compatibility.
10962
0a1e473c
VS
109632012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10964
10965 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10966
ce6647c8
VS
109672012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10970 variable.
10971
66747894
VS
109722012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10973
10974 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10975 without quotes.
10976
71645f6e
VS
109772012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10980
0e1c1f61
VS
109812012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10984 iteration of partitions.
10985
9c4b5c13
VS
109862012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 Improve gettext support. Stylistic fixes and error handling fixes while
10989 on it.
10990
215c90cb
VS
109912012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10994 part. Instead setup the correct stack in RM.
10995 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10996 for stack.
10997 * include/grub/i386/relocator_private.h: New file.
10998
b5c1f9bf
VS
109992012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
11002 argument.
11003 * util/grub-fstest.c (options): Add missing DEVICE part.
11004
b525fd83
VS
110052012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 Clarify and unify messages.
11008
11009 * grub-core/commands/hashsum.c (options): Unify messages.
11010 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
11011 literal-only message as translatable.
11012 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
11013 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
11014 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
11015 commands.
11016 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
11017 key, not the key used to unlock. Clarify what it's used for.
11018 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
11019 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
11020 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
11021 * util/grub-editenv.c (options): Unify "verbose" message.
11022 * util/grub-fstest.c (read_file): Unify error message.
11023 (fstest): Add quotes around commands.
11024 (options): Unify "verbose" message.
11025 * util/grub-install.in: Add quotes around variable name.
11026 * util/grub-kbdcomp.in: Unify error message.
11027 * util/grub-mkfont.c (main): Likewise.
11028 * util/grub-mkrescue.in: Likewise.
11029 * util/grub-mklayout.c (options): Unify "verbose" message.
11030 * util/grub-mkstandalone.in: Unify help and verbose messages.
11031 * util/grub-mount.c (options): Unify "verbose" message.
11032 * util/grub-probe.c (options): Likewise.
11033 * util/grub-script-check.c (options): Likewise.
11034 * util/grub-setup.c (setup): Unify no-terminator message.
11035 (options): Use DEVICE and not DEV.
11036 Unify "verbose" message.
11037 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
11038
0ae70393
VS
110392012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 Improve and unify messages.
11042
11043 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
11044 name. All users updated.
11045 Print filename in error.
11046 (read_device_map): Print filename in error.
11047 * util/getroot.c (grub_guess_root_devices): Print filename in error.
11048 (grub_util_get_os_disk): Likewise.
11049 (grub_util_biosdisk_get_grub_dev): Likewise.
11050 (grub_util_check_block_device): Likewise.
11051 (grub_util_check_char_device): Likewise.
11052 (grub_make_system_path_relative_to_its_root): Likewise.
11053 * util/grub-editenv.c (create_envblk_file): Likewise.
11054 (open_envblk_file): Likewise.
11055 (write_envblk): Likewise.
11056 * util/grub-fstest.c (cmd_cp): Likewise.
11057 (cmd_cat): Likewise.
11058 (cmd_cmp): Likewise.
11059 * util/grub-menulst2cfg.c (main): Likewise.
11060 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
11061 (write_font_width_spec): Likewise.
11062 (write_font_pf2): Likewise.
11063 * util/grub-mkimage.c (generate_image): New argument outname.
11064 All users updated.
11065 Remove unreacheable message.
11066 (options): Unify messages.
11067 (help_filter): Likewise.
11068 * util/grub-mklayout.c (usage): Removed (unused).
11069 (main): Print filename in error.
11070 * util/grub-mkrescue.in: Fix wrong quoting.
11071 * util/grub-setup.c (setup): Print filename in error.
11072 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
11073 (check_sas): Likewise.
11074 * util/misc.c (grub_util_get_fp_size): Removed.
11075 (grub_util_get_image_size): Print filename in error.
11076 (grub_util_read_at): Removed.
11077 (grub_util_read_image): Print filename in error.
11078 (grub_util_load_image): Likewise.
11079 (grub_util_write_image_at): New argument filename. All users updated.
11080 Print filename in error.
11081 (grub_util_write_image): New argument filename. All users updated.
11082 Print filename in error.
11083 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
11084 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
11085
0a96117d
VS
110862012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * grub-core/Makefile.core.def (pxechain): New module.
11089 * grub-core/loader/i386/pc/pxechainloader.c: New file.
11090 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
11091 function.
11092 (grub_pc_net_config_real): Use grub_pxe_get_cached.
11093 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
11094
aca002f7
VS
110952012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
11098 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
11099 * include/grub/err.h (grub_error_saved): New struct.
11100 (grub_errmsg): Make array size explicit.
11101 * include/grub/misc.h (grub_error_save): New function.
11102 (grub_error_load): Likewise.
11103 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
11104 (grub_error_push): Update `errno' member name.
11105 (grub_error_pop): Likewise
11106 * grub-core/net/tftp.c (tftp_data): New member save_err.
11107 (tftp_receive): Save error.
11108 (tftp_open): Restore error.
11109
a51dab13
VS
111102012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
11113 to real mode down to execute A20-related code in protected mode as
11114 intended.
11115
eb6e6649
GS
111162012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
11117
11118 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
11119 NULL when the argument `level' has an unexpected value.
11120
92cd0f6e
VS
111212012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 Move platform-dependent files from $prefix to $prefix/$platform.
11124
11125 * config.h.in (GRUB_TARGET_CPU): New definition.
11126 (GRUB_PLATFORM): Likewise.
11127 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
11128 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
11129 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
11130 * grub-core/kern/dl.c (grub_dl_load): Likewise.
11131 * grub-core/normal/autofs.c (read_fs_list): Likewise.
11132 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
11133 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
11134 * grub-core/normal/term.c (read_terminal_list): Likewise.
11135 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
11136 $prefix/locale.
11137 (grub_gettext_init_ext): Likewise.
11138 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
11139 grub_platform.
11140 * util/grub-install.in: Update directories.
11141 * util/grub-mknetdir.in: Likewise.
11142 * util/grub-mkrescue.in: Likewise.
11143
db606889
VS
111442012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
11147 grub_error framework. All users updated.
11148
c39992a4
VS
111492012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
11152 lists (by always binsearching), improve caching (cache strings
11153 used for binsearch, not only results), improve
11154 maintainability (by using more structured binary search) and correct
11155 error handling.
11156
1e5ec32f
VS
111572012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 * grub-core/script/execute.c (grub_script_return): Fix warning.
11160
ac576cde
VS
111612012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * grub-core/script/execute.c (grub_script_return): Fix potential
11164 NULL-dereference.
11165 Reported by: Jim Meyering.
11166
498453f6
VS
111672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 * po/POTFILES.in: Regenerate.
11170 * util/grub-install.in: Gettextize the strings missed in first pass.
11171
8be63f2e
VS
111722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11173
11174 * Makefile.util.def (grub-mkdevicemap): Removed.
11175 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
11176 * include/grub/util/deviceiter.h: Removed.
11177 * util/deviceiter.c: Likewise.
11178 * util/getroot.c (grub_util_get_os_disk): New function.
11179 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
11180 replacement for EFI.
11181 * util/grub-mkdevicemap.c: Removed.
11182 * util/grub-probe.c (probe): Handle PRINT_DISK.
11183 (argp_parser): Handle -t disk.
11184
8e1e4e39
VS
111852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11186
11187 * util/grub-mkfont.c: Migrate to argp.
11188 * util/grub-mklayout.c: Likewise.
11189 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11190 * util/grub-mkrelpath.c: Likewise.
11191 * util/grub-probe.c: Likewise.
11192 * util/grub-script-check.c: Likewise.
11193
4459819a
VS
111942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * util/grub-reboot.in: Add missing datarootdir.
11197 Add missing newline.
11198 * util/grub-set-default.in: Add missing datarootdir.
11199 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
11200 * util/grub-mkrescue.in: Likewise.
11201
f65741c7
VS
112022012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
11205
c1a33466
VS
112062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * util/grub-kbdcomp.in: Add decent help and gettextize.
11209 * docs/man/grub-kbdcomp.h2m: New file.
11210
c76899a0
VS
112112012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11212
11213 Migrate grub-mkimage.c to argp.
11214
11215 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
11216 (grub-setup): Likewise.
11217 * util/grub-setup.c (print_version): Move to ...
11218 * util/argp_common.c (print_version): ... here.
11219 * util/grub-setup.c (argp_program_version_hook): Move to ...
11220 * util/argp_common.c (argp_program_version_hook): ... here.
11221 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
11222 safety.
11223 * util/grub-mkimage.c (main): Migrate to argp.
11224
57db0757
VS
112252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 * util/grub-mkrescue.in: Use same message as
11228 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
11229 for better translations.
11230
18534ad9
VS
112312012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11232
11233 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
11234 options with generic grub-mkrescue.in with the goal of future
11235 merge.
11236
c84ba308
VS
112372012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/kern/mm.c: Add missing include of i18n.h
11240 * grub-core/lib/relocator.c: Likewise.
11241
347998c2
VS
112422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
11245 error.
11246 (allocate_pages): Check return value.
11247 Replace fatal with error.
11248 (grub_linux_boot): Replace printf with dprintf.
11249 Check find_mmap_size return value.
11250 Replace fatal with error.
11251 Don't call grub_machine_fini.
11252 (grub_load_elf64): Replace printf with dprintf.
11253 (grub_cmd_linux): Likewise.
11254 (grub_cmd_initrd): Likewise.
11255 (grub_cmd_payload): Likewise.
11256
c779226e
VS
112572012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
11260 message.
11261 * grub-core/video/radeon_fuloong2e.c
11262 (grub_video_radeon_fuloong2e_setup): Likewise.
11263 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
11264 * grub-core/video/video.c (grub_video_set_mode): Don't override
11265 standard out of memory message.
11266
dc87d45a
GS
112672012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11268
11269 NetBSD disk wedge support.
11270
11271 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
11272 [__NetBSD__]: Handle NetBSD disk wedges.
11273 * util/getroot.c (convert_system_partition_to_system_disk)
11274 [__NetBSD__]: Likewise.
11275
055f856f
MW
112762012-02-03 Mark Wooding <mdw@distorted.org.uk>
11277
11278 * util/grub-mkconfig.in: Use umask rather than chmod to create
11279 grub.cfg.new to avoid insecure grub.cfg.
11280
4a9f8346
VS
112812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11282
11283 * grub-core/commands/ls.c: Gettextize.
11284 * grub-core/commands/setpci.c: Likewise.
11285 * grub-core/commands/videotest.c: Likewise.
11286 * grub-core/disk/geli.c: Likewise.
11287 * grub-core/kern/mm.c: Likewise.
11288 * grub-core/lib/relocator.c: Likewise.
11289 * grub-core/loader/efi/appleloader.c: Likewise.
11290 * grub-core/loader/i386/xnu.c: Likewise.
11291 * grub-core/loader/ia64/efi/linux.c: Likewise.
11292 * grub-core/loader/xnu.c: Likewise.
11293 * grub-core/net/dns.c: Likewise.
11294 * grub-core/net/net.c: Likewise.
11295 * grub-core/script/lexer.c: Likewise.
11296 * grub-core/script/parser.y: Likewise.
11297 * grub-core/script/yylex.l: Likewise.
11298 * util/getroot.c: Likewise.
11299 * util/grub-setup.c: Likewise.
11300
a646a366
VS
113012012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11302
11303 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
11304 number.
11305
54e2be26
VS
113062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
11309
f7c71e68
VS
113102012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
11313 macro.
11314 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
11315 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
11316
a32d5c71
VS
113172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
11320 * util/grub-install.in: Gettextize.
11321 * util/grub-mkconfig.in: Likewise.
11322 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
11323 if not available.
11324 (grub_warn): Gettextize.
11325 * util/grub-mknetdir.in: Gettextize.
11326 * util/grub-mkrescue.in: Likewise.
11327 * util/grub-mkstandalone.in: Likewise.
11328 * util/grub-reboot.in: Likewise.
11329 * util/grub-set-default.in: Likewise.
11330 * util/grub.d/00_header.in: Likewise.
11331 * util/grub.d/10_hurd.in: Likewise.
11332 * util/grub.d/10_kfreebsd.in: Likewise.
11333 * util/grub.d/10_linux.in: Likewise.
11334 * util/grub.d/10_netbsd.in: Likewise.
11335 * util/grub.d/10_windows.in: Likewise.
11336 * util/grub.d/20_linux_xen.in: Likewise.
11337 * util/grub.d/30_os-prober.in: Likewise.
11338 * po/POTFILES-shell.in: Regenerate.
11339
69edd81a
RL
113402012-02-03 Richard Laager <rlaager@wiktel.com>
11341
11342 * util/grub-mkimage.c (main): Fix format-security warning.
11343 * util/grub-mkrelpath.c (main): Likewise.
11344 * util/grub-probe.c (main): Likewise.
11345
65f08dbf
RL
113462012-02-03 Richard Laager <rlaager@wiktel.com>
11347
11348 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
11349 failure.
11350 Put back lost PRINT_DRIVE.
11351
e9084abe
RL
113522012-02-03 Richard Laager <rlaager@wiktel.com>
11353
11354 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
11355 (grub_guess_root_devices): Replace strlen with sizeof.
11356 Avoid crash.
11357 (find_root_devices_from_poolname): Remove unused variable.
11358 Handle raidzN.
11359
cf5f7ee7
VS
113602012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 Support install on multi-device filesystems.
11363
11364 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
11365 (grub_guess_root_devices): ...this. Return char **. All users updated.
11366 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
11367 Removed.
11368 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
11369 (find_root_devices_from_poolname): ... here.
11370 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
11371 Support zfs-fuse.
11372 (grub_guess_root_device): Rename to ...
11373 (grub_guess_root_devices): ... this. Return char **. All users updated.
11374 * util/grub-install.in: Handle multi-device filesystems.
11375 * util/grub-probe.c (probe). Make device_names a char **. Add delim
11376 argument. All users updated.
11377 Handle multi-device filesystems.
11378 Use 'delim' as separator.
11379 Remove device check to allow filesystems on file.
11380 (main): Support -0 argument. Handle multi-device.
11381 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
11382 Fix a cross-device check while on it.
11383 (arguments): Remove root_dev.
11384 (argp_parser): Remove -r.
11385 (main): Remove root_dev.
11386
2f53a9ed
VS
113872012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11388
11389 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
11390
17e1d934
VS
113912012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
11394 symbol.
11395 Reported by: NODA, Kai <nodakai>.
11396
d3e3fab5
VS
113972012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 Fix ehci on amd64.
11400
11401 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
11402 pointers.
11403 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
11404 (grub_ehci_setup_qh): Likewise.
11405 (grub_ehci_find_qh): Likewise.
11406 (grub_ehci_transaction): Likewise.
11407 (grub_ehci_setup_transfer): Likewise.
11408 (grub_ehci_check_transfer): Likewise.
11409 (grub_ehci_portstatus): Likewise.
11410 (grub_ehci_detect_dev): Likewise.
11411 (grub_ehci_transfer_controller_data): New field td_last_phys.
11412 (grub_ehci_setup_transfer): Fill td_last_phys.
11413 (grub_ehci_check_transfer): Use td_last_phys.
11414
3008675b
SG
114152012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
11416
11417 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
11418 if no submenu is present.
11419
fc9b5652
AN
114202012-02-01 Aleš Nesrsta <starous@volny.cz>
11421
11422 CBI support.
11423
11424 * include/grub/usb.h (grub_usbms_protocol_t): New values
11425 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
11426 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
11427 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
11428 (grub_usbms_dev): Add subclass, protocol and intrpt.
11429 Remove in_maxsz and out_maxsz.
11430 (grub_usbms_reset): Rename to ...
11431 (grub_usbms_bo_reset): .. this.
11432 (grub_usbms_cbi_cmd): New function.
11433 (grub_usbms_cbi_reset): Likewise.
11434 (grub_usbms_reset): Likewise.
11435 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
11436 (grub_usbms_transfer): Rename to ...
11437 (grub_usbms_transfer_bo): ... this.
11438 (grub_usbms_transfer_cbi): Likewise.
11439 (grub_usbms_transfer): Likewise.
11440
a2b81d53
AN
114412012-02-01 Aleš Nesrsta <starous@volny.cz>
114422012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
11445 the support for the CS5536 modification thereos and few bugfixes.
11446
11447 * grub-core/Makefile.core.def (ehci): New module.
11448 * grub-core/bus/usb/ehci.c: New file.
11449 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
11450 port and hubaddr. All users updated.
11451 Save port and hubaddr into dev structure.
11452 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
11453 define.
11454 * include/grub/pci.h (grub_dma_phys2virt): New function.
11455 (grub_dma_virt2phys): Likewise.
11456 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
11457
b1d51f02
VS
114582012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
11461 check as some mkfs implementations omit it.
11462
fc694106
VS
114632012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * docs/grub.texi (Unicode): Mention identifier and space limitations.
11466
6c0920e3
VS
114672012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
11470 Add new member volname2.
11471 (grub_jfs_label): Use volname2 if available.
11472
d1a46f9a
VS
114732012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
11476 over last_mounted as seen in image generated by mkfs.nilfs2.
11477 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
11478
dec8ed14
VS
114792012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
11482 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
11483 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
11484
7397c69b
VS
114852012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
11488 over the sector.
11489
b3fe42ad
VS
114902012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
11493 subvolume name (by removing a bogus and useless check).
11494
10476bb0
VS
114952012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
11498 sizeof while on it.
11499
9c08ad87
VS
115002012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
11503 (grub_scsi_read_capacity10): ... this.
11504 (grub_scsi_read_capacity16): New function.
11505 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
11506 0xffffffff.
11507 Fix off-by-one error.
11508 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
11509 64-bit unsigned.
11510 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
11511 (grub_scsi_read_capacity10): ... this.
11512 (grub_scsi_read_capacity_data): Rename to ...
11513 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
11514 (grub_scsi_read_capacity16): New struct.
11515 (grub_scsi_read_capacity16_data): Likewise.
11516 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
11517 grub_scsi_cmd_read_capacity10.
11518 New command grub_scsi_cmd_read_capacity16.
11519
bc8d0f45
VS
115202012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 SCSI >2TiB support.
11523
11524 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
11525 (grub_scsi_write16): Likewise.
11526 (grub_scsi_read): Use read16 when necessary.
11527 (grub_scsi_write): Likewise.
11528 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
11529 (grub_scsi_write16): Likewise.
11530 (grub_scsi_cmd_t): Add READ16 and WRITE16.
11531
cc774926
VS
115322012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 SCSI write support (for usbms mainly).
11535
11536 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
11537 a const pointer.
11538 (grub_scsi_write): Implement.
11539 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
11540
67639fd7
VS
115412012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
11544 variable.
11545
9079d3ed
VS
115462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * grub-core/lib/posix_wrap/string.h (memchr): New function.
11549
c6a6f204
VS
115502012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * po/POTFILES.in: Regenerate.
11553
ecbf8cd1
VS
115542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
11557 with grub_printf to avoid unnecessary fatal failure.
11558
0b3b3b38
VS
115592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11560
11561 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
11562 (INT_MAX): Likewise.
11563 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
11564 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
11565 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
11566 (strcpy): Likewise.
11567 (strstr): Likewise.
11568 (strchr): Likewise.
11569 (strncpy): Likewise.
11570 (strcat): Likewise.
11571 (strncat): Likewise.
11572 (strcoll): Likewise.
11573 * include/grub/types.h (GRUB_SHRT_MAX): New define.
11574 (GRUB_INT_MAX): Likewise.
11575
db7337a3
VS
115762012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
11579 unexpected error.
11580 (optimize_utf8): Likewise.
11581 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
11582
f37c87e1
VS
115832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 * grub-core/boot/i386/pc/lnxboot.S: Use
11586 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
11587 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
11588 location.
11589 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
11590 definition.
11591 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
11592
63fe43f3
VS
115932012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
11596 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
11597 now to avoid double free.
11598 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
11599 hostdisk.
11600 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
11601 * util/grub-probe.c (escape_of_path): Always return a new copy.
11602 (print_full_name): Escape path.
11603 (probe): Don't call grub_util_devname_to_ofpath on NULL.
11604 Fix hints on abstractions.
11605
ebe2c961
VS
116062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
11609 Don't add "root" line if no compatibility hont is available.
11610 Suggested by: Seth Goldberg.
11611
2b5336a2
VS
116122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11613
11614 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
11615 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
11616 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
11617 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
11618
74310bd8
VS
116192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
11622
c30582ba
VS
116232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 * util/grub-pe2elf.c (ehdr): Make static.
11626 (shdr): Likewise.
11627 (num_sections): Likewise.
11628 (offset): Likewise.
11629
5f47782c
VS
116302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 Eliminate ofpath limits and possible overflows.
11633
11634 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
11635 (OF_PATH_MAX): Removed.
11636 (MAX_DISK_CAT): New const.
11637 (find_obppath): Use allocated rather than preallocated buffer.
11638 Return result. Argument of_path removed. All users updated.
11639 Add missing fdstat.
11640 (xrealpath): New function.
11641 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
11642 Allocate rather than use preallocated buffer. All users updated.
11643 (__of_path_common): Use allocated rather than preallocatecd buffer.
11644 Return result. Argument of_path removed. All users updated.
11645 (vendor_is_ATA): Read only needed part form the file.
11646 (check_sas): Allocate depending on contents rather than fixed.
11647 (main) [STANDALONE]: Handle NULL result.
11648
f990cbf9
VS
116492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11650
11651 * grub-core/normal/completion.c (iterate_dev): Close the disk.
11652
9c6e84b8
VS
116532012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 Cryptodisk write support.
11656
11657 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
11658 (grub_cryptodisk_decrypt): Moved logic to ...
11659 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
11660 (grub_cryptodisk_write): Implement.
11661 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
11662 (grub_util_fd_write): ... this. Make global.
11663 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
11664
87cf9744
VS
116652012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * include/grub/list.h (grub_list_remove): Don't crash if element is
11668 removed twice.
11669
ca8c0baf
VS
116702012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 Rename ofconsole to console.
11673
11674 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
11675 as sysnonym to console.
11676 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
11677 * grub-core/term/ieee1275/console.c: ... this. All users updated.
11678 Rename grub_ofconsole_ to grub_console_. All users updated
11679 (grub_console_term_output): Rename "ofconsole" to "console".
11680 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
11681 as "console".
11682
64c8b8f6
VS
116832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
11686 handling.
11687 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
11688 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
11689 GRUB_DISK_DEVICE_FILE_ID.
11690
f6c434d5
VS
116912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
11694 and improve performance.
11695
5858b42d
VS
116962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
11699 missing ieee1275/ prefix on whole disk.
11700
4ed3c26b
VS
117012012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
11704 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11705
df71143e
VS
117062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
11709
076e7c0f
VS
117102012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 Merge common RAID and LVM logic to an abstract diskfilter.
11713 Add LDM support using the same framework.
11714
11715 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
11716 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
11717 (libgrubmods): Remove grub-core/disk/raid.c and
11718 grub-core/partmap/gpt.c.
11719 * grub-core/Makefile.core.def (ldm): New module.
11720 (raid): Renamed to diskfilter. All users updated.
11721 * grub-core/disk/raid.c: Moved to ...
11722 * grub-core/disk/diskfilter.c: ... here.
11723 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
11724 (lv_num): New var.
11725 (find_array): Renamed to ...
11726 (find_lv): ... this. Support multi-LV. Skip nameless LVs
11727 (grub_is_array_readable): Renamed to ...
11728 (grub_is_lv_readable): ... this. Support multinode hierarchy.
11729 (insert_array): New argument id.
11730 (is_node_readable): New function.
11731 (scan_device): Rename to ...
11732 (scan_disk): .. this. Restrict to one disk.
11733 (scan_devices): New function.
11734 (grub_diskfilter_iterate): Support multi-LV.
11735 Skip invisible and nameless LVs.
11736 (grub_diskfilter_memberlist): Support multi-LV.
11737 (grub_diskfilter_read_node): New function.
11738 (grub_raid_read): Most of logic moved to ...
11739 (read_segment): ... here
11740 (read_lv): New function.
11741 (grub_diskfilter_get_vg_by_uuid): New function.
11742 (grub_diskfilter_make_raid): Likewise.
11743 * grub-core/disk/ldm.c: New file.
11744 * grub-core/disk/lvm.c (vg_list): Removed.
11745 (lv_count): Likewise.
11746 (scan_depth): Likewise.
11747 (is_lv_readable): Likewise.
11748 (grub_lvm_getvalue): Advance pointer past the number.
11749 (find_lv): Removed.
11750 (do_lvm_scan): Refactored into ...
11751 (grub_lvm_detect): ... this. Support raid.
11752 (grub_lvm_iterate): Removed.
11753 (grub_lvm_memberlist): Likewise.
11754 (grub_lvm_open): Likewise.
11755 (grub_lvm_close): Likewise.
11756 (read_lv): Likewise.
11757 (read_node): Likewise.
11758 (is_node_readable): Likewise.
11759 (is_lv_readable): Likewise.
11760 (grub_lvm_read): Likewise.
11761 (grub_lvm_write): Likewise.
11762 (grub_lvm_dev): Use diskfilter
11763 (GRUB_MOD_INIT): Likewise.
11764 (GRUB_MOD_FINI): Likewise.
11765 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11766 new interface.
11767 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11768 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11769 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11770 grub_diskfilter_read_node.
11771 Fix a bug with xor.
11772 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11773 grub_diskfilter_read_node.
11774 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11775 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11776 (grub_disk_dev_iterate): Move from here...
11777 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11778 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11779 Make global.
11780 (grub_hostdisk_find_partition_start): Likewise.
11781 (grub_hostdisk_os_dev_to_grub_drive): New function.
11782 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11783 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11784 * util/getroot.c (make_device_name): ... here.
11785 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11786 Move to ...
11787 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11788 * grub-core/kern/emu/hostdisk.c
11789 (convert_system_partition_to_system_disk): Move to ...
11790 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11791 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11792 * util/getroot.c (device_is_wholedisk): ... here.
11793 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11794 * util/getroot.c (find_system_device): ... here.
11795 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11796 Move to ...
11797 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11798 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11799 Move to ...
11800 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11801 Handle LDM.
11802 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11803 Move to ...
11804 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11805 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11806 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11807 DISKFILTER.
11808 * include/grub/raid.h: Renamed to ...
11809 * include/grub/diskfilter.h: ... this.
11810 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11811 (GRUB_RAID_LAYOUT_*): Make into array.
11812 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11813 (grub_diskfilter_vg): New struct.
11814 (grub_diskfilter_pv_id): Likewise.
11815 (grub_raid_member): Removed.
11816 (grub_raid_array): Likewise.
11817 (grub_diskfilter_pv): New struct.
11818 (grub_diskfilter_lv): Likewise.
11819 (grub_diskfilter_segment): Likewise.
11820 (grub_diskfilter_node): Likewise.
11821 (grub_diskfilter_get_vg_by_uuid): New proto.
11822 (grub_raid_register): Inline.
11823 (grub_diskfilter_unregister): Likewise.
11824 (grub_diskfilter_make_raid): New proto.
11825 (grub_diskfilter_vg_register): Likewise.
11826 (grub_diskfilter_read_node): Likewise.
11827 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11828 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11829 (grub_util_is_ldm): Likewise.
11830 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11831 (grub_hostdisk_find_partition_start): Likewise.
11832 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11833 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11834 New definition.
11835 (grub_gpt_partition_map_iterate): New proto.
11836 * include/grub/lvm.h (grub_lvm_vg): Removed.
11837 (grub_lvm_pv): Likewise.
11838 (grub_lvm_lv): Likewise.
11839 (grub_lvm_segment): Likewise.
11840 (grub_lvm_node): Likewise.
11841 * util/getroot.c [...]
11842 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11843 (probe_abstraction): Likewise.
11844 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11845 (main): Remove dead logic.
11846
8a7f9b9c
VS
118472012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 Simplify root device discover and don't fail when trying to open
11850 incorrect devices.
11851
11852 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11853 function.
11854 (get_diskname_from_path): Likewise.
11855 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11856 of iterating.
11857
30545b85
VS
118582012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11861
28ea58cf
VS
118622012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11865 pastthe end.
11866
692dabca
VS
118672012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * util/grub-install.in: Add missing \.
11870 Reported by: gentoofan
11871
f6e4ea70
VS
118722012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11873
11874 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11875 (direct_read): Use correct compressed size.
11876 (grub_squash_read_data): Likewise.
11877
118782012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
11879
11880 * docs/grub.texi (Platform limitations): New section.
11881 (Platform-specific operations): Likewise.
11882 * docs/grub-dev.texi (Porting): Likewise.
11883
76261110
VS
118842012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 IEEE1275 disk write support.
11887
11888 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11889 const void *.
11890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11891 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11892 and seek loginc to ...
11893 (grub_ofdisk_prepare): ... here.
11894 (grub_ofdisk_write): Implement.
11895
fc36d603
VS
118962012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 ARC disk write support.
11899
11900 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11901 (reopen): New argument writable. All users updated.
11902 Handle required access mode.
11903 (grub_arcdisk_write): Implement.
11904 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11905 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11906
e06c2e7a
VS
119072012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11910 (read_sblock): Don't attempt to read superblocks outside the disk size.
11911
ff447958
VS
119122012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11915 first superblock to find the second one when possible.
11916
9e88df39
VS
119172012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 * util/grub-install.in: Fix an ARC bug.
11920 Print a warning if no platform-specific setup is available.
11921
bb26e4ff
VS
119222012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 Use static allocation rather than scratch pointer in reed_solomon.
11925 It decreases its size significantly and avoids a variable in .text.
11926
11927 * grub-core/lib/reed_solomon.c (scratch): Removed.
11928 (chosenstat): New const or static array.
11929 (sigma): Likewise.
11930 (errpot): Likewise.
11931 (errpos): Likewise.
11932 (sy): Likewise.
11933 (mstat): Likewise.
11934 (errvals): Likewise.
11935 (eqstat): Likewise.
11936 (pol_evaluate): Replace x with log_x argument. All users updated.
11937 (syndroms): Removed.
11938 (gauss_solve): Use statically allocated arrays.
11939 (rs_recover): Likewise.
11940 Calculate syndroms directly.
11941 (decode_block): Use statically allocated arrays.
11942 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11943 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11944
2e13ede5
VS
119452012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 Eliminate fixed limit on reed solomon decoder length.
11948
11949 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11950 rather than hardcoding the address.
11951 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11952 no_reed_solomon_length.
11953 Move gate_a20 to no-reed-solomon part.
11954 Don't force a particular size of no reed-solomon part.
11955 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11956 Removed.
11957 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11958 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11959
f8a9ab12
VS
119602012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * grub-core/commands/wildcard.c (match_files): Handle filenames
11963 without explicit device.
11964 (wildcard_expand): Don't add explicit device if not already present.
11965 * tests/grub_script_echo1.in: Add a new expansion test.
11966
87edb894
VS
119672012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 Replace single-linked with double-linked lists. It results in more
11970 compact and more efficient code.
11971
11972 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11973 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11974 (grub_list_remove): Moved from here ...
11975 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11976 (grub_prio_list_insert): Set prev.
11977 * include/grub/list.h (grub_list): Add prev. All users updated.
11978
48b391e9
VS
119792012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 Handle newer autotools. Add some missing quotes while on it.
11982
11983 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11984 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11985 (pkgdata_DATA): ... here.
11986 * Makefile.util.def (update-grub_lib): Removed.
11987 * conf/Makefile.common (pkglib_DATA): Removed.
11988 (pkglib_SCRIPTS): Likewise.
11989 (pkgdata_DATA): New variable.
11990 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11991 needed.
11992 Add missing quotes.
11993 Remove unused variable while on it.
11994 * tests/util/grub-shell.in: Likewise.
11995 * util/grub-install.in: Likewise.
11996 * util/grub-mkconfig.in: Likewise.
11997 * util/grub-mknetdir.in: Likewise.
11998 * util/grub-mkrescue.in: Likewise.
11999 * util/grub-mkstandalone.in: Likewise.
12000 * util/grub.d/00_header.in: Likewise.
12001 * util/grub.d/10_hurd.in: Likewise.
12002 * util/grub.d/10_illumos.in: Likewise.
12003 * util/grub.d/10_kfreebsd.in: Likewise.
12004 * util/grub.d/10_linux.in: Likewise.
12005 * util/grub.d/10_netbsd.in: Likewise.
12006 * util/grub.d/10_windows.in: Likewise.
12007 * util/grub.d/20_linux_xen.in: Likewise.
12008 * util/grub.d/30_os-prober.in: Likewise.
12009 * util/update-grub_lib.in: Removed.
12010
120112012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
12012
12013 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
12014 a workaround for intel problem.
12015
66832792
PRP
120162012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
120172012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
120182012-01-23 pfsmorigo
12019
12020 * util/grub-install.in: Support dd'in into PreP partition.
12021 * util/grub-probe.c (probe): Support discovering partition type.
12022 (main): Support -t msdos_parttype.
12023
7816a17e
VS
120242012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
12027 infinite recursion using counter.
12028 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
12029 init to skip it if the magic check fails.
12030 (dec_stream_header): Init s->crc32.
12031
8f9d3a8c
ZB
120322012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
120332012-01-22 Zachary Bedell <pendorbound@gmail.com>
120342012-01-22 Richard Laager <rlaager@wiktel.com>
12035
12036 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
12037 All users updated.
12038 (find_bestub): Determine correct size.
12039 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
12040 (scan_disk): Align the size down.
12041 Call check pool before find_bestub to have ashift.
12042
b055dd32
VS
120432012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
12046 dprintf in no-malloc zone.
12047
d779e9bd
ML
120482012-01-22 Mario Limonciello <mario_limonciello@dell.com>
12049
12050 * configure.ac: Add back in test for limits.h.
12051
b508af69
VS
120522012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12053
12054 Support 4K-sector NTFS.
12055
12056 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
12057 (grub_ntfs_data): Remove blocksize.
12058 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
12059 Remove data argument. All users updated.
12060
dad9c8b5
VS
120612012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12062
12063 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
12064 being in .text to avoid dprel references.
12065 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
12066 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
12067 (grub_arch_highmemsize): Likewise.
12068 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
12069 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
12070 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
12071
d43a777e
VS
120722012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
12075
12076 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
12077 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
12078
34e4208f
VS
120792012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
12082 GRUB_UTIL.
12083 (grub_set_datetime_cmos): Likewise.
12084
3ec0fc1c
VS
120852012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12086
12087 Make XZ compression parameters dependent on target and not host CPU.
12088
12089 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
12090 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
12091
22489834
VS
120922012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12093
12094 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
12095 set but not used variable.
12096
8502fbca
VS
120972012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
12100 created when no uuid support is compiled into mkfs.reiser.
12101
76df2068
VS
121022012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12103
12104 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
12105 (utf8_to_macroman): Do the opposite.
12106 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
12107
64e3f8f6
VS
121082012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 * configure.ac: Refise build qemu_mips w/o unifont.
12111
9c271078
VS
121122012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12113
12114 Eliminate grub_min/grub_max prone to overflow usage.
12115
12116 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
12117 (poll_nonroot_hub): Likewise.
12118 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
12119 (grub_affs_label): Likewise.
12120 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
12121 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
12122 (grub_hfs_label): Likewise.
12123 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
12124 * grub-core/fs/zfs/zfs.c (MIN): Remove.
12125 (zap_leaf_array_equal): Use grub_size. Remove MIN.
12126 (zap_leaf_array_get): Likewise.
12127 (dnode_get_path): Likewise.
12128 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
12129 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
12130 * grub-core/script/execute.c (grub_script_break): Likewise.
12131 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
12132 grub_max.
12133 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
12134 * include/grub/misc.h (grub_min): Removed.
12135 (grub_max): Likewise.
12136
80662dbc
VS
121372012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12138
12139 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
12140 direct.inode = 0.
12141
e6da1467
VS
121422012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
12145
b1ac4cb1
VS
121462012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
12149
b4bf7c3b
VS
121502012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
12153 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
12154
8ee1101a
VS
121552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
12158 rather than a hack for grub_strncasemap.
12159
121602012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 Support multiple initrds
12163 Note: part of this was accidently committed in r3739.
12164
12165 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
12166 initrd.
12167 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
12168 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
12169 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
12170 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12171 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12172
4d1e2bc9
VS
121732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
12176 disks with unknown size.
12177 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
12178
75b49ebe
VS
121792012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 Remove defines pertaining to arbitrary limits not affecting GRUB
12182 anymore.
12183
12184 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
12185 (EXT2_MAX_SYMLINKCNT): Likewise.
12186 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
12187 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
12188 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
12189 (GRUB_PXE_MAX_BLKSIZE): Likewise.
12190 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
12191 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
12192 (DN_MAX_OBJECT_SHIFT): Likewise.
12193 (DN_MAX_OFFSET_SHIFT): Likewise.
12194 (DN_MAX_OBJECT): Likewise.
12195 (DNODES_PER_LEVEL_SHIFT): Likewise.
12196 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
12197 (SPA_MAXBLOCKSIZE): Likewise.
12198 (SPA_BLOCKSIZES): Likewise.
12199 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
12200 (MZAP_MAX_BLKSZ): Likewise.
12201
74a1dce7
VS
122022012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12203
12204 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
12205 handle NULL appropriately.
12206 Remove MIN.
12207
30c7d3ce
VS
122082012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 Fix efiemu.
12211
12212 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
12213 cpu/types.h.
12214 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
12215 * configure.ac: Fix efiemu check.
12216
3c76ea0c
VS
122172012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
12220 grub_probe.
12221 Reported by: adamwill
12222
7e532280
SG
122232012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
12224
12225 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
12226
30492374
VS
122272012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 Fix handling of wide characters in gfxterm.
12230
12231 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
12232 (clear_char): Likewise.
12233 (paint_char): Skip code == NULL chars.
12234 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
12235
e70cb72f
VS
122362012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * grub-core/normal/charset.c: Move comment to right place.
12239
5c827cf9
VS
122402012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
12243 (GRUB_AFFS_FLAG_FFS): Put back where it was.
12244 (grub_affs_mount): Revert the correct version checking.
12245
53603892
VS
122462012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 * docs/grub.texi (Unicode): Mention several other unsupported features.
12249
ff094b9b
VS
122502011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12251
12252 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
12253 case statements as compile-time one.
12254 (direct_read): Prevent spurious warnings.
12255 (grub_squash_read_data): Likewise.
12256
c029da8a
VS
122572011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 Various squash4 fixes and LZO and XZ support.
12260
12261 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
12262 Add xzembed source files.
12263 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
12264 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
12265 (grub_squash_inode): New subtype long_dir.
12266 (SQUASH_TYPE_LONG_DIR): New inode type.
12267 (COMPRESSION): New enum.
12268 (XZBUFSIZ): New const.
12269 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
12270 (read_chunk): Use data->decompress.
12271 (zlib_decompress): New function.
12272 (lzo_decompress): Likewise.
12273 (xz_decompress): Likewise.
12274 (squash_mount): Set new data fields.
12275 (grub_squash_iterate_dir): Handle long dir.
12276 (squash_unmount): Free xzdec and xzbuf.
12277 (grub_squash_open): Check ino type.
12278 (direct_read): Stylistic fixes. Use data->decompress.
12279 (grub_squash_read_data): Likewise.
12280 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
12281 (get_byte): Likewise.
12282 (grub_zlib_disk_read): Removed.
12283 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
12284 (GRUB_POSIX_BOOL_DEFINED): New define.
12285 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
12286 * grub-core/lib/xzembed/xz.h: Addmissing includes.
12287 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
12288 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
12289
7a45a539
VS
122902011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 Don't override more informative errors.
12293
12294 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
12295 * grub-core/font/font.c (open_section): Likewise.
12296 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
12297 filename. Don't override errors.
12298 (grub_cmd_openbsd_ramdisk): Don't override errors.
12299 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
12300 (grub_cmd_initrd): Likewise.
12301 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12302 (grub_cmd_initrd): Likewise.
12303 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
12304 (grub_cmd_linux): Likewise.
12305 (grub_cmd_initrd): Likewise.
12306 (grub_cmd_payload): Likewise.
12307 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
12308 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
12309 (grub_cmd_module): Likewise.
12310 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12311 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12312 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
12313 (grub_cmd_xnu_mkext): Likewise.
12314 (grub_cmd_xnu_ramdisk): Likewise.
12315 (grub_xnu_check_os_bundle_required): Likewise.
12316 (grub_xnu_load_kext_from_dir): Likewise.
12317 (grub_cmd_xnu_kextdir): Likewise.
12318 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
12319
b2d004db
VS
123202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
12323 as 1024 in block size field. Found on one of my test images.
12324 Small optimisation while on it.
12325
ec000eac
VS
123262011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
12329 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
12330 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
12331 performance fixes while on it.
12332 (grub_sfs_close): Fix memory leak while on it.
12333 (grub_sfs_label): Convert Latin1 to UTF-8.
12334
f50e1165
VS
123352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
12338 space to avoid overflows.
12339 (grub_hfs_label): Convert from macroman to UTF-8.
12340
2ae254de
VS
123412011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12342
12343 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
12344
0108f491
VS
123452011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
12348
f45f5f89
VS
123492011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * unicode: Import Unicode 6.0 data.
12352
4d8c4765
VS
123532011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12354
63fa8ef9
VS
12355 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
12356 outside of range.
12357
123582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12359
12360 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
12361
12362 * include/grub/charset.h (grub_getend): New function.
12363 * grub-core/script/function.c (grub_script_function_find): Use
12364 grub_getend.
12365 * grub-core/normal/completion.c (add_completion): Likewise.
12366
f3cb4a4e
VS
123672011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12368
12369 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
12370 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
12371 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
12372 (GRUB_UNICODE_TAG_END): Likewise.
12373 (GRUB_UNICODE_LAST_VALID): Likewise.
12374
5da8dbc5
VS
123752011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
12378 len and make it smaller. All users updated.
12379 * util/import_unicode.py: Put length and not end character.
12380 Check length.
12381
8569f13d
VS
123822011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 Make better Unicode-compliant and unify some UTF-8 code pathes.
12385
12386 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
12387 valid character.
12388 (grub_is_valid_utf8): Use grub_utf8_process.
12389 Check resulting code range.
12390 (grub_utf8_to_ucs4): Use grub_utf8_process.
12391 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
12392 valid character.
12393
cc4fddf5
VS
123942011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12395
12396 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
12397
bbc47747
VS
123982011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 * docs/grub.texi (Filesystems): Mention AFS.
12401
f63d6bf4
VS
124022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12403
12404 * docs/grub.texi (Filesystems): Clarify restrictions.
12405 (Regexp): Mention non-Unicode regexp behaviour.
12406 (Other): Mention non-Unicode matching behaviour.
12407
74bbf0db
VS
124082011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12409
f63d6bf4 12410 Make HFS implementation use MacRoman.
74bbf0db
VS
12411
12412 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
12413 (macroman): New const array.
12414 (macroman_to_utf8): New function.
12415 (utf8_to_macroman): Likewise.
12416 (grub_hfs_find_dir): Use utf8_to_macroman.
12417 (grub_hfs_dir): Use macroman_to_utf8.
12418 Set case_insensitive.
12419
4ea0316e
VS
124202011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
12423
d3c13cbd
VS
124242011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 Integrate hints into autogeneration scripts.
12427
12428 * docs/grub.texi (Filesystems): Add a hostdisk example.
12429 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
12430 (grub-probe): Add ofpath.
12431 * gentpl.py: Remove group nosparc64.
12432 * grub-core/commands/search.c (cache_entry): New struct.
12433 (cache): New var.
12434 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
12435 * grub-core/commands/search_wrap.c (options): Add platform-specific
12436 hint options.
12437 (grub_cmd_search): Handle platform-specific hints.
12438 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
12439 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
12440 (grub_util_biosdisk_data): Likewise.
12441 (grub_util_biosdisk_open): Set device_map.
12442 (read_device_map): Handle "" as indication of no map.
12443 Set device_map.
12444 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
12445 (grub_util_biosdisk_get_compatibility_hint): New function.
12446 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
12447 * include/grub/emu/hostdisk.h
12448 (grub_util_biosdisk_get_compatibility_hint): New proto.
12449 * util/grub-install.in: Don't call grub-mkdevicemap.
12450 Add platform-specific hint to load.cfg.
12451 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
12452 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12453 hints. Set root preliminary to compatibility hint, not to OS name.
12454 * util/grub-probe.c (PRINT_*): Add hints.
12455 (print): Make static.
12456 (escape_of_path): New function.
12457 (guess_bios_drive): Likewise.
12458 (guess_efi_drive): Likewise.
12459 (guess_baremetal_drive): Likewise.
12460 (print_full_name): Likewise.
12461 (probe): Handle hints.
12462 (main): Likewise.
12463 * util/ieee1275/devicemap.c: Removed.
12464 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
12465 updated.
12466 (grub_util_devname_to_ofpath): Return NULL on failure.
12467
12468 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
12469 resource leak.
12470 * util/getroot.c (grub_util_pull_device): Fix memory leak.
12471
12472 * po/POTFILES.in: Regenerated.
12473
12474 Allow purely long options
12475
12476 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
12477 (SHORT_ARG_USAGE): Likewise.
12478 (grub_arg_show_help): Compare opt with help_options.
12479 (parse_option): Receive opt as argument. If makes big simplificatons.
12480 All users updated
12481
00ce2df3
VS
124822011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12483
12484 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
12485 Restructure to avoid warning.
12486
e77e325f
VS
124872011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12488
12489 * util/grub-install.in: Account for possible escaped comma in device
12490 name.
12491
165099ea
VS
124922011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12493
12494 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
12495 channel.
12496
ce4a999d
VS
124972011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12498
12499 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
12500 allocation and zero-setting.
12501 (grub_ieee1275_get_devname): Check that alias is complete.
12502
379586ad
VS
125032011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12504
12505 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
12506 unaligned segments.
12507
9197b0ad
VS
125082011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12509
12510 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
12511 prefix.
12512 (grub_ofdisk_open): Check and discard ieee1275 prefix.
12513 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12514 Add ieee1275 prefix.
12515
edddb7f9
VS
125162011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * docs/grub.texi (Filesystems): Update.
12519
a1a8b1b9
VS
125202011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 Support odc, newc and bigendian cpio formats.
12523
12524 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
12525 * grub-core/Makefile.core.def (newc): New module.
12526 (odc): Likewise.
12527 (cpio_be): Likewise.
12528 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
12529 (MAGIC): Likewise.
12530 (MAGIC2): Likewise.
12531 (head) [MODE_ODC]: Adapt for the format.
12532 (head) [MODE_NEWC]: Likewise.
12533 (head) [!MODE_*]: Write fields of interest as arrays.
12534 (MAGIC_USTAR): Removed.
12535 (read_number) [MODE_NEWC]: Change to hex.
12536 (read_number) [!MODE_*]: Parse binary arrays.
12537 (grub_cpio_find_file): Factor out the code for better structure and
12538 always use read_number.
12539 (grub_cpio_mount): Use MAGIC and MAGIC2.
12540 (grub_cpio_dir): Exit on first hook non-0 return.
12541 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
12542 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
12543 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
12544 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
12545 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
12546 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
12547 * grub-core/fs/newc.c: New file.
12548 * grub-core/fs/odc.c: Likewise.
12549 * grub-core/fs/cpio_be.c: Likewise.
12550
58eba9ee
VS
125512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12552
12553 Fix handling of tar numbers occupying the whole field.
12554
12555 * grub-core/fs/cpio.c (read_number): New function.
12556 (grub_cpio_find_file): Use read_number instead of strtoull.
12557
a54a0e12
VS
125582011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
12561 occupying the whole field size.
12562
a6120aca
LA
125632011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
12564
12565 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
12566
a93964ce
VS
125672011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12568
12569 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
12570
3ea1ca46
SG
125712011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
12572
12573 * grub-core/Makefile.core.def (lzma_decompress): Add missing
12574 TARGET_IMG_LDFLAGS.
12575
b87f7ef2
VS
125762011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * util/getroot.c (ESCAPED_PATH_MAX): New define.
12579 (mountinfo_entry): Increase the field size to take escaping into
12580 account.
12581 (find_root_device_from_libzfs): Add one byte to size of strings for
12582 security.
12583
62092395
VS
125842011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12585
12586 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
12587 an assert.
12588 * util/grub-setup.c (setup): Likewise.
12589
1f0b1a77
VS
125902011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
12593 _LzmaDecodeA.
12594
8eba9997
VS
125952011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * docs/grub.texi (Internationalisation): New section.
12598
dd0c91e9
VS
125992011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * docs/grub.texi (Loopback booting): New section.
12602
126032011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
12604
12605 * util/grub-mkstandalone.in: Fix minor typo errors.
12606
198e150a
VS
126072011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
12610
12611 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
12612 net/icmp.c and net/icmp6.c.
12613 (http): New module.
12614 (priority_queue): Likewise.
12615 * grub-core/io/bufio.c: Rewritten.
12616 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
12617 TYPE_WITH_CONFIGFILE_OPTION.
12618 (legacy_commands): Add bootp and dhcp.
12619 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
12620 (grub_legacy_parse): Likewise.
12621 * grub-core/lib/priority_queue.c: New file.
12622 * grub-core/net/arp.c: Add missing license header.
12623 (arp_find_entry): Removed.
12624 (arp_find_entry): Likewise.
12625 (grub_net_arp_resolve): Rename to ...
12626 (grub_net_arp_send_request): ...this.
12627 (grub_net_arp_receive): New card argument.
12628 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
12629 Set router and DNS server.
12630 (grub_net_configure_by_dhcp_ack): Handle routing information.
12631 (grub_cmd_bootp): Set checksum.
12632 (grub_bootp_init): Remove net_dhcp.
12633 * grub-core/net/dns.c: New file.
12634 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
12635 completion.
12636 (get_card_packet): Handle allocation.
12637 (grub_efinet_findcards): Set mtu.
12638 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
12639 (get_card_packet): Handle allocation.
12640 (emucard): Set mtu.
12641 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
12642 (GRUB_MOD_INIT): Set mtu.
12643 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
12644 mtu.
12645 (get_card_packet): Handle allocation.
12646 (grub_ofnet_findcards): Set mtu.
12647 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
12648 assert.
12649 (grub_net_recv_ethernet_packet): Handle IPv6.
12650 * grub-core/net/http.c: New file.
12651 * grub-core/net/icmp.c: Likewise.
12652 * grub-core/net/icmp6.c: Likewise.
12653 * grub-core/net/ip.c (ip6addr): New type.
12654 (ip6hdr): Likewise.
12655 (reassemble): Likewise.
12656 (cmp): New function.
12657 (reassembles): New variable.
12658 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
12659 (id): New variable.
12660 (send_fragmented): New function.
12661 (grub_net_send_ip_packet): Rename to ...
12662 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
12663 Handle non-UDP.
12664 (grub_net_recv_ip_packets): Rename to ...
12665 (handle_dgram): ... this. Check checksum. Handle non-UDP.
12666 (free_rsm): New function.
12667 (free_old_fragments): Likewise.
12668 (grub_net_recv_ip4_packets): New function.
12669 (grub_net_send_ip6_packet): Likewise.
12670 (grub_net_send_ip_packet): Likewise.
12671 (grub_net_recv_ip6_packets): Likewise.
12672 (grub_net_recv_ip_packets): Likewise.
12673 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
12674 (LINK_LAYER_CACHE_SIZE): New const.
12675 (link_layer_find_entry): New function.
12676 (grub_net_link_layer_add_address): Likewise.
12677 (grub_net_link_layer_resolve_check): Likewise.
12678 (grub_net_link_layer_resolve): Likewise.
12679 (grub_net_ipv6_get_slaac): Likewise.
12680 (grub_net_ipv6_get_link_local): Likewise.
12681 (grub_cmd_ipv6_autoconf): Likewise.
12682 (parse_ip): Handle one number representation.
12683 (parse_ip6): New functoion.
12684 (match_net): Handle IPv6.
12685 (grub_net_resolve_address): Handle IPv6 and DNS.
12686 (grub_net_resolve_net_address): Handle IPv6.
12687 (route_cmp): New function.
12688 (grub_net_route_address): Find best route.
12689 (grub_net_addr_to_str): Handle IPv6.
12690 (grub_net_addr_cmp): New function.
12691 (grub_net_add_addr): Register local route.
12692 (print_net_address): Handle net address.
12693 (grub_net_poll_cards): Retransmit TCP.
12694 (grub_net_poll_cards_idle_real): Likewise.
12695 (have_ahead): New function.
12696 (grub_net_seek_real): Use underlying seek.
12697 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
12698 * grub-core/net/tcp.c: New file.
12699 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
12700 (cmp): New function.
12701 (ack): Likewise.
12702 (tftp_receive): Handle unordered input.
12703 (destroy_pq): New function.
12704 (tftp_close): Close pq.
12705 * grub-core/net/udp.c: Put missing license header.
12706 (grub_net_udp_socket): New function.
12707 (udp_socket_register): Likewise.
12708 (grub_net_udp_close): Likewise.
12709 (grub_net_recv_udp_packet): Check checksum.
12710 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
12711 * include/grub/misc.h (grub_memchr): New function.
12712 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
12713 (grub_net_card_driver): Return buf in recv.
12714 (grub_net_slaac_mac_list): New struct.
12715 (grub_network_level_protocol_id): Add ipv6.
12716 (grub_net_network_level_addr): Likewise.
12717 (grub_net_network_level_net_addr): Likewise.
12718 (grub_net_app_protocol): Add seek.
12719 (grub_net_socket): Removed.
12720 (grub_net_sockets): Likewise.
12721 (grub_net_socket_register): Likewise.
12722 (grub_net_socket_unregister): Likewise.
12723 (FOR_NET_SOCKETS): Likewise.
12724 (grub_net_add_addr): Add const.
12725 (GRUB_NET_BOOTP_*): New enum.
12726 (grub_net_addr_cmp): New proto.
12727 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
12728 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
12729 (grub_net_hwaddr_to_str): NEw proto.
12730 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
12731 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
12732 (grub_dns_init): New proto.
12733 (grub_dns_fini): Likewise.
12734 (grub_net_tcp_retransmit): Likewise.
12735 (grub_net_link_layer_add_address): Likewise.
12736 (grub_net_link_layer_resolve_check): Likewise.
12737 (grub_net_link_layer_resolve): Likewise.
12738 (grub_net_dns_lookup): Likewise.
12739 (grub_net_add_dns_server): Likewise.
12740 (grub_net_remove_dns_server): Likewise.
12741 (GRUB_NET_TRIES): New const.
12742 (GRUB_NET_INTERVAL): Likewise.
12743 * include/grub/net/arp.h: Mostly rewritten.
12744 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
12745 * include/grub/net/ip.h: Mostly rewritten.
12746 * include/grub/net/netbuff.h: Indent.
12747 * include/grub/net/tcp.h: New file.
12748 * include/grub/net/udp.h: Mostly rewritten.
12749 * include/grub/priority_queue.h: New file.
12750 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
12751 (grub_swap_bytes64_compile_time): Likewise.
12752 (grub_cpu_to_be16_compile_time): Likewise.
12753 (grub_cpu_to_be32_compile_time): Likewise.
12754 (grub_cpu_to_be64_compile_time): Likewise.
12755 (grub_be_to_cpu64_compile_time): Likewise.
12756
215c1800
VS
127572011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12758
12759 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
12760 UINT_TO_PTR with cast.
12761
c17e546c
VS
127622011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12763
12764 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12765 don't use them.
12766
ff6b18b6
VS
127672011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12770 already there.
12771
70ffcc93
VS
127722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12775 confusing ipxe.
12776
e5f4d260
VS
127772011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12778
12779 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12780 Add missing const attribute.
12781 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12782 Likewise.
12783 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12784 Likewise.
12785
8e54b4b7
VS
127862011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12789 misaligned access.
12790 (serpent_setkey): Likewise.
12791 (serpent_encrypt_internal): Likewise.
12792 (serpent_decrypt_internal): Likewise.
12793 (serpent_encrypt): Don't put an alignment-increasing cast.
12794 (serpent_decrypt): Likewise.
12795 (serpent_test): Likewise.
12796
813c0a2b
VS
127972011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12800
f2b60fbd
VS
128012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12804
12805 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12806 grub_addr_t casts.
12807 (PTR_TO_UINT64): Likewise.
12808 (PTR_TO_UINT32): Likewise.
12809
5ef5c511
VS
128102011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12813 because of stack.
12814 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12815 limit.
12816
c476e6df
VS
128172011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12818
12819 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12820 text_width > available width a bit more gracefully.
12821
384ad7cc
VS
128222011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12825 current address calculation.
12826
96f8caf8
VS
128272011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12828
12829 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12830 stack.
12831 (encode_block): Likewise.
12832
276b7a8b
VS
128332011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12836 certainety.
12837
e3fd394a
VS
128382011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12841 non-RS part to avoid RS messing with GDT.
12842 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12843 Increase to suit in realmode routines.
12844
128452011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * grub-core/kern/i386/realmode.S: Increase alignment.
12848 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12849
ee9c2e7a
VS
128502011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12853 be deterministic.
12854 (syndroms): Compute 0 syndrom.
12855 (rs_recover): Use 0 syndrom.
12856
7a7f7cc9
VS
128572011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12858
12859 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12860
a14b16d1
VS
128612011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12864 brackets.
12865
9f59e9fc
VS
128662011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12867
ca1b552c
VS
12868 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12869 account.
12870 (get_top_pad): Likewise.
12871 (get_right_pad): Likewise.
12872 (get_bottom_pad): Likewise.
12873
128742011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 12877
e739d698
VS
128782011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12879
12880 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12881 attribute as the structure isn't guaranteed to be properly aligned.
12882 (grub_efi_pci_device_path): Likewise.
12883 (grub_efi_pccard_device_path): Likewise.
12884 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12885 specify the size of `memory_type'.
12886 (grub_efi_vendor_device_path): Likewise.
12887 (grub_efi_controller_device_path): Likewise.
12888 (grub_efi_acpi_device_path): Likewise.
12889 (grub_efi_expanded_acpi_device_path): Likewise.
12890 (grub_efi_atapi_device_path): Likewise.
12891 (grub_efi_scsi_device_path): Likewise.
12892 (grub_efi_fibre_channel_device_path): Likewise.
12893 (grub_efi_1394_device_path): Likewise.
12894 (grub_efi_usb_device_path): Likewise.
12895 (grub_efi_usb_class_device_path): Likewise.
12896 (grub_efi_i2o_device_path): Likewise.
12897 (grub_efi_mac_address_device_path): Likewise.
12898 (grub_efi_ipv4_device_path): Likewise.
12899 (grub_efi_ipv6_device_path): Likewise.
12900 (grub_efi_infiniband_device_path): Likewise.
12901 (grub_efi_uart_device_path): Likewise.
12902 (grub_efi_vendor_messaging_device_path): Likewise.
12903 (grub_efi_hard_drive_device_path): Likewise.
12904 (grub_efi_cdrom_device_path): Likewise.
12905 (grub_efi_vendor_media_device_path): Likewise.
12906 (grub_efi_file_path_device_path): Likewise.
12907 (grub_efi_protocol_device_path): Likewise.
12908 (grub_efi_piwg_device_path): Likewise.
12909 (grub_efi_bios_device_path): Likewise.
12910
cb8f88ea
VS
129112011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12914 (grub_ucs4_to_utf8_alloc): Likewise.
12915 (grub_ucs4_to_utf8): Likewise.
12916 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12917 (grub_ucs4_to_utf8_alloc): Likewise.
12918
309e5352
VS
129192011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 AFFS never uses unicode.
12922
12923 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12924 (grub_latin1_to_utf8): New inline function.
12925 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12926
e7987e1b
VS
129272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12928
12929 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12930 overflow.
12931
efc2616e
VS
129322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12935 (grub_squash_dirent_header): Likewise.
12936 (read_chunk): Don't double swap.
12937 (grub_squash_iterate_dir): Fix swap sizes.
12938
3c349f5a
VS
129392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12942
b453412d
VS
129432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12946 (grub_hfs_iterate_dir): Likewise.
12947
12e9d4d1
VS
129482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 Fix video on platforms where unaligned access is forbidden.
12951 Make several optimisations while on it.
12952
12953 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12954 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12955 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12956 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12957 Disable.
12958 (grub_video_fbblit_replace_16bit_1bit):
12959 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12960 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12961 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12962 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12963 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12964 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12965 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12966 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12967 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12968 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12969 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12970 (grub_video_fbblit_replace_index_RGB888): Likewise.
12971 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12972 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12973 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12974 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12975 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12976 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12977 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12978 Disable.
12979 (grub_video_fbblit_blend_XXX565_1bit):
12980 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12981 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12982 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12983 void *.
12984 * grub-core/video/fb/video_fb.c (common_blitter)
12985 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12986 (grub_video_fb_create_render_target_from_pointer)
12987 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12988 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12989 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12990 definition.
12991 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12992
ace96609
VS
129932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12994
12995 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12996 HH22 and HM10 relocations.
12997
fd261d73
VS
129982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12999
13000 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
13001
e59b7857
VS
130022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
13005 allocation succeeded.
13006
9b4baaa4
VS
130072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
13010 argument a u8 pointer. All users updated.
13011 Handle unaligned buffers.
13012
dc713193
VS
130132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
13016 add_part to workaround compiler bug.
13017
30dd48c2
VS
130182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
13021
0c6087a8
VS
130222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13023
13024 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
13025 Reserve alignment invariants.
13026 (grub_multiboot_load): Likewise.
13027 (retrieve_video_parameters): Likewise.
13028 (grub_multiboot_make_mbi): Likewise.
13029
c2e77777
VS
130302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13031
13032 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
13033 incorrect pointer.
13034
b70b6d11
VS
130352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
13038 (grub_pata_pio_write): Likewise.
13039
02a2bf83
VS
130402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 Add noreturn attributes and remove unreachable code.
13043
13044 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
13045 code.
13046 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
13047 code. Mark as noreturn.
13048 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
13049 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
13050 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
13051 unreachable code.
13052 * grub-core/kern/main.c (grub_main): Mark as noreturn.
13053 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
13054 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
13055 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
13056 * include/grub/kernel.h (grub_main): Mark as noreturn.
13057 * include/grub/reader.h (grub_rescue_run): Likewise.
13058
2019d09e
VS
130592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13060
13061 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
13062 redundant declaration.
13063
d1c501ee
VS
130642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 * include/grub/net.h (grub_net_network_level_interfaces): Remove
13067 redundant declaration.
13068 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
13069
61664420
VS
130702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
13073 to ensure alignment.
13074 (grub_hdparm_print_identify): Make argument uint16 * to ensure
13075 alignment. Ensure tmp alignment.
13076 (grub_cmd_hdparm): Ensure buf alignment.
13077 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
13078 to ensure alignment.
13079 (grub_ata_dumpinfo): Ensure text alignment.
13080 (grub_atapi_identify): Preserve alignment invariant.
13081 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
13082
0d51ee20
VS
130832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
13086 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
13087 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
13088 * include/grub/misc.h (grub_reboot)
13089 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
13090 (grub_halt) [__mips__]: Likewise.
13091
753ef8c1
VS
130922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
13095 Remove redundant declaration.
13096 (grub_mmap_get_post64): Likewise.
13097 (grub_mmap_get_upper): Likewise.
13098 (grub_mmap_get_lower): Likewise.
13099
85c85365
VS
131002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13101
13102 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
13103 uint32_t * to ensure alignment.
13104 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
13105
a23f2cc4
VS
131062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13107
93018f64
VS
13108 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
13109 uint16_t * to ensure alignment.
13110 (sun_pc_partition_map_iterate): Make `block' a union to ensure
13111 alignment.
13112
131132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
13116 to ensure alignment.
13117 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
13118
58acccd6
VS
131192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 * grub-core/fs/ntfs.c (u16at): Make into inline function.
13122 Handle unaligned pointers.
13123 (u32at): Likewise.
13124 (u64at): Likewise.
13125 (fixup): Use byte access instead of v16at.
13126 (find_attr): Fix imporper usage of v32at.
13127 (read_data): Likewise.
13128 (list_file): Handle byte-swapping and unaligned strings.
13129 (grub_ntfs_label): Likewise.
13130
9b05cad7
VS
131312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
13134 as it's not necessarily aligned.
13135
b3950b84
VS
131362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
13139 redundant declaration.
13140 (grub_serial_init): Likewise.
13141 (grub_terminfo_init): Likewise.
13142
fcd232b7
VS
131432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13144
13145 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
13146 function.
13147 (ZAP_HASH_IDX): Likewise.
13148 (ZAP_LEAF_HASH_SHIFT): Likewise.
13149 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
13150 (LEAF_HASH): Likewise.
13151 (ZAP_LEAF_NUMCHUNKS): Likewise.
13152 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
13153 alignment invariants. Return pointer. All users updated.
13154 (ZAP_LEAF_ENTRY): Make into inline function.
13155 (NBBY): Removed.
13156 (xor): LIkewise.
13157 (xor_out): Use grub_crypto_xor.
13158 (dnode_get_path): Use grub_get_unaligned.
13159 (nvlist_find_value): Likewise.
13160 (grub_zfs_nvlist_lookup_uint64): Likewise.
13161 (grub_zfs_nvlist_lookup_string): Likewise.
13162 (get_nvlist_size): Likewise.
13163 (grub_zfs_open): Likewise.
13164 (fill_fs_info): Likewise.
13165 (grub_zfs_dir): Likewise.
13166 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
13167 alignment invariants.
13168 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
13169 necessarily aligned.
13170
f138623a
VS
131712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
13174
564840dc
VS
131752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
13178 arithmetic to conserve alignment invariants.
13179
9b40df20
VS
131802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
13183 redundant declaration.
13184 (grub_efiemu_mm_obtain_request): Likewise.
13185 (grub_efiemu_prepare): Likewise.
13186
d1c930f9
VS
131872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13188
13189 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
13190 to match types.
13191
4c5f3056
VS
131922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
13195 case of aunaligned recptr.
13196 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
13197 alignment.
13198 (grub_hfsplus_btree_search): Handle unaligned index.
13199
728cba91
VS
132002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13201
13202 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
13203 to get freetag and skip.
13204
eb561f31
VS
132052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
13208 array.
13209 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
13210 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
13211
20993fbb
VS
132122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13213
13214 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
13215 name for checksum and fix allocation algorithm.
13216
1f313b94
VS
132172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13218
13219 * include/grub/types.h (grub_properly_aligned_t): New type.
13220 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
13221 (grub_get_unaligned16): Add explicit casts.
13222 (grub_get_unaligned32): Likewise.
13223 (grub_get_unaligned64): Likewise.
13224 (grub_set_unaligned16): New function.
13225 (grub_set_unaligned32): Likewise.
13226
47ae27ec
VS
132272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13228
13229 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13230
78c2cd1c
VS
132312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
13234 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
13235 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
13236
53072f9b
VS
132372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
13240 conditionals.
13241
055dc239
VS
132422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
13245 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
13246
496bd074
VS
132472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 Unify and improve RAID and crypto xor.
13250
13251 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
13252 changed to grub_crypto_xor
13253 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
13254 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
13255 Use bigger types when possible.
13256
ef6e4335
VS
132572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/disk/raid.c (scan_devices): Fix condition.
13260
5d048bf2
VS
132612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
13264 Make name a const ptr.
13265
ee533335
VS
132662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
13269 first argument a const pointer.
13270 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13271 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
13272 proto.
13273 (grub_children_iterate): Likewise.
13274 (grub_machine_mmap_iterate): Remove redundant declaration.
13275
cc8f3668
VS
132762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
13279 (grub_cmd_acpi) [!x86]: Disable EBDA.
13280
c5fc563a
VS
132812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 Enable UTF8 in gnulib regexp.
13284
13285 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
13286 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
13287 (isupper): Use grub_isupper.
13288 (isascii): New inline function.
13289 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
13290 * grub-core/lib/posix_wrap/wctype.h: Likewise.
13291 * grub-core/normal/charset.c (grub_utf8_process): New function.
13292 (grub_utf8_to_utf16): Use grub_utf8_process.
13293 (grub_encode_utf8_character): New function.
13294 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
13295 * include/grub/charset.h (grub_utf8_process): New declaration.
13296 (grub_encode_utf8_character): Likewise.
13297 * include/grub/misc.h (grub_islower): New inline function.
13298 (grub_isupper): Likewise.
13299 (grub_strchrsub): Moved down to fix the definitions.
13300
0af2346f
VS
133012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
13304 specification.
13305
74dbd244
VS
133062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13307
13308 * include/grub/loader.h (grub_loader_register_preboot_hook):
13309 Use struct preboot * and not void * for handle. All users updated.
13310 (grub_loader_unregister_preboot_hook): Likewise.
13311
1bc8f60d
VS
133122011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
13315 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
13316 UTF-16-BE. All users updated.
13317 (grub_hfsplus_cmp_catkey): Fix unicode handling.
13318 (grub_hfsplus_iterate_dir): Likewise.
13319 (grub_hfsplus_label): Likewise.
13320
48d6e456
VS
133212011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
13324
bf3a3857
VS
133252011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 Add missing const qualifiers.
13328
13329 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
13330 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
13331 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
13332 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
13333 (grub_lvm_check_flag): Likewise.
13334 * grub-core/efiemu/i386/coredetect.c
13335 (grub_efiemu_get_default_core_name): Likewise
13336 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13337 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
13338 * grub-core/fs/ntfs.c (fixup): Likewise.
13339 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
13340 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
13341 (fzap_lookup): Likewise.
13342 (zap_lookup): Likewise.
13343 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
13344 * grub-core/lib/legacy_parse.c (check_option): Likewise.
13345 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
13346 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
13347 (grub_freebsd_add_meta_module): Likewise.
13348 (grub_cmd_freebsd_module): Likewise.
13349 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
13350 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
13351 (grub_xnu_writetree_get_size): Likewise.
13352 (grub_xnu_writetree_toheap_real): Likewise.
13353 (grub_xnu_find_key): Likewise.
13354 (grub_xnu_create_key): Likewise.
13355 (grub_xnu_create_value): Likewise.
13356 (grub_xnu_register_memory): Likewise.
13357 (grub_xnu_check_os_bundle_required): Likewise.
13358 (grub_xnu_scan_dir_for_kexts): Likewise.
13359 (grub_xnu_load_kext_from_dir): Likewise.
13360 * grub-core/normal/color.c (color_list): Likewise.
13361 * grub-core/normal/completion.c (current_word): Likewise.
13362 * grub-core/normal/menu_entry.c (insert_string): Likewise.
13363 * grub-core/term/serial.c (grub_serial_find): Likewise.
13364 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
13365 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
13366 Likewise.
13367 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
13368 (grub_freebsd_add_meta_module): Likewise.
13369 * include/grub/lib/arg.h (grub_arg_option): Likewise.
13370 * include/grub/net.h (grub_net_card_driver): Likewise.
13371 (grub_net_card): Likewise.
13372 (grub_net_app_protocol): Likewise.
13373 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
13374 * include/grub/serial.h (grub_serial_find): Likewise.
13375 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
13376 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
13377 (grub_xnu_create_value): Likewise.
13378 (grub_xnu_find_key): Likewise.
13379 (grub_xnu_scan_dir_for_kexts): Likewise.
13380 (grub_xnu_load_kext_from_dir): Likewise.
13381
13382 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
13383 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
13384 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
13385 Moved from here ...
13386 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
13387
112b4837
CW
133882011-11-28 Colin Watson <cjwatson@ubuntu.com>
13389
13390 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
13391
49e891ac
VS
133922011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
13395 (read_device): Fix size calculation.
13396
fd258e5c
RM
133972011-11-25 Robert Millan <rmh@gnu.org>
13398
13399 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
13400 (find_root_device_from_libzfs): Add zpool output parser to be used
13401 as fallback when libzfs isn't available.
13402
78845dc2
SG
134032011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
13404
13405 * po/Makefile.in.in: Add missing escape-continuation.
13406
adac5211
VS
134072011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
13410
10b64f1c
VS
134112011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
13414
bb416954
VS
134152011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
13418
bdfe9eeb
VS
134192011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
13422
581ffa8a
VS
134232011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * grub-core/lib/adler32.c: Add missing license specification.
13426 * grub-core/lib/crc64.c: Likewise.
13427 * grub-core/loader/i386/pc/plan9.c: Likewise.
13428 * grub-core/partmap/plan.c: Likewise.
13429
2536cf64
LK
134302011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
13431
13432 Add facility to debug GRUB with gdb under qemu.
13433
13434 * grub-core/gdb_grub.in: New file.
13435 * grub-core/gmodule.pl.in: Likewise.
13436 * grub-core/Makefile.core.def (gmodule.pl): New script.
13437 (gdb_grub): Likewise.
13438
bc108a4a
VS
134392011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 * util/grub-mount.c (argp_parser): Accept relative pathes.
13442 * util/grub-fstest.c (argp_parser): Likewise.
13443
111c1778
VS
134442011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 Plan9 support.
13447
13448 * Makefile.util.def (libgrubmods): Add
13449 grub-core/partmap/plan.c.
13450 * docs/grub.texi: Notice Plan9 support.
13451 * grub-core/Makefile.core.def (plan9): New module.
13452 (part_plan): Likewise.
13453 * grub-core/loader/i386/pc/plan9.c: New file.
13454 * grub-core/partmap/plan.c: Likewise.
13455 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
13456 define.
13457 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
13458 * include/grub/mm.h (grub_extend_alloc): New inline function.
13459
c30be3b6
VS
134602011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 Make Reed-Solomon faster by using power of generator representation of
13463 GF(256)*.
13464
13465 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
13466 (gf_double_t): Likewise.
13467 (gf_invert): Removed.
13468 (gf_powx): New array.
13469 (gf_powx_inv): Likewise.
13470 (scratch): Move higher.
13471 (gf_reduce): Removed.
13472 (gf_mul): Use powx.
13473 (gf_invert): Likewise.
13474 (init_inverts): Replaced with ...
13475 (init_powx): ...this. All users updated.
13476 (pol_evaluate): Replace multiplications with additions.
13477 (rs_encode): Likewise.
13478 (gauss_eliminate): Call gf_invert.
13479 (grub_reed_solomon_add_redundancy): Call init_powx.
13480 (grub_reed_solomon_recover): Call init_powx unconditionally.
13481
fa5aeffc
VS
134822011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13483
13484 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
13485
a346b81c
VS
134862011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
13489 disk->partiton for safety.
13490
d89ee414
VS
134912011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13494 Fix a memory leak.
13495 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
13496
91ee7b6d
VS
134972011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13498
13499 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
13500
91e5a33d
VS
135012011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
13504
9edd7be2
VS
135052011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13506
13507 Fix spaces handling in proc/self/mountinfo.
13508
13509 * util/getroot.c (unescape): New function.
13510 (grub_find_root_device_from_mountinfo): Use unescape.
13511
ba102053
VS
135122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 Support ZFS embedding.
13515
13516 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
13517 (grub_zfs_fs): Register grub_zfs_embed.
13518
aa94b870
VS
135192011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 Fix MIPS compilation.
13522
13523 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
13524 * include/grub/offsets.h: Rename decompressor fields from
13525 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
13526 * util/grub-mkimage.c (image_targets): Use new names.
13527
5fbdac14
VS
135282011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 Defer multiboot device parsing until we're in compressed part.
13531
13532 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
13533 bsd_part. setdevice has fallen into disuse.
13534 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
13535 (bsd_part): Likewise.
13536 (boot_dev): New variable.
13537 (multiboot_trampoline): Don't parse multiboot device.
13538 Pass multiboot device in %edx.
13539 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
13540 grub_boot_device.
13541 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
13542 Likewise.
13543 * grub-core/kern/i386/pc/startup.S: Save edx.
13544 (grub_boot_drive): Removed.
13545 (grub_install_dos_part): Likewise.
13546 (grub_install_bsd_part): Likewise.
13547 (grub_boot_device): New variable.
13548 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
13549 (grub_install_bsd_part): Likewise.
13550 (grub_boot_drive): Likewise.
13551 (grub_boot_device): New variable.
13552 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
13553 Removed.
13554 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13555 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
13556 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
13557 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
13558 * util/grub-install.in: Remove redundant condition.
13559
691cbb58
VS
135602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 Fix bug introduced by previous commit.
13563
13564 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
13565
60240b8b
VS
135662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 Use decompressors framework on i386-pc. It increases core size
13569 by 46 bytes but improves compatibility and maintainability.
13570
13571 * grub-core/Makefile.core.def (lzma_decompress): New image.
13572 (kernel): Add i386_pc_ldflags.
13573 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
13574 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
13575 to real_to_prot, prot_to_real and device info.
13576 * include/grub/offsets.h: Renamed decompressor offsets.
13577 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
13578 (image_target_desc): Remove raw_size and rename decompressor fields.
13579 (compress_kernel): Handle lzma.
13580 (generate_image): Handle decompressors on i386-pc.
13581
e9d3421c
VS
135822011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13583
13584 * configure.ac: Add -fno-asynchronous-unwind-tables.
13585
2b23074a
VS
135862011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 Move assembly code to C by using intwrap. It increases core size
13589 by 88 bytes but improves compatibility and maintainability.
13590
13591 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
13592 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
13593 ... here. Translated to C.
13594 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
13595 * grub-core/term/i386/pc/console.c (grub_console_getkey):
13596 ... here. Translated to C.
13597 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
13598 * grub-core/term/i386/pc/console.c (grub_console_getxy):
13599 ... here. Translated to C.
13600 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
13601 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
13602 ... here. Translated to C.
13603 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
13604 * grub-core/term/i386/pc/console.c (grub_console_cls):
13605 ... here. Translated to C.
13606 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
13607 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
13608 ... here. Translated to C.
13609 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
13610 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
13611 Translated to C.
13612 * grub-core/term/i386/pc/console.c (int10_9): New function.
13613 (grub_console_putchar): Likewise.
13614 * include/grub/i386/pc/console.h: Removed the not anymore shared
13615 functions.
13616
678f4b67
VS
136172011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 Move grub_chainloader_real_boot out of the kernel.
13620
13621 * grub-core/Makefile.am: Remove machine/loader.h.
13622 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13623 Removed.
13624 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
13625 variable.
13626 (grub_relocator16_keep_a20_enabled): Likewise.
13627 (grub_relocator16_boot): Fill new variables.
13628 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
13629 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
13630 relocator.
13631 (grub_chainloader_unload): Likewise.
13632 (grub_chainloader_cmd): Likewise.
13633 * include/grub/i386/pc/loader.h: Removed.
13634 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
13635 and esi. All initialisers updated.
13636
4626edf6
VS
136372011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
136382011-11-12 Colin Watson <cjwatson@ubuntu.com>
13639
13640 * Makefile.util.def (grub-mount): New util.
13641 * .bzrignore: Add grub-mount.
13642 * configure.ac: Check for fuse and enable grub-mount if available.
13643 * docs/man/grub-mount.h2m: New file.
13644 * util/grub-mount.c: Likewise.
13645
10f0117b
VS
136462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13647
13648 * grub-core/commands/efi/fixvideo.c: Gettextize.
13649 * grub-core/commands/hashsum.c: Likewise.
13650 * grub-core/commands/i386/cmostest.c: Likewise.
13651 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13652 * grub-core/commands/i386/pc/lsapm.c: Likewise.
13653 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13654 * grub-core/commands/lsmmap.c: Likewise.
13655 * grub-core/commands/menuentry.c: Likewise.
13656 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
13657 * grub-core/commands/setpci.c: Likewise.
13658 * grub-core/loader/i386/bsd.c: Likewise.
13659 * grub-core/loader/i386/linux.c: Likewise.
13660 * util/getroot.c: Likewise.
13661 * util/grub-editenv.c: Likewise.
13662 * util/grub-fstest.c: Likewise.
13663 * util/grub-mkfont.c: Likewise.
13664 * util/grub-mkimage.c: Likewise.
13665 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13666 * util/grub-pe2elf.c: Likewise.
13667 * util/grub-probe.c: Likewise.
13668 * util/grub-setup.c: Likewise.
13669 * util/ieee1275/ofpath.c: Likewise.
13670 * util/misc.c: Likewise.
13671 * util/raid.c: Likewise.
13672
566f779b
RM
136732011-11-11 Robert Millan <rmh@gnu.org>
13674
13675 * util/getroot.c (grub_util_get_geom_abstraction): Remove
13676 __attribute__((unused)) from `os_dev', which *is* being used.
13677
b50787de
VS
136782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13679
13680 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
13681 forgotten define.
13682 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
13683 GRUB_IA64_DL_GOT_ALIGN.
13684 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
13685 GRUB_IA64_DL_TRAMP_ALIGN.
13686
119d11c8
VS
136872011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13688
13689 Replace grub_fatal with normal errors in i386 linux loader.
13690
13691 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
13692 (allocate_pages): Check find_efi_mmap_size return value.
13693 (grub_e820_add_region): Return error.
13694 (grub_linux_boot): Check mmap return value.
13695
6e0632e2
VS
136962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * grub-core/commands/acpihalt.c: Gettextized.
13699 * grub-core/commands/cacheinfo.c: Likewise.
13700 * grub-core/commands/cmp.c: Likewise.
13701 * grub-core/commands/efi/loadbios.c: Likewise.
13702 * grub-core/commands/gptsync.c: Likewise.
13703 * grub-core/commands/ieee1275/suspend.c: Likewise.
13704 * grub-core/commands/legacycfg.c: Likewise.
13705 * grub-core/commands/memrw.c: Likewise.
13706 * grub-core/commands/minicmd.c: Likewise.
13707 * grub-core/commands/parttool.c: Likewise.
13708 * grub-core/commands/time.c: Likewise.
13709 * grub-core/commands/videoinfo.c: Likewise.
13710 * grub-core/disk/geli.c: Likewise.
13711 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
13712 * grub-core/disk/luks.c: Likewise.
13713 * grub-core/disk/lvm.c: Likewise.
13714 * grub-core/font/font_cmd.c: Likewise.
13715 * grub-core/fs/zfs/zfscrypt.c: Likewise.
13716 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13717 * grub-core/gfxmenu/view.c: Likewise.
13718 * grub-core/kern/emu/hostdisk.c: Likewise.
13719 * grub-core/kern/emu/main.c: Likewise.
13720 * grub-core/kern/emu/misc.c: Likewise.
13721 * grub-core/kern/emu/mm.c: Likewise.
13722 * grub-core/kern/mips/arc/init.c: Likewise.
13723 * grub-core/kern/mips/loongson/init.c: Likewise.
13724 * grub-core/kern/partition.c: Likewise.
13725 * grub-core/lib/i386/halt.c: Likewise.
13726 * grub-core/lib/mips/arc/reboot.c: Likewise.
13727 * grub-core/lib/mips/loongson/reboot.c: Likewise.
13728 * grub-core/loader/i386/pc/chainloader.c: Likewise.
13729 * grub-core/loader/i386/xnu.c: Likewise.
13730 * grub-core/loader/multiboot.c: Likewise.
13731 * grub-core/net/bootp.c: Likewise.
13732 * grub-core/net/net.c: Likewise.
13733 * grub-core/normal/term.c: Likewise.
13734 * grub-core/partmap/bsdlabel.c: Likewise.
13735 * grub-core/parttool/msdospart.c: Likewise.
13736 * grub-core/term/gfxterm.c: Likewise.
13737 * grub-core/term/terminfo.c: Likewise.
13738 * grub-core/video/i386/pc/vbe.c: Likewise.
13739 * util/grub-menulst2cfg.c: Likewise.
13740 * util/grub-mkdevicemap.c: Likewise.
13741 * util/grub-mklayout.c: Likewise.
13742 * util/grub-mkrelpath.c: Likewise.
13743 * util/grub-script-check.c: Likewise.
13744 * util/ieee1275/grub-ofpathname.c: Likewise.
13745 * util/resolve.c: Likewise.
13746
073aa7a9
VS
137472011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 Support %1$d syntax.
13750
13751 * tests/printf_unit_test.c: New file.
13752 * Makefile.util.def (printf_test): New test.
13753 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
13754
c76b5417
VS
137552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
13758 fix.
13759
df067ad1
VS
137602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
13763 dprintf.
13764 * grub-core/font/font.c (grub_font_load): Likewise.
13765
5b289bc5
VS
137662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * util/grub-macho2img.c: Add comment concerning gettext.
13769 * grub-core/lib/legacy_parse.c: Likewise.
13770
c1860f87
VS
137712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13772
13773 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13774 (grub_xvasprintf): Likewise.
13775
d35d0d37
VS
137762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 Add const keyword to grub_env_get and gettextize week days.
13779
13780 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13781 (grub_read_hook_datetime): Return const char *.
13782 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13783 updated.
13784 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13785 Mark for gettext.
13786 (grub_get_weekday_name): Return const char *. Call gettext.
13787 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13788 char * and len as the argument. All users updated.
13789 (grub_script_argv_split_append): Receive const char *.
13790 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13791 * include/grub/env.h (grub_env_get): Likewise.
13792 (grub_env_read_hook_t): Return const char *.
13793 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13794 (grub_script_argv_split_append): Likewise.
13795
9aed8a71
VS
137962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13799
067fdf00
VS
138002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13803 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13804
a8bd9d39
VS
138052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13808 Fix prototype.
13809
f7ce5baf
VS
138102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 Fix mips compilation.
13813
13814 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13815 normal decoder.
13816 (hashes): Use in embed decoder as well (for sizes).
13817 (dec_stream_header): Fix embed decompressor logic.
13818 (dec_stream_footer): Likewise.
13819
9bb182f3
VS
138202011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13823 an error and not a fatal on unrecognised relocation types.
13824
63a9e6f6
VS
138252011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13828 Issue error rather than printf on unknown arguments.
13829
4c458569
VS
138302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13833 Make buf a const.
13834
e2d22baf
VS
138352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13836
13837 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13838 Fix module name.
13839
53dc8590
VS
138402011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13843 leftover debug printf.
13844
6c189294
VS
138452011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13848
f7688369
VS
138492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13852 A stylistic fix.
13853
11a775a3
VS
138542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13855
13856 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13857
33f784e8
SL
138582011-11-10 Shea Levy <slevy@tieronedesign.com>
13859
13860 Allow all modules to perform serial IO
13861
13862 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13863 * include/grub/serial.h (grub_serial_port_configure): New inline
13864 function.
13865 (grub_serial_port_fetch): Likewise.
13866 (grub_serial_port_put): Likewise.
13867 (grub_serial_port_fini): Likewise.
13868 (grub_serial_find): New proto.
13869
f6276525
VS
138702011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 Put symlink at the end of the node and fix a potential
13873 memory corruption.
13874
13875 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13876 Make symlink into an array.
13877 (set_rockridge): Set have_symlink and alloc_dirents.
13878 (grub_iso9660_read_symlink): Use new layout.
13879 (grub_iso9660_iterate_dir): Fix memory corruption.
13880 Use new layout.
13881 (grub_iso9660_dir): Set have_symlink.
13882 (grub_iso9660_open): Likewise.
13883
c3591189
VS
138842011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13885
13886 Remove local keyword.
13887
13888 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13889 (version_test_gt): Likewise.
13890 (version_find_latest): Likewise.
13891 (gettext_printf): Likewise.
13892 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13893
cb544caa
VS
138942011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13897
45bd824d
VS
138982011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 Fix ZFS memory and resource leaks.
13901
13902 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13903 All users updated.
13904 Free type on exit.
13905 (fill_vdev_info): New parameter inserted. All users updated.
13906 (check_pool_label): Likewise.
13907 (scan_disk): Likewise.
13908 (scan_devices): Close non-inserted disks.
13909 (fzap_iterate): Free l.
13910 (unmount_device): Free children descripto memory.
13911
ad9a2f44
VS
139122011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13915 argument (access out of bounds).
13916
6b68db81
VS
139172011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13920 >= 6 drives.
13921
28840fda
VS
139222011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13925 Fix declaration.
13926
8a5a3a5b
VS
139272011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 Fix several memory leaks.
13930
13931 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13932 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13933 (grub_cpio_dir): Likewise.
13934 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13935 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13936 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13937 (grub_romfs_label): Likewise.
13938 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13939 (squash_unmount): New function.
13940 (grub_squash_dir): Fix memory leak.
13941 (grub_squash_open): Likewise.
13942 (grub_squash_read): Likewise.
13943 (grub_squash_mtime): Likewise.
13944 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13945 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13946 * util/grub-fstest.c (fstest): Likewise.
13947
57b01250
VS
139482011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13951 avoid accessing beyond the array.
13952
19e81ba7
VS
139532011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13954
13955 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13956
52b656c0
VS
139572011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 Several AFFS fixes.
13960
13961 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13962 (GRUB_AFFS_FLAG_FFS): Removed.
13963 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13964 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13965 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13966 (grub_fshelp_node): Make block 32-bit.
13967 Add block_cache and last_block_cache.
13968 (grub_affs_read_block): Fill and use block cache.
13969 (grub_affs_read_file): Removed.
13970 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13971 boot block.
13972 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13973 safety.
13974 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13975 space.
13976 (grub_affs_close): Free block cache.
13977 (grub_affs_read): Use grub_fshelp_read_file directly.
13978
438a746a
VS
139792011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13982 with no error set.
13983
49a45021
VS
139842011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13985
13986 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13987 used variable.
13988 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13989 Likewise.
13990
3ae17eb8
VS
139912011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13994
13995 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13996 byteswap when needed.
13997
27610c38
VS
139982011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13999
14000 Fix FreeBSD compilation.
14001
14002 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
14003 to avoid circular dependency.
14004 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
14005 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
14006 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
14007
4a19b601
VS
140082011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 Fix ZFS crypto error types.
14011
14012 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
14013 (grub_gcm_decrypt): Likewise.
14014 (grub_zfs_load_key_real): Fix error code type. Handle possible error
14015 from PBKDF2.
14016
958ee221
VS
140172011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 Illumos support.
14020
14021 * Makefile.util.def (10_illumos): New script.
14022 * configure.ac: Set COND_HOST_ILLUMOS.
14023 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
14024 Support Illumos calls.
14025 (find_partition_start) [__sun__]: Likewise.
14026 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
14027 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
14028 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
14029 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
14030 device.
14031 * util/grub-probe.c (probe) [__sun__]: Do character check.
14032 * util/grub.d/10_illumos.in: New file.
14033
cac14fb6
VS
140342011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 Support escaped commas in hostdisk.
14037
14038 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
14039 (find_grub_drive): Use unescape_cmp.
14040 (make_device_name): Escape commas.
14041
78e08dc3
VS
140422011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
14045
9f421dd1
VS
140462011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
14049 variable.
14050
ed64e9e2
VS
140512011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 Support trampoline jumps on powerpc.
14054
14055 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
14056 __ia64__ path.
14057 (grub_dl_load_segments): Set mod->sz.
14058 (grub_dl_flush_cache): Flush whole space occupied by module, not just
14059 segments.
14060 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
14061 (jump): Likewise.
14062 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
14063 function.
14064 (trampoline): New struct.
14065 (trampoline_template): New const.
14066 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
14067 * include/grub/dl.h (grub_dl): Add sz element.
14068 [__powerpc__]: Follow __ia64__.
14069 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
14070 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
14071 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
14072 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
14073
3084ede4
VS
140742011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 ZFS crypto support.
14077
14078 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
14079 * grub-core/Makefile.core.def (zfscrypt): New module.
14080 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
14081 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
14082 it. All users updated.
14083 (grub_zfs_decrypt): New var.
14084 (grub_zfs_load_key): Likewise.
14085 (zio_checksum_functions): Add SHA256+MAC.
14086 (zio_checksum_verify): Handle incomplete comparison due to MAC.
14087 (zio_read): Handle encrypted blocks.
14088 (zap_verify): Remove incorrect check.
14089 (fzap_iterate): Handle non-standard fzap.
14090 (zap_iterate): Likewise.
14091 (zap_iterate_u64): New function.
14092 (dnode_get_fullpath): Load keys.
14093 * grub-core/fs/zfs/zfscrypt.c: New file.
14094 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
14095 (grub_crypto_ecb_encrypt): Make input const.
14096 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
14097 (grub_crypto_ecb_encrypt): Make input const.
14098 (GRUB_CIPHER_AES): New macro.
14099 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
14100 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
14101 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
14102 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
14103 prefix. All users updated.
14104 (grub_zfs_add_key): New proto.
14105 (grub_zfs_decrypt): Likewise.
14106 (grub_zfs_load_key): Likewise.
14107 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
14108 * util/grub-fstest.c (options): Add -K option.
14109 (argp_parser): Likewise.
14110
b632b404
VS
141112011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
14112
14113 Support zle compression on ZFS.
14114
14115 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
14116 (decomp_table): Add zle.
14117 * include/grub/zfs/zio.h (zio_compress): Add zle.
14118
c7ba4f69
VS
141192011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 Support BtrFS embedding.
14122
14123 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
14124 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
14125 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
14126 * util/grub-setup.c (setup): Use fs embedding if available.
14127 Add additional sanity check.
14128
455377d9
VS
141292011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 * util/grub-install.in: Fix condition for config_opt.
14132
c2fd16ca
VS
141332011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 Support third redundancy strip on raidz3.
14136
14137 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
14138 Return error on singularity. All users updated.
14139 (read_device): Don't stop on 3rd failure on raidz3.
14140
8622923b
VS
141412011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14142
14143 Support case-insensitive ZFS subvolumes.
14144
14145 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
14146 All users updated.
14147 (zap_hash): Likewise.
14148 (name_cmp): New function.
14149 (zap_leaf_array_equal): New parameter case_insensitive.
14150 All users updated.
14151 (zap_leaf_lookup): Likewise.
14152 (fzap_lookup): Likewise.
14153 (zap_lookup): Likewise.
14154 (dnode_get_path): New parameter case_insensitive. Retrieve case
14155 sensitiviness of a volume. All users updated.
14156 (dnode_get_fullpath): New parameter case_insensitive.
14157 All users updated.
14158 (grub_zfs_dir): Set info.case_insensitiveness.
14159
95f2e860
VS
141602011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 Support second redundancy strip on raidz(2,3).
14163
14164 * grub-core/fs/zfs/zfs.c (powx): New array.
14165 (powx_inv): Likewise.
14166 (poly): New const.
14167 (xor_out): New function.
14168 (gf_mul): Likewise.
14169 (recovery): Likewise.
14170 (read_device): Use second redundancy strip.
14171
11ee4389
VS
141722011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 Use a power of generator representation of GF(256) multiplication group
14175 to save space time and complexity.
14176
14177 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
14178 (raid6_table2): Likewise.
14179 (powx): New array.
14180 (powx_inv): Likewise.
14181 (poly): New const.
14182 (grub_raid_block_mul): Replace with ...
14183 (grub_raid_block_mulx): ...this.
14184 (grub_raid6_init_table): Rewritten.
14185 (grub_raid6_recover): Use power of generator representation.
14186
09e2763f
VS
141872011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14188
14189 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
14190 for the right device.
14191
8bec9a28
VS
141922011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
14195 expected by grub-mkimage and it's more clear since there is no implicit
14196 padding.
14197
dbd3a32e
VS
141982011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
14201 disk.
14202 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
14203
182c872a
PMH
142042011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
14205
14206 * util/grub-mkrescue.in: Fix handling xorriso option.
14207
1e51cabd
VS
142082011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
14211 NULL.
14212
9cc3581d 142132011-11-03 crocket <crockabiscuit@gmail.com>
14214
14215 * util/grub.d/10_linux.in: Add Slackware initrd naming.
14216
158dc1ea
VS
142172011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 XZ CRC64 and SHA256 support.
14220
14221 * Makefile.util.def (libgrubmods): Add crc64.c.
14222 * grub-core/Makefile.core.def (crc64): New module.
14223 * grub-core/lib/crc64.c: New file.
14224 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
14225 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
14226 Fix the type.
14227 (MAX_HASH_SIZE): New define.
14228 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
14229 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
14230 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
14231 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
14232 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
14233 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
14234 Handle non-crc32 hashes.
14235 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
14236 (dec_stream_header): Handle non-crc32 hashes.
14237 (dec_stream_footer): Likewise.
14238 (dec_block_header): Likewise.
14239 (dec_main): Likewise.
14240 (xz_dec_init): Likewise.
14241 (xz_dec_reset): Likewise.
14242 (xz_dec_end): Likewise.
14243 * util/import_gcry.py: Add CRC64 line.
14244
9d9b3d2f
VS
142452011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14246
14247 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
14248 as well.
14249
7d0ac931
VS
142502011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14251
14252 Make reiserfs label retrieval similar to other *_label functions.
14253
14254 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
14255 (REISERFS_MAX_LABEL_LENGTH): Removed.
14256 (REISERFS_LABEL_OFFSET): Likewise.
14257 (grub_reiserfs_label): Rewritten.
14258
142592011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
14262 field.
14263
cf5ba824
VS
142642011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14265
14266 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
14267
17744004
VS
142682011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
14271 drive failure on both raidz and raidz2.
14272
aca5aefc
VS
142732011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 Fix RAIDZ(2) for >= 5 devices.
14276
14277 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
14278 asize argument. All users updated.
14279
ce8ca56e
VS
142802011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 Fix RAIDZ(2).
14283
14284 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
14285 (fill_vdev_info_real): Set ashift.
14286 (read_device): Rewrite RAIDZ part based on reverse engineering.
14287
7c01e783
VS
142882011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
14291 don't report potentially unavialiable fields in debug output.
14292 (find_path): Fix double-free and memory leak.
14293
ce109e84
VS
142942011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 Read label on UFS1.
14297
14298 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
14299 (grub_ufs_fs): Always set .label.
14300
87661123
VS
143012011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 Use shifts in UFS.
14304
14305 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
14306 (grub_ufs_data): New field log2_blksz.
14307 (grub_ufs_read_file): Use shifts.
14308 (grub_ufs_mount): Check block size and logarithm it.
14309
46bc1dc2
VS
143102011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
14313 long symlinks.
14314
19ee2987
VS
143152011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14316
14317 Handle symlinks and long names on tar and cpio.
14318
14319 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
14320 (ATTR_FILE): Likewise.
14321 (ATTR_DIR): Likewise.
14322 (ATTR_LNK): Likewise.
14323 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
14324 (grub_cpio_find_file): Fill mode, handle linkname field as well as
14325 L and K entries.
14326 (grub_cpio_mount): Zero-fill data.
14327 (handle_symlink): New function.
46bc1dc2
VS
14328 (grub_cpio_dir): Handle symlinks.
14329 (grub_cpio_open): Likewise.
14330 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 14331
c83a08d8
VS
143322011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14333
14334 Fix iso9660 filename limitations and fix memory leaks.
14335
14336 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
14337 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
14338
45cdd3ea
VS
143392011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14340
14341 Fix JFS file name length limitations.
14342
14343 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
14344 (grub_jfs_diropen): Fix maximum filename length.
14345 (grub_jfs_getent): Fix filename length.
14346 (grub_jfs_lookup_symlink): Fix size checks.
14347
94ef05c2
VS
143482011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14349
14350 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
14351 string.
14352
785ab8c7
VS
143532011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14354
eb0b6b45
VS
14355 Leverage BFS implementation to read AFS.
14356
14357 * Makefile.util.def (libgrubmods): Add afs.c.
14358 * grub-core/Makefile.core.def (afs): New module
14359 * grub-core/fs/afs.c: New file.
14360 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
14361
143622011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 14365
c4a1628f
VS
143662011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * grub-core/fs/bfs.c: Run indent.
14369
5825b379
VS
143702011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14371
14372 BFS implementation based on the specification.
14373
14374 * grub-core/fs/bfs.c: New file.
14375 * Makefile.util.def (libgrubmods): Add bfs.c.
14376 * grub-core/Makefile.core.def (bfs): New module.
14377
42b2a706
VS
143782011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 * util/grub-fstest.c (cmd_cp): Clarify error message.
14381 (cmd_cmp): Likewise.
14382
61b99bfc
YB
143832011-10-30 Yves Blusseau <blusseau@zetam.org>
14384
14385 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
14386 and befs_be.
14387
faba3d16
VS
143882011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
14389
14390 Remove afs and befs because of copyright problem.
14391
14392 * grub-core/fs/afs.c: Removed.
14393 * grub-core/fs/afs_be.c: Removed.
14394 * grub-core/fs/befs.c: Removed.
14395 * grub-core/fs/befs_be.c: Removed.
14396 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
14397 * grub-core/Makefile.core.def (afs): Removed.
14398 (afs_be): Likewise.
14399 (befs): Likewise.
14400 (befs_be): Likewise.
14401
c39224b0
VS
144022011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14403
14404 Prefer rockridge over Joliet.
14405
14406 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
14407 to ...
14408 (set_rockridge): ... here.
14409 (grub_iso9660_mount): Check rockridge on the primary label when
14410 discovering. Ignore Joliet if Rockridge is present.
14411
e551115a
VS
144122011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14413
14414 Use shifts in nilfs2.
14415
14416 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
14417 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
14418 (grub_nilfs2_palloc_entries_per_group): Replace with ...
14419 (grub_nilfs2_log_palloc_entries_per_group): ... this.
14420 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
14421 (grub_nilfs2_entries_per_block): Replaced with ...
14422 (grub_nilfs2_log_entries_per_block_log): ... this.
14423 (grub_nilfs2_blocks_per_group): Replaced with ...
14424 (grub_nilfs2_blocks_per_group_log): ... this.
14425 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
14426 (grub_nilfs2_blocks_per_desc_block_log): ... this.
14427 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
14428 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
14429 (grub_nilfs2_palloc_entry_offset): Replaced ...
14430 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
14431 (grub_nilfs2_dat_translate): Use shifts.
14432 (grub_nilfs2_read_inode): Likewise.
14433 (GRUB_MOD_INIT): Ensure that logs are correct.
14434
564dd58c
VS
144352011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 Use shifts in minix filesystem.
14438
14439 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
14440 (GRUB_MINIX_ZONE2SECT): Likewise.
14441 (grub_minix_data): Replace block_size with log_block_size.
14442 (grub_minix_read_file): Use shifts.
14443 (grub_minix_mount): Check block size and take a logarithm.
14444
ed9ba06d
VS
144452011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14446
14447 Use shifts in squash4.
14448
14449 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
14450 (squash_mount): Check block size and take logarithm.
14451 (direct_read): Use shifts.
14452
ad03fe76
VS
144532011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 Correct befs block counting logic.
14456
14457 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
14458 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
14459 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
14460 (grub_afs_read_inode): Use block_shift.
14461 (RANGE_SHIFT): New definition.
14462 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
14463 unexpected conditions, use shifts and appropriate types.
14464 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
14465
6563f63d
VS
144662011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * grub-core/disk/raid.c (scan_devices): Check partition.
14469 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
14470
5b1ae25f
VS
144712011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 Support BFS (befs) UUID.
14474
14475 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
14476 (grub_afs_small_data_element_header): New struct.
14477 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
14478 (grub_afs_read_attribute) [MODE_BFS]: New function.
14479 (grub_afs_iterate_dir): Allocate for complete inode.
14480 (grub_afs_mount): Likewise.
14481 (grub_afs_uuid) [MODE_BFS]: New function.
14482 (grub_afs_fs) [MODE_BFS]: Add .uuid.
14483
f8d82408
VS
144842011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
14487 (zfs_unmount): Fix memory leak.
14488
5773fb64
VS
144892011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14490
14491 Support NTFS reparse points.
14492
14493 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
14494 (symlink_descriptor): New struct.
14495 (grub_ntfs_read_symlink): New function.
14496 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
14497 (grub_ntfs_open): Likewise.
14498
91c3fdde
VS
144992011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
14502
3be82e10
VS
145032011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 fstest xnu_uuid subcommand.
14506
14507 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
14508 grub-core/commands/xnu_uuid.c.
14509 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
14510 (fstest): Handle xnu_uuid.
14511 (options): Document xnu_uuid.
14512 (argp_parser): Parse xnu_uuid.
14513
8e32442e
VS
145142011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
14517 -l argument. Add newline at the end if printing.
14518 (GRUB_MOD_INIT): Document -l.
14519
52a05075
VS
145202011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
14523
1869edb5
VS
145242011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 ZFS multi-device and version 33 support.
14527
14528 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
14529 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
14530 (grub_zfs_data): Add multidev-ice-related fields.
14531 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
14532 (dva_get_offset): Make dva const.
14533 (zfs_fetch_nvlist): New function.
14534 (fill_vdev_info_real): Likewise.
14535 (fill_vdev_info): Likewise.
14536 (check_pool_label): Likewise.
14537 (scan_disk): Likewise.
14538 (scan_devices): Likewise.
14539 (read_device): Likewise.
14540 (read_dva): Likewise.
14541 (zio_read_gang): Use read_dva.
14542 (zio_read_data): Likewise.
14543 (zap_leaf_lookup): Add missing endian conversion.
14544 (zap_verify): Add missing endian conversion. All users updated.
14545 (fzap_lookup): Likewise.
14546 (fzap_iterate): Likewise.
14547 (dnode_get_path): Handle SA bonus.
14548 (nvlist_find_value): Make input const. All users updated.
14549 (unmount_device): New function.
14550 (zfs_unmount): Use unmount_device.
14551 (zfs_mount): Use scan_disk.
14552 (zfs_mtime): New function.
14553 (grub_zfs_open): Handle system attributes.
14554 (fill_fs_info): Likewise.
14555 (grub_zfs_dir): Likewise.
14556 (grub_zfs_fs): Add mtime.
14557 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
14558 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
14559 (SA_MTIME_OFFSET): Likewise.
14560 (SA_SYMLINK_OFFSET): Likewise.
14561 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
14562 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
14563 (fstest): Support zfsinfo.
14564 (argp_parser): Likewise.
14565
186b4028
VS
145662011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14567
14568 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
14569 error.
14570
145712011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
14572
14573 ZFS fixes.
14574
14575 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
14576 sharing the same block. Iterate over correct number of indices.
14577 (dnode_get_path): Handle symlinks correctly.
14578
c0584900
VS
145792011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14580
14581 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
14582
67e2bd71
VS
145832011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 Read label on HFS+.
14586
14587 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
14588 (grub_hfsplus_btree_search): Fix types.
14589 (grub_hfsplus_label): Implement.
14590
e9cc6b7b
VS
145912011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14592
14593 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
14594
19832ddb
VS
145952011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
14598
66b40850
VS
145992011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14600
14601 Fix symlink handling on iso9660.
14602
14603 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
14604 All users updated.
14605 (grub_iso9660_susp_iterate): Accept zero-size iterate.
14606 (grub_iso9660_read_symlink): Moved most of code ...
14607 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
14608
db821363
VS
146092011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14610
14611 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14612 Use union to avoid breaking strict-aliasing rules.
14613
e1211949
VS
146142011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 Support multi-extent iso files.
14617
14618 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
14619 Add node.
14620 (grub_fshelp_node): Revamp. All users updated.
14621 (FLAG_*): New enum.
14622 (read_node): New function.
14623 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
14624 All users updated.
14625 (grub_iso9660_mount): Don't attempt to read sua when there is none.
14626 (get_node_size): New function.
14627 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
14628 entries.
14629 Fix memory leak on . and ..
14630 (grub_iso9660_read): Use read_node.
14631 (grub_iso9660_close): Free node.
14632
d4888031
VS
146332011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Fix tar 4G limit and handle paths containing dot.
14636
14637 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
14638 (canonicalize): New function.
14639 (grub_cpio_find_file): Use canonicalize. Store offs in
14640 grub_disk_addr_t.
14641 (grub_cpio_dir): Use grub_disk_addr_t.
14642 (grub_cpio_open): Likewise.
14643
9f12e664
VS
146442011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14645
14646 Fix handling of uncompressed blocks on squashfs and break 4G limit.
14647
14648 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
14649 unused flags.
14650 (grub_squash_inode): Add long_file and block_size.
14651 (grub_squash_cache_inode): New struct.
14652 (grub_squash_dirent): Make types into enum.
14653 (SQUASH_TYPE_LONG_REGULAR): New type.
14654 (grub_squash_frag_desc): Add field size.
14655 (SQUASH_BLOCK_FLAGS): New enum.
14656 (grub_squash_data): Use grub_squash_cache_inode.
14657 (grub_fshelp_node): Make ino_chunk 64-bit.
14658 (read_chunk): Minor argument change. All users updated.
14659 (squash_mount): Use correct le_to_cpu.
14660 (grub_squash_open): Handle LONG_REGULAR.
14661 (direct_read): New function.
14662 (grub_squash_read_data): Handle blocks correctly.
14663
9f326fba
VS
146642011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
14667
f4d9b64b
VS
146682011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14669
14670 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
14671
5bbd28b8
VS
146722011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 Fix 2G limit on ZFS.
14675
14676 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
14677 types.
14678 (uberblock_verify): Likewise.
14679 (dmu_read): Likewise.
14680 (grub_zfs_read): Likewise. Remove invalid cast.
14681
68c72069
VS
146822011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
14685 (grub_jfs_blkno): Fix incorrect shift.
14686 (grub_jfs_read_file): Use more appropriate types.
14687
6e536dc8
VS
146882011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14689
14690 Support triple indirect on minix2 and minix3.
14691
14692 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
14693 Declare triple_indir_zone.
14694 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
14695 indirect.
14696
e0864e7a
VS
146972011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Minix FS fixes.
14700
14701 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
14702 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
14703 Rename ctime to mtime. All users updated.
14704 (grub_minix_get_file_block): Fix types and double indirect computations.
14705
89481cab
VS
147062011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
14709 if no label is found.
14710 (grub_fat_iterate_dir): Fix file size type.
14711 (grub_fat_iterate_dir): Likewise.
14712
f646e143
VS
147132011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
14716 save some space.
14717 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
14718 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14719
534d769e
VS
147202011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
14723
e084ba18
VS
147242011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14725
14726 * util/import_gcry.py: Accept space between # and include.
14727
3471ecdf
VS
147282011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14729
14730 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
14731
124df5f6
VS
147322011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 Fine grainely disable warnings on lexer. Remove Wno-error on it.
14735
14736 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
14737 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
14738 yylex_strncpy.
14739 * grub-core/script/yylex.l: Add fine-grained #pragma.
14740
4defb8d5
VS
147412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14742
14743 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
14744 New inline function.
14745 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
14746 Likewise.
14747 (memset) [GRUB_UTIL]: Likewise.
14748 (memcmp) [GRUB_UTIL]: Likewise.
14749
4e94ae65
VS
147502011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14751
14752 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
14753 inline function rather than a define.
14754
18c575e5
VS
147552011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 * util/grub-setup.c: Add missing include.
14758
f8bc22a8
VS
147592011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14760
14761 * util/ieee1275/grub-ofpathname.c: Add missing include.
14762
3ce69fc9
VS
147632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14764
14765 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14766 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14767 Likewise.
14768
d1e293bb
VS
147692011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14772 grub_memcmp usage.
14773
7a5c54a4
VS
147742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 * util/grub-install.in: Add datarootdir as per automake manual
14777 suggestion.
14778 * util/grub-mknetdir.in: Likewise.
14779
147802011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
14781
14782 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14783 suggestion.
14784 * util/grub.d/10_kfreebsd.in: Likewise.
14785 * util/grub.d/10_linux.in: Likewise.
14786 * util/grub.d/10_netbsd.in: Likewise.
14787 * util/grub.d/10_windows.in: Likewise.
14788 * util/grub.d/20_linux_xen.in: Likewise.
14789
766f7d08
VS
147902011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 Remove redundant grub_kernel_image_size.
14793
14794 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14795 _edata and _start.
14796 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14797 the small code. It moves it only by few bytes but simplifies the code.
14798 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14799 _start.
14800 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14801 (grub_kernel_image_size): Removed.
14802 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14803 (grub_kernel_image_size): Removed.
14804 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14805 compiled with Apple toolchain.
14806 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14807 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14808 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14809 (grub_total_module_size): Likewise.
14810 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14811 Removed.
14812 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14813 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14814 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14815 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14816 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14817 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14818 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14819 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14820 Removed.
14821 (grub_total_module_size): Removed.
14822 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14823 (image_targets): Likewise.
14824 Set .compressed_size to no field on sparc.
14825 (generate_image): Remove kernel_image_size handling.
14826
fcf1d672
SJ
148272011-10-19 Szymon Janc <szymon@janc.net.pl>
14828
14829 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14830 NULL pointer dereference.
14831
de9c615e
VS
148322011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14835 done with a dedicated section.
14836
14837 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14838 Ensure the correct position of boot_path.
14839 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14840 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14841 other fields.
14842 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14843 * include/grub/boot.h: Removed. All references removed.
14844 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14845 Removed.
14846 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14847
e55599dc
VS
148482011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14849
14850 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14851 name.
14852
36dd20ad
VS
148532011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14854
14855 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14856
f8f72eb8
VS
148572011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14858
14859 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14860 Don't add the bogus brackets.
14861
a374751b
VS
148622011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14863
14864 ExFAT support.
14865
14866 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14867 * grub-core/Makefile.core.def (exfat): New module.
14868 * grub-core/fs/exfat.c: New file.
14869 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14870 (GRUB_FAT_ATTR_*): Make into an enum.
14871 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14872 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14873 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14874 (GRUB_FAT_MAXFILE): Removed.
14875 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14876 (grub_current_fat_bpb_t): New type.
14877 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14878 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14879 (grub_fat_dir_node_t): New type.
14880 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14881 (fat_log2) [MODE_EXFAT]: Removed.
14882 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14883 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14884 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14885 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14886 (grub_fat_label) [MODE_EXFAT]: New function.
14887 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14888 reserved_first_sector to 0.
14889
544c2487
VS
148902011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 Move grub_reboot out of the kernel.
14893
14894 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14895 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14896 * grub-core/lib/efi/reboot.c: ... here.
14897 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14898 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14899 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14900 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14901 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14902 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14903 * grub-core/lib/ieee1275/reboot.c: ... here.
14904 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14905 * grub-core/lib/mips/arc/reboot.c: ... here.
14906 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14907 * grub-core/lib/mips/loongson/reboot.c: ...here.
14908 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14909 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14910 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14911 * include/grub/i386/reboot.h: New file.
14912 * include/grub/mips/loongson/ec.h: Fix includes.
14913 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14914 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14915 * grub-core/lib/i386/reboot.c: New file.
14916
a97501d2
VS
149172011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14918
14919 Make grub_prefix into module to fix the arbitrary limit and save
14920 some space.
14921
14922 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14923 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14924 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14925 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14926 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14927 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14928 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14929 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14930 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14931 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14932 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14933 * include/grub/ia64/efi/kernel.h: Removed.
14934 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14935 (grub_prefix): Removed.
14936 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14937 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14938 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14939 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14940 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14941 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14942 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14943 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14944 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14945 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14946 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14947 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14948 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14949 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14950 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14951 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14952 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14953 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14954 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14955 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14956 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14957 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14958 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14959 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14960 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14961 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14962 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14963 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14964 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14965 from module.
14966 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14967 prefix_end.
14968 (image_targets): Likewise.
14969 (generate_image): Put prefix as a module.
14970
39705fad
VS
149712011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 Replace grub_module_iterate with FOR_MODULES.
14974
14975 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14976 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14977 (grub_efi_modules_addr): ...this.
14978 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14979 (grub_efi_init): Set grub_modbase.
14980 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14981 (grub_modbase): New variable.
14982 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14983 (grub_modbase): New variable.
14984 (grub_machine_init): Set grub_modbase.
14985 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14986 (grub_modbase): New variable.
14987 (grub_machine_init): Set grub_modbase.
14988 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14989 (grub_modbase): New variable.
14990 (grub_machine_init): Set grub_modbase.
14991 * grub-core/kern/main.c (grub_module_iterate): Remove.
14992 (grub_modules_get_end): Use grub_modbase.
14993 (grub_load_modules): Use FOR_MODULES.
14994 (grub_load_config): Likewise.
14995 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14996 (grub_modbase): New variable.
14997 (grub_machine_init): Set grub_modbase.
14998 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14999 (grub_modbase): New variable.
15000 (grub_machine_init): Set grub_modbase.
15001 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
15002 Removed.
15003 (grub_modbase): New variable.
15004 (grub_machine_init): Set grub_modbase.
15005 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
15006 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
15007 (grub_module_iterate): Likewise.
15008 (grub_modbase): New variable declaration.
15009 (FOR_MODULES): New macro.
15010
2afb7f6c
VS
150112011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 * configure.ac: Check for __ctzdi2 and __ctzsi2.
15014 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
15015
366e34fa
VS
150162011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 Fix few obvious type discrepancies.
15019
15020 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
15021 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
15022 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
15023 variable.
15024 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
15025 and connected types.
15026 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
15027 offset.
15028 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
15029 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
15030 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
15031 and connected types.
15032
177b960e
VS
150332011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 Fix python 3.x incompatibilities.
15036
15037 * gentpl.py: Put brackets around print strings.
15038 * util/import_gcry.py: Open explicitly as utf-8.
15039 Use in instead of has_key.
15040
3b619ae1
VS
150412011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15042
15043 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
15044 (GRUB_XFS_INO_AGBITS): Make into inline function.
15045 (GRUB_XFS_INO_INOINAG): Likewise.
15046 (GRUB_XFS_INO_AG): Likewise.
15047 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
15048 (GRUB_XFS_EXTENT_OFFSET): Likewise.
15049 (GRUB_XFS_EXTENT_BLOCK): Likewise.
15050 (GRUB_XFS_EXTENT_SIZE): Likewise.
15051 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
15052 (GRUB_XFS_NEXT_DIRENT): Likewise.
15053 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
15054 (grub_xfs_read_file): Fix offset type.
15055
8bcebcb8
RM
150562011-10-15 Robert Millan <rmh@gnu.org>
15057
15058 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
15059
0017e5ef
RM
150602011-10-15 Robert Millan <rmh@gnu.org>
15061
15062 Fix build problem on FreeBSD and GNU/kFreeBSD.
15063
15064 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
15065
d8919552
VS
150662011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15067
15068 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
15069
15070 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
15071 types.
15072 (grub_hfsplus_btree_recoffset): Likewise.
15073 (grub_hfsplus_btree_recptr): Likewise.
15074 (grub_hfsplus_find_block): Likewise.
15075 (grub_hfsplus_btree_search): Likewise.
15076 (grub_hfsplus_read_block): Likewise.
15077 (grub_hfsplus_read_file): Likewise.
15078 (grub_hfsplus_mount): Likewise.
15079 (grub_hfsplus_btree_iterate_node): Likewise.
15080 (grub_hfsplus_btree_search): Likewise.
15081 (grub_hfsplus_iterate_dir): Likewise.
15082 (grub_hfsplus_read): A small code simplification.
15083
c81296b6
VS
150842011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * grub-core/kern/emu/hostdisk.c
15087 (convert_system_partition_to_system_disk): Don't assume that children
15088 of mapper nodes are mapper nodes.
15089
0eb8ffb1
VS
150902011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
15093 * include/grub/misc.h (grub_isxdigit): New function.
15094 * grub-core/video/colors.c (my_isxdigit): Removed. All users
15095 switched to grub_isxdigit.
15096 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
15097 number starting with a letter.
15098
a98f4a08
RM
150992011-10-09 Robert Millan <rmh@gnu.org>
15100
15101 LVM support for FreeBSD and GNU/kFreeBSD.
15102
15103 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
15104 GNU/kFreeBSD.
15105 (LVM_DEV_MAPPER_STRING): Move from here ...
15106 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
15107 * util/getroot.c: Include `<grub/util/lvm.h>'.
15108 (grub_util_get_dev_abstraction): Enable
15109 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
15110 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
15111 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
15112 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
15113 support it.
15114 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
15115 GNU/kFreeBSD.
15116 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
15117 when LVM abstraction is required for ${GRUB_DEVICE}.
15118
050e8e90
SJ
151192011-10-06 Szymon Janc <szymon@janc.net.pl>
15120
15121 Add support for LZO compression in GRUB:
15122 - import of minilzo library,
15123 - LZO decompression for btrfs,
15124 - lzop files decompression.
15125
15126 * grub-core/io/lzopio.c: New file.
15127 * grub-core/lib/adler32.c: Likewise.
15128 * grub-core/lib/minilzo/lzoconf.h: Likewise.
15129 * grub-core/lib/minilzo/lzodefs.h: Likewise.
15130 * grub-core/lib/minilzo/minilzo.c: Likewise.
15131 * grub-core/lib/minilzo/minilzo.h: Likewise.
15132 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
15133 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
15134 grub-core/lib/minilzo/minilzo.c to common.
15135 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
15136 cflags in cppflags.
15137 * grub-core/Makefile.core.def (btrfs): Likewise.
15138 * grub-core/Makefile.core.def (lzopio): New module.
15139 (adler32): Likewise.
15140 * grub-core/fs/btrfs.c: Include minilzo.h.
15141 (GRUB_BTRFS_COMPRESSION_LZO): New define.
15142 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
15143 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
15144 (grub_btrfs_lzo_decompress): New function.
15145 (grub_btrfs_extent_read): Add support for LZO compression type.
15146 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
15147 (GRUB_USHRT_MAX): Likewise.
15148 (GRUB_UINT_MAX): Likewise.
15149 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
15150 (UINT_MAX): Likewise.
15151 (CHAR_BIT): Likewise.
15152 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
15153 grub-core/lib/posix_wrap/limits.h
15154 (UCHAR_MAX): Likewise.
15155 * include/grub/file.h (grub_file_filter_id): New compression filter
15156 GRUB_FILE_FILTER_LZOPIO.
15157 * include/grub/file.h (grub_file_filter_id): Set
15158 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
15159 * include/grub/types.h (grub_get_unaligned16): New function.
15160 (grub_get_unaligned32): Likewise.
15161 (grub_get_unaligned64): Likewise.
15162 * util/import_gcry.py (cryptolist): Add adler32.
15163
0eb8ffb1
VS
151642011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
15165
15166 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
15167 in perspective decreases the complexity of build system and fixes
15168 compilation right now.
15169
ce79cc99 151702011-10-01 Ales Nesrsta <starous@volny.cz>
15171
15172 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
15173 (fixed problem related to using UHCI with coreboot).
15174
8667a314
BC
151752011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
15176
15177 * gentpl.py: Use Autogen macros so that the output template file
15178 (Makefile.tpl) size is reduced.
15179
fc5efcc0
MK
151802011-09-29 Mads Kiilerich <mads@kiilerich.com>
15181
15182 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
15183 extra_dist.
15184
d1ab689d
ML
151852011-09-29 Mario Limonciello <mario_limonciello@dell.com>
15186
15187 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
15188 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
15189
c05de032
ML
151902011-09-29 Mario Limonciello <mario_limonciello@dell.com>
15191
15192 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
15193 _fullpath.
15194
cca7ccd8
ML
151952011-09-29 Mario Limonciello <mario_limonciello@dell.com>
15196
15197 Remove extra declaration of sleep for mingw32.
15198
15199 * util/misc.c (sleep) [__MINGW32__]: Removed.
15200 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
15201
e0b0dc83
GS
152022011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
15203
15204 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
15205 type and packname.
15206 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
15207 Resurrected.
15208 (NETBSD_BTINFO_BOOTWEDGE): New definition.
15209 (grub_netbsd_btinfo_bootwedge): New struct.
15210 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
15211 New function.
15212 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
15213
91a1a164
TH
152142011-09-28 Thomas Haller <thomas.haller@fen-net.de>
15215
15216 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
15217 loader.
15218
2ded951e
AB
152192011-09-28 Andreas Born <futur.andy@googlemail.com>
15220
15221 Fix incorrect identifiers in bash-completion.
15222
15223 * util/bash-completion.d/grub-completion.bash.in
15224 (_grub_mkpasswd-pbkdf2): Rename to ...
15225 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
15226 (_grub_script-check): Rename to ...
15227 (_grub_script_check): ... this. All users updated.
15228
69915030
VS
152292011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
15232 Return 0 if disk isn't biosdisk.
15233
20fd15f9
GS
152342011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
15235
15236 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
15237 on NetBSD.
15238 * Makefile.util.def (grub-fstest): Likewise.
15239
1a7d7db9
GS
152402011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
15241
15242 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
15243 Get sector size from disk label.
15244
2221ab6c
CW
152452011-09-05 Colin Watson <cjwatson@ubuntu.com>
15246
15247 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
15248 */README* as well as README*.
15249 Reported by: Axel Beckert.
15250
ca51c4a0
VS
152512011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
15254 case of less than 256 MiB of RAM.
15255
ab80f326
VS
152562011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15257
15258 * grub-core/commands/wildcard.c (make_regex): Handle @.
15259
4155e697
VS
152602011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15261
15262 * util/grub-install.in: Move cryptodisk logic to appropriate place.
15263
ab178c08
SJ
152642011-08-21 Szymon Janc <szymon@janc.net.pl>
15265
15266 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
15267 AC_LANG_CONFTEST macros.
15268
7dc3c686
SJ
152692011-08-20 Szymon Janc <szymon@janc.net.pl>
15270
15271 Add grub-fstest option to uncompress data for commands.
15272
15273 * util/grub-fstest.c (uncompress): New var.
15274 (options): New option -u.
15275
fe8d4a7b
SJ
152762011-08-20 Szymon Janc <szymon@janc.net.pl>
15277
15278 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
15279 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
15280
a5219af1
SJ
152812011-08-20 Szymon Janc <szymon@janc.net.pl>
15282
15283 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
15284 file type was not recognized correctly (not gzip or corrupted).
15285
f87abff5
VS
152862011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15287
15288 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
15289 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
15290
d94497ea
VS
152912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15292
15293 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
15294 loongson.
15295 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
15296 video_radeon_fuloong2e.
15297 * grub-core/video/radeon_fuloong2e.c: New file.
15298 * include/grub/video.h (grub_video_id_t): Add new ID
15299 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
15300
0d1fd011
VS
153012011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
15304 define.
15305 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
15306 that PRID matches the detected subplatform and reset the subplatform
15307 if it doesn't.
15308
84beb0ee
VS
153092011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15310
15311 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
15312
1227c133
VS
153132011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 Fix PCI iterating on functions >= 4.
15316
15317 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
15318 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
15319 Removed.
15320 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
15321 (grub_pci_read): Fix bitmask.
15322 (grub_pci_read_word): Likewise.
15323 (grub_pci_read_byte): Likewise.
15324 (grub_pci_write): Likewise.
15325 (grub_pci_write_word): Likewise.
15326 (grub_pci_write_byte): Likewise.
15327
9594c689
VS
153282011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
15331 can still be specified in TARGET_CFLAGS)
15332
14a2562c
VS
153332011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15334
15335 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
15336
15337 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
15338 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
15339 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
15340 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
15341 (FULOONG): Rename to ...
15342 (FULOONG2F): ... this. All users updated.
15343 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
15344 (machtype_fuloong2f_str): ... this.
15345 (machtype_fuloong2e_str): New string.
15346 Check for machtype_fuloong2e_str.
15347 * grub-core/loader/mips/linux.c (loongson_machtypes)
15348 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
15349 * grub-core/term/serial.c (loongson_defserial)
15350 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
15351 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
15352 loongson_defserial.
15353 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
15354 Rename to ...
15355 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
15356 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
15357 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
15358 to IMAGE_FULOONG2F_FLASH. All users updated.
15359 (image_targets): Rename images.
15360 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
15361
b526cbb6
SJ
153622011-08-19 Szymon Janc <szymon@janc.net.pl>
15363
15364 Make enable of disk cache statistics code configurable.
15365
15366 * configure.ac: --enable-cache-stats added.
15367 * config.h.in (DISK_CACHE_STATS): New define.
15368 * grub-core/Makefile.core.def (cacheinfo): New command.
15369 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
15370 * grub-core/commands/cacheinfo.c: New file.
15371 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
15372 moved to cacheinfo.c.
15373 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
15374 debug code.
15375 * include/grub/disk.h: Likewise.
15376
fb739ccd
SJ
153772011-08-19 Szymon Janc <szymon@janc.net.pl>
15378
15379 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
15380 * grub-core/Makefile.am: Likewise.
15381
2bba8cfd
VS
153822011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
15385 non-zero pull.
15386
43526629
VS
153872011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
15390 All users updated.
15391 (grub_jfs_lookup_symlink): Use correct starting inode.
15392
5c144cc8
VS
153932011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15394
15395 * util/grub-setup.c (main): Add missing gcry initialisation.
15396
b1257f65
VS
153972011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 Don't accept text modes on EFI when booting Linux.
15400
15401 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
15402 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
15403
828bc390
ML
154042011-08-15 Mario Limonciello <mario_limonciello@dell.com>
154052011-08-15 Colin Watson <cjwatson@ubuntu.com>
15406
15407 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
15408 use of "/path/.." as in grub-install for EFI as well as handling
15409 symlinks correctly.
15410 Fixes Debian bug #637768.
15411
5f60ccac
CW
154122011-08-15 Colin Watson <cjwatson@ubuntu.com>
15413
15414 * util/grub-probe.c: Remove duplicate #include.
15415
6dc212f9
RM
154162011-08-10 Robert Millan <rmh@gnu.org>
15417
15418 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
15419
15420 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
15421 function.
15422 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
15423 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
15424
66816d85
RM
154252011-08-03 Robert Millan <rmh@gnu.org>
15426
15427 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
15428 la_array as packed.
15429 Reported by: Zachary Bedell
15430
20168fca
CW
154312011-07-26 Colin Watson <cjwatson@ubuntu.com>
15432
15433 * configure.ac: The Loongson port requires grub-mkfont due to its
15434 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
15435 be built.
15436
303b6246
CW
154372011-07-26 Colin Watson <cjwatson@ubuntu.com>
15438
15439 * util/grub-install.in: Don't source grub-mkconfig_lib until after
15440 processing arguments (otherwise help2man fails when GRUB has not yet
15441 been installed).
15442
6795300e
VS
154432011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15444
41aa28ea
VS
15445 New script grub-mkstandalone.
15446
15447 * Makefile.util.def (grub-mkstandalone): New script.
15448 * docs/man/grub-mkstandalone.h2m: New file.
15449 * util/grub-mkstandalone.in: Likewise.
15450
154512011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15452
15453 Support ATA disks with 4K sectors.
6795300e
VS
15454
15455 * include/grub/ata.h (grub_ata): New member log_sector_size.
15456 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
15457 (grub_ata_identify): Read sector size.
15458 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
15459
92227597
VS
154602011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15461
15462 * util/grub-install.in: Don't use uhci outside of x86.
15463
c77069f5
VS
154642011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 * util/grub-mkrescue.in: Add missing quotes.
15467
154682011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
15469
15470 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
15471 dereference.
15472
583168a2
VS
154732011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
15476
6be1c01f
VS
154772011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15478
15479 * include/grub/video.h: add missing EXPORT_FUND on
15480 grub_video_edid_checksum and grub_video_edid_preferred_mode.
15481
a1167439
VS
154822011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * include/grub/mips/kernel.h: Fix define conflict.
15485
bf66054f
VS
154862011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
15489 all four ways.
15490
8fc4fa45
CW
154912011-07-21 Colin Watson <cjwatson@ubuntu.com>
15492
15493 Preferred resolution detection for VBE.
15494
15495 * grub-core/video/video.c (grub_video_edid_checksum): New function.
15496 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
15497 the Flat Panel extension, in line with the X.org VESA driver.
15498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
15499 New function.
15500 (grub_vbe_bios_get_ddc_capabilities): Likewise.
15501 (grub_vbe_bios_read_edid): Likewise.
15502 (grub_vbe_get_preferred_mode): Likewise.
15503 (grub_video_vbe_setup): When the mode is "auto", try to get the
15504 preferred mode from VBE, and use the largest mode that is no larger
15505 than the preferred mode (some BIOSes expose a preferred mode that is
15506 not in their mode list!). If this fails, fall back to 640x480 as a
15507 safe conservative choice.
15508 (grub_video_vbe_get_edid): New function.
15509 (grub_video_vbe_adapter): Add get_edid.
15510 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
15511 (struct grub_video_adapter): Add get_edid.
15512 (grub_video_edid_checksum): Add prototype.
15513 (grub_video_edid_preferred_mode): Likewise.
15514 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
15515 structure.
15516
15517 * grub-core/commands/videoinfo.c (print_edid): New function.
15518 (grub_cmd_videoinfo): Print EDID if available.
15519
15520 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
15521 is more appropriate on a wider range of platforms than 640x480.
15522 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
15523 documentation.
15524
ca5572a9
VS
155252011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
15528
e4bcf625
VS
155292011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15530
15531 * po/POTFILES.in: Regenerate.
15532
c4edd548
VS
155332011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15534
15535 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
15536 incorrect memory usage.
15537
16a2bab0
VS
155382011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15539
15540 * util/grub-install.in: Source grub-mkconfig_lib.
15541
2e418de6
VS
155422011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15543
15544 Remove getroot.c from core on emu platform.
15545
15546 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
15547 kern/emu/raid.c.
15548 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
15549 useless.
15550 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
15551 * util/getroot.c (get_win32_path): ... here.
15552 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
15553 * util/getroot.c (fini_libzfs): ... here.
15554 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
15555 * util/getroot.c (grub_get_libzfs_handle): ... here.
15556 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
15557 Moved from here...
15558 * util/getroot.c (grub_find_zpool_from_dir): ... here.
15559 * grub-core/kern/emu/misc.c
15560 (grub_make_system_path_relative_to_its_root): Moved from here...
15561 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
15562 * grub-core/kern/emu/getroot.c: Moved from here ...
15563 * util/getroot.c: ... here. All users updated.
15564 * grub-core/kern/emu/raid.c: Moved from here ...
15565 * util/raid.c: ... here. All users updated.
15566
def9832a
VS
155672011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 * po/POTFILES.in: Regenerate.
15570
cd8fe79a
VS
155712011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 Fix compilation on GNU/Linux.
15574
15575 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
15576 Disable geli.
15577 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
15578 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
15579 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
15580
a251b719
VS
155812011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
155822011-07-07 Michael Gorven <michael@gorven.za.net>
155832011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
15584
15585 LUKS and GELI support.
15586
15587 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
15588 grub-core/disk/luks.c, grub-core/disk/geli.c,
15589 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
15590 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
15591 grub-core/lib/arg.c.
15592 (libgrubmods.a): Remove gcrypts cflags and cppflags.
15593 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
15594 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
15595 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
15596 (grub-bin2h): Add libgcry.a.
15597 (grub-mkimage): Likewise.
15598 (grub-mkrelpath): Likewise.
15599 (grub-script-check): Likewise.
15600 (grub-editenv): Likewise.
15601 (grub-mkpasswd-pbkdf2): Likewise.
15602 (grub-pe2elf): Likewise.
15603 (grub-fstest): Likewise.
15604 (grub-mkfont): Likewise.
15605 (grub-mkdevicemap): Likewise.
15606 (grub-probe): Likewise.
15607 (grub-ofpath): Likewise.
15608 (grub-mklayout): Likewise.
15609 (example_unit_test): Likewise.
15610 (grub-menulst2cfg): Likewise.
15611 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
15612 * grub-core/Makefile.core.def (cryptodisk): New module.
15613 (luks): Likewise.
15614 (geli): Likewise.
15615 * grub-core/disk/AFSplitter.c: New file.
15616 * grub-core/disk/cryptodisk.c: Likewise.
15617 * grub-core/disk/geli.c: Likewise.
15618 * grub-core/disk/luks.c: Likewise.
15619 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
15620 grub_util_is_lvm.
15621 (grub_util_get_dm_abstraction): New function.
15622 (grub_util_follow_gpart_up): Likewise.
15623 (grub_util_get_geom_abstraction): Likewise.
15624 (grub_util_get_dev_abstraction): Use new functions.
15625 (grub_util_pull_device): Pull GELI and LUKS.
15626 (grub_util_get_grub_dev): Handle LUKS and GELI.
15627 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
15628 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
15629 (follow_geom_up): Removed.
15630 (grub_util_fd_seek): New function.
15631 (open_device): Use grub_util_fd_seek.
15632 (nread): Rename to ..
15633 (grub_util_fd_read): ... this. All users updated.
15634 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
15635 (grub_crypto_cbc_decrypt): Likewise.
15636 (grub_crypto_hmac_write): Likewise.
15637 (grub_crypto_hmac_buffer): Likewise.
15638 (grub_password_get): Extend to util.
15639 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
15640 New member modname.
15641 (gcry_md_spec) [GRUB_UTIL]: Likewise.
15642 * include/grub/cryptodisk.h: New file.
15643 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
15644 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
15645 LUKS and GELI.
15646 (grub_util_follow_gpart_up): New proto.
15647 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
15648 (grub_util_fd_read): Likewise.
15649 (grub_cryptodisk_cheat_mount): Likewise.
15650 (grub_util_cryptodisk_print_uuid): Likewise.
15651 (grub_util_get_fd_sectors): Likewise.
15652 * util/grub-fstest.c (mount_crypt): New var.
15653 (fstest): Mount crypto if requested.
15654 (options): New option -C.
15655 (argp_parser): Parse -C.
15656 (main): Init and fini gcry.
15657 * util/grub-install.in: Support cryptodisk install.
15658 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
15659 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
15660 cryptodisk.
15661 (prepare_grub_to_access_device): Likewise.
15662 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
15663 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
15664 (probe_cryptodisk_uuid): New function.
15665 (probe_abstraction): Likewise.
15666 (probe): Use new functions.
15667 * util/import_gcry.py: Create Makefile.utilgcry.def.
15668 Add modname member.
15669
9bfdcbbc
VS
156702011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15671
15672 Lazy device scanning.
15673
15674 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
15675 (grub-setup): Remove util/raid.c.
15676 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
15677 * grub-core/disk/lvm.c (scan_depth): New variable.
15678 (grub_lvm_iterate): Rescan if necessary.
15679 (find_lv): New function based on grub_lvm_open.
15680 (grub_lvm_open): Use find_lv. Rescan on error.
15681 (is_node_readable): New function.
15682 (is_lv_readable): Likewise.
15683 (grub_lvm_scan_device): Skip already found disks.
15684 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
15685 Stop if searched device is found and readable.
15686 * grub-core/disk/raid.c (inscnt): New variable.
15687 (scan_depth): Likewise.
15688 (scan_devices): New function based on grub_raid_register. Abort if
15689 looked for device is found.
15690 (grub_raid_iterate): Rescan if needed.
15691 (find_array): NEw function based on -grub_raid_open.
15692 (grub_raid_open): Use find_array and rescan.
15693 (insert_array): Set became_readable_at.
15694 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
15695 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
15696 New function.
15697 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
15698 (grub_util_pull_device): New function.
15699 (grub_util_get_grub_dev): Call grub_util_pull_device.
15700 * util/raid.c: Moved to ..
15701 * grub-core/kern/emu/raid.c: ... here.
15702 (grub_util_raid_getmembers): New parameter "bootable".
15703 All users updated. Support 1.x.
15704 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
15705 All users updated.
15706 * include/grub/disk.h (grub_disk_pull_t): New enum.
15707 (grub_disk_dev): Change iterate prototype.
15708 All users updated.
15709 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
15710 New proto.
15711 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
15712 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
15713 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
15714 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
15715 All users updated.
15716 * include/grub/util/raid.h: Removed.
15717
1c358e59
VS
157182011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * po/POTFILES.in: Regenerate.
15721
abee94ed
VS
157222011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 Unify sparc init with other ieee1275.
15725
15726 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
15727 instead of kern/sparc64/ieee1275/init.c.
15728 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
15729 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
15730 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
15731 grub/machine/kernel.h.
15732 (grub_ieee1275_original_stack) [__sparc__]: New variable.
15733 (grub_claim_heap) [__sparc__]: Use sparc version.
15734 (grub_machine_init): Moved args parsing to
15735 (grub_parse_cmdline): ...this.
15736 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
15737 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
15738 New definition.
15739 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
15740
15741 Move BOOTP to separate file.
15742
15743 * grub-core/Makefile.core.def (net): Add net/bootp.c.
15744 * grub-core/net/net.c: Move all BOOTP functions to
15745 * grub-core/net/bootp.c: ... here.
15746
15747 Use frame interface on PXE.
15748
15749 * grub-core/Makefile.core.def (pxecmd): Removed.
15750 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
15751 * grub-core/commands/i386/pc/pxecmd.c: Removed.
15752 * grub-core/i386/pc/pxe.c: Moved from here ...
15753 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
15754 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
15755 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
15756
15757 EFI network support.
15758
15759 * grub-core/Makefile.core.def (efinet): New module.
15760 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
15761 here...
15762 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
15763 All users updated.
15764 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15765 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15766 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15767 * grub-core/net/drivers/efi/efinet.c: New file.
15768 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15769 (grub_efi_net_config): New extern var.
15770
15771 Various cleanups and bugfixes.
15772
15773 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15774 error.
15775 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15776 disk declared as partition.
15777 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15778 leak on failure.
15779 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15780 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15781 (grub_debug_zalloc): Likewise.
15782 (grub_debug_realloc): Likewise.
15783 (grub_debug_memalign): Likewise.
15784 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15785 Check that target is IPv4.
15786 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15787 local-mac-address as fallback.
15788 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15789 memory leak.
15790 * grub-core/net/ip.c (ipchksum): Rename to ...
15791 (grub_net_ip_chksum): ... this. All users updated.
15792 (grub_net_recv_ip_packets): Special handling for DHCP.
15793 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15794
15795 Unify prefix handling
15796
15797 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15798 (grub_machine_get_bootlocation): ... this.
15799 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15800 (grub_machine_get_bootlocation): ... this.
15801 (grub_prefix): New variable.
15802 (prefix): Removed.
15803 (root_dev): New variable.
15804 (dir): Likewise.
15805 (main): Use new variables.
15806 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15807 Revamped into ...
15808 (grub_machine_get_bootlocation): ... this.
15809 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15810 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15811 (grub_machine_get_bootlocation): ... this.
15812 (grub_machine_set_prefix): Removed.
15813 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15814 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15815 Revamped into ...
15816 (grub_machine_get_bootlocation): ... this.
15817 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15818 (grub_set_prefix_and_root): ... this. All users updated.
15819 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15820 Revamped into ...
15821 (grub_machine_get_bootlocation): ... this.
15822 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15823 (grub_machine_get_bootlocation): New proto.
15824 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15825
15826 Less intrusive and more reliable seek on network implementation.
15827
15828 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15829 (grub_file_seek): Don't call grub_file_net_seek.
15830 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15831 (grub_net_fs_read_real): .. this.
15832 (grub_net_seek_real): Use net->offset.
15833 (grub_net_fs_read): Seek if necessary.
15834
15835 Unify IEEE1275 netwotk config with the other platforms.
15836
15837 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15838 New variable.
15839 (grub_machine_get_bootlocation): Support network.
15840 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15841 Support type and device parsing.
15842 (grub_ieee1275_get_device_type): New function.
15843 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15844 into ...
15845 (grub_ieee1275_net_config_real): ... this.
15846 (grub_ofnet_probecards): Removed.
15847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15848 * include/grub/ieee1275/ofnet.h: Removed.
15849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15850 extern var.
15851 (grub_ieee1275_get_device_type): New function.
15852
15853 Unify network device closing across platforms and make more robust.
15854
15855 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15856 grub_grubnet_fini.
15857 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15858 already.
15859 * grub-core/net/net.c (grub_net_network_level_interface_register):
15860 Update num_ifaces.
15861 (grub_net_card_unregister): Close all interfaces.
15862 (receive_packets): Don't poll if no iterfaces are registered.
15863 Open if necessary.
15864 (grub_net_fini_hw): New function.
15865 (grub_net_restore_hw): Likewise.
15866 (fini_hnd): New variable.
15867 (GRUB_MOD_INIT): Register preboot hook.
15868 (GRUB_MOD_FINI): Run and unregister preboot hook.
15869
15870 Poll network cards when idle.
15871
15872 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15873 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15874 * grub-core/net/net.c (receive_packets): Save last poll time.
15875 (grub_net_poll_cards_idle_real): New function.
15876 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15877 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15878 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15879
15880 Rename ofnet interfaces.
15881
15882 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15883 (grub_ofnet_findcards): Use ofnet_%s names.
15884
15885 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15886
15887 Cleanup socket opening.
15888
15889 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15890 (grub_net_fs_close): Likewise.
15891 (grub_net_fs_read_real): Use eof member.
15892 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15893 (+grub_net_udp_close): New inline function.
15894
15895 * include/grub/net/tftp.h: Moved to the top of ...
15896 * grub-core/net/tftp.c: ... here.
15897 * include/grub/net/ip.h: Moved mostly to the top of ...
15898 * grub-core/net/ip.c: ... here.
15899 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15900 * grub-core/net/ethernet.c: ... here.
15901
15902 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15903
15904 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15905 FS name.
15906
15907 * include/grub/net/ip.h (ipv4_ini): Removed.
15908 (ipv4_fini): Likewise.
15909
15910 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15911 (grub_net_send_ip_packets): Likewise.
15912
cf1337aa
VS
159132011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15916 grub_read_cmos prototype.
15917
93c06ff9
VS
159182011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 VGA text support in qemu-mips
15921
15922 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15923 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15924 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15925 text.
15926 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15927 * grub-core/kern/vga_init.c: ... this.
15928 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15929 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15930 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15931 Adjust.
15932 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15933 GRUB_MACHINE_PCI_IO_BASE.
15934
748ccabe
VS
159352011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15936
15937 MIPS qemu flash support.
15938
15939 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15940 magic.
15941 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15942 (grub_machine_init): Probe memory if its size isn't known.
15943 * util/grub-mkimage.c (image_targets): Add flash targets.
15944 (generate_image): Handle flash targets.
15945
d7345994
VS
159462011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 MIPS qemu at_keyboard support.
15949
15950 * gentpl.py (videoinkernel): Add qemu-mips.
15951 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15952 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15953 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15954 modules.
15955 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15956 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15957 * grub-core/term/serial.c (grub_serial_register)
15958 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15959
a07a81b3
VS
159602011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 CMOS support on sparc.
15963
15964 * gentpl.py (cmos): Add powerpc and sparc.
15965 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15966 powerpc and sparc.
15967 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15968 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15969 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15970 grub_set_datetime_cmos.
15971 * grub-core/lib/ieee1275/cmos.c: New file.
15972 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15973 (find_rtc): Set no_ieee1275_rtc on error.
15974 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15975 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15976 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15977 fail. Move value to argument. All users updated
15978 (grub_cmos_write): Likewise.
15979 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15980 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15981 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15982 grub_get_datetime_cmos and grub_set_datetime_cmos.
15983
77546584
GS
159842011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15985
15986 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15987 sourcing grub-mkconfig_lib.
15988 * util/update-grub_lib.in: Likewise.
15989 * util/grub.d/00_header.in: Likewise.
15990 * util/grub.d/10_hurd.in: Likewise.
15991 * util/grub.d/10_kfreebsd.in: Likewise.
15992 * util/grub.d/10_linux.in: Likewise.
15993 * util/grub.d/10_netbsd.in: Likewise.
15994 * util/grub.d/10_windows.in: Likewise.
15995 * util/grub.d/20_linux_xen.in: Likewise.
15996 * util/grub.d/30_os-prober.in: Likewise.
15997
54894791
CW
159982011-06-28 Colin Watson <cjwatson@ubuntu.com>
15999
16000 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
16001 default_bg_color rather than black.
16002 (grub_gfxterm_fullscreen): Likewise.
16003 (grub_gfxterm_background_color_cmd): Save new background color in
16004 default_bg_color.
16005
8d5d8444
VS
160062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
16009
5afeb5bd
VS
160102011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16011
16012 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
16013 mismerge.
16014
ba7df45e
VS
160152011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 Chainloading on coreboot support.
16018
16019 * grub-core/Makefile.core.def (chain): Add coreboot.
16020 * grub-core/loader/i386/coreboot/chainloader.c: New file.
16021
d0b526b2
VS
160222011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
16025 if it happens.
16026
5ff1d945
VS
160272011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16028
16029 Implement time command.
16030
16031 * grub-core/Makefile.core.def (time): New module.
16032 * grub-core/commands/time.c: New file.
16033 * grub-core/script/parser.y: Remove "time" keyword.
16034 * grub-core/script/yylex.l: Likewise.
16035
5ebaad7e
VS
160362011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
16039
bdea3798
VS
160402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
16043 when handling leftovers.
16044
b28c5655
VS
160452011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
16048 so that help2man doesn't fail.
16049
b6f945dc
VS
160502011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
16053 type in pointers on sparc64.
16054 (get_card_packet): Likewise.
16055
f9b75e8a
CW
160562011-06-27 Colin Watson <cjwatson@ubuntu.com>
16057
16058 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
16059 with `*'.
16060 (grub_cmd_videoinfo): Fetch current video mode.
16061
1e3d9b86
VS
160622011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
16065 because of underlying system restrictions.
16066
efff4b1c
VS
160672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
16070 necessary.
16071
9fc9ce37
VS
160722011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16073
16074 Coreboot video support.
16075
16076 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
16077 (vbe): Likewise.
16078 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
16079 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
16080 here ...
16081 * grub-core/kern/i386/int.S: ... here.
16082 * grub-core/video/i386/pc/vbe.c: Updated includes.
16083 * grub-core/video/i386/pc/vga.c: Likewise.
16084 * include/grub/i386/coreboot/memory.h
16085 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
16086 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
16087 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
16088 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
16089 Disable interrupts.
16090 * include/grub/i386/pc/vga.h: Removed. All users updated.
16091
41bec7fe
VS
160922011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
16095 definitions for dprintf.
16096 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
16097
ca80309d
VS
160982011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
16101 prototype.
16102 (get_card_packet): Likewise.
16103
9e322ce8
YB
161042011-06-26 Yves Blusseau <blusseau@zetam.org>
16105
16106 Display the path of the file when file is not found
16107
16108 * grub-core/fs/fat.c: Display the filename when file is not found.
16109 * grub-core/fs/fshelp.c: Likewise.
16110 * grub-core/fs/hfs.c: Likewise.
16111 * grub-core/fs/jfs.c: Likewise.
16112 * grub-core/fs/minix.c: Likewise.
16113 * grub-core/fs/ufs.c: Likewise.
16114 * grub-core/fs/btrfs.c: Likewise.
16115 * grub-core/commands/i386/pc/play.c: Likewise.
16116
cbf597af
SJ
161172011-06-26 Szymon Janc <szymon@janc.net.pl>
16118
16119 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
16120 pointer checks before calling grub_free().
16121 * grub-core/commands/wildcard.c (match_devices): Likewise.
16122 * grub-core/commands/wildcard.c (match_files): Likewise.
16123 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
16124 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
16125 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
16126 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
16127 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
16128 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
16129 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
16130 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
16131 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
16132
6295b32f
P
161332011-06-25 Patrick <p55@mailinator.com>
16134
16135 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
16136
77c0840b
VS
161372011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
16138
16139 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
16140 (grub_pxe_send): Likewise.
16141 (GRUB_MOD_INIT): Fix types.
16142
40ea05de
SJ
161432011-06-24 Szymon Janc <szymon@janc.net.pl>
16144
16145 * grub-core/io/xzio.c: Fix code style issues
16146
90162423
MRA
161472011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
161482011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
16149
16150 Network infrastructure.
16151 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
16152
16153 * include/grub/net/arp.h: New file.
90162423
MRA
16154 * include/grub/net/device.h: Likewise.
16155 * include/grub/net/ethernet.h: Likewise.
16156 * include/grub/net/ip.h: Likewise.
16157 * include/grub/net/netbuff.h: Likewise.
16158 * include/grub/net/tftp.h: Likewise.
16159 * include/grub/net/udp.h: Likewise.
16160 * include/grub/ieee1275/ofnet.h: Likewise.
16161 * include/grub/emu/export.h: Likewise.
16162 * include/grub/net.h: Likewise.
16163 * grub-core/net/arp.c: Likewise.
16164 * grub-core/net/ethernet.c: Likewise.
16165 * grub-core/net/ip.c: Likewise.
16166 * grub-core/net/udp.c: Likewise.
16167 * grub-core/net/tftp.c: Likewise.
16168 * grub-core/net/netbuff.c: Likewise.
16169 * grub-core/net/net.c: Likewise.
16170 * grub-core/net/drivers/emu/emunet.c: Likewise.
16171 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
16172 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
16173 export.h.
16174 * grub-core/Makefile.core.def (net): New module.
16175 (tftp): Likewise.
16176 (ofnet): Likewise.
16177 (emunet): Likewise.
16178 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
16179 network protocols.
16180 * grub-core/kern/device.c (grub_net_open) : New variable.
16181 (grub_device_open): Handle network device.
16182 (grub_device_close): Likewise.
16183 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
16184 (grub_grubnet_fini): Likewise.
16185 (grub_file_seek): Seek in network device.
16186 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
16187 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
16188 network root.
16189 (grub_machine_fini): Call grub_grubnet_fini.
16190 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
16191 network.
16192 (grub_ieee1275_get_aliasdevname): New function.
16193 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16194 Add unofficial Solaris network info.
16195 (grub_multiboot_make_mbi): Likewise.
16196 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
16197 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
16198 * include/grub/device.h (grub_fs): Removed.
16199 * include/grub/err.h (grub_err_t): Add network-related values.
16200 * include/grub/i386/pc/pxe.h: Removed bootp parts.
16201 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
16202 (grub_ieee1275_get_aliasdevname): New proto.
16203 * include/grub/net.h: Rewritten.
423a1849 16204
031f22a0
VS
162052011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16206
16207 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
16208 names.
16209
4388ca72
VS
162102011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16211
16212 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
16213 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
16214 it truncates the output.
16215 Reported by: Ximin Luo.
16216
98e2f506
VS
162172011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
16220
2a5e94d8
VS
162212011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
16224 partmap before abstraction.
16225
535c1910
AK
162262011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
16227
16228 * util/grub-mkconfig_lib.in: Add missing quotes.
16229
bc09e1a2
VS
162302011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
16233 old method if mountinfo would return /dev/root and /dev/root doesn't
16234 exist.
16235
290766fb
VS
162362011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 ZFS zlib support
16239
16240 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
16241 (decomp_table): Add zlib entries.
16242 (zio_read): USe 8 bits for compression function rather than 3.
16243 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
16244
162452011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16246
16247 * grub-core/disk/ahci.c: Add missing license statements.
16248 * grub-core/fs/romfs.c: Likewise.
16249 * grub-core/lib/ia64/setjmp.S: Likewise.
16250 * grub-core/loader/i386/pc/freedos.c: Likewise.
16251 * grub-core/loader/ia64/efi/linux.c: Likewise.
16252 * grub-core/video/colors.c: Likewise.
16253 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
16254
5ab3f48a
VS
162552011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 AHCI support.
16258
16259 * grub-core/Makefile.core.def (ata_pthru): Removed.
16260 (ahci): New module.
16261 (pata): Likewise.
16262 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
16263 on unload.
16264 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
16265 readwrite.
16266 (grub_hdparm_do_check_powermode_cmd): Likewise.
16267 (grub_hdparm_do_smart_cmd): Likewise.
16268 (grub_hdparm_set_val_cmd): Likewise.
16269 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
16270 * grub-core/disk/ahci.c: New file.
16271 * grub-core/disk/ata.c: Factor out the low-level part into ...
16272 * grub-core/disk/pata.c: ... here.
16273 * grub-core/disk/ata_pthru.c: Contents moved to ...
16274 * grub-core/disk/pata.c: ... here.
16275 * grub-core/disk/scsi.c (grub_scsi_names): New array.
16276 (grub_scsi_iterate): Use grub_scsi_names.
16277 (grub_scsi_open): Likewise.
16278 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
16279 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
16280 (grub_ata_regs_t): New struct.
16281 (grub_disk_ata_pass_through_parms): Likewise.
16282 (grub_ata_device): Renamed to ...
16283 (grub_ata): ... this.
16284 (grub_ata_dev): New struct.
16285 Removed all low-level inline functions.
16286 * include/grub/scsi.h: Add PATA and AHCI subsystems.
16287 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
16288 iterate hooks and open. All users updated.
16289 * util/grub-install.in: Handle AHCI disk module.
16290
c31dc5f5
SJ
162912011-06-23 Szymon Janc <szymon@janc.net.pl>
16292
16293 Add support for DRI and RSTn markers in JPEG files.
16294
16295 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
16296 (JPEG_MARKER_RST0): Likewise.
16297 (JPEG_MARKER_RST1): Likewise.
16298 (JPEG_MARKER_RST2): Likewise.
16299 (JPEG_MARKER_RST3): Likewise.
16300 (JPEG_MARKER_RST4): Likewise.
16301 (JPEG_MARKER_RST5): Likewise.
16302 (JPEG_MARKER_RST6): Likewise.
16303 (JPEG_MARKER_RST7): Likewise.
16304 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
16305 (grub_jpeg_decode_dri): New function.
16306 (grub_jpeg_decode_sos): Move image data related part into
16307 grub_jpeg_decode_data function.
16308 (grub_jpeg_decode_data): New function.
16309 (grub_jpeg_reset): New function.
16310 (grub_jpeg_decode_jpeg): Handle new markers.
16311
fe12fd5b
VS
163122011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 * util/ieee1275/ofpath.c (check_sas): Close fd.
16315 (main): Free of_path.
16316 Reported by: David Volgyes <dvolgyes>.
16317
03147f46
VS
163182011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
16321 Reported by: David Volgyes <dvolgyes>.
16322
cad3237f
VS
163232011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
16326 file after stat.
16327 Reported by: David Volgyes <dvolgyes>.
16328
13548d26
VS
163292011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
16332
16333 Reported by: David Volgyes <dvolgyes>.
16334
e061a1b5
VS
163352011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
16338 Prevent memory leak.
16339
1abe47dc
VS
163402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
16343 (main): Close file.
e061a1b5 16344 Reported by: David Volgyes <dvolgyes>.
1abe47dc 16345
fbc62666
VS
163462011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16347
16348 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
16349 to continue if allocation is failed.
16350
16351 Reported by: David Volgyes <dvolgyes>.
16352
e98c83e9
DV
163532011-06-23 David Volgyes <dvolgyes>
16354
16355 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
16356 dereference.
16357
a199a8cd
VS
163582011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16359
16360 Fix spurious warning.
16361
16362 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
16363 (acorn_partition_map_find): Use .bin member.
16364
e2d1dba0
VS
163652011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
16368 /dev/root as a valid device.
16369
8a5d6919
JM
163702011-06-23 Jim Meyering <meyering@redhat.com>
16371
e2d1dba0
VS
16372 Avoid NULL deref in grub_device_open.
16373
8a5d6919
JM
16374 * grub-core/kern/device.c (grub_device_open): Don't dereference
16375 a NULL pointer upon failed grub_env_get.
16376
f7db6f4a
VS
163772011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16378
16379 Support non-512B sectors and agglomerate reads.
16380
16381 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
16382 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
16383 (disk_io_guid): Removed.
16384 (make_devices): Locate solely by BlockIO.
16385 (grub_efidisk_open): Fill log_sector_size and total_sectors.
16386 (grub_efidisk_read): Use read_blocks.
16387 (grub_efidisk_write): Use write_blocks.
16388 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
16389 log_sector_size.
16390 (get_safe_sectors): Handle non-512B sectors.
16391 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
16392 sectors.
16393 (grub_biosdisk_write): Handle non-512B sectors.
16394 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
16395 (grub_scsi_read): Remove special non-512B block handling (now handled
16396 one level up).
16397 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
16398 and do sanity checks.
16399 (grub_disk_adjust_range): Handle non-512B sectors.
16400 (transform_sector): New function.
16401 (grub_disk_read_small): Likewise.
16402 (grub_disk_read): Rewritten.
16403 (grub_disk_write): Handle non-512B sectors.
16404 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
16405 log_sector_size.
16406 (open_device): Use log_sector_size.
16407 (grub_util_biosdisk_read): Likewise.
16408 (grub_util_biosdisk_write): Likewise.
16409 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
16410 non-512B sectors.
16411 (pc_partition_map_embed): Likewise.
16412 * include/grub/disk.h (grub_disk): New field log_sector_size.
16413 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
16414 (GRUB_DISK_CACHE_BITS): Increased to 6.
16415 * util/grub-fstest.c (fstest): New command testload.
16416 (argp_parser): Likewise.
16417
881ac815
RM
164182011-06-16 Robert Millan <rmh@gnu.org>
16419
16420 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
16421 `ata' driver on kernel of FreeBSD 9.
16422
16423 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
16424 (get_ataraid_disk_name): New functions.
16425 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
16426 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
16427 get_ataraid_disk_name() and get_ada_disk_name().
16428
1e9aef7d
CW
164292011-06-13 Colin Watson <cjwatson@ubuntu.com>
16430
16431 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
16432 input format.
16433
351c7c8a
CW
164342011-05-29 Colin Watson <cjwatson@ubuntu.com>
16435
16436 * docs/grub.texi (Obtaining and Building GRUB): Substitute
16437 `ftp.gnu.org' for `alpha.gnu.org'.
16438
6b4e6430
CW
164392011-05-27 Colin Watson <cjwatson@ubuntu.com>
16440
16441 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
16442 partitions under /dev/disk/by-id/.
16443
c64db050
CW
164442011-05-27 Colin Watson <cjwatson@ubuntu.com>
16445
16446 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
16447 after ten consecutive open failures. Scanning all the way up to
16448 10000 is excessive and can cause serious performance problems in
16449 some configurations.
16450 Fixes Ubuntu bug #787461.
16451
245f4aba
VS
164522011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
16455 opening new one.
16456
f767c929
VS
164572011-05-21 Colin Watson <cjwatson@ubuntu.com>
164582011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 Don't stat devices unless we have to.
16461
16462 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
16463 dir == /dev/mapper.
16464 (grub_guess_root_device): Use already known os_dev if possible.
16465 * grub-core/kern/emu/hostdisk.c
16466 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
16467 if device is known to be a dm one.
16468
f35fa3a6
CW
164692011-05-20 Colin Watson <cjwatson@ubuntu.com>
16470
16471 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
16472 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
16473 Reported by: Pawel Tecza.
16474
9a79fcf2
VS
164752011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
16478 (lsefisystab): Likewise.
16479 (lssal): Likewise.
16480 (lsefimmap): Likewise.
16481 (hdparm): Enable on qemu-mips.
16482 (setjmp): Add ia64 nodist.
16483 (serial): Simplify tags.
16484
63e3eea9
CW
164852011-05-18 Colin Watson <cjwatson@ubuntu.com>
16486
16487 * Makefile.util.def (grub-ofpathname): Install manual page.
16488
09728256
CW
164892011-05-18 Colin Watson <cjwatson@ubuntu.com>
16490
16491 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
16492
8b63a142
CW
164932011-05-18 Colin Watson <cjwatson@ubuntu.com>
16494
16495 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
16496
e775d8ed
VS
164972011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
16500 into dprintf.
16501
bf947d36
VS
165022011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16503
16504 Use full 64-bit division.
16505
16506 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
16507 (grub_divmod64): ... this.
16508 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
16509 version.
16510
b84f26c5
CW
165112011-05-18 Colin Watson <cjwatson@ubuntu.com>
16512
16513 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
16514 `source'.
16515
5626056f
CW
165162011-05-18 Colin Watson <cjwatson@ubuntu.com>
16517
16518 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
16519 to avoid accidents when debugging with 'sh -x'.
16520 * grub-core/gensyminfo.sh.in: Likewise.
16521 * tests/example_scripted_test.in: Likewise.
16522 * tests/grub_cmd_regexp.in: Likewise.
16523 * tests/grub_script_blanklines.in: Likewise.
16524 * tests/grub_script_dollar.in: Likewise.
16525 * tests/grub_script_expansion.in: Likewise.
16526 * tests/grub_script_final_semicolon.in: Likewise.
16527 * tests/partmap_test.in: Likewise.
16528 * tests/util/grub-shell-tester.in: Likewise.
16529 * tests/util/grub-shell.in: Likewise.
16530
e2965f4a
CW
165312011-05-18 Colin Watson <cjwatson@ubuntu.com>
16532
16533 Move gfxmenu color handling to video, so that gfxterm can use it
16534 too.
16535
16536 * grub-core/gfxmenu/named_colors.c: Move to ...
16537 * grub-core/video/colors.c: ... here. Rename
16538 grub_gui_get_named_color to grub_video_get_named_color.
16539 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
16540 * grub-core/video/colors.c (my_isxdigit): ... here.
16541 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
16542 Move to ...
16543 * grub-core/video/colors.c (parse_hex_color_component): ... here.
16544 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
16545 to ...
16546 * grub-core/video/colors.c (grub_video_parse_color): ... here.
16547
16548 * include/grub/gui.h (grub_gui_color_t): Move to ...
16549 * include/grub/video.h (grub_video_rgba_color_t): ... here.
16550 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
16551 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
16552 * include/grub/gui.h (grub_gui_map_color): Move to ...
16553 * include/grub/video.h (grub_video_map_rgba_color): ... here.
16554 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
16555 to ...
16556 * include/grub/video.h (grub_video_get_named_color): ... here.
16557 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
16558 * include/grub/video.h (grub_video_parse_color): ... here.
16559
16560 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
16561 video/colors.c.
16562 (gfxmenu): Remove gfxmenu/named_colors.c.
16563 (video) [videomodules]: Add video/colors.c.
16564
16565 Add a background_color command.
16566
16567 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
16568 function.
16569 (GRUB_MOD_INIT): Register background_color command.
16570 (GRUB_MOD_FINI): Unregister background_color command.
16571 (redraw_screen_rect): Allow blend/replace of text layer to be
16572 controlled independently from whether there is a background bitmap.
16573 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
16574 changing bitmap.
16575
1e4b4390
VS
165762011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16577
26618ff0
VS
16578 Patch BPB in ntldr and chainloader --bpb.
16579
1e4b4390
VS
16580 * grub-core/fs/fat.c: Include grub/fat.h.
16581 (grub_fat_bpb): Moved to ...
16582 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
16583 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
16584 grub/ntfs.h.
16585 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
16586 Moved from here...
16587 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
16588 here.
16589 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
16590 New function.
16591 (grub_chainloader_cmd): Patch BPB if --bpb is given.
16592 (GRUB_MOD_INIT): Show --bpb.
16593 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
16594 * grub-core/normal/main.c (features): New variable.
16595 (GRUB_MOD_INIT): Set feature_* variables.
16596 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
16597 proto.
16598 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
16599
cf02731e
VS
166002011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
16603 for cleanness.
16604
e3a1073f
VS
166052011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 FreeDOS direct loading support.
16608
16609 * docs/grub.texi (Supported OS): Add FreeDOS.
16610 * grub-core/Makefile.core.def (freedos): New module.
16611 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
16612 variable.
16613 (grub_relocator16_boot): Handle %ebx.
16614 * grub-core/lib/i386/relocator16.S: Likewise.
16615 * grub-core/loader/i386/pc/freedos.c: New file.
16616
05caa461
VS
166172011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 Long Linux command line support.
16620
16621 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16622 (maximal_cmdline_size): New variable.
16623 (allocate_pages): Use maximal_cmdline_size.
16624 (grub_cmd_linux): Set and use maximal_cmdline_size.
16625 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16626 (allocate_pages): Use maximal_cmdline_size.
16627 (grub_cmd_linux): Set and use maximal_cmdline_size.
16628 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
16629 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
16630 and cmdline_size.
16631
a2491e23
VS
166322011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
166332011-05-18 Colin Watson <cjwatson@ubuntu.com>
16634
16635 Improve devmapper support
16636
16637 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
16638 (grub_util_is_lvm): New function.
16639 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
16640 than lvm if not dmraid.
16641 Handle mapped md nodes.
16642 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
16643 (grub_util_device_is_mapped): ... this. Make always available. All users
16644 updated.
16645 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
16646 (convert_system_partition_to_system_disk): Handle lvm, mpath and
16647 dmraid nodes.
16648 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
16649
6ad6223e
VS
166502011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
16653
16654 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
16655 * grub-core/modinfo.sh.in: New file.
16656 * grub-core/Makefile.core.def (modinfo.sh): New script.
16657 * util/grub-mknetdir.in: Use modinfo.sh.
16658 * util/grub-mkrescue.in: Likewise.
16659
543a8f6e
VS
166602011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16663 Fix potential usage of Elf32 instead of Elf64 when compiling on
16664 32-bit architecture. Add endianness macros while on it.
16665
4959e111
VS
166662011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 Use mipsel- rather than mips- in directories involving mipsel ports to
16669 allow both endiannesses coexist.
16670
16671 * configure.ac: proparate target_cpu=mipsel rather than resetting to
16672 mips. All conditions adjusted.
16673 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
16674 variable.
16675 * util/grub-install.in: Adjust conditions to take renaming into account.
16676 * util/grub-mkimage.c (image_targets): Likewise. New target
16677 mips-qemu_mips-elf for bigendian mips.
16678
35341bbc
VS
166792011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16680
16681 Avoid unnecessary copying on MIPS.
16682
16683 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
16684 early if src == dest.
16685 * util/grub-mkimage.c (generate_image): Arange for src == dest if
16686 compression is none.
16687
b772baed
VS
166882011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16689
16690 Reduce memory footprint on SGI by putting modules before the kernel
16691 as opposed to after.
16692
16693 * grub-core/Makefile.core.def (kernel): Increase linking address.
16694 (none_decompress): Likewise.
16695 (xz_decompress): Likewise.
16696 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
16697 address.
16698 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
16699 layout change.
16700 (grub_arch_modules_addr): New function.
16701 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
16702 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
16703 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
16704 here.
16705 * grub-core/kern/mips/startup.S (total_size): Rename to ...
16706 (grub_total_modules_size): ... this. Make global.
16707 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
16708 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
16709 New definition.
16710 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
16711 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
16712 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
16713 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
16714 * util/grub-mkimage.c (image_target_desc): New flag
16715 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
16716 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
16717 (generate_image): Handle images with modules before kernel.
16718
566a1917
VS
167192011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 Prevent potential loss of memory map by overwrite on qemu-mips.
16722
16723 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16724 Save ram size in $s4.
16725 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
16726 All users changed to grub_arch_memsize.
16727 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
16728 Loongson.
16729 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
16730 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
16731 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
16732 external variable.
16733
5d420cd9
CW
167342011-05-17 Colin Watson <cjwatson@ubuntu.com>
16735
16736 * .bzrignore: Remove grub-dumpbios.
16737
d064b830
CW
167382011-05-17 Colin Watson <cjwatson@ubuntu.com>
16739
16740 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
16741 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
16742 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
16743 existing options which append).
16744 * docs/grub.texi (Simple configuration): Document new options.
16745 Reported by: Ian Jackson. Fixes Debian bug #617538.
16746
3ca2b466
CW
167472011-05-17 Colin Watson <cjwatson@ubuntu.com>
16748
16749 * util/grub-fstest.c (cmd_cat): New function.
16750 (fstest): Handle CMD_CAT.
16751 (options): Add cat.
16752 (argp_parser): Handle cat.
16753
24c9143a
CW
167542011-05-17 Colin Watson <cjwatson@ubuntu.com>
16755
16756 * Makefile.util.def (grub-bin2h): Don't install.
16757 * docs/man/grub-bin2h.h2m: Remove.
16758
90f7ac19
VS
167592011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
16762 place.
16763
8d4a5178
VS
167642011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16765
16766 Reenable qemu-mips port.
16767
16768 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16769 Fix small arc bug while on it.
16770 * gentpl.py: Handle qemu_mips.
16771 * grub-core/Makefile.am: Likewise.
16772 * grub-core/Makefile.core.def: Likewise.
16773 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16774 inappropriate includes.
16775 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16776 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16777 * grub-core/kern/main.c (grub_modules_get_end)
16778 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16779 * grub-core/kern/mips/qemu-mips: Moved to ..
16780 * grub-core/kern/mips/qemu_mips: ... this.
16781 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16782 (grub_machine_init): Call terminfo_init and serial_init.
16783 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16784 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16785 New variable.
16786 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16787 parameter passing.
16788 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16789 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16790 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16791 * include/grub/mips/qemu_mips/cmos.h: New file.
16792 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16793 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16794 Removed.
16795 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16796 Use correct mips-style address.
16797 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16798 (GRUB_TICKS_PER_SECOND): Removed.
16799 (grub_get_rtc): Likewise.
16800 (grub_cpu_idle): Likewise.
16801 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16802 New definition.
16803 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16804 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16805 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16806 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16807 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16808 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16809 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16810 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16811
400b9371
VS
168122011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 SGI ARCS port.
16815
16816 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16817 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16818 platforms.
16819 * configure.ac: New target mips-arc.
16820 * gentpl.py: Likewise.
16821 * grub-core/Makefile.am: Likewise.
16822 * grub-core/Makefile.core.def: Likewise.
16823 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16824 (none_decompress): Likewise.
16825 (lsdev): New module.
16826 (datetime): Use lib/arc/datetime.c on ARC.
16827 (part_dvh): New module.
16828 * grub-core/commands/arc/lsdev.c: New file.
16829 * grub-core/disk/arc/arcdisk.c: Likewise.
16830 * grub-core/kern/mips/arc/init.c: Likewise.
16831 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16832 aligned addresses.
16833 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16834 support.
16835 (grub_arch_dl_relocate_symbols): Likewise.
16836 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16837 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16838 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16839 platforms.
16840 * grub-core/lib/arc/datetime.c: New file.
16841 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16842 pci.h on non-loongson.
16843 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16844 (grub_linux_boot): Set unused registers to 0.
16845 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16846 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16847 * grub-core/mmap/mips/uppermem.c: ...here.
16848 * grub-core/partmap/dvh.c: New file.
16849 * grub-core/term/arc/console.c: Likewise.
16850 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16851 (grub_terminfo_set_current): Add terminal "arc".
16852 (grub_terminfo_readkey): Support ARC sequences.
16853 * include/grub/arc/arc.h: New file.
16854 * include/grub/arc/console.h: Likewise.
16855 * include/grub/disk.h (grub_disk_dev_id): Add
16856 GRUB_DISK_DEVICE_ARCDISK_ID.
16857 * include/grub/mips/arc/kernel.h: New file.
16858 * include/grub/mips/arc/memory.h: Likewise.
16859 * include/grub/mips/arc/time.h: Likewise.
16860 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16861 * include/grub/mips/kernel.h (grub_halt): ... here.
16862 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16863 here...
16864 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16865 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16866 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16867 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16868 proto.
16869 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16870 from here ...
16871 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16872 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16873 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16874 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16875 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16876 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16877 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16878 (grub_phys_addr_t): Moved from here ...
16879 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16880 (grub_vtop): Moved from here ...
16881 * include/grub/mips/memory.h (grub_vtop): ... here.
16882 (grub_map_memory): Moved from here ...
16883 * include/grub/mips/memory.h (grub_map_memory): ... here.
16884 (grub_unmap_memory): Moved from here ...
16885 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16886 (grub_machine_mmap_iterate): Moved from here ...
16887 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16888 (grub_mmap_get_lower): Moved from here ...
16889 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16890 (grub_mmap_get_upper): Moved from here ...
16891 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16892 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16893 here ...
16894 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16895 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16896 here ...
16897 * include/grub/mips/time.h (grub_get_rtc): ... here.
16898 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16899 here ...
16900 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16901 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16902 here ...
16903 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16904 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16905 definition.
16906 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16907 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16908 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16909 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16910 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16911 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16912 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16913 (GRUB_MACHINE_LINK_ADDR): Likewise.
16914 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16915 to 6.
16916 * util/grub-install.in: Run dvhtool on ARC.
16917 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 16918 (generate_image): Handle ECOFF output for mips-arc.
400b9371 16919
c8ecc840
VS
169202011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16923 blocks.
16924
153a4b55
VS
169252011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16928 after enabling port.
16929
ff44d107
VS
169302011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16931
16932 Skip incorrect USB devices.
16933
16934 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16935 configcnt == 0.
16936 * include/grub/usb.h (grub_usb_err_t): New enum value
16937 GRUB_USB_ERR_BADDEVICE.
16938
638dbe4f
VS
169392011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 Fuloong video init support.
16942
16943 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16944 well.
16945 (grub_vga_read_arx): New function.
16946 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16947 definition.
16948 (framebuffer): New members io, mmioptr and mmiobase.
16949 (read_sis_cmd): New function.
16950 (write_sis_cmd): Likewise.
16951 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16952 rather than 640x400.
16953 * grub-core/video/sis315_init.c: New file.
16954
c3fc520c
VS
169552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16958 non-loongson.
16959 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16960 to grub_dl_register_symbol.
16961
67b1e5c9
VS
169622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 Fix compilation errors.
16965
16966 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16967 potentially unused.
16968 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16969 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16970 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16971 to loongson machines.
16972
b756f75f
VS
169732011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16974
16975 Several FS mtime support.
16976
16977 * grub-core/fs/affs.c (grub_affs_time): New struct.
16978 (grub_affs_file): New field mtime.
16979 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16980 type. Removed 'size'. New field 'di'. All users updated.
16981 (grub_affs_mount): Simplify checsum checking.
16982 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16983 (grub_affs_dir): Handle mtime.
16984 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16985 (grub_cpio_dir): Likewise.
16986 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16987 (grub_hfs_filerec): New field mtime.
16988 (grub_hfs_dir): Handle mtime.
16989 (grub_hfs_mtime): New function.
16990 (grub_hfs_fs): Register grub_hfs_mtime.
16991 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16992 (grub_iso9660_dir): New field mtime.
16993 (grub_fshelp_node): New field dirent.
16994 (iso9660_to_unixtime): New function.
16995 (iso9660_to_unixtime2): Likewise.
16996 (grub_iso9660_read_symlink): Use node->dirent.
16997 (grub_iso9660_iterate_dir): Likewise.
16998 (grub_iso9660_dir): Set mtime.
16999 (grub_iso9660_mtime): New function.
17000 (grub_iso9660_fs): Register grub_iso9660_mtime.
17001 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
17002 (grub_jfs_inode): New fields atime, ctime and mtime.
17003 (grub_jfs_dir): Set mtime.
17004 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17005 * grub-core/fs/ntfs.c (list_file): Set mtime.
17006 (grub_ntfs_dir): Likewise.
17007 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
17008 (grub_reiserfs_iterate_dir): Set mtime.
17009 (grub_reiserfs_dir): Likewise.
17010 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
17011 (grub_fshelp_node): Likewise.
17012 (grub_sfs_iterate_dir): Set mtime.
17013 (grub_sfs_dir): Likewise.
17014 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
17015 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
17016 (grub_xfs_inode): New fields atime, mtime, ctime.
17017 (grub_xfs_dir): Set mtime.
17018 * include/grub/datetime.h (grub_datetime2unixtime): New function.
17019 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
17020 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
17021
17022 Support UDF symlinks.
17023
17024 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
17025 (grub_ufs_read_symlink): New function. All users updated.
17026
17027 Check amiga partmap checksum.
17028
17029 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
17030 (grub_amiga_partition): Likewise.
17031 (amiga_partition_map_checksum): New function.
17032 (amiga_partition_map_iterate): Check checksum.
17033
5470225d
VS
170342011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 ROMFS support.
17037
17038 * Makefile.util.def (libgrubmods.a): Add romfs.
17039 * grub-core/Makefile.core.def (romfs): New module.
17040 * grub-core/fs/romfs.c: New file.
17041
d4680a35
VS
170422011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 Squashfs v4 support.
17045
17046 * Makefile.util.def (libgrubmods.a): Add squash4.
17047 * grub-core/Makefile.core.def (squash4): New module.
17048 * grub-core/fs/squash4.c: New file.
17049 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
17050 disk_input_start, disk_input.
17051 (get_byte): Handle disk_input.
17052 (grub_zlib_disk_read): New function.
17053 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
17054
bcb18e74
FZ
170552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
170562011-05-15 Feiran Zheng <famcool@gmail.com>
17057
17058 * Makefile.util.def (libgrubmods.a): Add minix3.
17059 * grub-core/Makefile.core.def (minix3): New module.
17060 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
17061 (GRUB_MINIX_BSIZE): Removed.
17062 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
17063 (grub_minix_ino_t): New type.
17064 (grub_minix_le_to_cpu_ino): New macro.
17065 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
17066 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
17067 (grub_minix_data): New field block_size.
17068 (grub_minix_read_file): Handle 64-bit correctly.
17069 * grub-core/fs/minix3.c: New file.
17070
32297d5f
TG
170712011-05-15 Tristan Gingold <gingold@free.fr>
170722011-05-15 Robert Millan <rmh.grub@aybabtu.com>
170732011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
17074
17075 IA64 support.
17076
17077 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
17078 * configure.ac: Add ia64-efi target.
17079 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
17080 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
17081 * gentpl.py: Add ia64_efi platform.
17082 Rename x86_efi to efi and Add ia64-efi. All users updated.
17083 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
17084 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
17085 Remove kern/generic/rtc_get_time_ms.c on EFI.
17086 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
17087 kern/ia64/dl_helper.c on ia64-efi.
17088 Add kern/emu/cache.c on emu.
17089 (linux): Use on loader/ia64/efi/linux.c on ia64.
17090 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
17091 whether symbol is a function.
17092 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
17093 (grub_symbol): New field 'isfunc'.
17094 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
17095 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
17096 (grub_dl_load_segments): Place all sections into the same region.
17097 [__ia64__]: Create trampolines and got.
17098 [GRUB_MACHINE_EMU]: Call mprotect.
17099 (grub_dl_resolve_symbols): Resolve symbol type as well.
17100 [__ia64__]: Create function descriptors.
17101 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
17102 (grub_rtc_get_time_ms): ... this. Expressions simplified.
17103 (grub_get_rtc): New function.
17104 * grub-core/kern/emu/cache.c [__ia64__]: New file.
17105 * grub-core/kern/emu/cache.S: Renamed to ...
17106 * grub-core/kern/emu/cache_s.S: ... this.
17107 [__ia64__]: Add a nop.
17108 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
17109 [__ia64__]: New function.
17110 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
17111 * grub-core/kern/ia64/dl.c: New file.
17112 * grub-core/kern/ia64/dl_helper.c: Likewise.
17113 * grub-core/kern/ia64/efi/init.c: New file.
17114 * grub-core/kern/ia64/efi/startup.S: Likewise.
17115 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
17116 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
17117 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
17118 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
17119 * grub-core/loader/ia64/efi/linux.c: New file.
17120 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
17121 (GRUB_MOD_DEP): Likewise.
17122 (grub_dl) [__ia64__]: New fields got and tramp.
17123 (grub_dl): New field 'base'.
17124 (grub_dl_register_symbol): New argument isfunc. All users updated.
17125 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
17126 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
17127 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
17128 (grub_ia64_dl_get_tramp_got_size): New proto.
17129 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
17130 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
17131 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
17132 * include/grub/efi/api.h: Skip call wrappers on ia64.
17133 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
17134 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
17135 * include/grub/elf.h (ELF_ST_INFO): New definition.
17136 * include/grub/ia64/efi/kernel.h: New file.
17137 * include/grub/ia64/efi/memory.h: Likewise.
17138 * include/grub/ia64/efi/time.h: Likewise.
17139 * include/grub/ia64/kernel.h: Likewise.
17140 * include/grub/ia64/setjmp.h: Likewise (from glibc).
17141 * include/grub/ia64/time.h: New file.
17142 * include/grub/ia64/types.h: Likewise.
17143 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
17144 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
17145 New protos.
17146 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
17147 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17148 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
17149 * util/grub-mkimage.c (image_target_desc): New field pe_target.
17150 All users updated.
17151 (EFI64_HEADER_SIZE): New definition. All users updated.
17152 (image_targets): Add ia64-efi.
17153 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
17154 jumpers_addr. All users updated.
17155 Create function descriptors.
17156 (count_funcs): New function.
17157 (unaligned_uint32): New struct.
17158 (MASK20): New definition.
17159 (MASK19): Likewise.
17160 (MASKF21): Likewise.
17161 (add_value_to_slot_20b): New function.
17162 (add_value_to_slot_21_real): Likewise.
17163 (add_value_to_slot_21): Likewise.
17164 (ia64_kernel_trampoline): New struct.
17165 (nopm): New variable.
17166 (jump): Likewise.
17167 (make_trampoline): New function.
17168 (relocate_addresses): Handle ia64.
17169 (make_reloc_section): Likewise.
17170 (load_image): Likewise.
17171
983b414d
VS
171722011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
17173
17174 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
17175 warning. Move variables before code while on it.
17176
5d063cdc
VS
171772011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
17178
17179 Fuloong support.
17180
17181 * configure.ac: Rename yeeloong platform to loongson. All users updated.
17182 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
17183 * grub-core/boot/mips/loongson/fuloong.S: New file.
17184 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
17185 Explicitly init CS5536.
17186 [FULOONG]: Don't use serial until CS5536 is available.
17187 Set GPIO based on dumps.
17188 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
17189 [FULOONG]: Handle GPIO and memory controller differences.
17190 Parse machine type in $a2.
17191 * grub-core/boot/mips/startup_raw.S: Determine and save the
17192 architecture.
17193 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
17194 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
17195 init on architecture type.
17196 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17197 SIS315E. Don't init at_keyboard on fuloong.
17198 (grub_halt): Support Fuloong.
17199 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
17200 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
17201 (loongson_machtypes): New array.
17202 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
17203 type.
17204 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
17205 config. All users updated. Handle CS5536 serial.
17206 * grub-core/term/serial.c (grub_serial_register): Conditionalise
17207 default port on machine type. Register serial as inactive.
17208 * grub-core/video/sis315pro.c: New file.
17209 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
17210 definition.
17211 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
17212 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
17213 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
17214 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
17215 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
17216 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
17217 to ...
17218 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
17219 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
17220 definition.
17221 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
17222 (grub_arch_machine): New extern var.
17223 * include/grub/mips/loongson/serial.h
17224 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
17225 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
17226 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
17227 (GRUB_MACHINE_SERIAL_PORT0): ... this.
17228 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
17229 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
17230 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
17231 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
17232 * include/grub/term.h (grub_term_register_input_inactive): New inline
17233 function.
17234 (grub_term_register_output_inactive): Likewise.
17235 * include/grub/video.h (grub_video_driver_id): New value
17236 GRUB_VIDEO_DRIVER_SIS315PRO.
17237 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
17238 New field "names". All users updated.
17239 New field value IMAGE_FULOONG_FLASH.
17240 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
17241
6ada82d1
JU
172422011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
17243
17244 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
17245 and add some clarification.
17246
90c571a4
VS
172472011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17248
17249 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
17250 platforms if kernel is compressed.
17251
de04eecf
VS
172522011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17253
17254 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
17255 unused modules since currently referrence counter isn't reliable and
17256 there isn't much memory to recover there anyway.
17257
57688121
VS
172582011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
17261 rather than resetting it to allow modules to reference themselves
17262 in init.
17263
3d2c7e35
VS
172642011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17265
17266 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
17267 counter on dependencies since grub_dl_unref already handles this.
17268
b25db218
VS
172692011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17270
17271 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
17272 on error if not already done.
17273
25a45338
VS
172742011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 Fix few potential memory misusage.
17277
17278 * grub-core/font/font.c (load_font_index): Don't free char_index to
17279 avoid double free.
b25db218
VS
17280 (grub_font_load): Zero-fill font at alloc for safety.
17281 Close file on error.
17282 (free_font): Free bmp_idx.
25a45338 17283
0cac83df
VS
172842011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * docs/grub.texi (Installation): Fix several outdated claims.
17287
2217a143
VS
172882011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 Handle module_license on windows.
17291
17292 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
17293 sections shifted.
17294 (insert_string): Make argument const char * instead of char *.
17295 (write_section_data): Handle long section names.
17296 Handle module_license.
17297
d4de6b01
VS
172982011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
17301 handle class-free menuentries.
17302 (grub_normal_add_menu_entry): Add a check to be sure.
17303
4c2a3b43
VS
173042011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
17307 PgUp and PgDown.
17308
85c6210f
VS
173092011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17310
17311 * configure.ac: Bump version to 1.99.
17312
36084912
VS
173132011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 Give ATA device a bit more time on first try in order to allow disks
17316 to spin up.
17317
17318 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
17319 if dev->present is 1. Reset dev->present on failure.
17320 (grub_ata_device_initialize): Set dev->present to 1.
17321 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
17322 (grub_ata_device): New member 'present'.
17323
bda0e219
VS
173242011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 * util/grub-mkimage.c (generate_image): Update hash.
17327
19e1c41b
VS
173282011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 Flush caches on DMA memory.
17331
17332 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
17333 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
17334 (grub_dma_free): Likewise.
17335 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
17336
91bbcc0c
VS
173372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17338
17339 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
17340 to avoid asm treating ld and sd as macros.
17341
60ddfad3
VS
173422011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17343
17344 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
17345 decompressor.
17346
a298aa04
VS
173472011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
17350 grub_decompress_core since later would fail if grub_decompress_core
17351 is too far.
17352
9b44feca
VS
173532011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
17356 R_MIPS_JALR since it's used by newer compiler.
17357
56dbe7b4
VS
173582011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
17361
52856af2
VS
173622011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
17365 file_path to 0 for surety.
17366 (grub_chainloader_boot): Set exit_data to NULL.
17367 Unset the loader once done.
17368 (grub_cmd_chainloader): Fix confusing error message if file is empty.
17369
9c9bfc6d
VS
173702011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
17373 unknown key into a dprintf.
17374
dd94a3df
VS
173752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
17378 on first non-existant partition.
17379
fa68d99c
VS
173802011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
17383 openning fails.
17384 Reported by: Mark Korenberg.
17385
157effb7
VS
173862011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
17389 overflow.
17390
ea75312f
VS
173912011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17392
17393 * util/grub-mkimage.c (main): Explicitely flush and sync the output
17394 before closing to ensure that it will be readable by grub-setup.
17395
072b5d31
VS
173962011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17397
17398 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
17399 (devpath_1): Use MAKE_PIWG_PATH.
17400 (devpath_2): Likewise.
17401 (devpath_3): Likewise.
17402 (devpath_4): Likewise.
17403 (devpath_5): Likewise.
17404 (devpath_6): Likewise.
17405
17406 The appleldr.mod was checked that to be binary identical to previous
17407 version.
17408
7fae0051
Z
174092011-05-05 Zach <mikezackles>
17410
17411 Support 2010 Macbooks.
17412
17413 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
17414 (devs): Add devpath_6.
17415
7c515bee
VS
174162011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
17419 /dev/random. /dev/urandom is good enough for our purposes (salting).
17420
ed660bd8
VS
174212011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
17424
ee5614b7
VS
174252011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
17428 hexadecimal.
17429
664889a6
VS
174302011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
17433 and not 0 on failure.
17434
bd405bbc
CW
174352011-05-03 Colin Watson <cjwatson@ubuntu.com>
17436
17437 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
17438 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
17439 disk; otherwise grub_fs_probe will not fall back to the next
17440 filesystem.
17441 (grub_pxefs_open): Likewise, for consistency.
17442 Reported and tested by: Ezekiel Grave.
17443
4ebff753
CW
174442011-05-03 Colin Watson <cjwatson@ubuntu.com>
17445
17446 * tests/partmap_test.in: Don't hardcode path to parted.
17447 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
17448
8f942553
CW
174492011-05-01 Colin Watson <cjwatson@ubuntu.com>
17450
17451 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
17452 of `ls' to find out which devices are available.
17453
3c62402d
VS
174542011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
17457 than source address for efi mmap buffer.
17458
723f63f2
VS
174592011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17460
17461 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
17462 wrong action on non-detecting the magic.
17463
68797f92
VS
174642011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17465
17466 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
17467 already supplied by another part of the module (fixes compilation on
17468 FreeBSD).
17469
6be8715d
VS
174702011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
17473 match the one used by mdadm.
17474
e91dba5b
CW
174752011-04-21 Colin Watson <cjwatson@ubuntu.com>
17476
17477 * po/README: Add instructions for creating po/LINGUAS.
17478
c85140b3
CW
174792011-04-21 Colin Watson <cjwatson@ubuntu.com>
17480
17481 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
17482 #551428.
17483
17484 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
17485 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
17486 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
17487 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
17488 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
17489 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
17490 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
17491 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
17492 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
17493 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
17494 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
17495 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
17496 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
17497 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
17498 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
17499 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
17500 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
17501 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
17502 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
17503 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
17504 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
17505 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
17506
92051871
CW
175072011-04-21 Colin Watson <cjwatson@ubuntu.com>
17508
17509 * grub-core/kern/emu/getroot.c
17510 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
17511 test that was incorrectly reintroduced in r3214.
17512 Reported by: Ian Dall. Fixes Savannah bug #33133.
17513
b13f79a4
CW
175142011-04-21 Colin Watson <cjwatson@ubuntu.com>
17515
17516 Fix stack pointer handling in 16-bit relocator.
17517
17518 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
17519 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
17520 Fixes Ubuntu bug #683904.
17521
9b710a88
VS
175222011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17523
17524 * configure.ac: Bump version to 1.99~rc2.
17525
d97e7b59
VS
175262011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17527
17528 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
17529 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
17530 * grub-core/lib/x86_64/setjmp.S: Likewise.
17531 * grub-core/lib/mips/setjmp.S: Likewise.
17532 * grub-core/lib/powerpc/setjmp.S: Likewise.
17533 * grub-core/lib/sparc64/setjmp.S: Likewise.
17534
0624551c
VS
175352011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
17538 * grub-core/lib/efi/datetime.c: Likewise.
17539
e8f28d4c
VS
175402011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17541
17542 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
17543 New function.
17544 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
17545 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
17546 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
17547
bba79a15
VS
175482011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
17551 bitmap.
17552 (grub_gfxterm_term_init): Likewise.
17553
abc474ef
VS
175542011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17555
17556 Take into account the decorations the computing menu entry width.
17557
17558 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
17559 (grub_gfxmenu_create_box): Register get_border_width.
17560 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
17561 if available.
17562 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
17563 get_border_width.
17564
e74b3947
EP
175652011-04-18 Endres Puschner <code@e7p.de>
17566
17567 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
17568 Don't skip first class.
17569
34faa595
VS
175702011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
17573 chunks.
17574 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
17575
93a777e3
VS
175762011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 Complete 64-bit division support.
17579
17580 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
17581 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
17582 * include/grub/misc.h (grub_divmod64): Rename to ...
17583 (grub_divmod64_full): ... this.
17584 (grub_divmod64): New inline function.
17585
a5102d94
VS
175862011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * util/grub-mkimage.c (generate_image): Add forgotten comma.
17589
f3fb7b36
VS
175902011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17591
17592 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
17593 performing the necessary test.
17594
9ac718b0
VS
175952011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17596
17597 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
17598 (kfreebsd.elf): Likewise.
17599 (pc-chainloader.elf): Likewise.
17600 (ntldr.elf): Likewise.
17601
50d2cc5a
VS
176022011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17603
17604 Identify RAID by its UUID rather than (guessed) name.
17605
17606 * grub-core/disk/raid.c (ascii2hex): New function.
17607 (grub_raid_open): Accept mduuid/%s specification.
17608 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
17609 (get_mdadm_uuid): ... this.
17610 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
17611
e03f7bea
VS
176122011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
17613
17614 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
17615 to negative size.
17616
e74c3112
CW
176172011-04-13 Colin Watson <cjwatson@ubuntu.com>
17618
17619 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
17620 btrfs subvolume.
17621 * util/grub.d/20_linux_xen.in: Likewise.
17622
78fa584f
CW
176232011-04-13 Colin Watson <cjwatson@ubuntu.com>
17624
17625 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
17626 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
17627
17628 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17629 Build a list of relevant visible mounts using the mnt_id and
17630 parent_mnt_id fields, and then scan that list at the end.
17631
9d5f8162
CW
176322011-04-12 Colin Watson <cjwatson@ubuntu.com>
17633
17634 * docs/grub.texi (normal): New section.
17635 (normal_exit): New section.
17636 (Embedded configuration): Add reference to normal.
17637 (GRUB only offers a rescue shell): Likewise.
17638 * docs/grub-dev.texi (Error Handling): Fix typo.
17639
09a9d66f
CW
176402011-04-12 Colin Watson <cjwatson@ubuntu.com>
17641
17642 * NEWS: Drop obsolete entry about probe-only btrfs support.
17643
0c676933
CW
176442011-04-12 Colin Watson <cjwatson@ubuntu.com>
17645
17646 * util/import_gcry.py: Fix typo.
17647
ec9f5e0d
VS
176482011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17649
17650 * NEWS: Add btrfs support.
17651
fe6b2cba
VS
176522011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
176532011-04-11 Colin Watson <cjwatson@ubuntu.com>
17654
17655 BtrFS support. Written by me (Vladimir) with important bugfixes and
17656 even more important testing by Colin.
17657
17658 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
17659 * grub-core/Makefile.core.def (btrfs): Add crc.c.
17660 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
17661 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
17662 mem_input_off and mem_input. All users updated to accept in-RAM input.
17663 (gzio_seek): New function.
17664 (test_zlib_header): Likewise.
17665 (grub_gzio_read): Likewise.
17666 (grub_zlib_decompress): Likewise.
17667 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
17668 Accept partial and non-virtual mounts.
17669 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
17670 avoid receiving /dev/dm-X as device.
17671 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
17672 Handle bind and partial mounts.
17673 * grub-core/lib/crc.c: New file.
17674 * include/grub/deflate.h: Likewise.
17675 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
17676 proto.
17677 * include/grub/lib/crc.h: New file.
17678
e745cf0c
VS
176792011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17680
17681 Implement automatic module license checking according to new GNU
17682 guidelines.
17683
17684 * grub-core/kern/dl.c (grub_dl_check_license): New function.
17685 (grub_dl_load_core): Use grub_dl_check_license.
17686 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
17687 (GRUB_MOD_LICENSE): Likewise.
17688 (GRUB_MOD_DUAL_LICENSE): Likewise.
17689 All modules updated.
17690
2a9bc016
CW
176912011-04-11 Colin Watson <cjwatson@ubuntu.com>
17692
17693 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
17694 reserved_first_sector to 1. btrfs reserves plenty of space for boot
17695 loaders.
17696 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
17697
8a3bc88e
VS
176982011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17699
17700 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
17701
af869a4a
VS
177022011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17703
17704 * util/grub-fstest.c (read_file): Report GRUB error if file opening
17705 failed.
17706
9ee8d94f
VS
177072011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 * grub-core/kern/file.c (grub_file_open): Don't take into account the
17710 parenthesis in the middle of the filename.
17711
b01abe3e
VS
177122011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17713
17714 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
17715 rather than trying to put initrd way too high.
17716 Reported by: Ryan Lortie <desrt@desrt.ca>
17717
335bda1e
VS
177182011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
17721 improperly removed string.
17722
5ca1a64d
VS
177232011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17724
17725 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
17726 is_disk.
17727 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
17728 (open_device) Likewise.
17729 (grub_util_biosdisk_close): Likewise.
d8ce9995 17730 Reported by: Mark Korenberg.
5ca1a64d 17731
cbac5b1e
AK
177322011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
17733
17734 * util/grub-mkconfig_lib.in: Add missing quotes.
17735
088cdb65
CW
177362011-04-10 Colin Watson <cjwatson@ubuntu.com>
17737
17738 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
17739 is NULL.
17740
8b8a81fa
VS
177412011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17742
17743 Dynamically count the number of lines for the lower banner.
17744
17745 * grub-core/normal/menu_entry.c (per_term_screen): New member
17746 num_entries.
17747 (print_down): Use num_entries.
17748 (update_screen): Likewise.
17749 (grub_menu_entry_run): Set num_entries.
17750 * grub-core/normal/menu_text.c (menu_viewer_data): New member
17751 num_entries.
17752 (grub_print_message_indented): Move real part to ...
17753 (grub_print_message_indented_real): ... here. Additional argument
17754 dry_run.
17755 (draw_border): Additional argument num_entries.
17756 (print_message): Additional argument dry_run.
17757 (print_entries): Receive menu viewer data.
17758 (grub_menu_init_page): New argment num_entries.
17759 (menu_text_set_chosen_entry): Use num_entries.
17760 (grub_menu_try_text): Likewise.
17761 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
17762 All users updated.
17763 (grub_ucs4_count_lines): New function.
17764 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17765 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17766 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17767 (grub_term_border_height): Likewise.
17768 (grub_term_num_entries): Likewise.
17769
277f955b
VS
177702011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17771
17772 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17773 Remove now unused string.
17774
536ce85a
CW
177752011-04-09 Colin Watson <cjwatson@ubuntu.com>
17776
17777 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17778 build system.
17779 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17780
17781 (Comment): Fix typo.
17782 (Getting started): General copy-editing.
17783 (Typical Development Experience): Likewise.
17784 (Error Handling): Likewise.
17785 (Video API): Likewise.
17786
2cf09e32
CW
177872011-04-09 Colin Watson <cjwatson@ubuntu.com>
17788
17789 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17790 throughout.
17791
1ec652f4
VS
177922011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17793
17794 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17795 directory.
17796
2c583728
CW
177972011-04-08 Colin Watson <cjwatson@ubuntu.com>
17798
17799 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17800 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17801 "development".
17802
d7a565e9
VS
178032011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17806 grub_strcpy since the lines aren't necessarily 0-terminated.
17807
7c2e4909
VS
178082011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17811 root on legacy.
17812
34c09785
VS
178132011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17816 (GRUB_MOD_INIT): DEVICE isn't optional.
17817
6a6f8058
VS
178182011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17819
17820 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17821 word on new line if it's too long anyway. Fixes a hang.
17822
2e335e90
VS
178232011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17826 const.
17827 * util/grub-setup.c (main): Reuse md device name if available.
17828 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17829 not GRUB name as argument.
17830 Based on patch by: Florian Wagner <fwagner>.
17831
10a7a867
VS
178322011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17835 Place mbi on low memory for better compatibility.
17836
7a3d6cd9
VS
178372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17840
18dd6b47
VS
178412011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
178422011-04-08 Colin Watson <cjwatson@ubuntu.com>
17843
17844 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 17845 * conf/Makefile.common: Likewise.
18dd6b47 17846
3c0e3f14
VS
178472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17848
f7148863
VS
17849 * grub-core/normal/menu.c: Add missing include.
17850
178512011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17852
17853 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 17854
6d1fa41f
MZ
178552011-04-08 Martin Zuther <mzuther@mzuther.de>
17856
17857 * util/grub-mkconfig.in: Ignore emacsen backup.
17858
478182a8
VS
178592011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17862 on open.
17863 (grub_util_biosdisk_close): Likewise.
17864
72a89a54
VS
178652011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17866
17867 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17868 const attribute and use grub_isdigit.
17869
b5ebecfa
A
178702011-04-06 Andrey <dev_null@ukr.net>
17871
17872 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17873 gcc warning.
17874
7755f66e
VS
178752011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17876
17877 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17878 useful grub_dprintf's.
17879
461121ff
VS
178802011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17881
17882 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17883
2a961775
VS
178842011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17885
17886 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17887
adf594cc
VS
178882011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 Output errors if theme loading failed.
17891
17892 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17893 grub_gfxterm_fullscreen on error paths to ...
17894 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17895 theme loading error.
17896
665900a3
VS
178972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17898
17899 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17900 space for older compilers.
17901 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17902
a562b479
VS
179032011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17904
17905 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17906 and report them as not RAID members since they are useless for GRUB.
17907 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17908
850e9373
VS
179092011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17910
17911 Increase LVM implementation robustness in order not to crash on
17912 configurations like pvmove. Previously code assumed that in some places
17913 only lvs or only pvs are used whereas it seems that they are used
17914 interchangeably.
17915
17916 * grub-core/disk/lvm.c (read_node): New function.
17917 (read_lv): Use read_node.
17918 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17919 Match volumes only at the end when all lvs are found. Take both
17920 pvs (first) and lvs (second) into account.
17921 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17922 mirror_* into node_*. All users updated.
17923 (grub_lvm_stripe): Merge this ...
17924 (grub_lvm_mirror): ... and this ...
17925 (grub_lvm_node): ... into this. All users updated.
17926
6f332153
VS
179272011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17928
17929 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17930 of function to allow further scanning for LVMs.
17931
829ea451
VS
179322011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17933
17934 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17935 on failed seek as it breaks open fd reusage.
17936
09ceb9a5
VS
179372011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17938
17939 * util/grub-install.in: Add a recommendation to use --recheck before
17940 reporting bugs.
17941
67e11623
VS
179422011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17943
17944 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17945 are obtained.
17946
caee5efd
VS
179472011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17948
17949 GRUB developper manual based on existing Internals section and
17950 contributions by the various authors with active copyright assignment.
17951
17952 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17953 * docs/font_char_metrics.png: New file.
17954 * docs/font_char_metrics.txt: Likewise.
17955 * docs/grub-dev.texi: Likewise.
17956 * docs/grub.texi (Internals): Move from here ...
17957 * docs/grub-dev.texi: ... here.
17958
2cccc747
CW
179592011-04-01 Colin Watson <cjwatson@ubuntu.com>
17960
17961 Store the loopback device as data on loopback grub_disk structures,
17962 rather than the file it points to. This fixes use of freed memory
17963 if an existing loopback device is replaced.
17964
17965 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17966 disk->data, not dev->file.
17967 (grub_loopback_read): Adjust file assignment to match.
17968 Fixes Ubuntu bug #742967.
17969
186ae367
CW
179702011-04-01 Colin Watson <cjwatson@ubuntu.com>
17971
17972 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17973 when replacing an existing device.
17974
cfed2ad0
VS
179752011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17978 memory corruptions.
17979
17980 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17981 unsigned.
17982 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17983 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17984 (grub_jfs_read_inode): Likewise.
17985 (grub_jfs_opendir): Likewise. Remove now useless casts.
17986 (grub_jfs_getent): Likewise.
17987 Make ino a grub_uint32_t rather than int.
17988 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17989 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17990 division and module with bit operations.
17991 (grub_jfs_find_file): Make ino a grub_uint32_t.
17992 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17993
05d2ed32
CW
179942011-04-01 Colin Watson <cjwatson@ubuntu.com>
17995
17996 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17997 warning. (This was in fact always initialised before use, but GCC
17998 wasn't smart enough to prove that.)
17999 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
18000
91dc6073
VS
180012011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
18002
18003 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
18004 stack alignment.
18005 (efi_wrap_1): Likewise.
18006 (efi_wrap_2): Likewise.
18007 (efi_wrap_3): Likewise.
18008 (efi_wrap_4): Likewise.
18009 (efi_wrap_5): Likewise.
18010 (efi_wrap_6): Likewise.
18011 (efi_wrap_10): Likewise.
18012 Based on information by: Red Hat/Peter Jones.
18013
a8afc1d1
CW
180142011-03-31 Colin Watson <cjwatson@ubuntu.com>
18015
18016 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
18017 set-but-not-used variable.
18018
a826cc7d
CW
180192011-03-31 Colin Watson <cjwatson@ubuntu.com>
18020
18021 * docs/grub.texi (Simple configuration): Be more explicit about
18022 GRUB_DEFAULT, and add an example.
18023 Reported by: Leslie Rhorer.
18024
875b67ba
CW
180252011-03-30 Colin Watson <cjwatson@ubuntu.com>
18026
18027 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
18028 shell".
18029
fd7cd914
AS
180302011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
18031
18032 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
18033 * util/grub.d/20_linux_xen.in: Likewise.
18034
090b1b6a
VS
180352011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * util/grub.d/10_linux.in: Try alternative config filenames where
18038 we parse config file.
18039 * util/grub.d/20_linux_xen.in: Likewise.
18040
baad885c
AS
180412011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
18042
18043 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
18044 * util/grub.d/20_linux_xen.in: Likewise.
18045
241e41f5
VS
180462011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18047
18048 * grub-core/disk/raid.c (insert_array): Add few potentially
18049 useful grub_util_info.
18050 (grub_raid_register): Likewise.
18051
56445fb2
VS
180522011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18053
18054 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
18055 Preserve partition number in mdadm code path.
18056
c871b1c6
VS
180572011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18058
18059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
18060 few potentially useful grub_util_info.
18061
5e631b4f
CW
180622011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18063
18064 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
18065
2d5d0333
CW
180662011-03-30 Colin Watson <cjwatson@ubuntu.com>
18067
18068 * docs/grub.texi (default): Use @example rather than nested
18069 itemized lists to avoid breaking gendocs.
18070
3d7ed04e
CW
180712011-03-30 Colin Watson <cjwatson@ubuntu.com>
18072
18073 * docs/grub.texi (Future): Update.
18074
abf04200 180752011-03-30 Colin Watson <cjwatson@ubuntu.com>
18076
18077 * docs/grub.texi (Environment): New chapter.
18078 (Changes from GRUB Legacy): Link to "Environment block" section for
18079 details of limitations.
18080 (Simple configuration): Likewise. Link to documentation of gfxmode
18081 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
18082 respectively.
18083 (Shell-like scripting): Note that normal variables are stored in the
18084 environment.
18085 (gettext): Link to documentation of lang and locale_dir.
18086 (list_env): New section.
18087 (load_env): New section.
18088 (save_env): New section.
18089
18090 (Reporting bugs): Fix typo.
18091
e1ad0edd
VS
180922011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
18095 the example.
18096
5d803174
VS
180972011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18098
18099 * grub-core/term/at_keyboard.c (set_scancodes)
18100 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
18101
2a2da1d0
CW
181022011-03-30 Colin Watson <cjwatson@ubuntu.com>
18103
18104 * docs/grub.texi (Menu-specific commands): Remove some semantics
18105 that were true in GRUB Legacy but not in GRUB 2.
18106 (submenu): New section.
18107 (false): New section.
18108 (read): New section.
18109 (true): New section.
18110
a7527639
CW
181112011-03-30 Colin Watson <cjwatson@ubuntu.com>
18112
18113 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
18114
181152011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
18116
18117 * docs/grub.texi (Simple configuration): Explain some of the
18118 current limitations of grub-mkconfig.
8a748df2 18119 Reported by: Leslie Rhorer.
e30af029 18120
fc858482
VS
181212011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18122
18123 Old macs search for boot.efi rather than for bootia32.efi.
18124
18125 * util/grub-install.in: Copy bootia32.efi to boot.efi.
18126 * util/grub-mkrescue.in: Likewise.
18127 Suggested by: Peter Jones.
18128
e1eb511d
VS
181292011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18130
18131 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
18132
70e75364
VS
181332011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18134
18135 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
18136 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
18137 (grub_lvm_mirror): New struct.
18138 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
18139 (grub_lvm_iterate): Iterate only visible volumes.
18140 (grub_lvm_read): Factor out to ..
18141 (read_lv): ... this. Support mirrors.
18142 (grub_lvm_read): New wrapper function.
18143 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
18144 stripped or mirrored.
18145
fc18f6a3
VS
181462011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18147
18148 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
18149
5c650f4c
CW
181502011-03-29 Colin Watson <cjwatson@ubuntu.com>
18151
18152 * docs/grub.texi (loopback): New section.
18153
61d7156b
CW
181542011-03-29 Colin Watson <cjwatson@ubuntu.com>
18155
18156 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
18157 removed -p option.
18158
994b8264
CW
181592011-03-29 Colin Watson <cjwatson@ubuntu.com>
18160
18161 * docs/grub.texi (BIOS installation): New section, partly based on
18162 previous text in other sections.
18163 (Installing GRUB using grub-install): Replace BIOS discussion with a
18164 cross-reference.
18165 (Images): Likewise.
18166
9e4d19e0
VS
181672011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18168
18169 * grub-core/kern/emu/hostdisk.c (find_partition_start)
18170 [HAVE_DIOCGDINFO]: Add safety checks.
18171
a307c0b2
VS
181722011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
18175 per default compiled in kernel and prior to 8.0 isn't shipped at all.
18176
b4db4f39
CW
181772011-03-29 Colin Watson <cjwatson@ubuntu.com>
18178
18179 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
18180 real_sb->size is zero (e.g. RAID-0), get the disk size from
18181 real_sb->data_size instead.
18182 Fixes Ubuntu bug #743136.
18183
35e5f84c
VS
181842011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18185
18186 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
18187 printf clauses for printing size and start.
18188
d2e29d81
VS
181892011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
18192 Reported and tested by: Timothy Nikkel.
18193
ed5587af
VS
181942011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18195
18196 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
18197 (dirty_region_add_real): ... this.
18198 (dirty_region_add): Don't discard margin refresh when performing
18199 scheduled repaint.
18200
a1dc717c
VS
182012011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18202
18203 * grub-core/lib/relocator.c (allocate_regstart)
18204 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
18205 terminals are capabple of malloc-free operation.
18206 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
18207 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
18208
9f3677d3
VS
182092011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
18210
18211 * util/grub-setup.c: Copy the partition table zone if floppy support
18212 is disabled, even if no partition table is found.
18213
18214 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
18215 during POST if an invalid partition table is contained in the PBR
18216 of the active partition when GRUB is installed to a partition.
18217
24148725
CW
182182011-03-28 Colin Watson <cjwatson@debian.org>
18219
18220 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
18221 comment.
18222
f329eda7
CW
182232011-03-28 Colin Watson <cjwatson@debian.org>
18224
18225 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
18226 to be specific about what kind of RAID device we're scanning for.
18227
c482ad98
SG
182282011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
18229
18230 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
18231 return freed string.
18232
5ee04984
VS
182332011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18234
18235 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
18236
f4727da9
VS
182372011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18238
18239 Use libgeom on FreeBSD to detect partitions.
18240
18241 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
18242 (grub-mkrelpath): Likewise.
18243 (grub-script-check): Likewise.
18244 (grub-editenv): Likewise.
18245 (grub-mkpasswd-pbkdf2): Likewise.
18246 (grub-fstest): Likewise.
18247 (grub-mkfont): Likewise.
18248 (grub-mkdevicemap): Likewise.
18249 (grub-probe): Likewise.
18250 (grub-setup): Likewise.
18251 (grub-ofpathname): Likewise.
18252 (grub-mklayout): Likewise.
18253 (example_unit_test): Likewise.
18254 (grub-menulst2cfg): Likewise.
18255 * grub-core/Makefile.core.def (grub-emu): Likewise.
18256 (grub-emu-lite): Likewise.
18257 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
18258 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
18259 define HAVE_DIOCGDINFO.
18260 (follow_geom_up) [FreeBSD]: New function.
18261 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
18262 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
18263 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
18264 unconditionally of HAVE_DIOCGDINFO.
18265
82fe6c75
VS
182662011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18267
18268 Fix FreeBSD compilation problem.
18269
18270 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
18271 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
18272
4c6c9431
CW
182732011-03-24 Colin Watson <cjwatson@ubuntu.com>
18274
18275 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
18276 Switch back to page zero before loading a kernel, since some kernel
18277 drivers expect that.
18278 Thanks to: Felix Kuehling.
18279
c7064d94
VS
182802011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18281
18282 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
18283 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
18284 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
18285
3f71cded
VS
182862011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18287
18288 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
18289 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
18290
ef6de21a
VS
182912011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18292
18293 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
18294 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
18295 malloc is disabled.
18296
8bc66a2c
VS
182972011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18298
18299 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
18300 for modules headers when counting the needed allocation size.
18301
5657722c
VS
183022011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18303
18304 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
18305 if no ASCII character is found to prevent crash.
18306
41a85f55
AK
183072011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
18308
18309 * grub-core/video/bitmap.c (match_extension): Ignore case.
18310
59e1e5f1
VS
183112011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18312
18313 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
18314
bd4d051a
VS
183152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18316
18317 * grub-core/script/parser.y: Declare "time" as valid argument.
18318
bae7fcc1
PJ
183192011-03-23 Peter Jones <pjones@redhat.com>
18320
18321 Fix incorrect assert failure reporting.
18322
18323 * grub-core/tests/example_functional_test.c (example_test): Add
18324 a failure comment.
18325 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
18326 (failure_start): ...this. Check that malloc succeeded.
18327 Don't call xvasprintf. Return failure struct.
18328 (failure_append_vtext): New function.
18329 (failure_append_text): Likewise.
18330 (add_failure): Likewise.
18331 (grub_test_assert_helper): Likewise.
18332 * include/grub/test.h (grub_test_assert_helper): New declaration.
18333 (grub_test_assert): Macro rewritten.
18334
537dc9be
VS
183352011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18336
18337 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
18338
fa3e01bf
VS
183392011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18340
18341 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
18342
b1d28404
VS
183432011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18344
18345 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
18346 into GRUB-style one.
18347
2e3e2e09
VS
183482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18349
18350 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
18351 error and not grub_errno.
18352 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
18353
ed57e557
VS
183542011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18355
18356 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
18357 GRUB_USB_SPEED_NONE in case of failure and not the error code.
18358
d1611f01
VS
183592011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18360
18361 * grub-core/efiemu/i386/pc/cfgtables.c
18362 (grub_machine_efiemu_init_tables): Make declaration a prototype.
18363 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
18364 (grub_xnu_unlock): Likewise.
18365 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
18366
7d4e39d6
VS
183672011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
18370 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
18371 * grub-core/commands/hashsum.c (aliases): Likewise.
18372 * grub-core/commands/setpci.c (pci_registers): Likewise.
18373 * grub-core/disk/usbms.c (attach_hook): Likewise.
18374 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
18375 (zio_checksum_table): Likewise.
18376 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
18377 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
18378 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
18379 * grub-core/lib/relocator.c (leftovers): Likewise.
18380 (extra_blocks): Likewise.
18381 * grub-core/loader/i386/bsd.c (relocator): Likewise.
18382 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
18383 (modules_last): Likewise.
18384 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
18385 (devices): Likewise.
18386 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
18387 (modules_last): Likewise.
18388 * grub-core/normal/auth.c (users): Likewise.
18389 * grub-core/normal/context.c (initial_menu): Likewise.
18390 (current_menu): Likewise.
18391 * grub-core/normal/crypto.c (crypto_specs): Likewise.
18392 * grub-core/term/serial.c (grub_serial_ports): Likewise.
18393 (grub_serial_terminfo_input_template): Likewise.
18394 (grub_serial_terminfo_output_template): Likewise.
18395 (grub_serial_terminfo_input): Likewise.
18396 (grub_serial_terminfo_output): Likewise.
18397 (registered): Likewise.
18398 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
18399
40fc4659
VS
184002011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18401
18402 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
18403 grub_video_mode_type_t.
18404 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
18405 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
18406 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
18407
2da48d28
VS
184082011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18409
18410 * util/grub-install.in: Correct the x86-64 name as x86_64.
18411
9b43bf39
CW
184122011-03-11 Colin Watson <cjwatson@ubuntu.com>
18413
18414 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
18415 initial chunk read from the kernel always includes GRUB's multiboot
18416 header, which is now outside the first sector.
18417
be1a7ce0
CW
184182011-03-09 Colin Watson <cjwatson@ubuntu.com>
18419
18420 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
18421 cached mmap_size, so that this works correctly when called multiple
18422 times.
18423 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
18424
83a3c48d
CW
184252011-03-09 Colin Watson <cjwatson@ubuntu.com>
18426
18427 * docs/grub.texi (Simple configuration): Tidy up formatting.
18428
57d75699
SJ
184292011-03-07 Szymon Janc <szymon@janc.net.pl>
18430
18431 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
18432 Set-but-not-used variable removed.
18433
028501a0
VS
184342011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18435
18436 Workaround yet another IEEE1275 bug.
18437
18438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
18439 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
18440 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
18441 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
18442 is set.
18443 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18444 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
18445
d998657d
VS
184462011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18447
18448 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
18449 error.
18450
fee7cdd4
CW
184512011-02-11 Colin Watson <cjwatson@ubuntu.com>
18452
18453 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
18454 empty, since in that case we can only generate either nothing or a
18455 syntactically invalid configuration file.
18456 Reported by: Michal Suchanek. Fixes Debian bug #612898.
18457
97286eb5
CW
184582011-02-09 Colin Watson <cjwatson@ubuntu.com>
18459
18460 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
18461 (Making a GRUB bootable CD-ROM): Likewise.
18462 (Invoking grub-mkrescue): New section.
18463 Reported by: Yann Dirson. Fixes Debian bug #612585.
18464
22b28eb3
CW
184652011-02-09 Colin Watson <cjwatson@ubuntu.com>
18466
18467 * util/grub-install.in: Remove unnecessary brackets from tr
18468 arguments.
18469 * util/grub.d/10_hurd.in: Likewise.
18470 * util/grub.d/10_kfreebsd.in: Likewise.
18471 * util/grub.d/10_linux.in: Likewise.
18472 * util/grub.d/20_linux_xen.in: Likewise.
18473 Reported by: Jamie Heilman. Fixes Debian bug #612564.
18474
7e735e43
CW
184752011-02-08 Colin Watson <cjwatson@ubuntu.com>
18476
18477 * include/grub/file.h (not_easly_seekable): Rename to ...
18478 (not_easily_seekable): ... this. Update all users.
18479
800f1881
CW
184802011-01-28 Colin Watson <cjwatson@ubuntu.com>
18481
18482 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
18483 grub-mkrescue.
18484
3281d3d6
VS
184852011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
18486
18487 * util/grub-mkimage.c (generate_image): Refuse to create the images
18488 bigger than the actual flash (512K) in Loongson machines. 512K is also
18489 the biggest chip supported by them.
18490
3533413c
VS
184912011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18492
18493 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
18494
73ae4f4f
VS
184952011-01-22 Anthony DeRobertis <anthony@derobert.net>
18496
18497 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
18498 super_offset field.
18499
37f4f608
VS
185002011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18501
18502 * util/grub-install.in: Ignore install device on platforms
18503 where it doesn't make sense. Always use UUIDs except on pc, efi and
18504 sparc64.
18505 Reported by: Daniel Kahn Gillmor.
18506
03a4ccb5
VS
185072011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18508
18509 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
18510
ffc8f4d8
VS
185112011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18512
18513 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
18514 (iterate_real): Don't rely on partition being non-NULL.
18515
80f23be7
VS
185162011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18517
18518 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
18519 supported platforms. Put a compile time assert for this rather than
18520 generate a warning with 32-bit shift.
18521
5d4f4dd5
VS
185222011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18523
18524 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
18525 logical expression more readable.
18526
e489601a
VS
185272011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18528
18529 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
18530 even if some elements have a name.
18531 Reported by: Alexander GQ Gerasiov.
18532
96e0a6ea
CW
185332011-01-22 Colin Watson <cjwatson@ubuntu.com>
18534
18535 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
18536 path unreadable if `grub-probe -t abstraction' fails, for example if
18537 memberlist fails on an LVM volume group.
18538 Reported by: Darius Jahandarie.
18539
81431e2b
CW
185402011-01-22 Colin Watson <cjwatson@ubuntu.com>
18541
18542 * docs/grub.texi (Simple configuration): Document
18543 GRUB_PRELOAD_MODULES.
18544
5e79d66a
CW
185452011-01-17 Colin Watson <cjwatson@ubuntu.com>
18546
18547 * .bzrignore: Remove nonexistent grub-pbkdf2.
18548
646ada34
VS
185492011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
18550
18551 * configure.ac: Bump version to 1.99~rc1.
18552
04360337
VS
185532011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
18556 for safety.
18557
46c9db88
VS
185582011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
18561 module.
18562
185632011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
18564
18565 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
18566
4fbf1852
VS
185672011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18568
18569 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
18570 diskdevid.
18571
f1632d4d
VS
185722011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18573
18574 Fix compilation on cygwin.
18575
18576 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
18577 -R .drectve on cygwin.
18578 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
18579 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
18580 (COND_CYGWIN): New condition.
18581 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
18582 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
18583 not @TARGET_OBJ2ELF@.
18584 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
18585 type to determine whether aux is to be used.
18586
0b5e127b
VS
185872011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18588
18589 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
18590 realpath'ed device string.
18591 Handle floppy (somewhat).
18592 Issue error in unknown case rather than garbage.
18593 Reported by: Axel Beckert.
18594
173b71e9
VS
185952011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18596
18597 * util/grub.d/00_header.in (load_video): Handle the case when no video
18598 drivers available.
18599 Thanks to: Axel Beckert.
18600
f8f479db
VS
186012011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18602
18603 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
18604 variable. Fixes problem on big endian platforms.
18605
8fc0a245
VS
186062011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18607
18608 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
18609 It doesn't work well there.
18610
b8494fbe
VS
186112011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18612
18613 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
18614 warning.
18615 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
18616 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
18617 counter.
18618
b44a558c
VS
186192011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18620
18621 Use alias->path rather than buggy "canon".
18622
18623 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
18624 (ofdisk_hash_add): New argument curcan. All users updated.
18625
51fa856c
CW
186262011-01-11 Colin Watson <cjwatson@ubuntu.com>
18627
18628 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
18629
9da068a5
VS
186302011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
18633 loadmask before doing any calculations. Use correct type for offset.
18634 (grub_linux_load64): Likewise.
18635
86205c94
CW
186362011-01-11 Colin Watson <cjwatson@ubuntu.com>
18637
18638 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
18639 with NULL.
18640 (console_grub_equivalences_unshift): Likewise.
18641 Reported by: Daniel Dehennin.
18642
4531a206
VS
186432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18644
18645 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
18646 (set_env_limn_ro): Likewise.
18647 (GRUB_MOD_INIT): Likewise.
18648 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
18649 ARRAY_SIZE while on it.
18650 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
18651 * grub-core/normal/context.c (grub_env_export): Move from here ...
18652 * grub-core/kern/env.c (grub_env_export): ... here.
18653 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
18654 prefix.
18655 * grub-core/kern/main.c (grub_main): Export root and prefix.
18656 * include/grub/env.h (grub_env_export): Export.
18657 Reported by: Seth Goldberg.
18658
45146057
VS
186592011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18660
18661 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18662 Take into account space used by ELF sections and multiboot palette.
18663 Reported by: Grégoire Sutre.
18664
f093110b
VS
186652011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 * BUGS: New file.
18668
3395fe52
VS
186692011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18670
18671 Pass more appropriate video id to Linux.
18672
18673 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
18674 grub_video_get_driver_id and variable gfxpayloadforcelfb to
18675 fill have_vga.
18676 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
18677 shift params->lfb_size.
18678 * include/grub/i386/linux.h: Make an enume out of have_vga values.
18679
c2fa6cbb
VS
186802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * util/grub-menulst2cfg.c: Add missing include of misc.h.
18683
b3ff6ff0
VS
186842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18685
18686 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
18687 separator and pass bootpath/devid even if only one of them is available.
18688 Reported by: Seth Goldberg.
18689
ae67942e
VS
186902011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
18693 implementations bug on them.
18694
18695 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
18696 memory.
18697 (filter_memory_map): Likewise.
18698
d570097a
VS
186992011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18700
18701 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
18702 Reported by: nebuchadnezzar.
18703
a508e776
VS
187042011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18705
18706 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
18707 Reported by: nebuchadnezzar.
18708
dcb883b1
VS
187092011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18710
18711 Submenu default support.
18712
18713 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
18714 auto_boot. All users updated.
18715 Declared static.
18716 Handle chosen and default with submenus.
18717 (grub_menu_execute_with_fallback): Declared static.
18718 Don't notify failure if autobooted. Upper level does it.
18719 (menuentry_eq): New function.
18720 (get_entry_number): Use menuentry_eq.
18721 (show_menu): New parameter "autobooted". All users updated.
18722 (grub_show_menu): Likewise.
18723 * include/grub/normal.h (grub_show_menu): Likewise.
18724 * include/grub/menu.h (grub_menu_execute_entry): Removed.
18725 (grub_menu_execute_with_fallback): Likewise.
18726
6fef99b4
VS
187272011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * util/grub-mklayout.c (usage): Update help text.
18730
47a77af5
VS
187312011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
18734
ce6bb3ee
VS
187352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18736
18737 * util/grub-menulst2cfg.c (main): Trim the line.
18738
db87be2a
VS
187392011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
18742 (grub_machine_init): Don't check amount of low memory as reportedly
18743 INT 12h can be broken and if low memory is too low we wouldn't have
18744 gotten into grub_machine_init anyway.
18745
c49849cc
VS
187462011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18747
18748 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
18749 (grub_machine_mmap_iterate): Take low memory into account
18750
b1969b30
VS
187512011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18752
18753 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
18754 badfs.
18755 Reported by: TiCPU.
18756
cf0eaf13
VS
187572011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18758
18759 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
18760 members errors.
18761
1f060f39
GS
187622011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18763
18764 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18765 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18766
a21e5672
GS
187672011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18768
18769 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18770 openbsd and netbsd types being in part_bsd module.
18771
c88172fa
VS
187722011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18773
18774 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18775 (_FILE_OFFSET_BITS): Likewise.
18776 Reported by: Seth Goldberg.
18777
53798c4b
GS
187782011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18779
18780 * configure.ac: Check for libdevmapper header.
18781
e7121b69
VS
187822011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18783
18784 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18785 avoid aliasing.
18786 (fzap_lookup): Likewise.
18787 (dnode_get): Likewise.
18788 (make_mdn): Likewise.
18789 (zfs_mount): Likewise.
18790 (fzap_iterate): Use temporary pointer to avoid aliasing.
18791 (grub_zfs_read): Likewise.
18792 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18793 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18794 pointers to avoid aliasing.
18795 (grub_cmd_xnu_kernel64): Likewise.
18796 (grub_xnu_load_driver): Likewise.
18797
fc836af9
VS
187982011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18799
18800 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18801 aliasing warning.
18802 (grub_cmd_terminal_output): Likewise.
18803 Reported and tested by: Grégoire Sutre.
18804
f9f37648
VS
188052011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18806
18807 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18808 warning.
18809 Reported and tested by: Grégoire Sutre.
18810
ec1dfd63
VS
188112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18812
18813 * configure.ac: Do CPU substitution even if it's specified explicitly.
18814 Reported and tested by: Alain Greppin.
18815
9462775a
VS
188162011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18819 Reported and tested by: Alain Greppin.
18820
0fd48e35
VS
188212011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18822
18823 Satisfy some bison versions need for inttypes.h.
18824
18825 * grub-core/lib/posix_wrap/inttypes.h: New file.
18826 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18827 (int16_t): Likewise.
18828 (int32_t): Likewise.
18829 (int64_t): Likewise.
18830 Reported and tested by: Alain Greppin.
18831
43f1bc83
VS
188322011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18833
18834 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18835 Silence spurious warning.
18836 Reported and tested by: Alain Greppin.
18837
64d1f041
SJ
188382011-01-07 Szymon Janc <szymon@janc.net.pl>
18839
18840 * docs/grub.texi (Support automatic decompression): Update with xz
18841 decompression support.
18842
25953e10
SJ
188432011-01-07 Szymon Janc <szymon@janc.net.pl>
18844
18845 Improve loaders' kernel command line handling.
18846
18847 * grub-core/lib/cmdline.c: New file.
18848 * include/grub/lib/cmdline.h: Likewise.
18849 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18850 grub_create_loader_cmdline to create kernel command line.
18851 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18852 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18853 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18854 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18855 (linux): Add lib/cmdline.c on common.
18856
e72d259f
VS
188572011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18858
18859 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18860 inopos might be unaligned.
18861
c0cf26da
VS
188622011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18863
18864 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18865 endian transformations.
18866 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18867 Based on report by: Doug Nazar.
18868
0ca09e6c
DN
188692011-01-07 Doug Nazar <nazard.michi@gmail.com>
18870
18871 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18872 array->members[i].start_sector.
18873 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18874
014b6806
VS
188752011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18876
18877 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18878 Reported and tested by: Grégoire Sutre.
18879
415502c2
CW
188802011-01-06 Colin Watson <cjwatson@ubuntu.com>
18881
18882 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18883 avoid causing test failures by clearing the screen.
18884
71b6a2b7
CW
188852011-01-06 Colin Watson <cjwatson@ubuntu.com>
18886
18887 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18888 Fix prefix check to handle the case where dir ends with a slash
18889 (most significantly, "/" itself).
18890 Reported by: Michael Vogt.
18891
b3f8d28a
VS
188922011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 Run terminfo_cls on initing terminfo output to clear the screen and
18895 move the cursor to (0,0).
18896
18897 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18898 Call grub_terminfo_output_init.
18899 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18900 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18901 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18902
4c3e4f37
VS
189032011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18904
18905 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18906 only when needed.
18907
488f71f1
VS
189082011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18911 CTRL.
18912
18a38098
VS
189132011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 The E820 type 5 is BADRAM, not EXEC_CODE.
18916
18917 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18918 (GRUB_E820_BADRAM): New define.
18919 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18920 into reserved. Propagate BADRAM.
18921 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18922 (GRUB_E820_BADRAM): New define.
18923
9eae2084
VS
189242011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18925
18926 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18927 Ignore the memory post-4G.
18928 (grub_relocator_firmware_alloc_region): Additional debug statement.
18929
ebc71d28
VS
189302011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18931
18932 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18933 names.
18934 Reported by: David Pravec.
18935
446fa400
VS
189362011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18937
18938 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18939 BIOSes.
18940
a0159f37
VS
189412011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18942
18943 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18944 Prevent overflow.
18945 (grub_reed_solomon_recover): Likewise.
18946
e5146ca1
VS
189472011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18948
18949 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18950
189512011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
18952
18953 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18954 variable.
18955
5b1bdf12
CW
189562011-01-04 Colin Watson <cjwatson@ubuntu.com>
18957
18958 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18959 descriptions of extract_legacy_entries_source and
18960 extract_legacy_entries_configfile.
18961 Reported by: Seung Soo, Ha.
18962
99d925aa
CW
189632011-01-03 Colin Watson <cjwatson@ubuntu.com>
18964
18965 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18966 on devices that do not implement function 0.
18967
4af0504b
DV
189682011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18969
18970 * grub-core/fs/hfsplus.c: Make parent unsigned.
18971 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18972 overflows.
18973 (grub_hfsplus_cmp_extkey): Likewise
18974
469ee10a
VS
189752011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18976
18977 * util/grub-install.in: Correctly use bootloader_id and not
18978 GRUB_DISTRIBUTOR on efibootmgr line.
18979
323a8e9c
VS
189802011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18981
18982 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18983
1b394975
IC
189842010-12-31 Ian Campbell <ijc@hellion.org.uk>
18985
18986 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18987 Xen and reorder menu item wording to make it clearer that this entry
18988 will launch Xen. Print separate messages when loading Xen and
18989 Linux.
18990
275bff5f
VS
189912010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18992
18993 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18994 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18995 loop in case of incorrect amiga partmap.
18996
307806cb
VS
189972010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18998
18999 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
19000 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
19001 Reported by:EHeM.
19002
b12b923e
VS
190032010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
19004
19005 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
19006 spurious warning.
19007 Reported by: crocket
19008
14b48a19
VS
190092010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19010
19011 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
19012 Preload EFIemu.
19013 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
19014
693db2df
VS
190152010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
19018 is loaded
19019 (grub_cmd_xnu_kextdir): Likewise.
19020 (grub_cmd_xnu_splash): Likewise.
19021
c7638645
VS
190222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19023
19024 Avoid using Reed-Solomon with 0 redundancy.
19025
19026 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
19027 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
19028 or 0 redundancy.
19029 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
19030 (grub_reed_solomon_recover): Likewise.
19031
25dd4780
VS
190322010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
19033
19034 Don't use disk subsystem in freebsd_boot.
19035
19036 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
19037 (freebsd_biosdev): Likewise.
19038 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
19039 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
19040
0b2db943
VS
190412010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 Handling of files of unknown size is currently limited. They can't be
19044 used e.g. for initrd or modules. Moreover gzip handling of not
19045 easily seekable files is buggy. Disable unknown file size for now. May
19046 be inefficient but works.
19047
19048 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
19049 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
19050
5c408d0f
MP
190512010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
19052
19053 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
19054 floppy probe.
19055
190a011a
JD
190562010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
19057
19058 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
19059
022d01b8
SL
190602010-12-25 Shea Levy <shlevy>
19061
19062 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
19063
c4855fdc
VS
190642010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
19065
19066 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
19067 Windows Server 2008.
19068 Reported by: Devin Giddings.
19069
0354b867
VS
190702010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
19071
19072 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
19073 writing an error message because of async power management.
19074 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
19075 (grub_reboot): Likewise.
19076
ab66c69f
JU
190772010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
19078
19079 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
19080 keep unit tests from failing when they shouldn't.
19081
1426ef35
CW
190822010-12-21 Colin Watson <cjwatson@ubuntu.com>
19083
19084 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
19085 previous patch increased the size of the RS code by 20 bytes (at
19086 least with gcc-4.4), so increase this by 20 bytes to match.
19087 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
19088
20641b6b
CW
190892010-12-21 Colin Watson <cjwatson@ubuntu.com>
19090
19091 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
19092 scratch area. Make sure to initialise chosen in standalone mode as
19093 well as non-standalone.
19094 Reported by: Robert Hooker and Andy Whitcroft.
19095 Tested by: Andy Whitcroft.
19096
d060ad60
CW
190972010-12-21 Colin Watson <cjwatson@ubuntu.com>
19098
19099 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
19100 constructing a new unescaped string and passing it to grub_xputs in
19101 one go, rather than passing characters to grub_printf one at a time.
19102
b889cfad
CW
191032010-12-21 Colin Watson <cjwatson@ubuntu.com>
19104
19105 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
19106 initialising utf16.
19107
4e01b6c8
CW
191082010-12-21 Colin Watson <cjwatson@ubuntu.com>
19109
19110 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
19111 comment. Add an extra layer of quotation, requiring the output of
19112 this function to be used in a printf format string.
19113 (gettext_printf): New function.
19114 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
19115 Extract translatable strings from here-documents and use a temporary
19116 variable instead, so that xgettext can find them.
19117 * util/grub.d/10_kfreebsd.in: Likewise.
19118 * util/grub.d/10_linux.in: Likewise.
19119 * util/grub.d/20_linux_xen.in: Likewise.
19120
19121 * po/grub.d.sed: New file.
19122 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
19123 arguments. Set c-format flags on all strings extracted from
19124 util/grub.d/ (xgettext refuses to include these itself for strings
19125 it extracted from a shell file, but these really are c-format).
19126
5318fe98
VS
191272010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
19130 Avoid next pointing to nowhere.
19131
6c85b743
VS
191322010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
19133
19134 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
19135 rather than assuming than rootblock is exactly in the middle.
19136 (grub_affs_label): Likewise.
19137
a2a08a35
VS
191382010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
19139
19140 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
19141 reserved_first_sector to 0.
19142 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
19143 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
19144 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
19145
7059d1ec
VS
191462010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
19147
19148 Fix handling of UTF-16 UDF labels.
19149
19150 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
19151 (read_string): .. here.
19152 (grub_udf_label): Use read_string.
19153
30aff4cb
BC
191542010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
19155
19156 * grub-core/normal/menu_entry.c (run): Execute commands from menu
19157 editor under argument scope.
19158 Reported by: Jordan Uggla
19159
5cf86f4b
VS
191602010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
19163
32570200
CW
191642010-12-18 Colin Watson <cjwatson@ubuntu.com>
19165
19166 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
19167 line, and other keys scroll an entire page (previous handling was
19168 for \r and \n to scroll a page and other keys to scroll two lines).
19169
e1dffcf2
VS
191702010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19171
19172 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
19173 Set ptrdest to correct get_physical_target_address rather than
19174 incorrect get_virtual_current_address.
19175
b04298cf 191762010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
19177
19178 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
19179 correct cat to grub_uint8_t * rather than grub_uint32_t *.
19180
5367ecd3
CW
191812010-12-10 Colin Watson <cjwatson@ubuntu.com>
19182
19183 * .bzrignore: Ignore grub-core/rs_decoder.S.
19184
1fb430f8
CW
191852010-12-10 Colin Watson <cjwatson@ubuntu.com>
19186
19187 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
19188 .mo/.mo.gz opening sequence to ...
19189 (grub_mofile_open_lang): ... here.
19190 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
19191 * util/grub.d/00_header.in (grub_lang): Include country part of
19192 locale.
19193 Reported by: Mario Limonciello.
19194
a94a6671
RM
191952010-12-09 Robert Millan <rmh@gnu.org>
19196
19197 * NEWS: Document addition of ZFS support.
19198
24b7938b
CW
191992010-12-04 Colin Watson <cjwatson@ubuntu.com>
19200
19201 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
19202 rather than `/ 2', as the latter requires -Wa,--divide which would
19203 require bumping our minimum binutils version.
19204
bddc3ef6
BC
192052010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
19206
19207 * util/grub-script-check.c (main): Print script line number on
19208 error.
19209
bf78d5b2
RM
192102010-12-01 Robert Millan <rmh@gnu.org>
19211
19212 * grub-core/fs/zfs/zfs.c: New file.
19213 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
19214 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
19215 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
19216 * grub-core/fs/zfs/zfsinfo.c: Likewise.
19217
19218 * include/grub/zfs/dmu.h: Likewise.
19219 * include/grub/zfs/dmu_objset.h: Likewise.
19220 * include/grub/zfs/dnode.h: Likewise.
19221 * include/grub/zfs/dsl_dataset.h: Likewise.
19222 * include/grub/zfs/dsl_dir.h: Likewise.
19223 * include/grub/zfs/sa_impl.h: Likewise.
19224 * include/grub/zfs/spa.h: Likewise.
19225 * include/grub/zfs/uberblock_impl.h: Likewise.
19226 * include/grub/zfs/vdev_impl.h: Likewise.
19227 * include/grub/zfs/zap_impl.h: Likewise.
19228 * include/grub/zfs/zap_leaf.h: Likewise.
19229 * include/grub/zfs/zfs.h: Likewise.
19230 * include/grub/zfs/zfs_acl.h: Likewise.
19231 * include/grub/zfs/zfs_znode.h: Likewise.
19232 * include/grub/zfs/zil.h: Likewise.
19233 * include/grub/zfs/zio.h: Likewise.
19234 * include/grub/zfs/zio_checksum.h: Likewise.
19235
19236 * Makefile.util.def: Build ZFS into libgrubmods.
19237 * grub-core/Makefile.core.def: Build zfs.mod.
19238
3f0f3831
SJ
192392010-11-30 Szymon Janc <szymon@janc.net.pl>
19240
19241 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
19242 variable.
19243 * grub-core/commands/wildcard.c (match_files): Likewise.
19244
3a4253b2
RM
192452010-11-30 Robert Millan <rmh@gnu.org>
19246
19247 * grub-core/loader/i386/bsd.c
19248 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
19249 whether kernel is loaded using grub_loader_is_loaded(), rather
19250 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
19251 certain error conditions.
19252
8c317b27
RM
192532010-11-30 Robert Millan <rmh@gnu.org>
19254
c5c9cd3e
RM
19255 * grub-core/commands/echo.c: Include `<grub/term.h>'.
19256 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 19257
49d3ab46
VS
192582010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
19259
19260 Avoid using tricks for initialising endian variables.
19261
19262 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
19263 Make const.
19264 (GRUB_MOD_INIT): Don't byte-swap.
19265 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19266 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
19267 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
19268 (grub_swap_bytes32_compile_time): Likewise.
19269 (grub_cpu_to_le32_compile_time): Likewise.
19270 (grub_cpu_to_le16_compile_time): Likewise.
19271
f420a804
VS
192722010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
19273
19274 * util/grub-setup.c (setup): Stop recommending --force. People who
19275 understand the dangers of blocklists are able to find this option
19276 anyway and the ones who don't shouldn't use it anyway.
19277
4e7db17b
RM
192782010-11-26 Robert Millan <rmh@gnu.org>
19279
19280 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
19281 Update all users.
19282
9be57a0d
CW
192832010-11-26 Colin Watson <cjwatson@ubuntu.com>
19284
19285 Fix LVM-on-RAID probing.
19286
19287 * util/grub-probe.c (probe): Remember which disk was detected as
19288 RAID (perhaps an LVM physical volume). Use that disk's raidname
19289 rather than that of the top-level disk.
19290
2c7859b3 192912010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 19292
d7647bb6
BC
19293 Fix cmdline argument quotes for setparams command of menuentry
19294 definitions.
7e623b0d
BC
19295
19296 * grub-core/commands/menuentry.c (setparams_prefix): Use single
19297 quotes for arguments.
f866fe80 19298 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 19299 grub_strchrsub function instead.
f866fe80 19300
7955bea0 19301 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 19302
74f72a64
CW
193032010-11-24 Colin Watson <cjwatson@ubuntu.com>
19304
19305 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
19306 effort by skipping "." and ".." entries up-front.
19307 Suggested by: Michael Lazarev.
19308
5a407278
CW
193092010-11-24 Colin Watson <cjwatson@ubuntu.com>
19310
19311 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
19312 ldflags to ldadd, to fix link line ordering.
19313 (none_decompress): Likewise.
19314
3030d8ec
CW
193152010-11-24 Colin Watson <cjwatson@ubuntu.com>
19316
19317 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
19318 platforms.
19319 (grub-emu-lite): Remove kern/emu/cache.S.
19320
b7fbac12
CW
193212010-11-23 Colin Watson <cjwatson@ubuntu.com>
19322
19323 * util/deviceiter.c (compare_devices): If the by-id link for a
19324 device couldn't be resolved, fall back to sorting by the by-id link
19325 rather than segfaulting.
19326 Reported and tested by: Daniel Mierswa.
19327
5225f328
CW
193282010-11-23 Colin Watson <cjwatson@ubuntu.com>
19329
19330 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
19331 ldflags, to fix link line ordering.
19332
038b3ce8
CW
193332010-11-23 Colin Watson <cjwatson@ubuntu.com>
19334
19335 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
19336 linkers are picky about this.
19337
bf16e98e
CW
193382010-11-23 Colin Watson <cjwatson@ubuntu.com>
19339
19340 * grub-core/Makefile.am (command.lst): Adjust sed expression
19341 ordering so that extended and priority commands aren't treated as
19342 ordinary commands.
19343
7242bab6
CW
193442010-11-23 Colin Watson <cjwatson@ubuntu.com>
19345
19346 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19347 Remove byte-swapping function calls, which are not valid in
19348 structure initialisers.
19349 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
19350 non-const.
19351 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
19352 grub_gpt_partition_type_bios_boot.
19353
14e8b279
CW
193542010-11-22 Colin Watson <cjwatson@ubuntu.com>
19355
19356 Fix test program build on GNU/kFreeBSD.
19357
19358 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
19359 $(LIBNVPAIR)' library dependencies.
19360
e6f63338 193612010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
19362
19363 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
19364
cf8ffc38
CW
193652010-11-22 Colin Watson <cjwatson@ubuntu.com>
19366
19367 * util/grub-install.in: Remove excessive quoting that broke
19368 installations to RAID devices.
19369
7f8b0fd7
VS
193702010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19371
19372 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
19373 bootloader version instead of 0.
19374
dfd240b1
VS
193752010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19376
19377 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
19378 warning.
19379
7b61e609
VS
193802010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19381
19382 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
19383 retrieve the metadat sector if size isn't known.
19384 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19385
9dfe92d0
RM
193862010-11-18 Robert Millan <rmh@gnu.org>
19387
19388 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
19389 with grub_memcmp().
19390
41cc919e
VS
193912010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
19392
19393 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
19394 arrow.
19395 Reported by: Jordan Uggla.
19396
1afcc914
VS
193972010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19398
19399 Make better UTF compliant.
19400
19401 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
19402 sequences as incorrect.
19403 (grub_is_valid_utf8): Likewise.
19404 (grub_utf8_to_ucs4): Likewise.
19405 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
19406 (grub_ucs4_to_utf8_alloc): Likewise.
19407 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
19408
f1808884
VS
194092010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19410
19411 Make legacy_source behave like source.
19412
19413 * grub-core/commands/legacycfg.c (legacy_file): Don't call
19414 grub_show_menu.
19415 (grub_cmd_legacy_source): Call grub_show_menu if needed.
19416
24ec575b
CW
194172010-11-16 Colin Watson <cjwatson@debian.org>
19418
19419 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
19420 (-Wunused implies -Wunused-parameter, but not vice versa).
19421
72b7c7aa
CW
194222010-11-16 Colin Watson <cjwatson@ubuntu.com>
19423
19424 * configure.ac: Make error messages less confusing by testing for
19425 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
19426 accepted, but produces a diagnostic if something else is wrong).
19427
e98937aa
VS
194282010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19429
19430 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
19431 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
19432 (now unused).
19433 (grub_keyboard_controller_init)
19434 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
19435 read the initial state since controller isn't inited yet.
19436
f6bbabc3
VS
194372010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19438
19439 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
19440 allocate_regbeg may need to create new chunk header.
19441
22e7dbb2
VS
194422010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19443
19444 Fix quoting in legacy parser.
19445
19446 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
19447 single quotes.
19448 (grub_legacy_parse): Likewise.
19449 Reported by: Jordan Uggla.
19450 Tested by: Jordan Uggla.
19451
03f80960
VS
194522010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19453
19454 Don't add -lgcc on i386 and x86_64.
19455
19456 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
19457 * conf/Makefile.common (LDADD_KERNEL): Likewise.
19458 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
19459
779dc15b
VS
194602010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19461
19462 * configure.ac: Add -Wno-trampolines when supported.
19463
d20a3b37
MV
194642010-11-14 Modestas Vainius <modax@debian.org>
19465
19466 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
19467 fakeraid.
19468
e5360933
GC
194692010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19470
19471 Add generic logical block size support for UDF.
19472
19473 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
19474 (GRUB_UDF_BLKSZ): Removed.
19475 (struct grub_udf_data): New field "lbshift" to hold the logical block
19476 size of the file system in log2 format. All users updated.
19477 (sblocklist): Change type to unsigned.
19478 (grub_udf_mount): Change type of "sblklist" to unsigned.
19479 Move AVDP search before VRS recognition, because the latter requires
19480 knowledge of the logical block size, which is detected during the
19481 former.
19482 Detect and validate logical block size during AVDP search, adding
19483 support for block sizes 512, 1024 and 4096.
19484 Make VRS recognition independent of block size.
19485
cb0229c5
GC
194862010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19487
19488 Properly handle deleted files on UDF.
19489
19490 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
19491 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
19492 set.
19493
406858a8
GC
194942010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19495
19496 Support reading files larger than 2 GiB.
19497
19498 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
19499 "offset" to grub_off_t.
19500 (grub_udf_read_file): Likewise for parameter "pos".
19501
130da6a7
VS
195022010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19503
19504 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
19505 unavailable.
19506 (Simple configuration): Refer to Changes from GRUB Legacy about
19507 save_env availability.
19508
65e93f6b
VS
195092010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19510
19511 * util/grub-install.in: Ignore empty partition table detection
19512 instead of trying to include part_ module.
19513
1fd08bf1
VS
195142010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19515
19516 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
19517 LVM on RAID support.
19518
de1a024f
VS
195192010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19520
19521 Properly define WORDS_BIGENDIAN in wrapped environments.
19522
19523 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
19524 definition.
19525 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
19526
19527 Reported by: Manoel Rebelo Abranches.
19528 Tested by: Manoel Rebelo Abranches.
19529
bc5dd0b9
VS
195302010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19531
19532 * util/grub-mkconfig.in: Fix quoting.
19533
58c184be
VS
195342010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 Support big ext2 files.
19537
19538 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
19539 (grub_ext2_read_block): Support triple indirect blocks.
19540 (grub_ext2_read_file): Use 64-bit types and read size_high.
19541 (grub_ext2_open): Read size_high.
19542 Reported by: Ximin Luo.
19543 Tested by: Manoel Rebelo Abranches.
19544
5f0c02b3
VS
195452010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19546
19547 * util/grub-install.in: Handle filenames containing spaces.
19548 Reported by: Jordan Uggla.
19549 Tested by: Jordan Uggla.
19550
4417aae6
VS
195512010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19552
19553 * util/grub-mkconfig.in (grub_script_check): New variable.
19554 Use grub_script_check instead of grub-script-check.
19555 Reported by: Barry Jackson.
19556
7625a68e
VS
195572010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19558
19559 * docs/grub.texi (menu): Correct the order.
19560 Reported by: D. Hugh Redelmeier.
19561
10001ac5
VS
195622010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
19563
19564 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
19565 jump.
19566
9c4cf53b
MRA
195672010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
19568
10001ac5
VS
19569 * include/grub/elfload.h (grub_elf32_size): New parameter.
19570 All users updated.
9c4cf53b
MRA
19571 Return maximum segments alignment.
19572 (grub_elf64_size): Likewise.
19573 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
19574 Return maximum segments alignment.
19575 (grub_elf64_size): Likewise.
19576 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
19577 (grub_linux_claimmap_iterate): New function. Uses the
19578 "available" property in the "memory" node for memory allocation
19579 for kernel in the PowerPC loader.
9c4cf53b
MRA
19580 (grub_linux_load32): Correctly find linux entry point offset.
19581 (grub_linux_load64): Likewise.
19582
d2bf06bf
RM
195832010-11-07 Robert Millan <rmh@gnu.org>
19584
19585 On mips-yeeloong, build with -march=loongson2f when this flag is
19586 available (GCC >= 4.4).
19587 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
19588 `-march=mips3'.
19589 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
19590 or otherwise add -march=mips3.
19591
898c99a2
BC
195922010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
19593
87220a68
BC
19594 Suppress shell expansion on echo '*' and echo "*" like cases.
19595 Reported by: Jordan Uggla.
898c99a2
BC
19596
19597 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
19598 string arguments before shell expansion.
19599 * tests/grub_cmd_echo.in: New testcases.
19600
4f9b406a
RM
196012010-11-07 Robert Millan <rmh@gnu.org>
19602
19603 * conf/mips-qemu-mips.rmk: Remove stale file from previous
19604 transition.
19605
80c6d25e
VS
196062010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
19607
19608 * grub-core/kern/emu/hostdisk.c
19609 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
19610
4a1a0153
VS
196112010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19612
19613 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
19614 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
19615 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
19616
34706ddc
VS
196172010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19618
19619 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
19620
6972dea9
VS
196212010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19622
19623 * util/grub-install.in: Replace useless recomendation to pass
19624 --modules with a recomendation to report a bug.
19625
9c693bd6
VS
196262010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19627
19628 Properly register serial terminfo.
19629 Reported by: Jordan Uggla
19630
19631 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
19632 const.
19633 (grub_serial_terminfo_output_template): Likewise.
19634 (grub_cmd_serial): Register "serial" with terminfo.
19635 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
19636 grub_serial_terminfo_output.
19637
6c9e4c0c
RM
196382010-11-05 Robert Millan <rmh@gnu.org>
19639
19640 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
19641 needed).
19642
b9b3839f
RM
196432010-11-05 Robert Millan <rmh@gnu.org>
19644
19645 On Yeeloong, pass machine type information to Linux.
19646
19647 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
19648 (LOONGSON_MACHTYPE): New macro, set to
19649 "machtype=lemote-yeeloong-2f-8.9inches".
19650 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
19651 additional argument to Linux.
19652
1a3aaff4
RM
196532010-11-04 Robert Millan <rmh@gnu.org>
19654
19655 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
19656 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
19657 (its SATA disks are detected as slaveless IDE master drives on
19658 kFreeBSD).
19659 Reported by Carsten Aulbert.
19660
a75f4f62
CW
196612010-11-02 Colin Watson <cjwatson@ubuntu.com>
19662
19663 * util/bin2h.c (main): Fix spelling error in generated output.
19664
33b4b0c6
GS
196652010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
19666
19667 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
19668
2b36fbf4
VS
196692010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
19672 vga= option is supplied.
19673
74aaf558
VS
196742010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19675
19676 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
19677 * util/grub.d/10_kfreebsd.in: Likewise.
19678 * util/grub.d/10_linux.in: Likewise.
19679 * util/grub.d/20_linux_xen.in: Likewise.
19680
6428dec3
VS
196812010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19682
19683 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
19684 argument as an argument to no-argument option.
19685
f8729d98
VS
196862010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19687
19688 * util/grub.d/10_linux.in: Add missing load_video with explicit
19689 GRUB_GFXPAYLOAD_LINUX.
19690
89d68fa6
VS
196912010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19692
19693 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
19694
3a1197cd
VS
196952010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19696
19697 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
19698 elements with invlid index.
19699 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19700 * grub-core/disk/raid.c (insert_array): Automatically reallocate
19701 members.
19702 * include/grub/raid.h (grub_raid_member): New struct.
19703 (grub_raid_array): Transform devices and start_sector into usage of
19704 grub_raid_member. All users updated
19705 (allocated_devs): New member.
19706
71574288
VS
197072010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19708
19709 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
19710 is modified
19711
8d40ec65
BC
197122010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
19713
19714 NetBSD build fix for getline function conflict from gnulib.
19715
19716 * Makefile.util.def (libgrubkern.a): New library for grub kernel
19717 components that depend on gnulib headers.
19718 (libgrubmods.a): Renamed from earlier libgrub.a.
19719 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
19720
95b9257e
VS
197212010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19722
19723 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
19724 install rather than creating a broken install.
19725
26c53dc6
VS
197262010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19727
19728 * util/grub-setup.c (argp): Remove misleading example of installing to
19729 a partition.
19730
4171b3c5
VS
197312010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19732
19733 * util/grub-setup.c (setup): Clarify the error message.
19734
18568d18
VS
197352010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19736
19737 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
19738
4f6a2e21
VS
197392010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19740
19741 * grub-core/kern/emu/misc.c
19742 (grub_make_system_path_relative_to_its_root)
19743 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
19744
197452010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
19746
19747 * grub-core/kern/emu/misc.c
19748 (grub_make_system_path_relative_to_its_root): Revert r2882.
19749
e138c458
VS
197502010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
19751
19752 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
19753 useless field head. All users updated.
19754 (free_subchunk): Correct handling of IN_REGION subchunk.
19755
0cbcdf0e
CW
197562010-10-22 Colin Watson <cjwatson@ubuntu.com>
19757
19758 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
19759 (Supported kernels): Likewise.
19760
b65ea155
GS
197612010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
19762
19763 Make mktemp invocations portable.
19764
19765 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19766 exit if mktemp fails.
19767 * tests/grub_script_blockarg.in: Likewise.
19768 * tests/partmap_test.in: Likewise.
19769 * tests/util/grub-shell-tester.in: Likewise.
19770 * tests/util/grub-shell.in: Likewise.
19771 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19772 * Makefile.am: Likewise, and chain shell commands with `&&'
19773 instead of ';'.
19774 * util/grub-mkrescue.in: Use the same explicit template as above, and
19775 exit if mktemp fails.
19776
05f43cdd
BC
197772010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19778
19779 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19780 Linux kernel, reported by Dennis Schridde.
19781
800e6a9b
SJ
197822010-10-17 Szymon Janc <szymon@janc.net.pl>
19783
19784 * grub-core/normal/auth.c (grub_auth_check_authentication):
19785 Set-but-not-used variable removed.
19786
d82df574
VS
197872010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19788
19789 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19790 32-bit linux protocol.
19791
7bced458
VS
197922010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19793
19794 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19795 cursor shape for sanity.
19796
5b027690
VS
197972010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19798
19799 * docs/grub.texi (Installation): Document buggy BIOS install.
19800
ba5f65cf
VS
198012010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * docs/grub.texi (Installation): Indent.
19804
fdf2ec9c
VS
198052010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * util/grub-setup.c (setup): New parameter allow_floppy.
19808 (arguments): New member allow_floppy.
19809 (argp_parser): Handle --allow-floppy.
19810 (main): Pass allow_floppy.
19811 * util/grub-install.in: New option --allow-floppy passed though to
19812 grub-setup.
19813
861dfd4c
VS
198142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19815
19816 * util/grub-install.in: Handle partitionless disks.
19817
f77a8c24
VS
198182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 * util/grub-setup.c (setup): Don't clean blocklists before readability
19821 verfification.
19822
27d9ee32
VS
198232010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 * docs/grub.texi (Installation): Document embedding zone. Remove
19826 obsolete grub-install example.
19827
6bdda8f8
SJ
198282010-10-16 Szymon Janc <szymon@janc.net.pl>
19829
19830 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19831 Set-but-not-used variable ifdef'ed.
19832 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19833 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19834 variable removed.
19835 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19836 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19837 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19838 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19839 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19840 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19841 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19842 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19843 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19844 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19845 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19846 Likewise.
19847
e19b016b
VS
198482010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19849
19850 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19851 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19852 enum value.
19853
6c8d3002
VS
198542010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19855
19856 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19857 synonym to _S5_. Needed for some DSDTs.
19858
c32b51c9
VS
198592010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19860
19861 Userspace ACPI parser debugging.
19862
19863 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19864 headers and add relevant defines. Don't include standard headers.
19865 (main) [GRUB_DSDT_TEST]: New function.
19866 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19867 Don't declare functions.
19868
fbfbeb39
VS
198692010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19870
19871 Remove dead grub_efi_mm_fini.
19872
19873 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19874 (ALLOCATED_PAGES_SIZE): Likewise.
19875 (MAX_ALLOCATED_PAGES): Likewise.
19876 (allocated_pages): Likewise.
19877 (grub_efi_allocate_pages): Don't record allocated pages.
19878 (grub_efi_free_pages): Likewise.
19879 (grub_efi_mm_init): Likewise.
19880 (grub_efi_mm_fini): Removed.
19881
65f7ed7c
VS
198822010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19883
19884 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19885 (grub_efi_mm_init): Take into account the memory map size increase.
19886
24977b44
VS
198872010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19890 (serial_hw_put): Wait based on real time rather than port reads. Don't
19891 roken ports.
19892 * include/grub/serial.h (grub_serial_port): New field broken.
19893
1eb01cd2
RM
198942010-10-16 Robert Millan <rmh@gnu.org>
19895
19896 * grub-core/kern/emu/misc.c
19897 (grub_make_system_path_relative_to_its_root): Fix premature return
19898 when processing non-root ZFS filesystems.
5f8b440b 19899 Reported by Sergio Talens-Oliag.
1eb01cd2 19900
2d5fed60
RM
199012010-10-15 Robert Millan <rmh@gnu.org>
19902
19903 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19904 guarantee compressed ones are processed first.
19905
d0f4c1ea
VS
199062010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19907
19908 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19909 grub_efiemu_autocore.
19910
d87c681f
VS
199112010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19912
19913 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19914 rather than 0x1b.
19915 (grub_console_getkey): Use correct jae opcode rather than ja.
19916
219b3564
RM
199172010-10-12 Robert Millan <rmh@gnu.org>
19918
19919 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19920 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19921 variable. All references updated.
19922
19923 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19924
20c6bb7e
VS
199252010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19926
19927 Correctly distinguish mdraid flavours.
19928
19929 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19930 (insert_array): New argument raid.
19931 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19932 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19933 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19934
74baff84
VS
199352010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19936
19937 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19938 handling of special keys.
19939
3ef068df 199402010-10-02 Aleš Nesrsta <starous@volny.cz>
19941
c7980ad9
VS
19942 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19943 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 19944
a9455194 199452010-10-02 Aleš Nesrsta <starous@volny.cz>
19946
c7980ad9
VS
19947 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19948 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19949 users updated.
a9455194 19950 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 19951 Use right endpoint when querying descriptor.
a9455194 19952
441cfe65
VS
199532010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19954
19955 Clear out 0x80 color bit on EFI.
19956 Tested by: decoder
19957 Reported by: decoder and meta tech.
19958
19959 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19960 (grub_console_setcolorstate): Clear out 0x80 bit.
19961 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19962 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19963 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19964
bf26bcc4
VS
199652010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19966
19967 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19968 Set to "auto".
19969
6e3c515d
VS
199702010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19971
19972 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19973 mo_file after freeing.
19974
e6d983ba
VS
199752010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19976
19977 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19978
74ccb5b5
VS
199792010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19980
19981 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19982 flags.
19983
17821956
VS
199842010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19987 usage.
19988
ee74fa48
VS
199892010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19990
19991 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19992
19993 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19994 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19995 and terminfo.h when needed.
19996 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19997 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19998 (terminfo): Enable only on terminfokernel.
19999 (extcmd): Likewise.
20000 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
20001 * include/grub/lib/arg.h: Likewise.
20002 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
20003 incorrect usage of ->.
20004
aa438e68
VS
200052010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
20008 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
20009
57994012
VS
200102010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20011
20012 Fix coreboot compilation.
20013
20014 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
20015 Take VBE info into account even if only text is supported.
20016 (fill_vbe_info): Take into account the case when only VGA text
20017 is supported.
20018 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
20019 on coreboot, multiboot and qemu.
20020
2a406611
VS
200212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20022
20023 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
20024 debug messages.
20025 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
20026
d33613fc
VS
200272010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20028
20029 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
20030 parameters.
20031
44a1b432
VS
200322010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20033
20034 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
20035 if they were BSD-style.
20036
edde54e6
VS
200372010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20038
20039 * grub-core/boot/i386/pc/lnxboot.S: Replace
20040 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
20041 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
20042
b65830fa
VS
200432010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
20044
20045 Write embedding zone using Reed-Solomon.
20046
20047 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
20048 * grub-core/Makefile.am (rs_decoder.S): New target.
20049 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
20050 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
20051 (multiboot): Move to RS part.
20052 (post_reed_solomon): New label.
20053 (grub_boot_drive): Move to non-RS part since it's modified in memory
20054 on boot.
20055 Include rs_decoder.S.
20056 * grub-core/lib/reed_solomon.c: New file.
20057 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
20058 New definition.
20059 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
20060 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
20061 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
20062 * include/grub/partition.h (grub_partition_map): Change prototype of
20063 embed to allow returning additional sectors.
20064 * include/grub/reed_solomon.h: New file.
20065 * util/grub-setup.c (setup): Handle Reed-Solomon.
20066
0b4b227f
CW
200672010-09-28 Colin Watson <cjwatson@ubuntu.com>
20068
20069 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
20070 i386 and x86-64 definedness tests.
20071
f772623b
YB
200722010-09-27 Yves Blusseau <blusseau@zetam.org>
20073
20074 Fix generation of kernel_syms.lst
20075
20076 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
20077 ASM_PREFIX
20078
8e57a6ca
RM
200792010-09-26 Robert Millan <rmh@gnu.org>
20080
20081 Support degraded ZFS arrays in "grub-probe -t device" resolution.
20082
20083 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
20084 the pool is an array of devices, iterate through it and return the
20085 first device that passes a stat() test (instead of blindly returning
20086 the first one).
20087
f9130836
RM
200882010-09-26 Robert Millan <rmh@gnu.org>
20089
20090 Build fixes for GNU/kFreeBSD.
20091
20092 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
20093 to programs that require ZFS conversion.
20094 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
20095 kernels that don't have FLOPPY_MAJOR.
20096
96510faf
BC
200972010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
20098
20099 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
20100
449333eb
BC
201012010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
20102
20103 Fix grub-emu build.
20104
20105 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
20106 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
20107 mdraid09 and mdraid1x.
20108
e1fd1939
CW
201092010-09-24 Colin Watson <cjwatson@ubuntu.com>
20110
20111 Re-enable grub-extras.
20112
20113 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
20114 avoid confusing Automake. Run autogen only twice, once for the top
20115 level and once for grub-core. Add Makefile.util.def and
20116 Makefile.core.def from extra modules to the appropriate autogen
20117 invocations. If Makefile.common exists in an extra module, include
20118 it in both Makefile.util.am and grub-core/Makefile.core.am;
20119 similarly, include any Makefile.util.common file in Makefile.util.am
20120 and any Makefile.core.common file in grub-core/Makefile.core.am.
20121 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
20122 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
20123 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
20124 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
20125
20126 * gentpl.py (gvar_add): Turn GVARS into a set.
20127 (global_variable_initializers): Sort global variables on output.
20128 (vars_init): New function.
20129 (first_time): Likewise.
20130 (library): Ensure that non-global variable initialisations are
20131 emitted before the first time we emit code for a library block.
20132 Append to variables rather than setting them. Only emit
20133 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
20134 each conditional path.
20135 (program): installdir() emits an Autogen macro, so must be passed to
20136 var_add rather than gvar_add.
20137 (data): Likewise.
20138 (script): Likewise.
20139 (rules): New function, centralising handling for different target
20140 types. Set up Guile association lists for first_time and vars_init,
20141 and send most output to a diversion so that variable initialisations
20142 can be emitted first.
20143 (module_rules): Use new rules function.
20144 (kernel_rules): Likewise.
20145 (image_rules): Likewise.
20146 (library_rules): Likewise.
20147 (program_rules): Likewise.
20148 (script_rules): Likewise.
20149 (data_rules): Likewise.
20150
20151 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
20152
20153 * .bzrignore: Add contrib and grub-core/contrib. Remove
20154 grub-core/Makefile.gcry.am.
20155
1d12cf29
YB
201562010-09-24 Yves Blusseau <blusseau@zetam.org>
20157
20158 * grub-core/lib/LzFind.c: Add missing include.
20159 * grub-core/lib/LzmaEnc.c: Likewise.
20160 * grub-core/script/lexer.c: Likewise.
20161 * grub-core/script/yylex.l: Likewise.
20162 * util/grub-macho2img.c: Likewise.
20163 * util/grub-menulst2cfg.c: Likewise.
20164 * util/grub-mklayout.c: Likewise.
20165 * util/grub-mkpasswd-pbkdf2.c
20166 * util/grub-mkrelpath.c: Likewise.
20167 * util/resolve.c: Likewise.
20168
dd363028
BC
201692010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
20170
20171 * Makefile.util.def (example_unit_test): Add
20172 grub-core/gnulib/libgnu.a.
20173
f5a109e2
GS
201742010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
20175
20176 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
20177
6d0fa83c
VS
201782010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 Support xz compression on yeeloong.
20181
20182 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
20183 * configure.ac: Check for LZMA.
20184 * grub-core/Makefile.core.def (xz_decompress): New target.
20185 (none_decompress): Likewise.
20186 * grub-core/boot/decompressor/minilib.c: New file.
20187 * grub-core/boot/decompressor/none.c: Likewise.
20188 * grub-core/boot/decompressor/xz.c: Likewise.
20189 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
20190 * grub-core/kern/mips/cache_flush.S: Likewise.
20191 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
20192 * grub-core/kern/mips/startup.S: Move first stage to ...
20193 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
20194 nomacro.
20195 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
20196 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
20197 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
20198 Allocate statically.
20199 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
20200 Allocate statically or use scratch. Don't check CRC32.
20201 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
20202 Allocate statically. Don't check CRC32.
20203 * include/grub/decompressor.h: New file.
20204 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
20205 Removed.
20206 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
20207 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
20208 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
20209 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
20210 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
20211 * util/grub-mkimage.c (grub_compression_t): New type.
20212 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
20213 (image_target_desc): New field default_compression.
20214 (image_targets): Adjust yeeloong targets.
20215 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
20216 (compress_kernel): New parameter comp.
20217 (generate_image): Likewise. Handle new compression case.
20218 (options): New option --compression
20219 (help): Likewise.
20220 (main): Handle new option.
20221
1b655af6
GS
202222010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
20223
20224 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
20225
8f03f0b5
CW
202262010-09-22 Colin Watson <cjwatson@ubuntu.com>
20227
20228 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
20229 typo in __i386__ conditional.
20230
7835dfd3
VS
202312010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
20232
20233 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
20234 include.
20235
e255597e
VS
202362010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
20237
6d0fa83c 20238 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
20239
20240 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
20241 new tags as supported.
20242 (acpiv2_size): New function.
20243 (grub_multiboot_get_mbi_size): Take new tags into account.
20244 (grub_multiboot_make_mbi): Add new tags.
20245 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 20246
6cc14051 202472010-09-21 Aleš Nesrsta <starous@volny.cz>
20248
20249 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
20250 Added missing configuration of USB device.
20251
df7769d8
CW
202522010-09-21 Colin Watson <cjwatson@ubuntu.com>
20253
20254 * grub-core/normal/menu_entry.c (run): Make sure we always return
20255 a value.
20256
b031012d
CW
202572010-09-21 Colin Watson <cjwatson@ubuntu.com>
20258
20259 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
20260 NumberOfPages is UINT64 according to the UEFI specification, not
20261 UINTN. Fix printf format.
20262
174de8f3
CW
202632010-09-21 Colin Watson <cjwatson@ubuntu.com>
20264
20265 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
20266 `err' to grub_usb_err_t.
20267 Reported and tested by: KESHAV P.R.
20268
d7dbe923
CW
202692010-09-21 Colin Watson <cjwatson@ubuntu.com>
20270
20271 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
20272 tpart non-const, so that we can assign to it. (Since this is a
20273 typedef, the constness refers to the pointer rather than what it
20274 points to.)
20275
8d5e2af3
CW
202762010-09-21 Colin Watson <cjwatson@ubuntu.com>
20277
20278 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
20279 $(top_srcdir)/grub-core/gnulib as well as
20280 $(top_builddir)/grub-core/gnulib.
20281 Reported by: KESHAV P.R.
20282
5c527783
CW
202832010-09-21 Colin Watson <cjwatson@ubuntu.com>
20284
20285 * util/grub-install.in: Fix the bootloader ID option to be
20286 consistently --bootloader-id, not --bootloader_id.
20287 Reported by: KESHAV P.R.
20288
d309a16e
CW
202892010-09-21 Colin Watson <cjwatson@ubuntu.com>
20290
20291 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
20292 check hash checksum." consistently translatable.
20293
b830cd16
YB
202942010-09-21 Yves Blusseau <blusseau@zetam.org>
20295
20296 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
20297 $(top_builddir).
20298
c4fe27a8
CW
202992010-09-21 Colin Watson <cjwatson@ubuntu.com>
20300
20301 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
20302 (GRUB_MOD_INIT): Register sha1sum command.
20303 (GRUB_MOD_FINI): Unregister sha1sum command.
20304
a4c1d277
YB
203052010-09-21 Yves Blusseau <blusseau@zetam.org>
20306
20307 Keep boot and grub directory names in sync with utils scripts
20308
20309 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
20310 * config.h.in: Add previous macros.
20311 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
20312 * util/grub-install.in: Use $bootdir and $grubdir variables.
20313
4eff79d2
CW
203142010-09-21 Colin Watson <cjwatson@ubuntu.com>
20315
20316 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
20317 convert partition names to disk names if the new `convert' parameter
20318 is set.
20319 (grub_util_biosdisk_get_grub_dev): If opening the disk device
20320 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
20321 disk in its own right. This can happen with Xen disk images.
20322
934d7e44
YB
203232010-09-21 Yves Blusseau <blusseau@zetam.org>
20324
20325 * util/grub-editenv.c: Update strings to avoid warnings when generating
20326 grub.pot file.
20327 * util/grub-setup.c: Likewise.
934d7e44 20328
df3367cc
VS
203292010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 * configure.ac: Change version to 1.99~beta0.
20332
77a94e98
VS
203332010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20334
20335 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20336 Add BADRAM.
20337 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
20338 Likewise.
20339 * include/multiboot.h: Resynced with specification.
20340 * include/multiboot2.h: Likewise.
20341
269004c1
CW
203422010-09-21 Colin Watson <cjwatson@ubuntu.com>
20343
20344 Fix po directory handling.
20345
20346 * configure.ac: Create po/Makefile.in rather than po/Makefile.
20347 * grub-core/gnulib/Makefile.am: Import gettext module.
20348 * m4/gnulib-cache.m4: Likewise.
20349 * m4/gnulib-comp.m4: Likewise.
20350 * m4/gettext.m4: New file, from gnulib.
20351 * m4/glibc2.m4: Likewise.
20352 * m4/iconv.m4: Likewise.
20353 * m4/intdiv0.m4: Likewise.
20354 * m4/intl.m4: Likewise.
20355 * m4/intldir.m4: Likewise.
20356 * m4/intlmacosx.m4: Likewise.
20357 * m4/intmax.m4: Likewise.
20358 * m4/inttypes-pri.m4: Likewise.
20359 * m4/lcmessage.m4: Likewise.
20360 * m4/lib-ld.m4: Likewise.
20361 * m4/lib-link.m4: Likewise.
20362 * m4/lib-prefix.m4: Likewise.
20363 * m4/lock.m4: Likewise.
20364 * m4/nls.m4: Likewise.
20365 * m4/po.m4: Likewise.
20366 * m4/printf-posix.m4: Likewise.
20367 * m4/progtest.m4: Likewise.
20368 * m4/threadlib.m4: Likewise.
20369 * m4/uintmax_t.m4: Likewise.
20370 * m4/visibility.m4: Likewise.
20371 * po/Makefile.am: Remove.
20372 * po/Makefile.in.in: New file, from gettext.
20373 ($(DOMAIN).pot-update): Support POTFILES-shell.
20374 * po/Makevars: New file.
20375 * po/POTFILES-shell: Rename to ...
20376 * po/POTFILES-shell.in: ... this. Update.
20377 * po/POTFILES: Rename to ...
20378 * po/POTFILES.in: ... this. Update.
20379 * po/Rules-quot: New file, from gettext.
20380 * po/boldquot.sed: Likewise.
20381 * po/en@boldquot.header: Likewise.
20382 * po/en@quot.header: Likewise.
20383 * po/insert-header.sin: Likewise.
20384 * po/quot.sed: Likewise.
20385 * po/remove-potcdate.sin: Likewise.
20386
3e0fa5d0
VS
203872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20388
20389 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
20390
ade9bd66
VS
203912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20392
20393 * util/grub.d/20_linux_xen.in: Use submenus.
20394
fc55cc4c
VS
203952010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20396
20397 Support submenus.
20398
20399 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
20400 parameter submenu. All users updated.
20401 * grub-core/normal/main.c (free_menu): Rename to ...
20402 (grub_normal_free_menu): ... this. Made global.
20403 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
20404 if requested.
20405 * grub-core/normal/menu_entry.c (screen): New field submenu.
20406 (make_screen): Set submenu.
20407 (run): Open new context if requested.
20408 * include/grub/menu.h (grub_menu_entry): New field submenu.
20409 * include/grub/normal.h (grub_normal_free_menu): New proto.
20410
600cedf7
VS
204112010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20412
20413 Menu entries extractor.
20414
20415 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
20416 variants.
20417 (GRUB_MOD_INIT): Register new variants.
20418 (GRUB_MOD_FINI): Unregister new variants.
20419 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
20420 into grub_cmd_legacy_source.
20421 (grub_cmd_legacy_source): Implement extractor variants.
20422 (GRUB_MOD_INIT): Register new variants.
20423 (GRUB_MOD_FINI): Unregister new variants.
20424 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
20425 as an extractor.
20426 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
20427 search as an extractor.
20428 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
20429 test as an extractor.
20430 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
20431 as an extractor.
20432 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
20433 (grub_env_new_context): New function.
20434 (grub_env_context_open): Likewise.
20435 (grub_env_extractor_open): Likewise.
20436 (grub_env_extractor_close): Likewise.
20437 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20438 grub_extractor_level.
20439 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
20440 * include/grub/env.h (grub_env_extractor_open): New proto.
20441 (grub_env_extractor_close): Likewise.
20442 * include/grub/normal.h (grub_extractor_level): New external variable.
20443
7bda3a87
VS
204442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20445
20446 Make cutmem accept a region specification.
20447 Suggested by: Samuel Thibault
20448
20449 * grub-core/mmap/mmap.c (parsemem): New function.
20450 (grub_cmd_cutmem): Handle new arguments.
20451
2ea57f88
VS
204522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20453
20454 New command cutmem.
20455
20456 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
20457 (GRUB_MOD_INIT): Register new command.
20458 (GRUB_MOD_FINI): Unregister new command.
20459
74342e31
VS
204602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20461
20462 Support some annoying BSD and Minix subpartitions.
20463
20464 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
20465 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
20466 Properly handle concatenation.
20467 * grub-core/kern/device.c (grub_device_iterate): Likewise.
20468 * grub-core/normal/completion.c (iterate_partition): Likewise.
20469 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
20470 contain partition. All users updated.
20471 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
20472 struct.
20473 (grub_openbsdlabel_partition_map): Likewise.
20474 (bsdlabel_partition_map_iterate): Rename to ..
20475 (iterate_real): ... this. New arguments sector, freebsd and pmap.
20476 (bsdlabel_partition_map_iterate): New function.
20477 (netopenbsdlabel_partition_map_iterate): Likewise.
20478 (netbsdlabel_partition_map_iterate): Likewise.
20479 (openbsdlabel_partition_map_iterate): Likewise.
20480 (GRUB_MOD_INIT): Register new partmaps.
20481 (GRUB_MOD_FINI): Unregister new partmaps.
20482 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
20483 (grub_partition_msdos_iterate): ... this. All users updated.
20484 Don't support embedding other than in a minix partition.
20485 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
20486 proto.
20487 * include/grub/partition.h (grub_partition): New field msdostype.
20488 * util/grub-install.in: Handle openbsd and netbsd types being in
20489 part_bsd module.
20490
1e8d555b
VS
204912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20492
20493 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
20494
20495 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
20496 * grub-core/Makefile.core.def (mdraid): Renamed to ...
20497 (mdraid09): ... this.
20498 (mdraid1x): New module.
20499 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
20500 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
20501
899d8af4
VS
205022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20503
20504 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
20505 vsprintf.
20506
40901acd
CW
205072010-09-20 Colin Watson <cjwatson@ubuntu.com>
20508
20509 * grub-core/commands/efi/lsefimmap.c: Correct header.
20510 * NEWS: Update.
20511
dfe3b247
CW
205122010-09-20 Colin Watson <cjwatson@ubuntu.com>
20513
20514 * util/grub-editenv.c (argp_parser): Don't pass translated strings
20515 as printf format strings; the translations might contain '%' which
20516 could cause a crash.
20517 (main): Likewise.
20518 * util/grub-fstest.c (argp_parser): Likewise.
20519 * util/grub-setup.c (argp_parser): Likewise.
20520 (main): Likewise.
20521
3286a4b4
VS
205222010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20523
20524 Use argp in grub-fstest.
20525
20526 * util/grub-fstest.c: Don't include getopt.h.
20527 Include argp.h.
20528 (root): New variable.
20529 (args_count): Likewise.
20530 (nparm): Likewise.
20531 (num_disks): Likewise.
20532 (images): Likewise.
20533 (cmd): Likewise.
20534 (debug_str): Likewise.
20535 (args): Likewise.
20536 (options): Transformed to argp.
20537 (usage): Removed.
20538 (main): Split argument parsing into ...
20539 (argp_parser): ... this. Changed to argp format.
20540 (argp): New variable.
20541 (main): Use argp_parse.
20542
3dccbe4b
TG
205432010-09-20 Tristan Gingold <gingold@free.fr>
205442010-09-20 Robert Millan <rmh.grub@aybabtu.com>
205452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 * grub-core/commands/efi/lsefimmap.c: New file.
20548 * grub-core/Makefile.core.def (lsefimmap): New module.
20549 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
20550
38c259a7
VS
205512010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20552
20553 Pause the execution (10s max) if any errors are displayed so the user
20554 has a chance to see them.
20555
20556 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
20557 (grub_print_error): Increment grub_err_printed_errors.
20558 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
20559 execution if any errors were displayed.
20560 (show_menu): Remove old code for pause.
20561 * grub-core/normal/menu_entry.c (run): Likewise.
20562 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
20563 users updated.
20564 (grub_normal_get_char_counter): Likewise.
20565 * include/grub/err.h (grub_err_printed_errors): New external variable.
20566 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
20567
f218b09c
VS
205682010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20569
20570 Support multiboot VBE info.
20571
20572 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
20573 Take VBE info into account.
20574 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
20575 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20576 Call fill_vbe_info when appropriate.
20577 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
20578 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
20579 as supported.
20580 (grub_multiboot_get_mbi_size): Take new tags into account.
20581 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
20582 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20583 Call fill_vbe_tag when appropriate.
20584 (grub_multiboot_make_mbi): Properly align tags.
20585 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
20586 function.
20587 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
20588 proto.
20589 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
20590
a9cc5438
VS
205912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 Suport manual terminal geometry specification.
20594
20595 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
20596 Save state in grub_ofconsole_terminfo_output.
20597 (grub_ofconsole_term): Use grub_terminfo_getwh.
20598 (grub_ofconsole_getwh): Removed.
20599 * grub-core/term/serial.c (grub_serial_getwh): Removed.
20600 (grub_serial_term): Use grub_terminfo_getwh.
20601 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
20602 (options): New struct.
20603 (OPTION_*): New enum.
20604 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
20605 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
20606 width and height.
20607 (grub_terminfo_getwh): New proto.
20608 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
20609
1a8fed20
VS
206102010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20611
20612 Handle legacy "terminal" command.
20613
20614 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
20615 and FLAG_TERMINAL.
20616 (legacy_commands): Add terminal and title.
20617 (grub_legacy_parse): Handle terminal. Simplify title handling.
20618
41e9c57d
VS
206192010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20620
20621 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
20622 parameters overflow.
20623
61c874c5
CW
206242010-09-20 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
20627 widthspec.h.
20628
20629 * docs/grub.texi (Shell-like scripting): Document `!'.
20630 (Network): Simplify using new i386-pc-pxe format. Mention
20631 grub-mknetdir.
20632
20633 * NEWS: Update.
20634
943682b4
CW
206352010-09-20 Colin Watson <cjwatson@ubuntu.com>
20636
20637 * Makefile.am (SUBDIRS): Restore "."; it's important to force
20638 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
20639 when needed.
20640
6d3d698d
CW
206412010-09-20 Colin Watson <cjwatson@ubuntu.com>
20642
20643 * grub-core/commands/efi/lsefisystab.c: Correct header.
20644 * grub-core/commands/efi/lssal.c: Likewise.
20645 * grub-core/commands/testload.c: Likewise.
20646
c982589f
CW
206472010-09-20 Colin Watson <cjwatson@ubuntu.com>
20648
20649 * util/grub-mkrescue.in: Add explicit root argument to --set to
20650 prevent the UUID being interpreted as an argument to --set (matches
20651 previous change to prepare_grub_to_access_device).
20652
a63c31b6
CW
206532010-09-20 Colin Watson <cjwatson@ubuntu.com>
20654
20655 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
20656 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
20657 the verbosity of later #ifs.
20658 (find_partition_start): Define this function on FreeBSD too.
20659 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
20660 function.
20661 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
20662 on FreeBSD.
20663
6439b8ee
YB
206642010-09-20 Yves Blusseau <blusseau@zetam.org>
20665
20666 * util/grub-editenv.c: Use argp instead of getopt.
20667
c5930ec8
YB
206682010-09-20 Yves Blusseau <blusseau@zetam.org>
20669
20670 * util/grub-setup.c: Use argp instead of getopt.
20671
15c69261
YB
206722010-09-20 Yves Blusseau <blusseau@zetam.org>
20673
20674 Use gnulib-tool to create gnulib source files.
20675
20676 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
20677 grub-core/gnulib directories
20678 * .bzignore: Add **/.deps and autogenerated gnulib files
20679 * configure.ac: Assign auxiliary directory to build-aux, add invocation
20680 of gnulib macros, add grub-core/gnulib/Makefile
20681 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
20682 include m4 directory to aclocal.
20683 * Makefile.util.def: Remove direct compilation of gnulib source files
20684 and use the new grub-core/gnulib/libgnu.a.
20685 * build-aux/config.rpath: move config.rpath from top directory to
20686 build-aux
20687 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
20688 in gnulib headers
20689 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
20690 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
20691 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
20692 header.
20693 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
20694 string.
20695
e511c9f5
YB
206962010-09-20 Yves Blusseau <blusseau@zetam.org>
20697
20698 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
20699 grub-core/genmod.sh and grub-core/gensyminfo.sh
20700
c2dede05
BC
207012010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
20702
20703 Add a test for echo command options.
20704
20705 * tests/grub_cmd_echo.in: New test.
20706 * Makefile.util.def: Rules for new test.
20707
c55f5018
SJ
207082010-09-20 Szymon Janc <szymon@janc.net.pl>
20709
20710 Remove crc.mod and move crc command to hashsum.mod.
20711 Remove lib/crc.c - users updated to use gcrypt implementation.
20712
20713 * grub-core/commands/crc.c: Removed.
20714 * grub-core/Makefile.core.def (crc): Module removed.
20715 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
20716 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
20717 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
20718 * grub-core/lib/crc.c: Removed.
20719 * include/grub/lib/crc.h: Removed.
20720 * Makefile.util.def (crc): Remove lib/crc.c
20721 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
20722 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
20723 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
20724 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
20725 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
20726 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
20727
e0337366
VS
207282010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20729
20730 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
20731
742f9232
VS
207322010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 Split config.h for util and core.
20735
20736 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
20737 (ADDR32): Likewise.
20738 (DATA32): Likewise.
20739 (BSS_START_SYMBOL): Likewise.
20740 (END_SYMBOL): Likewise.
20741 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
20742 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
20743 * config.h.in: New file.
20744 * configure.ac: Use config-util.h as config define file.
20745 Rename MACHINE into GRUB_MACHINE. All users updated.
20746 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
20747 updated.
20748 (NESTED_FUNC_ATTR): Likewise.
20749 Substitue new variables.
20750 (COND_HAVE_ASM_USCORE): New conditional.
20751 * grub-core/Makefile.am (ASM_PREFIX): New variable.
20752 (kernel_syms.lst): Use ASM_PREFIX.
20753 * grub-core/kern/emu/console.c: Include config-util.h.
20754 * grub-core/kern/emu/misc.c: Likewise.
20755 * grub-core/kern/emu/mm.c: Likewise.
20756 * include/grub/emu/misc.h: Likewise.
20757 * include/grub/libgcc.h: Likewise.
20758
39feb0e8
VS
207592010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
20762 constants usage.
20763 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20764 Fix GRUB_TERM_KEY_* constants usage.
20765 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20766
9af6dac3
VS
207672010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20770 print pointer.
20771 * grub-core/bus/usb/uhci.c: Remove empty define.
20772 (grub_uhci_check_transfer): Add missing cast.
20773 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20774 print pointer.
20775 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20776 PRIuGRUB_SIZE.
20777 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20778
d6d94820
VS
207792010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20780
20781 * grub-core/Makefile.core.def (legacycfg): Add
20782 lib/i386/pc/vesa_modes_table.c on emu.
20783
3572f2b6
BC
207842010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20785
20786 Reduce number of temporary files generated by build system.
20787
20788 * grub-core/gencmdlist.sh: Removed.
20789 * grub-core/genfslist.sh: Removed.
20790 * grub-core/genhandlerlist.sh: Removed.
20791 * grub-core/genmodsrc.sh: Removed.
20792 * grub-core/genpartmaplist.sh: Removed.
20793 * grub-core/genparttoollist.sh: Removed.
20794 * grub-core/gentermiinallist.sh: Removed.
20795 * grub-core/genvideolist.sh: Removed.
20796
20797 * grub-core/genmod.sh.in: New file.
20798 * grub-core/gensyminfo.sh.in: New file.
20799
20800 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20801 * conf/Makefile.extra-dist: Update with new files.
20802 * gentpl.py: Remove rules related to unnecessary temporary files.
20803 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20804 and und-* files.
20805 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20806 genmod.sh scripts.
20807 * grub-core/bus/usb/uhci.c: Remove empty #define.
20808 * grub-core/genmoddep.awk: Updated with new syminfo format.
20809 * util/bash-completion.d/Makefile.am: Add config.log to
20810 CLEANFILES.
20811
c836b030
YB
208122010-09-19 Yves Blusseau <blusseau@zetam.org>
20813
20814 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20815
2f4e8053
BC
208162010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20817
20818 * util/grub-mkconfig.in: Check the config script for syntax errors
20819 before saving.
20820
75831c34
CW
208212010-09-19 Colin Watson <cjwatson@ubuntu.com>
208222010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20823
20824 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20825 platforms.
20826 * util/grub-install.in: Add EFI and IEEE1275 support.
20827 * util/i386/efi/grub-install.in: Removed.
20828 * util/ieee1275/grub-install.in: Likewise.
20829
eaf41b25
VS
208302010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20831
20832 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20833 (grub_cmd_cmosclean): Likewise.
20834 (GRUB_MOD_INIT): Register command cmosclean.
20835 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20836 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20837
1a9130dd
CPE
208382010-09-18 Carles Pina i Estany <carles@pina.cat>
208392010-09-18 Aleš Nesrsta <starous@volny.cz>
208402010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20841
20842 Add keyboard layouts support.
20843
20844 * Makefile.util.def (grub-mklayout): New file.
20845 (grub-kbdcomp): New script.
20846 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20847 Add keyboard_layouts.h.
20848 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20849 commands/boot.c on yeeloong.
20850 (keylayouts): New module.
20851 * grub-core/bus/usb/ohci.c
20852 * grub-core/bus/usb/uhci.c
20853 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20854 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20855 (attach_root_port): Likewise.
20856 (poll_nonroot_hub): Likewise.
20857 (grub_usb_poll_devices): Likewise.
20858 (detach_device): Close transfer.
20859 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20860 function.
20861 (grub_usb_bulk_setup_readwrite): Likewise.
20862 (grub_usb_bulk_finish_readwrite): Likewise.
20863 * grub-core/commands/keylayouts.c: New file.
20864 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20865 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20866 aliases.
20867 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20868 support scancode 2.
20869 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20870 * include/grub/keyboard_layouts.h: New file.
20871 * util/grub-mklayout.c: New file.
20872 * util/grub-kbdcomp.in: Likewise.
20873
a1d84a5e
VS
208742010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20875
20876 Unify memory types.
20877
20878 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20879 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20880 types.
20881 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20882 (grub_upper_mem): Likewise.
20883 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20884 * include/grub/memory.h (grub_memory_type_t): New enum.
20885 All users updated.
20886
9696382e
VS
208872010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20888
20889 * grub-core/Makefile.core.def (lsapm): New module.
20890 * grub-core/commands/i386/pc/lsapm.c: New file.
20891 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20892 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20893 Likewise.
20894 * include/grub/i386/pc/apm.h: New file.
20895 * include/multiboot.h (multiboot_apm_info): New struct.
20896
208972010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20898
20899 GRUB-legacy configuration file support.
20900
20901 * Makefile.util.def (grub-menulst2cfg): New util.
20902 * docs/man/grub-menulst2cfg.h2m: New file.
20903 * grub-core/Makefile.core.def (legacycfg): New module.
20904 * grub-core/commands/legacycfg.c: New file.
20905 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20906 (grub_normal_add_menu_entry): ... this.
20907 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20908 (grub_normal_set_password): ...this.
20909 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20910 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20911 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20912 * grub-core/lib/legacy_parse.c: New file.
20913 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20914 * include/grub/i386/pc/vesa_modes_table.h: New file.
20915 * include/grub/legacy_parse.h: Likewise.
20916 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20917 * util/grub-menulst2cfg.c: New file.
20918
bf8d1338
CW
209192010-09-17 Colin Watson <cjwatson@ubuntu.com>
20920
20921 * grub-core/kern/emu/hostdisk.c
20922 (convert_system_partition_to_system_disk): Initialise node.
20923
9c0bad2e
CW
209242010-09-17 Colin Watson <cjwatson@ubuntu.com>
20925
20926 * grub-core/kern/emu/hostdisk.c
20927 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20928 leak.
20929 Reported and based on patch by: Modestas Vainius.
20930
a939d135
CW
209312010-09-17 Colin Watson <cjwatson@ubuntu.com>
20932
20933 Fix DM-RAID probing with recent versions of device-mapper udev
20934 rules.
20935
20936 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20937 canonicalise device paths under /dev/mapper/.
20938 (convert_system_partition_to_system_disk): Compare the
20939 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20940 path, since device nodes under /dev/mapper/ are often symlinks.
20941
0f7ee3c9
YB
209422010-09-17 Yves Blusseau <blusseau@zetam.org>
20943
20944 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20945
10854d0d
YB
209462010-09-16 Yves Blusseau <blusseau@zetam.org>
20947
20948 * configure.ac: Avoid some annoying error messages if freetype-config
20949 program is not found.
20950
108538d8
CW
209512010-09-16 Colin Watson <cjwatson@ubuntu.com>
20952
20953 Support RAID on virtio devices, and others.
20954
20955 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20956 Rename to ...
20957 [__MINGW32__] (grub_find_device): ... this.
20958 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20959 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20960 reasonable default if dir is NULL.
20961 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20962 ...
20963 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20964 (grub_guess_root_device): Update callers.
20965 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20966
20967 * util/raid.c (grub_util_getdiskname): Remove.
20968 (grub_util_raid_getmembers): Use grub_find_device rather than
20969 grub_util_getdiskname.
20970
e5bfc130
CW
209712010-09-16 Colin Watson <cjwatson@ubuntu.com>
20972
20973 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20974 needing to be compiled with serial support.
20975 (ls): Indicate that multiple files are accepted.
20976 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20977 indicate that multiple files are accepted.
20978
be458ae2
CW
209792010-09-16 Colin Watson <cjwatson@ubuntu.com>
20980
20981 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20982 libgrub_a_init.c, and util/bash-completion.d/grub.
20983
cb731b5e
VS
209842010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20985
20986 * util/grub-setup.c (setup): Fix incorrect container semantics.
20987
35139e8a
VS
209882010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20989
20990 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20991 misusage.
20992 Reported by: J. Nick Terry
20993
e50fca4a
VS
209942010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 Move embedding routines to partmap sources files.
20997
20998 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20999 [GRUB_UTIL]: New variable.
21000 (gpt_partition_map_iterate): Set part.parent.
21001 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
21002 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
21003 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
21004 New function.
21005 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
21006 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
21007 (grub_partition_map) [GRUB_UTIL]: New field embed.
21008 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
21009 (setup): Use ->embed.
21010
f00478b7
VS
210112010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21012
21013 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
21014 function.
21015 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
21016 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
21017
2b94e3ff
YB
210182010-09-15 Yves Blusseau <blusseau@zetam.org>
21019
21020 Add function to get completions from usage.
21021
21022 * util/bash-completion.d/grub-completion.bash.in: Add function to get
21023 completions from usage. Use LC_ALL=C to get options properly.
21024
2e04a006
VS
210252010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21026
21027 * grub-core/gnulib/basename-lgpl.c: Imported.
21028 * grub-core/gnulib/basename.c: Likewise.
21029 * grub-core/gnulib/dirname-lgpl.c: Likewise.
21030 * grub-core/gnulib/dirname.c: Likewise.
21031 * grub-core/gnulib/dirname.h: Likewise.
21032 * grub-core/gnulib/stripslash.c: Likewise.
21033
5dcdf93a
VS
210342010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * grub-core/gnulib/error.c: Resynced.
21037 * grub-core/gnulib/getopt.c: Likewise.
21038 * grub-core/gnulib/getopt_int.h: Likewise.
21039 * grub-core/gnulib/regex.h: Likewise.
21040 * grub-core/gnulib/regex_internal.c: Likewise.
21041 * grub-core/gnulib/regex_internal.h: Likewise.
21042
014f47b7
SJ
210432010-09-15 Szymon Janc <szymon@janc.net.pl>
21044
21045 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
21046 CRC calculations and validity checks.
21047 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
21048 calculations.
21049
dd521a4a
SJ
210502010-09-15 Szymon Janc <szymon@janc.net.pl>
21051
21052 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
21053
79c4eeb9
VS
210542010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21055
21056 Fix incorrect echo options handling.
21057 Reported by: Yves Blusseau.
21058
21059 * include/grub/command.h (grub_command_flags_t): New flags
21060 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
21061 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
21062 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
21063
ed80f7d5
VS
210642010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
21067 users updated.
21068 (GRUB_COMMAND_FLAG_MENU): Likewise.
21069 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21070 (GRUB_COMMAND_FLAG_TITLE): Removed.
21071 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21072 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
21073 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
21074 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
21075 (grub_command_flags_t): New enum. All users updated.
21076
5fe7620a
SG
210772010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
21078
21079 Fix solaris compilation.
21080
21081 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
21082 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
21083 (grub-emu-list): Likewise.
21084
545b752f
VS
210852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21086
21087 Remove deprecated root command.
21088
21089 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
21090 updated.
21091
6c1a338c
VS
210922010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21093
21094 * util/i386/pc/grub-setup.c: Merge this ...
21095 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
21096 * util/grub-setup.c: ... into this.
21097 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
21098 New struct.
21099
211002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21101
21102 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
21103 possible.
21104
d2ea4551
VS
211052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21106
21107 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
21108 allocate p.
21109
3c3b5040
VS
211102010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21111
21112 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
21113 explicit root argument to set to prevent UUID to be interpreted as
21114 argument to set.
21115
b71c3fae
VS
211162010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21117
21118 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
21119
275433e6
VS
211202010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21121
21122 Don't export grub_gate_a20.
21123
21124 * grub-core/kern/i386/pc/init.c: Remove leftovers.
21125 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
21126 to ...
21127 (grub_gate_a20): ... this. All users updated.
21128 * include/grub/i386/pc/init.h: Removed. All users updated.
21129
a5dbb1f1
VS
211302010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 Create euro.pf2 which supports most European languages.
21133
21134 * Makefile.am (grubdata_DATA): Add euro.pf2.
21135 (euro.pf2): New target.
21136 (CLEANFILES): Add euro.pf2.
21137
62a747cb
VS
211382010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
21139
21140 * configure.ac: Disable emu-usb by default to prevent inadvertent
21141 device takeover.
21142
608e43b1
VS
211432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21144
21145 Disable usbserial on grub-emu since our libusb code isn't good enough
21146 yet.
21147
21148 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
21149 (usbserial_pl2303): Likewise.
21150 (usbserial_ftdi): Likewise.
21151
94564f81
VS
211522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 * include/grub/disk.h (grub_disk): Remove has_partitions.
21155 All users updated.
21156 * disk/loopback.c (grub_loopback): Remove has_partitions.
21157 All users updated.
21158 (options): Remove partitions. All users updated.
21159 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
21160 * util/i386/pc/grub-setup.c (setup): copy partition table only when
21161 actual partition table is found.
21162
3352800b
VS
211632010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 Remove readability checks (too many false negatives).
21166
21167 * util/grub-install.in: Remove readability checks.
21168 * util/grub-mkconfig.in: Likewise.
21169 * util/grub.d/10_hurd.in: Likewise.
21170 * util/grub.d/10_kfreebsd.in: Likewise.
21171 * util/grub.d/10_linux.in: Likewise.
21172 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
21173 way.
21174
2419f17a
VS
211752010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 Enable acpi shutdown on all ACPI platforms.
21178
21179 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
21180 on coreboo, multiboot and EFI.
21181 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
21182 (grub_acpi_halt): Likewise.
21183 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
21184 (grub_cmd_halt): Don't call grub_acpi_halt directly.
21185 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
21186 * grub-core/lib/i386/halt.c (grub_halt)
21187 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
21188
0575c7c3
VS
211892010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21190
21191 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
21192 context.
21193
54ac3cd1
VS
211942010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21195
21196 * grub-core/video/efi_gop.c: Fix over-80-chars line.
21197 * grub-core/video/efi_uga.c: Likewise.
21198
b2a30ac5
VS
211992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21200
21201 Filter devaliases and never open same device twice.
21202
21203 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
21204 (last_ihandle): Likewise.
21205 (ofdisk_hash_ent): New member shortest.
21206 (ofdisk_hash_add): Add canonical path too.
21207 (scan): New function.
21208 (grub_ofdisk_iterate): Iterate over hashed entries.
21209 (compute_dev_path): Don't add :0.
21210 (grub_ofdisk_open): Don't really open the disk.
21211 (grub_ofdisk_close): Avoid closing unrelated disk.
21212 (grub_ofdisk_read): Implement reopen logic.
21213 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
21214 New function.
21215 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
21216 New proto.
21217
fb53b340
VS
212182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21219
21220 Fix sparc64.
21221
21222 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
21223 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
21224 right address. Add sparc64_ieee1275_ldflags.
21225 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
21226 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
21227 to grub_host_to_target_addr
21228 (load_image): Likewise.
21229
f452b040
VS
212302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21231
21232 * grub-core/normal/completion.c (complete_file): Handle device
21233 containing slash.
21234 Fix based on patch by Doug Nazar.
21235
9b5b2541
VS
212362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 grub-mknetdir script.
21239
21240 * Makefile.util.def (grub-mknetdir): New module.
21241 * tests/util/grub-shell.in: Support boot=net
21242 * util/grub-mknetdir.in: New file.
21243
9d2be652
VS
212442010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21245
21246 videoinfo on non-vbe.
21247
21248 * grub-core/Makefile.core.def (vbeinfo): Removed.
21249 (vbetest): Removed.
21250 (videoinfo): New module.
21251 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
21252 * grub-core/commands/i386/pc/vbetest.c: Removed.
21253 * grub-core/commands/videoinfo.c: New file.
21254 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
21255 specification.
21256 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
21257 as vbetest.
21258 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
21259 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
21260 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
21261 mode_number. New parameter mode. All users updated.
21262 (grub_video_gop_iterate): New function.
21263 (grub_video_efi_gop): New member iterate.
21264 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
21265 (grub_vbe_set_video_mode): Remove setting useless fields.
21266 (vbe2videoinfo): New function.
21267 (grub_video_vbe_iterate): Likewise.
21268 (grub_video_vbe_setup): Use vbe2videoinfo.
21269 (grub_video_vbe_print_adapter_specific_info): New function.
21270 (grub_video_vbe_adapter): New fields iterate and
21271 print_adapter_specific_info.
21272 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
21273 All users updated.
21274 (grub_video_mode_info): New field mode_number.
21275 (grub_video_adapter): New fields iterate and
21276 print_adapter_specific_info.
21277
179503f5
TG
212782010-09-13 Tristan Gingold <gingold@free.fr>
212792010-09-13 Robert Millan <rmh.grub@aybabtu.com>
212802010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 * grub-core/commands/efi/lsefisystab.c: New file.
21283 * grub-core/commands/efi/lssal.c: Likewise.
21284 * grub-core/Makefile.core.def (lsacpi): New module.
21285 (lsefisystab): Likewise.
21286 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
21287 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
21288 (grub_efi_sal_system_table): New struct.
21289 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
21290 (grub_efi_sal_system_table_memory_descriptor): Likewise.
21291 (grub_efi_sal_system_table_platform_features): Likewise.
21292 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
21293 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
21294 (grub_efi_sal_system_table_ap_wakeup): Likewise.
21295 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
21296
cf9827de
VS
212972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 Support explicit user claim that a device is BIOS-visible.
21300
21301 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
21302 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
21303 * grub-core/kern/emu/hostdisk.c
21304 (convert_system_partition_to_system_disk): Support mdX.
21305 (find_system_device): New parameter add. All users updated.
21306 (grub_util_biosdisk_is_present): New function.
21307 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
21308 proto.
21309
53f0eb1f
VS
213102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21311
21312 Search hints support.
21313
21314 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
21315 All users updated.
21316
b23ffd70
YB
213172010-09-13 Yves Blusseau <blusseau@zetam.org>
21318
21319 Bash completion script for util commands
21320
21321 * Makefile.am: Add util/bash-completion.d directory
21322 * configure.ac: Likewise.
21323 * util/bash-completion.d/Makefile.am: New file.
21324 * util/bash-completion.d/grub-completion.bash.in: Likewise.
21325
d547dc28
VS
213262010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
21329 (print_backlog): set backlog_ucs4 and backlog_glyphs.
21330 Reported by: Yves Blusseau.
21331
2fc8ccb9
VS
213322010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21333
21334 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
21335 partition size and offset.
21336
d8a84076
VS
213372010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
21340
84fb3b3d
VS
213412010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
21344
768ec2e2
VS
213452010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21346
21347 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
21348 (grub_xvasprintf): Likewise.
21349
4870900f
VS
213502010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21351
21352 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
21353
faca6bec
VS
213542010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21355
21356 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
21357 args ending with NULL.
21358
213592010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
21360
21361 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
21362 pointer.
21363
3c70f225
SJ
213642010-09-11 Szymon Janc <szymon@janc.net.pl>
21365
21366 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
21367
4df7996d
VS
213682010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21369
21370 Shutdown using ACPI.
21371
21372 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
21373 * grub-core/commands/acpihalt.c: New file.
21374 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
21375 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
21376 (grub_acpi_halt): New proto.
21377 (GRUB_ACPI_SLP_EN): New const.
21378 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
21379 (GRUB_ACPI_OPCODE_*): New enum.
21380 (GRUB_ACPI_EXTOPCODE_*): Likewise.
21381
126b4c32
TG
213822010-09-11 Tristan Gingold <gingold@free.fr>
213832010-09-11 Robert Millan <rmh.grub@aybabtu.com>
213842010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 * commands/lsacpi.c: New file.
21387 * grub-core/Makefile.core.def (lsacpi): New module.
21388 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
21389 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
21390 (grub_acpi_madt_entry_header): New struct.
21391 (grub_acpi_madt): Likewise.
21392 (grub_acpi_madt_entry_interrupt_override): Likewise.
21393 (grub_acpi_madt_entry_sapic): Likewise.
21394 (grub_acpi_madt_entry_lsapic): Likewise.
21395 (grub_acpi_madt_entry_platform_int_source): Likewise.
21396 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
21397 (PRIuGRUB_UINT32_T): Likewise.
21398 (PRIxGRUB_UINT64_T): Likewise.
21399
1aa4fe88
VS
214002010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21401
21402 Implement loading palette on ieee1275_fb.
21403
21404 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
21405 (have_setcolors): Likewise.
21406 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
21407 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
21408 (grub_video_ieee1275_set_palette): Implement.
21409
25761e13
VS
214102010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
214112010-09-11 Colin Watson <cjwatson@ubuntu.com>
21412
21413 * util/grub-install.in (grub_partition): New variable.
21414 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
21415 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
21416 Fixes a bug reported by Yves Blusseau.
21417
050abaea
VS
214182010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 Fix emu on mipsel.
21421
21422 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
21423 =grub_cpu_flush_cache on all mips and not only yeeloong.
21424 * configure.ac (COND_mips): New conditional.
21425 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
21426 platforms.
21427 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
21428 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
21429 [GRUB_LINKER_HAVE_INIT]: New function.
21430 (grub_emu_post_init): Likewise.
21431 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
21432 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
21433 * include/grub/cache.h (_mips): Include mips/cache.h.
21434 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
21435 LVM and RAID prototypes.
21436 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
21437 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
21438 function.
21439
5ed7d816
CW
214402010-09-10 Colin Watson <cjwatson@ubuntu.com>
21441
21442 * util/grub-install.in: Don't try to verify core.img until after
21443 running grub-mkimage to create it.
21444
90367e04
RM
214452010-09-10 Robert Millan <rmh@gnu.org>
21446
21447 * util/grub.d/10_hurd.in: Add misc readability checks.
21448 * util/grub.d/10_kfreebsd.in: Likewise.
21449 * util/grub.d/10_linux.in: Likewise.
21450
c452fa66
CW
214512010-09-10 Colin Watson <cjwatson@ubuntu.com>
21452
21453 * util/grub-install.in: ${imgext} won't be defined here until the
21454 install branch is merged. For the meantime, only verify core.img on
21455 i386-pc and sparc64-ieee1275 platforms.
21456
c38fe9f4
RM
214572010-09-10 Robert Millan <rmh@gnu.org>
21458
21459 Solaris support in grub_find_zpool_from_dir(). Thanks
21460 Seth Goldberg for referring to getextmntent() facility.
21461
21462 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
21463 `sys/mkdev.h'.
21464 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
21465 `<sys/mnttab.h>'.
21466 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
21467 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
21468 method for finding zpool name.
21469
905f7773
CW
214702010-09-10 Colin Watson <cjwatson@ubuntu.com>
21471
21472 grub-fstest needs the host and hostfs modules while other utilities
21473 actively require those modules to be absent, so grub-fstest needs
21474 its own initialisation and finalisation code.
21475
21476 * Makefile.am (grub_fstest.pp): New target.
21477 (grub_fstest_init.lst): Likewise.
21478 (grub_fstest_init.c): Likewise.
21479 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
21480
fb90b546
RM
214812010-09-10 Robert Millan <rmh@gnu.org>
21482
21483 * configure.ac: Check for `struct statfs.f_fstypename' and
21484 `struct statfs.f_mntfromname'.
21485
21486 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
21487 kFreeBSD-specific code.
21488
66d4bea5
RM
214892010-09-10 Robert Millan <rmh@gnu.org>
21490
21491 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
21492 on ZFS. Now non-main filesystems are supported as / too.
21493
b6a690ee
CW
214942010-09-09 Colin Watson <cjwatson@ubuntu.com>
21495
21496 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
21497 and grub-core/disk/host.c to ...
21498 (grub-fstest): ... here. Having the host disk implementation
21499 present confuses grub-probe and other utility programs.
21500
21501 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
21502 when writing to a file, not when writing to stdout.
21503
8901b00c 215042010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
21505
21506 * tests/partmap_test.in: New test for partitions.
21507 * Makefile.util.def: Rules for new test.
21508
7bf45fdd
RM
215092010-09-09 Robert Millan <rmh@gnu.org>
21510
21511 * util/grub-probe.c (probe): Fix a pair of unhandled error
21512 conditions.
21513
4dfbc574
RM
215142010-09-09 Robert Millan <rmh@gnu.org>
21515
21516 Basic Btrfs support (detection and UUID).
21517
21518 * grub-core/fs/btrfs.c: New file.
21519 * Makefile.util.def (library): Register btrfs.c.
21520 * grub-core/Makefile.core.def: Likewise.
21521
6b8e78ae
RM
215222010-09-08 Robert Millan <rmh@gnu.org>
21523
21524 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
21525 with (optional) parameters to specify device and relative path.
21526 * util/grub-install.in: Use is_path_readable_by_grub() to
21527 verify readability of a few critical files.
21528 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
21529 verify readability of grub.cfg.new.
21530
27f21a8b
VS
215312010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21532
21533 Split minix.mod into minix.mod and minix2.mod.
21534
21535 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
21536 * grub-core/Makefile.core.def (minix2): New module.
21537 * grub-core/fs/minix.c: Use definitions instead of runtime version
21538 checking.
21539 * grub-core/fs/minix2.c: New file.
21540
c0e53ea5
YB
215412010-09-08 Yves Blusseau <blusseau@zetam.org>
21542
21543 Add new --boot-directory option to replace --root-directory
21544
21545 * util/grub-install.in: Add new --boot-directory option
21546 * util/grub-reboot.in: Likewise.
21547 * util/grub-set-default.in: Likewise.
21548
b9fe6ea2
YB
215492010-09-08 Yves Blusseau <blusseau@zetam.org>
21550
21551 * util/grub-mkconfig.in: Use new variable.
21552
d87aedff
YB
215532010-09-08 Yves Blusseau <blusseau@zetam.org>
21554
21555 * configure.ac: Define some useful variables.
21556
e55e8495
VS
215572010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21558
21559 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21560 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
21561 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
21562 Use terminfo and don't use cursor-on/cursor-off unless it's known
21563 to work.
21564 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
21565 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
21566
6fa6d675
CW
215672010-09-08 Colin Watson <cjwatson@ubuntu.com>
21568
21569 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
21570 starts with "(,", fill the drive containing the loaded image in
21571 between those two characters, but expect that a full partition
21572 specification including partition map names will follow.
21573
92f2aef0
RM
215742010-09-08 Robert Millan <rmh@gnu.org>
21575
21576 * configure.ac: Remove `--enable-grub-fstest' option.
21577 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
21578
21579 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
21580 `grub-fstest' instead of `grub-probe' for readability verification.
21581 * util/grub-probe.c (probe): Remove readability verification kludge.
21582
99fd620d
RM
215832010-09-08 Robert Millan <rmh@gnu.org>
21584
21585 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
21586 initializing `GRUB_FS'.
21587
058e30ac 215882010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
21589
21590 Not command (!) support to GRUB script.
21591
21592 * tests/grub_script_not.in: New test.
21593 * Makefile.util.def: Rules for new test.
21594
21595 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21596 ! command as a special case.
21597 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
21598
b61d05ed 215992010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21600
058e30ac 21601 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
21602 grub_free.
b61d05ed 21603
4d69c786 216042010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21605
21606 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
21607
aa3119c4 216082010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21609
21610 * docs/grub.texi (Shell-like scripting): Documentation for break,
21611 continue, shift and return commands.
21612
db0f7e3d
VS
216132010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 Rename CD-ROM to cd on BIOS.
21616
21617 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
21618 "cd".
21619 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
21620
88b87c93
VS
216212010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21622
21623 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
21624 * util/grub-probe.c (main): Likewise.
21625 * util/i386/pc/grub-setup.c (main): Likewise.
21626 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21627 Reported and debugged by: alexxy
21628
294f324d
VS
216292010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
21632 diagnostic info.
21633
d7ee3441
JS
216342010-09-05 Jo Shields <directhex@apebox.org>
21635
21636 * util/grub.d/30_os-prober.in: Add missing classes.
21637
d7e06c1f
VS
216382010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21639
21640 * docs/grub.texi (Theme file format): Document new position format.
21641
fc157e53
VS
216422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21643
21644 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
21645 a table. Use @code instead of @verbatim.
21646
506e9a1c
CB
216472010-09-05 Colin D Bennett <colin@gibibit.com>
21648
21649 Gfxmenu documentation.
21650
21651 * docs/grub.texi (Theme file format): New chapter.
21652
f0aff67c
SJ
216532010-09-05 Szymon Janc <szymon@janc.net.pl>
21654
21655 * grub-core/Makefile.core.def (xzio): New module.
21656 * grub-core/io/xzio.c: New file.
21657 * grub-core/lib/xzembed/xz.h: New file (from xembed).
21658 * grub-core/lib/xzembed/xz_config.h: Likewise.
21659 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
21660 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
21661 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
21662 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
21663 * grub-core/lib/xzembed/xz_private.h: Likewise.
21664 * grub-core/lib/xzembed/xz_stream.h: Likewise.
21665 * include/grub/file.h (grub_file_filter_id): New compression filter
21666 GRUB_FILE_FILTER_XZIO.
21667
82a85062
VS
216682010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21669
21670 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
21671 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
21672 size.
21673
3579415d
VS
216742010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21675
21676 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
21677 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
21678
5124ae6d
VS
216792010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21680
21681 Uncompressed checksum support.
21682
21683 * grub-core/commands/hashsum.c (options): Add option --uncompress.
21684 (check_list): New parameter uncompress.
21685 (grub_cmd_hashsum): Handle --uncompress.
21686
9aadb3d1
VS
216872010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21688
21689 Reintroduce testload.
21690
21691 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
21692 from here ...
21693 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
21694 (GRUB_MOD_INIT): New function.
21695 (GRUB_MOD_FINI): Likewise.
21696 * grub-core/Makefile.core.def (testload): New module.
21697
a17792c3
SJ
216982010-09-05 Szymon Janc <szymon@janc.net.pl>
21699
21700 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
21701 (uint8_t): New type.
21702 (uint16_t): Likewise.
21703 (uint32_t): Likewise.
21704 (uint64_t): Likewise.
21705
b81e40a3
SJ
217062010-09-05 Szymon Janc <szymon@janc.net.pl>
21707
21708 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
21709
fc2ef117
VS
217102010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21711
21712 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
21713 Made static.
21714 (grub_gzfile_open): Removed. All users updated.
21715 (GRUB_MOD_INIT): New function.
21716 (GRUB_MOD_FINI): Likewise.
21717 * grub-core/kern/file.c (grub_file_filters_all): New variable.
21718 (grub_file_filters_enabled): Likewise.
21719 (grub_file_open): Handle filters.
21720 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
21721 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
21722 * include/grub/file.h (grub_file_filter_id_t): New type.
21723 (grub_file_filter_t): Likewise.
21724 (grub_file_filters_all): New extern variable.
21725 (grub_file_filters_enabled): Likewise.
21726 (grub_file_filter_register): New inline function.
21727 (grub_file_filter_unregister): Likewise.
21728 (grub_file_filter_disable): Likewise.
21729 (grub_file_filter_disable_compression): Likewise.
21730 * include/grub/gzio.h: Removed.
21731
35ee15e0
BC
217322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21733
21734 Filename expansion support for wildcards in GRUB script.
21735
21736 * tests/grub_script_expansion.in: New test.
21737 * Makefile.util.def: Rule for new test.
21738
21739 * grub-core/commands/wildcard.c: New file, implements filename
21740 expansion support for GRUB script.
21741 * grub-core/Makefile.core.def: Rule update for regexp.mod.
21742 * grub-core/script/argv.c: Cosmetic changes.
21743 * grub-core/script/execute.c (grub_script_arglist_to_argv):
21744 Refactored to perform wildcard expansion on arguments.
21745 * include/grub/script_sh.h (grub_script_wildcard_translator): New
21746 struct.
21747
21748 * tests/util/grub-shell.in: Fix quoting for read input.
21749
5f0c4aca
BC
217502010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21751
21752 Support for updating environment variables with matched substrings
21753 of regexp.
21754
21755 * tests/grub_cmd_regexp.in: New test.
21756 * Makefile.util.def: Rule for new test.
21757
21758 * grub-core/commands/regexp.c: New option -s to update environment
21759 variables with regexp matches.
21760
3759a35f
SJ
217612010-09-04 Szymon Janc <szymon@janc.net.pl>
21762
21763 * include/grub/file.h (grub_file): New member not_easly_seekable.
21764 (grub_file_seekable): New inline function.
21765 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21766 easily seekable.
21767 (grub_gzio_open): Set not_easly_seekable.
21768 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21769 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21770
ed8c6dec
BC
217712010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21772
21773 Support for options to appear multiple times on cmdline.
21774
21775 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21776 * grub-core/commands/extcmd.c: Support for repeatable option.
21777 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21778 repeatable option support.
21779
21780 Refactor menuentry into a regular command.
21781
21782 * grub-core/commands/menuentry.c: New file, menuentry command
21783 implementation.
21784 * grub-core/Makefile.core.def: Rule update for normal.mod.
21785 * grub-core/normal/main.c: Moved menuentry creation to
21786 grub-core/commands/menuentry.c.
21787 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21788 (grub_menu_execute_entry_real): Removed.
21789 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21790 function.
21791 (grub_script_execute_menuentry): Removed.
21792 * grub-core/script/parser.y (menuentry): Removed.
21793 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21794 * grub-core/script/yylex.l (menuentry): Removed.
21795 * include/grub/menu.h (grub_menu_init): New prototype.
21796 (grub_menu_fini): New prototype.
21797 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21798 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21799 (grub_script_execute_sourcecode): New prototype.
21800
dacd0cf0
BC
218012010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21802
21803 "return" command for GRUB script functions.
21804
21805 * tests/grub_script_return.in: New test.
21806 * Makefile.util.def: Rules for new test.
21807
21808 * grub-core/script/execute.c (grub_script_return): New function.
21809 * grub-core/script/main.c: Register/unregister return commaond.
21810 * include/grub/script_sh.h (grub_script_return): New prototype.
21811
52e72f9d
BC
218122010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21813
21814 "setparams" command to update positional parameters.
21815
21816 * tests/grub_script_setparams.in: New test.
21817 * Makefile.util.def: Rules for new test.
21818
21819 * grub-core/script/argv.c (grub_script_argv_make): New function.
21820 * grub-core/script/execute.c (replace_scope): New function.
21821 (grub_script_setparams): New function.
21822 * grub-core/script/lexer.c: Remove unused variables.
21823 * grub-core/script/main.c: Register/unregister setparams command.
21824 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21825 (grub_script_setparams): New prototype.
21826
25b60c91
BC
218272010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21828
21829 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21830 grub_free order.
21831
37e7bf68
BC
218322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21833
21834 Support for passing block of commands as an argument to extcmds.
21835
21836 * Makefile.util.def: Rules for new test.
21837 * tests/grub_script_blockarg.in: New test.
21838 * grub-core/tests/test_blockarg.c: New file, block argument
21839 command used in the test.
21840
21841 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21842 (grub_register_extcmd_prio): New function prototype.
21843 (grub_extcmd_dispatcher): New function prototype.
21844 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21845 type.
21846 * include/grub/script_sh.h (struct grub_script): New members
21847 `children', `next_siblings' and `refcnt' for block arguments and
21848 reference counting.
21849 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21850 (grub_script_arg): New member `script' for block argument.
21851 (grub_script_argv): New member `script' for block argument.
21852 (grub_parser_param): New member `scripts' for block argument.
21853 (grub_script_mem_free): New extern function prototype.
21854 (grub_script_ref): New function prototype.
21855 (grub_script_unref): New function prototype.
21856
21857 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21858 extcmd form to support block arguments.
21859 * grub-core/script/argv.c: Block arguments support.
21860 * grub-core/script/execute.c: Likewise.
21861 * grub-core/script/lexer.c: Likewise.
21862 * grub-core/script/main.c: Likewise.
21863 * grub-core/script/script.c: Likewise.
21864 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21865 non-terminals.
21866
21867 * grub-core/commands/acpi.c: Update extcmd implementations with
21868 grub_extcmd_context_t.
21869 * grub-core/commands/cat.c: Likewise.
21870 * grub-core/commands/echo.c: Likewise.
21871 * grub-core/commands/extcmd.c: Likewise.
21872 * grub-core/commands/hashsum.c: Likewise.
21873 * grub-core/commands/hdparm.c: Likewise.
21874 * grub-core/commands/help.c: Likewise.
21875 * grub-core/commands/hexdump.c: Likewise.
21876 * grub-core/commands/i386/cpuid.c: Likewise.
21877 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21878 * grub-core/commands/i386/pc/halt.c: Likewise.
21879 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21880 * grub-core/commands/iorw.c: Likewise.
21881 * grub-core/commands/keystatus.c: Likewise.
21882 * grub-core/commands/loadenv.c: Likewise.
21883 * grub-core/commands/ls.c: Likewise.
21884 * grub-core/commands/lspci.c: Likewise.
21885 * grub-core/commands/memrw.c: Likewise.
21886 * grub-core/commands/probe.c: Likewise.
21887 * grub-core/commands/search_wrap.c: Likewise.
21888 * grub-core/commands/setpci.c: Likewise.
21889 * grub-core/commands/sleep.c: Likewise.
21890 * grub-core/disk/loopback.c: Likewise.
21891 * grub-core/hello/hello.c: Likewise.
21892 * grub-core/loader/i386/bsd.c: Likewise.
21893 * grub-core/loader/xnu.c: Likewise.
21894 * grub-core/term/gfxterm.c: Likewise.
21895 * grub-core/term/serial.c: Likewise.
21896 * grub-core/tests/lib/functional_test.c: Likewise.
21897
888d1500
BC
218982010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21899
21900 Multi-line quoted strings support.
21901
21902 * grub-core/script/lexer.c (append_newline): Removed.
21903 (grub_script_lexer_yywrap): Refactored.
21904 (grub_script_lexer_init): Refactored.
21905 * grub-core/script/yylex.l (yywrap): New function.
21906 (grub_lexer_resplit): New function.
21907 (grub_lexer_unput): New function.
21908 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21909 and resplit.
21910 * tests/grub_script_echo1.in: Added few more testcases.
21911
dda060dd
VS
219122010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21913
21914 * grub-core/kern/misc.c: Don't add abort alias in utils.
21915 Reported by: echoline.
21916
6556eba9
BC
219172010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21918
21919 Add missing files into "make dist" tarball for other platforms.
21920
21921 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21922 * conf/Makefile.common (dist_noinst_DATA): New variable.
21923 * conf/Makefile.extra-dist: Added missing make dist files.
21924 * grub-core/Makefile.core.def: Likewise.
21925
c8e7bf5f
VS
219262010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21927
21928 Compress grub_prefix.
21929
21930 * grub-core/boot/i386/pc/lnxboot.S: Use
21931 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21932 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21933 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21934 GRUB_MACHINE_PREFIX_END. All users updated.
21935 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21936 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21937 + 0x40.
21938 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21939 * util/grub-mkimage.c (image_target_desc): Change data_end to
21940 prefix_end. All users updated.
21941
a7c00cdb
VS
219422010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21943
21944 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21945 value.
21946 (grub_openbsd_boot): Likewise.
21947 (grub_netbsd_boot): Likewise.
21948 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21949 (grub_xnu_boot): Likewise.
21950
9f915872
VS
219512010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21952
21953 * configure.ac: Clean LIBS variable after tests.
21954
efa1bee7
CW
219552010-09-02 Colin Watson <cjwatson@ubuntu.com>
21956
21957 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21958
61d720e5
VS
219592010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21960
21961 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21962 echo if libdevmapper will be used.
21963
ef8e0ec8
IT
219642010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21965
21966 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21967 constant for the same file.
21968
03e261d8
VS
219692010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21970
21971 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21972
c2a4eba6
CW
219732010-09-02 Colin Watson <cjwatson@ubuntu.com>
21974
21975 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21976 grub-core/*.pp.
21977
9056cbf3
CW
219782010-09-02 Colin Watson <cjwatson@ubuntu.com>
21979
21980 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21981 required by the boot protocol.
21982
21983 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21984 ebp and edi members.
21985 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21986 state.ebp and state.edi.
21987 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21988 %ebp and %edi according to grub_relocator32_ebp and
21989 grub_relocator32_edi respectively.
21990 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21991 and state.edi.
21992
529cc99a
VS
219932010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21994
21995 Add i386-pc-pxe image target.
21996
21997 * util/grub-mkimage.c (image_target_desc): New enum value
21998 IMAGE_I386_PC_PXE.
21999 (image_targets): New target i386-pc-pxe.
22000 (generate_image): Handle i386-pc-pxe image.
22001
9a093920
VS
220022010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
22003
22004 Fix grub_pxe_scan.
22005
22006 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
22007 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
22008 All users updated.
22009 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
22010 (grub_pxe_pxenv): Correct type.
22011
f9cefc4e
CW
220122010-09-01 Colin Watson <cjwatson@ubuntu.com>
22013
22014 * NEWS: Document most of the important changes since 1.98.
22015
4066f57f
CW
220162010-09-01 Colin Watson <cjwatson@ubuntu.com>
22017
22018 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
22019 generated manual page) a little.
22020
da2891f9
CW
220212010-09-01 Colin Watson <cjwatson@ubuntu.com>
22022
22023 * docs/grub.texi: Add myself as an author.
22024
ad717fae
VS
220252010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
22026
22027 * Makefile.util.def (libgrub.a): Add missing sunpc.
22028 Reported by: Seth Goldberg.
22029
eefe8abd
VS
220302010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22031
22032 Interrupt wrapping and code simplifications.
22033
9494ef9a
VS
22034 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
22035 x86_noieee1275 which are functionaly equivalent in this case.
22036 (grub-install): Make source on each platform explicit. Enable on
22037 all noemu.
22038 * gentpl.py (x86_efi_pc): Removed group.
22039 (x86_noefi): Likewise.
22040 (i386_noefi): Likewise.
22041 (x86_noieee1275): Likewise.
22042 (i386_noieee1275): Likewise.
22043 (i386_noefi_noieee1275): Likewise.
22044 (i386_pc_qemu_coreboot): Likewise.
22045 (i386_coreboot_multiboot): Likewise.
22046 (i386_pc_coreboot_multiboot_qemu): Likewise.
22047 (x86_noefi_mips): Likewise.
22048 (noieee1275): Likewise.
22049 (ieee1275_mips): Likewise.
22050 (noemu_noieee1275): Likewise.
22051 (cmos): New group.
22052 (usb): Likewise.
22053 (videoinkernel): Likewise.
22054 (videomodules): Likewise.
eefe8abd 22055 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
22056 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
22057 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
22058 include/grub/loader.h, include/grub/msdos_partition.h,
22059 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
22060 include/grub/machine/console.h, include/grub/machine/vga.h,
22061 include/grub/machine/vbe.h, include/grub/machine/init.h,
22062 include/grub/machine/kernel.h, include/grub/cpu/time.h,
22063 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 22064 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
22065 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
22066 * grub-core/Makefile.core.def (kernel): Explicit the source for
22067 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
22068 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
22069 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
22070 Use videoinkernel tag.
22071 (usb): Enable on all usb.
22072 (usbserial_common): Likewise.
22073 (usbserial_pl2303): Likewise.
22074 (usbserial_ftdi): Likewise.
22075 (uhci): Enable on all x86.
22076 (ohci): Enable on all pci.
22077 (cmostest): Enable on all CMOS.
22078 (acpi): Include commands/acpi.c on all platforms.
22079 (halt): Add relevant lib/*/halt.c.
22080 (hdparm): Enable on all pci.
22081 (lspci): Likewise.
22082 (usbtest): Enable on all usb.
22083 (ata): Enable on all pci.
22084 (ata_pthru): Likewise.
22085 (usbms): Enable on all usb.
22086 (usb_keyboard): Likewise.
22087 (font): Use tag videomodules.
22088 (bufio): Likewise.
22089 (datetime): Use tag cmos. Enable on all noemu.
22090 (mmap): Use tags common and x86.
22091 (gfxterm): Use tag videomodules.
22092 (bitmap): Likewise.
22093 (bitmap_scale): Likewise.
22094 (video_fb): Likewise.
22095 (video): Likewise.
22096 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
22097 adjust padding accordingly. All users updated.
22098 (grub_ohci_transaction): Fix bad format specification.
22099 (GRUB_MOD_INIT): Add asserts for struct size.
22100 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
22101 (grub_alloc_td): Likewise.
22102 (grub_free_queue): Likewise.
22103 (grub_uhci_transfer): Likewise.
22104 (grub_uhci_transaction): Fix bad format specification.
22105 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22106 (grub_usb_bulk_readwrite): Likewise.
22107 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
22108 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
22109 Made static.
22110 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
22111 Made static.
22112 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
22113 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
22114 Transformed into C.
22115 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
22116 Moved from here ...
22117 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
22118 ... here. Transformed into C. Made static.
22119 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
22120 Moved from here ...
22121 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
22122 ... here. Transformed into C. Made static.
22123 * grub-core/kern/i386/pc/startup.S
22124 (grub_biosdisk_check_int13_extensions): Moved from here ...
22125 * grub-core/disk/i386/pc/biosdisk.c
22126 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
22127 Made static.
22128 * grub-core/kern/i386/pc/startup.S
22129 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
22130 * grub-core/disk/i386/pc/biosdisk.c
22131 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
22132 Transformed into C. Made static.
22133 * grub-core/kern/i386/pc/startup.S
22134 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
22135 * grub-core/disk/i386/pc/biosdisk.c
22136 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
22137 Transformed into C. Made static.
22138 * grub-core/kern/i386/pc/startup.S
22139 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
22140 * grub-core/disk/i386/pc/biosdisk.c
22141 (grub_biosdisk_get_diskinfo_standard): ... here.
22142 Transformed into C. Made static.
22143 * grub-core/kern/i386/pc/startup.S
22144 (grub_biosdisk_get_num_floppies): Moved from here ...
22145 * grub-core/disk/i386/pc/biosdisk.c
22146 (grub_biosdisk_get_num_floppies): ... here.
22147 Transformed into C. Made static.
22148 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
22149 New function.
22150 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
22151 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
22152 Transformed into C. Made static.
22153 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
22154 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
22155 Transformed into C. Made static.
22156 * grub-core/kern/i386/ieee1275/init.c: Removed.
22157 * grub-core/kern/i386/misc.S: Likewise.
22158 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
22159 Splitted from here ...
22160 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
22161 Transformed into C. Made static. All users updated.
22162 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
22163 Transformed into C. Made static. All users updated.
22164 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
22165 Moved from here...
22166 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
22167 Transformed into C. Made static. All users updated.
22168 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
22169 Moved from here...
22170 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
22171 Transformed into C. Made static. All users updated.
22172 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
22173 Removed (replaced by C version).
22174 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
22175 Moved from here...
22176 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
22177 Transformed into C. Made static.
22178 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
22179 Moved from here...
22180 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
22181 ... here. Transformed into C.
22182 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
22183 Moved from here...
22184 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
22185 ... here. Transformed into C.
22186 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
22187 Moved from here...
22188 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
22189 ... here. Transformed into C. Made static.
22190 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
22191 Moved from here...
22192 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
22193 ... here. Transformed into C.
21ed554b
VS
22194 * grub-core/kern/i386/pc/startup.S
22195 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
22196 * grub-core/video/i386/pc/vbe.c
22197 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
22198 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
22199 Moved from here...
22200 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
22201 ... here. Transformed into C.
22202 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
22203 Moved from here...
22204 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
22205 ... here. Transformed into C.
22206 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
22207 Moved from here...
22208 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
22209 ... here. Transformed into C.
22210 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
22211 Moved from here...
22212 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
22213 ... here. Transformed into C.
22214 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
22215 Moved from here...
22216 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
22217 ... here. Transformed into C. Made static.
22218 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
22219 Moved from here...
22220 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
22221 ... here. Transformed into C. Made static.
22222 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
22223 Moved from here...
22224 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
22225 ... here. Transformed into C. Made static.
22226 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
22227 pxe_rm_entry as third argument.
22228 (grub_bios_interrupt): New function.
22229 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
22230 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
22231 of calling grub_stop.
22232 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
22233 * grub-core/lib/efi/halt.c (grub_halt): ...here.
22234 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
22235 * grub-core/lib/emu/halt.c (grub_halt): ... here.
22236 * grub-core/lib/i386/halt.c: Moved from here ...
22237 * grub-core/lib/i386/halt.c: ... here.
22238 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
22239 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
22240 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
22241 grub_stop_floppy.
22242 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
22243 * include/grub/i386/coreboot/init.h: Removed.
22244 * include/grub/i386/multiboot/init.h: Likewise.
22245 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
22246 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
22247 * include/grub/i386/pc/int.h: New file.
22248 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
22249 (grub_pxe_scan): Removed.
22250 (grub_pxe_call): Update prototype.
22251 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
22252 prototypes.
22253 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
22254 * include/grub/i386/qemu/init.h: Removed.
22255 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
22256 noreturn.
22257 (grub_halt): Likewise.
22258 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
22259 (grub_reboot): Likewise.
22260 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
22261 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
22262 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
22263
215dd471
RM
222642010-08-30 Robert Millan <rmh@gnu.org>
22265
22266 * NEWS: Document addition of ZFS support in `grub-install' and
22267 `grub-mkconfig'.
22268
ebd65b82
BC
222692010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
22270
22271 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
22272 dprintf output.
22273
11721d19
VS
222742010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 Remove leftover embedding of font objects.
22277
22278 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
22279 * util/grub-install.in (font): Removed.
22280 * util/grub-mkimage.c (generate_image): Remove font support. All users
22281 updated.
22282
37837d4e
VS
222832010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22284
22285 Remove leftover embedding of font objects.
22286
22287 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
22288 * util/grub-install.in (font): Removed.
22289 * util/grub-mkimage.c (generate_image): Remove font support. All users
22290 updated.
22291
b4c1aae0
VS
222922010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22293
22294 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 22295 Reported by: Ian Turner
b4c1aae0 22296
8920a08d
VS
222972010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22298
22299 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
22300 timeout to avoid indefinite boot stalling.
22301
f21db033
VS
223022010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22303
22304 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
22305 (grub_env_write_color_highlight): Likewise.
22306
9a9de209
VS
223072010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22308
22309 * grub-core/normal/term.c (print_more): Return to normal and not
22310 to standard state after printing "---MORE---".
22311
3dca01d7
VS
223122010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22313
22314 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
22315 Mask out the bit 0x80 since it has other meaning that specifiing color.
22316
0b986c40
VS
223172010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22318
22319 New relocator. Allows for more kernel support and more straightforward
22320 loader writing.
22321
22322 * Makefile.am (BOOTTARGET): New variable.
22323 (QEMU32): Likewise.
22324 (linux.init.x86_64): New target.
22325 (linux.init.i386): Likewise.
22326 (multiboot.elf): Likewise.
22327 (kfreebsd.elf): Likewise.
22328 (kfreebsd.aout): Likewise.
22329 (pc-chainloader.elf): Likewise.
22330 (pc-chainloader.bin): Likewise.
22331 (ntldr.elf): Likewise.
22332 (ntldr.bin): Likewise.
22333 (multiboot2.elf): Likewise.
22334 (kfreebsd.init.x86_64): Likewise.
22335 (kfreebsd.init.i386): Likewise.
22336 (knetbsd.init.i386): Likewise.
22337 (kopenbsd.init.i386): Likewise.
22338 (knetbsd.init.x86_64): Likewise.
22339 (kopenbsd.init.x86_64): Likewise.
22340 (linux-initramfs.i386): Likewise.
22341 (linux-initramfs.x86_64): Likewise.
22342 (kfreebsd-mfsroot.i386.img): Likewise.
22343 (knetbsd.image.i386): Likewise.
22344 (kopenbsd.image.i386): Likewise.
22345 (kopenbsd.image.x86_64): Likewise.
22346 (knetbsd.miniroot-image.i386.img): Likewise.
22347 (kfreebsd-mfsroot.x86_64.img): Likewise.
22348 (knetbsd.image.x86_64): Likewise.
22349 (knetbsd.miniroot-image.x86_64.img): Likewise.
22350 (kfreebsd-mfsroot.i386.gz): Likewise.
22351 (bootcheck-kfreebsd-i386): Likewise.
22352 (kfreebsd-mfsroot.x86_64.gz): Likewise.
22353 (bootcheck-kfreebsd-x86_64): Likewise.
22354 (knetbsd.miniroot-image.i386.gz): Likewise.
22355 (bootcheck-knetbsd-i386): Likewise.
22356 (bootcheck-kopenbsd-i386): Likewise.
22357 (bootcheck-kopenbsd-x86_64): Likewise.
22358 (knetbsd.miniroot-image.x86_64.gz): Likewise.
22359 (bootcheck-knetbsd-x86_64): Likewise.
22360 (bootcheck-linux-i386): Likewise.
22361 (bootcheck-linux-x86_64): Likewise.
22362 (bootcheck-linux16-i386): Likewise.
22363 (bootcheck-linux16-x86_64): Likewise.
22364 (bootcheck-multiboot): Likewise.
22365 (bootcheck-multiboot2): Likewise.
22366 (bootcheck-kfreebsd-aout): Likewise.
22367 (bootcheck-pc-chainloader): Likewise.
22368 (bootcheck-ntldr): Likewise.
22369 (CLEANFILES): Add new targets.
22370 (BOOTCHECKS): New variable.
22371 (.PHONY): Add bootchecks.
22372 (SUCCESSFUL_BOOT_STRING): New variable.
22373 (BOOTCHECK_TIMEOUT): Likewise.
22374 (bootcheck): New target
22375 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
22376 * configure.ac: Correct efiemu excuse.
22377 * docs/grub.texi (Supported kernels): New chapter.
22378 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
22379 include/grub/mm_private.h. Simplify inclusion of
22380 include/grub/boot.h, include/grub/loader.h
22381 and include/grub/msdos_partition.h
22382 (KERNEL_HEADER_FILES) [i386_coreboot]:
22383 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
22384 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
22385 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
22386 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
22387 include/grub/machine/loader.h.
22388 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
22389 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
22390 extra_dist.
22391 (pci.mod): Enable on i386-multiboot.
22392 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
22393 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
22394 i386-qemu.
22395 (relocator.mod): Rewritten.
22396 (aout.mod): Enable on all x86.
22397 (bsd.mod): Likewise.
22398 (ntldr.mod): New module.
22399 (linux.mod): Use loader/i386/linux.c on all x86.
22400 (xnu.mod): Enable on all x86.
22401 (vga_text.mod): disable on EFI and QEMU.
22402 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
22403 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
22404 * grub-core/efiemu/loadcore.c: Likewise.
22405 * grub-core/efiemu/main.c: Likewise.
22406 (grub_efiemu_exit_boot_services): Removed.
22407 (grub_efiemu_finish_boot_services): Likewise.
22408 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
22409 function.
22410 * grub-core/efiemu/i386/nocfgtables.c: New file.
22411 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
22412 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
22413 (grub_efi_finish_boot_services): Moved from here ...
22414 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
22415 Fille finish memory map and related data.
22416 (finish_mmap_buf): New variable.
22417 (grub_efi_uintn_t finish_mmap_size): Likewise.
22418 (grub_efi_uintn_t finish_key): Likewise.
22419 (grub_efi_uintn_t finish_desc_size): Likewise.
22420 (grub_efi_uint32_t finish_desc_version): Likewise.
22421 (grub_efi_is_finished): Likewise.
22422 (grub_efi_get_memory_map): Use saved memory map if EFI is already
22423 finished.
22424 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
22425 (grub_elf64_phdr_iterate): Likewise.
22426 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
22427 (grub_os_area_size): Likewise.
22428 (grub_machine_init): Don't reserve os area.
22429 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
22430 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
22431 * grub-core/kern/i386/loader.S: Removed.
22432 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
22433 (grub_os_area_size): Likewise.
22434 (grub_machine_init): Don't reserve os area.
22435 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
22436 Don't call grub_dl_unload_all.
22437 Don't include loader.S.
22438 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
22439 Declare the memory after _end as available.
22440 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 22441 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 22442 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
22443 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
22444 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
22445 * include/grub/mm_private.h (grub_mm_header): ... here.
22446 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
22447 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
22448 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
22449 (grub_mm_region): ..here. Removed addr. Added pre_size.
22450 All users updated.
22451 * grub-core/kern/mm.c (base): Renamed to ...
22452 (grub_mm_base): ... this. Made global.
22453 (grub_real_malloc): Alloc from end of region.
22454 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
22455 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
22456 * grub-core/kern/powerpc/cache_flush.S: ... here.
22457 * grub-core/lib/efi/relocator.c: New file.
22458 * grub-core/lib/i386/relocator.c: Rewritten.
22459 * grub-core/lib/i386/relocator16.S: New file.
22460 * grub-core/lib/i386/relocator32.S: Likewise.
22461 * grub-core/lib/i386/relocator64.S: Likewise.
22462 * grub-core/lib/i386/relocator_asm.S: Rewritten.
22463 * grub-core/lib/i386/relocator_common.S: New file.
22464 * grub-core/lib/ieee1275/relocator.c: Likewise.
22465 * grub-core/lib/mips/relocator.c: Rewritten.
22466 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
22467 stylistic adjustments.
22468 * grub-core/lib/powerpc/relocator.c: New file.
22469 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
22470 * grub-core/lib/relocator.c: Rewritten.
22471 * grub-core/lib/x86_64/relocator_asm.S: New file.
22472 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
22473 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
22474 (bsd_tag): New struct.
22475 (tags): New variable.
22476 (tags_last): Likewise.
22477 (netbsd_module): New struct.
22478 (netbsd_mods): New variable.
22479 (netbsd_mods_last): Likewise.
22480 (openbsd_opts): New parameter "serial".
22481 (OPENBSD_SERIAL_ARG): New definition.
22482 (netbsd_opts): New parameter "serial".
22483 (NETBSD_SERIAL_ARG): New definition.
22484 (grub_freebsd_add_meta): Reorganised into ...
22485 (grub_bsd_add_meta): ...this. All users updated.
22486 (grub_freebsd_add_mmap): Reorganised into ...
22487 (generate_e820_mmap): ...this...
22488 (grub_bsd_add_mmap): ...and this. All users updated.
22489 (grub_freebsd_list_modules): Use tags.
22490 (grub_netbsd_add_meta_module): New function.
22491 (grub_netbsd_list_modules): Likewise.
22492 (grub_freebsd_boot): Use relocator and finish EFI.
22493 (grub_openbsd_boot): Likewise.
22494 (grub_netbsd_setup_video): New function.
22495 (grub_netbsd_add_modules): Likewise.
22496 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
22497 and finish EFI.
22498 (grub_bsd_unload): Unload tags.
22499 (grub_bsd_load_aout): Use relocator.
22500 (grub_bsd_elf32_size_hook): New function.
22501 (grub_bsd_elf32_hook): Use relocator.
22502 (grub_bsd_elf64_size_hook): New function.
22503 (grub_bsd_elf64_hook): Use relocator.
22504 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
22505 (grub_bsd_load): Zero-out openbsd_ramdisk.
22506 (grub_bsd_load): Use relocator.
22507 (grub_cmd_openbsd): Support serial.
22508 (grub_cmd_netbsd): Support modules.
22509 (grub_cmd_freebsd_module): Use relocator.
22510 (grub_netbsd_module_load): New function.
22511 (grub_cmd_netbsd_module): Likewise.
22512 (grub_cmd_openbsd_ramdisk): Likewise.
22513 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
22514 kopenbsd_ramdisk.
22515 (GRUB_MOD_FINI): Unregister new commands.
22516 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
22517 (grub_freebsd_load_elfmodule_obj): Use relocator.
22518 (grub_freebsd_load_elfmodule): Likewise.
22519 (grub_freebsd_load_elf_meta): Likewise.
22520 (grub_netbsd_load_elf_meta): New function.
22521 (grub_openbsd_find_ramdisk): Likewise.
22522 * grub-core/loader/i386/bsd_helper.S: Removed.
22523 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
22524 * grub-core/loader/i386/bsd_trampoline.S: Removed.
22525 * grub-core/loader/i386/efi/linux.c: Likewise.
22526 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
22527 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
22528 (DEFAULT_VIDEO_MODE): Likewise.
22529 (real_mode_target): New variable.
22530 (prot_mode_target): Likewise.
22531 (initrd_mem_target): Likewise.
22532 (relocator): Likewise.
22533 (efi_mmap_buf): Likewise.
22534 (efi_mmap_size): Likewise.
22535 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
22536 (free_pages): Use relocator.
22537 (allocate_pages): Account for efi_mmap and use relocator. Return error.
22538 (grub_linux_setup_video): Return error.
22539 (grub_linux_trampoline_start): Removed.
22540 (grub_linux_trampoline_end): Likewise.
22541 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
22542 andd video parameters depending on firmware.
22543 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
22544 [GRUB_MACHINE_EFI]: Pass EFI parameters.
22545 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
22546 (grub_cmd_initrd): Use relocator.
22547 * grub-core/loader/i386/linux_trampoline.S: Removed.
22548 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
22549 (elf_sec_entsize): Likewise.
22550 (elf_sec_shstrndx): Likewise.
22551 (elf_sections): Likewise.
22552 (grub_multiboot_load): Use relocator.
22553 (grub_multiboot_get_mbi_size): Account for sections.
22554 (grub_multiboot_make_mbi): Use relocator and support sections.
22555 (grub_multiboot_add_elfsyms): New function.
22556 (grub_multiboot_free_mbi): Free sections.
22557 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
22558 (grub_linux_real_target): Likewise.
22559 (grub_linux_real_chunk): Likewise.
22560 (grub_linux16_prot_size): Likewise.
22561 (grub_linux16_boot): Use relocator.
22562 (grub_linux_unload): Unload relocator.
22563 (grub_cmd_linux): Use relocator.
22564 (grub_cmd_initrd): Likewise.
22565 * grub-core/loader/i386/pc/ntldr.c: New file.
22566 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
22567 Don't try to guess CPU frequency.
22568 (grub_xnu_set_video): Stretch bitmap.
22569 (grub_xnu_boot): Use relocator.
22570 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
22571 (grub_linux_unload): Free relocator.
22572 (grub_linux_load32): Use relocator.
22573 (grub_linux_load64): Likewise.
22574 (grub_cmd_initrd): Likewise.
22575 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
22576 (grub_multiboot_unload): Unload relocator.
22577 (grub_cmd_multiboot): Use relocator.
22578 (grub_cmd_module): Likewise.
22579 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
22580 Use relocator and support sections.
22581 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
22582 (elf_sec_entsize): Likewise.
22583 (elf_sec_shstrndx): Likewise.
22584 (elf_sections): Likewise.
22585 (grub_multiboot_load): Use relocator.
22586 (grub_multiboot_get_mbi_size): Account for sections.
22587 (grub_multiboot_make_mbi): Use relocator and support sections.
22588 (grub_multiboot_add_elfsyms): New function.
22589 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
22590 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
22591 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
22592 Prototype changed. All users updated.
22593 (grub_xnu_align_heap): Simplified.
22594 (grub_xnu_writetree_toheap): Likewise.
22595 (grub_xnu_unload): Unload relocator.
22596 (grub_cmd_xnu_kernel): Use relocator.
22597 (grub_cmd_xnu_kernel64): Likewise.
22598 (grub_xnu_register_memory): Simplified.
22599 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
22600 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
22601 EFI is finished.
22602 (grub_console_checkkey): Likewise.
22603 (grub_console_getkey): Likewise.
22604 (grub_console_getwh): Likewise.
22605 (grub_console_getxy): Likewise.
22606 (grub_console_gotoxy): Likewise.
22607 (grub_console_cls): Likewise.
22608 (grub_console_setcolorstate): Likewise.
22609 (grub_console_setcursor): Likewise.
22610 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
22611 * grub-core/tests/boot/kbsd.init-i386.S: New file.
22612 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
22613 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
22614 * grub-core/tests/boot/kernel-8086.S: Likewise.
22615 * grub-core/tests/boot/kernel-i386.S: Likewise.
22616 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
22617 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
22618 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
22619 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
22620 * grub-core/tests/boot/knetbsd.cfg: Likewise.
22621 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
22622 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
22623 * grub-core/tests/boot/linux.cfg: Likewise.
22624 * grub-core/tests/boot/linux.init-i386.S: Likewise.
22625 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
22626 * grub-core/tests/boot/linux16.cfg: Likewise.
22627 * grub-core/tests/boot/multiboot.cfg: Likewise.
22628 * grub-core/tests/boot/multiboot2.cfg: Likewise.
22629 * grub-core/tests/boot/ntldr.cfg: Likewise.
22630 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
22631 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
22632 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
22633 New definition.
22634 * include/grub/dl.h (grub_dl_unload_all): Removed.
22635 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
22636 (grub_efi_finish_boot_services): Change prototype.
22637 (grub_efi_is_finished): New variable.
22638 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
22639 Changed prototype.
22640 (grub_efiemu_finish_boot_services): Removed.
22641 (grub_machine_efiemu_init_tables): New prototype.
22642 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
22643 (grub_elf64_phdr_iterate): Likewise.
22644 * include/grub/i386/bsd.h: Include relocator.h.
22645 (freebsd_tag_header): New struct.
22646 (grub_openbsd_bios_mmap): Removed.
22647 (grub_unix_real_boot): Removed.
22648 (grub_freebsd_load_elfmodule32): Changed prototype.
22649 (grub_freebsd_load_elfmodule_obj64): Likewise.
22650 (grub_freebsd_load_elf_meta32): Likewise.
22651 (grub_freebsd_load_elf_meta64): Likewise.
22652 (grub_freebsd_add_meta): Removed.
22653 (grub_netbsd_load_elf_meta32): New prototype.
22654 (grub_netbsd_load_elf_meta64): Likewise.
22655 (grub_bsd_add_meta): Likewise.
22656 (grub_openbsd_ramdisk_descriptor): New struct.
22657 (grub_openbsd_find_ramdisk32): New prototype.
22658 (grub_openbsd_find_ramdisk64): Likewise.
22659 * include/grub/i386/coreboot/loader.h: Removed.
22660 * include/grub/i386/efi/loader.h: Likewise.
22661 * include/grub/i386/ieee1275/loader.h: Likewise.
22662 * include/grub/i386/linux.h (linux_kernel_header): Change void *
22663 to grub_uint32_t.
22664 * include/grub/i386/loader.h: Removed.
22665 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
22666 value.
22667 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
22668 (grub_phys_addr_t): New type.
22669 (grub_vtop): New inline function.
22670 (grub_map_memory): Likewise.
22671 (grub_unmap_memory): Likewise.
22672 * include/grub/i386/multiboot/loader.h: Removed.
22673 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
22674 (NETBSD_BTINFO_CONSOLE): New definition.
22675 (NETBSD_BTINFO_SYMTAB): Likewise.
22676 (NETBSD_BTINFO_MODULES): Likewise.
22677 (NETBSD_BTINFO_FRAMEBUF): Likewise.
22678 (grub_netbsd_bootinfo): New struct.
22679 (grub_netbsd_btinfo_common): Use explicit bitsize.
22680 (grub_netbsd_btinfo_mmap_entry): Removed.
22681 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
22682 (grub_netbsd_btinfo_bootdisk): New struct.
22683 (grub_netbsd_btinfo_symtab): Likewise.
22684 (grub_netbsd_btinfo_serial): Likewise.
22685 (grub_netbsd_btinfo_modules): Likewise.
22686 (grub_netbsd_btinfo_framebuf): Likewise.
22687 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
22688 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
22689 Likewise.
22690 (grub_openbsd_bootargs): Use explicit bitsize.
22691 (grub_openbsd_bootarg_console): New struct.
22692 (GRUB_OPENBSD_COM_MAJOR): New definition.
22693 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
22694 * include/grub/i386/pc/efiemu.h: Removed.
22695 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
22696 * include/grub/i386/qemu/loader.h: Removed.
22697 * include/grub/i386/relocator.h: Rewritten.
22698 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
22699 * include/grub/mips/memory.h: New file.
22700 * include/grub/mips/multiboot.h: Rewritten.
22701 * include/grub/mips/relocator.h: Rewritten.
22702 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
22703 (grub_vtop): New function.
22704 (grub_map_memory): Likewise.
22705 (grub_unmap_memory): Likewise.
22706 * include/grub/misc.h (ALIGN_DOWN): New definition.
22707 * include/grub/mm.h (grub_mm_check_real): New proto.
22708 (GRUB_MM_CHECK): New definition.
22709 * include/grub/mm_private.h: New file.
22710 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
22711 (grub_multiboot_get_mbi_size): Removed.
22712 (grub_multiboot_make_mbi): Change prottype.
22713 (grub_multiboot_set_accepts_video): New proto.
22714 (grub_multiboot_add_elfsyms): Likewise.
22715 (grub_multiboot_payload_eip): New variable.
22716 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
22717 New prototype.
22718 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
22719 New definition.
22720 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
22721 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
22722 * include/grub/powerpc/ieee1275/loader.h: Removed.
22723 * include/grub/powerpc/memory.h: New file.
22724 * include/grub/powerpc/relocator.h: Likewise.
22725 * include/grub/relocator.h: Likewise.
22726 * include/grub/relocator_private.h: Likewise.
22727 * include/grub/sparc64/ieee1275/loader.h: Removed.
22728 * include/grub/x86_64/memory.h: New file.
22729 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
22730 (grub_xnu_heap_malloc): Likewise.
22731 (grub_xnu_heap_real_start): Removed.
22732 (grub_xnu_heap_start): Likewise.
22733 (grub_xnu_relocator): New variable.
22734 (grub_xnu_heap_target_start): Likewise.
22735 * tests/util/grub-shell.in: Support non-pc.
22736 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 22737
5303b85d
VS
227382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22739
22740 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
22741 on malloc error.
22742 (grub_bidi_logical_to_visual): Check that malloc succeded.
22743 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
22744 puts.
22745 (grub_xputs_normal): Likewise.
22746
d768d159
VS
227472010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22748
22749 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
22750 extra_dist.
22751
227522010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22753
22754 * grub-core/efiemu/runtime/efiemu.sh: Removed.
22755
5bf84df4
VS
227562010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
22759
3626810e
VS
227602010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22761
22762 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
22763 dprintf.
22764
a7363f53
BC
227652010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22766
22767 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22768
902f75f6
VS
227692010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22770
22771 * grub-core/normal/term.c (print_more): Fix a memory leak.
22772 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22773 (grub_xputs_normal): Likewise.
22774
3c707967
VS
227752010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22776
22777 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22778 the begining of the string
22779
2053cc07
VS
227802010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * grub-core/script/script.c (grub_script_parse): Free parsed on
22783 failure.
22784
46422ebf
VS
227852010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22788 on failure.
22789
9e0fa3f6
VS
227902010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22793 return.
22794
3393cf16
VS
227952010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22796
22797 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22798 (scroll_up): Fix a memory leak.
22799
b17540cb
VS
228002010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22801
22802 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22803 errors.
22804
67140446
VS
228052010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22806
22807 Handle USB pendrives exposed as floppies.
22808
22809 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22810 floppy.
22811 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22812 Check for partitions on all devices.
22813
e35e46fc
VS
228142010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22815
22816 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22817 (readkey): Likewise.
22818
d24c6190
BC
228192010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22820
22821 Multiple variable names support to "export" command.
22822
22823 * normal/context.c (grub_cmd_export): "export" command supports
22824 multiple variable names.
22825
04ddcc6a
ST
228262010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22827
22828 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22829 --target=drive output to Mach device name.
22830
0c8b61d8
BC
228312010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22832
22833 New Automake based build system for GRUB.
22834
22835 * ABOUT-NLS: New file.
22836 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22837 in Makefile.util.def file.
22838 * Makefile.util.def: New file. Autogen build definitions file for
22839 GRUB host utils.
22840 * conf/Makefile.common: New file. Common variables for GRUB host
22841 utils and target modules.
22842 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22843 * docs/Makefile.am: New file. Automake file for docs.
22844 * gentpl.py: New file. Python script to generate Autogen
22845 template.
22846 * grub-core/Makefile.am: New file. GRUB target modules' rules
22847 that doesn't fit in Makefile.core.def file.
22848 * grub-core/Makefile.core.def: New file. Autogen build
22849 definitions file for GRUB target modules.
22850 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22851 specific setjmp.S file.
22852 * po/Makefile.am: New file.
22853
22854 * .bzrignore: New ignores.
22855 * INSTALL: New requirements, without Ruby.
22856 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22857 * autogen.sh: Updated to invoke autogen as necessary.
22858 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22859 and defines for Automake conditionals.
22860 * geninit.sh: Refactoring.
22861
22862 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22863 necessary.
22864 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22865 New prototype.
22866
22867 * include/grub/test.h: Fix functional test modules' naming.
22868 * grub-core/tests/example_functional_test.c: Fix test module name.
22869
22870 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22871 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22872 * util/grub-editenv.c: Likewise.
22873 * util/grub-fstest.c: Likewise.
22874 * util/grub-mkdevicemap.c: Likewise.
22875 * util/grub-mkfont.c: Likewise.
22876 * util/grub-mkimage.c: Likewise.
22877 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22878 * util/grub-probe.c: Likewise.
22879 * util/grub-script-check.c: Likewise.
22880 * util/i386/pc/grub-setup.c: Likewise.
22881 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22882
22883 * tests/util/grub-shell.in: Fix override directory path.
22884 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22885 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22886
22887 * util/lvm.c: Update #includes.
22888 * util/raid.c: Likewise.
22889 * util/resolve.c: Likewise.
22890 * grub-core/bus/emu/pci.c: Likewise.
22891 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22892 * grub-core/lib/posix_wrap/string.h: Likewise.
22893 * grub-core/kern/emu/main.c: Likewise.
22894
22895 * grub-core/gensymlist.sh: New file. Script for generating kernel
22896 symbols file.
22897 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22898
22899 * grub-core/gentrigtables.c: Fix unused variable warnings.
22900
22901 * Makefile.in: Removed.
22902 * conf/any-emu.rmk: Removed.
22903 * conf/common.rmk: Removed.
22904 * conf/i386-coreboot.rmk: Removed.
22905 * conf/i386-efi.rmk: Removed.
22906 * conf/i386-ieee1275.rmk: Removed.
22907 * conf/i386-multiboot.rmk: Removed.
22908 * conf/i386-pc.rmk: Removed.
22909 * conf/i386-qemu.rmk: Removed.
22910 * conf/i386.rmk: Removed.
22911 * conf/mips-yeeloong.rmk: Removed.
22912 * conf/mips.rmk: Removed.
22913 * conf/powerpc-ieee1275.rmk: Removed.
22914 * conf/sparc64-ieee1275.rmk: Removed.
22915 * conf/tests.rmk: Removed.
22916 * conf/x86-efi.rmk: Removed.
22917 * conf/x86_64-efi.rmk: Removed.
22918 * gendistlist.sh: Removed.
22919 * geninitheader.sh: Removed.
22920 * genkernsyms.sh.in: Removed.
22921 * genmk.rb: Removed.
22922 * gensymlist.sh.in: Removed.
22923 * mkinstalldirs: Removed.
22924 * boot: Moved ...
22925 * grub-core/boot: ... to here.
22926 * bus: Moved ...
22927 * grub-core/bus: ... to here.
22928 * commands: Moved ...
22929 * grub-core/commands: ... to here.
22930 * disk: Moved ...
22931 * grub-core/disk: ... to here.
22932 * efiemu: Moved ...
22933 * grub-core/efiemu: ... to here.
22934 * font: Moved ...
22935 * grub-core/font: ... to here.
22936 * fs: Moved ...
22937 * grub-core/fs: ... to here.
22938 * gencmdlist.sh: Moved ...
22939 * grub-core/gencmdlist.sh: ... to here.
22940 * genemuinit.sh: Moved ...
22941 * grub-core/genemuinit.sh: ... to here.
22942 * genemuinitheader.sh: Moved ...
22943 * grub-core/genemuinitheader.sh: ... to here.
22944 * genfslist.sh: Moved ...
22945 * grub-core/genfslist.sh: ... to here.
22946 * genhandlerlist.sh: Moved ...
22947 * grub-core/genhandlerlist.sh: ... to here.
22948 * genmoddep.awk: Moved ...
22949 * grub-core/genmoddep.awk: ... to here.
22950 * genmodsrc.sh: Moved ...
22951 * grub-core/genmodsrc.sh: ... to here.
22952 * genpartmaplist.sh: Moved ...
22953 * grub-core/genpartmaplist.sh: ... to here.
22954 * genparttoollist.sh: Moved ...
22955 * grub-core/genparttoollist.sh: ... to here.
22956 * genterminallist.sh: Moved ...
22957 * grub-core/genterminallist.sh: ... to here.
22958 * gentrigtables.c: Moved ...
22959 * grub-core/gentrigtables.c: ... to here.
22960 * genvideolist.sh: Moved ...
22961 * grub-core/genvideolist.sh: ... to here.
22962 * gettext: Moved ...
22963 * grub-core/gettext: ... to here.
22964 * gfxmenu: Moved ...
22965 * grub-core/gfxmenu: ... to here.
22966 * gnulib: Moved ...
22967 * grub-core/gnulib: ... to here.
22968 * hello: Moved ...
22969 * grub-core/hello: ... to here.
22970 * hook: Moved ...
22971 * grub-core/hook: ... to here.
22972 * io: Moved ...
22973 * grub-core/io: ... to here.
22974 * kern: Moved ...
22975 * grub-core/kern: ... to here.
22976 * lib: Moved ...
22977 * grub-core/lib: ... to here.
22978 * loader: Moved ...
22979 * grub-core/loader: ... to here.
22980 * mmap: Moved ...
22981 * grub-core/mmap: ... to here.
22982 * normal: Moved ...
22983 * grub-core/normal: ... to here.
22984 * partmap: Moved ...
22985 * grub-core/partmap: ... to here.
22986 * parttool: Moved ...
22987 * grub-core/parttool: ... to here.
22988 * script: Moved ...
22989 * grub-core/script: ... to here.
22990 * term: Moved ...
22991 * grub-core/term: ... to here
22992 * tests/example_functional_test.c: Moved ...
22993 * grub-core/tests/example_functional_test.c: ... to here.
22994 * tests/lib/functional_test.c: Moved ...
22995 * grub-core/tests/lib/functional_test.c: ... to here.
22996 * tests/lib/test.c: Moved ...
22997 * grub-core/tests/lib/test.c: ... to here.
22998 * video: Moved ...
22999 * grub-core/video: ... to here.
23000
645586e6
BC
230012010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
23002
23003 Replace --enable-grub-emu-modules with grub-emu-lite.
23004
23005 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
23006 cache.S.
23007
23008 * include/grub/emu/misc.h (grub_emu_init): New prototype.
23009 * kern/emu/full.c: New file. For grub-emu specific initialization.
23010 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
23011 * kern/emu/main.c: Call initialization function grub_emu_init.
23012
23013 * Makefile.in: Include grub-emu-lite in install.
23014 * commands/parttool.c: Use grub_no_autoload to differentiate
23015 between grub-emu and grub-emu-lite.
23016 * include/grub/misc.h: New variable grub_no_autoload.
23017
23018 * conf/any-emu.rmk: New rules for grub-emu-lite.
23019 * configure.ac: Remove --enable-grub-emu-modules.
23020 * genmk.rb: Cleanup unnecessary rules.
23021 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
23022
23023 * normal/main.c: Don't load list files on grub-emu-lite.
23024 * util/misc.c (grub_arch_sync_caches): Removed.
23025
f86a4030
CW
230262010-08-23 Colin Watson <cjwatson@ubuntu.com>
23027
23028 * kern/mips/startup.S (grub_prefix): Update comment to refer to
23029 grub-mkimage rather than grub-mkelfimage.
23030 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
23031
06776944
VS
230322010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23033
23034 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
23035 a key after CapsLock or NumLock. It's just a qemu bug.
23036
df262419
VS
230372010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
23038
23039 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
23040 needed by libusb wrapper.
23041
b40ea81b
ST
230422010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
23043
23044 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
23045
dee50575
VS
230462010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
23047
23048 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
23049 --nounzip is passed.
23050
fb1d7b79
VS
230512010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
23052
23053 USB hotunplugging and USB serial support.
23054
23055 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
23056 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
23057 (grub_uhci_transfer): Respect timeout and set *actual.
23058 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
23059 non-standard length.
23060 (grub_usb_device_attach): Autoload modules.
23061 (GRUB_MOD_INIT): Set grub_term_poll_usb.
23062 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
23063 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
23064 users updated.
23065 (grub_usb_add_hub): Fill nports and children.
23066 (attach_root_port): Receive hub instead of controller.
23067 All users updated. Fill hub->devices.
23068 (grub_usb_root_hub): Allocate hub->devices.
23069 (detach_device): New function.
23070 (poll_nonroot_hub): Fill children and detach devices.
23071 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
23072 actual arguments. All users updated.
23073 (grub_usb_bulk_read_extended): New function.
23074 * bus/usb/serial/common.c: New file.
23075 * bus/usb/serial/ftdi.c: Likewise.
23076 * bus/usb/serial/pl2303.c: Likewise.
23077 * commands/terminal.c (handle_command): Support wildcard.
23078 * commands/usbtest.c: Output "Unknown" instead of empty string.
23079 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
23080 (usbserial_common_mod_SOURCES): New variable.
23081 (usbserial_common_mod_CFLAGS): Likewise.
23082 (usbserial_common_mod_LDFLAGS): Likewise.
23083 (pkglib_MODULES): Add usbserial_pl2303.mod.
23084 (usbserial_pl2303_mod_SOURCES): New variable.
23085 (usbserial_pl2303_mod_CFLAGS): Likewise.
23086 (usbserial_pl2303_mod_LDFLAGS): Likewise.
23087 (pkglib_MODULES): Add usbserial_ftdi.mod.
23088 (usbserial_ftdi_mod_SOURCES): New variable.
23089 (usbserial_ftdi_mod_CFLAGS): Likewise.
23090 (usbserial_ftdi_mod_LDFLAGS): Likewise.
23091 (pkglib_MODULES): Add serial.mod.
23092 (serial_mod_SOURCES): New variable.
23093 (serial_mod_CFLAGS): Likewise.
23094 (serial_mod_LDFLAGS): Likewise.
23095 * conf/i386-pc.rmk: Likewise.
23096 * conf/mips-yeeloong.rmk: Likewise.
23097 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
23098 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23099 * disk/usbms.c (first_available_slot): New variable.
23100 (grub_usbms_attach): Don't reuse free slots due to potential cache
23101 problems.
23102 * include/grub/serial.h: Moved to ..
23103 * include/grub/ns8250.h: ...this.
23104 * include/grub/serial.h: New file.
23105 * include/grub/term.h (grub_term_poll_usb): New variable.
23106 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
23107 readkey. All users updated.
23108 (grub_terminfo_output_state): Pass term to put.
23109 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
23110 (grub_usb_controller_dev): Add timeout and actual arguments to
23111 transfer. All users updated.
23112 (grub_usb_interface): New field detach_data.
23113 (grub_usb_device): New fields children and nports.
23114 (grub_usb_ep_type_t): New type.
23115 (grub_usb_get_ep_type): New function.
23116 (grub_usb_bulk_read_extended): Likewise.
23117 * include/grub/usbdesc.h (grub_usb_desc): New type.
23118 * include/grub/usbserial.h: New file.
23119 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
23120 * kern/term.c (grub_term_poll_usb): New variable.
23121 (grub_getkey): Call grub_term_poll_usb if set.
23122 (grub_checkkey): Likewise.
23123 (grub_getkeystatus): Likewise.
23124 * term/serial.c: Moved controller-specific parts to ...
23125 * term/ns8250.c: ... here.
23126 * term/serial.c: Mostly rewritten.
23127 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
23128 according to spec.
23129
21a313de
RM
231302010-08-20 Robert Millan <rmh@gnu.org>
23131
23132 Make kFreeBSD code more generic to support ext2fs as root, ufs as
23133 a separate module and maybe other interesting combinations.
23134
23135 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
23136 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
23137 (kfreebsd_entry): Add generic filesystem module load routine.
23138 Map GRUB `ext2' to kFreeBSD `ext2fs'.
23139
63c734a6
CW
231402010-08-20 Colin Watson <cjwatson@ubuntu.com>
23141
23142 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
23143 "numcenter" (I misunderstood the purpose of this entry).
23144 * docs/grub.texi (sendkey): Likewise.
23145
c4d16542
CW
231462010-08-20 Colin Watson <cjwatson@ubuntu.com>
23147
23148 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
23149 status flag options; simply omitting the option is equivalent and
23150 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
23151 (keysym_table): Rename "num5numlock" to "numlock".
23152 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
23153 can uniformly say that only the last of multiple `sendkey'
23154 invocations has any effect.
23155 * docs/grub.texi (sendkey): New section.
23156
93541d66
CW
231572010-08-19 Colin Watson <cjwatson@ubuntu.com>
23158
23159 * commands/i386/pc/sendkey.c (options): Fix three typos.
23160
b4ece5e1
VS
231612010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
23162
23163 Implement sendkey support.
23164
23165 * commands/i386/pc/sendkey.c: New file.
23166 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
23167 (sendkey_mod_SOURCES): New variable.
23168 (sendkey_mod_CFLAGS): Likewise.
23169 (sendkey_mod_LDFLAGS): Likewise.
23170
51f1f5af
CW
231712010-08-18 Colin Watson <cjwatson@ubuntu.com>
23172
23173 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
23174 fix warnings from Autoconf.
23175
9da94e05
CW
231762010-08-18 Colin Watson <cjwatson@ubuntu.com>
23177
23178 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
23179 to avoid false positives with some assemblers that output things
23180 like "someprefix_func" as part of their output.
23181
729a0f2e
RM
231822010-08-15 Robert Millan <rmh@gnu.org>
23183
23184 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
23185 errors.
23186 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
23187 grub_get_libzfs_handle() errors.
23188
f3710e08
RM
231892010-08-14 Robert Millan <rmh@gnu.org>
23190
23191 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
23192 filesystem is not ZFS.
23193
7a3c13de
BC
231942010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23195
23196 Fix for misspelled color names defaulting to black/black (bug
23197 reported by Doug Nazar)
23198
23199 * include/grub/normal.h (grub_parse_color_name_pair): Add return
23200 status to prototype.
23201 * normal/color.c (grub_parse_color_name_pair): Return failure
23202 status.
23203 (grub_env_write_color_normal): Ignore bad color names.
23204 (grub_env_write_color_highlight): Likewise.
23205 * normal/main.c (GRUB_MOD_INIT): Set default color names.
23206
ab8ba50d
BC
232072010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23208
23209 "shift" command support to GRUB script.
23210
23211 * include/grub/script_sh.h (grub_script_shift): New prototype.
23212 * script/execute.c (grub_script_shift): New function.
23213 * script/main.c (grub_script_init): Register shift command.
23214 (grub_script_fini): Unregister shift command.
23215 * util/grub-script-check.c (grub_script_cmd_shift): New function.
23216
23217 * tests/grub_script_shift.in: New testcase.
23218 * conf/tests.rmk: Rules for new testcase.
23219
4d61999e
BC
232202010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23221
23222 "continue" command support to GRUB script.
23223
23224 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
23225 (grub_script_break): Continue support.
23226 * script/main.c (grub_script_init): Register continue command.
23227 (grub_script_fini): Unregister continue command.
23228
23229 * tests/grub_script_continue.in: New testcase.
23230 * conf/tests.rmk: Rules for new testcase.
23231
4df51e00
BC
232322010-08-12 BVK Chaitanya <bvk@dbook>
23233
23234 "break" command support to GRUB script.
23235
23236 * conf/common.rmk: Rule updates to grub-script-check.
23237 * include/grub/misc.h (grub_min): New function.
23238 * include/grub/script_sh.h (grub_script_init): New prototype.
23239 (grub_script_fini): New prototype.
23240 (grub_script_break): New prototype.
23241 * script/main.c (grub_script_init): New function.
23242 (grub_script_fini): New function.
23243 * script/execute.c (grub_script_break): New function.
23244 * normal/main.c: Calls to grub_script_{init,fini}.
23245 * util/grub-script-check.c (grub_script_break): New function.
23246
23247 * tests/grub_script_break.in: New testcase.
23248 * conf/tests.rmk: Rules for new test case.
23249
f12c8420
BC
232502010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23251
23252 Function parameters support to GRUB script.
23253
23254 * script/yylex.l (VARIABLE): Regular expression update.
23255 * script/function.c (grub_script_function_call): Moved ...
23256 * script/execute.c (grub_script_function_call): ... to here.
23257 (grub_script_execute_arglist_to_argv): Removed.
23258 (grub_script_arglist_to_argv): New function.
23259 * script/argv.c: New file.
23260 (grub_script_argv_free): New function.
23261 (grub_script_argv_next): Likewise.
23262 (grub_script_argv_append): Likewise.
23263 (grub_script_argv_split_append): Likewise.
23264 * include/grub/script_sh.h (grub_script_argv): New struct.
23265 (grub_script_argv_free): New function.
23266 (grub_script_argv_next): Likewise.
23267 (grub_script_argv_append): Likewise.
23268 (grub_script_argv_split_append): Likewise.
23269
23270 * conf/common.rmk (normal.mod): New source script/argv.c.
23271
23272 * tests/grub_script_echo1.in: More tests.
23273 * tests/grub_script_vars1.in: Likewise.
23274 * tests/grub_script_functions.in: New test case.
23275 * conf/tests.rmk: Rules for new testcase.
23276
8022b748
BC
232772010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23278
23279 Remove grub_script_cmdblock struct.
23280
23281 * include/grub/script_sh.h: Remove grub_script_cmdblock.
23282 * script/parser.y: Likewise.
23283 * script/execute.c: Rename cmdblock suffix to cmdlist.
23284 * script/script.c: Likewise.
23285 * util/grub-script-check.c: Likewise.
23286
79a6ba61
YB
232872010-08-11 Yves Blusseau <blusseau@zetam.org>
23288
23289 * .bzrignore: add grub-macho2img
23290
d04b9414
VS
232912010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
23292
23293 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
23294
f947ab49
VS
232952010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
23296
23297 Remove the dump of sm712 initialisation sequence.
23298
23299 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
23300 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
23301 (GRUB_VGA_IO_MISC_WRITE): Likewise.
23302 (GRUB_VGA_CR_*): Added many registers.
23303 (GRUB_VGA_SR_*): Likewise.
23304 (GRUB_VGA_GR_*): Likewise.
23305 (grub_vga_write_arx): New function.
23306 (grub_video_hw_config): New struct.
23307 (grub_vga_set_geometry): New function.
23308 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
23309 GRUB_PCI_CLASS_SUBCLASS_VGA.
23310 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
23311 * video/sm712.c (grub_sm712_write_reg): New function
23312 (grub_sm712_read_reg): Likewise.
23313 (grub_sm712_sr_write): Likewise.
23314 (grub_sm712_gr_write): Likewise.
23315 (grub_sm712_cr_write): Likewise.
23316 (grub_sm712_write_arx): Likewise.
23317 (grub_sm712_cr_shadow_write): Likewise.
23318 (grub_sm712_write_dda_lookup): Likewise.
23319 (grub_video_sm712_setup): Initialise the video rather then
23320 blindly replay the dump.
23321 (main) [TEST]: Add a routine to be able to compile as standalone for
23322 tests.
23323 * video/sm712_init.c (sm712_init): Removed.
23324 (sm712_sr_seq1): New array.
23325 (sm712_sr_seq2): Likewise.
23326
f0206638
VS
233272010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23328
23329 * include/grub/vga.h: Add missing grub/pci.h include.
23330
2764da3b
YB
233312010-08-10 Yves Blusseau <blusseau@zetam.org>
23332
23333 * util/grub-macho2img.c (main): fix typo
23334
cf0c775e
VS
233352010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23336
23337 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
23338 (grub_vga_gr_read): Likewise.
23339 (grub_vga_cr_write): Likewise.
23340 (grub_vga_cr_read): Likewise.
23341 (grub_vga_sr_write): Likewise.
23342 (grub_vga_sr_read): Likewise.
23343 (grub_vga_palette_read): Likewise.
23344 (grub_vga_palette_write): Likewise.
23345 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
23346 (grub_sm712_sr_read): New function.
23347 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
23348 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
23349
07f360e9
RM
233502010-08-09 Robert Millan <rmh@gnu.org>
23351
23352 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
23353 out unused variables on non-ZFS build.
23354
346c2072
RM
233552010-08-08 Robert Millan <rmh@gnu.org>
23356
23357 Fix path generation for sub-filesystems in ZFS.
23358
23359 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
23360 missing slash.
23361
71175420
RM
233622010-08-08 Robert Millan <rmh@gnu.org>
23363
23364 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
23365
0d8286f3
RM
233662010-08-08 Robert Millan <rmh@gnu.org>
23367
23368 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
23369 exist, issue a proper error message (rely on `ls' for translated
23370 strings).
23371
55dd2924
RM
233722010-08-08 Robert Millan <rmh@gnu.org>
23373
23374 Fix grub-probe invocation.
23375
23376 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
23377
d3dd9e80
RM
233782010-08-04 Robert Millan <rmh@gnu.org>
23379
23380 * configure.ac: Remove checks for getfsstat() and getmntany().
23381 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
23382 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
23383 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
23384 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
23385 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
23386 function.
23387 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
23388 via find_mount_point_from_dir() and getfsstat() / getmntany().
23389
0de22aa9
RM
233902010-08-04 Robert Millan <rmh@gnu.org>
23391
23392 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23393 (grub_find_zpool_from_mount_point): Merge into ...
23394 (grub_find_zpool_from_dir): ... this.
23395 * kern/emu/misc.c: Likewise.
23396
23397 * kern/emu/misc.c
23398 (grub_make_system_path_relative_to_its_root): Replace
23399 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
23400 with grub_find_zpool_from_dir().
23401 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
23402
62858144
RM
234032010-08-04 Robert Millan <rmh@gnu.org>
23404
23405 Support OpenSolaris in ZFS device resolution.
23406
23407 * configure.ac: Check for getmntany().
23408 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
23409 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
23410 support.
23411
9dd6fd50
RM
234122010-08-03 Robert Millan <rmh@gnu.org>
23413
23414 Fix grub-emu build.
23415
23416 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
23417 * include/grub/emu/misc.h: ... here.
23418
23419 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
23420 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
23421
23422 * util/misc.c: Remove `<grub/util/libzfs.h>'.
23423 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
23424 (grub_get_libzfs_handle): Move to ...
23425 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
23426 (grub_get_libzfs_handle): ... here.
23427
c9f7ff97
BC
234282010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
23429
23430 * script/execute.c (grub_script_execute_cmdline): Check for NULL
23431 as command name case.
23432
a870a783
CW
234332010-08-02 Colin Watson <cjwatson@ubuntu.com>
23434
23435 * disk/raid.c (insert_array): Select unique numbers for named arrays
23436 as well, for use as keys in the disk cache.
23437
c7db243b
RM
234382010-08-01 Robert Millan <rmh@gnu.org>
23439
23440 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
23441 kFreeBSD device name, except on ZFS where the filesystem label is
23442 used.
23443 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
23444 `/boot/zfs/zpool.cache'.
23445 Set mountfrom kernel variable using ${kfreebsd_device}.
23446
f7abdefb
RM
234472010-08-01 Robert Millan <rmh@gnu.org>
23448
23449 Make it even harder to use uninitialized `libzfs_handle' (and
23450 make the interface a bit simpler).
23451
23452 * include/grub/util/misc.h (grub_util_init_libzfs)
23453 (libzfs_handle): Remove.
23454 (grub_get_libzfs_handle): New prototype.
23455
23456 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
23457 attribute.
23458 (grub_util_init_libzfs): Remove.
23459 (grub_get_libzfs_handle): New function.
23460
23461 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
23462 grub_get_libzfs_handle() to obtain a libzfs handle instead of
23463 accessing `libzfs_handle' directly.
23464
c882acc0
RM
234652010-08-01 Robert Millan <rmh@gnu.org>
23466
23467 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23468 (grub_find_zpool_from_mount_point): New function prototypes.
23469
23470 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23471 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23472
23473 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23474 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23475 `static' attribute.
23476
23477 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23478 finding zpool from mount point into ...
23479 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23480
23481 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23482 requested path is part of a ZFS pool, use
23483 grub_find_zpool_from_mount_point() to detect its filesystem name,
23484 and generate a path with `/fsname@path' syntax.
23485
8bfe31d8
CW
234862010-08-01 Colin Watson <cjwatson@ubuntu.com>
23487
23488 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
23489 (void) rather than () so that this is a proper prototype.
23490
553df63d
VS
234912010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23492
23493 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
23494
8687cf07
VS
234952010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
23498 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
23499
ea9be8ea
CW
235002010-08-01 Colin Watson <cjwatson@ubuntu.com>
23501
23502 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
23503
6eea041a
CW
235042010-08-01 Colin Watson <cjwatson@ubuntu.com>
23505
23506 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
23507
2cfb45df
CW
235082010-08-01 Colin Watson <cjwatson@ubuntu.com>
23509
23510 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
23511 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
23512 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
23513 disable gfxpayload.
23514 (Shell-like scripting): Add real content.
23515 (Serial terminal): Suggest `terminal_input serial; terminal_output
23516 serial' rather than putting the two commands on separate lines,
23517 since console input will be inoperative after the first command.
23518 (menuentry): Document --class, --users, and --hotkey options.
23519 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
23520 Vladimir Serbinenko).
23521
7decd202
VS
235222010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
235232010-08-01 Colin Watson <cjwatson@ubuntu.com>
23524
23525 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
23526
c882acc0
RM
235272010-08-01 Robert Millan <rmh@gnu.org>
23528
23529 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23530 (grub_find_zpool_from_mount_point): New function prototypes.
23531
23532 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23533 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23534
23535 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23536 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23537 `static' attribute.
23538
23539 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23540 finding zpool from mount point into ...
23541 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23542
23543 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23544 requested path is part of a ZFS pool, use
23545 grub_find_zpool_from_mount_point() to detect its filesystem name,
23546 and generate a path with `/fsname@path' syntax.
23547
deb0caa3
RM
235482010-08-01 Robert Millan <rmh@gnu.org>
23549
23550 Prevent accidental use of uninitialized libzfs_handle.
23551
23552 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
23553 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
23554 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
23555
ce04ef47
CW
235562010-08-01 Colin Watson <cjwatson@ubuntu.com>
23557
23558 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
23559 util/grub.d/10_linux.in). Fixes Debian bug #591093.
23560
ebf53056
RM
235612010-08-01 Robert Millan <rmh@gnu.org>
23562
23563 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 23564
3710bb6b
RM
235652010-07-31 Robert Millan <rmh@gnu.org>
23566
23567 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
23568
8072efeb
RM
235692010-07-31 Robert Millan <rmh@gnu.org>
23570
23571 * kern/emu/misc.c: Add missing license header.
23572
3169f4c7
RM
235732010-07-31 Robert Millan <rmh@gnu.org>
23574
23575 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
23576
23577 * include/grub/util/libnvpair.h: Include `<config.h>'.
23578 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
23579 declaring libnvpair prototypes ourselves.
23580 * include/grub/util/libzfs.h: Include `<config.h>'.
23581 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
23582 declaring libzfs prototypes ourselves.
23583
23584 (libzfs_handle): Moved to ...
23585 * include/grub/util/misc.h (libzfs_handle): ... here.
23586 Include `<grub/util/libzfs.h>'.
23587
c9a00aee
RM
235882010-07-30 Robert Millan <rmh@gnu.org>
23589
23590 * include/grub/emu/misc.h: Add missing license header.
23591
a184f9c8
RM
235922010-07-30 Robert Millan <rmh@gnu.org>
23593
23594 Enable `grub-probe -t device' resolution on ZFS.
23595
23596 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
23597 * include/grub/util/libnvpair.h: New file.
23598 * include/grub/util/libzfs.h: New file.
23599
23600 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
23601 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
23602 `<grub/util/libnvpair.h>'.
23603 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
23604
23605 (find_mount_point_from_dir): New static function.
23606 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
23607 function.
23608 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
23609 find_root_device_from_libzfs() before ressorting to find_root_device().
23610
23611 * include/grub/util/misc.h (grub_util_init_libzfs): New function
23612 prototype.
23613 * util/misc.c: Include `<grub/util/libzfs.h>'.
23614 (grub_util_init_libzfs): New function.
23615 [HAVE_LIBZFS] (libzfs_handle): New global variable.
23616 [HAVE_LIBZFS] (fini_libzfs): New static function.
23617 (grub_util_init_libzfs): New function.
23618 * util/grub-probe.c (main): Call grub_util_init_libzfs().
23619
f7790cdd
RM
236202010-07-30 Robert Millan <rmh@gnu.org>
23621
23622 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
23623 (xmalloc, xrealloc, xstrdup, xasprintf): Add
23624 `warn_unused_result' attribute.
23625 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
23626 (grub_xasprintf, grub_xvasprintf): Likewise.
23627 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
23628
0806b63c
RM
236292010-07-29 Robert Millan <rmh@gnu.org>
23630
23631 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
23632 (probe): Handle `PRINT_FS_LABEL'.
23633 (main): Handle `-t fs_label'.
23634
9f841f5c
RM
236352010-07-29 Robert Millan <rmh@gnu.org>
23636
23637 * configure.ac: Remove grub-mkisofs checks.
23638
46371121
VS
236392010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23640
23641 * util/ieee1275/grub-install.in: Don't use empty grub_device.
23642 Reported by: Lennart Sorensen.
23643
236442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23645
23646 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
23647 prior to terminal_input/terminal_output separation. It's been over 1.5
23648 years and those versions weren't widely deployed.
23649
a9600892
CW
236502010-07-22 Colin Watson <cjwatson@ubuntu.com>
23651
23652 * disk/raid.c (insert_array): Don't count named arrays when looking
23653 for unused array numbers.
697e053c 23654 Reported and tested by: Michael Guntsche.
a9600892 23655
c03507df
CW
236562010-07-20 Colin Watson <cjwatson@ubuntu.com>
23657
23658 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
23659 implementation of this so that grub-emu links again, with a note
23660 that this should support hotplugging in the future.
23661
b26f1c11
CW
236622010-07-20 Colin Watson <cjwatson@ubuntu.com>
23663
23664 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
23665
efc9d7f1
CW
236662010-07-20 Colin Watson <cjwatson@ubuntu.com>
23667
23668 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
23669 handle on failure.
23670 (grub_loopback_close): Remove empty function.
23671 (grub_loopback_dev): Remove close method.
23672
dd8ff5c9
CW
236732010-07-20 Colin Watson <cjwatson@ubuntu.com>
23674
23675 Disable EFI cursor when the EFI console becomes inactive.
23676
23677 * term/efi/console.c (grub_efi_console_init): New function.
23678 (grub_efi_console_fini): New function.
23679 (grub_console_term_output): Register init and fini methods.
23680
5e3bec67
VS
236812010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23682
23683 * tests/util/grub-shell-tester.in: Remove bashism and declare as
23684 sh script.
23685
afaec079
VS
236862010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23687
23688 * disk/loopback.c (grub_loopback): Replace filename with file.
23689 (delete_loopback): Handle new semantics.
23690 (grub_cmd_loopback): Likewise.
23691 (grub_loopback_iterate): Likewise.
23692 (grub_loopback_close): Likewise.
23693
a6a11f3c
VS
236942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23695
23696 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
23697 with -p "".
23698 Reported by: Tito Keitel.
23699
64a638b0
VS
237002010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * docs/grub.texi (Naming convention): Document new naming convention.
23703
ab8ba957
VS
237042010-07-20 Vadim Solomin <vadic052@gmail.com>
237052010-07-20 Colin Watson <cjwatson@ubuntu.com>
23706
23707 Generate device.map in something closer to the old ordering.
23708
23709 * util/deviceiter.c (struct device): New declaration.
23710 (compare_file_names): Rename to ...
23711 (compare_devices): ... this. Sort by kernel name in preference to
23712 the stable by-id name, but keep the latter as a fallback comparison.
23713 Update header comment.
23714 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
23715 of `struct device' rather than of plain file names.
23716
a29d6a4b
TF
237172010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
23718
23719 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
23720 on i386.
23721
39d824e8
VS
237222010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23723
23724 * commands/acpi.c (setup_common_tables): Use sizeof instead of
23725 hardcoding size.
23726 (setv1table): Likewise.
23727
f058276b
FZ
237282010-07-20 Colin Watson <cjwatson@ubuntu.com>
23729
23730 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
23731 removing the homehost if present.
23732 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
23733 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
23734 removing the homehost if present.
23735 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
23736 if possible.
23737 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
23738
23739 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
23740 parameter. Set its pointer target to 0.
23741 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
23742 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
23743 `data_offset' value from the superblock for 1.x metadata.
23744 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
23745 data on the device.
23746 (insert_array): Record the start sector of data on the device.
23747 (grub_raid_register): Pass start_sector parameters to
23748 grub_raid_list->detect and insert_array.
23749 * include/grub/raid.h (struct grub_raid_array): Add start_sector
23750 member.
23751 (struct grub_raid): Add start_sector parameter to `detect'.
23752
23753 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
23754 __attribute__ ((packed)), leaving a comment.
23755 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
23756 (grub_mdraid_detect_09): ... here and ...
23757 (grub_mdraid_detect_1x): ... here.
23758
237592010-07-20 Peter Henn <peter.henn@web.de>
23760
23761 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
23762 chunk size and disk size, which are already given as sector counts
23763 as distinct from the 0.90 units. Fetch the correct device number
23764 from the role table instead of using the table index.
23765
237662010-07-20 Felix Zielcke <fzielcke@z-51.de>
23767
23768 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23769 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23770 (WriteMostly1): New macro.
23771 Set array->name to NULL for metadata format 0.90. Add support for
23772 metadata 1.x. Fix some comments.
23773 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23774 few comments.
23775 * util/getroot.c (grub_util_get_grub_dev): Add support for
23776 /dev/md/name style devices.
23777
4b761da9
CW
237782010-07-20 Colin Watson <cjwatson@ubuntu.com>
23779
23780 * .bzrignore: Ignore 20_linux_xen.
23781
5771289a
CW
237822010-07-17 Colin Watson <cjwatson@ubuntu.com>
23783
23784 * util/import_unicode.py: Remove unnecessary imports.
23785
5dab68df
AN
237862010-07-17 Aleš Nesrsta <starous@volny.cz>
23787
23788 Hotplugging and USB hub support.
23789
23790 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23791 (grub_ohci): Likewise.
23792 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23793 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23794 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23795 (GRUB_OHCI_CTRL_EDS): Likewise.
23796 (GRUB_OHCI_BULK_EDS): Likewise.
23797 (GRUB_OHCI_TDS): Likewise.
23798 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23799 (grub_ohci_ed_phys2virt): New function.
23800 (grub_ohci_virt_to_phys): Likewise.
23801 (grub_ohci_td_phys2virt): Likewise.
23802 (grub_ohci_td_virt2phys): Likewise.
23803 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23804 attachment.
23805 (grub_ohci_find_ed): New function.
23806 (grub_ohci_alloc_td): Likewise.
23807 (grub_ohci_free_td): Likewise.
23808 (grub_ohci_free_tds): Likewise.
23809 (grub_ohci_transfer): Use previously allocated memory.
23810 (grub_ohci_portstatus): Reset status changed bit.
23811 (grub_ohci_detect_dev): Supply status changed.
23812 (grub_ohci_fini_hw): Free memory.
23813 (grub_ohci_restore_hw): Reallocate memory.
23814 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23815 Reset status change.
23816 (grub_uhci_detect_dev): Supply status_change.
23817 * bus/usb/usb.c (attach_hooks): New var.
23818 (grub_usb_device_attach): New function.
23819 (grub_usb_register_attach_hook_class): Likewise.
23820 (grub_usb_unregister_attach_hook_class): Likewise.
23821 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23822 (grub_usb_add_hub): Reset connection changed bit.
23823 (attach_root_port): New function.
23824 (grub_usb_root_hub): Likewise.
23825 (poll_nonroot_hub): Likewise.
23826 (grub_usb_poll_devices): Likewise.
23827 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23828 * disk/usbms.c (grub_usbms_open): Use device hooks.
23829 (grub_usbms_iterate) :Poll devices.
23830 (grub_usbms_finddevs): Split into ...
23831 (grub_usbms_attach): ... this ...
23832 (grub_usbms_attach): ... and this.
23833 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23834 in detect_dev.
23835 (grub_usb_interface): New fields attached and detach_hook.
23836 (grub_usb_attach_hook_class): New type.
23837 (grub_usb_attach_desc): New struct.
23838 (grub_usb_register_attach_hook_class): New function.
23839 (grub_usb_unregister_attach_hook_class): Likewise.
23840 (grub_usb_poll_devices): Likewise.
23841 (grub_usb_device_attach): Likewise.
23842 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23843 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23844
3222efaf
VS
238452010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23846
23847 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23848 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23849 delta determination style. Works with most NetBSD partitions too.
23850
139b714a
VS
238512010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23852
23853 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23854 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23855
986aad56
VS
238562010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23857
23858 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23859
99be513c
AB
238602010-07-14 Anton Blanchard <anton@samba.org>
23861
23862 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23863 ET_DYN files.
23864
18075f62
GS
238652010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23866
23867 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23868
8d9a5b15
GS
238692010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23870
23871 * kern/partition.c (grub_partition_check_containment): New function to
23872 check that a partition is physically contained in a parent. Since
23873 offsets are relative (and non-negative), this reduces to checking that
23874 the partition ends before its parent.
23875 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23876 (grub_partition_iterate): Likewise.
23877 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23878 comments.
23879 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23880 partitions that start before their parent, and add debug printfs.
23881
19563c25
CW
238822010-07-13 Colin Watson <cjwatson@ubuntu.com>
23883
23884 * Makefile.in (.SUFFIX): Spell correctly, as ...
23885 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23886 bare module name without `.mod', e.g. `test') tried to invoke a
23887 Modula-2 compiler.
23888
1a1f1e67
CW
238892010-07-13 Colin Watson <cjwatson@ubuntu.com>
23890
23891 * README: Point to the Info manual.
23892
811b0dca
JS
238932010-07-13 Jiro SEKIBA <jir@unicus.jp>
23894
23895 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23896 2nd superblock position from partition size.
23897
e4f4eafc
CW
238982010-07-10 Colin Watson <cjwatson@ubuntu.com>
23899
23900 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23901 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23902 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23903 outputs.
23904
4274c30f
VS
239052010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23906
23907 Restructure SCSI .id handling.
23908 Reported and tested by: Aleš Nesrsta.
23909
23910 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23911 (grub_atapi_dev): Changed .name to "ata". New field .id.
23912 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23913 (grub_usbms_dev): New field .id.
23914 * disk/scsi.c (grub_scsi_iterate): Generate name.
23915 (grub_scsi_open): Parse name.
23916 * include/grub/scsi.h (grub_make_scsi_id): New function.
23917 (grub_scsi_dev): Change iterate and open to number instead of naming
23918 busses. All users updated.
23919 (grub_scsi): Remove name. Add .bus.
23920
5bc24388
VS
239212010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23922
23923 * commands/help.c (grub_cmd_help): Fix a typo.
23924
249975ba
VS
239252010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23926
23927 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23928 Reported and tested by: Colin Watson.
23929
3eaac1a1
VS
239302010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23931
23932 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23933 in this context.
23934
becce1b1
VS
239352010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23936
23937 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23938
f7bf0918
CW
239392010-07-07 Colin Watson <cjwatson@ubuntu.com>
23940
23941 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23942 indentation.
23943
0b0f9620
CW
239442010-07-06 Colin Watson <cjwatson@ubuntu.com>
23945
23946 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23947 and disk/raid6_recover.c.
23948 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23949 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23950
1e545469
CW
239512010-07-06 Colin Watson <cjwatson@ubuntu.com>
23952
23953 * term/gfxterm.c (repaint_schedulded): Rename to ...
23954 (repaint_scheduled): ... this. Update all callers.
23955 (repaint_was_schedulded): Rename to ...
23956 (repaint_was_scheduled): ... this. Update all callers.
23957
5357687a
CW
239582010-07-06 Colin Watson <cjwatson@ubuntu.com>
23959
23960 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23961 which we expect to be handled by upper layers.
23962
29d7e783
BC
239632010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23964
23965 * bus/usb/usbhub.c: #include time.h header.
23966
37582066
CW
239672010-07-06 Colin Watson <cjwatson@ubuntu.com>
23968
23969 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23970 entry_name also for entries without stat blocks (e.g. ".."); fixes
23971 corruption of the first entry in a directory.
23972
c8c06953
CW
239732010-07-06 Colin Watson <cjwatson@ubuntu.com>
23974
23975 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23976 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23977 doesn't work otherwise.
23978
e75056f1
CW
239792010-07-05 Colin Watson <cjwatson@ubuntu.com>
23980
23981 * docs/grub.texi (Features): Update list of supported file systems.
23982 (GNU/Linux): Update for GRUB 2.
23983 (Serial terminal): Remove mention of --disable-serial, which was a
23984 GRUB Legacy configure option. Update instructions to use
23985 `terminal_input' and `terminal_output' rather than `terminal'.
23986 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23987 configuration' and `Installing GRUB using grub-install'.
23988 (Menu entry editor): Update for GRUB 2.
23989 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23990 Document new -a, -u, and -v options.
23991 (initrd): New section.
23992 (initrd16): New section.
23993 (linux): New section.
23994 (linux16): New section.
23995 (search): The `var' argument to `--set' is optional.
23996 (GRUB only offers a rescue shell): Go into a little more detail on
23997 drive ordering.
23998
5cf69151
CW
239992010-07-05 Colin Watson <cjwatson@ubuntu.com>
24000
24001 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
24002
e3f90044
CW
240032010-07-05 Colin Watson <cjwatson@ubuntu.com>
24004
24005 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
24006 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
24007
38d8f4f3
CW
240082010-07-05 Colin Watson <cjwatson@ubuntu.com>
24009
24010 * util/i386/pc/grub-setup.c (setup): Rename prefix to
24011 install_prefix, in line with install_dos_part and install_bsd_part.
24012 Add new prefix variable, which is copied to install_prefix after
24013 comparing core.img in memory with the one read from disk in the
24014 no-embedding case, and use that rather than overwriting
24015 install_prefix immediately when installing to a partition.
24016 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
24017 Bicakci.
24018
57ebd41e
GS
240192010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
24020
24021 * configure.ac: Avoid == in test command, it's not portable.
24022 * util/grub.d/30_os-prober.in: Likewise.
24023
cb7f64b2
CW
240242010-07-04 Colin Watson <cjwatson@ubuntu.com>
24025
24026 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
24027
6b654bb0
GS
240282010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
24029
24030 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
24031 multiple (top-level) partmaps.
24032
72a2026d
VS
240332010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24034
24035 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 24036 Reported by: Tino Keitel.
72a2026d 24037
df3eb88f
VS
240382010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24039
24040 Bidi and diacritics support.
24041
24042 * Makefile.in (widthspec.bin): New target.
24043 (widthspec.h): Likewise.
24044 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
24045 * autogen.sh: Generate unidata.c.
24046 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
24047 * commands/ls.c (grub_ls_list_devices): Likewise.
24048 (grub_ls_list_files): Likewise.
24049 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
24050 (grub_mini_cmd_lsmod): Likewise.
24051 * commands/read.c: Likewise.
24052 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
24053 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
24054 * lib/arg.c (grub_arg_show_help): Likewise.
24055 * lib/crypto.c (grub_password_get): Likewise.
24056 * normal/auth.c (grub_username_get): Likewise.
24057 * normal/misc.c (grub_normal_print_device_info): Likewise.
24058 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
24059 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
24060 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
24061 (normal/charset.c_DEPENDENCIES): New variable.
24062 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
24063 (pkglib_MODULES): Remove charset.mod.
24064 (charset_mod_SOURCES): Removed.
24065 (charset_mod_CFLAGS): Likewise.
24066 (charset_mod_LDFLAGS): Likewise.
24067 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
24068 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
24069 and term/tparm.c.
24070 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24071 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24072 (kernel_img_HEADERS): Add terminfo.h.
24073 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
24074 Fill ->font. Reverse ascii bitmaps.
24075 (grub_font_get_xheight): New function.
24076 * font/font.c (grub_font_get_string_width): Moved from here ...
24077 * gfxmenu/font.c (grub_font_get_string_width): ... here.
24078 * font/font.c (grub_font_draw_string): Moved from here ...
24079 * gfxmenu/font.c (grub_font_draw_string): ... here.
24080 * font/font.c (grub_font_dup_glyph): New function.
24081 (grub_font_blit_glyph): Likewise.
24082 (grub_font_blit_glyph_mirror): Likewise.
24083 (blit_comb): Likewise.
24084 (grub_font_construct_dry_run): Likewise.
24085 (grub_font_get_constructed_device_width): Likewise.
24086 (grub_font_construct_glyph): Likewise.
24087 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
24088 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
24089 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
24090 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
24091 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
24092 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
24093 (grub_font_get_xheight): New proto.
24094 (grub_font_get_constructed_device_width): Likewise.
24095 (grub_font_construct_glyph): Likewise.
24096 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
24097 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
24098 * include/grub/font.h (grub_font_draw_string): Moved from here ...
24099 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
24100 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
24101 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
24102 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
24103 (grub_console_getcharwidth): Likewise.
24104 * include/grub/misc.h (grub_xputs): New proto.
24105 (grub_puts): Inlined.
24106 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
24107 (grub_normal_get_line_counter): Removed.
24108 (grub_install_newline_hook): Likewise.
24109 (grub_normal_get_char_counter): New proto.
24110 (grub_normal_reset_more): Likewise.
24111 (grub_xputs_normal): Likewise.
24112 * include/grub/powerpc/ieee1275/console.h: Removed.
24113 * include/grub/sparc64/ieee1275/console.h: Likewise.
24114 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
24115 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
24116 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
24117 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
24118 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
24119 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
24120 (grub_term_input): Pass reference to self. All users updated.
24121 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
24122 Pass reference to self. New fields normal_color, highlight_color and
24123 data. All users updated.
24124 (grub_putchar): Removed.
24125 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
24126 (grub_unicode_estimate_width): New function.
24127 (grub_term_getcharwidth): Add defaults.
24128 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
24129 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
24130 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
24131 (grub_cls): Remove EXPORT_FUNC.
24132 (grub_setcolorstate): Inline.
24133 (grub_newline_hook): Removed.
24134 * include/grub/terminfo.h: Rewritten. All users updated.
24135 * include/grub/unicode.h: New file.
24136 * include/grub/video.h (grub_video_signed_rect): New type.
24137 * kern/emu/console.c (grub_console_highlight_color): Removed.
24138 (grub_console_normal_color): Likewise.
24139 (grub_console_standard_color): Made static.
24140 (grub_ncurses_putchar): Remove mapping.
24141 (grub_ncurses_getcharwidth): Removed.
24142 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
24143 (grub_ncurses_setcolor): Removed.
24144 (grub_ncurses_getcolor): Likewise.
24145 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
24146 (grub_console_putchar): ... this.
24147 (grub_console_putchar): Handle argument difference.
24148 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
24149 console_init_early and console_init_lately.
24150 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
24151 * kern/misc.c (grub_puts): Removed.
24152 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
24153 (grub_vsnprintf_real): Remove str = NULL support.
24154 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
24155 * normal/charset.c (grub_utf8_to_ucs4): ... here.
24156 * kern/term.c (grub_putcode): Renamed to ...
24157 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
24158 (grub_putchar): Removed.
24159 (grub_xputs_dumb): New function.
24160 (grub_xputs): New variable.
24161 * lib/charset.c: Move from here ...
24162 * normal/charset.c: ... to here.
24163 (grub_ucs4_to_utf8): New function.
24164 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
24165 (join_types): New variable.
24166 (unpack_join): New function.
24167 (bidi_types): New variable.
24168 (unpack_bidi): New function.
24169 (get_bidi_type): Likewise.
24170 (get_join_type): Likewise.
24171 (is_mirrored): Likewise.
24172 (grub_unicode_get_comb_type): Likewise.
24173 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
24174 (is_type_after): Likewise.
24175 (grub_unicode_aglomerate_comb): Likewise.
24176 (bidi_line_wrap): Likewise.
24177 (grub_bidi_line_logical_to_visual): Likewise.
24178 (grub_bidi_logical_to_visual): Likewise.
24179 (grub_unicode_mirror_code): Likewise.
24180 (grub_unicode_shape_code): Likewise.
24181 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
24182 Don't use grub_putchar.
24183 * normal/main.c (grub_normal_init_page): Use grub_putcode.
24184 (grub_normal_reader_init): Likewise.
24185 (grub_xputs_saved): New variable.
24186 (GRUB_MOD_INIT): Set grub_xputs.
24187 (GRUB_MOD_FINI): Restore grub_xputs.
24188 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
24189 (menu_init): Avoid printing gfxmenu error.
24190 (show_menu): Use grub_normal_get_char_counter.
24191 * normal/menu_entry.c (update_screen): Fix out-of-array.
24192 (complete): Avoid NULL dereferencing.
24193 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
24194 * normal/menu_text.c (print_spaces): Removed.
24195 (grub_print_ucs4): Likewise.
24196 (grub_print_message_indented): Use grub_print_ucs4.
24197 (print_message): Use grub_putcode.
24198 (print_entry): Hanlde diacritics.
24199 * normal/term.c (term_state): New type.
24200 (grub_more_lines): Removed.
24201 (term_states): New variable.
24202 (grub_normal_line_counter): Renamed to ..
24203 (grub_normal_char_counter): ...this. All users updated.
24204 (grub_normal_get_line_counter): Renamed to ...
24205 (grub_normal_get_char_counter): ... this.
24206 (grub_normal_reset_more): New function.
24207 (process_newline): Removed.
24208 (print_more): New function.
24209 (grub_install_newline_hook): Removed.
24210 (map_code): New function.
24211 (grub_puts_terminal): Use grub_print_ucs4.
24212 (putglyph): New function.
24213 (putcode_real): Likewise.
24214 (grub_putcode): Use putcode_real.
24215 (get_maxwidth): New function.
24216 (get_startwidth): Likewise.
24217 (print_ucs4_terminal): Likewise.
24218 (find_term_state): Likewise.
24219 (put_glyphs_terminal): Likewise.
24220 (print_backlog): Likewise.
24221 (print_ucs4_real): Likewise.
24222 (grub_print_ucs4): Likewise.
24223 (grub_xputs_normal): Likewise.
24224 * term/efi/console.c (grub_console_putchar): Output diacritics.
24225 (grub_console_getcharwidth): Removed.
24226 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
24227 * term/gfxterm.c (clear_char): Free chars.
24228 (scroll_up): Avoid leaking memory.
24229 (grub_gfxterm_putchar): Support diacritics.
24230 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
24231 * term/i386/pc/console.c (grub_console_term_output): Declare as
24232 GRUB_TERM_CODE_TYPE_VGA.
24233 * term/i386/pc/vga.c (grub_vga_term): Declare as
24234 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
24235 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
24236 GRUB_TERM_CODE_TYPE_VGA.
24237 * term/i386/vga_common.c (map_char): Removed.
24238 (grub_console_putchar): Likewise.
24239 (grub_console_getcharwidth): Likewise.
24240 * term/ieee1275/ofconsole.c: Simplify using terminfo.
24241 (colors): Reordered to match terminfo.
24242 (grub_ofconsole_normal_color): Removed.
24243 (grub_ofconsole_writeesc): Likewise.
24244 (grub_ofconsole_highlight_color): Likewise.
24245 (grub_ofconsole_getcharwidth): Likewise.
24246 (grub_ofconsole_setcolorstate): Likewise.
24247 (grub_ofconsole_setcolor): Likewise.
24248 (grub_ofconsole_getcolor): Likewise.
24249 (grub_ofconsole_readkey): Renamed to ...
24250 (readkey): ... this. Remove escape sequence handling. Return -1 on no
24251 key.
24252 (grub_ofconsole_checkkey): Removed.
24253 (grub_ofconsole_getkey): Likewise.
24254 (grub_ofconsole_getxy): Likewise.
24255 (grub_ofconsole_gotoxy): Likewise.
24256 (grub_ofconsole_cls): Likewise.
24257 (grub_ofconsole_refresh): Likewise.
24258 (grub_ofconsole_terminfo_input): New struct.
24259 (grub_ofconsole_terminfo_output): Likewise.
24260 (grub_ofconsole_term_input): Use terminfo.
24261 (grub_ofconsole_term_output): Likewise.
24262 (grub_console_init): Split into ...
24263 (grub_console_init_early): ...this and ...
24264 (grub_console_init_lately): ...this. Use terminfo.
24265 (grub_ofconsole_putchar): Renamed to ...
24266 (put): ... this. Remove mapping.
24267 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
24268 * term/serial.c: Simplify using terminfo.
24269 (xpos): Removed.
24270 (ypos): Likewise.
24271 (keep_track): Likewise.
24272 (registered): Likewise.
24273 (input_buf): Likewise.
24274 (npending): Likewise.
24275 (serial_translate_key_sequence): Likewise.
24276 (fill_input_buf): Likewise.
24277 (grub_serial_checkkey): Likewise.
24278 (grub_serial_getkey): Likewise.
24279 (grub_serial_getxy): Likewise.
24280 (grub_serial_gotoxy): Likewise.
24281 (grub_serial_putchar): Likewise.
24282 (grub_serial_cls): Likewise.
24283 (grub_serial_setcolorstate): Likewise.
24284 (grub_serial_setcursor): Likewise.
24285 (serial_hw_init): Use serial_hw_fetch.
24286 (grub_serial_terminfo_input): New variable.
24287 (grub_serial_terminfo_output): Likewise.
24288 (grub_serial_term_input): Use terminfo.
24289 (grub_serial_term_output): Likewise.
24290 * term/terminfo.c (putstr): Use put.
24291 (grub_terminfo_all_free): New function
24292 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
24293 (grub_terminfo_output_register): New function.
24294 (grub_terminfo_output_unregister): Likewise.
24295 (grub_terminfo_getxy): Likewise.
24296 (grub_terminfo_readkey): Likewise.
24297 (grub_terminfo_checkkey): Likewise.
24298 (grub_terminfo_getkey): Likewise.
24299 (grub_terminfo_input_init): Likewise.
24300 (print_terminfo): Likewise.
24301 (grub_cmd_terminfo): Handle encoding.
24302 (grub_terminfo_gotoxy): Track position.
24303 (grub_terminfo_cls): Likewise.
24304 (grub_terminfo_putchar): Likewise.
24305 (grub_terminfo_setcolorstate): Handle colors
24306 (grub_terminfo_cursor_on): This ...
24307 (grub_terminfo_cursor_off): ... and this merged into ...
24308 (grub_terminfo_setcursor): ... this.
24309 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
24310 * unicode/ArabicShaping.txt: New file (imported from Unicode).
24311 * unicode/BidiMirroring.txt: Likewise.
24312 * unicode/UnicodeData.txt: Likewise.
24313 * unicode/COPYING: Likewise.
24314 * util/grub-editenv.c (grub_putchar): Removed.
24315 (grub_xputs_real): New function.
24316 (grub_xputs): New variable.
24317 * util/grub-fstest.c (grub_putchar): Removed.
24318 (grub_xputs_real): New function.
24319 (grub_xputs): New variable.
24320 * util/grub-mkdevicemap.c (grub_putchar): Removed.
24321 (grub_xputs_real): New function.
24322 (grub_xputs): New variable.
24323 * util/grub-probe.c (grub_putchar): Removed.
24324 (grub_xputs_real): New function.
24325 (grub_xputs): New variable.
24326 * util/grub-script-check.c (grub_putchar): Removed.
24327 (grub_xputs_real): New function.
24328 (grub_xputs): New variable.
24329 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
24330 (grub_xputs_real): New function.
24331 (grub_xputs): New variable.
24332 * util/import_unicode.py: New file.
24333 * util/grub-mkfont.c (ft_errmsgs): New array.
24334 (grub_glyph_info): Make bitmap a pointer.
24335 (file_formats): New type WIDTH_SPEC.
24336 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
24337 (options): Add width-spec.
24338 (help): Likewise.
24339 (add_char): Renamed to ...
24340 (add_glyph): ... this.
24341 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
24342 (glyph_replace): New type.
24343 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
24344 (add_char): New function.
24345 (add_subst): Likewise.
24346 (process_cursive): Likewise.
24347 (add_font): Handle GSUB.
24348 (write_font_width_spec): New function.
24349 (main): Sort glyphs.
24350 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
24351 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
24352 * kern/term.c (grub_cls): Moved from here...
24353 * normal/term.c (grub_cls): ... here.
24354
50f0bcda
CW
243552010-07-02 Colin Watson <cjwatson@ubuntu.com>
24356
24357 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
24358 suitable for using within the format argument of printf when
24359 converting grub_size_t.
24360 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
24361 "x" to convert grub_size_t arguments.
24362
40372103
VS
243632010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24364
24365 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
24366 too long captions.
24367 (list_get_minimal_size): Take selection box into account.
24368
942a10c7
VS
243692010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24370
24371 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
24372 NULL font.
24373
2bdb2892
CW
243742010-07-02 Colin Watson <cjwatson@ubuntu.com>
24375
24376 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
24377 devices when iterating over /dev/disk/by-id; they will be handled
24378 later if appropriate, which they aren't always (e.g. LVM).
24379
e03ed6c1
CW
243802010-07-02 Colin Watson <cjwatson@ubuntu.com>
24381
24382 * include/grub/misc.h (grub_reboot): Declare as noreturn.
24383 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
24384 fails.
24385 (grub_halt): Likewise.
24386 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
24387 reset-all fails.
24388 (grub_halt): Don't return, even if all of shut-down, power-off, and
24389 poweroff fail.
24390
47695765
CW
243912010-07-02 Colin Watson <cjwatson@ubuntu.com>
24392
24393 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
24394 arguments, not three.
24395
507736c8
CW
243962010-07-02 Colin Watson <cjwatson@ubuntu.com>
24397
24398 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
24399 * util/grub.d/10_linux.in: Use it to check for LVM, so that
24400 LVM-on-RAID is handled correctly.
24401
e3c8cd37
CW
244022010-07-02 Colin Watson <cjwatson@ubuntu.com>
24403
24404 * docs/grub.texi (Changes from GRUB Legacy): New section.
24405 (Future): Fix typo.
24406
8d4a2fec
CW
244072010-07-02 Colin Watson <cjwatson@ubuntu.com>
24408
24409 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
24410 grub.d/README accidentally ends up executable for one reason or
24411 another. Ignore it.
24412
1c4827be
VS
244132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24414
24415 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
24416 (gpt_partition_map_iterate): Support non-512B sectors.
24417
d9a0c941
VS
244182010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24419
24420 * kern/efi/init.c (grub_efi_init): Disable watchdog.
24421 Tested by: Seth Goldberg.
24422
48f27e87
VS
244232010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24424
24425 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
24426 Properly align mbi.
24427 Reported by: Seth Goldberg.
24428
b0c4f956
VS
244292010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24430
24431 * util/grub-mkrescue.in: Avoid module duplication.
24432
105a2e8c
SF
244332010-07-01 Sean Finney <seanius@seanius.net>
24434
24435 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
24436
5944958c
SF
244372010-07-01 Sean Finney <seanius@seanius.net>
24438
24439 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
24440
244412010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 * disk/lvm.c (grub_lvm_checkvalue): New function.
24444 (grub_lvm_check_flag): Likewise.
24445
b79889ba
RM
244462010-07-01 Robert Millan <rmh@gnu.org>
24447
24448 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
24449 Support 'p' as partition separator on kernel of FreeBSD (used
24450 with GPT labels).
24451 (grub_util_biosdisk_get_grub_dev): Likewise.
24452
ec1d04f1
VS
244532010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 Yeeloong firmware port.
24456
24457 * boot/mips/yeeloong/fwstart.S: New file.
24458 * bus/cs5536.c (gpiodump): New const.
24459 (set_io_space): New function.
24460 (set_iod): Likewise.
24461 (set_p2d): Likewise.
24462 (grub_cs5536_init_geode): Likewise.
24463 * commands/mips/yeeloong/lsspd.c: New file.
24464 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
24465 (serial_mod_SOURCES): New variable.
24466 (serial_mod_CFLAGS): Likewise.
24467 (serial_mod_LDFLAGS): Likewise.
24468 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
24469 term/terminfo.c and term/tparm.c.
24470 (pkglib_IMAGES): Add fwstart.img.
24471 (fwstart_img_SOURCES): New variable.
24472 (fwstart_img_CFLAGS): Likewise.
24473 (fwstart_img_ASFLAGS): Likewise.
24474 (fwstart_img_LDFLAGS): Likewise.
24475 (fwstart_img_FORMAT): Likewise.
24476 (pkglib_MODULES): Add lsspd.mod.
24477 (lsspd_mod_SOURCES): New variable.
24478 (lsspd_mod_CFLAGS): Likewise.
24479 (lsspd_mod_LDFLAGS): Likewise.
24480 (pkglib_MODULES): Add halt.mod.
24481 (halt_mod_SOURCES): New variable.
24482 (halt_mod_CFLAGS): Likewise.
24483 (halt_mod_LDFLAGS): Likewise.
24484 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
24485 (serial_mod_SOURCES): Removed.
24486 (serial_mod_CFLAGS): Likewise.
24487 (serial_mod_LDFLAGS): Likewise.
24488 * disk/ata.c (check_device): New function.
24489 (grub_ata_device_initialize): Use check_device.
24490 (grub_ata_iterate): Recheck devices.
24491 (grub_ata_open): Likewise.
24492 (grub_atapi_iterate): Likewise.
24493 (grub_atapi_open): Likewise.
24494 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
24495 (GRUB_ATA_CH1_PORT1): Likewise.
24496 (GRUB_ATA_CH0_PORT2): Likewise.
24497 (GRUB_ATA_CH1_PORT2): Likewise.
24498 * include/grub/mips/loongson.h: New file.
24499 * include/grub/mips/yeeloong/ec.h: Likewise.
24500 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
24501 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
24502 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
24503 * include/grub/misc.h (grub_halt): Declare as noreturn.
24504 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
24505 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
24506 (UART_ENABLE_FIFO_TRIGGER1): New definition.
24507 (UART_ENABLE_DTRRTS): Likewise.
24508 (UART_ENABLE_MODEM): Removed.
24509 (UART_ENABLE_OUT2): New const.
24510 * include/grub/term.h (grub_term_register_input_active): New function.
24511 (grub_term_register_output_active): Likewise.
24512 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
24513 argument.
24514 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
24515 (init_pci): New function.
24516 (grub_machine_init): Execute platform init when firmware. Init serial.
24517 (grub_halt): Implement.
24518 (grub_exit): Likewise.
24519 (grub_reboot): Likewise.
24520 * term/serial.c (serial_hw_init): Update macros.
24521 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
24522 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
24523 (image_targets): New target mipsel-yeeloong-flash.
24524 (generate_image): Support IMAGE_YEELOONG_FLASH.
24525 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
24526 (grub_video_sm712_setup): Init card.
24527 (grub_video_sm712_set_palette): Removed.
24528 * video/sm712_init.c: New file.
24529
ff4a70d2
CW
245302010-06-30 Colin Watson <cjwatson@ubuntu.com>
24531
24532 * Makefile.in (install-local): Temporarily prepend $(builddir) to
24533 PATH when running help2man and then run it on the unadorned
24534 executable names, rather than passing $(builddir)/* paths to
24535 help2man. This avoids the build directory ending up in generated
24536 manual pages.
24537
1246efeb
CW
245382010-06-29 Colin Watson <cjwatson@ubuntu.com>
24539
24540 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
24541 to avoid accidents when debugging with 'sh -x'.
24542 * util/grub-mkrescue.in: Likewise.
24543 * util/grub.d/00_header.in: Likewise.
24544 * util/grub.d/10_hurd.in: Likewise.
24545 * util/grub.d/10_kfreebsd.in: Likewise.
24546 * util/grub.d/10_linux.in: Likewise.
24547 * util/grub.d/10_netbsd.in: Likewise.
24548 * util/grub.d/10_windows.in: Likewise.
24549 * util/grub.d/20_linux_xen.in: Likewise.
24550 * util/grub.d/30_os-prober.in: Likewise.
24551 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24552
1ba9b889
CW
245532010-06-29 Colin Watson <cjwatson@ubuntu.com>
24554
24555 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
24556 last character in the buffer.
24557 Reported by: Vladimir Serbinenko.
24558
dccaf99d
RM
245592010-06-29 Robert Millan <rmh@gnu.org>
24560
24561 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
24562 (Command-line and menu entry commands): Document `badram' command.
24563
d500ed12
RM
245642010-06-28 Robert Millan <rmh@gnu.org>
24565
24566 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
24567 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
24568 command using ${GRUB_BADRAM} as parameter.
24569
20bc84a6
CW
245702010-06-28 Colin Watson <cjwatson@ubuntu.com>
24571
24572 * docs/grub.texi (Device map): New section.
24573 (Themes): New section (stub).
24574 * Makefile.in (docs/grub.info): The info documentation now builds
24575 without errors. Make sure it stays that way.
24576
4045dee1
VS
245772010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24578
24579 Use normal parser for menu entries.
24580 Reported by: Thomas Frauendorfer
24581
24582 * include/grub/parser.h (grub_parser_execute): Don't export.
24583 * normal/menu.c (grub_menu_execute_entry_real): New function.
24584 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
24585
bca58c7b
CW
245862010-06-28 Colin Watson <cjwatson@ubuntu.com>
24587
24588 * docs/grub.texi (Embedded configuration): New section (replacing
24589 old "Preset Menu" stub).
24590 (Images): New section.
24591 (configfile): Note that any menu entries defined in `file' are shown
24592 immediately.
24593
dec53e63
JT
245942010-06-28 Josh Triplett <josh@joshtriplett.org>
24595
24596 * mmap/i386/pc/mmap_helper.S: Set CF on return.
24597
c06e40f7
CW
245982010-06-28 Colin Watson <cjwatson@ubuntu.com>
24599
24600 * util/grub-install.in: Add --debug-image= option.
24601
cb88052b
CW
246022010-06-28 Colin Watson <cjwatson@ubuntu.com>
24603
24604 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
24605 possible on Linux.
24606
24607 * util/deviceiter.c (check_device): Rename to ...
24608 (check_device_readable_unique): ... this. Update all callers.
24609 Maintain and check a list of which devices (by canonicalized name)
24610 have already been seen.
24611 (clear_seen_devices): New function.
24612 (compare_file_names) [__linux__]: New function.
24613 (grub_util_iterate_devices): Clear the list of seen devices on exit
24614 and (just in case) on entry.
24615 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
24616 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
24617 seen-devices list, superseded by general code in check_device.
24618
bbe34652
CW
246192010-06-28 Colin Watson <cjwatson@ubuntu.com>
24620
24621 * commands/cat.c (options): New variable.
24622 (grub_cmd_cat): Parse options. If the --dos option is given, print
24623 DOS-style "\r\n" line endings as simple newlines (Debian bug
24624 #586358).
24625 (GRUB_MOD_INIT): Use extcmd.
24626 (GRUB_MOD_FINI): Likewise.
24627 * docs/grub.texi (cat): Document --dos.
24628
412e09f3
VS
246292010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24630
24631 XEN with Linux grub-mkconfig support.
24632
24633 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
24634 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
24635 GRUB_CMDLINE_XEN_DEFAULT.
24636 * util/grub.d/20_linux_xen.in: New file.
24637
53f3ef38 246382010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
24639
24640 Initialise VGA video on qemu ourselves.
24641
24642 * boot/i386/qemu/boot.S: Don't call 0xc000.
24643 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
24644 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
24645 (kernel_img_HEADERS): Add pci.h.
24646 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
24647 * configure.ac: Force unifont on qemu and yeeloong.
24648 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
24649 (grub_vga_palette_write): Use correct register.
24650 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
24651 Call grub_qemu_init_cirrus.
24652 * kern/i386/qemu/init.c: New file.
24653 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
24654
24655 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
24656
c75be4fb
PR
246572010-06-26 Pavel Roskin <proski@gnu.org>
24658
24659 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
24660 13.
24661
d8034603
CW
246622010-06-26 Colin Watson <cjwatson@ubuntu.com>
24663
24664 * docs/grub.texi (Simple configuration): Explain that
24665 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
24666 set to `true' to disable their respective recovery entries, not
24667 merely set.
24668
3fa06487
CW
246692010-06-26 Colin Watson <cjwatson@ubuntu.com>
24670
24671 Make the `source' command slightly faster.
24672
24673 * normal/main.c (grub_normal_execute): Don't re-read list files when
24674 nested.
24675
e9b29642
CW
246762010-06-23 Colin Watson <cjwatson@ubuntu.com>
24677
24678 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
24679 field position and mask size to red fields from mode_info, not
24680 green.
24681 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
24682 Remove redundant tag->common.framebuffer_type assignment.
24683 Reported by: Seth Goldberg.
24684
e726542f
CW
246852010-06-23 Colin Watson <cjwatson@ubuntu.com>
24686
24687 Sync up other versions of the Linux loader with Robert Millan's
24688 change of 2010-01-09, "Make loader output a bit more user-friendly".
24689
24690 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
24691 grub_dprintf().
24692 (grub_cmd_linux): Likewise.
24693 (grub_cmd_initrd): Likewise.
24694 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
24695 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24696
d6e98a17
CW
246972010-06-21 Colin Watson <cjwatson@ubuntu.com>
24698
24699 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
24700 larger than MEMORY_MAP_SIZE.
24701
14d3f08e
BC
247022010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
24703
24704 Fix parallel build.
24705
24706 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
24707 dependency.
24708 * script/parser.y: #include grub_script.tab.h header.
24709
4f9613a3
VS
247102010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24711
24712 Support >3GiB and <16MiB RAM in i386-qemu.
24713
24714 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
24715 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
24716 (grub_lower_mem): Removed.
24717 (grub_upper_mem): Likewise.
24718 (mem_size): Made static.
24719 (above_4g): New variable.
24720 (grub_machine_mmap_init): Detect small mem_size and above_4g.
24721 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
24722 support.
24723
05e51879
VS
247242010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24725
24726 Cirrus 5446 and Bochs video cards support.
24727
24728 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
24729 video_bochs.mod
24730 (video_cirrus_mod_SOURCES): New variable.
24731 (video_cirrus_mod_CFLAGS): Likewise.
24732 (video_cirrus_mod_LDFLAGS): Likewise.
24733 (video_bochs_mod_SOURCES): Likewise.
24734 (video_bochs_mod_CFLAGS): Likewise.
24735 (video_bochs_mod_LDFLAGS): Likewise.
24736 * include/grub/vga.h: New file.
24737 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
24738 (grub_video_fb_set_page_t): New type.
24739 (grub_video_fb_setup): New prototype.
24740 (grub_video_fb_swap_buffers): Likewise.
24741 (grub_video_fb_get_info_and_fini): Likewise.
24742 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
24743 (CRTC_DATA_PORT): Likewise.
24744 (CRTC_CURSOR): Likewise.
24745 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24746 (CRTC_CURSOR_ADDR_LOW): Likewise.
24747 (CRTC_CURSOR_DISABLE): Likewise.
24748 (update_cursor): Use grub_vga_cr_write.
24749 (grub_vga_text_setcursor): Likewise.
24750 * video/bochs.c: New file.
24751 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
24752 (palette): Likewise.
24753 (palette_size): Likewise.
24754 (framebuffer): New variable.
24755 (grub_video_fb_init): Use 'framebuffer'.
24756 (grub_video_fb_fini): Likewise.
24757 (grub_video_fb_get_info): Likewise.
24758 (grub_video_fb_get_palette): Likewise.
24759 (grub_video_fb_set_palette): Likewise.
24760 (grub_video_fb_set_viewport): Likewise.
24761 (grub_video_fb_get_viewport): Likewise.
24762 (grub_video_fb_map_color): Likewise.
24763 (grub_video_fb_map_rgb): Likewise.
24764 (grub_video_fb_map_rgba): Likewise.
24765 (grub_video_fb_unmap_color): Likewise.
24766 (grub_video_fb_unmap_color_int): Likewise.
24767 (grub_video_fb_fill_rect): Likewise.
24768 (grub_video_fb_blit_bitmap): Likewise.
24769 (grub_video_fb_blit_render_target): Likewise.
24770 (grub_video_fb_scroll): Likewise.
24771 (grub_video_fb_create_render_target): Likewise.
24772 (grub_video_fb_doublebuf_blit_init): Likewise.
24773 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24774 (doublebuf_pageflipping_update_screen): New function.
24775 (doublebuf_pageflipping_init): Likewise.
24776 (grub_video_fb_setup): Likewise.
24777 (grub_video_fb_swap_buffers): Likewise.
24778 (grub_video_fb_get_info_and_fini): Likewise.
24779 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24780 All users updated.
24781 (doublebuf_pageflipping_commit): Restructured into ...
24782 (doublebuf_pageflipping_set_page): ... this.
24783 (doublebuf_pageflipping_update_screen): Removed.
24784 (doublebuf_pageflipping_init): Likewise.
24785 (double_buffering_init): Likewise.
24786 (grub_video_vbe_setup): Use grub_video_fb_setup.
24787 (grub_video_vbe_swap_buffers): Removed.
24788 (grub_video_vbe_set_active_render_target): Likewise.
24789 (grub_video_vbe_get_active_render_target): Likewise.
24790 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24791 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24792 grub_video_fb_set_active_render_target and
24793 grub_video_fb_get_active_render_target.
24794 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24795 (SEQUENCER_DATA_PORT): Likewise.
24796 (MAP_MASK_REGISTER): Likewise.
24797 (CRTC_ADDR_PORT): Likewise.
24798 (CRTC_DATA_PORT): Likewise.
24799 (START_ADDR_HIGH_REGISTER): Likewise.
24800 (START_ADDR_LOW_REGISTER): Likewise.
24801 (GRAPHICS_ADDR_PORT): Likewise.
24802 (GRAPHICS_DATA_PORT): Likewise.
24803 (READ_MAP_REGISTER): Likewise.
24804 (INPUT_STATUS1_REGISTER): Likewise.
24805 (INPUT_STATUS1_VERTR_BIT): Likewise.
24806 (get_map_mask): Use grub_vga_sr_read.
24807 (set_map_mask): Use grub_vga_sr_write.
24808 (set_read_map): Use grub_vga_gr_write.
24809 (set_start_address): Use grub_vga_cr_write.
24810 * video/sm712.c (framebuffer): Remove leftover fields.
24811
4321c64a
CW
248122010-06-20 Colin Watson <cjwatson@ubuntu.com>
24813
24814 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24815 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24816 instead. Replace the gfxterm backend check with a check that
24817 ${GRUB_PREFIX}/video.lst is non-empty.
24818 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24819 again.
24820 (load_video): New generated function. Call it before loading
24821 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24822 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24823 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24824 * docs/grub.texi (Simple configuration): Document
24825 GRUB_VIDEO_BACKEND.
24826
248272010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24828
24829 Use video functions in linux and xnu loaders.
24830
24831 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24832 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24833 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24834 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24835 loader/i386/pc/linux.c.
24836 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24837 (find_line_len): Removed.
24838 (find_framebuf): Likewise.
24839 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24840 * loader/i386/efi/xnu.c: Removed.
24841 * loader/i386/pc/xnu.c: Moved from here...
24842 * loader/i386/xnu.c: ...here.
24843
24844 Enable priorities in video drivers.
24845
24846 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24847 (grub_video_adapter): New field prio.
24848 (grub_video_register): Respect prio when inserting.
24849 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24850 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24851 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24852 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24853 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24854 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24855 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24856
24857 Fix SDL driver ID.
24858
24859 * include/grub/video.h (grub_video_driver_id_t): New value
24860 GRUB_VIDEO_DRIVER_SDL.
24861 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24862
7d24e434
CW
248632010-06-17 Colin Watson <cjwatson@ubuntu.com>
24864
24865 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24866 argument to printf.
24867 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24868
c88a83f6
CW
248692010-06-17 Colin Watson <cjwatson@ubuntu.com>
24870
24871 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24872 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24873
094dfb69
CW
248742010-06-17 Colin Watson <cjwatson@ubuntu.com>
24875
24876 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24877 directly, and recommend grub-install instead.
24878 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24879
2164da6b
CW
248802010-06-17 Colin Watson <cjwatson@ubuntu.com>
24881
24882 Fix i386-pc prefix handling with nested partitions (Debian bug
24883 #585068). Note that the case where the core image is booted using
24884 multiboot and relocated from its original location still requires
24885 more work.
24886
24887 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24888 with "(,", fill the boot drive in between those two characters, but
24889 expect that a full partition specification including partition map
24890 names will follow.
24891 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24892 specified, write a prefix without the drive name but including a
24893 full partition specification.
24894
044e2e60
CW
248952010-06-16 Colin Watson <cjwatson@ubuntu.com>
24896
24897 * util/grub-mkconfig.in: Ignore non-option arguments, for
24898 compatibility with older versions (before 2010-06-12) which did the
24899 same. In particular, this makes it easier to ship an update-grub
24900 wrapper which is compatible with that used with GRUB Legacy (Debian
24901 bug #586056).
24902
5591324f
GS
249032010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24904
24905 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24906 for manual page generation.
24907
662e24d5
GS
249082010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24909
24910 * po/POTFILES: Remove leftover commands/handler.c.
24911
8d70754e
CW
249122010-06-14 Colin Watson <cjwatson@ubuntu.com>
24913
24914 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24915 left this script non-functional.
24916
41160e2e
CW
249172010-06-14 Colin Watson <cjwatson@ubuntu.com>
24918
24919 * docs/man/grub-emu.h2m: New file.
24920
b5309cc1
CW
249212010-06-13 Colin Watson <cjwatson@ubuntu.com>
24922
24923 * docs/grub.texi (Commands): Document reduced command set in rescue
24924 mode.
24925 (cpuid): New section.
24926
fcb2d090
GS
249272010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24928
24929 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24930 new partition naming style.
24931 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24932
96e5c556
BC
249332010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24934
24935 Add "-o grub.iso" like cmdline options support.
24936
24937 * util/grub-install.in: Improve cmdline option parsing.
24938 * util/grub-mkconfig.in: Likewise.
24939 * util/grub-mkrescue.in: Likewise.
24940 * util/grub-reboot.in: Likewise.
24941 * util/grub-set-default.in: Likewise.
24942 * util/i386/efi/grub-install.in: Likewise.
24943 * util/ieee1275/grub-install.in: Likewise.
24944 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24945
c16be99b
CW
249462010-06-12 Colin Watson <cjwatson@ubuntu.com>
24947
24948 * .bzrignore: Ignore 41_custom.
24949
ce08a9fb
TS
249502010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24951
24952 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24953
7beac90c
CW
249542010-06-12 Colin Watson <cjwatson@ubuntu.com>
24955
24956 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24957 prototype declarations.
24958
24959 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24960 generating fs, partmap, and video lists.
24961 * include/grub/fs.h (grub_fs_register): Omit prototype if
24962 GRUB_LST_GENERATOR is defined.
24963 * include/grub/partition.h (grub_partition_map_register): Likewise.
24964 * include/grub/video.h (grub_video_register): Likewise.
24965
1c8f0f8d
JM
249662010-06-12 Javier Martín <lordhabbit@gmail.com>
24967
24968 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24969
a6085973
TS
249702010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24971
24972 * util/grub-mkrescue.in: Support --xorriso argument.
24973
25c56d29
VS
249742010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24975
24976 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24977 Suggested by: Thomas Schmitt.
24978
e03e4b24
VS
249792010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24980
24981 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24982 Suggested by: Thomas Schmitt.
24983
57711df6
VS
249842010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24985
24986 custom.cfg support.
24987
24988 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24989 * util/grub.d/41_custom.in: New file.
24990
ee62c427
CW
249912010-06-12 Colin Watson <cjwatson@ubuntu.com>
24992
24993 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24994 been merged back into normal.
24995
283af07a
CW
249962010-06-11 Colin Watson <cjwatson@ubuntu.com>
24997
24998 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24999 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
25000
56a0d956
CW
250012010-06-11 Colin Watson <cjwatson@ubuntu.com>
25002
25003 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
25004 when generating manual pages.
25005 * docs/man/grub-bin2h.h2m: New file.
25006 * docs/man/grub-editenv.h2m: New file.
25007 * docs/man/grub-fstest.h2m: New file.
25008 * docs/man/grub-install.h2m: New file.
25009 * docs/man/grub-macho2img.h2m: New file.
25010 * docs/man/grub-mkconfig.h2m: New file.
25011 * docs/man/grub-mkdevicemap.h2m: New file.
25012 * docs/man/grub-mkfont.h2m: New file.
25013 * docs/man/grub-mkimage.h2m: New file.
25014 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
25015 * docs/man/grub-mkrelpath.h2m: New file.
25016 * docs/man/grub-mkrescue.h2m: New file.
25017 * docs/man/grub-ofpathname.h2m: New file.
25018 * docs/man/grub-pe2elf.h2m: New file.
25019 * docs/man/grub-probe.h2m: New file.
25020 * docs/man/grub-reboot.h2m: New file.
25021 * docs/man/grub-script-check.h2m: New file.
25022 * docs/man/grub-set-default.h2m: New file.
25023 * docs/man/grub-setup.h2m: New file.
25024
3a37e322
VS
250252010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
25026
25027 Use FOR_* macros instead of *_iterate whenever possible.
25028
25029 * commands/handler.c: Removed.
25030 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
25031 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
25032 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
25033 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
25034 (grub_probe_SOURCES): Remove kern/parser.c.
25035 (util/grub-script-check.c_DEPENDENCIES): Removed.
25036 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
25037 and grub_script_check_init.c.
25038 (grub_script_check_init.lst): Removed.
25039 (grub_script_check_init.h): Likewise.
25040 (grub_script_check_init.c): Likewise.
25041 (pkglib_MODULES): Remove handler.mod and sh.mod.
25042 (handler_mod_SOURCES): Removed.
25043 (handler_mod_CFLAGS): Likewise.
25044 (handler_mod_LDFLAGS): Likewise.
25045 (normal_mod_SOURCES): Remove normal/handler.c.
25046 Add script/main.c, script/script.c, script/execute.c,
25047 script/function.c, script/lexer.c, grub_script.tab.c
25048 and grub_script.yy.c.
25049 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
25050 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25051 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
25052 (grub_setup_SOURCES): Remove kern/parser.c.
25053 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
25054 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
25055 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25056 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25057 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
25058 (grub_setup_SOURCES): Remove kern/parser.c.
25059 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
25060 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
25061 * include/grub/command.h (grub_command_iterate): Removed.
25062 (FOR_COMMANDS): New macro.
25063 * include/grub/dl.h (grub_dl): New member next.
25064 (grub_dl_iterate): Removed.
25065 (grub_dl_head): New variable declaration.
25066 (FOR_DL_MODULES): New macro.
25067 * include/grub/fs.h: Include list.h.
25068 (grub_fs): Make next first element.
25069 (grub_fs_list): New variable declaration.
25070 (grub_fs_register): Make inline.
25071 (grub_fs_unregister): Likewise.
25072 (grub_fs_iterate): Removed.
25073 (FOR_FILESYSTEMS): New macro.
25074 * include/grub/handler.h: Removed.
25075 * include/grub/list.h (grub_list_hook_t): Removed.
25076 (grub_list_test_t): Likewise.
25077 (grub_list_pop): Likewise.
25078 (grub_list_iterate): Likewise.
25079 (grub_list_insert): Likewise.
25080 (FOR_LIST_ELEMENTS): New macro.
25081 * include/grub/parser.h (grub_parser_class): Removed.
25082 (grub_parser_register): Likewise.
25083 (grub_parser_unregister): Likewise.
25084 (grub_parser_get_current): Likewise.
25085 (grub_parser_set_current): Likewise.
25086 (grub_register_rescue_parser): Likewise.
25087 (grub_rescue_parse_line): New function.
25088 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
25089 * include/grub/script_sh.h (grub_script_function_list): New variable
25090 declaration.
25091 (FOR_SCRIPT_FUNCTIONS): New macro.
25092 (grub_script_function_iterate): Removed.
25093 (grub_normal_parse_line): New prototype.
25094 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
25095 (FOR_DISABLED_TERM_INPUTS): Likewise.
25096 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
25097 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
25098 * include/grub/video.h (grub_video_adapter): Move 'next' to first
25099 element.
25100 (grub_video_register): Inline.
25101 (grub_video_unregister): Likewise.
25102 (grub_video_adapter_list): New variable declaration.
25103 (grub_video_iterate): Removed.
25104 (FOR_VIDEO_ADAPTERS): New macro.
25105 * kern/dl.c (grub_dl_list): Removed. All users updated.
25106 (grub_dl_iterate): Removed.
25107 * kern/fs.c (grub_fs_list): Make global.
25108 (grub_fs_register): Removed.
25109 (grub_fs_unregister): Likewise.
25110 (grub_fs_iterate): Likewise.
25111 * kern/handler.c: Removed.
25112 * kern/list.c (grub_list_pop): Removed.
25113 (grub_list_iterate): Likewise.
25114 (grub_list_insert): Likewise.
25115 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
25116 (grub_prio_list_insert): Don't use grub_list_insert.
25117 * kern/main.c (grub_register_rescue_parser): Don't call
25118 grub_register_rescue_parser.
25119 * kern/parser.c (grub_parser_class): Removed.
25120 (grub_parser_execute): Use grub_rescue_parse_line.
25121 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
25122 (grub_rescue_parser): Removed.
25123 (grub_register_rescue_parser): Likewise.
25124 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
25125 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
25126 (grub_auth_check_authentication): Likewise.
25127 * normal/completion.c (iterate_command): Removed.
25128 (grub_normal_do_completion): Use FOR_COMMANDS.
25129 * normal/handler.c: Removed.
25130 * normal/main.c (read_config_file): Remove parser changing.
25131 (grub_normal_execute): Don't call read_handler_list.
25132 (grub_normal_read_line_real): Statically allocate prompt.
25133 (grub_cmdline_run): Use grub_normal_parse_line.
25134 (GRUB_MOD_FINI): Don't call free_handler_list.
25135 * normal/menu_entry.c (run): Likewise.
25136 * script/function.c (grub_script_function_list): Make global.
25137 (grub_script_function_iterate): Removed.
25138 * script/main.c (grub_normal_parse_line): Make global.
25139 (grub_sh_parser): Removed.
25140 (GRUB_MOD_INIT): Likewise.
25141 (GRUB_MOD_FINI): Likewise.
25142 * tests/lib/functional_test.c (grub_functional_test): Use
25143 FOR_LIST_ELEMENTS.
25144 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
25145 (grub_test_run): Use FOR_LIST_ELEMENTS.
25146 * tests/lib/unit_test.c (main): Likewise.
25147 * util/deviceiter.c (grub_util_iterate_devices): Don't use
25148 grub_list_pop.
25149 * util/grub-fstest.c (grub_term_input_class): Removed.
25150 (grub_term_output_class): Likewise.
25151 * util/grub-probe.c: Likewise.
25152 * util/i386/pc/grub-setup.c: Likewise.
25153 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25154 * util/grub-script-check.c (main): Don't call grub_init_all and
25155 grub_fini_all.
25156 * video/video.c (grub_video_adapter_list): Make global.
25157 (grub_video_register): Removed.
25158 (grub_video_unregister): Likewise.
25159 (grub_video_iterate): Likewise.
25160
6289c3a7
VS
251612010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
25162
25163 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
25164 reported by Henrique Ferreiro.
25165
91460247
RM
251662010-06-09 Robert Millan <rmh@gnu.org>
25167
25168 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
25169 ones, when both are available.
25170
0ea7c4f9
GS
251712010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
25172
25173 Make --version uniform and avoid hard-coded program name.
25174
25175 * util/grub-mkimage.c (main): Use `program_name' instead of
25176 hard-coded string.
25177 * util/i386/pc/grub-setup.c (main): Likewise.
25178 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
25179 * util/grub-install.in: Save the basename of $0 in $self, and use the
25180 latter in informational messages. Use the same format for --version
25181 as the binary programs.
25182 * util/grub-mkconfig.in: Likewise.
25183 * util/grub-mkrescue.in: Likewise.
25184 * util/grub-reboot.in: Likewise.
25185 * util/grub-set-default.in: Likewise.
25186 * util/i386/efi/grub-install.in: Likewise.
25187 * util/ieee1275/grub-install.in: Likewise.
25188 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
25189
e8a6f3b6
GS
251902010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
25191
25192 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
25193 embedding area. Use <= instead of == when checking for non-emptiness.
25194
f4d095d7
GS
251952010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
25196
25197 * configure.ac: Add `.' to the directories searched for unifont.
25198
50e532ca
CW
251992010-06-08 Colin Watson <cjwatson@ubuntu.com>
25200
25201 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
25202 grub_script.yy.h.
25203
d39f3dec
CW
252042010-06-08 Colin Watson <cjwatson@ubuntu.com>
25205
25206 * docs/grub.texi (History): Expand to cover GRUB 2.
25207 (Serial terminal): Refer to `terminal_input' and `terminal_output'
25208 commands, not `terminal'.
25209 (serial): Likewise.
25210 (terminal_input): New section.
25211 (terminal_output): New section.
25212 (uppermem): New section (stub).
25213 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
25214
6ef0ddb4
CW
252152010-06-08 Colin Watson <cjwatson@ubuntu.com>
25216
25217 * docs/grub.texi (Security): Menu entries are unrestricted by
25218 default, not restricted to superusers as I had previously thought.
25219 Reword to account for this.
25220
e0f4c438
CW
252212010-06-07 Colin Watson <cjwatson@ubuntu.com>
25222
25223 * kern/emu/misc.c (device_mapper_null_log): New function.
25224 (grub_device_mapper_supported): New function.
25225 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
25226 prototype.
25227 * kern/emu/hostdisk.c (find_partition_start): Check whether
25228 device-mapper is supported before trying to use it.
25229 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
25230
da908200
CW
252312010-06-07 Colin Watson <cjwatson@ubuntu.com>
25232
25233 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
25234 (File name syntax): Likewise.
25235 (help): --all is no longer supported in GRUB 2. Be more precise
25236 about pattern matching.
25237
fb55c3ac
CW
252382010-06-07 Colin Watson <cjwatson@ubuntu.com>
25239
25240 * normal/completion.c (grub_normal_do_completion): When completing
25241 arguments to "set" and the current word contains an equals sign,
25242 skip to after the equals sign before starting completion.
25243
258c2573
CW
252442010-06-07 Colin Watson <cjwatson@ubuntu.com>
25245
25246 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
25247
ee75515e
CW
252482010-06-07 Colin Watson <cjwatson@ubuntu.com>
25249
25250 * docs/grub.texi (Network): New section.
25251 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
25252 `(nd)' as in GRUB Legacy.
25253 (pxe_unload): New section.
25254
a6a700aa
CW
252552010-06-07 Colin Watson <cjwatson@ubuntu.com>
25256
25257 * docs/grub.texi (Troubleshooting): `echo' is not usually available
25258 in the rescue shell, so recommend using `set' instead. Thanks,
25259 Jordan Uggla.
25260
4003dd38
CW
252612010-06-07 Colin Watson <cjwatson@ubuntu.com>
25262
25263 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
25264 (password): New section.
25265 (password_pbkdf2): New section.
25266 (search): New section.
25267 (Security): New section.
25268 (Troubleshooting): New section, currently very incomplete.
25269 (Invoking grub-mkpasswd-pbkdf2): New section.
25270 (Internals): New section, currently very incomplete.
25271
e1cbcc40
CW
252722010-06-07 Colin Watson <cjwatson@ubuntu.com>
25273
25274 * util/grub.d/00_header.in: Add some more quoting (of
25275 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
25276 work again.
25277 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
25278
db8fa1ad
CW
252792010-06-07 Colin Watson <cjwatson@ubuntu.com>
25280
25281 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
25282 to `count', fixing variable shadowing that broke the -c option.
25283
252842010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
25285
25286 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
25287 in case they contain spaces.
25288
f28a9212
CW
252892010-06-04 Colin Watson <cjwatson@ubuntu.com>
25290
25291 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
25292 "part_" to partmap module names, in line with grub-install.
25293 Reported by: Jindřich Makovička (Debian bug #584426).
25294
9cdfe32f
CW
252952010-06-04 Colin Watson <cjwatson@ubuntu.com>
25296
25297 * util/grub-mkimage.c: Make target-related error messages slightly
25298 more helpful; -O talks about "format". Explicitly point to the use
25299 of -O if no target is specified.
25300 Reported by: Didier Raboud (Debian bug #584415).
25301
795b593a
CW
253022010-06-03 Colin Watson <cjwatson@ubuntu.com>
25303
25304 * INSTALL: Document several build requirements for optional features
25305 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
25306
9d9b5833
GS
253072010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
25308
25309 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
25310 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
25311 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
25312
0819fec8
CW
253132010-06-02 Colin Watson <cjwatson@ubuntu.com>
25314
25315 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
25316 Thanks to Jordan Uggla for spotting this.
25317
49396b4f
VS
253182010-06-02 Aleš Nesrsta <starous@volny.cz>
25319
25320 Finally make USB usable.
25321
25322 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
25323 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
25324 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
25325 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
25326 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
25327 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
25328 (GRUB_OHCI_FSMPS): Likewise.
25329 (GRUB_OHCI_PERIODIC_START): Likewise.
25330 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
25331 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
25332 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
25333 (GRUB_OHCI_SET_PORT_RESET): Likewise.
25334 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
25335 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
25336 (grub_ohci_transaction): Likewise.
25337 (grub_ohci_transfer): Improve condition detection algorithms.
25338 Handle toggle property. Program the transactions correctly.
25339 Improve error handling. Various important fixups.
25340 (grub_ohci_portstatus): Put register writes in right order.
25341 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
25342 (grub_uhci_transfer): Don't show "failed" message on success.
25343 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
25344 array.
25345 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
25346 determine its size.
25347 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
25348 before initialization is completed. Use IN direction for empty
25349 transfers. Use last_trans and compute toggle.
25350 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
25351 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
25352 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
25353 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
25354 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
25355 (grub_usb_device): Increase toggle to 256.
25356 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
25357 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
25358 GRUB_USBMS_SUBCLASS_SFF8070.
25359 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
25360 (grub_scsi_inquiry): New member page and alloc_length.
25361 (grub_scsi_request_sense): New structure.
25362 (grub_scsi_request_sense_data): Likewise.
25363 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
25364 control.
25365 * disk/scsi.c (grub_scsi_request_sense): New function.
25366 (grub_scsi_test_unit_ready): Likewise.
25367 (grub_scsi_inquiry): Fill new fields.
25368 (grub_scsi_read_capacity): Likewise.
25369 (grub_scsi_read10): Add request sense at the end.
25370 (grub_scsi_read12): Likewise.
25371 (grub_scsi_write10): Likewise.
25372 (grub_scsi_write12): Likewise.
25373 (grub_scsi_open): Add Test Unit Ready.
25374 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
25375 Support additional subclasses. Con't clear halt yet. Activate the
25376 proper config. Calculate LUNs correctly.
25377 (grub_usbms_transfer): Various important fixups.
25378
253792010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25380
25381 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
25382 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
25383 (grub_ohci_fini_hw): New function.
25384 (grub_ohci_restore_hw): Likewise.
25385 (GRUB_MOD_INIT(ohci)): Register preboot hook.
25386 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
25387 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
25388
253892010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25390
25391 Dedicated DMA allocations.
25392
25393 * bus/pci.c (grub_memalign_dma32): New function
25394 (grub_dma_free): Likewise.
25395 (grub_dma_get_virt): Likewise.
25396 (grub_dma_get_phys): Likewise.
25397 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
25398 (grub_ohci_pci_iter): Use dma32_alloc.
25399 (grub_ohci_transfer): Likewise.
25400 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
25401 (grub_usb_bulk_readwrite): Likewise.
25402 * include/grub/pci.h: Add declarations.
25403
254042010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25405
25406 CS5536 support.
25407
25408 * bus/cs5536.c: New file.
25409 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
25410 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
25411 (cs5536_mod_SOURCES): New variable.
25412 (cs5536_mod_CFLAGS): Likewise.
25413 (cs5536_mod_LDFLAGS): Likewise.
25414 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
25415 machine/pci.h.
25416 (kernel_img_SOURCES): Add bus/cs5536.c.
25417 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
25418 usb_keyboard.mod.
25419 (usb_mod_SOURCES): New variable.
25420 (usb_mod_CFLAGS): New variable.
25421 (usb_mod_LDFLAGS): New variable.
25422 (usbtest_mod_SOURCES): New variable.
25423 (usbtest_mod_CFLAGS): New variable.
25424 (usbtest_mod_LDFLAGS): New variable.
25425 (ohci_mod_SOURCES): New variable.
25426 (ohci_mod_CFLAGS): New variable.
25427 (ohci_mod_LDFLAGS): New variable.
25428 (usbms_mod_SOURCES): New variable.
25429 (usbms_mod_CFLAGS): New variable.
25430 (usbms_mod_LDFLAGS): New variable.
25431 (usb_keyboard_mod_SOURCES): New variable.
25432 (usb_keyboard_mod_CFLAGS): New variable.
25433 (usb_keyboard_mod_LDFLAGS): New variable.
25434 * include/grub/smbus.h: New file.
25435 * include/grub/cs5536.h: New file.
25436
0b35b2a9
CW
254372010-06-02 Colin Watson <cjwatson@ubuntu.com>
25438
25439 * util/grub.d/00_header.in: Add safety check to make sure that
25440 ${locale_dir} exists before trying to probe it.
25441
ca0afd5b
CW
254422010-06-02 Colin Watson <cjwatson@ubuntu.com>
25443
25444 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
25445 per the GNU Coding Standards; this is now too obscure to be worth
25446 documenting.
25447 (QNX): Likewise.
25448 (chainloader): Remove cross-reference to `SCO UnixWare'.
25449
1c41aa78
CW
254502010-06-02 Colin Watson <cjwatson@ubuntu.com>
25451
25452 * docs/grub.texi (Chain-loading): New section.
25453 (DOS/Windows): New section, borrowed from GRUB Legacy with details
25454 adjusted for GRUB 2.
25455 (SCO UnixWare): Likewise.
25456 (QNX): Likewise.
25457 (chainloader): Add reference to `Block list syntax'.
25458 (drivemap): New section.
25459 (parttool): New section.
25460
bb8ea0f5
CW
254612010-06-02 Colin Watson <cjwatson@ubuntu.com>
25462
25463 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
25464 the grub shell'.
25465 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
25466 (Installing GRUB using grub-install): Remove reference to the grub
25467 shell; mention `grub-mkimage' and `grub-setup' instead.
25468 (Invoking grub-install): Likewise.
25469 (Interface): Add reference to `Menu entry editor'.
25470 (serial): Remove `--device' option.
25471
288dd6ed
CW
254722010-06-02 Colin Watson <cjwatson@ubuntu.com>
25473
25474 * docs/grub.texi (Configuration): New section, documenting
25475 configuration file generation using grub-mkconfig. I've left a slot
25476 for documenting the full shell scripting format but have not yet
25477 started on writing that up.
25478 (Invoking grub-mkconfig): New section.
25479
34c9f0e9
CW
254802010-06-02 Colin Watson <cjwatson@ubuntu.com>
25481
25482 * docs/grub.texi (direntry): Remove grub-terminfo reference.
25483 (GNU GRUB manual): Likewise.
25484 (General commands): Update description of `terminfo' for GRUB 2.
25485
9121567e
CW
254862010-06-02 Colin Watson <cjwatson@ubuntu.com>
25487
25488 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
25489 (GRUB_MOD_INIT): Fix capitalisation.
25490 * docs/grub.texi (Command-line and menu entry commands): Document
25491 gettext and gptsync commands.
25492
ab631611
CW
254932010-06-02 Colin Watson <cjwatson@ubuntu.com>
25494
25495 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
25496 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
25497
bde4a9ac
CW
254982010-06-01 Colin Watson <cjwatson@ubuntu.com>
25499
25500 Add btrfs probing support, currently only in the single-device case.
25501
25502 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
25503 function.
25504 (grub_guess_root_device): Call find_root_device_from_mountinfo
25505 before looking in /dev.
25506
b1d17e10
VS
255072010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25508
25509 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
25510 GRUB_DISK_SIZE_UNKNOWN.
25511 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
25512
dfbfe004
JS
255132010-05-31 Jiro SEKIBA <jir@unicus.jp>
25514
25515 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
25516 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
25517 corrupted or not synced properly.
25518
c2ffc8e9
VS
255192010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25520
25521 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
25522 Reported by: Seth Goldberg.
25523
56293166
VS
255242010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25525
25526 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
25527 addition of dest.
25528 Reported by: Seth Goldberg.
25529
7620e7de
VS
255302010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25531
25532 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
25533 Reported by: Seth Goldberg.
25534
c837af3f
VS
255352010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25536
25537 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
25538 64-bit address as signed on MIPS.
25539
c7c75cf4
CW
255402010-05-28 Colin Watson <cjwatson@ubuntu.com>
25541
25542 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
25543 to the empty string.
25544
fa4b8490
BC
255452010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
25546
25547 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
25548
25549 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
25550 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
25551 * kern/misc.c (__enable_execute_stack): Disable on
25552 GRUB_MACHINE_EMU.
25553
a33075b9
CW
255542010-05-28 Colin Watson <cjwatson@ubuntu.com>
25555
25556 Make grub-probe work with symbolic links under /dev/mapper as well
25557 as with real block devices. The Linux world seems to be (at best)
25558 in transition here, and GRUB shouldn't get caught in the middle.
25559
25560 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
25561 /dev/mapper.
25562
d8708134
CW
255632010-05-27 Colin Watson <cjwatson@ubuntu.com>
25564
25565 * util/grub-script-check.c (main): Ensure defined behaviour on empty
25566 input files (in which case exit zero).
25567
db2102a0
CW
255682010-05-27 Colin Watson <cjwatson@ubuntu.com>
25569
25570 * kern/emu/misc.c (canonicalize_file_name): realpath can still
25571 return NULL for various reasons even if it has a maximum-length
25572 buffer: for example, there might be a symlink loop, or the path
25573 might exceed PATH_MAX. If this happens, return NULL.
25574
5fdba519
RM
255752010-05-27 Robert Millan <rmh@gnu.org>
25576
25577 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
25578 partmap module to handle cross-partmap setups.
25579 Reported by Orestes Mas. Gràcies!
25580
d1d368e4
CW
255812010-05-27 Colin Watson <cjwatson@ubuntu.com>
25582
25583 * util/grub-mkrescue.in: Initialise override_dir rather than
25584 assuming that it's unset or empty in the environment.
25585
95ac3c73
GS
255862010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
25587
25588 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
25589 variable index into p_index to suppress a warning with -Wshadow.
25590
7d8c0213
BC
255912010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
25592
25593 * INSTALL: Added flex >= 2.5.35 requirement.
25594
db4d5813
VS
255952010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25596
25597 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
25598
f24f4300
VS
255992010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25600
25601 cmostest support.
25602
25603 * commands/i386/cmostest.c: New file.
25604 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
25605 (cmostest_mod_SOURCES): New variable.
25606 (cmostest_mod_CFLAGS): Likewise.
25607 (cmostest_mod_LDFLAGS): Likewise.
25608 * conf/i386-pc.rmk: Likewise.
25609 * docs/grub.texi (Vendor power-on keys): New section.
25610 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
25611 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
25612 and GRUB_BUTTON_CMOS_ADDRESS.
25613 * util/grub.d/00_header.in: Handle powering-on by separate button.
25614
ad603f61
VS
256152010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25616
25617 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
25618 Removed drawing_scrollbar argument. All users updated
25619 Fixes #29792.
25620 Reported by Jo Shields
25621
3ecb080a
VS
256222010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25623
25624 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
25625 buffer since gfxterm handles double repaint.
25626
5f2316c1
VS
256272010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25628
25629 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
25630 * term/gfxterm.c (real_scroll): Likewise.
25631
9a25f885
VS
256322010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25633
25634 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
25635 before calling BIOS.
25636
39fbb79a
VS
256372010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25638
25639 * include/grub/i18n.h: Always enable grub_gettext.
25640
228cfa97
VS
256412010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25642
25643 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
25644 partition naming style.
25645
21717c8f
CW
256462010-05-21 Colin Watson <cjwatson@ubuntu.com>
25647
25648 * util/grub-mkconfig.in: Fix handling of -o so that it works when
25649 not the first option.
25650
c0f48e65
CW
256512010-05-20 Colin Watson <cjwatson@ubuntu.com>
25652
25653 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
25654
96779aec
CW
256552010-05-20 Colin Watson <cjwatson@ubuntu.com>
25656
25657 * util/misc.c: Move inclusion of <limits.h> to ...
25658 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
25659
fa9d256e
GS
256602010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
25661
25662 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
25663 Fix merge error in NetBSD code.
25664 (find_partition_start) [__NetBSD__]: Likewise.
25665
123b7a85
BC
256662010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
25667
25668 Fix grub-mkrescue usage unit testing.
25669
25670 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
25671
74276c0d
CF
256722010-05-18 Christian Franke <franke@computer.org>
25673
25674 * util/grub.d/10_windows.in: Use path names instead of
25675 drive letters to prevent warning from Cygwin 1.7.
25676 Add drivemap command to menuentry if needed.
25677
c4f7b523
ST
256782010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
25679
25680 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
25681 gnumach and gnumach.gz.
25682
95b97950
VS
256832010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25684
25685 * include/grub/i18n.h (gettext): Inline instead of using #define.
25686 (grub_gettext): Likewise.
25687 (_): Likewise.
25688
01b8d2d7
VS
256892010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25690
25691 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
25692 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
25693 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
25694 (main): Add a slash after pkglibdirroot.
25695
654e1d1e
VS
256962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25697
25698 * util/grub-install.in: Add missing "in" keyword.
25699
26966aeb
VS
257002010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
25703 Reported by: Seth Goldberg.
25704
75006747
VS
257052010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25706
25707 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
25708
74cbf5bd
CW
257092010-05-18 Colin Watson <cjwatson@ubuntu.com>
25710
25711 * configure.ac: Check for Linux device-mapper support.
25712
25713 * util/hostdisk.c (device_is_mapped): New function.
25714 (find_partition_start): New function, partly broken out from
25715 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
25716 device-mapper support added.
25717 (linux_find_partition): Use find_partition_start.
25718 (convert_system_partition_to_system_disk): Add `st' argument.
25719 Support Linux /dev/mapper/* devices if device-mapper support is
25720 available; only DM-RAID devices are understood at present.
25721 (find_system_device): Add `st' argument. Pass it to
25722 convert_system_partition_to_system_disk.
25723 (grub_util_biosdisk_get_grub_dev): Pass stat result to
25724 find_system_device and convert_system_partition_to_system_disk. Use
25725 find_partition_start.
25726
25727 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
25728 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
25729 * util/deviceiter.c [__linux__]: Define MINOR.
25730 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
25731 * util/mkdevicemap.c (grub_putchar): New function.
25732 (grub_getkey): New function.
25733 (grub_refresh): New function.
25734 (main): Set debug=all if -v -v is used.
25735
355b51e9
CW
257362010-05-18 Colin Watson <cjwatson@ubuntu.com>
25737
25738 Fix build with non-GNU libcs.
25739
25740 * util/misc.c (canonicalize_file_name): Move to ...
25741 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
25742 grub_make_system_path_relative_to_its_root.
25743
7fb5c25f
CW
257442010-05-18 Colin Watson <cjwatson@ubuntu.com>
25745
25746 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
25747 we handle finding grub-mkimage. Default to finding grub-mkimage in
25748 ${bindir} with program_transform_name applied, and provide a
25749 --grub-mkimage option to override this.
25750
1d3293d6
VS
257512010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25752
25753 Remove grub-mkisofs.
25754
25755 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
25756 (grub_mkisofs_SOURCES): Removed.
25757 (grub_mkisofs_CFLAGS): Removed.
25758 * util/mkisofs/defaults.h: Removed.
25759 * util/mkisofs/eltorito.c: Likewise.
25760 * util/mkisofs/exclude.h: Likewise.
25761 * util/mkisofs/hash.c: Likewise.
25762 * util/mkisofs/include/: Likewise.
25763 * util/mkisofs/include/fctldefs.h: Likewise.
25764 * util/mkisofs/include/mconfig.h: Likewise.
25765 * util/mkisofs/include/prototyp.h: Likewise.
25766 * util/mkisofs/include/statdefs.h: Likewise.
25767 * util/mkisofs/iso9660.h: Likewise.
25768 * util/mkisofs/joliet.c: Likewise.
25769 * util/mkisofs/match.c: Likewise.
25770 * util/mkisofs/match.h: Likewise.
25771 * util/mkisofs/mkisofs.c: Likewise.
25772 * util/mkisofs/mkisofs.h: Likewise.
25773 * util/mkisofs/msdos_partition.h: Likewise.
25774 * util/mkisofs/multi.c: Likewise.
25775 * util/mkisofs/name.c: Likewise.
25776 * util/mkisofs/rock.c: Likewise.
25777 * util/mkisofs/tree.c: Likewise.
25778 * util/mkisofs/write.c: Likewise.
25779
5dde9afe
VS
257802010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25781
25782 Unify grub-mkimage accross platforms.
25783
25784 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25785 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25786 (grub_mkelfimage_SOURCES): Removed.
25787 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25788 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25789 (bin_UTILITIES): Add grub-mkimage.
25790 (grub_mkimage_SOURCES): New variable.
25791 (kernel_img_HEADERS): Remove machine/kernel.h.
25792 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25793 (pkglib_PROGRAMS): Add kernel.img.
25794 (kernel_img_HEADERS): Add machine/kernel.h.
25795 (kernel_img_FORMAT): Removed.
25796 (bin_UTILITIES): Remove grub-mkimage.
25797 (grub_mkimage_SOURCES): Removed.
25798 (grub_mkimage_CFLAGS): Likewise.
25799 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25800 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25801 (pkglib_PROGRAMS): Add kernel.img.
25802 (bin_UTILITIES): Remove grub-mkimage.
25803 (grub_mkimage_SOURCES): Removed.
25804 (grub_mkimage_CFLAGS): Likewise.
25805 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25806 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25807 (pkglib_PROGRAMS): Add kernel.img.
25808 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25809 (pkglib_PROGRAMS): Add kernel.img.
25810 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25811 (grub_mkimage_SOURCES): Removed.
25812 (grub_mkimage_CFLAGS): Likewise.
25813 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25814 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25815 (pkglib_PROGRAMS): Add kernel.img.
25816 (bin_UTILITIES): Remove grub-mkimage.
25817 (grub_mkimage_SOURCES): Removed.
25818 (grub_mkimage_CFLAGS): Likewise.
25819 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25820 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25821 (grub_mkimage_SOURCES): Removed.
25822 (grub_mkimage_CFLAGS): Likewise.
25823 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25824 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25825 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25826 (grub_pe32_optional_header): ... this.
25827 (grub_pe64_optional_header): ... and this. All users updated.
25828 (GRUB_PE32_PE32_MAGIC): Split into ..
25829 (GRUB_PE32_PE32_MAGIC): .. this.
25830 (GRUB_PE32_PE64_MAGIC): .. and this.
25831 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25832 * include/grub/elf.h (PT_GNU_STACK): New definition.
25833 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25834 * include/grub/i386/efi/kernel.h: Likewise.
25835 * include/grub/i386/kernel.h: Likewise.
25836 * include/grub/i386/pc/kernel.h: Likewise.
25837 * include/grub/i386/qemu/boot.h: Likewise.
25838 * include/grub/mips/kernel.h: Likewise.
25839 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25840 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25841 * include/grub/powerpc/kernel.h: Likewise.
25842 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25843 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25844 * include/grub/sparc64/kernel.h: Likewise.
25845 * include/grub/x86_64/efi/kernel.h: Likewise.
25846 * include/grub/x86_64/kernel.h: Likewise.
25847 * include/grub/offsets.h: New file.
25848 * include/grub/kernel.h (grub_module_info): Split into ...
25849 (grub_module_info32): ... this.
25850 (grub_module_info64): ... and this.
25851 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25852 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25853 (grub_boot_blocklist): Moved from here ...
25854 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25855 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25856 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25857 * include/grub/types.h (grub_target_to_host16): Removed.
25858 (grub_target_to_host32): Likewise.
25859 (grub_target_to_host64): Likewise.
25860 (grub_host_to_target16): Likewise.
25861 (grub_host_to_target32): Likewise.
25862 (grub_host_to_target64): Likewise.
25863 (grub_host_to_target_addr): Likewise.
25864
25865 Support grub-mkrescue for efi, coreboot and qemu.
25866
25867 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25868 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25869 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25870 * util/grub-mkrawimage.c: Moved from here ...
25871 * util/grub-mkimage.c: ... here. All users updated.
25872 (ALIGN_ADDR): Use image_target.
25873 (TARGET_NO_FIELD): New const.
25874 (image_target_desc): New type.
25875 (image_targets): New array.
25876 (grub_target_to_host64): Use image_target.
25877 (grub_target_to_host32): Likewise.
25878 (grub_target_to_host16): Likewise.
25879 (grub_host_to_target64): Likewise.
25880 (grub_host_to_target32): Likewise.
25881 (grub_host_to_target16): Likewise.
25882 (grub_host_to_target_addr): Likewise.
25883 (generate_image): Handle multiimage.
25884 (main): Require -O parameter. All users updated.
25885 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25886 util/efi/grub-mkimage.c
25887 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25888 New option --rom-directory.
25889 Use xorriso.
25890 * util/i386/efi/grub-mkimage.c: Removed.
25891 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25892 (grub_target_to_host32): Likewise.
25893 (grub_target_to_host64): Likewise.
25894 (grub_host_to_target16): Likewise.
25895 (grub_host_to_target32): Likewise.
25896 (grub_host_to_target64): Likewise.
25897 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25898 (grub_target_to_host32): Likewise.
25899 (grub_target_to_host64): Likewise.
25900 (grub_host_to_target16): Likewise.
25901 (grub_host_to_target32): Likewise.
25902 (grub_host_to_target64): Likewise.
25903
f4fc97d0
BC
259042010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25905
25906 Source tree is reorganized for emu build.
25907
25908 * include/grub/util/console.h: Move from here...
25909 * include/grub/emu/console.h: ...to here.
25910 * include/grub/util/getroot.h: Move from here...
25911 * include/grub/emu/getroot.h: ...to here.
25912 * include/grub/util/hostdisk.h: Move from here...
25913 * include/grub/emu/hostdisk.h: ...to here.
25914 * util/console.c: Move from here...
25915 * kern/emu/console.c: ...to here.
25916 * util/getroot.c: Move from here...
25917 * kern/emu/getroot.c: ...to here.
25918 * util/grub-emu.c: Move from here...
25919 * kern/emu/main.c: ...to here.
25920 * util/hostdisk.c: Move from here...
25921 * kern/emu/hostdisk.c: ...to here.
25922 * util/hostfs.c: Move from here...
25923 * kern/emu/hostfs.c: ...to here.
25924 * util/mm.c: Move from here...
25925 * kern/emu/mm.c: ...to here.
25926 * util/pci.c: Move from here...
25927 * bus/emu/pci.c: ...to here.
25928 * util/sdl.c: Move from here...
25929 * video/emu/sdl.c: ...to here.
25930 * util/time.c: Move from here...
25931 * kern/emu/time.c: ...to here.
25932 * util/usb.c: Move from here...
25933 * bus/usb/emu/usb.c: ...to here.
25934
25935 * include/grub/emu/misc.h: New header for grub-emu functions.
25936 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25937
25938 * conf/any-emu.rmk: Rule updates for above renames.
25939 * conf/common.rmk: Likewise.
25940 * conf/i386-pc.rmk: Likewise.
25941 * conf/i386-qemu.rmk: Likewise.
25942 * conf/mips.rmk: Likewise.
25943 * conf/sparc64-ieee1275.rmk: Likewise.
25944 * conf/x86-efi.rmk: Likewise.
25945
25946 * disk/lvm.h: #include updates for above renames.
25947 * util/grub-mkrelpath.c: Likewise.
25948 * util/grub-probe.c: Likewise.
25949 * util/i386/pc/grub-setup.c: Likewise.
25950 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25951 * kern/emu/console.c: Likewise.
25952 * kern/emu/getroot.c: Likewise.
25953 * kern/emu/hostdisk.c: Likewise.
25954 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25955
25956 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25957 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25958 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25959 * util/misc.c: Remove grub-emu functions.
25960
cced9145
VS
259612010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25962
25963 Fix gfxmenu crash.
25964 Reported by: Thorsten Grützmacher.
25965
25966 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25967 timeout hook.
25968 (circprog_set_property): Register and unregister timeout hook.
25969 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25970 (label_destroy): Free template. and unregister hook.
25971 (label_set_state): New function.
25972 (label_set_property): Handle templates and hooks.
25973 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25974 timeout hook.
25975 (progress_bar_set_property): Register and unregister timeout hook.
25976 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25977 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25978 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25979 (update_timeout_visit): Removed.
25980 (update_timeouts): New function.
25981 (redraw_timeouts): Likewise.
25982 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25983 (grub_gfxmenu_clear_timeout): Likewise.
25984 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25985 (grub_gfxmenu_timeout_notify): Likewise.
25986 (grub_gfxmenu_timeout_notifications): New external variable.
25987 (grub_gfxmenu_timeout_register): New function.
25988 (grub_gfxmenu_timeout_unregister): Likewise.
25989
c6e5caab
VS
259902010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25991
25992 Transform (broken) vga terminal into (working) vga video driver.
25993
25994 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25995 video/i386/pc/vga.c.
25996 * include/grub/video.h (grub_video_driver_id):
25997 Add GRUB_VIDEO_DRIVER_VGA.
25998 * term/i386/pc/vga.c: Renamed to ...
25999 * video/i386/pc/vga.c: ...this
26000 (DEBUG_VGA): Removed.
26001 (CHAR_WIDTH): Likewise.
26002 (CHAR_HEIGHT): Likewise.
26003 (TEXT_WIDTH): Likewise.
26004 (TEXT_HEIGHT): Likewise.
26005 (DEFAULT_FG_COLOR): Likewise.
26006 (DEFAULT_BG_COLOR): Likewise.
26007 (colored_char): Likewise.
26008 (xpos): Likewise.
26009 (ypos): Likewise.
26010 (cursor_state): Likewise.
26011 (fg_color): Likewise.
26012 (bg_color): Likewise.
26013 (text_buf): Likewise.
26014 (page): Likewise.
26015 (font): Likewise.
26016 (framebuffer): New variable.
26017 (set_read_map): Disabled.
26018 (setup): New variable.
26019 (is_target): Likewise.
26020 (grub_vga_mod_init): Likewise.
26021 (grub_vga_mod_fini): Likewise.
26022 (check_vga_mem): Likewise.
26023 (write_char): Likewise.
26024 (write_cursor): Likewise.
26025 (scroll_up): Likewise.
26026 (grub_vga_putchar): Likewise.
26027 (grub_vga_getcharwidth): Likewise.
26028 (grub_vga_getwh): Likewise.
26029 (grub_vga_getxy): Likewise.
26030 (grub_vga_gotoxy): Likewise.
26031 (grub_vga_cls): Likewise.
26032 (grub_vga_setcolorstate): Likewise.
26033 (grub_vga_setcursor): Likewise.
26034 (grub_video_vga_init): New function.
26035 (grub_video_vga_setup): Likewise.
26036 (grub_video_vga_fini): Likewise.
26037 (update_target): Likewise.
26038 (grub_video_vga_blit_bitmap): Likewise.
26039 (grub_video_vga_blit_render_target): Likewise.
26040 (grub_video_vga_set_active_render_target): Likewise.
26041 (grub_video_vga_get_active_render_target): Likewise.
26042 (grub_video_vga_swap_buffers): Likewise.
26043 (grub_video_vga_set_palette): Likewise.
26044 (grub_video_vga_get_info_and_fini): Likewise.
26045 (grub_vga_term): Removed.
26046 (grub_video_vga_adapter): New variable.
26047 (GRUB_MOD_INIT): Register a video driver instead of terminal.
26048 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
26049
2bf61a98
VS
260502010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
26051
26052 * video/readers/jpeg.c: Indented.
26053
09ddcd11
VS
260542010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
26055
26056 Various jpeg cleanups.
26057
26058 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
26059 (grub_jpeg_decode_quan_table): Use sizeof.
26060 (grub_jpeg_decode_du): Use ARRAY_SIZE.
26061
e5507505
PH
260622010-05-05 Peter Hurley <No e-mail available> (tiny change)
26063
26064 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
26065 tables. Ignore non-last ac bit.
26066 (grub_jpeg_decode_quan_table): Likewise.
26067
7e720a9b
VS
260682010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
26069
26070 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
26071 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
26072 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
26073 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
26074 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
26075 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
26076
a7fc080b
VS
260772010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
26078
26079 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
26080 error.
26081
2bf6012d
VS
260822010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
26083
26084 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
26085
265d68cd
VS
260862010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26087
26088 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
26089 condition.
26090
260912010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
26092
26093 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
26094 part.
26095
265d68cd 260962010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
26097
26098 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
26099 pointers.
26100
265d68cd 261012010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
26102
26103 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
26104
d1b61374
CF
261052010-05-01 Christian Franke <franke@computer.org>
26106
26107 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
26108 Remove broken Cygwin path conversion.
26109 * util/misc.c: [__CYGWIN__] Add include and define.
26110 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
26111 for Cygwin 1.7.
26112 (make_system_path_relative_to_its_root): Simplify loop, replace early
26113 return by break.
26114 [__CYGWIN__] Add conversion to win32 path.
26115 Include "/" case in trailing slash removal.
26116
3558c6e9
VS
261172010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26118
26119 * kern/main.c (grub_load_config): Fix copy-pasted comment.
26120 Reported by: Seth Goldberg
26121
f5f3ff93
VS
261222010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26123
26124 * commands/help.c (grub_cmd_help): Fix a typo.
26125 Reported by: Seth Goldberg
26126
d8b5cd40
VS
261272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26128
26129 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
26130 name and add N_.
26131 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
26132 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
26133 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
26134 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
26135 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
26136 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
26137 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26138 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26139 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26140 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26141 * normal/context.c (GRUB_MOD_INIT): Likewise.
26142 * normal/main.c (GRUB_MOD_INIT): Likewise.
26143 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
26144 * term/serial.c (GRUB_MOD_INIT): Likewise.
26145 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26146
88c14915
VS
261472010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26148
26149 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
26150 extra == 0.
26151
165134bc
VS
261522010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26153
26154 * commands/iorw.c: New file.
26155 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
26156 (iorw_mod_SOURCES): New variable.
26157 (iorw_mod_CFLAGS): Likewise.
26158 (iorw_mod_LDFLAGS): Likewise.
26159
c5ac9b32
VS
261602010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26161
26162 Hotkey support
26163
26164 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
26165 * normal/main.c (hotkey_aliases): New variable.
26166 (grub_normal_add_menu_entry): Parse "--hotkey".
26167 * normal/menu_text.c (run_menu): Handle hotkeys.
26168
ce60689c
VS
261692010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26170
26171 * kern/i386/coreboot/init.c (grub_machine_init): Call
26172 grub_machine_mmap_init on qemu.
26173
0359d006
VS
261742010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26175
26176 * boot/i386/qemu/boot.S: Add a missing .code16.
26177
7819a456
VS
261782010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26179
26180 Use LBIO on coreboot.
26181
26182 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
26183 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
26184 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
26185 New declaration.
26186 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
26187 grub_machine_mmap_init on coreboot.
26188 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
26189 GRUB_LINUXBIOS_MEMBER_LINK.
26190 (grub_machine_mmap_iterate): Fix declaration.
26191 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
26192
7210dca9
VS
261932010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26194
26195 Split coreboot and multiboot ports.
26196
26197 * conf/i386-multiboot.rmk: New file.
26198 * configure.ac: Add multiboot port.
26199 * include/grub/i386/multiboot/boot.h: New file.
26200 * include/grub/i386/multiboot/console.h: Likewise.
26201 * include/grub/i386/multiboot/init.h: Likewise.
26202 * include/grub/i386/multiboot/kernel.h: Likewise.
26203 * include/grub/i386/multiboot/loader.h: Likewise.
26204 * include/grub/i386/multiboot/memory.h: Likewise.
26205 * include/grub/i386/multiboot/serial.h: Likewise.
26206 * include/grub/i386/multiboot/time.h: Likewise.
26207 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
26208 * loader/multiboot.c: Likewise.
26209 * loader/multiboot_mbi2.c: Likewise.
26210 * util/grub-mkrescue.in: Generate multiboot rescue.
26211
6f8aaf68
VS
262122010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26213
3080f7a7
VS
26214 * kern/parser.c (grub_parser_execute): Cope with read-only config.
26215
262162010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26217
26218 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
26219
26220 * commands/terminal.c (abstract_terminal): New struct.
26221 (handle_command): New function. Based on grub_cmd_terminal_input.
26222 (grub_cmd_terminal_input): Use handle_command.
26223 (grub_cmd_terminal_output): Use handle_command.
26224
a8ebb841
BC
262252010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
26226
26227 Fix comment handling.
26228
26229 * tests/grub_script_comments.in: New testcase.
26230 * conf/tests.rmk: Rules for new testcase.
26231 * script/yylex.l: Updated flex rules.
26232
bb06ba08
ST
262332010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
26234
26235 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
26236 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
26237 if argc is 1.
bb06ba08 26238
cc9d2425
VS
262392010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26240
26241 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
26242 autogen issues.
26243
460d8402
CF
262442010-04-26 Christian Franke <franke@computer.org>
26245
26246 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
26247 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
26248 (grub_get_prefix): Remove function.
26249 * util/grub-emu.c (main): Replace grub_get_prefix () call by
26250 make_system_path_relative_to_its_root ().
26251 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
26252
553c01f9
CF
262532010-04-24 Christian Franke <franke@computer.org>
26254
26255 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
26256 (kernel_img_LDFLAGS): Remove -static-libgcc.
26257
2aec1692
CF
262582010-04-24 Christian Franke <franke@computer.org>
26259
26260 * configure.ac: Do not CHECK_BSS_START_SYMBOL
26261 and CHECK_END_SYMBOL if grub-emu is built.
26262 Unset TARGET_OBJ2ELF if grub-emu is built
26263 without module support.
26264
f67dc308
JS
262652010-04-24 Jiro SEKIBA <jir@unicus.jp>
26266
26267 Nilfs2 support.
26268
26269 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
26270 (grub_fstest_SOURCES): Likewise.
26271 (pkglib_MODULES): Add nilfs2.mod.
26272 (nilfs2_mod_SOURCES): New variable.
26273 (nilfs2_mod_CFLAGS): Likewise.
26274 (nilfs2_mod_LDFLAGS): Likewise.
26275 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
26276 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
26277 * fs/nilfs2.c: New file.
26278
4ba8d354
VS
262792010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
26280
26281 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
26282 is not supported.
26283
0d2c20c6
GS
262842010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
26285
26286 Add grub-mkconfig support for NetBSD.
26287
26288 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
26289 * util/grub-mkconfig.in: export new NetBSD specific variables.
26290 * po/POTFILES-shell: added 10_netbsd.in.
26291 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
26292
bc4a2d83
BC
262932010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
26294
26295 Fix emu build with grub-emu-pci and grub-emu-modules.
26296
26297 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
26298 functions.
26299 * include/grub/libpciaccess.h: New file.
26300 * conf/any-emu.rmk: Update kernel headers for emu build.
26301
f48c87aa
VS
263022010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26303
26304 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
26305
18959385
VS
263062010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26307
26308 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
26309
0037de3f
VS
263102010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26311
26312 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
26313 Retrieve chosen/bootpath if bootpath isn't hardcoded.
26314 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
26315 util/ieee1275/ofpath.c.
26316 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
26317 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
26318 * include/grub/sparc64/ieee1275/boot.h
26319 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
26320 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
26321 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
26322 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
26323 const char *.
26324 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
26325 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
26326 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
26327 install.
26328
38e55e90
GS
263292010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
26330
26331 * util/grub-mkconfig.in: Corrected two == equality tests.
26332 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
26333 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
26334 expect a number appended to it.
26335 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
26336 expects a number appended to it.
26337
a9e6ff28
VS
263382010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26339
26340 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
26341
0b830b8f
VS
263422010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26343
26344 * util/hostdisk.c (make_device_name): Change to new partition naming.
26345
0973daeb
VS
263462010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
26347
26348 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
26349
460d8402 263502010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
26351
26352 * Makefile.in: Add missing localedir setting.
26353
0b456309
CW
263542010-04-14 Colin Watson <cjwatson@ubuntu.com>
26355
26356 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
26357 mistake in r2156. Noticed by Anthony Fok.
26358
26359 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
26360 @localedir@.
26361 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26362
08f46d62
BC
263632010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
26364
26365 Fix a spurious, uninitialized variable warning.
26366
26367 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
26368 Initialize variable, shdr.
26369 (grub_freebsd_load_elfmodule): Likewise.
26370 (grub_freebsd_load_elf_meta): Likewise.
26371
8c4a72d4
BC
263722010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
26373
26374 Fix for escaped dollar in double quoted strings.
26375
26376 * script/yylex.l: Updated flex rules.
26377 * conf/tests.rmk: Rule for new testcase.
26378 * tests/grub_script_dollar.in: New testcase.
26379
ce44826e
CPE
263802010-04-13 Carles Pina i Estany <carles@pina.cat>
263812010-04-13 Colin Watson <cjwatson@ubuntu.com>
26382
26383 Enclose all translated strings in grub.cfg in single quotes, and
26384 escape them appropriately (Ubuntu bug #552921).
26385
26386 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
26387 * util/grub.d/10_hurd.in: Use it.
26388 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26389 * util/grub.d/10_linux.in (linux_entry): Likewise.
26390
4b0cd8f8
VS
263912010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26392
26393 Fix cygwin compilation.
26394
26395 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
26396 * include/grub/misc.h (__register_frame_info)
26397 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
26398 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26399 * kern/misc.c (__register_frame_info)
26400 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
26401 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26402
01fcf061
VS
264032010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26404
26405 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
26406
5d04b11e
VS
264072010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26408
26409 Unify libgcc processing.
26410
26411 * Makefile.in (kernel_img_LDFLAGS): New variable.
26412 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
26413 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
26414 overwriting.
26415 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
26416 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
26417 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
26418 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
26419 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
26420 overwriting. Remove -lgcc and -static-libgcc
26421 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
26422 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26423 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26424 (kernel_img_LDFLAGS): Append instead of overwriting.
26425 Remove -lgcc and -static-libgcc
26426 * conf/sparc64-ieee1275.rmk: Likewise.
26427 * include/grub/powerpc/libgcc.h: Move to ...
26428 * include/grub/libgcc.h: .. this.
26429 * include/grub/libgcc.h: Don't export most of the function on x86.
26430 (__bswapsi2): New export.
26431 (__bswapdi2): Likewise.
26432 * include/grub/mips/libgcc.h: Removed.
26433 * include/grub/sparc64/libgcc.h: Likewise.
26434
b7f3ac29
VS
264352010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26436
26437 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
26438 disk_info_msg (conflicts with gettexting into languages with cases).
26439
2c7031b1
GS
264402010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
26441
26442 Add grub-probe support for NetBSD.
26443
26444 * util/getroot.c (find_root_device): Convert block device to
26445 character device on NetBSD.
26446 * util/probe.c (probe): Require character device on NetBSD.
26447 * util/hostdisk.c: NetBSD specific headers.
26448 (configure_device_driver): new function to tune device driver
26449 parameters (currently only for NetBSD floppy driver).
26450 (grub_util_biosdisk_open): NetBSD specific code (get disk size
26451 via disklabel ioctl).
26452 (open_device): call configure_device_driver on NetBSD.
26453 (convert_system_partition_to_system_disk): NetBSD specific code.
26454 (device_is_wholedisk): Likewise.
26455 (grub_util_biosdisk_get_grub_dev): Likewise.
26456 (make_device_name): Fixed a typo in bsd_part_str.
26457 * configure.ac: check for opendisk() and getrawpartition() on
26458 NetBSD and set LIBUTIL.
26459 * Makefile.in: add LIBUTIL to LIBS.
26460
f516290c
BC
264612010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26462
26463 Documentation fix.
26464
26465 * util/grub-script-check.c: Better help message.
26466
d8dcc0df
BC
264672010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26468
26469 Fix FreeBSD build.
26470
26471 * configure.ac: Flex version check.
26472 * conf/common.rmk: Add -Wno-error to sh.mod.
26473 * script/yylex.l: Remove all #pragma.
26474
6734334a
VS
264752010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * include/grub/util/misc.h (canonicalise_file_name): Add missing
26478 prototype.
26479 Reported by: Seth Goldberg.
26480
daea6abd
VS
264812010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26482
26483 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
26484 Rename "module" to "module2".
26485 Reported by: Seth Goldberg.
26486
f2fd9d2b
VS
264872010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26488
26489 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
26490 EXPORT_FUNC.
26491 Reported by: Seth Goldberg.
26492
be124579
VS
264932010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26494
26495 * lib/posix_wrap/locale.h: Add missing file.
26496 Reported by: Seth Goldberg.
26497
ef5da797
VS
264982010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26499
26500 grub-emu module load support.
26501
26502 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
26503 NO_DYNAMIC_MODULES switched to this.
26504 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
26505 (CFLAGS): Likewise.
26506 * conf/any-emu.rmk: Generate symlist.
26507 (kernel_img_HEADERS): Add util/datetime.h.
26508 (kernel_img_HEADERS) [sdl]: Add sdl.h.
26509 (kernel_img_HEADERS) [libusb]: Add libusb.h.
26510 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
26511 kern/$(target_cpu)/cache.S.
26512 * configure.ac (grub-emu-modules): New option.
26513 * genmk.rb: Handle multiple source lists.
26514 * include/grub/sdl.h: New file.
26515 * include/grub/libusb.h: Likewise.
26516 * util/grub-emu.c (main): Hanle (host) root.
26517 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
26518 GRUB_ERR_UNKNOWN_DEVICE.
26519 * util/misc.c: Move mm functions to ...
26520 * util/mm.c: ... here. All users updated.
26521
47822096
VS
265222010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26523
26524 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
26525 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
26526 missing files.
26527 (maintainer-clean): Remove libgcrypt-grub.
26528
5d7e7445
VS
265292010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26530
26531 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
26532
25f4e252
EC
265332010-04-09 EFI Coder <eficoder@hotmail.com>
26534
26535 * normal/menu_text.c (print_message): Clean up the message and show
26536 the Fn information when on EFI
26537 * term/efi/console.c (grub_console_checkkey): Add F4 support.
26538
027de555
VS
265392010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26540
26541 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
26542 All users updated.
26543 * normal/crypto.c (read_crypto_list): Likewise.
26544 * normal/dyncmd.c (read_command_list): Likewise.
26545 * normal/term.c (read_terminal_list): Likewise.
26546 * normal/main.c (read_lists): Use explicit prefix.
26547 (read_lists_hook): Use read_lists.
26548 (grub_normal_execute): Likewise.
26549
47779711
VS
265502010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26551
26552 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
26553 Reported by: Thomas Schmitt.
26554 Add -no-emul-boot to grub-mkisofs parameters.
26555
1118c32e
VS
265562010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26557
26558 * font/font.c: Indented.
26559
7d652447
BC
265602010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26561
26562 Elif support to GRUB script (by Deepak Vankadaru).
26563
26564 * tests/grub_script_if.in: New testcase.
26565 * conf/tests.rmk: Rule for new testcase.
26566 * script/parser.y: Grammar rules for elif.
26567
34bb22df
BC
265682010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26569
26570 While and until loops support to GRUB script.
26571
26572 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
26573 (grub_script_create_cmdwhile): New function prototype.
26574 (grub_script_execute_cmdwhile): New function prototype.
26575 * script/execute.c (grub_script_execute_cmdwhile): New function.
26576 * script/parser.y (command): New commands.
26577 (whilecmd): New grammar rule.
26578 (untilcmd): New grammar rule.
26579 * script/script.c (grub_script_create_cmdwhile): New function.
26580 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
26581 function.
26582
26583 * tests/grub_script_while1.in: New testcase.
26584 * conf/tests.rmk: Rule for new testcase.
26585
e215d8e0
VS
265862010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
26589 as *.jpg.
26590
d7c43ba1
MV
265912010-04-09 Mario Vazquez <mariovazq@gmail.com>
26592
26593 GRUB_BACKGROUND support.
26594
26595 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
26596 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
26597
d64795c0
VS
265982010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26599
26600 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 26601 Idea by: Mario Vazquez
d64795c0
VS
26602
26603 * util/grub.d/00_header.in: Load pf2 and image modules.
26604
f267f83a
VS
266052010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26606
26607 grub-mkconfig multiple terminal support.
26608
26609 * util/grub-mkconfig.in: Handle multiple terminals correctly.
26610 * util/grub.d/00_header.in: Likewise.
26611
b7841ceb
VS
266122010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26613
26614 * Makefile.in: Specify files explicitly instead of using $< and $@ since
26615 we use cd $(srcdir).
26616
df60998c
CW
266172010-04-08 Colin Watson <cjwatson@ubuntu.com>
26618
26619 * util/grub.d/10_linux.in: Only use the first word of
26620 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
26621 spaces in GRUB_DISTRIBUTOR.
26622 * util/grub.d/10_kfreebsd.in: Likewise.
26623 * util/grub.d/10_hurd.in: Likewise.
26624
fa09c82e
BC
266252010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
26626
14e18ae3 26627 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
26628
26629 * tests/util/grub-shell.in: Remove -serial stdio option.
26630
daf892b3
BC
266312010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
26632
26633 POSIX header file wrappers.
26634
26635 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
26636 equivalents.
26637 * lib/posix_wrap/ctype.h: Likewise.
26638 * lib/posix_wrap/errno.h: Likewise.
26639 * lib/posix_wrap/langinfo.h: Likewise.
26640 * lib/posix_wrap/limits.h: Likewise.
26641 * lib/posix_wrap/localcharset.h: Likewise.
26642 * lib/posix_wrap/stdint.h: Likewise.
26643 * lib/posix_wrap/stdio.h: Likewise.
26644 * lib/posix_wrap/stdlib.h: Likewise.
26645 * lib/posix_wrap/string.h: Likewise.
26646 * lib/posix_wrap/sys/types.h: Likewise.
26647 * lib/posix_wrap/unistd.h: Likewise.
26648 * lib/posix_wrap/wchar.h: Likewise.
26649 * lib/posix_wrap/wctype.h: Likewise.
26650 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
26651 (grub_script.yy.h): Likewise.
26652 * script/yylex.l: Remove POSIX emulation #defines.
26653 * Makefile.in (POSIX_CFLAGS): New variable.
26654 (GNULIB_UTIL_CFLAGS): Likewise.
26655
26656 Regexp support.
26657
26658 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
26659 (regexp_mod_SOURCES): New variable.
26660 (regexp_mod_CFLAGS): Likewise.
26661 (regexp_mod_LDFLAGS): Likewise.
26662 * commands/regexp.c: New file.
26663 * gnulib/regcomp.c: New file. Imported from gnulib.
26664 * gnulib/regex.c: Likewise.
26665 * gnulib/regex_internal.c: Likewise.
26666 * gnulib/regex_internal.h: Likewise.
26667 * gnulib/regexec.c: Likewise.
26668 * gnulib/regex.h: Likewise.
26669
974ac4f7
VS
266702010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26671
26672 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
26673 unsupported video mode types.
26674
2622c3ff
VS
266752010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26676
26677 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
26678
064cb524
VS
266792010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26680
26681 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
26682 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
26683
a8c3b552
VS
266842010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
26685
26686 Remove unused grub_vga_get_font.
26687
26688 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
26689 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
26690
187bbe3d
GS
266912010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26692
26693 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
26694 * include/grub/misc.h: Likewise.
26695
b9396631
GS
266962010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26697
26698 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
26699 for which failure is fatal.
26700
50479feb
GS
267012010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26702
26703 * util/grub-install.in: Use mkdir -p to create grub directory.
26704 * util/i386/efi/grub-install.in: Likewise.
26705 * util/ieee1275/grub-install.in: Likewise.
26706
b1654fdf
GS
267072010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26708
26709 * Makefile.in (LEX): new variable.
26710
bd5a6415
GS
267112010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26712
26713 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
26714 `=' and added double quotes on operands of this equality test.
26715
3db3a82b
VS
267162010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26717
26718 * Makefile.in (uninstall): Remove a leftover debug echo.
26719 Reported by: Grégoire Sutre
26720
38023412
VS
267212010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26722
26723 MIPS multiboot2 support.
26724
26725 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
26726 (multiboot2_mod_SOURCES): New variable.
26727 (multiboot2_mod_CFLAGS): Likewise.
26728 (multiboot2_mod_LDFLAGS): Likewise.
26729 (multiboot2_mod_ASFLAGS): Likewise.
26730 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
26731 definition.
26732 (MULTIBOOT_ENTRY_REGISTER): Likewise.
26733 (MULTIBOOT_MBI_REGISTER): Likewise.
26734 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
26735 (MULTIBOOT_ELF32_MACHINE): Likewise.
26736 (MULTIBOOT_ELF64_MACHINE): Likewise.
26737 * include/grub/mips/multiboot.h: New file.
26738 * include/grub/video.h (grub_video_driver_id): New type
26739 GRUB_VIDEO_DRIVER_SM712.
26740 (grub_video_get_info_and_fini): Export.
26741 (grub_video_get_palette): Likewise.
26742 (grub_video_get_driver_id): Likewise.
26743 * include/multiboot2.h: Resynced with spec.
26744 * loader/i386/multiboot.c: Moved from here ...
26745 * loader/multiboot.c: ... here. All users updated.
26746 (grub_multiboot_boot): Use platform-specific macros.
26747 * loader/i386/multiboot_elfxx.c: Moved from here ...
26748 * loader/multiboot_elfxx.c: ... here. All users updated.
26749 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
26750 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
26751 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
26752
47674667
VS
267532010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
26754
26755 Import gnulib argp module.
26756
26757 * gnulib/argp-ba.c: New file.
26758 * gnulib/argp-eexst.c: Likewise.
26759 * gnulib/argp-fmtstream.c: Likewise.
26760 * gnulib/argp-fmtstream.h: Likewise.
26761 * gnulib/argp-fs-xinl.c: Likewise.
26762 * gnulib/argp-help.c: Likewise.
26763 * gnulib/argp-namefrob.h: Likewise.
26764 * gnulib/argp-parse.c: Likewise.
26765 * gnulib/argp-pin.c: Likewise.
26766 * gnulib/argp-pv.c: Likewise.
26767 * gnulib/argp-pvh.c: Likewise.
26768 * gnulib/argp-version-etc.c: Likewise.
26769 * gnulib/argp-version-etc.h: Likewise.
26770 * gnulib/argp-xinl.c: Likewise.
26771 * gnulib/argp.h: Likewise.
26772
495442ed
VS
267732010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26774
26775 * kern/device.c (grub_device_iterate): Clear errors after failed
26776 opening device.
26777
f9fd65df
VS
267782010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26779
26780 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26781 returned by firmware.
26782
af09641e
VS
267832010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26784
26785 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26786 compilation on coreboot and qemu
26787
016883a5
VS
267882010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26789
26790 * include/multiboot2.h: Resync with spec.
26791
f97e1f7d
VS
267922010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26793
26794 Multiboot2 tag support
26795
26796 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26797 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26798 Remove loader/multiboot_loader.c.
26799 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26800 (grub_multiboot2_real_boot): Likewise.
26801 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26802 (grub_get_multiboot_mmap_count): New proto.
26803 (grub_fill_multiboot_mmap): Likewise.
26804 (grub_multiboot_set_video_mode): Likewise.
26805 (grub_multiboot_set_console): Likewise.
26806 (grub_multiboot_load): Likewise.
26807 (grub_multiboot_load_elf): Likewise.
26808 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26809 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26810 * include/multiboot.h: Resynced with specification.
26811 * include/multiboot2.h: Resynced with specification.
26812 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26813 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26814 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26815 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26816 users updated.
26817 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26818 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26819 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26820 Removed.
26821 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26822 Moved from here...
26823 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26824 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26825 Moved from here...
26826 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26827 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26828 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26829 All users updated.
26830 * loader/i386/multiboot_mbi2.c: New file.
26831
3506b90b
VS
268322010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26833
26834 Resync with gnulib.
26835
26836 * Makefile.in (GNULIB_CFLAGS): New variable.
26837 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26838 (grub_script_check_CFLAGS): New variable.
26839 * gnulib/alloca.h: Resync with gnulib.
26840 * gnulib/error.c: Likewise.
26841 * gnulib/error.h: Likewise.
26842 * gnulib/fnmatch.c: Likewise.
26843 * gnulib/fnmatch_loop.c: Likewise.
26844 * gnulib/getdelim.c: Likewise.
26845 * gnulib/getline.c: Likewise.
26846 * gnulib/getopt.c: Likewise.
26847 * gnulib/getopt1.c: Likewise.
26848 * gnulib/getopt_int.h: Likewise.
26849 * gnulib/gettext.h: Likewise.
26850 * gnulib/progname.c: Likewise.
26851 * gnulib/progname.h: Likewise.
26852
394a3120
GS
268532010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26854
26855 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26856 which is the case with --disabled-nls.
26857
26858 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26859 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26860 * util/misc.c: Likewise.
26861 * util/mkisofs/mkisofs.c: Likewise.
26862 * util/mkisofs/mkisofs.h: Likewise.
26863
969d1c78
VS
268642010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26865
26866 Simplify Apple CC support.
26867
26868 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26869 Add 0 byte at the end not to have a symbol with empty target.
26870 * mmap/i386/pc/mmap_helper.S: Likewise.
26871 * genmk.rb: Ignore errors 2030 and 2050.
26872 * kern/i386/pc/startup.S: Use LOCAL when possible.
26873
8d2977bb
BC
268742010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26875
26876 Testcase and the fix for final semicolon on cmdline.
26877
26878 * tests/grub_script_final_semicolon.in: New testcase.
26879 * conf/tests.rmk: Rules for the new testcase.
26880 * script/parser.y: Grammar fix.
26881
a7bd6915
BC
268822010-03-26 BVK Chaitanya <bvk@localhost>
26883
26884 Blank lines testcase for GRUB script.
26885
26886 * tests/grub_script_blanklines.in: New testcase.
26887 * conf/tests.rmk: Rules for the new testcase.
26888
e4ff6628
VS
268892010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26890
26891 Don't use __FILE__.
26892
26893 * genmk.rb: Add -DGRUB_FILE to all C targets.
26894 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26895 * include/grub/list.h: Likewise.
26896 * include/grub/misc.h: Likewise.
26897 * include/grub/mm.h: Likewise.
26898 * include/grub/test.h: Likewise.
26899 * kern/mm.c: Likewise.
26900 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26901
6a5cf6b6
VS
269022010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26903
26904 Sunpc partitions support.
26905
26906 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26907 (grub_fstest_SOURCES): Likewise.
26908 (pkglib_MODULES): Add part_sunpc.mod.
26909 (part_sunpc_mod_SOURCES): New variable.
26910 (part_sunpc_mod_CFLAGS): Likewise.
26911 (part_sunpc_mod_LDFLAGS): Likewise.
26912 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26913 * partmap/sunpc.c: New file.
26914
746d9045
BC
269152010-03-26 BVK Chaitanya <bvk@localhost>
26916
26917 For loop support to GRUB script.
26918
26919 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26920 (grub_script_create_cmdfor): New function prototype.
26921 (grub_script_execute_cmdfor): New function prototype.
26922 * script/execute.c (grub_script_execute_cmdfor): New function.
26923 * script/parser.y (command): New for command.
26924 (forcmd): New grammar rule.
26925 * script/script.c (grub_script_create_cmdfor): New function.
26926 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26927 function.
26928 * tests/grub_script_for1.in: New testcase.
26929 * conf/tests.rmk: Rules for new testcase.
26930
18486b18
VS
269312010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26932
26933 Nested partitions
26934
26935 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26936 'partition' is NULL, grub_partition_get_start already does that.
26937 * commands/loadenv.c (check_blocklists): Likewise.
26938 (write_blocklists): Likewise.
26939 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26940 (grub_fstest_SOURCES): Likewise.
26941 (pkglib_MODULES): Add part_bsd.mod.
26942 (part_bsd_mod_SOURCES): New variable.
26943 (part_bsd_mod_CFLAGS): Likewise.
26944 (part_bsd_mod_LDFLAGS): Likewise.
26945 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26946 (grub_emu_SOURCES): Likewise.
26947 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26948 * include/grub/bsdlabel.h: New file.
26949 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26950 'get_name'.
26951 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26952 (grub_partition_map_list): New variable.
26953 (grub_partition_map_register): Inline.
26954 (grub_partition_map_unregister): Likewise.
26955 (FOR_PARTITION_MAPS): New macro.
26956 (grub_partition_map_iterate): Removed.
26957 (grub_partition_get_start): Handle nested partitions.
26958 * include/grub/msdos_partition.h: Remove bsd-related entries.
26959 (grub_pc_partition): Remove.
26960 * kern/disk.c (grub_disk_close): Free partition data.
26961 (grub_disk_adjust_range): Handle nested partitions.
26962 * kern/partition.c (grub_partition_map_probe): New function.
26963 (grub_partition_probe): Parse name to number, handle subpartitions.
26964 (get_partmap): New function.
26965 (grub_partition_iterate): Handle subpartitions.
26966 (grub_partition_get_name): Likewise.
26967 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26968 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26969 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26970 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26971 Set 'number'.
26972 (acorn_partition_map_probe): Remove.
26973 (acorn_partition_map_get_name): Likewise.
26974 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26975 Set 'number'.
26976 Set 'index' to 0 since there can be only one partition entry per sector.
26977 (amiga_partition_map_probe): Remove.
26978 (amiga_partition_map_get_name): Likewise.
26979 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26980 Set 'number'.
26981 Set 'offset' and 'index' to real positions of partitions.
26982 (apple_partition_map_probe): Remove.
26983 (apple_partition_map_get_name): Likewise.
26984 * partmap/bsdlabel.c: New file.
26985 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26986 Set 'number'.
26987 Allocate 'data' so it can be correctly freed.
26988 Set 'index' to offset inside sector.
26989 (gpt_partition_map_probe): Remove.
26990 (gpt_partition_map_get_name): Likewise.
26991 * partmap/msdos.c (grub_partition_parse): Remove.
26992 (pc_partition_map_iterate): Don't force raw access.
26993 Set 'number'.
26994 Make 'ext_offset' a local variable.
26995 (pc_partition_map_probe): Remove.
26996 (pc_partition_map_get_name): Remove.
26997 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26998 Set 'number'.
26999 (sun_partition_map_probe): Remove.
27000 (sun_partition_map_get_name): Likewise.
27001 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
27002 (grub_pcpart_type): Likewise.
27003 * util/hostdisk.c (open_device): Handle new numbering scheme.
27004 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
27005 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
27006 * util/grub-probe.c (probe_partmap): Handle nested paritions.
27007 * util/grub-install.in: Insert all subpartition modules.
27008 * util/ieee1275/grub-install.in: Likewise.
27009
a3940f88
AG
270102010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
27011
27012 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
27013 grammar.
27014
21b99926 270152010-03-24 Colin Watson <cjwatson@ubuntu.com>
27016
27017 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
27018
bed1d352
CW
270192010-03-21 Colin Watson <cjwatson@ubuntu.com>
27020
27021 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
27022 match where 'make install' puts them.
27023 * util/i386/efi/grub-install.in: Likewise.
27024
c9f58427
CW
270252010-03-19 Colin Watson <cjwatson@ubuntu.com>
27026
27027 * .bzrignore: Add gentrigtables, grub-script-check,
27028 grub_script_check_init.c, grub_script_check_init.h, and
27029 trigtables.c.
27030
f84afb27
VS
270312010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
27032
27033 * kern/parser.c: Indented.
27034
ed0e3d30
VS
270352010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
27036
27037 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
27038
0ea81d98
VS
270392010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
27040
27041 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
27042 alpha_mask_size == 0 case.
27043
0cdc2a09
BC
270442010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
27045
27046 GRUB shell lexer and parser improvements.
27047
27048 * conf/any-emu.rmk: Build rule updates.
27049 * conf/common.rmk: Likewise.
27050 * conf/i386-coreboot.rmk: Likewise.
27051 * conf/i386-efi.rmk: Likewise.
27052 * conf/i386-ieee1275.rmk: Likewise.
27053 * conf/i386-pc.rmk: Likewise.
27054 * conf/powerpc-ieee1275.rmk: Likewise.
27055 * conf/x86_64-efi.rmk: Likewise.
27056
27057 * configure.ac: Configure check for flex.
27058
27059 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
27060 types.
27061 (grub_lexer_param): Struct member updates.
27062 (grub_parser_param): Likewise.
27063 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
27064 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
27065 (grub_script_lexer_init): Prototype update.
27066 (grub_script_lexer_record_start): Likewise.
27067 (grub_script_lexer_record_stop): Likewise.
27068 (grub_script_lexer_yywrap): New function prototype.
27069 (grub_script_lexer_fini): Likewise.
27070 (grub_script_execute_argument_to_string): Removed by...
27071 (grub_script_execute_argument_to_argv): ...better version.
27072
27073 * script/execute.c (ROUND_UPTO): New macro.
27074 (grub_script_execute_cmdline): Out of memory fixes.
27075 (grub_script_execute_menuentry): Likewise.
27076 (grub_script_execute_argument_to_string): Removed. Update all
27077 users by...
27078 (grub_script_execute_argument_to_argv): ...better version.
27079 * script/function.c (grub_script_function_create): Use
27080 grub_script_execute_argument_to_argv instead of
27081 grub_script_execute_argument_to_string.
27082
27083 * script/lexer.c (check_varstate): Removed.
27084 (check_textstate): Removed.
27085 (grub_script_lexer_record_start): Likewise.
27086 (grub_script_lexer_record_stop): Likewise.
27087 (recordchar): Replaced with...
27088 (grub_script_lexer_record): ...new function.
27089 (nextchar): Removed.
27090 (grub_script_lexer_init): Rewritten.
27091 (grub_script_yylex): Rewritten.
27092 (append_newline): New function.
27093 (grub_script_lexer_yywrap): New function.
27094 (grub_script_lexer_fini): New function.
27095 (grub_script_yyerror): Sets error flag.
27096
27097 * script/yylex.l: New file.
27098 (grub_lexer_yyfree): Wrapper for flex yyffre.
27099 (grub_lexer_yyalloc): Likewise.
27100 (grub_lexer_yyrealloc): Likewise.
27101 * script/parser.y: Refactored.
27102
27103 * script/script.c (grub_script_arg_add): Out of memory fixes.
27104 (grub_script_add_arglist): Likewise.
27105 (grub_script_create_cmdline): Likewise.
27106 (grub_script_create_cmdmenu): Likewise.
27107 (grub_script_add_cmd): Likewise.
27108 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
27109 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
27110 unnecessary code.
27111
27112 * tests/grub_script_echo1.in: New testcase.
27113 * tests/grub_script_vars1.in: New testcase.
27114 * tests/grub_script_echo_keywords.in: New testcase.
27115
1d63a066
VS
271162010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27117
27118 Remove some redundancy in build system.
27119
27120 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
27121 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
27122 (TARGET_LDFLAGS): Add -nostdlib.
27123 (TARGET_IMG_LDFLAGS): Likewise.
27124 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
27125 anything since mmap isn't available.
27126 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
27127 Add util/time.c.
27128 (pkglib_MODULES): Remove reboot.mod.
27129 (reboot_mod_SOURCES): Removed.
27130 (reboot_mod_CFLAGS): Likewise.
27131 (reboot_mod_LDFLAGS): Likewise.
27132 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
27133 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
27134 (DEFSYMFILES): Add kernel_syms.lst.
27135 (kernel_img_HEADERS): Add common headers.
27136 (symlist.c): New target.
27137 (kernel_syms.lst): Likewise.
27138 (pkglib_MODULES): Add memdisk.mod.
27139 (memdisk_mod_SOURCES): New variable.
27140 (memdisk_mod_CFLAGS): Likewise.
27141 (memdisk_mod_LDFLAGS): Likewise.
27142 (pkglib_MODULES): Add reboot.mod.
27143 (reboot_mod_SOURCES): New variable.
27144 (reboot_mod_CFLAGS): Likewise.
27145 (reboot_mod_LDFLAGS): Likewise.
27146 (pkglib_MODULES): Add date.mod.
27147 (date_mod_SOURCES): New variable.
27148 (date_mod_CFLAGS): Likewise.
27149 (date_mod_LDFLAGS): Likewise.
27150 (pkglib_MODULES): Add datehook.mod.
27151 (datehook_mod_SOURCES): New variable.
27152 (datehook_mod_CFLAGS): Likewise.
27153 (datehook_mod_LDFLAGS): Likewise.
27154 (pkglib_MODULES): Add lsmmap.mod.
27155 (lsmmap_mod_SOURCES): New variable.
27156 (lsmmap_mod_CFLAGS): Likewise.
27157 (lsmmap_mod_LDFLAGS): Likewise.
27158 (pkglib_MODULES): Add boot.mod.
27159 (boot_mod_SOURCES): New variable.
27160 (boot_mod_CFLAGS): Likewise.
27161 (boot_mod_LDFLAGS): Likewise.
27162 * conf/i386-coreboot.rmk: Removed redundant parts.
27163 * conf/i386-ieee1275.rmk: Likewise.
27164 * conf/i386-pc.rmk: Likewise.
27165 * conf/mips-yeeloong.rmk: Likewise.
27166 * conf/mips.rmk: Likewise.
27167 * conf/powerpc-ieee1275.rmk: Likewise.
27168 * conf/sparc64-ieee1275.rmk: Likewise.
27169 * conf/x86_64-efi.rmk: Likewise.
27170 * conf/i386-coreboot.rmk: Moved qemu parts ..
27171 * conf/i386-qemu.rmk: ... here
27172 * conf/i386-efi.rmk: Moved common parts to...
27173 * conf/x86-efi.rmk: ... here.
27174 * conf/i386.rmk: Added modules common to all x86 variants.
27175 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
27176 * disk/memdisk.c: Remove grub/machine/kernel.h.
27177 * gensymlist.sh.in: Include symbol.h.
27178 * hook/datehook.c: Correct module name.
27179 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
27180 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
27181 * include/grub/i386/efi/serial.h: New file.
27182 * include/grub/x86_64/efi/serial.h: Likewise.
27183 * util/time.c: Likewise.
27184 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
27185
463ac55f
CK
271862010-03-14 Colin King <colin.king@ubuntu.com>
271872010-03-14 Colin Watson <cjwatson@ubuntu.com>
27188
27189 Shrink the pre-partition-table part of boot.img by eight bytes.
27190
27191 * boot/i386/pc/boot.S (ERR): New macro.
27192 (chs_mode): Use ERR.
27193 (geometry_error): Likewise.
27194 (hd_probe_error): Remove. This is only used once, so we wrwite
27195 it inline instead.
27196 (read_error): Instead of printing read_error_string, just set up
27197 %si and fall through to ...
27198 (error_message): ... this new function, also used by ERR.
27199
08e46ede
CW
272002010-03-14 Colin Watson <cjwatson@ubuntu.com>
27201
27202 Speed up consecutive hostdisk operations on the same device.
27203
27204 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
27205 (grub_util_biosdisk_open): Initialise disk->data.
27206 (struct linux_partition_cache): New structure.
27207 (linux_find_partition): Cache partition start positions; these are
27208 expensive to compute on every read and write.
27209 (open_device): Cache open file descriptor in disk->data, so that we
27210 don't have to reopen it and flush the buffer cache for consecutive
27211 operations on the same device.
27212 (grub_util_biosdisk_close): New function.
27213 (grub_util_biosdisk_dev): Set `close' member.
27214
27215 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
27216 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
27217 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27218 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
27219 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
27220
4a6d2d06
VS
272212010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27222
27223 Compile parts of grub-emu as modules.
27224
27225 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
27226 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
27227 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
27228 (all-local): Add $(GRUB_EMU).
27229 (install-local): Install $(GRUB_EMU).
27230 (uninstall): Uninstall $(GRUB_EMU).
27231 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
27232 * kern/dl.c: Likewise.
27233 * commands/sleep.c: Not include machine/time.h.
27234 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
27235 (COMMON_CFLAGS): Likewise.
27236 (sbin_UTILITIES): Remove grub-emu.
27237 (grub_emu_SOURCES): Removed.
27238 (kernel_img_RELOCATABLE): New variable.
27239 (pkglib_PROGRAMS): Add kernel.img.
27240 (kernel_img_SOURCES): New variable
27241 (kernel_img_CFLAGS): Likewise.
27242 (kernel_img_LDFLAGS): Likewise.
27243 (TARGET_NO_STRIP): Likewise.
27244 (TARGET_NO_DYNAMIC_MODULES): Likewise.
27245 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
27246 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
27247 (grub-emu): New target.
27248 (GRUB_EMU): New variable.
27249 * configure.ac: Whitelist -emu as possible x86_64 architecture.
27250 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
27251 * loader/xnu.c: Likewise.
27252 * include/grub/pci.h: Likewise.
27253 * genemuinit.sh: New file.
27254 * genemuinitheader.sh: Likewise.
27255 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
27256 Support TARGET_NO_DYNAMIC_MODULES.
27257 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
27258 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
27259 * disk/loopback.c: Likewise.
27260 * font/font_cmd.c: Likewise.
27261 * partmap/acorn.c: Likewise.
27262 * partmap/amiga.c: Likewise.
27263 * partmap/apple.c: Likewise.
27264 * partmap/gpt.c: Likewise.
27265 * partmap/msdos.c: Likewise.
27266 * partmap/sun.c: Likewise.
27267 * parttool/msdospart.c: Likewise.
27268 * term/gfxterm.c: Likewise.
27269 * video/bitmap.c: Likewise.
27270 * video/readers/jpeg.c: Likewise.
27271 * video/readers/png.c: Likewise.
27272 * video/readers/tga.c: Likewise.
27273 * video/video.c: Likewise.
27274 * util/grub-emu.c (read_command_list): Removed.
27275 (main): Don't call util_init_nls.
27276 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
27277 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
27278
91fdd2ed
VS
272792010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27280
27281 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
27282 date.mod, datehook.mod.
27283 (datetime_mod_SOURCES): New variable.
27284 (datetime_mod_CFLAGS): Likewise.
27285 (datetime_mod_LDFLAGS): Likewise.
27286 (date_mod_SOURCES): Likewise.
27287 (date_mod_CFLAGS): Likewise.
27288 (date_mod_LDFLAGS): Likewise.
27289 (datehook_mod_SOURCES): Likewise.
27290 (datehook_mod_CFLAGS): Likewise.
27291 (datehook_mod_LDFLAGS): Likewise.
27292 * conf/sparc64-ieee1275.rmk: Likewise.
27293 * lib/ieee1275/datetime.c: New file.
27294
873ccae6
VS
272952010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27296
27297 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
27298 (ieee1275_fb_mod_SOURCES): New variable.
27299 (ieee1275_fb_mod_CFLAGS): Likewise.
27300 (ieee1275_fb_mod_LDFLAGS): Likewise.
27301 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
27302 New proto.
27303 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
27304 (HEAP_MAX_ADDR): Likewise.
27305 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
27306 type.
27307 Correct stop condition.
27308 (grub_ieee1275_devices_iterate): New function.
27309 * video/ieee1275.c: New file.
27310
601c97c0
VS
273112010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27312
27313 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
27314
27315 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
27316 as scratch.
27317 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
27318 SCRATCH_PAD_DISKBOOT as scratch.
27319 (bootit): Pass Openfirmware pointer in %o4.
27320 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
27321 of 0x200000.
27322 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
27323 with util/grub-mkrawimage.c.
27324 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
27325 * include/grub/aout.h (AOUT_MID_SUN): New definition.
27326 (grub_aout_get_type) [GRUB_UTIL]: Removed.
27327 (grub_aout_load) [GRUB_UTIL]: Likewise.
27328 * include/grub/kernel.h (grub_modules_get_end): New proto.
27329 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
27330 (SCRATCH_PAD_BOOT): New definition.
27331 (SCRATCH_PAD_DISKBOOT): Likewise.
27332 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
27333 * include/grub/sparc64/ieee1275/ieee1275.h
27334 (grub_ieee1275_original_stack): New variable
27335 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27336 New definition
27337 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
27338 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
27339 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
27340 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
27341 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
27342 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
27343 (grub_platform_image_format_t): New type.
27344 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
27345 * kern/main.c (grub_modules_get_end)
27346 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
27347 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
27348 (codestart): Switch stacks.
27349 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
27350 variable.
27351 (grub_heap_init): Use grub_modules_get_end.
27352 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
27353 stack.
27354 * util/grub-mkrawimage.c (generate_image): Support sparc64.
27355 (main): Likewise.
27356 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
27357
d68b491e
TG
273582010-03-14 Thorsten Glaser <tg@mirbsd.org>
27359
27360 * util/grub-mkrescue.in: Base ISO UUID on UTC.
27361
4e02ed50
MK
273622010-03-08 Matt Kraai <kraai@ftbfs.org>
27363
27364 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
27365 bug #559005).
27366
1f15fc1e
VS
273672010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
27368
27369 * genmoddep.awk: Output all missing symbols and not only first.
27370
fce5d8ff
VS
273712010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27372
27373 * NEWS: Put the date of 1.98 release.
27374
d1e8a02f
VS
273752010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27376
27377 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
27378 ft2build.h.
27379
696fd607
VS
273802010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27381
27382 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
27383 completition in the middle of string.
27384
33e2e6f3
VS
273852010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27386
27387 * util/grub-mkrescue.in: Use mktemp with explicit template.
27388
b1f6d291
VS
273892010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27390
27391 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
27392
2ac227c7
VS
273932010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27394
27395 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
27396 right pointer.
27397
8f9a632b
VS
273982010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27399
27400 Fix FreeBSD compilation.
27401
27402 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
27403 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
27404
60b03859
VS
274052010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27406
27407 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
27408
48a5a769
VS
274092010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27410
27411 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
27412
3ab4bd77
VS
274132010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27414
27415 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
27416
d116e0d8
RM
274172010-03-04 Robert Millan <rmh.grub@aybabtu.com>
27418
27419 Support relative image path in theme file.
27420
27421 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
27422 (image_set_property): Handle theme_dir and relative path.
27423
c7ef54aa
VS
274242010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27425
27426 * configure.ac: Alias amd64 to x86_64.
27427
fcee14ed
VS
274282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27429
27430 * NEWS: mention multiboot on EFI.
27431
d0780363
VS
274322010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27433
27434 * kern/main.c (grub_load_modules): Handle errors from init functions of
27435 embeded modules.
27436
41168ea4
VS
274372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27438
27439 * normal/autofs.c (autoload_fs_module): Handle errors.
27440
b54d93ac
VS
274412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27442
27443 Disable linux.mod on qemu-mips since it's not functional and leads
27444 to compilation failure.
27445
27446 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
27447 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
27448 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
27449 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
27450 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
27451 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
27452 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
27453 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
27454 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
27455 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
27456 Reported by: BVK Chaitanya
27457
fc8345da
JU
274582010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
27459
27460 * INSTALL: Add gettext as a dependency and add qemu to a new section
27461 "Prerequisites for make-check".
27462
4760f979
CF
274632010-03-04 Christian Franke <franke@computer.org>
27464
27465 * util/grub-pe2elf.c: Add missing include "progname.h".
27466
f209b5b2
VS
274672010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27468
27469 * normal/crypto.c (read_crypto_list): Fix a typo.
27470 Reported by: Seth Goldberg.
27471
b4b7be98
VS
274722010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27473
27474 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 27475 Reported by: Seth Goldberg.
b4b7be98 27476
c0ee0385
VS
274772010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27478
27479 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
27480 ascii.bitmaps.
27481
a8efbf64
VS
274822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27483
27484 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 27485 Reported by: Seth Goldberg.
a8efbf64 27486
08dcd913
VS
274872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27488
27489 * util/i386/efi/grub-install.in: Copy gettext files.
27490
c4d0b332
VS
274912010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27492
27493 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
27494
c6f2fe52
VS
274952010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27496
27497 Wait for user entry basing on presence of output rather than on errors.
27498
27499 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
27500 (grub_install_newline_hook): Likewise.
27501 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
27502 * normal/menu.c (show_menu): Check line_counter to determine presence
27503 of output.
27504 * normal/term.c (grub_normal_line_counter): New variable.
27505 (grub_normal_get_line_counter): New function.
27506 (grub_install_newline_hook): Likewise.
27507
5382b1e4
VS
275082010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27509
27510 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
27511
5519963b
VS
275122010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27513
27514 * configure.ac: Update version to 1.98.
27515
72b28631
VS
275162010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
27517
27518 * util/grub.d/10_linux.in (linux_entry): Don't default to
27519 gfxpayload=keep if Linux doesn't support video handover.
27520
c140a180
VS
275212010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
27522
27523 Don't compile video modules on yeeloong since video subsystem is part
27524 of kernel.
27525
27526 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
27527 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
27528 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
27529 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
27530 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
27531 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
27532 * include/grub/bitmap_scale.h: Likewise.
27533 * include/grub/bufio.h: Likewise.
27534 * include/grub/font.h: Likewise.
27535 * include/grub/gfxterm.h: Likewise.
27536 * include/grub/video.h: Likewise.
27537 * include/grub/vbe.h: Don't include video_fb.h.
27538 * video/i386/pc/vbe.c: Include video_fb.h.
27539 * commands/i386/pc/vbetest.c: Include video.h.
27540
a0ca21c2
CW
275412010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
27542
27543 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
27544 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
27545 default entry if GRUB_SAVEDEFAULT=true. This allows using
27546 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
27547 saving a new default on every boot.
27548
4a8a763c
VS
275492010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27550
27551 * normal/crypto.c (read_crypto_list): Fix a memory leak.
27552 * normal/term.c (read_terminal_list): Likewise.
27553 * normal/main.c (grub_normal_init_page): Likewise.
27554 (grub_normal_read_line_real): Likewise.
27555
607ffde2
VS
275562010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27557
27558 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
27559 memory leak.
27560 Reported by: Seth Goldberg.
27561
2b8fa975
CW
275622010-02-24 Joey Korkames <joey+lists@kidfixit.com>
27563
27564 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
27565 duplicate declaration of `start'.
27566
618307dd
VS
275672010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27568
27569 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
27570 filename.
27571 Reported by: Georgy Buranov
27572
7dd05b96 275732010-02-20 Carles Pina i Estany <carles@pina.cat>
27574
27575 * util/grub-mkrawimage.c (usage): Change string formatting to
27576 improve gettext.
27577
d1484a42
MRA
275782010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
27579
27580 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
27581 backspace keys.
27582
42b1d186
VS
275832010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27584
27585 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
27586 Reported by: Michael Suchanek.
27587
275882010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
27589
27590 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
27591 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
27592
d9f31a41
VS
275932010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
27594
27595 Remove any reference to non-free fonts.
27596
27597 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
27598 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
27599 uses non-free components.
27600 * font/font.c (grub_font_get_name): Remove example name.
27601 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
27602 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
27603 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
27604 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
27605
2793c71e
GB
276062010-02-16 Georgy Buranov <gburanov@gmail.com>
27607
27608 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
27609
402e3779
VS
276102010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27611
27612 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
27613 Double divisor.
27614 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
27615 features.
27616 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
27617
0dd1e0dd
VS
276182010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27619
27620 * gensymlist.sh.in: Use TARGET_CC instead of CC.
27621
6fa7cfce
ST
276222010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27623
27624 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
27625 * docs/grub.texi (Command-line and menu entry commands): Document play
27626 command.
27627
37c8483b
ST
276282010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27629
27630 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
27631 parse arguments as inline tempo and notes. Move code for playing notes
27632 to...
27633 (play): ... new function.
27634
14da0fb7
ST
276352010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27636
27637 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
27638 grub_uint16_t instead of short.
27639 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
27640 disk from little endian to cpu endianness.
27641
04459e70
ST
276422010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27643
27644 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
27645 GRUB_TICKS_PER_SECOND instead of 120.
27646
a0876943
VS
276472010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27648
27649 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
27650 escape sequence after \e.
27651
e29f95dc
VS
276522010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27653
27654 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
27655 non-ASCII characters.
27656
d27859b2
VS
276572010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27658
27659 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
27660 set root in single quotes to prevent \, from being unescaped.
27661
bc028f2f
VS
276622010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27663
27664 Prevent unknown commands from stopping menuentry execution.
27665
27666 * script/execute.c (grub_script_execute_cmdline): Print error after
27667 unknown command.
27668
095f5f82
VS
276692010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27670
27671 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
27672 Reported by: Pavel Pisa.
27673
8c717950
VS
276742010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27675
27676 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
27677
904935c3
VS
276782010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27679
27680 Merge grub_ieee1275_map_physical into grub_map and rename to
27681 grub_ieee1275_map
27682
27683 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
27684 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
27685 Remove.
27686 * kern/ieee1275/openfw.c (grub_map): Rename to ...
27687 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
27688 necessary.
27689 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
27690
5b59a4e3
VS
276912010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27692
27693 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
27694 opening and not after.
27695
69e137e8
VS
276962010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27697
27698 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
27699 constants.
27700
2c0fcc36
VS
277012010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27702
27703 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
27704 (alloc_phys): Use ALIGN_UP instead of align_addr.
27705
8c6052ce
VS
277062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27707
27708 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
27709
17cec782
VS
277102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27711
27712 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
27713
e0128bbd
VS
277142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27715
27716 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
27717 verbose dprintf.
27718
ca62070b
VS
277192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27720
27721 Fix over-4GiB seek on sparc64.
27722
27723 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
27724 Replace pos_i and pos_lo with pos. All users updated.
27725 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27726 New constant.
27727 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27728 Likewise.
27729 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
27730 and pos_lo.
27731
bdca2607
VS
277322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27733
27734 * util/grub-mkrawimage.c (main): Call set_program_name.
27735
da278c4d
VS
277362010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27737
27738 Properly align 64-bit targets.
27739
27740 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
27741 (generate_image): Use ALIGN_ADDR.
27742
b274d734
VS
277432010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27744
27745 Properly create cross-endian images.
27746
27747 * include/grub/types.h (grub_host_to_target_addr): New macro
27748 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
27749
82da2062
VS
277502010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27751
27752 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
27753
7cae4377
VS
277542010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27755
27756 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
27757
27758 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
27759 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
27760 (grub_linux_boot): Divide by 64K when on VESA.
27761
65a533e7
VS
277622010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27763
27764 Support GRUB_GFXPAYLOAD_LINUX.
27765
27766 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27767 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27768
dd01d397
VS
277692010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27770
27771 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27772 to show messages instead of discarding them.
27773 Process errors after executing command and not before. Keep old method
27774 too as precaution.
27775
660960d6
VS
277762010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27777
27778 * configure.ac: Check for ft2build.h.
27779
62509f04
VS
277802010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27781
27782 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27783
473df63d
VS
277842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27785
27786 * genkernsyms.sh.in: Use TARGET_CC.
27787
c98d2a13
CW
277882010-02-07 Colin Watson <cjwatson@ubuntu.com>
27789
27790 * NEWS: Update.
27791
6e14234c
VS
277922010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27793
27794 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
27795 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27796 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 27797
b255e9cf
YB
277982010-02-07 Yves Blusseau <blusseau@zetam.org>
27799
6e14234c 27800 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 27801
98e6959d
VS
278022010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27803
27804 Fix warnings in grub-emu when compiling with maximum warning options.
27805
27806 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27807 (grub_arch_modules_addr): Return 0 and not NULL.
27808 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 27809 (xstrdup): Use newstr instead of dup.
f88d801b
VS
27810 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27811 of disk to dsk to avoid shadowing.
74e4934e
VS
27812 (find_free_slot): Fix prototype.
27813 * util/getroot.c (grub_util_is_dmraid): Make static.
27814 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27815 Add missing prototype.
27816 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 27817
74e31b5c
VS
278182010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27819
27820 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27821 appropriately.
27822
6b2ad14b
VS
278232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27824
27825 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27826 code out.
27827
8f891adc
VS
278282010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27829
27830 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27831 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27832 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27833 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27834 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27835 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27836
74b45184
VS
278372010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27838
27839 * include/grub/err.h (grub_err_printf): Don't export.
27840
a4bced77
VS
278412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27842
27843 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27844
007d0695
VS
278452010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27846
27847 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27848 * kern/misc.c (grub_gettext_dummy): Make static.
27849
b6c0d9c2
VS
278502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27851
27852 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27853 by non-valid ones.
27854 * kern/term.c (grub_putchar): Likewise.
27855
f51a90d0
VS
278562010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27857
27858 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27859 buggy hook call and memory leak.
27860
6846cec5
VS
278612010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27862
27863 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27864
468d69fe
VS
278652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27866
27867 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27868
51906b8c
VS
278692010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27870
27871 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27872 modevar.
27873 Return grub_errno on allocation error.
27874
09706ce5
VS
278752010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27876
27877 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27878
911df80c
YB
278792010-02-06 Yves Blusseau <blusseau@zetam.org>
27880
27881 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27882 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27883
3746a6bc
VS
278842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27885
27886 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27887 non-pxe disk.
27888 (grub_pxefs_open): Likewise.
27889
09706ce5
VS
278902010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27891
27892 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27893 * util/grub.d/10_kfreebsd.in: Likewise.
27894 * util/grub.d/10_linux.in: Likewise.
27895
7cc192d9
VS
278962010-02-06 Colin D Bennett <colin@gibibit.com>
27897
27898 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27899 (gfxmenu_mod_SOURCES): New variable.
27900 (gfxmenu_mod_CFLAGS): Likewise.
27901 (gfxmenu_mod_LDFLAGS): Likewise.
27902 * include/grub/term.h (grub_term_set_current_output): Declare
27903 argument as const.
27904 * docs/gfxmenu-theme-example.txt: New file.
27905 * gfxmenu/gfxmenu.c: Likewise.
27906 * gfxmenu/gui_box.c: Likewise.
27907 * gfxmenu/gui_canvas.c: Likewise.
27908 * gfxmenu/gui_circular_progress.c: Likewise.
27909 * gfxmenu/gui_image.c: Likewise.
27910 * gfxmenu/gui_label.c: Likewise.
27911 * gfxmenu/gui_list.c: Likewise.
27912 * gfxmenu/gui_progress_bar.c: Likewise.
27913 * gfxmenu/gui_string_util.c: Likewise.
27914 * gfxmenu/gui_util.c: Likewise.
27915 * gfxmenu/icon_manager.c: Likewise.
27916 * gfxmenu/model.c: Likewise.
27917 * gfxmenu/named_colors.c: Likewise.
27918 * gfxmenu/theme_loader.c: Likewise.
27919 * gfxmenu/view.c: Likewise.
27920 * gfxmenu/widget-box.c: Likewise.
27921 * include/grub/gfxmenu_model.h: Likewise.
27922 * include/grub/gfxmenu_view.h: Likewise.
27923 * include/grub/gfxwidgets.h: Likewise.
27924 * include/grub/gui.h: Likewise.
27925 * include/grub/gui_string_util.h: Likewise.
27926 * include/grub/icon_manager.h: Likewise.
27927
279282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27929
27930 Agglomerate scrolling in gfxterm.
27931
27932 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27933 (grub_virtual_screen_setup): Initialise 'total_screen'.
27934 (write_char): Split to ...
27935 (paint_char): ... this ...
27936 (write_char): ... and this.
27937 (paint_char): Handle delayed scrolling.
27938 (draw_cursor): Likewise.
27939 (scroll_up): Split to ...
27940 (real_scroll): ... this ...
27941 (scroll_up): ... and this.
27942 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27943 characters.
27944 (grub_gfxterm_refresh): Call real_scroll.
27945
279462010-02-06 Colin D Bennett <colin@gibibit.com>
27947
27948 * include/grub/misc.h (grub_iscntrl): New inline function.
27949 (grub_isalnum): Likewise.
27950 (grub_strtol): Likewise.
27951
279522010-02-06 Colin D Bennett <colin@gibibit.com>
27953
27954 * normal/menu_text.c (get_entry_number): Move from here ...
27955 * normal/menu.c (get_entry_number): ... moved here.
27956 * include/grub/menu.h (grub_menu_get_default_entry_index):
27957 New prototype.
27958 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27959 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27960 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27961 (grub_menu_viewer_should_return): Likewise.
27962 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27963 * normal/menu_text.c (run_menu): Enable menu switching.
27964 * normal/menu_viewer.c (should_return): New variable.
27965 (menu_viewer_changed): Likewise.
27966 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27967 (grub_menu_viewer_should_return): New function.
27968 (menuviewer_write_hook): Likewise.
27969 (grub_menu_viewer_init): Likewise.
27970
279712010-02-06 Colin D Bennet <colin@gibibit.com>
279722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27973
27974 Support for gfxterm in a window.
27975
27976 * include/grub/gfxterm.h: New file.
27977 * include/grub/video.h (struct grub_video_rect): New declaration.
27978 (grub_video_rect_t): Likewise.
27979 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27980 (refcount): New variable.
27981 (render_target): Likewise.
27982 (window): Likewise.
27983 (repaint_callback): Likewise.
27984 (grub_virtual_screen_setup): Use 'render_target'.
27985 (init_window): New function.
27986 (grub_gfxterm_init_window): Likewise.
27987 (grub_gfxterm_init): Check reference counter.
27988 Use init_window.
27989 (destroy_window): New function.
27990 (grub_gfxterm_destroy_window): Likewise.
27991 (grub_gfxterm_fini): Check reference counter.
27992 Use destroy_window.
27993 (redraw_screen_rect): Restore viewport.
27994 Use 'render_target' and 'window'.
27995 Call 'repaint_callback'.
27996 (write_char): Use 'render_target'.
27997 (draw_cursor): Likewise.
27998 (scroll_up): Restore viewport.
27999 Use 'render_target' and 'window'.
28000 Call 'repaint_callback'.
28001 (grub_gfxterm_cls): Likewise.
28002 (grub_gfxterm_refresh): Use 'window'.
28003 (grub_gfxterm_set_repaint_callback): New function.
28004 (grub_gfxterm_background_image_cmd): Use 'window'.
28005 (grub_gfxterm_get_term): New function.
28006 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
28007
280082010-02-06 Colin D Bennett <colin@gibibit.com>
28009
28010 Bitmap scaling support.
28011
28012 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
28013 (bitmap_scale_mod_SOURCES): New variable.
28014 (bitmap_scale_mod_CFLAGS): Likewise.
28015 (bitmap_scale_mod_LDFLAGS): Likewise.
28016 * include/grub/bitmap_scale.h: New file.
28017 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
28018 (background_image_cmd_options): New variable.
28019 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
28020 (cmd): Rename and change type to ...
28021 (background_image_cmd_handle): ... this. All users updated.
28022 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
28023 * video/bitmap_scale.c: New file.
28024
280252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
28026
28027 SDL support.
28028
28029 * Makefile.in (LIBSDL): New variable.
28030 (enable_grub_emu_sdl): Likewise.
28031 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
28032 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
28033 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
28034 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
28035 * util/sdl.c: New file.
28036
280372010-02-06 Colin D Bennett <colin@gibibit.com>
280382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
28039
28040 Double buffering support.
28041
28042 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
28043 * include/grub/video.h: Update comment.
28044 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
28045 New type.
28046 (grub_video_fb_doublebuf_blit_init): New prototype.
28047 * term/gfxterm.c (scroll_up): Support double buffering.
28048 (grub_gfxterm_refresh): Likewise.
28049 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
28050 (grub_video_fb_doublebuf_blit_init): Likewise.
28051 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
28052 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
28053 'displayed_page', 'render_page' and 'update_screen'.
28054 (grub_video_vbe_fini): Free offscreen buffer.
28055 (doublebuf_pageflipping_commit): New function.
28056 (doublebuf_pageflipping_update_screen): Likewise.
28057 (doublebuf_pageflipping_init): Likewise.
28058 (double_buffering_init): Likewise.
28059 (grub_video_vbe_setup): Enable doublebuffering.
28060 (grub_video_vbe_swap_buffers): Implement.
28061 (grub_video_vbe_set_active_render_target): Handle double buffering.
28062 (grub_video_vbe_get_active_render_target): Likewise.
28063 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
28064 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
28065 (grub_video_vbe_enable_double_buffering): Likewise.
28066 (grub_video_vbe_swap_buffers): Use update_screen.
28067 (grub_video_set_mode): Use double buffering.
28068
280692010-02-06 Robert Millan <rmh.grub@aybabtu.com>
28070
28071 * maintainance/gentrigtables.py: Remove.
28072 * lib/trig.c: Likewise.
28073
28074 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
28075
28076 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
28077 `trigtables.c'.
28078 (trigtables.c): New rule.
28079 (gentrigtables): Likewise.
28080 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
28081
280822010-02-06 Robert Millan <rmh.grub@aybabtu.com>
28083
28084 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
28085 integer constants.
28086
280872010-02-06 Colin D Bennet <colin@gibibit.com>
28088
28089 Trigonometry support.
28090
28091 * include/grub/trig.h: New file.
28092 * lib/trig.c: Likewise.
28093 * maintainance/gentrigtables.py: Likewise.
28094 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
28095 (trig_mod_SOURCES): New variable.
28096 (trig_mod_CFLAGS): Likewise.
28097 (trig_mod_LDFLAGS): Likewise.
28098
5562834e
VS
280992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
28100
28101 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
28102 disk devices.
28103
4f8528fc
VS
281042010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
28105
28106 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
28107 error.
28108
2b4068e9
VS
281092010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
28110
28111 * util/hostdisk.c (open_device): Don't use partition device when reading
28112 before the partition.
28113 (grub_util_biosdisk_read): Don't read from partition and before the
28114 partition in single operation.
28115 (grub_util_biosdisk_write): Don't write to partition and before the
28116 partition in single operation.
28117
399f6e4d
TL
281182010-02-03 Torsten Landschoff <torsten@debian.org>
28119
28120 * kern/disk.c (grub_disk_read): Fix offset computation when reading
28121 last sectors.
28122
996649b0
VS
281232010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
28124
28125 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
28126 CDROM reads.
28127 (grub_biosdisk_write): Refuse to write to CDROM.
28128
3b205d4d
VS
281292010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
28130
28131 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
28132
61e89d9d
VS
281332010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
28134
28135 * font/font.c (find_glyph): Check that bmp_idx is available before
28136 using it.
28137 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
28138 with (font == NULL).
28139
bf7fcba2
CS
281402010-01-28 Christian Schmitt <chris@ilovelinux.de>
28141
28142 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
28143
f45d2663
BC
281442010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
28145
28146 * include/grub/script_sh.h (sourcecode): Add const qualifier.
28147 * util/grub-script-check.c (getline): Fix empty lines case.
28148
ec1444e6
RM
281492010-01-28 Robert Millan <rmh.grub@aybabtu.com>
28150
28151 * Makefile.in (check): Exit with fail status when one of the tests
28152 fails.
28153 * tests/example_functional_test.c (example_test): Fix reversed assert.
28154 * tests/example_unit_test.c (example_test): Likewise.
28155
2e1cb9bb
CW
281562010-01-28 Colin Watson <cjwatson@ubuntu.com>
28157
28158 * util/grub.d/10_linux.in: This script does not use any of the
28159 contents of gettext.sh, only the external command `gettext', so stop
28160 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
28161 the same prefix as GRUB.)
28162 * util/grub.d/10_kfreebsd.in: Likewise.
28163
63533ab0
VS
281642010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
28165
28166 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
28167 of the line.
28168
989e1f93
VS
281692010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
28170
28171 * kern/disk.c (grub_disk_read): Fix offset computation when reading
28172 last sectors.
28173
e709ebe2
VS
281742010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
28175
28176 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
28177 having a 4KiB and not 32KiB buffer size.
28178
27dea7ed
RM
281792010-01-27 Robert Millan <rmh.grub@aybabtu.com>
28180
28181 * util/hostfs.c: Include `<errno.h>'.
28182 (grub_hostfs_read): Handle errors from fseeko() and fread().
28183
67667b9c
RM
281842010-01-27 Robert Millan <rmh.grub@aybabtu.com>
28185
28186 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
28187 loop when using read hooks on files whose size isn't sector-aligned.
28188
c294d9d8
RM
281892010-01-27 Robert Millan <rmh.grub@aybabtu.com>
28190
28191 Remove unused parameter.
28192
28193 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
28194 (grub_iso9660_open): Remove initialization of `data->length'.
28195
af75a9f1
RM
281962010-01-27 Robert Millan <rmh.grub@aybabtu.com>
28197
28198 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
28199 memleak conditions.
28200
254e2ce5 282012010-01-27 Carles Pina i Estany <carles@pina.cat>
28202
28203 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
28204 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
28205
b510928c 282062010-01-26 Carles Pina i Estany <carles@pina.cat>
28207
28208 * util/bin2h.c (usage): Fix warning (space after backslash).
28209
aa2f9dd2 282102010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 28211
28212 * font/font.c: Include `grub/fontformat.h.
28213 Remove font file format constants.
28214 (grub_font_load): Use the new macros.
28215 * include/grub/fontformat.h: New file.
28216 * util/grub-mkfont.c: Include `grub/fontformat.c'.
28217 (write_font_pf2): Use the new macros.
28218
94e7e712
RM
282192010-01-26 Robert Millan <rmh.grub@aybabtu.com>
28220
28221 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
28222 does.
28223
3973a59a
RM
282242010-01-26 Robert Millan <rmh.grub@aybabtu.com>
28225
28226 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
28227
28228 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
28229 (_start): Macroify `0x7F'.
28230
28231 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
28232 (make_install_device): Use "(pxe)" as fallback prefix when booting
28233 via PXE.
28234
42e0cba3
GS
282352010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 * configure.ac: Reset LIBS after check for libgcc symbols.
28238
847effd8
CW
282392010-01-25 Colin Watson <cjwatson@ubuntu.com>
28240
28241 * util/hostdisk.c (open_device): Add trailing newline to debug
28242 message.
28243
ea4a7e35
GS
282442010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
28245
28246 * configure.ac: Check for `limits.h'.
28247 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
28248
67951a53
RM
282492010-01-24 Robert Millan <rmh.grub@aybabtu.com>
28250
28251 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
28252 capitalize error strings.
28253
c273d4ce
ST
282542010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
28255
28256 * util/grub.d/10_hurd.in: Add a recovery mode.
28257
69be5b74
VS
282582010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
28259
28260 * configure.ac: Check for libgcc symbols with -nostdlib.
28261
fc9e5810
BC
282622010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
28263
28264 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
28265
4b358c0a
VS
282662010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28267
28268 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
28269 stack since heap may be unavailable at that point.
28270 (grub_ofconsole_gotoxy): Likewise.
28271
454fcd1c
VS
282722010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28273
28274 * configure.ac: Check for _restgpr_14_x.
28275 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
28276 and _savegpr_* prototypes.
28277
566863ca
RM
282782010-01-22 Robert Millan <rmh.grub@aybabtu.com>
28279
28280 Use generic grub_reboot() for i386-efi.
28281
28282 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
28283 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
28284 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
28285
bf86e59a
VS
282862010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28287
28288 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
28289 presence of "prefix" variable as it breaks when normal.mod is
28290 embedded.
28291
d645e0f8
VS
282922010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28293
28294 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
28295 stack since heap is unavailable at that point.
28296
f9ab2e25
VS
282972010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28298
28299 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
28300 (grub_freebsd_bootinfo): Rewritten.
28301 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
28302
01fc7054
VS
283032010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28304
28305 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
28306
caab4fd6
RM
283072010-01-21 Robert Millan <rmh.grub@aybabtu.com>
28308
28309 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
28310 domain now.
28311
67eb1427
FZ
283122010-01-20 Felix Zielcke <fzielcke@z-51.de>
28313
28314 * util/misc.c (make_system_path_relative_to_its_root): Change the work
28315 around for handling "/" to the correct fix. Fix a memory leak. Use
28316 xstrdup instead of strdup.
28317
a9ed4ff3
VS
283182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28319
28320 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
28321
283222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
28323
28324 Optimise glyph lookup by Basic Multilingual Plane lookup array.
28325
28326 * font/font.c (struct grub_font): New member 'bmp_idx'.
28327 (font_init): Initialise 'bmp_idx'.
28328 (load_font_index): Fill 'bmp_idx'.
28329 (find_glyph): Make inline. Use bmp_idx for BMP characters.
28330
48209f4f
VS
283312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28332
28333 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
28334 unnecessary calls.
28335
9f0a4bb7
VS
283362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28337
28338 Move context handling out of the kernel.
28339
28340 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
28341 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
28342 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
28343 * conf/i386-efi.rmk: Likewise.
28344 * conf/i386-ieee1275.rmk: Likewise.
28345 * conf/i386-pc.rmk: Likewise.
28346 * conf/powerpc-ieee1275.rmk: Likewise.
28347 * conf/sparc64-ieee1275.rmk: Likewise.
28348 * conf/x86_64-efi.rmk: Likewise.
28349 * include/grub/env.h: Include grub/menu.h.
28350 (grub_env_var_type): Removed.
28351 (grub_env_var): Replaced field 'type' with 'global'.
28352 (grub_env_find): New prototype.
28353 (grub_env_context_open): Remove EXPORT_FUNC.
28354 (grub_env_context_close): Likewise.
28355 (grub_env_export): Likewise.
28356 (grub_env_set_data_slot): Removed.
28357 (grub_env_get_data_slot): Likewise.
28358 (grub_env_unset_data_slot): Likewise.
28359 (grub_env_unset_menu): New prototype.
28360 (grub_env_set_menu): Likewise.
28361 (grub_env_get_menu): Likewise.
28362 * include/grub/env_private.h: New file.
28363 * include/grub/normal.h (grub_context_init): New prototype.
28364 (grub_context_fini): Likewise.
28365 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
28366 * normal/context.c (grub_cmd_export): ... to here.
28367 * kern/env.c: Include env_private.h.
28368 (HASHSZ): Moved to include/grub/env_private.h.
28369 (grub_env_context): Likewise.
28370 (grub_env_sorted_var): Likewise.
28371 (current_context): Renamed from this ...
28372 (grub_current_context): ...to this. 'static' removed. All users updated.
28373 (grub_env_find): Removed 'static'.
28374 (grub_env_context_open): Moved to normal/context.c.
28375 (grub_env_context_close): Likewise.
28376 (grub_env_export): Likewise.
28377 (mangle_data_slot_name): Removed.
28378 (grub_env_set_data_slot): Likewise.
28379 (grub_env_get_data_slot): Likewise.
28380 (grub_env_unset_data_slot): Likewise.
28381 * kern/main.c (grub_set_root_dev): Don't export root.
28382 It will be done later.
28383 (grub_main): Don't export prefix.
28384 It will be done later.
28385 * normal/context.c: New file.
28386 * normal/main.c (free_menu): Use grub_env_unset_menu.
28387 (grub_normal_add_menu_entry): Use grub_env_get_menu.
28388 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
28389 (GRUB_MOD_INIT(normal)): Call grub_context_init.
28390 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
28391
8dd35b8c
VS
283922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28393
28394 setpci support.
28395
28396 * commands/setpci.c: New file.
28397 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
28398 (setpci_mod_SOURCES): New variable.
28399 (setpci_mod_CFLAGS): Likewise.
28400 (setpci_mod_LDFLAGS): Likewise.
28401
449193d5
VS
284022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28403
28404 Byte-addressable PCI configuration space.
28405
28406 * bus/pci.c (grub_pci_make_address): Use byte address instead of
28407 dword address.
28408 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
28409 GRUB_PCI_REG_CACHELINE.
28410 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
28411 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
28412 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
28413 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
28414 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
28415 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
28416 grub_pci_make_address.
28417 (lock_rom_area): Likewise.
28418 * commands/lspci.c (grub_lspci_iter): Use macroses
28419 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
28420 of grub_pci_make_address.
28421 * disk/ata.c (grub_ata_pciinit): Likewise.
28422 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
28423 (GRUB_PCI_REG_VENDOR): Likewise.
28424 (GRUB_PCI_REG_DEVICE): Likewise.
28425 (GRUB_PCI_REG_COMMAND): Likewise.
28426 (GRUB_PCI_REG_STATUS): Likewise.
28427 (GRUB_PCI_REG_REVISION): Likewise.
28428 (GRUB_PCI_REG_CLASS): Likewise.
28429 (GRUB_PCI_REG_CACHELINE): Likewise.
28430 (GRUB_PCI_REG_LAT_TIMER): Likewise.
28431 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
28432 (GRUB_PCI_REG_BIST): Likewise.
28433 (GRUB_PCI_REG_ADDRESSES): Likewise.
28434 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28435 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28436 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28437 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28438 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28439 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28440 (GRUB_PCI_REG_CIS_POINTER): Likewise.
28441 (GRUB_PCI_REG_SUBVENDOR): Likewise.
28442 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
28443 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
28444 (GRUB_PCI_REG_CAP_POINTER): Likewise.
28445 (GRUB_PCI_REG_IRQ_LINE): Likewise.
28446 (GRUB_PCI_REG_IRQ_PIN): Likewise.
28447 (GRUB_PCI_REG_MIN_GNT): Likewise.
28448 (GRUB_PCI_REG_MAX_LAT): Likewise.
28449 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
28450 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
28451 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 28452 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
28453 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
28454 space.
28455
96d73208
RM
284562010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28457
28458 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
28459 can be reliably determined to be supported.
28460
d4484482
RM
284612010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28462
28463 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
28464 that VESA is supported.
28465 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
28466 supported.
28467
00308ecf
VS
284682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28469
28470 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
28471
f66924a4
RM
284722010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28473
28474 * util/misc.c (make_system_path_relative_to_its_root): Work around
28475 special-casing of "/", as previous incarnation of this routine did.
28476
cbca0ada
VS
284772010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28478
28479 Fix any-emu compilation.
28480
28481 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
28482 * grub_bin2h_SOURCES: New variable.
28483
34a66d99
RM
284842010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28485
28486 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
28487
94fabf58
RM
284882010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28489
28490 * util/grub.d/00_header.in: Fix handling of locale_dir.
28491
02cf98ca
VS
284922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28493
28494 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
28495 as possible unifont location (Gentoo).
28496 Reported by: Alexander Brüning
28497
327dbcd7
VS
284982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28499
28500 Don't try to generate lists for kernel.img.
28501
28502 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
28503 (pkglib_MODULES): Remove kernel.img.
28504 (kernel_img_EXPORTS): Removed.
28505 (kernel_img_RELOCATABLE): New variable.
28506 * conf/x86_64-efi.rmk: Likewise.
28507 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
28508
ca467290
VS
285092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28510
28511 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
28512 grub_xasprintf or grub_snprintf.
28513 (grub_vsprintf): Likewise.
28514 (grub_snprintf): New proto.
28515 (grub_vsnprintf): Likewise.
28516 (grub_xasprintf): Likewise.
28517 (grub_xvasprintf): Likewise.
28518 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
28519 (grub_sprintf): Removed.
28520 (grub_vsnprintf): New function.
28521 (grub_snprintf): Likewise.
28522 (grub_xvasprintf): Likewise.
28523 (grub_xasprintf): Likewise.
28524 (grub_vsprintf): Renamed to ...
28525 (grub_vsnprintf_real): ...this. New argument max_len.
28526
aca655fd
BC
285272010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
28528
28529 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
28530 fix grub-script-check warning.
28531
7ee92c32
VS
285322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28533
28534 * include/grub/font.h (grub_font_load): Fix prototype.
28535
f80927ca
VS
285362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28537
28538 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
28539
119c50ea
VS
285402010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28541
28542 * include/grub/x86_64/at_keyboard.h: New file.
28543
47d5f3c1
VS
285442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28545
28546 * loader/mips/linux.c: Include missing grub/i18n.h.
28547
55ff5266
RM
285482009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28549
28550 * normal/menu.c (notify_execution_failure): Clarify error message.
28551
c893cc87
RM
285522009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28553
28554 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
28555 return value (and revert all return statements). Update users.
28556
917dd370
CW
285572010-01-20 Dan Merillat <debian@dan.merillat.org>
28558
28559 * kern/device.c (grub_device_iterate): Allocate new part_ent
28560 structure based on sizeof (*p) rather than sizeof (p->next), to
28561 account for structure padding.
28562
28563 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
28564 disk is NULL, which might happen for LVM physical volumes with no
28565 LVM signature.
28566
d4a4ee57
RM
285672009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28568
28569 * loader/mips/linux.c (grub_cmd_initrd)
28570 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
28571
285722009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28573
28574 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
28575 (grub_video_video_init, grub_video_bitmap_init)
28576 (grub_font_manager_init, grub_term_gfxterm_init)
28577 (grub_at_keyboard_init): New extern declarations.
28578 (grub_machine_init): Initialize gfxterm and at_keyboard.
28579
28580 * kern/main.c (grub_main): Revert grub_printf delay kludge.
28581
28582 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
28583 `gfxterm.mod' into core image.
28584
28585 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28586 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28587 (kernel_img_FORMAT): Copy to ...
28588
28589 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28590 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28591 (kernel_img_FORMAT): ... here, and ...
28592
28593 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28594 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28595 (kernel_img_FORMAT): ... here.
28596
28597 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
28598 and input (at_keyboard) terminals in kernel.
28599 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
28600
28601 (pkglib_MODULES): Remove `pci.mod'.
28602 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
28603 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
28604 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
28605 (at_keyboard_mod_LDFLAGS): Remove variables.
28606
286072010-01-11 Felix Zielcke <fzielcke@z-51.de>
28608
28609 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
28610
286112009-12-10 Robert Millan <rmh.grub@aybabtu.com>
28612
28613 * include/grub/mips/libgcc.h: Only export symbols for functions
28614 that libgcc provides.
28615
286162009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
28617
28618 MIPS support.
28619
28620 * bus/bonito.c: New file.
28621 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
28622 GRUB_PCI_NUM_DEVICES.
28623 * term/i386/pc/serial.c: Move to ...
28624 * term/serial.c: ... here. All users updated.
28625 * util/i386/pc/grub-mkimage.c: Move to ...
28626 * util/grub-mkrawimage.c: ... here. All users updated.
28627 * term/i386/pc/at_keyboard.c: Move to ...
28628 * term/at_keyboard.c: ... here. All users updated.
28629 * conf/mips-qemu-mips.rmk: New file.
28630 * conf/mips-yeeloong.rmk: Likewise.
28631 * conf/mips.rmk: Likewise.
28632 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
28633 mipsel-qemu-mips.
28634 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
28635 to port addresses.
28636 (grub_ata_pciinit): Support CS5536.
28637 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
28638 * font/font_cmd.c (loadfont_command): Open file before passing it to
28639 grub_font_load.
28640 (pseudo_file_read): New function.
28641 (pseudo_file_close): Likewise.
28642 (pseudo_fs): New structure.
28643 (load_font_module): New function.
28644 (GRUB_MOD_INIT(font_manager)): Load embedded font.
28645 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
28646 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
28647 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
28648 * include/grub/i386/at_keyboard.h: Split into ...
28649 * include/grub/at_keyboard.h: ... this ...
28650 * include/grub/i386/at_keyboard.h: ... and this.
28651 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
28652 New prototype.
28653 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
28654 updated.
28655 (grub_elf64_size): Likewise.
28656 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
28657 filename.
28658 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
28659 * include/grub/i386/coreboot/serial.h: Rewritten.
28660 * include/grub/i386/ieee1275/serial.h: Include
28661 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
28662 * include/grub/i386/pc/serial.h: Moved from here ...
28663 * include/grub/serial.h: ... to here. All users updated.
28664 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
28665 (GRUB_PCI_NUM_BUS): Likewise.
28666 (GRUB_PCI_NUM_DEVICES): Likewise.
28667 (grub_pci_device_map_range): Add missing volatile keyword.
28668 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
28669 * include/grub/mips/at_keyboard.h: New file.
28670 * include/grub/mips/cache.h: Likewise.
28671 * include/grub/mips/io.h: Likewise.
28672 * include/grub/mips/kernel.h: Likewise.
28673 * include/grub/mips/libgcc.h: Likewise.
28674 * include/grub/mips/pci.h: Likewise.
28675 * include/grub/mips/qemu-mips/boot.h: Likewise.
28676 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28677 * include/grub/mips/qemu-mips/loader.h: Likewise.
28678 * include/grub/mips/qemu-mips/memory.h: Likewise.
28679 * include/grub/mips/qemu-mips/serial.h: Likewise.
28680 * include/grub/mips/qemu-mips/time.h: Likewise.
28681 * include/grub/mips/relocator.h: Likewise.
28682 * include/grub/mips/time.h: Likewise.
28683 * include/grub/mips/types.h: Likewise.
28684 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
28685 * include/grub/mips/yeeloong/boot.h: Likewise.
28686 * include/grub/mips/yeeloong/kernel.h: Likewise.
28687 * include/grub/mips/yeeloong/loader.h: Likewise.
28688 * include/grub/mips/yeeloong/memory.h: Likewise.
28689 * include/grub/mips/yeeloong/pci.h: Likewise.
28690 * include/grub/mips/yeeloong/serial.h: Likewise.
28691 * include/grub/mips/yeeloong/time.h: Likewise.
28692 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
28693 * kern/elf.c (grub_elf32_size): New parameter. All users
28694 updated.
28695 (grub_elf64_size): Likewise.
28696 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
28697 Load modules before saying "Welcome to GRUB!".
28698 Call grub_refresh after saying "Welcome to GRUB!".
28699 * kern/mips/cache.S: New file.
28700 * kern/mips/cache_flush.S: Likewise.
28701 * kern/mips/dl.c: Likewise.
28702 * kern/mips/init.c: Likewise.
28703 * kern/mips/qemu-mips/init.c: Likewise.
28704 * kern/mips/startup.S: Likewise.
28705 * kern/mips/yeeloong/init.c: Likewise.
28706 * kern/term.c (grub_putcode): Handle NULL terminal.
28707 (grub_getcharwidth): Likewise.
28708 (grub_getkey): Likewise.
28709 (grub_checkkey): Likewise.
28710 (grub_getkeystatus): Likewise.
28711 (grub_getxy): Likewise.
28712 (grub_getwh): Likewise.
28713 (grub_gotoxy): Likewise.
28714 (grub_cls): Likewise.
28715 (grub_setcolorstate): Likewise.
28716 (grub_setcolor): Likewise.
28717 (grub_getcolor): Likewise.
28718 (grub_refresh): Likewise.
28719 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
28720 (write_jump): Add hatch nop.
28721 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
28722 * lib/mips/setjmp.S: New file.
28723 * loader/mips/linux.c: Likewise.
28724 * term/i386/pc/at_keyboard.c: Move from here ...
28725 * term/at_keyboard.c: ... to here.
28726 * term/i386/pc/serial.c: Moved from here ...
28727 * term/serial.c: ... to here. All users updated.
28728 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
28729 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
28730 (serial_translate_key_sequence): Avoid deadlock.
28731 (grub_serial_getkey): Handle backspace.
28732 (grub_serial_putchar): Fix newline handling.
28733 * util/i386/pc/grub-mkimage.c: Move from here ...
28734 * util/grub-mkrawimage.c: ... to here. All users updated.
28735 (generate_image): New parameters 'font_path' and 'format'.
28736 Support embedding font.
28737 Use grub_host_to_target* instead of grub_cpu_to_le*.
28738 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
28739 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
28740 (options): New option "--font".
28741 (usage): Likewise.
28742 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
28743 (main): Handle "--font".
28744 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
28745 (grub_virtual_screen_setup): Set bg_color_display.
28746 (redraw_screen_rect): Use bg_color_display instead of incorrect
28747 bg_color.
28748 (grub_gfxterm_cls): Likewise.
28749 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
28750 Support embedding config file.
28751 (add_segments): Likewise.
28752 (options): New option "--config".
28753 (main): Handle "--config".
28754 * video/sm712.c: New file.
28755
25c2b5b3
RM
287562010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28757
28758 Fix parallel builds.
28759
28760 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
28761 font.c depend on ascii.h).
28762
287632010-01-12 Carles Pina i Estany <carles@pina.cat>
28764
28765 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28766
287672010-01-11 Carles Pina i Estany <carles@pina.cat>
28768
28769 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28770 By default: disabled.
28771 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28772 parameter.
28773
287742010-01-10 Carles Pina i Estany <carles@pina.cat>
28775
28776 * font/font.c: Update copyright years.
28777 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28778
287792010-01-10 Carles Pina i Estany <carles@pina.cat>
28780
28781 * font/font.c: Include `ascii.h'.
28782 (ASCII_BITMAP_SIZE): New macro.
28783 (ascii_font_glyph): Define.
28784 (ascii_glyph_lookup): New function.
28785 (grub_font_get_string_width): Change comment. If glyph not found, use
28786 ascii_glyph_lookup.
28787 (grub_font_get_glyph_with_fallback): If glyph not available returns
28788 ascii_glyph_lookup.
28789 * util/grub-mkfont.c (file_formats): New enum.
28790 (options): Add `ascii-bitmaps' new option.
28791 (usage): Add `asii-bitmaps' new option.
28792 (write_font_ascii_bitmap): New function.
28793 (write_font): Rename to ...
28794 (write_font_p2): ... this. Remove print_glyphs call.
28795 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28796 used. Call print_glyphs.
28797 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28798
287992010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28800
28801 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28802 (grub_bin2h_SOURCES): New variable.
28803 * util/bin2h.c: New file.
28804
915fc1b8
VS
288052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28806
28807 * include/multiboot.h: Resynced with spec.
28808 * include/multiboot2.h: Likewise.
28809 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28810 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28811
9444b678
RM
288122010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28813
28814 * include/grub/term.h (grub_term_register_input,
28815 grub_term_register_output): Check return of terminal init()
28816 routines, and abort if errors are raised.
28817
28818 * commands/terminal.c: Update copyright year.
28819
cba98e8d
RM
288202010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28821
28822 * commands/terminal.c (grub_cmd_terminal_input)
28823 (grub_cmd_terminal_output): Check return of terminal init()
28824 routines, and abort if errors are raised.
28825
6f7db5d6
VS
288262010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28827
28828 * include/grub/i386/bsd.h: Fix include pathes.
28829
262bff8d
VS
288302010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28831
28832 Add missing *BSD copyright headers.
28833
28834 * include/grub/aout.h: Add BSD licence.
28835 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28836 * include/grub/i386/freebsd_linker.h: ... here,
28837 * include/grub/i386/freebsd_reboot.h: ... here,
28838 * include/grub/i386/netbsd_bootinfo.h: ... here,
28839 * include/grub/i386/netbsd_reboot.h: ... here,
28840 * include/grub/i386/openbsd_bootarg.h: ... here,
28841 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28842 licence to each file.
28843
b2cab848
RM
288442010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28845
28846 * acinclude.m4: Remove `nop' assembly instruction; it's not
28847 implemented by all architectures.
28848
2cb6be4b
RM
288492010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28850
28851 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28852 ELILO. This is no longer necessary.
28853
a2eaee15
BC
288542010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28855
28856 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28857
28858 * util/grub-script-check.c: grub-script-check tool.
28859 * conf/common.rmk: Make rules for grub-script-check.
28860
88d17012
RM
288612010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28862
28863 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28864 spotting it back in 2008. Shame on me for forgetting he did.
28865
28866 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28867
8040619d
RM
288682010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28869
28870 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28871 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28872 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28873 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28874 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28875 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28876
a0c2a0f6
RM
288772010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28878
28879 * include/grub/test.h: Add license header.
28880 * tests/example_functional_test.c: Likewise.
28881 * tests/example_unit_test.c: Likewise.
28882 * tests/lib/functional_test.c: Likewise.
28883 * tests/lib/test.c: Likewise.
28884 * tests/lib/unit_test.c: Likewise.
28885
b0b13907
VS
288862010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28887
28888 Use flag-based instead of hook-based video mode selection and "auto"
28889 keyword.
28890
28891 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28892 (grub_video_set_mode): Changed prototype. All users updated.
28893 (grub_video_check_mode_flag): New inline function.
28894 * video/video.c (parse_modespec): New function.
28895 (grub_video_set_mode): Parse flags and keywords.
28896
ea379330 288972010-01-17 Carles Pina i Estany <carles@pina.cat>
28898
28899 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28900 fprintf call.
28901
e15c215e
FZ
289022010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28903
28904 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28905
409ae1c9 289062010-01-16 Carles Pina i Estany <carles@pina.cat>
28907
28908 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28909 string.
28910 * util/grub-emu.c (usage): Likewise.
28911 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28912 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28913 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28914 * util/i386/pc/grub-setup.c (usage): Likewise.
28915
70a14d3d 289162010-01-16 Carles Pina i Estany <carles@pina.cat>
28917
28918 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28919 the message.
28920 (grub_util_info): Likewise.
28921 (grub_util_error): Likewise.
28922 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28923 and/or new lines in `grub_util_warna', `grub_util_info',
28924 `grub_util_error' calls.
28925 * util/getroot.c: Likewise.
28926 * util/grub-editenv.c: Likewise.
28927 * util/grub-emu.c: Likewise.
28928 * util/grub-fstest.c: Likewise.
28929 * util/grub-mkdevicemap.c: Likewise.
28930 * util/grub-mkfont.c: Likewise.
28931 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28932 * util/grub-mkrelpath.c: Likewise.
28933 * util/grub-pe2elf.c: Likewise.
28934 * util/grub-probe.c: Likewise.
28935 * util/hostdisk.c: Likewise.
28936 * util/i386/efi/grub-mkimage.c: Likewise.
28937 * util/i386/pc/grub-mkimage.c: Likewise.
28938 * util/i386/pc/grub-setup.c: Likewise.
28939 * util/ieee1275/ofpath.c: Likewise.
28940 * util/mkisofs/eltorito.c: Likewise.
28941 * util/mkisofs/rock.c: Likewise.
28942 * util/mkisofs/write.c: Likewise.
28943 * util/raid.c: Likewise.
28944 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28945 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28946
a0b766fc
VS
289472010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28948
28949 Enable multiboot on non-pc.
28950
28951 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28952 multiboot.mod and multiboot2.mod to ...
28953 * conf/i386.rmk (pkglib_MODULES): ... here.
28954 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28955 Moved to ...
28956 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28957 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28958 Moved to ...
28959 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28960 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28961 Moved to ...
28962 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28963 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28964 Moved to ...
28965 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28966 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28967 relocator.mod.
28968 (ata_mod_SOURCES): Removed.
28969 (ata_mod_CFLAGS): Likewise.
28970 (ata_mod_LDFLAGS): Likewise.
28971 (relocator_mod_SOURCES): Removed.
28972 (relocator_mod_CFLAGS): Likewise.
28973 (relocator_mod_ASFLAGS): Likewise.
28974 (relocator_mod_LDFLAGS): Likewise.
28975 Include i386.mk.
28976 * include/grub/x86_64/multiboot.h: New file.
28977 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28978 Terminate EFI.
28979
884ade56
VS
289802010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28981
28982 Video multiboot support.
28983
28984 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28985 New prototype.
28986 * include/multiboot.h: Resynced with multiboot specification.
28987 * include/multiboot2.h: Likewise.
28988 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28989 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28990 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28991 (HAS_VGA_TEXT): Likewise.
28992 (accepts_video): New variable.
28993 (grub_multiboot_set_accepts_video): New function.
28994 (grub_multiboot_get_mbi_size): Account for video structures.
28995 (set_video_mode): New function.
28996 (retrieve_video_parameters): Likewise.
28997 (grub_multiboot_make_mbi): Fill video fields.
28998
0d90e8a6
VS
289992010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
29000
29001 Video driver ids.
29002
29003 * include/grub/video.h (grub_video_driver_id): New type.
29004 (grub_video_adapter): New member 'id'. All users updated.
29005 (grub_video_get_driver_id): New proto.
29006 * video/video.c (grub_video_get_driver_id): New function.
29007
5c71db1b 290082010-01-14 Carles Pina i Estany <carles@pina.cat>
29009
29010 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
29011 `var=val'.
29012
cca15b52 290132010-01-14 Carles Pina i Estany <carles@pina.cat>
29014
29015 * normal/cmdline.c (print_completion): Gettextizze.
29016
c586fbb2 290172001-01-14 Carles Pina i Estany <carles@pina.cat>
29018
29019 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
29020
ba2f6848 290212010-01-14 Carles Pina i Estany <carles@pina.cat>
29022
29023 * gettext/gettext.c (grub_gettext_translate): Push and pop
29024 grub_errno.
29025 (grub_gettext_delete_list): Change comment style.
29026 * kern/err.c (grub_error): Gettextizze.
29027 (grub_fatal): Gettextizze.
29028
0a46429a
RM
290292010-01-14 Robert Millan <rmh.grub@aybabtu.com>
29030
29031 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
29032 (grub_linux16_real_boot): ... this.
29033 * kern/i386/loader.S: Likewise.
29034 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
29035 (grub_linux16_boot): New function. Switches to text mode and calls
29036 grub_linux16_real_boot().
29037
29038 * loader/i386/bsd.c: Include `<grub/video.h>'.
29039 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
29040 text mode before calling grub_unix_real_boot().
29041
29042 * loader/i386/multiboot.c: Include `<grub/video.h>'.
29043 (grub_multiboot_boot): Switch to text mode before calling
29044 grub_relocator32_boot().
29045
29046 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
29047 (grub_chainloader_boot): Switch to text mode before calling
29048 grub_chainloader_real_boot().
29049
d6f93a66
RM
290502010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
290512010-01-05 Colin Watson <cjwatson@ubuntu.com>
29052
29053 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
29054 non-empty value.
29055
290562010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
290572010-01-05 Colin Watson <cjwatson@ubuntu.com>
29058
29059 * util/grub.d/00_header.in: Define a "savedefault" function for use
29060 in menu entries.
29061 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
29062
290632010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
290642010-01-05 Colin Watson <cjwatson@ubuntu.com>
29065
29066 * util/grub-mkconfig_lib.in (save_default_entry): Only set
29067 saved_entry if boot_once is unset.
29068 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
29069 previous saved entry (i.e. grub-reboot).
29070
290712009-12-08 Colin Watson <cjwatson@ubuntu.com>
29072
29073 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
29074
290752009-12-08 Colin Watson <cjwatson@ubuntu.com>
29076
29077 * util/grub.d/00_header.in: Use `set var=val' rather than plain
29078 `var=val'.
29079 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
29080
290812009-12-08 Colin Watson <cjwatson@ubuntu.com>
29082
29083 * util/grub-reboot.in: Fix --version output.
29084 * util/grub-set-default.in: Likewise.
29085
290862009-12-08 Colin Watson <cjwatson@ubuntu.com>
29087
29088 * util/grub.d/00_header.in: Silently ignore zero-sized environment
29089 blocks.
29090
290912009-12-08 Colin Watson <cjwatson@ubuntu.com>
29092
29093 * util/grub.d/00_header.in: Quote the value assigned to `default',
29094 in case it contains spaces.
29095
290962009-12-08 Colin Watson <cjwatson@ubuntu.com>
29097
29098 * util/grub.d/30_os-prober.in: Fix merge error that moved a
29099 `save_default_entry' call from the macosx case to the linux case.
29100
291012009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
291022009-10-25 Colin Watson <cjwatson@ubuntu.com>
29103
29104 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
29105 in `chosen' environment variable.
29106 * normal/menu_text.c (get_entry_number): Check if the variable
29107 matches the title of a menu entry.
29108 (run_menu): Pass menu to get_entry_number.
29109
29110 * util/grub-reboot.in: New file.
29111 * util/grub-set-default.in: New file.
29112 * conf/common.rmk (grub-reboot): New utility.
29113 (grub-set-default): New utility.
29114
29115 * util/grub-mkconfig_lib.in (save_default_entry): New function.
29116 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
29117 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
29118 move it to `saved_entry' for the next boot. Load environment on
29119 initialisation.
29120 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
29121 * util/grub.d/10_hurd.in: Likewise.
29122 * util/grub.d/10_linux.in (linux_entry): Likewise.
29123 * util/grub.d/10_windows.in: Likewise.
29124 * util/grub.d/30_os-prober.in: Likewise.
29125
29126 * util/grub-install.in: Create environment block.
29127 * util/i386/efi/grub-install.in: Likewise.
29128 * util/ieee1275/grub-install.in: Likewise.
29129 * util/sparc64/ieee1275/grub-install.in: Likewise.
29130
0934d184
BC
291312010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
29132
29133 Unit testing framework for GRUB.
29134
29135 * Makefile.in: Test framework build rules for 'make check'.
29136 * conf/tests.rmk: Build rules for individual tests and framework.
29137
29138 * include/grub/test.h: Header file for whitebox tests.
29139 * tests/lib/functional_test.c: Framework support for whitebox
29140 functional tests.
29141 * tests/lib/test.c: Common whitebox testing code for unit and
29142 functional tests.
29143 * tests/lib/unit_test.c: Framework support for whitebox unit
29144 tests.
29145
29146 * tests/util/grub-shell-tester.in: Support utility for grub-script
29147 tests.
29148 * tests/util/grub-shell.in: Utility to execute grub-script
29149 commands in a Qemu instance.
29150
29151 * tests/example_functional_test.c: Example whitebox functional
29152 test.
29153 * tests/example_grub_script_test.in: Example grub-script test.
29154 * tests/example_scripted_test.in: Example scripted test.
29155 * tests/example_unit_test.c: Example whitebox unit test.
29156
9c4ffeeb
VS
291572010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
29158
29159 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
29160 Add loader/i386/multiboot_mbi.c.
29161 (multiboot2_mod_SOURCES): Likewise.
29162 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
29163 (multiboot2_mod_SOURCES): Likewise.
29164 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
29165 (grub_multiboot_make_mbi): Likewise.
29166 (grub_multiboot_free_mbi): Likewise.
29167 (grub_multiboot_init_mbi): Likewise.
29168 (grub_multiboot_add_module): Likewise.
29169 (grub_multiboot_set_bootdev): Likewise.
29170 * loader/i386/multiboot.c (mbi): Removed.
29171 (mbi_dest): Likewise.
29172 (alloc_mbi): New variable.
29173 (grub_multiboot_payload_size): Removed. All users updated.
29174 (grub_multiboot_pure_size): New variable.
29175 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
29176 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
29177 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
29178 (grub_fill_multiboot_mmap): Likewise.
29179 (grub_multiboot_get_bootdev): Likewise.
29180 (grub_multiboot): Use multiboot_mbi functions.
29181 * loader/i386/multiboot_mbi.c: New file.
29182
17383dfe
VS
291832010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
29184
29185 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
29186 it would result in module crash.
29187
c1f28820
VS
291882010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
29189
29190 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
29191 (grub_ofconsole_getwh): Split to ...
29192 (grub_ofconsole_getwh): ... this.
29193 (grub_ofconsole_dimensions): ...and this.
29194 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
29195
58655a16
RM
291962010-01-13 Robert Millan <rmh.grub@aybabtu.com>
29197
29198 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
29199
10891398
VS
292002010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
29201
29202 * loader/i386/pc/multiboot2.c: Removed stalled file.
29203
0b8a223c
VS
292042010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
29205
29206 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
29207 Reported by: Grégoire Sutre
29208
92ab12b0
RM
292092010-01-11 Robert Millan <rmh.grub@aybabtu.com>
29210
29211 * util/misc.c (canonicalize_file_name): New function.
29212 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
29213 instead of realpath().
29214
a788afb6
CW
292152010-01-11 Colin Watson <cjwatson@ubuntu.com>
29216
29217 * util/grub-install.in (usage): Clarify meaning of --root-directory,
29218 and make it clearer that it's optional. Based on confusion
29219 witnessed on IRC.
29220
ffa8e3d2
VS
292212010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
29222
29223 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
29224 in premature implicit newline.
29225
e9060a9d
VS
292262010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
29227
29228 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
29229 which resulted in garbled command line at the end of screen.
29230
f0d0c0b7
RM
292312010-01-10 Robert Millan <rmh.grub@aybabtu.com>
29232
29233 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
29234 initialization with similar approach as with other Linux loaders.
29235
0e60bae7
RM
292362010-01-10 Robert Millan <rmh.grub@aybabtu.com>
29237
29238 Fix i386-ieee1275 build.
29239
29240 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
29241 and grub_term_height() for video_{width,height} initialization.
29242
292432010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
29244
29245 Fix grub-emu build.
29246
29247 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
29248
cdb3f378
RM
292492010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
292502010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29251
29252 Support for multiple terminals.
29253
29254 * Makefile.in (pkglib_DATA): terminal.lst.
29255 (terminal.lst): New target.
29256 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
29257 (GRUB_MOD_INIT(handler)): Likewise.
29258 (GRUB_MOD_FINI(handler)): Likewise.
29259 * commands/help.c (grub_cmd_help): Handle multiple terminals.
29260 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
29261 * commands/sleep.c (do_print): Use grub_term_restore_pos.
29262 (grub_cmd_sleep): Use grub_term_save_pos.
29263 * commands/terminal.c: New file.
29264 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
29265 commands/terminal.c and lib/charset.c.
29266 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
29267 (pkglib_MODULES): Add terminal.mod.
29268 (terminal_mod_SOURCES): New variable.
29269 (terminal_mod_CFLAGS): Likewise.
29270 (terminal_mod_LDFLAGS): Likewise.
29271 * genhandlerlist.sh: Don't handle terminals.
29272 * genmk.rb: Generate terminal-*.lst.
29273 * genterminallist.sh: New file.
29274 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
29275 (grub_is_valid_utf8): Likewise.
29276 (grub_utf8_to_ucs4_alloc): Likewise.
29277 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
29278 (grub_menu_register_viewer): Changed argument.
29279 (grub_menu_try_text): New proto.
29280 (grub_gfxmenu_try_hook): New declaration.
29281 * include/grub/normal.h (grub_normal_exit_level): New declaration.
29282 (grub_menu_init_page): Additional argument term.
29283 (grub_normal_init_page): Likewise.
29284 (grub_cmdline_get): Arguments simplified.
29285 (grub_utf8_to_ucs4_alloc): Removed.
29286 (grub_print_ucs4): Additional argument term.
29287 (grub_getstringwidth): Likewise.
29288 (grub_print_message_indented): Likewise.
29289 (grub_menu_text_register_instances): New proto.
29290 (grub_show_menu): Likewise.
29291 (read_terminal_list): Likewise.
29292 (grub_set_more): Likewise.
29293 * include/grub/parser.h: Include handler.h.
29294 * include/grub/reader.h: Rewritten.
29295 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
29296 (GRUB_TERM_WIDTH): Changed to function.
29297 (GRUB_TERM_HEIGHT): Likewise.
29298 (GRUB_TERM_BORDER_WIDTH): Likewise.
29299 (GRUB_TERM_BORDER_HEIGHT): Likewise.
29300 (GRUB_TERM_NUM_ENTRIES): Likewise.
29301 (GRUB_TERM_ENTRY_WIDTH): Likewise.
29302 (GRUB_TERM_CURSOR_X): Likewise.
29303 (grub_term_input_class): Likewise.
29304 (grub_term_output_class): Likewise.
29305 (grub_term_outputs_disabled): New declaration.
29306 (grub_term_inputs_disabled): Likewise.
29307 (grub_term_outputs): Likewise.
29308 (grub_term_inputs): Likewise.
29309 (grub_term_register_input): Rewritten.
29310 (grub_term_register_output): Likewise.
29311 (grub_term_unregister_input): Likewise.
29312 (grub_term_unregister_output): Likewise.
29313 (FOR_ACTIVE_TERM_INPUTS): New macro.
29314 (FOR_DISABLED_TERM_INPUTS): Likewise.
29315 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
29316 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
29317 * include/grub/terminfo.h: Add oterm argument to all protypes.
29318 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
29319 Use grub_rescue_run.
29320 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
29321 All users updated.
29322 * kern/reader.c: Removed. All users updated.
29323 * kern/rescue_reader.c (grub_rescue_init): Removed.
29324 (grub_rescue_reader): Likewise.
29325 (grub_register_rescue_reader): Likewise.
29326 (grub_rescue_run): New function based on kern/reader.c.
29327 * kern/term.c: Adapted for multiterm.
29328 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
29329 (grub_is_valid_utf8): Likewise.
29330 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
29331 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
29332 right terminal.
29333 * loader/i386/linux.c (grub_linux_boot): Likewise.
29334 * normal/auth.c (grub_username_get): New function.
29335 (grub_auth_check_authentication): Use grub_username_get.
29336 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
29337 * normal/color.c: Adapt for multiterm.
29338 * normal/main.c (read_config_file): Don't use grub_reader_loop.
29339 (grub_normal_init_page): Additional argument term.
29340 (read_lists): Call read_terminal_lists.
29341 (grub_enter_normal_mode): Call grub_cmdline_run.
29342 Handle grub_normal_exit_level.
29343 (grub_cmd_normal): Make reentrant.
29344 (grub_cmd_normal_exit): New function.
29345 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
29346 * normal/menu.c: Adapt for multiterm.
29347 * normal/menu_entry.c: Likewise.
29348 * normal/menu_text.c: Likewise.
29349 * normal/menu_viewer.c: Removed. All users updated.
29350 * normal/term.c: New file.
29351 * util/console.c: Change order of includes to workaround a bug in
29352 ncurses headers.
29353 * term/terminfo.c: New argument oterm on all exported functions.
29354 All users updated.
29355 * util/grub-editenv.c (grub_term_input_class): Removed.
29356 (grub_term_output_class): Likewise.
29357
1a064917
RM
293582010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29359
29360 Make loader output a bit more user-friendly.
29361
29362 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
29363 is being loaded. Likewise for the Hurd.
29364
29365 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
29366 that kernel of FreeBSD ${version} is being loaded.
29367
29368 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
29369 grub_dprintf().
29370 (grub_cmd_initrd): Likewise.
29371 * util/grub.d/10_linux.in (linux_entry): Print message indicating
29372 that Linux ${version} is being loaded. Likewise for initrd.
29373
5ce0a83a 293742010-01-09 Carles Pina i Estany <carles@pina.cat>
29375
29376 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
29377
809bbfeb 293782010-01-08 Carles Pina i Estany <carles@pina.cat>
29379
29380 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
29381 (GRUB_MOD_INIT): Gettextizze.
29382 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
29383 (GRUB_MOD_INIT): Gettextizze.
29384 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
29385 (grub_cmd_linux): Capitalise Linux.
29386 (GRUB_MOD_INIT): Gettextizze.
29387 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
29388 (grub_cmd_linux): Capitalise Linux.
29389 (GRUB_MOD_INIT): Gettextizze.
29390 * loader/i386/linux.c: Include `<grub/i18n.h>'.
29391 (grub_cmd_linux): Capitalise Linux.
29392 (GRUB_MOD_INIT): Gettextizze.
29393 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
29394 (GRUB_MOD_INIT): Gettextizze.
29395 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
29396 (grub_cmd_linux): Capitalise Linux.
29397 (GRUB_MOD_INIT): Gettextizze.
29398 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
29399 (grub_cpu_xnu_init): Gettextizze.
29400 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
29401 (GRUB_MOD_INIT): Gettextizze.
29402 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
29403 (GRUB_MOD_INIT): Gettextizze.
29404 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
29405 (grub_linux_load64): Capitalise Linux.
29406 (GRUB_MOD_INIT): Gettextizze.
29407 * loader/xnu.c: Include `<grub/i18n.h>'.
29408 (GRUB_MOD_INIT): Gettextizze.
29409 * po/POTFILES: Add `loader/efi/appleloader.c',
29410 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
29411 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
29412 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
29413 `loader/i386/xnu.c', `loader/multiboot_loader.c',
29414 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
29415 and `loader/xnu.c'.
29416
b394b2ca
RM
294172010-01-08 Robert Millan <rmh.grub@aybabtu.com>
29418
29419 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
29420
294212010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
29422
29423 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
29424 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
29425 * util/mkisofs/mkisofs.c (main): Readjust --version output.
29426
bc8b32b3
RM
294272010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29428
29429 Reset Multiboot 2 support. New loader implements the draft in
29430 /branches/multiboot2 and shares as much code as possible with the
29431 production Multiboot 1 implementation.
29432
29433 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
29434 * loader/multiboot2.c: Likewise.
29435 * loader/i386/multiboot_helper.S: Likewise.
29436 * include/multiboot2.h: Replace with latest version from the draft
29437 in /branches/multiboot2.
29438
29439 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
29440 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
29441 and `loader/multiboot2.c'.
29442 (pkglib_MODULES): Add `multiboot2.mod'.
29443 (multiboot2_mod_SOURCES): New variable.
29444 (multiboot2_mod_LDFLAGS): Likewise.
29445 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
29446
29447 * conf/i386-pc.rmk: Likewise.
29448
29449 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29450 (multiboot_mod_SOURCES): Remove variable.
29451 (multiboot_mod_LDFLAGS): Likewise.
29452 (multiboot_mod_CFLAGS): Likewise.
29453
29454 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
29455 `<multiboot2.h>' instead of `<multiboot.h>'.
29456 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
29457 (MULTIBOOT_HEADER_MAGIC): New macros.
29458
29459 * loader/multiboot_loader.c (module_version_status): Remove variable.
29460 (find_multi_boot2_header): Remove function.
29461 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
29462 logic. Always check for the Multiboot version we're compiling for.
29463 (grub_cmd_module_loader): Likewise.
29464 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
29465 command instead of `multiboot'.
29466
5d2c52b8
RM
294672010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29468
29469 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
29470 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
29471 all users.
29472
53108d92
RM
294732010-01-07 Robert Millan <rmh.grub@aybabtu.com>
294742010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29475
29476 Fix breakage introduced with previous commit.
29477
29478 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
29479 commands.
29480 * normal/handler.c (read_handler_list): Revert part of previous commit
29481 affecting this file.
29482 * normal/main.c (read_lists): Move read_handler_list() call back to ...
29483 (grub_normal_execute): ... here.
29484
e2e936b2
RM
294852010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29486
29487 Merge prefix-redefinition-fix branch.
29488
29489 * normal/autofs.c (read_fs_list): Make function capable of being
29490 run multiple times, gracefuly replacing the previous data
29491 structures.
29492 * normal/dyncmd.c (read_command_list): Likewise.
29493 * normal/handler.c (read_handler_list): Likewise.
29494 * normal/main.c (read_lists): New function. Calls all the
29495 list reading functions.
29496 (grub_normal_execute): Use read_lists() instead of calling all
29497 list reading functions explicitly. Register read_lists() as a
29498 variable hook attached to ${prefix}.
29499
607a3701
VS
295002010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29501
29502 Merge crypto branch.
29503
29504 * Makefile.in (pkglib_DATA): Add crypto.lst.
29505 (crypto.lst): New target.
29506 * commands/hashsum.c: New file.
29507 * commands/password.c (check_password): Use grub_crypto_memcmp.
29508 * commands/password_pbkdf2.c: New file.
29509 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
29510 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
29511 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
29512 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
29513 -I$(srcdir)/lib/libgcrypt_wrap.
29514 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
29515 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
29516 password_pbkdf2.mod.
29517 (crypto_mod_SOURCES): New variable.
29518 (crypto_mod_CFLAGS): Likewise.
29519 (crypto_mod_LDFLAGS): Likewise.
29520 (hashsum_mod_SOURCES): New variable.
29521 (hashsum_mod_CFLAGS): Likewise.
29522 (hashsum_mod_LDFLAGS): Likewise.
29523 (pbkdf2_mod_SOURCES): New variable.
29524 (pbkdf2_mod_CFLAGS): Likewise.
29525 (pbkdf2_mod_LDFLAGS): Likewise.
29526 (password_pbkdf2_mod_SOURCES): New variable.
29527 (password_pbkdf2_mod_CFLAGS): Likewise.
29528 (password_pbkdf2_mod_LDFLAGS): Likewise.
29529 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
29530 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
29531 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
29532 Include conf/gcry.rmk.
29533 * include/grub/auth.h: Rewritten.
29534 * include/grub/crypto.h: New file.
29535 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
29536 * include/grub/normal.h (read_crypto_list): New prototype.
29537 * lib/crypto.c: New file.
29538 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29539 * lib/pbkdf2.c: Likewise.
29540 * normal/auth.c (grub_auth_strcmp): Removed.
29541 (grub_iswordseparator): Likewise.
29542 (grub_auth_strword): Likewise.
29543 (is_authenticated): Use grub_strword.
29544 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
29545 and grub_strword. Pass entered password to authentication callback.
29546 * normal/crypto.c: New file.
29547 * normal/main.c: Call read_crypto_list.
29548 * util/grub-mkpasswd-pbkdf2.c: New file.
29549 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
29550
42841caa
VS
295512010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
29552
29553 Fix descent and ascent calculation.
29554
29555 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
29556 (options): New option "asce".
29557 (usage): Likewise.
29558 (add_char): Ignore invalid glyphs for descent calculation.
29559 Calculate ascent from actual content.
29560 (print_glyphs): Use 'asce'.
29561 (write_font): Likewise. Allow ascent override.
29562 (main): Handle "asce" option.
29563
e7730de7 295642010-01-06 Carles Pina i Estany <carles@pina.cat>
29565
29566 * kern/err.c: Include `<grub/i18n.h>'.
29567 (grub_print_error): Add full stop. Gettextizze.
29568 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
29569 (grub_bsd_load_elf): Capitalise ELF.
29570 (grub_cmd_freebsd_loadenv): Add `s' in error string.
29571 (grub_cmd_freebsd_module): Likewise.
29572 (grub_cmd_freebsd_module_elf): Likewise.
29573 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
29574
40e3a41f 295752010-01-06 Carles Pina i Estany <carles@pina.cat>
29576
29577 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
29578 * commands/search_file.c (HELP_MESSAGE): New macro.
29579 * commands/search_label.c (HELP_MESSAGE): Likewise.
29580 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
29581 * po/POTFILES: Add `commands/search_file.c',
29582 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
29583 `commands/search.c'.
29584
83507e68
RM
295852010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29586
29587 * config.rpath: Update from Gnulib.
29588
465c787b
YB
295892010-01-05 Yves Blusseau <blusseau@zetam.org>
29590
29591 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
29592
6581dd3a
YB
295932010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
29594
29595 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
29596
3bff18c5
CW
295972010-01-05 Colin Watson <cjwatson@ubuntu.com>
29598
29599 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
29600 arguments to fread so that we get a return value in bytes, rather
29601 than something that will normally be rounded down to 0.
29602 Adjust error handling to avoid producing garbage when size_t is not
29603 the same size as long long.
29604
a1368118
CW
296052010-01-05 Colin Watson <cjwatson@ubuntu.com>
29606
29607 * util/mkisofs/write.c (padblock_write): Check return value of
29608 fread.
29609
7c302978
RM
296102010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29611
29612 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
29613 floppy images now.
29614
29615 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
29616
e33ace06
RM
296172010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29618
29619 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
29620 instead of manual alignment.
29621 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
29622 verbose). Avoid attempts to read past end of the device
29623 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
29624 but GRUB_DISK_CACHE_SIZE may exceed that).
29625
4b856776
RM
296262010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29627
29628 * commands/crc.c (grub_cmd_crc): Abort on read errors.
29629 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
29630 it to upper layer.
29631
52c2d97f
VS
296322010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29633
29634 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
29635 New constant.
29636 (grub_efi_piwg_device_path): New structure
29637 (grub_efi_piwg_device_path_t): New type.
29638 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
29639 (devpath_1): Transform to a structure. All users updated.
29640 (devpath_2): Likewise.
29641 (devpath_3): Likewise.
29642 (devpath_4): Likewise.
29643 (devpath_5): Likewise.
29644
98ff6a54
VS
296452010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29646
29647 * loader/efi/appleloader.c: Restored. Update all users.
29648
3a73dcb6
RM
296492010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29650
29651 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
29652
29653 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
29654 (struct boot_blocklist): Move from here ...
29655 * include/grub/i386/pc/boot.h [ASM_FILE]
29656 (struct grub_boot_blocklist): ... to here. Update all users.
29657 (setup): Only initialize `start' member of `first_block'
29658 structure. Add assert() calls to verify the other members.
29659
29660 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
29661 (generate_image): Fix broken blocklist length initialization.
29662 Add assert() call to verify blocklist `segment' field.
29663
ab0eeb0c
RM
296642010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29665
29666 * loader/efi/appleloader.c: Remove. Update all users.
29667
58bc8bd5
RM
296682010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29669
29670 * boot/i386/pc/boot.S: Update copyright year.
29671 * boot/i386/pc/cdboot.S: Likewise.
29672 * boot/i386/pc/diskboot.S: Likewise.
29673 * boot/i386/pc/lnxboot.S: Likewise.
29674 * boot/i386/pc/pxeboot.S: Likewise.
29675 * bus/pci.c: Likewise.
29676 * commands/cmp.c: Likewise.
29677 * commands/help.c: Likewise.
29678 * commands/hexdump.c: Likewise.
29679 * commands/i386/pc/halt.c: Likewise.
29680 * commands/i386/pc/play.c: Likewise.
29681 * commands/i386/pc/vbeinfo.c: Likewise.
29682 * commands/ls.c: Likewise.
29683 * commands/test.c: Likewise.
29684 * disk/dmraid_nvidia.c: Likewise.
29685 * disk/i386/pc/biosdisk.c: Likewise.
29686 * disk/ieee1275/nand.c: Likewise.
29687 * disk/ieee1275/ofdisk.c: Likewise.
29688 * disk/lvm.c: Likewise.
29689 * disk/raid.c: Likewise.
29690 * disk/raid6_recover.c: Likewise.
29691 * disk/scsi.c: Likewise.
29692 * fs/affs.c: Likewise.
29693 * fs/cpio.c: Likewise.
29694 * fs/ext2.c: Likewise.
29695 * fs/hfs.c: Likewise.
29696 * fs/iso9660.c: Likewise.
29697 * fs/ntfs.c: Likewise.
29698 * fs/sfs.c: Likewise.
29699 * fs/udf.c: Likewise.
29700 * fs/ufs.c: Likewise.
29701 * fs/xfs.c: Likewise.
29702 * gencmdlist.sh: Likewise.
29703 * genmk.rb: Likewise.
29704 * include/grub/disk.h: Likewise.
29705 * include/grub/efi/api.h: Likewise.
29706 * include/grub/efi/efi.h: Likewise.
29707 * include/grub/efi/pe32.h: Likewise.
29708 * include/grub/elf.h: Likewise.
29709 * include/grub/fs.h: Likewise.
29710 * include/grub/i386/at_keyboard.h: Likewise.
29711 * include/grub/i386/pc/memory.h: Likewise.
29712 * include/grub/i386/pc/vbe.h: Likewise.
29713 * include/grub/i386/pci.h: Likewise.
29714 * include/grub/i386/tsc.h: Likewise.
29715 * include/grub/ieee1275/ieee1275.h: Likewise.
29716 * include/grub/ntfs.h: Likewise.
29717 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29718 * include/grub/sparc64/libgcc.h: Likewise.
29719 * include/grub/symbol.h: Likewise.
29720 * include/grub/types.h: Likewise.
29721 * include/multiboot2.h: Likewise.
29722 * io/gzio.c: Likewise.
29723 * kern/device.c: Likewise.
29724 * kern/disk.c: Likewise.
29725 * kern/efi/efi.c: Likewise.
29726 * kern/efi/mm.c: Likewise.
29727 * kern/elf.c: Likewise.
29728 * kern/file.c: Likewise.
29729 * kern/i386/dl.c: Likewise.
29730 * kern/i386/pc/init.c: Likewise.
29731 * kern/i386/pc/startup.S: Likewise.
29732 * kern/ieee1275/ieee1275.c: Likewise.
29733 * kern/ieee1275/init.c: Likewise.
29734 * kern/main.c: Likewise.
29735 * kern/mm.c: Likewise.
29736 * kern/powerpc/dl.c: Likewise.
29737 * kern/sparc64/dl.c: Likewise.
29738 * kern/x86_64/dl.c: Likewise.
29739 * lib/hexdump.c: Likewise.
29740 * loader/efi/appleloader.c: Likewise.
29741 * loader/i386/ieee1275/linux.c: Likewise.
29742 * loader/i386/pc/chainloader.c: Likewise.
29743 * loader/i386/pc/linux.c: Likewise.
29744 * loader/i386/pc/multiboot2.c: Likewise.
29745 * loader/ieee1275/multiboot2.c: Likewise.
29746 * loader/multiboot2.c: Likewise.
29747 * loader/multiboot_loader.c: Likewise.
29748 * loader/powerpc/ieee1275/linux.c: Likewise.
29749 * normal/completion.c: Likewise.
29750 * normal/menu_entry.c: Likewise.
29751 * partmap/apple.c: Likewise.
29752 * util/grub.d/10_hurd.in: Likewise.
29753 * util/hostfs.c: Likewise.
29754 * video/readers/png.c: Likewise.
29755
e2d70b5c
CW
297562010-01-03 Colin Watson <cjwatson@ubuntu.com>
29757
29758 * include/grub/misc.h (GNUC_PREREQ): New macro.
29759 (ATTRIBUTE_ERROR): New macro.
29760 * include/grub/list.h (grub_bad_type_cast_real): Use
29761 ATTRIBUTE_ERROR.
29762
a173283f 297632010-01-03 Carles Pina i Estany <carles@pina.cat>
29764
29765 * normal/menu_text.c (print_message): Change messages.
29766
7fa7ff74 297672010-01-03 Carles Pina i Estany <carles@pina.cat>
29768
29769 * normal/menu_entry.c (store_completion): Gettextizze.
29770
136d24f6 297712010-01-03 Carles Pina i Estany <carles@pina.cat>
29772
29773 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29774
f936862e 297752010-01-03 Carles Pina i Estany <carles@pina.cat>
29776
29777 * po/POTFILES: Sort correctly.
29778
29c44ad1 297792010-01-03 Carles Pina i Estany <carles@pina.cat>
29780
29781 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29782 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29783 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29784 full stop.
29785 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29786 summary. Gettextizze the strings.
29787 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29788 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29789 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29790 full stop.
29791 (GRUB_MOD_INIT): Remove command name from summary.
29792 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29793 summary.
29794 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29795 * term/i386/pc/serial.c (options): Add full stops.
29796 (GRUB_MOD_INIT): Remove command name from the summary.
29797
77a79592 297982010-01-03 Carles Pina i Estany <carles@pina.cat>
29799
29800 * commands/acpi.c: Gettextizze help strings and/or options. Include
29801 `grub/i18n.h' if needed.
29802 * commands/blocklist.c: Likewise.
29803 * commands/boot.c: Likewise.
29804 * commands/cat.c: Likewise.
29805 * commands/cmp.c: Likewise.
29806 * commands/configfile.c: Likewise.
29807 * commands/crc.c: Likewise.
29808 * commands/date.c: Likewise.
29809 * commands/echo.c: Likewise.
29810 * commands/efi/fixvideo.c: Likewise.
29811 * commands/efi/loadbios.c: Likewise.
29812 * commands/gptsync.c: Likewise.
29813 * commands/halt.c: Likewise.
29814 * commands/handler.c: Likewise.
29815 * commands/hdparm.c: Likewise.
29816 * commands/hexdump.c: Likewise.
29817 * commands/i386/cpuid.c: Likewise.
29818 * commands/i386/pc/drivemap.c: Likewise.
29819 * commands/i386/pc/halt.c: Likewise.
29820 * commands/i386/pc/pxecmd.c: Likewise.
29821 * commands/i386/pc/vbeinfo.c: Likewise.
29822 * commands/i386/pc/vbetest.c: Likewise.
29823 * commands/ieee1275/suspend.c: Likewise.
29824 * commands/keystatus.c: Likewise.
29825 * commands/loadenv.c: Likewise.
29826 * commands/ls.c: Likewise.
29827 * commands/lsmmap.c: Likewise.
29828 * commands/lspci.c: Likewise.
29829 * commands/memrw.c: Likewise.
29830 * commands/minicmd.c: Likewise.
29831 * commands/parttool.c: Likewise.
29832 * commands/password.c: Likewise.
29833 * commands/probe.c: Likewise.
29834 * commands/read.c: Likewise.
29835 * commands/reboot.c: Likewise.
29836 * commands/search.c: Likewise.
29837 * commands/sleep.c: Likewise.
29838 * commands/test.c: Likewise.
29839 * commands/true.c: Likewise.
29840 * commands/usbtest.c: Likewise.
29841 * commands/videotest.c: Likewise.
29842 * commands/xnu_uuid.c: Likewise.
29843 * disk/loopback.c: Likewise.
29844 * hello/hello.c: Likewise.
29845 * loader/i386/bsd.c: Likewise.
29846 * term/i386/pc/serial.c: Likewise.
29847 * po/POTFILES: Add new files.
29848
da8d5c53
CW
298492010-01-02 Colin Watson <cjwatson@ubuntu.com>
29850
29851 * term/i386/pc/at_keyboard.c
29852 (keyboard_controller_wait_untill_ready): Rename to ...
29853 (keyboard_controller_wait_until_ready): ... this. Update all users.
29854
33937904 298552010-01-01 Carles Pina i Estany <carles@pina.cat>
29856
29857 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29858 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29859 string using string width.
29860 * normal/menu_text.c (grub_print_message_indented): Use
29861 grub_print_spaces and not print_spaces.
29862 (print_timeout): Likewise.
29863 (print_spaces): Move to...
29864 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29865
3fd3b8d8
RM
298662010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29867
29868 Import from Gnulib.
29869
29870 * gnulib/getdelim.c: New file.
29871 * gnulib/getline.c: Likewise.
29872
33433555
VS
298732009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29874
29875 * include/grub/list.h (grub_assert_fail): Removed.
29876 (grub_bad_type_cast_real): New function.
29877 (grub_bad_type_cast): New macro.
29878 (GRUB_AS_LIST): Use grub_bad_type_cast.
29879 (GRUB_AS_LIST_P): Likewise.
e44721e8 29880 (GRUB_AS_NAMED_LIST): Likewise.
33433555 29881 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 29882 (GRUB_AS_PRIO_LIST): Likewise.
33433555 29883 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 29884 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 29885
f5a51306
VS
298862009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29887
29888 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29889 Fix syntax error.
29890
90d1e879
RM
298912009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29892
29893 * configure.ac: Check for TARGET_CFLAGS initialization before we
29894 initialize it ourselves (sigh).
29895 Move a few modifications to TARGET_CFLAGS to be unconditional
29896 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29897 eh_frame)
29898
29899 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29900 * term/i386/pc/at_keyboard.c
29901 (keyboard_controller_wait_untill_ready): Likewise.
29902 (keyboard_controller_led): Rename `led_status' paramter to avoid
29903 name conflict.
29904
465b5a81 299052009-12-28 Carles Pina i Estany <carles@pina.cat>
29906
29907 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29908 quotes.
29909
c181849b
VS
299102009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29911
29912 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29913
9c8739a4
VS
299142009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29915
29916 * normal/menu_text.c (grub_print_message_indented): Prevent
29917 past-the-end-of-array dereference.
29918
3e74249c
VS
299192009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29920
29921 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29922 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29923
64fd18ed 299242009-12-27 Carles Pina i Estany <carles@pina.cat>
29925
29926 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29927 * normal/main.c (grub_normal_read_line): Remove a space from the
29928 default prompt.
29929
714af9b9 299302009-12-27 Carles Pina i Estany <carles@pina.cat>
29931
29932 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29933 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29934 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29935 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29936 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29937 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29938 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29939
82f3e412 299402009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 29941
29942 * video/readers/jpeg.c (cmd): Declare.
29943 (grub_cmd_jpegtest): Use `grub_command_t' type.
29944 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29945 Assign to `cmd'.
29946 (GRUB_MOD_FINI): Use `cmd' to unregister.
29947 * video/readers/png.c (cmd): Declare.
29948 (grub_cmd_pngtest): Use `grub_command_t' type.
29949 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29950 Assign to `cmd'.
29951 (GRUB_MOD_FINI): Use `cmd' to unregister.
29952 * video/readers/tga.c (cmd): Declare.
29953 (grub_cmd_tgatest): Use `grub_command_t' type.
29954 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29955 Assign to `cmd'.
29956 (GRUB_MOD_FINI): Use `cmd' to unregister.
29957
82f3e412 299582009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 29959
29960 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29961 stops.
29962 * kern/corecmd.c (grub_register_core_commands): Likewise.
29963 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29964 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29965 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29966 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29967 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29968 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29969 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29970 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29971 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29972 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29973 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29974 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29975 * normal/handler.c (insert_handler): Likewise.
29976 * normal/main.c (GRUB_MOD_INIT): Likewise.
29977 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29978
fdcdbb66 299792009-12-26 Carles Pina i Estany <carles@pina.cat>
29980
29981 * commands/help.c (grub_cmd_help): Print the command name before the
29982 summary.
29983 (GRUB_MOD_INIT): Remove command name from the summary.
29984 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 29985 string as summary.
fdcdbb66 29986 * lib/arg.c (find_long): Print the command name before the summary.
29987 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29988 summary.
29989 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29990 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29991 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29992 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29993 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29994 * commands/date.c (GRUB_MOD_INIT): Likewise.
29995 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29996 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29997 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29998 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29999 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
30000 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
30001 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
30002 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
30003 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
30004 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
30005 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
30006 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
30007 * commands/ls.c (GRUB_MOD_INIT): Likewise.
30008 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
30009 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
30010 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
30011 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
30012 * commands/password.c (GRUB_MOD_INIT): Likewise.
30013 * commands/probe.c (GRUB_MOD_INIT): Likewise.
30014 * commands/read.c (GRUB_MOD_INIT): Likewise.
30015 * commands/search.c (GRUB_MOD_INIT): Likewise.
30016 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
30017 * commands/test.c (GRUB_MOD_INIT): Likewise.
30018 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
30019 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
30020 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
30021 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
30022 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
30023 * lib/arg.c (GRUB_MOD_INIT): Likewise.
30024 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
30025 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
30026 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
30027 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
30028 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
30029 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
30030 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
30031 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
30032
9c288be2
VS
300332009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 Use search command for preliminar UUID search.
30036
30037 * commands/search.c: Split into ...
30038 * commands/search_wrap.c: ...this
30039 * commands/search.c: ...and this.
30040 * commands/search_file.c: New file.
30041 * commands/search_label.c: New file.
30042 * commands/search_uuid.c: New file.
30043 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
30044 Add commands/search_wrap.c, commands/search_file.c,
30045 commands/search_label.c and commands/search_uuid.c.
30046 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
30047 (search_mod_SOURCES): Set to commands/search_wrap.c.
30048 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
30049 search_label.mod.
30050 (search_fs_file_mod_SOURCES): New variable.
30051 (search_fs_file_mod_CFLAGS): Likewise.
30052 (search_fs_file_mod_LDFLAGS): Likewise.
30053 (search_label_mod_SOURCES): Likewise.
30054 (search_label_mod_CFLAGS): Likewise.
30055 (search_label_mod_LDFLAGS): Likewise.
30056 (search_fs_uuid_mod_SOURCES): New variable.
30057 (search_fs_uuid_mod_CFLAGS): Likewise.
30058 (search_fs_uuid_mod_LDFLAGS): Likewise.
30059 (fs_file_mod_SOURCES): Removed.
30060 (fs_file_mod_CFLAGS): Likewise.
30061 (fs_file_mod_LDFLAGS): Likewise.
30062 (fs_uuid_mod_SOURCES): Removed.
30063 (fs_uuid_mod_CFLAGS): Likewise.
30064 (fs_uuid_mod_LDFLAGS): Likewise.
30065 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
30066 Set to util/grub-install.in.
30067 * disk/fs_file.c: Removed.
30068 * disk/fs_uuid.c: Likewise.
30069 * include/grub/search.h: New file.
30070 * util/grub-install.in: Handle sparc64.
30071 Create and use load.cfg.
30072 * util/sparc64/ieee1275/grub-install.in: Removed.
30073
db943399
VS
300742009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
30075
30076 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
30077 Ignore return status if CF is cleared.
30078 (grub_biosdisk_get_diskinfo_standard): Likewise.
30079
3fdae612
RM
300802009-12-25 Robert Millan <rmh.grub@aybabtu.com>
30081
30082 * term/i386/pc/at_keyboard.c
30083 (keyboard_controller_wait_untill_ready): New function.
30084 (grub_keyboard_controller_write, grub_keyboard_controller_read)
30085 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
30086 for keyboard polling, rather than duplicate the same loop. This
30087 saves a few bytes in code size.
30088
7ebaa2b4
VS
300892009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
30090
30091 Support for (pxe[:server[:gateway]]) syntax and
30092 use environment variable for PXE.
30093
30094 * commands/i386/pc/pxecmd.c (options): Removed.
30095 (print_ip): Removed.
30096 (grub_cmd_pxe): Removed
30097 (grub_cmd_pxe_unload): New function.
30098 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
30099 (grub_pxe_your_ip): Made static.
30100 (grub_pxe_default_server_ip): Likewise.
30101 (grub_pxe_default_gateway_ip): Likewise.
30102 (grub_pxe_blksize): Likewise.
30103 (parse_ip): New function.
30104 (grub_pxe_open): Support server and gateway specification.
30105 (grub_pxe_close): Free disk->data.
30106 (grub_pxefs_open): Use disk->data.
30107 (grub_pxefs_read): Likewise.
30108 (grub_env_write_readonly): New function.
30109 (set_mac_env): Likewise.
30110 (set_env_limn_ro): Likewise.
30111 (parse_dhcp_vendor): Likewise.
30112 (grub_pxe_detect): Set the environment variables.
30113 (set_ip_env): New function.
30114 (write_ip_env): Likewise.
30115 (grub_env_write_pxe_default_server): Likewise.
30116 (grub_env_write_pxe_default_gateway): Likewise.
30117 (grub_env_write_pxe_blocksize): Likewise.
30118 (GRUB_MOD_INIT(pxe)): Set environment variables.
30119 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
30120 (grub_pxe_mac_addr_t): ... this. All users updated.
30121 (grub_pxe_your_ip): Removed.
30122 (grub_pxe_server_ip): Likewise.
30123 (grub_pxe_gateway_ip): Likewise.
30124 (grub_pxe_blksize): Likewise.
30125
ec5f98ab 301262009-12-25 Carles Pina i Estany <carles@pina.cat>
30127
30128 * commands/help.c: Include `<grub/i18n.h>'.
30129 (grub_cmd_help): Gettextizze.
30130 (GRUB_MOD_INIT): Likewise.
30131 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
30132 (GRUB_MOD_INIT): Gettextizze.
30133 * commands/search.c: Include `<grub/i18n.h>'.
30134 (options): Gettextizze.
30135 (GRUB_MOD_INIT): Gettextizze.
30136 * lib/arg.c: Include `<grub/i18n.h>'.
30137 (help_options): Gettextizze.
30138 (find_long): Likewise.
30139 (grub_arg_show_help): Likewise.
30140 * normal/dyncmd.c: Include `<grub/i18n.h>'.
30141 (read_command_list): Gettextizze.
30142 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 30143 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 30144
22815526
RM
301452009-12-25 Robert Millan <rmh.grub@aybabtu.com>
30146
30147 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
30148 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
30149 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
30150 (led_status): New variable.
30151 (keyboard_controller_led): New function.
30152 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
30153 update led status for caps lock, num lock and scroll lock.
30154
0ad46fd7
FZ
301552009-12-25 Felix Zielcke <fzielcke@z-51.de>
30156
30157 * util/hostdisk.c (open_device): Fix a comment.
30158
d0e158c2
RM
301592009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30160
30161 * util/grub-install.in (host_os): New variable.
30162 * util/i386/efi/grub-install.in (host_os): Likewise.
30163
401c0ad6
RM
301642009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30165
30166 * util/mkisofs/write.c (padblock_write): Abort when given an
30167 excedingly large embed image, instead of silently truncating it.
30168
d14d3370
RM
301692009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30170
30171 * include/multiboot.h: Indentation fixes.
30172
eeed10b4
RM
301732009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30174
30175 * include/multiboot.h (struct multiboot_aout_symbol_table)
30176 (struct multiboot_elf_section_header_table): New structure
30177 declarations (stolen from GRUB Legacy).
30178 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
30179 table information.
30180
30181 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
30182 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
30183 type aliases.
30184
681c70ab
RM
301852009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30186
30187 * include/multiboot.h: Make comments src2texi-friendly.
30188
e4d47d8d
RM
301892009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30190
30191 For consistency with [multiboot]/docs/boot.S.
30192
30193 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
30194 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
30195 (MULTIBOOT_MAGIC2): Rename from this ...
30196 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
30197
a0b70bda
RM
301982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
30199
30200 * include/multiboot.h: Remove `<grub/types.h>'.
30201 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
30202 types. Update all users.
30203
61ba42be 302042009-12-25 Carles Pina i Estany <carles@pina.cat>
30205
30206 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
30207 `couldn't' and `can not' by `cannot'.
30208 * commands/i386/pc/drivemap.c: Likewise.
30209 * disk/ata.c: Likewise.
30210 * disk/ieee1275/nand.c: Likewise.
30211 * fs/affs.c: Likewise.
30212 * fs/fat.c: Likewise.
30213 * fs/hfs.c: Likewise.
30214 * fs/hfsplus.c: Likewise.
30215 * fs/iso9660.c: Likewise.
30216 * fs/jfs.c: Likewise.
30217 * fs/minix.c: Likewise.
30218 * fs/reiserfs.c: Likewise.
30219 * fs/sfs.c: Likewise.
30220 * fs/udf.c: Likewise.
30221 * fs/ufs.c: Likewise.
30222 * fs/xfs.c: Likewise.
30223 * loader/powerpc/ieee1275/linux.c: Likewise.
30224 * loader/sparc64/ieee1275/linux.c: Likewise.
30225 * util/grub-probe.c: Likewise.
30226 * util/misc.c: Likewise.
30227
7fd0baee 302282009-12-24 Carles Pina i Estany <carles@pina.cat>
30229
30230 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
30231 grub_errno calls.
30232 * commands/acpi.c: Likewise.
30233 * commands/blocklist.c: Likewise.
30234 * commands/efi/loadbios.c: Likewise.
30235 * commands/i386/pc/drivemap.c: Likewise.
30236 * commands/loadenv.c: Likewise.
30237 * commands/memrw.c: Likewise.
30238 * commands/password.c: Likewise.
30239 * commands/videotest.c: Likewise.
30240 * disk/ata.c: Likewise.
30241 * disk/ata_pthru.c: Likewise.
30242 * disk/dmraid_nvidia.c: Likewise.
30243 * disk/ieee1275/nand.c: Likewise.
30244 * disk/ieee1275/ofdisk.c: Likewise.
30245 * disk/loopback.c: Likewise.
30246 * disk/lvm.c: Likewise.
30247 * disk/mdraid_linux.c: Likewise.
30248 * disk/raid.c: Likewise.
30249 * disk/raid6_recover.c: Likewise.
30250 * disk/scsi.c: Likewise.
30251 * efiemu/main.c: Likewise.
30252 * efiemu/mm.c: Likewise.
30253 * efiemu/pnvram.c: Likewise.
30254 * efiemu/symbols.c: Likewise.
30255 * font/font.c: Likewise.
30256 * fs/cpio.c: Likewise.
30257 * fs/hfsplus.c: Likewise.
30258 * fs/iso9660.c: Likewise.
30259 * fs/jfs.c: Likewise.
30260 * fs/minix.c: Likewise.
30261 * fs/ntfs.c: Likewise.
30262 * fs/ntfscomp.c: Likewise.
30263 * fs/reiserfs.c: Likewise.
30264 * fs/ufs.c: Likewise.
30265 * fs/xfs.c: Likewise.
30266 * gettext/gettext.c: Likewise.
30267 * include/grub/auth.h: Likewise.
30268 * kern/elf.c: Likewise.
30269 * kern/file.c: Likewise.
30270 * kern/ieee1275/init.c: Likewise.
30271 * kern/ieee1275/mmap.c: Likewise.
30272 * kern/ieee1275/openfw.c: Likewise.
30273 * kern/powerpc/dl.c: Likewise.
30274 * kern/sparc64/dl.c: Likewise.
30275 * lib/arg.c: Likewise.
30276 * loader/i386/bsd.c: Likewise.
30277 * loader/i386/bsdXX.c: Likewise.
30278 * loader/i386/efi/linux.c: Likewise.
30279 * loader/i386/efi/xnu.c: Likewise.
30280 * loader/i386/ieee1275/linux.c: Likewise.
30281 * loader/i386/linux.c: Likewise.
30282 * loader/i386/multiboot.c: Likewise.
30283 * loader/i386/pc/linux.c: Likewise.
30284 * loader/i386/pc/multiboot2.c: Likewise.
30285 * loader/i386/xnu.c: Likewise.
30286 * loader/ieee1275/multiboot2.c: Likewise.
30287 * loader/macho.c: Likewise.
30288 * loader/machoXX.c: Likewise.
30289 * loader/multiboot2.c: Likewise.
30290 * loader/multiboot_loader.c: Likewise.
30291 * loader/powerpc/ieee1275/linux.c: Likewise.
30292 * loader/sparc64/ieee1275/linux.c: Likewise.
30293 * loader/xnu.c: Likewise.
30294 * loader/xnu_resume.c: Likewise.
30295 * mmap/i386/pc/mmap.c: Likewise.
30296 * normal/menu_viewer.c: Likewise.
30297 * partmap/acorn.c: Likewise.
30298 * partmap/amiga.c: Likewise.
30299 * partmap/apple.c: Likewise.
30300 * script/lexer.c: Likewise.
30301 * term/gfxterm.c: Likewise.
30302 * term/i386/pc/serial.c: Likewise.
30303 * term/i386/pc/vga.c: Likewise.
30304 * term/ieee1275/ofconsole.c: Likewise.
30305 * term/terminfo.c: Likewise.
30306 * video/bitmap.c: Likewise.
30307 * video/efi_gop.c: Likewise.
30308 * video/efi_uga.c: Likewise.
30309 * video/fb/video_fb.c: Likewise.
30310 * video/i386/pc/vbe.c: Likewise.
30311 * video/readers/tga.c: Likewise.
30312 * video/video.c: Likewise.
30313
0ad46fd7 303142009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
30315
30316 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
30317 * commands/lspci.c: Likewise.
30318 * commands/probe.c: Likewise.
30319 * commands/xnu_uuid.c: Likewise.
30320 * conf/i386-coreboot.rmk: Likewise.
30321 * conf/i386-efi.rmk: Likewise.
30322 * conf/i386-ieee1275.rmk: Likewise.
30323 * conf/i386-pc.rmk: Likewise.
30324 * conf/powerpc-ieee1275.rmk: Likewise.
30325 * conf/sparc64-ieee1275.rmk: Likewise.
30326 * conf/x86_64-efi.rmk: Likewise.
30327 * fs/i386/pc/pxe.c: Likewise.
30328 * gettext/gettext.c: Likewise.
30329 * include/grub/efi/graphics_output.h: Likewise.
30330 * include/grub/i386/pc/memory.h: Likewise.
30331 * kern/env.c: Likewise.
30332 * kern/i386/qemu/startup.S: Likewise.
30333 * lib/i386/pc/biosnum.c: Likewise.
30334 * lib/i386/relocator.c: Likewise.
30335 * lib/i386/relocator_asm.S: Likewise.
30336 * lib/relocator.c: Likewise.
30337 * loader/i386/bsd.c: Likewise.
30338 * loader/i386/multiboot.c: Likewise.
30339 * loader/i386/pc/chainloader.c: Likewise.
30340 * loader/i386/xnu.c: Likewise.
30341 * loader/xnu.c: Likewise.
30342 * normal/main.c: Likewise.
30343 * normal/menu_text.c: Likewise.
30344 * util/getroot.c: Likewise.
30345 * util/grub-mkconfig_lib.in: Likewise.
30346 * util/grub.d/00_header.in: Likewise.
30347 * util/i386/pc/grub-mkimage.c: Likewise.
30348 * util/mkisofs/eltorito.c: Likewise.
30349 * util/mkisofs/exclude.h: Likewise.
30350 * util/mkisofs/hash.c: Likewise.
30351 * util/mkisofs/iso9660.h: Likewise.
30352 * util/mkisofs/joliet.c: Likewise.
30353 * util/mkisofs/mkisofs.c: Likewise.
30354 * util/mkisofs/mkisofs.h: Likewise.
30355 * util/mkisofs/multi.c: Likewise.
30356 * util/mkisofs/name.c: Likewise.
30357 * util/mkisofs/rock.c: Likewise.
30358 * util/mkisofs/tree.c: Likewise.
30359 * util/mkisofs/write.c: Likewise.
30360 * video/efi_gop.c: Likewise.
30361
009ec743
VS
303622009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
30365 size counting.
30366
0ad46fd7 303672009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
30368
30369 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
30370 * genmk.rb (class SCRIPT): Modify the target file instead of source.
30371
d3d30ea0
VS
303722009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
30375 (GRUB_MOD_INIT(memrw)): Update help line.
30376
a34f5c70
VS
303772009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
30380 Use grub_extcmd_t. All users updated.
30381 (options): New variable.
30382 (grub_cmd_read): Restructure for readability. Support "-v" option.
30383 (grub_cmd_write): Restructure for readability.
30384
0ad46fd7 303852009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
30386
30387 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
30388
0ad46fd7 303892009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
30390
30391 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
30392 with the actual contents of the correspondending make variable.
30393 * util/grub-mkrescue.in (pkglib_DATA): New variable.
30394 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
30395 specifying `*.lst' and `efiemu??.o'
30396
0ad46fd7 303972009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
30398
30399 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
30400 after function name.
30401 Noticed by Rene Engelhard <rene@debian.org>.
30402
dc77a799
VS
304032009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30404
30405 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
30406 (options): New variable.
30407 (iospace): Likewise.
30408 (grub_lspci_iter): List IO spaces if "-i" was given.
30409 (grub_cmd_lspci): Parse options.
30410 (GRUB_MOD_INIT(lspci)): Use extcmd.
30411 (GRUB_MOD_FINI(lspci)): Likewise.
30412
0ad46fd7 304132009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
30414
30415 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
30416 `function' keyword.
30417 Patch by Tony Mancill <tmancill@debian.org>.
30418
b5d5993b
VS
304192009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30420
30421 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
30422 (grub_uhci_portstatus): Likewise.
30423 (grub_uhci_portstatus): Add necessary delay.
11d18281 30424 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 30425
941903f2 304262009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 30427
941903f2 30428 * commands/acpi.c (options): Fix capitalizations and/or full stops.
30429 (GRUB_MOD_INIT): Likewise.
30430 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 30431 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
30432 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 30433 * commands/efi/loadbios.c (enable_rom_area): Likewise.
30434 (enable_rom_area): Likewise.
30435 (GRUB_MOD_INIT): Likewise.
30436 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
30437 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
30438 * commands/handler.c (GRUB_MOD_INIT): Likewise.
30439 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
30440 * commands/hexdump.c (options): Likewise.
30441 * commands/i386/cpuid.c (options): Likewise.
30442 (GRUB_MOD_INIT): Likewise.
30443 * commands/i386/pc/drivemap.c (options): Likewise.
30444 (GRUB_MOD_INIT): Likewise.
30445 * commands/i386/pc/halt (options): Likewise.
30446 (GRUB_MOD_INIT): Likewise.
30447 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
30448 * commands/i386/pc/pxecmd.c (options): Likewise.
30449 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
30450 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
30451 * commands/keystatus.c (options): Likewise.
30452 (GRUB_MOD_INIT): Likewise.
30453 * commands/loadenv.c (options): Likewise.
30454 * commands/ls.c (options): Likewise.
30455 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
30456 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
30457 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
30458 * commands/parttool.c (helpmsg): Likewise.
30459 * commands/probe.c (options): Likewise.
30460 * commands/read.c (GRUB_MOD_INIT): Likewise.
30461 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
30462 * commands/search.c (options): Likewise.
30463 * commands/sleep.c (options): Likewise.
30464 * commands/test.c (GRUB_MOD_INIT): Likewise.
30465 * commands/true.c (GRUB_MOD_INIT): Likewise.
30466 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
30467 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
30468 * lib/arg.c (help_options): Likewise.
e9bbb4e7 30469 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
30470 `$(XGETTEXT)'.
98a50553 30471 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 30472
0ad46fd7 304732009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 30474
ef3c2c3a 30475 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
30476 instead of specifying them explicit.
30477
7922f68b
RM
304782009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30479
30480 * NEWS: Add grub-probe support for GNU/Hurd.
30481
537ce47f
RM
304822009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30483
30484 * NEWS: gettext was added after 1.97.
30485
9b214e3a
RM
304862009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30487
30488 * util/mkisofs/msdos_partition.h: New file (based on
30489 include/grub/msdos_partition.h).
30490 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
30491 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
30492 (ld_options, main): Recognize --protective-msdos-label.
30493 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
30494 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
30495 (padblock_write): If `use_protective_msdos_label' is set, patch a
30496 protective DOS-style label in the output image.
30497
30498 * util/grub-mkrescue.in: Use --protective-msdos-label.
30499
e9309813
RM
305002009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30501
30502 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
30503 boot.
30504
0ae56929
RM
305052009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30506
30507 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
30508 variables.
30509 (ld_options, main): Recognize `--embedded-boot'.
30510 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
30511 declarations.
30512 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
30513 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
30514 (padblock_write): Likewise. Rewrite to support embedded boot image.
30515
30516 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
30517 for BIOS-based disk boot instead of only ElTorito.
30518
b15937b1
RM
305192009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30520
30521 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
30522 build (not needed for bootstrap).
30523
52cc3ce0
RM
305242009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30525
30526 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
30527 from i386-pc build (not needed for bootstrap).
30528 Rewrite a pair of strings.
30529
36f5ff04
RM
305302009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30531
30532 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
30533
973c6c85 305342009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
30535
30536 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
30537
05d21547
AB
305382009-12-21 Andreas Born <futur.andy@googlemail.com>
30539
30540 * kern/env.c (grub_env_context_open): Mark exported variable for
30541 reexport.
30542
0175d51f
AB
305432009-12-21 Andreas Born <futur.andy@googlemail.com>
30544
30545 * kern/env.c (grub_env_export): Create nonexistent variables before
30546 exporting.
30547
7f39d92f 305482009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 30549
7f39d92f 30550 * include/grub/auth.h: Include `<grub/i18n.h>'.
30551 (GRUB_GET_PASSWORD): Gettextizze string.
30552 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
30553 menu_text.c.
30554 (grub_utf8_to_ucs4_alloc): Fix indentation.
30555 (grub_print_ucs4): Likewise.
30556 (grub_getstringwidth): Likewise.
30557 (print_message_indented): New declaration.
30558 * normal/auth.c: Include `<grub/i18n.h>'.
30559 (grub_auth_check_authentication): Gettexttize string.
30560 * normal/cmdline.c: Include `<grub/i18n.h>'.
30561 (grub_cmdline_get): Gettextizze.
30562 * normal/color.c: Include `<grub/i18n.h>'.
30563 (grub_parse_color_name_pair): Gettexttize strings.
30564 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
30565 string (use `print_message_indented').
30566 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
30567 `include/grub/normal.h'.
30568 (print_message_indented): Renamed to ...
30569 (grub_print_message_indented): ... this. Remove `static' qualifer (now
30570 used in normal/main.c).
30571 (print_message): Use `grub_print_message_indented' instead of
30572 `print_message_indented'.
30573 (print_timeout): Likewise.
30574 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
30575 (grub_normal_print_device_info): Gettexttize strings.
30576 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
30577
3041d898
VS
305782009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
30581 of arguments. Return number of tokens and not arguments. All users
30582 updated.
30583
de15bf8e
VS
305842009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30585
30586 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
30587 non-MSDOS paritions.
30588
e0a6ca52
VS
305892009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
30590
30591 * include/grub/types.h (UNUSED): Removed since it conflicts with
30592 NetBSD headers. All users changed to direct __attribute__ ((unused)).
30593 Reported by Grégoire Sutre.
30594
b99518d1 305952009-12-19 Carles Pina i Estany <carles@pina.cat>
30596
30597 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
30598 (grub_print_ucs4_alloc): Likewise.
30599 (grub_getstringwidth): Likewise.
30600 * normal/main.c (grub_normal_init_page): Gettextize version string.
30601 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
30602 (getstringwidth): Renamed to ...
30603 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
30604 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
30605 (grub_print_ucs4): Remove `static' qualifer (now used in
30606 normal/main.c).
30607 * po/POTFILES: Add normal/main.c.
30608
bfd5e52b 306092009-12-19 Carles Pina i Estany <carles@pina.cat>
30610
30611 * normal/menu_text.c (STANDARD_MARGIN): New macro.
30612 (print_message_indented): Add `margin_left' and `margin_right'
30613 parameters.
30614 (print_message): Update `print_message_indented' calls. Adds '\n' to the
30615 strings.
30616 (print_timeout): Use `print_message_indented' to print the message.
30617 Deletes `second_stage' parameter.
30618 (run_menu): Update `print_timeout' calls.
30619
5a1ad2b9
VS
306202009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30621
30622 Fix console palette on OpenFirmware.
30623
30624 * term/ieee1275/ofconsole.c (MAX): Removed.
30625 (colors): Redone based on VGA palette.
30626 (grub_ofconsole_setcolor): Discard brightness bit since only 8
30627 colors are supported.
30628 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
30629
b045f00a
VS
306302009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30631
30632 Fix potential EfiEmu double prepare.
30633
30634 * efiemu/main.c (prepared): New variable
30635 (grub_efiemu_unload): Set prepare to '0'.
30636 (grub_efiemu_prepare): Return if already prepared. Set prepared.
30637
30638 set_virtual_address_map support.
30639
30640 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
30641 prototype.
30642 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
30643 prototype.
30644 (grub_efiemu_crc32): Likewise.
30645 (grub_efiemu_crc64): Likewise.
30646 (grub_efiemu_set_virtual_address_map): Likewise.
30647 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
30648 New definition.
30649 (grub_autoefi_set_virtual_address_map): Likewise.
30650 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
30651 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
30652 Restructure flow to accomodate it.
30653 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
30654 (grub_efiemu_crc): Recompute CRC32.
30655 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
30656 (efiemu_ptv_relocated): ... this. Made global. All users updated.
30657 * efiemu/symbols.c (relocated_handle): New variable.
30658 (grub_efiemu_free_syms): Free relocated_handle.
30659 (grub_efiemu_alloc_syms): Allocate relocated_handle.
30660 (grub_efiemu_write_sym_markers): New function.
30661 (grub_efiemu_set_virtual_address_map): Likewise.
30662
30663 Newer XNU parameters.
30664
30665 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
30666 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
30667 (grub_xnu_fill_devicetree): New prototype.
30668 (grub_xnu_heap_real_start): New variable.
30669 * loader/xnu.c (get_name_ptr): New function.
30670 (grub_xnu_load_driver): Fill namelen and name.
30671
30672 64-bit xnu support.
30673
30674 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
30675 and 'loader/macho64.c'.
30676 * conf/i386-pc.rmk: Likewise.
30677 * conf/x86_64-efi.rmk: Likewise.
30678 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
30679 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
30680 * include/grub/macho.h (grub_macho_segment64): New structure.
30681 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
30682 (grub_macho_size32): ... to this.
30683 (grub_macho32_get_entry_point): Renamed from ...
30684 (grub_macho_get_entry_point32): ... to this.
30685 (grub_macho_contains_macho64): New prototype.
30686 (grub_macho_size64): Likewise.
30687 (grub_macho_get_entry_point64): Likewise.
30688 (grub_macho32_load): Renamed from ...
30689 (grub_macho_load32): ... to this.
30690 (grub_macho32_filesize): Renamed from ...
30691 (grub_macho_filesize32): ... to this.
30692 (grub_macho32_readfile): Renamed from ...
30693 (grub_macho_readfile32): ... to this.
30694 (grub_macho_filesize64): New prototype.
30695 (grub_macho_readfile64): Likewise.
30696 (grub_macho_parse32): Likewise.
30697 (grub_macho_parse64): Likewise.
30698 * loader/macho.c: Split into ...
30699 * loader/machoXX.c: ... and this. Replace 32 with XX.
30700 * loader/macho32.c: New file.
30701 * loader/macho64.c: Likewise.
30702 * loader/xnu.c (grub_xnu_is_64bit): New variable.
30703 (grub_cmd_xnu_kernel): Make 32-bit only.
30704 (grub_cmd_xnu_kernel64): New function.
30705 (grub_xnu_load_driver): Support Mach-O 64.
30706 (grub_cmd_xnu_mkext): Likewise.
30707 * util/grub.d/30_os-prober.in (osx_entry): New function.
30708 Generate entries for 64-bit boot too.
30709
30710 Eliminate ad-hoc tree format in XNU and EfiEmu.
30711
30712 * efiemu/main.c (grub_efiemu_prepare): Update comment.
30713 * efiemu/pnvram.c: Rewritten to use environment variables.
30714 All users updated.
30715
30716 Inline utf16_to_utf8.
30717
30718 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
30719 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
30720 All users updated.
30721 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
30722
30723 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
30724 * commands/usbtest.c (grub_usb_get_string): ... move here.
30725 (usb_print_str): Fix error handling.
30726 * include/grub/usb.h (grub_usb_get_string): Remove.
30727
30728 UTF-8 to UTF-16 transformation.
30729
30730 * conf/common.rmk (pkglib_MODULES): Add charset.mod
30731 (charset_mod_SOURCES): New variable.
30732 (charset_mod_CFLAGS): Likewise.
30733 (charset_mod_LDFLAGS): Likewise.
30734 * include/grub/utf.h: New file.
30735 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
30736
30737 Support for device properties.
30738
30739 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
30740 (grub_xnu_devprop_device_header): Likewise.
30741 (grub_xnu_devprop_device_descriptor): Likewise.
30742 (grub_xnu_devprop_add_device): New prototype.
30743 (grub_xnu_devprop_remove_device): Likewise.
30744 (grub_xnu_devprop_remove_property): Likewise.
30745 (grub_xnu_devprop_add_property_utf8): Likewise.
30746 (grub_xnu_devprop_add_property_utf16): Likewise.
30747 (grub_cpu_xnu_init): Likewise.
30748 (grub_cpu_xnu_fini): Likewise.
30749 (grub_cpu_xnu_unload): Likewise.
30750 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
30751 (property_descriptor): Likewise.
30752 (devices): New variable.
30753 (grub_xnu_devprop_remove_property): New function.
30754 (grub_xnu_devprop_add_device): Likewise.
30755 (grub_xnu_devprop_remove_device): Likewise.
30756 (grub_xnu_devprop_add_property): Likewise.
30757 (grub_xnu_devprop_add_property_utf8): Likewise.
30758 (grub_xnu_devprop_add_property_utf16): Likewise.
30759 (hextoval): Likewise.
30760 (grub_cpu_xnu_fill_devprop): Likewise.
30761 (grub_cmd_devprop_load): Likewise.
30762 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
30763 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30764 (cmd_devprop_load): New variable.
30765 (grub_cpu_xnu_init): New function.
30766 (grub_cpu_xnu_fini): Likewise.
30767 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30768 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30769 (grub_cmd_xnu_devtree): Likewise.
30770 (hextoval): New function.
30771 (unescape): Likewise.
30772 (grub_xnu_fill_devicetree): Likewise.
30773
30774 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30775 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30776
0945f181
VS
307772009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30778
30779 Workaround for broken ATI VBE.
30780
30781 * video/i386/pc/vbe.c (last_set_mode): New variable.
30782 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30783 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30784 (grub_video_vbe_setup): Don't check for reserved flag.
30785
0ad46fd7 307862009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
30787
30788 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30789 the `find' command.
30790
c179ebe4
VS
307912009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30792
30793 UUID support for HFS.
30794
30795 * fs/hfs.c (grub_hfs_uuid): New function.
30796 (grub_hfs_fs): New value .uuid.
30797 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30798
0ad46fd7 307992009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
30800
30801 Fix a segfault with parsing unknown long options.
30802
30803 * util/grub-mkrelpath.c (options): Zero terminate it.
30804
c4a3e41a
CPE
308052009-12-13 Carles Pina i Estany <carles@pina.cat>
30806
30807 * include/grub/misc.h (grub_puts): New declaration.
30808 (grub_puts_): Likewise.
a22008a6 30809 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
30810 (grub_puts_): Likewise.
30811
2e8a7602
RM
308122009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30813
30814 * util/grub-probe.c (probe): Improve error message.
30815
b50b77b9
RM
308162009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30817
30818 * loader/i386/multiboot_elfxx.c
30819 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30820 initialization.
30821
308222009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30823
30824 Relocator framework
30825
30826 * loader/i386/xnu_helper.S: Removed. All users updated.
30827 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30828 (relocator_mod_SOURCES): New variable.
30829 (relocator_mod_CFLAGS): Likewise.
30830 (relocator_mod_LDFLAGS): Likewise.
30831 (relocator_mod_ASFLAGS): Likewise.
30832 * conf/x86_64.rmk: Likewise.
30833 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30834 (grub_multiboot_payload_entry_offset): Likewise.
30835 (grub_multiboot_forward_relocator): Likewise.
30836 (grub_multiboot_forward_relocator_end): Likewise.
30837 (grub_multiboot_backward_relocator): Likewise.
30838 (grub_multiboot_backward_relocator_end): Likewise.
30839 (grub_multiboot_payload_eip): New variable.
30840 (grub_multiboot_payload_orig): Likewise.
30841 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30842 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30843 * include/grub/i386/memory.h
30844 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30845 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30846 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30847 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30848 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30849 * include/grub/i386/relocator.h: New file.
30850 * include/grub/x86_64/relocator.h: Likewise.
30851 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30852 (XNU_RELOCATOR): New macro.
30853 (grub_xnu_launcher_start): Remove.
30854 (grub_xnu_launcher_end): Likewise.
30855 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30856 (grub_xnu_heap_real_start): Remove.
30857 (grub_xnu_heap_start): Change to void *. All users updated.
30858 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30859 * lib/i386/relocator.c: New file.
30860 * lib/i386/relocator_asm.S: Likewise.
30861 * lib/i386/relocator_backward.S: Likewise.
30862 * lib/mips/relocator.c: Likewise.
30863 * lib/mips/relocator_asm.S: Likewise.
30864 * lib/relocator.c: Likewise.
30865 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30866 (entry): Removed.
30867 (playground): Likewise.
30868 (grub_multiboot_payload_orig): New variable.
30869 (grub_multiboot_payload_dest): Likewise.
30870 (grub_multiboot_payload_size): Likewise.
30871 (grub_multiboot_payload_eip): Likewise.
30872 (grub_multiboot_payload_esp): Likewise.
30873 (grub_multiboot_boot): Use grub_relocator32_boot.
30874 (grub_multiboot_unload): Free relocators.
30875 (grub_multiboot): Setup stack. Use relocators.
30876 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30877 (grub_multiboot_load_elfXX): Use relocators.
30878 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30879 (grub_multiboot_payload_size): Likewise.
30880 (grub_multiboot_payload_dest): Likewise.
30881 (grub_multiboot_payload_entry_offset): Likewise.
30882 (grub_multiboot_forward_relocator): Likewise.
30883 (grub_multiboot_backward_relocator): Likewise.
30884 (grub_multiboot_real_boot): Likewise.
30885 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30886 (grub_xnu_entry_point): Likewise.
30887 (grub_xnu_arg1): Likewise.
30888 (grub_xnu_stack): Likewise.
30889 (grub_xnu_launch): Removed.
30890 (grub_xnu_boot_resume): New function.
30891 (grub_xnu_boot): Use relocators.
30892 * loader/i386/xnu_helper.S: Removed.
30893 * loader/xnu.c (grub_xnu_heap_start): New variable.
30894 (grub_xnu_heap_size): Likewise.
30895 (grub_xnu_heap_malloc): Use relocators.
30896 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30897
29eb90c6
VS
308982009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30899
30900 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30901 anything.
30902
31027430
CPE
309032009-12-13 Carles Pina i Estany <carles@pina.cat>
30904
30905 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30906 GRUB_ERR_NONE before calling grub_env_set.
30907
dc0c71d9
RM
309082009-12-12 Robert Millan <rmh@aybabtu.com>
30909
30910 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30911 * genmk.rb (video): New variable.
30912 (CLEANFILES, VIDEOFILES): Add #{video}.
30913 (#{video}): New target rule.
30914 * genvideolist.sh: New file.
30915 * Makefile.in (pkglib_DATA): Add video.lst.
30916 (video.lst): New target rule.
30917 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30918 `video.lst'.
30919 * util/grub.d/30_os-prober.in: Replace `vbe' with
30920 ${GRUB_VIDEO_BACKEND}.
30921
2a4bfcf0
RM
309222009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30923
30924 * THANKS: Add David Miller.
30925
2a3aa4d5
RM
309262009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30927
30928 libpciaccess support.
30929
30930 * Makefile.in (LIBPCIACCESS): New variable.
30931 (enable_grub_emu_pci): Likewise.
30932 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30933 util/pci.c and commands/lspci.c.
30934 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30935 * configure.ac (grub-emu-pci): New option.
30936 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30937 (grub_pci_device_unmap_range): Likewise.
30938 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30939 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30940 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30941 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30942 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30943 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30944 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30945 * include/grub/pciutils.h: New file.
30946 * util/pci.c: Likewise.
30947
0ad46fd7 309482009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
30949
30950 * util/misc.c: Don't include <errno.h> twice.
30951
0ad46fd7 309522009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
30953
30954 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30955 name in an error message.
30956 (grub_biosdisk_rw): Likewise.
30957
2e59983c
VS
309582009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30959
30960 Eliminate NTFS 4Gib barrier.
30961
30962 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30963 (read_run_data): Likewise.
30964 (grub_ntfs_read_run_list): Likewise.
30965 (grub_ntfs_read_block): Likewise.
30966 (grub_ntfs_iterate_dir): Likewise.
30967 (read_mft): Likewise.
30968 (read_data): Likewise.
30969 Use COM_LOG_LEN.
30970 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30971 to avoid 64-bit division
30972 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30973 (grub_ntfs_rlst): Use grub_disk_addr_t.
30974
71ee178a
VS
309752009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30976
30977 Eliminate grub-fstest 4Gib barrier.
30978
30979 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30980 (read_file): Fix error reporting.
30981
2520d4b8
VS
309822009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30983
30984 Eliminate hexdump 4Gib barrier.
30985
30986 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30987 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30988
e1f27065
VS
309892009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30992 Fixes amarsh bug.
30993
1a0f7f45
RM
309942009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30995
30996 Remove miscellaneous files in distclean target.
30997
30998 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30999
c631d9fb
CW
310002009-12-09 Colin Watson <cjwatson@ubuntu.com>
31001
31002 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
31003 if they're already set. This resolves the conflict between my
31004 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
31005 fixing the --grub-probe option again.
31006 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
31007 change on 2009-10-06, so that we now once again source
31008 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31009
7c7b6106
RM
310102009-12-08 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
31013 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
31014 `util/devicemap.c'.
31015
e3069ec1
CPE
310162009-12-08 Carles Pina i Estany <carles@pina.cat>
31017
31018 * include/grub/misc.h (grub_printf_): New declaration.
31019 * kern/misc.c (grub_printf_): New definition.
31020 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
31021 instead of `grub_printf' and `_'.
31022 * normal/menu_entry.c (store_completion): Likewise.
31023 (run): Likewise.
31024 (grub_menu_entry_run): Likewise.
31025 * normal/menu_text.c (grub_wait_after_message): Likewise.
31026 (notify_booting): Likewise.
31027 (notify_fallback): Likewise.
31028 (notify_execution_failure): Likewise.
31029
d6ceebf1
CW
310302009-12-07 Colin Watson <cjwatson@ubuntu.com>
31031
31032 * configure.ac: Check for vasprintf.
31033 * util/misc.c (asprintf): Move allocation from here ...
31034 (vasprintf): ... to here. New function.
31035 (xasprintf): New function.
31036 * include/grub/util/misc.h (vasprintf, xasprintf): Add
31037 prototypes.
31038 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
31039 * util/grub-mkfont.c (write_font): Likewise.
31040 * util/grub-probe.c (probe): Likewise.
31041 * util/hostdisk.c (make_device_name): Likewise.
31042
de6daa8b
DM
310432009-12-06 David S. Miller <davem@sunset.davemloft.net>
31044
31045 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
31046 anything even prefixed with 'cdrom' as a cdrom.
31047
0ad46fd7 310482009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
31049
31050 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
31051 mount points.
31052
98d3dc02
CPE
310532009-12-05 Carles Pina i Estany <carles@pina.cat>
31054
31055 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
31056 grub_gettext_msg_list.
31057 (grub_gettext_gettranslation_from_position): Return const char *
31058 and not char *.
a2c1332b 31059 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
31060 returns from the list if existing there.
31061 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
31062 (grub_gettext_delete_list): Delete the list.
31063 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
31064 lang environment variable is changed.
31065 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
31066
b283f108
VS
310672009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
31068
31069 Rename kernel.mod to kernel.img.
31070
31071 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
31072 (kernel_mod_EXPORTS): Rename to ...
31073 (kernel_img_EXPORTS): ... this.
31074 (kernel_mod_SOURCES): Rename to ...
31075 (kernel_img_SOURCES): ... this.
31076 (kernel_mod_HEADERS): Rename to ...
31077 (kernel_img_HEADERS): ... this. All users updated.
31078 (kernel_mod_CFLAGS): Rename to ...
31079 (kernel_img_CFLAGS): ... this.
31080 (kernel_mod_ASFLAGS): Rename to ...
31081 (kernel_img_ASFLAGS): ... this.
31082 (kernel_mod_LDFLAGS): Rename to ...
31083 (kernel_img_LDFLAGS): ... this.
31084 * conf/x86_64-efi.rmk: Likewise.
31085 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
31086 (read_kernel_image): ... this. All users updated.
31087 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
31088
69055f8a
CPE
310892009-12-05 Carles Pina i Estany <carles@pina.cat>
31090
31091 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
31092 (print_spaces): New function.
31093 (grub_print_ucs4): New function.
31094 (getstringwidth): New function.
31095 (print_message_indented): New function.
31096 (print_message): Gettexttize strings using print_message_indented.
31097 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
31098 width.
31099 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 31100 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
31101 Gettextize.
31102 * normal/menu_entry.c (store_completion): Cleanup the gettextized
31103 string.
31104 (run): Likewise.
31105 (grub_menu_entry_run): Likewise.
31106 * PO/POTFILES: Add normal/menu_entry.c.
31107
f616f51c
VS
311082009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
31109
31110 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
31111
57bbe3be
CPE
311122009-12-05 Carles Pina i Estany <carles@pina.cat>
31113
31114 * util/grub-install.in: Install gettext .mo files.
31115 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
31116
013d67a1
CPE
311172009-12-05 Carles Pina i Estany <carles@pina.cat>
31118
31119 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
31120 grub_dprintf.
31121
fb954db0
RM
311222009-12-05 Robert Millan <rmh.grub@aybabtu.com>
31123
31124 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
31125 non-firmware-dependant one in realmode.S takes precedence.
31126
6b8474f8
RM
311272009-12-04 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 * commands/halt.c: Replace misc arch-specific headers with
31130 `<grub/misc.h>'.
31131 * commands/reboot.c: Likewise.
31132 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
31133 `<grub/misc.h>'.
31134 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
31135 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
31136 (kernel_img_SOURCES): ... to here.
31137
31138 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
31139 * include/grub/i386/pc/init.h: Likewise.
31140 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
31141 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31142
31143 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
31144
31145 * include/grub/i386/halt.h: Remove.
31146 * include/grub/i386/reboot.h: Likewise.
31147
31148 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
31149
4b2e6ca2
DM
311502009-12-03 David S. Miller <davem@sunset.davemloft.net>
31151
31152 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
31153 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
31154 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
31155 "progname.h"
31156 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
31157 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31158 (usage): Add missing comma in printf.
31159
5239348f
RM
311602009-12-02 Robert Millan <rmh.grub@aybabtu.com>
31161
31162 Use the same reboot approach on i386 coreboot and qemu as we do on
31163 BIOS.
31164
31165 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
31166 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
31167 * kern/i386/reboot.c: Remove.
31168 * include/grub/i386/reboot.h (grub_reboot): Export function.
31169 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
31170 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
31171 0xf000:0xfff0 instead of 0xffff:0x0000.
31172 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
31173 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
31174
ef34cbd4
RM
311752009-11-30 Robert Millan <rmh.grub@aybabtu.com>
31176
31177 Fix $srcdir != $objdir build.
31178
31179 * Makefile.in (po/%.po): Rewrite as ...
31180 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
31181
dc9837ea
ST
311822009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
31183
31184 Fix GNU/Hurd grub-install crash.
31185 * util/grub-probe.c (probe): Try to access `path' only when it is not
31186 NULL.
31187
2f857f98
VS
311882009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
31189
31190 Correct module naming.
31191
31192 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
31193 (GRUB_MOD_INIT(efi_uga)): ... to this
31194 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
31195 (GRUB_MOD_FINI(efi_uga)): ... to this
31196 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
31197 (GRUB_MOD_INIT(efi_gop)): ... to this
31198 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
31199 (GRUB_MOD_FINI(efi_gop)): ... to this
31200
c5448046
RM
312012009-11-28 Robert Millan <rmh.grub@aybabtu.com>
31202
31203 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
31204 translatable.
31205 (usage): Translate `arg' strings using gettext().
31206 Thanks to Jordi Mallach for the suggestion.
31207
c85184ad
VS
312082009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
31209
31210 GOP support. Based on patch from Bean
31211 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
31212
31213 * video/efi_gop.c: New file.
31214 * include/grub/efi/graphics_output.h: Likewise.
31215 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
31216 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31217 variables.
31218 * conf/x86_64-efi.rmk: Likewise.
31219
8a4c48d8
VS
312202009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
31221
31222 Rename efi_fb to efi_uga.
31223
31224 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
31225 'efi_uga.mod'.
31226 (efi_fb_mod_SOURCES): Rename this ...
31227 (efi_uga_mod_SOURCES): ... to this.
31228 (efi_fb_mod_CFLAGS): Rename this ...
31229 (efi_uga_mod_CFLAGS): ... to this.
31230 (efi_fb_mod_LDFLAGS): Rename this ...
31231 (efi_uga_mod_LDFLAGS): ... to this.
31232 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
31233 'efi_uga.mod'.
31234 (efi_fb_mod_SOURCES): Rename this ...
31235 (efi_uga_mod_SOURCES): ... to this.
31236 (efi_fb_mod_CFLAGS): Rename this ...
31237 (efi_uga_mod_CFLAGS): ... to this.
31238 (efi_fb_mod_LDFLAGS): Rename this ...
31239 (efi_uga_mod_LDFLAGS): ... to this.
31240 * video/efi_fb.c: Move this ...
31241 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
31242
fb6c1a7b
RM
312432009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31244
31245 * po/README: New file. Explain our PO file workflow.
31246
3bc7896c
RM
312472009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31248
31249 * po/ChangeLog: Remove. Move relevant entries back to ...
31250 * ChangeLog: ... here.
31251 * po/ca.po: Remove (now handled by TLP).
31252 * po/id.po: Likewise.
31253 * po/zh_CN.po: Likewise.
31254 * Makefile.in (LINGUAS): Initialize in a way that supports
31255 empty set.
31256
9ed4841d
RM
312572009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31258
31259 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
31260 reliing on po/LINGUAS.
31261 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
31262 (po/%.po): ... this.
31263
0ad46fd7 312642009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
31265
31266 * util/i386/efi/grub-mkimage.c: Include "progname.h".
31267 (main): Use `program_name' instead of nonexistent `progname'.
31268
e30dd392
FZ
312692009-11-26 Felix Zielcke <fzielcke@z-51.de>
31270
31271 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31272 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
31273
7656de4f
RM
312742009-11-26 Robert Millan <rmh.grub@aybabtu.com>
31275
31276 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
31277 commit.
31278 * conf/i386-efi.rmk: Likewise.
31279 * conf/i386-ieee1275.rmk: Likewise.
31280 * conf/powerpc-ieee1275.rmk: Likewise.
31281 * conf/sparc64-ieee1275.rmk: Likewise.
31282 * conf/x86_64-efi.rmk: Likewise.
31283
db77c4d4
FZ
312842009-11-26 Felix Zielcke <fzielcke@z-51.de>
31285
31286 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
31287
a755bb04
FZ
312882009-11-26 Felix Zielcke <fzielcke@z-51.de>
31289
31290 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
31291
8a4c07fd
RM
312922009-11-26 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
31295 (grub_mkdevicemap_SOURCES): New variable.
31296 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
31297 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
31298 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
31299 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
31300 (grub_mkdevicemap_SOURCES): Remove.
31301 * conf/i386-efi.rmk: Likewise.
31302 * conf/i386-ieee1275.rmk: Likewise.
31303 * conf/i386-pc.rmk: Likewise.
31304 * conf/powerpc-ieee1275.rmk: Likewise.
31305 * conf/sparc64-ieee1275.rmk: Likewise.
31306 * conf/x86_64-efi.rmk: Likewise.
31307 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
31308 (usage): Fix strings to use `program_name'.
31309 (main): Initialize gettext.
31310 * util/grub-editenv.c: Likewise.
31311 * util/grub-emu.c: Likewise.
31312 * util/grub-fstest.c: Likewise.
31313 * util/grub-mkdevicemap.c: Likewise.
31314 * util/grub-mkfont.c: Likewise.
31315 * util/grub-mkrelpath.c: Likewise.
31316 * util/grub-pe2elf.c: Likewise.
31317 * util/grub-probe.c: Likewise.
31318 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31319 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
31320 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31321
31322 * util/misc.c: Include `"progname.h"'.
31323 (progname): Remove variable.
31324 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
31325
6f61ed55
FZ
313262009-11-25 Felix Zielcke <fzielcke@z-51.de>
31327
31328 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
31329 printf and print a newline after the menuentry header line.
31330 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31331
f022876b
FZ
313322009-11-25 Felix Zielcke <fzielcke@z-51.de>
31333
31334 autoconf >= 2.60 support $(localedir).
31335
31336 * INSTALL: Note that autoconf 2.60 is required.
31337 * configure.ac (AC_PREREQ): Bump to 2.60.
31338 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
31339 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
31340
6717926e
YB
313412009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
31342
31343 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
31344 aclocal is run.
31345
08806a54
RM
313462009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31347
31348 * normal/main.c (grub_normal_read_line): Fix off-by-one
31349 buffer overflow.
31350
13b33fba
RM
313512009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31352
31353 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
31354 "parser.grub" in grub_command_execute() call.
31355
4a8572e9
CPE
313562009-11-24 Carles Pina i Estany <carles@pina.cat>
31357
31358 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
31359 * conf/i386-efi.rmk: Likewise.
31360 * conf/i386-ieee1275.rmk: Likewise.
31361 * conf/i386-pc.rmk: Likewise.
31362 * conf/powerpc-ieee1275.rmk: Likewise.
31363 * conf/sparc64-ieee1275.rmk: Likewise.
31364 * conf/x86_64-efi.rmk: Likewise.
31365 * gettext/gettex.c: Include <grub/i18n.h>.
31366 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
31367 here ...
31368 * include/grub/i18n.h: ... to here
31369 * include/grub/i18n.h: ... to here.
31370 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 31371 (grub_gettext_dummy): Move above user.
4a8572e9 31372
bee48093
FZ
313732009-11-24 Felix Zielcke <fzielcke@z-51.de>
31374
31375 * util/Makefile.in (install-local): Convert a `for' into a normal
31376 shell expansion.
31377
a031e91c
RM
313782009-11-24 Robert Millan <rmh.grub@aybabtu.com>
31379
31380 * autogen.sh: Add automake call.
31381 * config.guess: Remove.
31382 * config.sub: Likewise.
31383 * install-sh: Likewise.
31384
26bec39d
FZ
313852009-11-24 Felix Zielcke <fzielcke@z-51.de>
31386
31387 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
31388
8e2532fd
FZ
313892009-11-24 Felix Zielcke <fzielcke@z-51.de>
31390
31391 * util/Makefile.in (install-local): Convert a make `$(foreach)'
31392 function to a normal shell `for'.
31393
fefa1b7d
FZ
313942009-11-24 Felix Zielcke <fzielcke@z-51.de>
31395
31396 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31397
4501250b
FZ
313982009-11-24 Felix Zielcke <fzielcke@z-51.de>
31399
31400 * util/grub-mkrelpath.c: New file.
31401 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
31402 (grub_mkrelpath_SOURCES): New variable.
31403 * include/grub/util/misc.h: New function prototype.
31404 * util/misc.c (make_system_path_relative_to_its_root): New function.
31405
31406 * util/grub-mkconfig_lib.in (bindir): New variable.
31407 (grub_mkrelpath): Likewise.
31408 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
31409
31410 * util/probe.c (probe): Make the file path relative to its root.
31411 Change a info message to use the GRUB path. Enable again the
31412 check if we can read the file with GRUB facilities.
31413
31414 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
31415 to its root.
31416
11d9778b
FZ
314172009-11-24 Felix Zielcke <fzielcke@z-51.de>
31418
31419 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
31420 platform.
31421
4465287d
FZ
314222009-11-24 Felix Zielcke <fzielcke@z-51.de>
31423
31424 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
31425 strncmp().
31426
62b47f22
FZ
314272009-11-24 Felix Zielcke <fzielcke@z-51.de>
31428
31429 * util/getroot.c (grub_util_is_dmraid): New function.
31430 (grub_util_get_dev_abstraction): Treat dmraid and multipath
31431 devices as normal ones, not as LVM.
31432
1eafb9b9 314332009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
31434
31435 * conf/common.rmk: Add grub-gettext_lib target and updates
31436 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
31437 LDFLAGS.
31438 * gettext/gettext.c: New file. (Reads mo files).
31439 * include/grub/file.h (grub_file_pread): New prototype.
31440 * include/grub/i18n.h (_): New prototype.
31441 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
31442 prototypes.
31443 * kern/misc.c (grub_gettext_dummy): New function.
31444 * normal/menu_text.c: Include <grub/i18n.h>.
31445 * normal/menu_text.c (print_timeout): Gettexttize string.
31446 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
31447 * po/POTFILES: Add `normal/menu_text.c'.
31448 * po/ca.po: Add new translations.
c3ea6bd4
CPE
31449 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
31450 gettext module and defines locale_dir and lang in grub.cfg.
31451 * NEWS: Add gettext support.
31452
0fdb2568
RM
314532009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31454
31455 * util/hostdisk.c: Include `<grub/i18n.h>'.
31456 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
31457 (make_device_name): Rewrite using asprintf.
31458 (convert_system_partition_to_system_disk): Replace 0 with NULL.
31459 (find_system_device): If a device is not found, generate one just
31460 by reusing the OS path name.
31461 (read_device_map): Make it permissible for device.map not to exist.
31462
f515aa62
RM
314632009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31464
31465 * script/sh/execute.c: Move from here ...
31466 * script/execute.c: ... to here. Update all users.
31467 * script/sh/function.c: Move from here ...
31468 * script/function.c: ... to here. Update all users.
31469 * script/sh/lexer.c: Move from here ...
31470 * script/lexer.c: ... to here. Update all users.
31471 * script/sh/main.c: Move from here ...
31472 * script/main.c: ... to here. Update all users.
31473 * script/sh/parser.y: Move from here ...
31474 * script/parser.y: ... to here. Update all users.
31475 * script/sh/script.c: Move from here ...
31476 * script/script.c: ... to here. Update all users.
31477
f84b481b
RM
314782009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31479
31480 * configure.ac: Detect all `emu' platforms. Define
31481 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
31482 --enable-grub-emu logic. Disable include/grub/machine
31483 symlink on `emu' platforms.
31484
31485 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
31486 * gensymlist.sh.in: Likewise.
31487
31488 * include/grub/i386/coreboot/machine.h: Remove file.
31489 * include/grub/i386/efi/machine.h: Likewise.
31490 * include/grub/i386/ieee1275/machine.h: Likewise.
31491 * include/grub/i386/pc/machine.h: Likewise.
31492 * include/grub/i386/qemu/machine.h: Likewise.
31493 * include/grub/powerpc/ieee1275/machine.h: Likewise.
31494 * include/grub/sparc64/ieee1275/machine.h: Likewise.
31495 * include/grub/x86_64/efi/machine.h: Likewise.
31496
31497 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
31498 * commands/halt.c: Likewise.
31499 * commands/reboot.c: Likewise.
31500 * include/grub/autoefi.h: Likewise.
31501 * include/grub/i386/at_keyboard.h: Likewise.
31502 * include/grub/i386/kernel.h: Likewise.
31503 * include/grub/i386/loader.h: Likewise.
31504 * include/grub/i386/pc/memory.h: Likewise.
31505 * kern/dl.c: Likewise.
31506 * kern/i386/coreboot/init.c: Likewise.
31507 * loader/i386/bsd.c: Likewise.
31508 * loader/i386/linux.c: Likewise.
31509 * loader/multiboot_loader.c: Likewise.
31510 * term/i386/pc/serial.c: Likewise.
31511 * term/usb_keyboard.c: Likewise.
31512
31513 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
31514 `<grub/machine/machine.h>'
31515 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
31516 * util/misc.c: Remove `<grub/machine/machine.h>' and
31517 `<grub/machine/time.h>'.
31518
31519 * Makefile.in (enable_grub_emu): Remove variable.
31520 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
31521
31522 * conf/any-emu.rmk: New file.
31523 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
31524 (grub_emu_init.c): Move from here ...
31525 * conf/any-emu.rmk: ... to here.
31526
31527 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
31528 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
31529 * conf/any-emu.rmk: ... to here.
31530
4efeab03
RM
315312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31532
31533 * include/grub/parser.h (grub_parser_register): Document need
31534 of `name' parameter.
31535 * normal/main.c (grub_normal_read_line): Simplify prompt string.
31536 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
31537 "sh" to "grub".
31538
ea1dd8bf
RM
315392009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31540
31541 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
31542 `$(XGETTEXT)'.
31543 * include/grub/i18n.h (N_): New macro.
31544 * util/mkisofs/mkisofs.h: Likewise.
31545 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
31546 around N_().
31547 (usage): Use gettext() to translate help strings when printing them.
31548
0c140626
RM
315492009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31550
31551 Based on patch from Bean
31552 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
31553
31554 * video/efi_fb.c: New file.
31555 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
31556 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31557 variables.
31558 * conf/x86_64-efi.rmk: Likewise.
31559
87d58298
RM
315602009-11-22 Robert Millan <rmh.grub@aybabtu.com>
31561
31562 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
31563 * util/i386/pc/grub-setup.c: Likewise.
31564
994cc3a3
ST
315652009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
31566
31567 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
31568 <hurd/fs.h>
31569 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
31570 file_get_storage_info to implement grub_guess_root_device.
31571
26a61d6a
FZ
315722009-11-21 Felix Zielcke <fzielcke@z-51.de>
31573
31574 * Makefile.in (target): Use make's builtin $(shell) function
31575 instead of calling directly $(SHELL) to create the locale directories,
31576 inside the $(foreach) function.
31577
74ff1dd5
FZ
315782009-11-21 Felix Zielcke <fzielcke@z-51.de>
31579
31580 * util/grub-mkrescue.in: Print an error and usage if output option
31581 has not been given.
31582
0b787d0e
FZ
315832009-11-21 Felix Zielcke <fzielcke@z-51.de>
31584
31585 Patch from Loïc Minier <loic.minier@ubuntu.com>.
31586 * util/grub.d/30_os-prober.in: Cope with Linux entries where
31587 root and /boot are on different devices.
31588
1164b270
RM
315892009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31590
31591 Fix build for srcdir != objdir.
31592
31593 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
31594 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
31595 $(srcdir).
31596 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
31597 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
31598 reference for input.
31599
13774a2f
RM
316002009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31601
31602 * util/grub-mkrescue.in: Use source directory direcly (without copiing
31603 or hardlinking it). Remove -J option, Joliet is not compatible with
31604 multiple source directories.
31605
efda854e
RM
316062009-11-21 Carles Pina i Estany <carles@pina.cat>
316072009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31608
31609 * util/grub-mkrescue.in: Recognize `--override-directory' option.
31610 (process_input_dir): New function. Process an arbitrary input
31611 directory.
31612 Misc adjustments to support both "override mode" and system-wide mode.
31613
6c09890c
FZ
316142009-11-20 Felix Zielcke <fzielcke@z-51.de>
31615
31616 * configure.ac (UNIFONT_BDF): Rename to ...
31617 (FONT_SOURCE): ... this. Update all users.
31618
a797824f
FZ
316192009-11-20 Felix Zielcke <fzielcke@z-51.de>
31620
31621 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
31622 to the list of unifont files to look for.
31623
cd4f42b0
RM
316242009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31625
31626 Patch from Joe Auricchio <jauricchio@gmail.com>
31627 * commands/minicmd.c (grub_mini_cmd_clear): New function.
31628 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
31629 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
31630
393c783d
FZ
316312009-11-19 Felix Zielcke <fzielcke@z-51.de>
31632
31633 * Makefile.in (install-local): Add a missing backslash.
31634
b2f1e327
FZ
316352009-11-19 Felix Zielcke <fzielcke@z-51.de>
31636
31637 * include/grub/x86_64/io.h: New file.
31638
f577f7a0
RM
316392009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31640
31641 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
31642 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
31643 Include `"progname.h"'.
31644 (main): Initialize gettext.
31645 * util/i386/pc/grub-setup.c: Gettexttize.
31646 * util/i386/pc/grub-mkimage.c: Likewise.
31647
31648 * Makefile.in (po/*.po): Redefine as ...
31649 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
31650
3bc7896c
RM
31651 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
31652
c37943b6
RM
316532009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31654
31655 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
31656 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
31657 (program_name): Remove.
31658 (main): Initialize gettext support.
6323f705
RM
31659 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
31660 Include `<libintl.h>'.
31661 (_): New macro.
c37943b6
RM
31662
31663 * util/mkisofs/eltorito.c: Gettexttize.
31664 * util/mkisofs/joliet.c: Likewise.
31665 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
31666 * util/mkisofs/multi.c: Likewise.
31667 * util/mkisofs/rock.c: Likewise.
31668 * util/mkisofs/tree.c: Likewise.
31669 * util/mkisofs/write.c: Likewise.
31670
3bc7896c
RM
31671 * po/POTFILES: Update with new files.
31672
5ce77c6e
RM
316732009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31674
31675 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
31676 * util/mkisofs/iso9660.h: Likewise.
31677 * util/mkisofs/joliet.c: Likewise.
31678 * util/mkisofs/mkisofs.c: Likewise.
31679 * util/mkisofs/mkisofs.h: Likewise.
31680 * util/mkisofs/rock.c: Likewise.
31681 * util/mkisofs/tree.c: Likewise.
31682 * util/mkisofs/write.c: Likewise.
31683
31684 * util/mkisofs/eltorito.c (rcsid): Remove.
31685 * util/mkisofs/hash.c: Likewise.
31686 * util/mkisofs/joliet.c: Likewise.
31687 * util/mkisofs/name.c: Likewise.
31688 * util/mkisofs/rock.c: Likewise.
31689 * util/mkisofs/tree.c: Likewise.
31690 * util/mkisofs/write.c: Likewise.
31691
1dabbc77
RM
316922009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31693
31694 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
31695 instead of static allocation.
31696 * util/mkisofs/match.h: Likewise.
31697
633877cb
RM
316982009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31699
3bc7896c
RM
31700 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
31701 and `util/grub.d/10_linux.in'.
633877cb
RM
31702 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
31703 translatable Shell files.
31704
af1c0c85
RM
317052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31706
31707 * Makefile.in ($(srcdir)/aclocal.m4): New target.
31708
769ae37b
RM
317092009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31710
31711 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 31712 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
31713 * util/grub.d/10_kfreebsd.in (bindir): New variable.
31714 Add gettext initialization.
31715 (kfreebsd_entry): Make menuentry output translatable.
31716
317172009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31718
31719 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
31720 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
31721 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
31722 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
31723 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 31724 * po/LINGUAS: New file.
769ae37b
RM
31725
317262009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31727
31728 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
31729 other things).
31730 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
31731 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
31732 bindtextdomain() calls for gettext initialization.
31733
317342009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31735
31736 * gnulib/progname.c: New file (imported from Gnulib).
31737 * gnulib/progname.h: Likewise.
31738 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31739 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
31740 (usage): Replace `progname' with `program_name'.
31741 (main): Use set_program_name() for program name initialization.
31742
317432009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31744
31745 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
31746 from here ...
31747 * Makefile.in (CPPFLAGS): ... to here.
31748
317492009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31750
31751 * aclocal.m4: Move from here ...
31752 * acinclude.m4: ... to here.
31753 * autogen.sh: Add call to `aclocal'.
31754 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
31755
317562009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31757
31758 * Makefile.in (CLEANFILES): Add `po/*.mo'.
31759 (LINGUAS): New variable.
31760 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
31761 (install-local): Install MO files.
31762 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
31763 * include/grub/i18n.h: New file.
3bc7896c
RM
31764 * po/POTFILES: New file.
31765 * po/ca.po: New file.
769ae37b
RM
31766 * util/grub.d/10_linux.in (bindir): New variable.
31767 Add gettext initialization.
31768 (linux_entry): Make menuentry output translatable.
31769 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31770 (usage): Make --help output translatable.
31771 (main): Initialize gettext.
31772
02c0a6ad
RM
317732009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31774
31775 * import_gcry.py: New file (written by Vladimir with minor
31776 adjustments).
31777 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31778 ciphers.
31779 * INSTALL: Document that Python is required for bootstrap.
31780
317812009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31782
31783 Import ciphers from libgcrypt 1.4.4.
31784
31785 * lib/libgcrypt/cipher/ChangeLog
31786 * lib/libgcrypt/cipher/ac.c
31787 * lib/libgcrypt/cipher/arcfour.c
31788 * lib/libgcrypt/cipher/bithelp.h
31789 * lib/libgcrypt/cipher/blowfish.c
31790 * lib/libgcrypt/cipher/camellia-glue.c
31791 * lib/libgcrypt/cipher/camellia.c
31792 * lib/libgcrypt/cipher/camellia.h
31793 * lib/libgcrypt/cipher/cast5.c
31794 * lib/libgcrypt/cipher/cipher.c
31795 * lib/libgcrypt/cipher/crc.c
31796 * lib/libgcrypt/cipher/des.c
31797 * lib/libgcrypt/cipher/dsa.c
31798 * lib/libgcrypt/cipher/ecc.c
31799 * lib/libgcrypt/cipher/elgamal.c
31800 * lib/libgcrypt/cipher/hash-common.c
31801 * lib/libgcrypt/cipher/hash-common.h
31802 * lib/libgcrypt/cipher/hmac-tests.c
31803 * lib/libgcrypt/cipher/md.c
31804 * lib/libgcrypt/cipher/md4.c
31805 * lib/libgcrypt/cipher/md5.c
31806 * lib/libgcrypt/cipher/primegen.c
31807 * lib/libgcrypt/cipher/pubkey.c
31808 * lib/libgcrypt/cipher/rfc2268.c
31809 * lib/libgcrypt/cipher/rijndael-tables.h
31810 * lib/libgcrypt/cipher/rijndael.c
31811 * lib/libgcrypt/cipher/rmd.h
31812 * lib/libgcrypt/cipher/rmd160.c
31813 * lib/libgcrypt/cipher/rsa.c
31814 * lib/libgcrypt/cipher/seed.c
31815 * lib/libgcrypt/cipher/serpent.c
31816 * lib/libgcrypt/cipher/sha1.c
31817 * lib/libgcrypt/cipher/sha256.c
31818 * lib/libgcrypt/cipher/sha512.c
31819 * lib/libgcrypt/cipher/tiger.c
31820 * lib/libgcrypt/cipher/twofish.c
31821 * lib/libgcrypt/cipher/whirlpool.c
31822
af2f93ac
RM
318232009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31824
31825 Fix build for systems without error().
31826
31827 * gnulib/error.c: New file (imported from Gnulib).
31828 * gnulib/error.h: Likewise.
31829 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31830 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31831 (this variable is now used by error()).
31832
73fb3dd5
FZ
318332009-11-16 Felix Zielcke <fzielcke@z-51.de>
31834
814f5e96
FZ
31835 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31836 instead of relying that char is signed.
73fb3dd5 31837
a691ca33
VS
318382009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31839
31840 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31841 blocksize different from specified.
31842 (grub_pxefs_read): Likewise.
31843
2af8f0f4
FZ
318442009-11-16 Felix Zielcke <fzielcke@z-51.de>
31845
31846 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31847
31848 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31849 (grub_ata_readwrite): Likewise. Update 2 format strings.
31850 (grub_atapi_read): Likewise.
31851
31852 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31853 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31854 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31855 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31856 (ata_mod_LDFLAGS): Move from here ...
31857 * conf/i386.rmk: ... to here ...
31858 * conf/x86_64-efi.rmk: ... and here.
31859 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31860 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31861
83bdecaf
RM
318622009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31863
31864 Relicense multiboot.h, with RMS' blessing.
31865
31866 * include/multiboot.h: Change to X11 license.
31867
fd6fd3d7
RM
318682009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31869
31870 Support --version in grub-mkisofs.
31871
31872 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31873 (OPTION_VERSION): New macro.
31874 (ld_options): Recognize --version.
31875 (usage): Move `program_name' from here ...
31876 (program_name): ... to here. Add `static' qualifier.
31877 (main): Recognize `OPTION_VERSION'.
31878
16a88c49
FZ
318792009-11-15 Felix Zielcke <fzielcke@z-51.de>
31880
31881 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31882 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31883
a4158476
RM
318842009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31885
31886 Fix help2man generation for mkisofs.
31887
31888 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31889 (usage): Send output to stdout (rather than stderr).
31890
fc2208b0
RM
318912009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31892
31893 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31894 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31895 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31896 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31897 (bin_SCRIPTS): Add `grub-mkfloppy'.
31898 (grub_mkfloppy_SOURCES): New variable.
31899
31900 * util/grub-mkrescue.in: New file.
31901 * util/i386/pc/grub-mkfloppy.in: New file.
31902
31903 * util/i386/coreboot/grub-mkrescue.in: Remove.
31904 * util/i386/pc/grub-mkrescue.in: Remove.
31905
8d0edf4a
RM
319062009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31907
31908 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31909 from here ...
31910 * include/multiboot.h (struct multiboot_header): ... to here. Update
31911 all users.
31912 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31913 from here ...
31914 * include/multiboot.h (struct multiboot_info): ... to here. Update
31915 all users.
31916 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31917 from here ...
31918 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31919 Update all users.
31920 * include/grub/multiboot.h (struct grub_mod_list): Move
31921 from here ...
31922 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31923 Update all users.
31924
a73f5969
RM
319252009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31926
31927 * include/multiboot2.h (multiboot_word): Rename from this ...
31928 (multiboot2_word): ... to this. Update all users.
31929 (multiboot_header): Rename from this ...
31930 (multiboot2_header): ... to this. Update all users.
31931 (multiboot_tag_header): Rename from this ...
31932 (multiboot2_tag_header): ... to this. Update all users.
31933 (multiboot_tag_start): Rename from this ...
31934 (multiboot2_tag_start): ... to this. Update all users.
31935 (multiboot_tag_name): Rename from this ...
31936 (multiboot2_tag_name): ... to this. Update all users.
31937 (multiboot_tag_module): Rename from this ...
31938 (multiboot2_tag_module): ... to this. Update all users.
31939 (multiboot_tag_memory): Rename from this ...
31940 (multiboot2_tag_memory): ... to this. Update all users.
31941 (multiboot_tag_unused): Rename from this ...
31942 (multiboot2_tag_unused): ... to this. Update all users.
31943 (multiboot_tag_end): Rename from this ...
31944 (multiboot2_tag_end): ... to this. Update all users.
31945
1c8927f0
RM
319462009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31947
31948 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31949 this platform we should support Multiboot1 first.
31950
31951 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31952 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31953 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31954
6e1e0d89
RM
319552009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31956
31957 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31958 of write calls (converting them to fwrite() if they aren't already).
31959 (get_torito_desc): Likewise.
31960 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31961
7f2b34d8
RM
319622009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31963
31964 * util/i386/pc/grub-install.in: Move from here ...
31965 * util/grub-install.in: ... to here. Update all users.
31966
c0ef3311
CW
319672009-11-11 Colin Watson <cjwatson@ubuntu.com>
31968
31969 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31970
e1f240ff
RM
319712009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31972
31973 Support for El Torito without floppy emulation.
31974
31975 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31976 (init_boot_catalog): Improve error handling.
31977 (get_torito_desc): Don't use floppy emulation unless requested by
31978 user. Patch boot information table when requested via
31979 `-boot-info-table'.
31980 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31981 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31982 (use_boot_info_table): New variables.
31983 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31984 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31985 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31986 `--eltorito-emul-floppy'.
31987 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31988 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31989 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31990 (use_boot_info_table, get_731): New prototypes.
31991 * util/mkisofs/write.c (get_731): New function.
31992
af7d4de5
FZ
319932009-11-11 Felix Zielcke <fzielcke@z-51.de>
31994
31995 Fix the generation of the man page.
31996
31997 * util/pc/i386/grub-install.in: Source
31998 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31999
2c55dbc0
RM
320002009-11-11 Robert Millan <rmh.grub@aybabtu.com>
32001
32002 Large file support for grub-mkisofs.
32003
32004 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
32005 * util/mkisofs/mkisofs.c (next_extent, last_extent)
32006 (session_start): Upgrade type to `uint64_t'. Update all users.
32007 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
32008 (struct directory_entry): Upgrade type of `starting_block' and
32009 `size' to `uint64_t'. Update all users.
32010 (struct deferred): Remove unused structure.
32011 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
32012 Update all users.
32013 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
32014 file is larger than `UINT32_MAX'.
32015 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
32016 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
32017 return value.
32018 (struct deferred_write): Upgrade type of `extent' and `size' to
32019 `uint64_t'. Update all users.
32020 (last_extent_written): Upgrade type to `uint64_t'. Update all
32021 users.
32022 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
32023 Update all users. Upgrade type of `remain' to `int64_t' and
32024 `use' to `size_t'. Use error() to handle fread() errors.
32025 (write_files): Rely on write_one_file() rather than calling
32026 xfwrite() directly.
32027
6a9cead5
FZ
320282009-11-09 Felix Zielcke <fzielcke@z-51.de>
32029
32030 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
32031
4825d790
RM
320322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32033
32034 * util/mkisofs/fnmatch.c: Remove.
32035 * util/mkisofs/getopt1.c: Likewise.
32036 * util/mkisofs/getopt.c: Likewise.
32037 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
32038 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
32039 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
32040 `gnulib/getopt1.c' and `gnulib/getopt.c'.
32041 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
32042
32043 * configure.ac: Detect `mingw32msvc' host_os.
32044 Check for lstat(), getuid() and getgid().
32045
32046 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
32047 instances of `u_char' with `uint8_t'.
32048
32049 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
32050 [!HAVE_GETUID] (getuid): New function (stub).
32051 [!HAVE_GETGID] (getgid): Likewise.
32052 [!HAVE_LSTAT] (lstat): Likewise.
32053 [!S_IROTH] (S_IROTH): New macro (dummy).
32054 [!S_IRGRP] (S_IRGRP): Likewise.
32055
84b860d8
RM
320562009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32057
32058 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
32059 conditional expression).
32060
66e9b712
RM
320612009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32062
32063 Import from Gnulib.
32064
32065 * gnulib/fnmatch.c: New file.
32066 * gnulib/fnmatch.h: Likewise.
32067 * gnulib/fnmatch_loop.c: Likewise.
32068 * gnulib/getopt.c: Likewise.
32069 * gnulib/getopt.h: Likewise.
32070 * gnulib/getopt1.c: Likewise.
32071 * gnulib/getopt_int.h: Likewise.
32072 * gnulib/gettext.h: Likewise.
32073
34f4a5b0
RM
320742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32075
32076 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
32077 * normal/handler.c (read_handler_list): Likewise.
32078
ac451143
RM
320792009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32080
32081 Misc cleanup.
32082
32083 * kern/command.c (grub_register_command_prio): Use
32084 grub_zalloc() instead of explicitly zeroing data.
32085 * kern/list.c: Include `<grub/mm.h>'.
32086 (grub_named_list_find): Replace `0' with `NULL'.
32087 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
32088 (fs_module_list): Change type to `grub_named_list_t'. Update all
32089 users.
32090 * normal/dyncmd.c (read_command_list): Add space between function
32091 call and parenthesis.
32092 * normal/handler.c (read_handler_list): Likewise.
32093
4089b167
RM
320942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32095
32096 * normal/auth.c (punishment_delay): Moved from here ...
32097 (grub_auth_strcmp): ... to here (inside function).
32098
325f5037
RM
320992009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32100
32101 * include/grub/list.h (struct grub_named_list): Remove `const'
32102 qualifier from `name'.
32103 (struct grub_prio_list): Likewise.
32104
7aea29a3
RM
321052009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32106
32107 * normal/auth.c: Include `<grub/time.h>'.
32108 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
32109
3fd6f044
RM
321102009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32111
32112 * normal/auth.c (punishment_delay): New variable.
32113 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
32114 (grub_auth_check_authentication): Punish failed login attempts with
32115 an incremental (2^N) delay.
32116
a4cd68e4
RM
321172009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32118
32119 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
32120 path with $(srcdir).
32121
7ad12f43
VS
321222009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
32123
32124 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
32125
c1129f03
RM
321262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
32127
32128 * util/i386/coreboot/grub-mkrescue.in: New file.
32129 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
32130 variables.
32131
32132 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
32133 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
32134 * configure.ac: Add header and function checks to satisfy grub-mkisofs
32135 requirements.
32136 * util/mkisofs/defaults.h: New file.
32137 * util/mkisofs/eltorito.c: Likewise.
32138 * util/mkisofs/exclude.h: Likewise.
32139 * util/mkisofs/fnmatch.c: Likewise.
32140 * util/mkisofs/getopt.c: Likewise.
32141 * util/mkisofs/getopt1.c: Likewise.
32142 * util/mkisofs/hash.c: Likewise.
32143 * util/mkisofs/include/fctldefs.h: Likewise.
32144 * util/mkisofs/include/mconfig.h: Likewise.
32145 * util/mkisofs/include/prototyp.h: Likewise.
32146 * util/mkisofs/include/statdefs.h: Likewise.
32147 * util/mkisofs/iso9660.h: Likewise.
32148 * util/mkisofs/joliet.c: Likewise.
32149 * util/mkisofs/match.c: Likewise.
32150 * util/mkisofs/match.h: Likewise.
32151 * util/mkisofs/mkisofs.c: Likewise.
32152 * util/mkisofs/mkisofs.h: Likewise.
32153 * util/mkisofs/multi.c: Likewise.
32154 * util/mkisofs/name.c: Likewise.
32155 * util/mkisofs/rock.c: Likewise.
32156 * util/mkisofs/tree.c: Likewise.
32157 * util/mkisofs/write.c: Likewise.
32158
ec8bb77d
VS
321592009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
32160
32161 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
32162 being insecure.
32163
3716b12c
RM
321642009-11-08 Robert Millan <rmh.grub@aybabtu.com>
32165
32166 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
32167 `grub-mkimage' (and use $0 when possible).
32168
b97b7b91
RM
321692009-11-08 Robert Millan <rmh.grub@aybabtu.com>
32170
32171 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
32172 error message for excessively large memory map.
32173
04114812
RM
321742009-11-08 Robert Millan <rmh.grub@aybabtu.com>
32175
32176 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
32177 executable bit.
32178
e4eb2373
RM
321792009-11-08 Robert Millan <rmh.grub@aybabtu.com>
32180
32181 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
32182 message for coreboot users.
32183
c926e1d5 321842009-11-07 Robert Millan <rmh.grub@aybabtu.com>
32185
32186 Fix build with GNU gold.
32187
32188 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
32189 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
32190 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
32191 link addresses.
32192 * aclocal.m4: Likewise.
32193
86e5b1db 321942009-11-04 Felix Zielcke <fzielcke@z-51.de>
32195
32196 * configure.ac (AC_PREREQ): Bump to 2.59d.
32197 * INSTALL: Make it more clear when Autoconf and Ruby are
32198 needed and when to run `./autogen.sh'.
32199
246cd78f 322002009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
32201
32202 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
32203 OSes.
32204
4f9dfb37 322052009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32206
32207 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
32208
b82bd5e1 322092009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32210
32211 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
32212 giving it to GNU Mach.
32213
ff1a9bca 322142009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32215
32216 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
32217 GNU partition number to get internal GRUB partition number.
32218
61697d9c 322192009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32220
32221 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
32222 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
32223
a50569e1 322242009-11-01 Robert Millan <rmh.grub@aybabtu.com>
32225
32226 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
32227 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
32228 case.
32229
5b153867 322302009-11-01 Felix Zielcke <fzielcke@z-51.de>
32231
32232 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
32233
d9e2cd70 322342009-10-30 Robert Millan <rmh.grub@aybabtu.com>
32235
32236 Fix build problem.
32237
32238 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
32239 `-isystem=$(srcdir)/include'.
32240
805111a4 322412009-10-30 Robert Millan <rmh.grub@aybabtu.com>
32242
32243 * util/i386/pc/grub-install.in: Remove hint that device.map should be
32244 checked (grub-install doesn't currently rely on it).
32245
fa6e945f 322462009-10-29 Robert Millan <rmh.grub@aybabtu.com>
32247
32248 Revert SVN r2660.
32249
32250 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
32251 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
32252 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
32253 * conf/i386-ieee1275.rmk: Likewise.
32254 * conf/i386-pc.rmk: Likewise.
32255 * conf/powerpc-ieee1275.rmk: Likewise.
32256 * conf/sparc64-ieee1275.rmk: Likewise.
32257 * conf/x86_64-efi.rmk: Likewise.
32258
cee15086 322592009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32260
32261 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
32262
95b9239e 322632009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32264
32265 * include/grub/misc.h: Stop checking for APPLE_CC.
32266
2ed19dfd 322672009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32268
32269 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
32270 doesn't cause an infinite call loop.
32271
fdcdde19 322722009-10-28 Felix Zielcke <fzielcke@z-51.de>
32273
32274 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
32275 strings.
32276
cefabfe1 322772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32278
32279 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
32280 variable.
32281 * Makefile.in: Likewise.
32282
ed96ab6d 322832009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32284
32285 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
32286
0579b753 322872009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32288
32289 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
32290
478df409 322912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32292
32293 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
32294
083d1679 322952009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32296
32297 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
32298 from here ...
32299 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
32300
5947ae32 323012009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32302
32303 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
32304 in $(MAKEINFO) invocation. This makes it clear in output that
32305 errors are being ignored.
32306
94180ff6 323072009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32308
32309 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
32310 from here ...
32311 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
32312 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
32313 * conf/i386-ieee1275.rmk: Likewise.
32314 * conf/i386-pc.rmk: Likewise.
32315 * conf/powerpc-ieee1275.rmk: Likewise.
32316 * conf/sparc64-ieee1275.rmk: Likewise.
32317 * conf/x86_64-efi.rmk: Likewise.
32318
9031b03a 323192009-10-26 Colin Watson <cjwatson@ubuntu.com>
32320
32321 * util/grub-editenv.c (main): If only a command is given, use
32322 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
32323 (usage): FILENAME is now optional and has a default.
32324
e4f6809b 323252009-10-26 Colin Watson <cjwatson@ubuntu.com>
32326
32327 Improve grub-mkconfig performance when there are several menu
32328 entries on a single filesystem.
32329
32330 * util/grub.d/10_linux.in (linux_entry): Cache the output of
32331 prepare_grub_to_access_device.
32332 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32333 * util/grub.d/30_os-prober.in: Likewise.
32334
67937d4d 323352009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32336
32337 * util/grub.d/10_freebsd.in: Remove.
32338 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
32339 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
32340
ee3756cc 323412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32342
5c35048e 32343 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 32344
4dea1c6f 323452009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32346
32347 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
32348 grub_util_error() call.
32349
042484d7 323502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32351
32352 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
32353 `reserved_first_sector' member.
32354 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
32355 `reserved_first_sector' to 1.
32356 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
32357 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
32358 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
32359 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
32360 filesystems which begin at first sector.
32361 (options): New option --skip-fs-probe.
32362 (main): Handle --skip-fs-probe and pass it to setup().
32363
d64448a7 323642009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32365
32366 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
32367 (memset): Fix function prototype.
32368
508d42ec 323692009-10-25 Robert Millan <rmh.grub@aybabtu.com>
323702009-10-25 Vasily Averin <vvs@parallels.com>
32371
32372 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
32373 `dirent.direntlen == 0'.
32374
b240e30c 323752009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32376
32377 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
32378 `cpio'.
32379 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
32380
346e7fbe 323812009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32382
32383 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
32384 `__trampoline_setup' and `__ucmpdi2'.
32385 * include/grub/powerpc/libgcc.h: Only export symbols for functions
32386 that libgcc provides.
32387
cdb308b0 323882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32389
32390 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
32391 * include/grub/sparc64/libgcc.h (memset): Likewise.
32392 * include/grub/misc.h (memset, memcmp): New function prototypes.
32393
fb26abc2 323942009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32395
32396 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
32397 `cpio'.
32398 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
32399
f6693890 324002009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32401
32402 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
32403 * docs/grub.cfg: Compensate for recent change in multiboot
32404 loader (since 2009-08-14 it won't pass filename to payload).
32405 * util/grub.d/10_hurd.in: Likewise.
32406
0933cdc0 324072009-10-21 Felix Zielcke <fzielcke@z-51.de>
32408
32409 * config.guess: Update to latest version from config git
32410 repository.
32411 * config.sub: Likewise.
32412
3b2fe8c2 324132009-10-20 Robert Millan <rmh.grub@aybabtu.com>
32414
32415 Fix build on sparc64.
32416
32417 * configure.ac: Perform checks for libgcc symbols before
32418 adding `-nostdlib' to LDFLAGS.
32419
46695a62 324202009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32421
32422 Let user specify OpenBSD root device.
32423
32424 * loader/i386/bsd.c (openbsd_root): New variable.
32425 (openbsd_opts): New option 'root'.
32426 (OPENBSD_ROOT_ARG): New macro.
32427 (grub_openbsd_boot): Use 'openbsd_root'.
32428 (grub_cmd_openbsd): Fill 'openbsd_root'.
32429
d2b6b7fc 324302009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32431
32432 * NEWS: Misc adjustments.
32433
421bd7ac 324342009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32435
32436 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
32437
f1d29d87 324382009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32439
32440 * configure.ac: Bump version to 1.97.
32441
6f3cd880 324422009-10-16 Colin Watson <cjwatson@ubuntu.com>
32443
32444 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
32445 -mno-3dnow on x86 architectures. Some toolchains enable these
32446 features by default, but they rely on registers that aren't enabled
32447 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
32448
035f7122 324492009-10-15 Robert Millan <rmh.grub@aybabtu.com>
32450
32451 Make entry text a bit more readable.
32452
32453 * util/grub.d/10_linux.in: Add `with' before `Linux'.
32454
44998e58 324552009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32456
32457 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
32458
cd2851b3 324592009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32460
32461 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
32462 operations.
32463
c6f3b249 324642009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32465
32466 * configure.ac: Add missing dollar.
32467
6b5886ba 324682009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32469
32470 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
32471
32472 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
32473 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
32474 exports.
32475 * include/grub/sparc64/libgcc.h: Likewise. Use
32476 preprocessor conditionals.
32477
e9d66f6d 324782009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32479
32480 * conf/common.rmk (grub-dumpbios): Remove rule.
32481 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
32482 * util/grub-dumpbios.in: Remove file.
32483
9155bc17 324842009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32485
32486 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
32487 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
32488
32489 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
32490 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
32491 users.
32492
32493 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
32494 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
32495 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
32496 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
32497 users.
32498
bf7f7a18 324992009-10-12 Robert Millan <rmh.grub@aybabtu.com>
32500
32501 * term/tparm.c: Switch to GPLv3.
32502
86564c26 325032009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32504
32505 * include/grub/i386/cpuid.h: Add header protection.
32506
5c936493 325072009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32508
32509 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
32510
32511 * include/grub/i386/cpuid.h: New file.
32512 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
32513 (has_longmode): Rename to ...
32514 (grub_cpuid_has_longmode): ... this. Update all users. Remove
32515 `static' attribute.
32516 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
32517 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
32518 on a CPU that doesn't implement AMD64 instruction set.
32519
186e7cf2 325202009-10-06 Colin Watson <cjwatson@ubuntu.com>
32521
32522 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
32523 that version.texi is rebuilt on version number changes.
32524
83b65c4a 325252009-10-06 Colin Watson <cjwatson@ubuntu.com>
32526
32527 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
32528 Fixes bug #27602.
32529
d244281c 325302009-10-06 Colin Watson <cjwatson@ubuntu.com>
32531
32532 * util/i386/pc/grub-install.in: Source
32533 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
32534 that the --grub-probe option will work.
32535 * util/sparc64/ieee1275/grub-install.in: Likewise.
32536
da25306d 325372009-10-05 Robert Millan <rmh.grub@aybabtu.com>
32538
32539 * configure.ac: Bump version to 1.97~beta4.
32540
e8ee83c0 325412009-10-03 Robert Millan <rmh.grub@aybabtu.com>
32542
32543 Resync grub-mkdevicemap in x86_64-efi.
32544
32545 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
32546 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
32547 `util/devicemap.c'.
32548
50dcabcf 325492009-10-01 Colin Watson <cjwatson@ubuntu.com>
32550
32551 * util/grub-editenv.c (create_envblk_file): Write new block with a
32552 .new suffix and then rename it into place, to ensure atomic
32553 creation.
32554
0e51c3a7 325552009-09-28 Robert Millan <rmh.grub@aybabtu.com>
32556
32557 Do not automatically install headers.
32558
32559 * Makefile.in (include_DATA): Remove. Update all users.
32560
31299a95 325612009-09-26 Robert Millan <rmh.grub@aybabtu.com>
32562
32563 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
32564 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
32565
32566 * util/osdetect.lua: Remove.
32567 * script/lua/lauxlib.c: Likewise.
32568 * script/lua/ldebug.c: Likewise.
32569 * script/lua/grub_main.c: Likewise.
32570 * script/lua/lauxlib.h: Likewise.
32571 * script/lua/ldebug.h: Likewise.
32572 * script/lua/ltablib.c: Likewise.
32573 * script/lua/liolib.c: Likewise.
32574 * script/lua/lstrlib.c: Likewise.
32575 * script/lua/lualib.h: Likewise.
32576 * script/lua/ldo.c: Likewise.
32577 * script/lua/ldump.c: Likewise.
32578 * script/lua/ldo.h: Likewise.
32579 * script/lua/loslib.c: Likewise.
32580 * script/lua/lundump.c: Likewise.
32581 * script/lua/grub_lib.c: Likewise.
32582 * script/lua/ldblib.c: Likewise.
32583 * script/lua/lundump.h: Likewise.
32584 * script/lua/lmem.c: Likewise.
32585 * script/lua/grub_lib.h: Likewise.
32586 * script/lua/lmathlib.c: Likewise.
32587 * script/lua/lstate.c: Likewise.
32588 * script/lua/ltm.c: Likewise.
32589 * script/lua/lvm.c: Likewise.
32590 * script/lua/lmem.h: Likewise.
32591 * script/lua/lstate.h: Likewise.
32592 * script/lua/ltm.h: Likewise.
32593 * script/lua/ltable.c: Likewise.
32594 * script/lua/lvm.h: Likewise.
32595 * script/lua/llex.c: Likewise.
32596 * script/lua/lgc.c: Likewise.
32597 * script/lua/grub_lua.h: Likewise.
32598 * script/lua/loadlib.c: Likewise.
32599 * script/lua/lfunc.c: Likewise.
32600 * script/lua/lopcodes.c: Likewise.
32601 * script/lua/lparser.c: Likewise.
32602 * script/lua/ltable.h: Likewise.
32603 * script/lua/llex.h: Likewise.
32604 * script/lua/lgc.h: Likewise.
32605 * script/lua/lfunc.h: Likewise.
32606 * script/lua/lbaselib.c: Likewise.
32607 * script/lua/lopcodes.h: Likewise.
32608 * script/lua/lparser.h: Likewise.
32609 * script/lua/lzio.c: Likewise.
32610 * script/lua/linit.c: Likewise.
32611 * script/lua/lobject.c: Likewise.
32612 * script/lua/llimits.h: Likewise.
32613 * script/lua/lstring.c: Likewise.
32614 * script/lua/lzio.h: Likewise.
32615 * script/lua/lapi.c: Likewise.
32616 * script/lua/lcode.c: Likewise.
32617 * script/lua/lua.h: Likewise.
32618 * script/lua/lobject.h: Likewise.
32619 * script/lua/lstring.h: Likewise.
32620 * script/lua/lapi.h: Likewise.
32621 * script/lua/lcode.h: Likewise.
32622 * script/lua/luaconf.h: Likewise.
32623
cb8a2c38 326242009-09-26 Colin Watson <cjwatson@ubuntu.com>
32625
32626 * docs/grub.texi (Command-line and menu entry commands): Document
32627 date and echo commands.
32628
6b9b6276 326292009-09-24 Pavel Roskin <proski@gnu.org>
32630
32631 * include/grub/kernel.h (struct grub_module_header): Remove
32632 `grub_module_header_types'. Make `type' unsigned. Make `size'
32633 32-bit on all platforms.
32634 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
32635 8-bit field. Use grub_host_to_target32() for `size'.
32636 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
32637 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
32638 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
32639
4e5a02a7 326402009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32641
32642 Fix "lost keypress" bug in at_keyboard.
32643
32644 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
32645 Checks for readyness of input buffer (without flushing it).
32646 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
32647 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
32648
c6dcedf6 326492009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32650
32651 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
32652 size check within GRUB_MACHINE_PCBIOS section.
32653
74c958b1 326542009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32655
32656 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
32657 return value.
32658 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
32659 KEYBOARD_ISREADY check.
32660 (grub_at_keyboard_checkkey): Rename to ...
32661 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
32662 Remove gratuitous cast.
32663
ff420223 326642009-09-23 Colin Watson <cjwatson@ubuntu.com>
32665
32666 * configure.ac: Call AC_PROG_MKDIR_P.
32667 * Makefile.in (docs/stamp-vti): Create docs directory. Create
32668 version.texi in $(builddir) rather than $(srcdir).
32669 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
32670 to makeinfo's @include search path.
32671
d96875df 326722009-09-23 Felix Zielcke <fzielcke@z-51.de>
32673
32674 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
32675
9b3f8365 326762009-09-23 Felix Zielcke <fzielcke@z-51.de>
32677
32678 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
32679 for `*.dpkg-new'.
32680
c44c90db 326812009-09-21 Colin Watson <cjwatson@ubuntu.com>
32682
32683 Build info documentation. Some code borrowed from Automake.
32684
32685 * configure.ac: Check for makeinfo.
32686 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
32687 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
32688 docs/version.texi.
32689 (MOSTLYCLEANFILES): Add vti.tmp.
32690 (docs/version.texi, docs/stamp-vti): Update automatically.
32691 (docs/grub.info): Build info documentation. Use --force and ignore
32692 errors for now.
32693 (all-local): Add $(INFOS).
32694 (install-local): Install info files.
32695 (uninstall): Uninstall info files.
32696 * docs/version.texi: Remove from revision control. This file is
32697 automatically generated on build now.
32698 * gendistlist.sh: Add `*.info'.
32699
e0b37bb5 327002009-09-21 Felix Zielcke <fzielcke@z-51.de>
32701
32702 * kern/term.c: Fix indentation.
32703
5a78865b 327042009-09-21 Felix Zielcke <fzielcke@z-51.de>
32705
32706 * util/hostdisk.c: Fix a comment.
32707
dace7e8a 327082009-09-20 Robert Millan <rmh.grub@aybabtu.com>
32709
32710 Fix regression introduced in r2539.
32711
32712 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
32713 to 0xA1.
32714
a83d079b 327152009-09-19 Colin Watson <cjwatson@ubuntu.com>
32716
32717 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 32718 os-prober. Under normal operation, it does not print anything to
32719 stderr; if it does, we need to debug it, and throwing away stderr
32720 makes that excessively difficult.
a83d079b 32721
be94a509 327222009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
32723
32724 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
32725
63f745e8 327262009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32727
32728 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
32729 AC_LANG_PROGRAM from autoconf.
32730 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32731 prototypes (fixes warning).
32732
32733 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
32734 `--disable-werror' was used.
32735
bbb2a70f 327362009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32737
32738 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
32739 uninitialized `lastaddr'.
32740
77c24f1d 327412009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
32742
0f0b8c87 32743 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 32744
07197f23 327452009-09-14 Colin Watson <cjwatson@ubuntu.com>
32746
32747 * commands/test.c (get_fileinfo): Return immediately if
32748 grub_fs_probe fails.
32749
dabf1798 327502009-09-14 José Martínez <xosemp@gmail.com>
32751
32752 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
32753
d52109a7 327542009-09-14 Colin Watson <cjwatson@ubuntu.com>
32755
32756 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
32757 output.
32758
56532179 327592009-09-13 Robert Millan <rmh.grub@aybabtu.com>
32760
32761 * configure.ac: Remove --enable-grub-pe2elf. Only build
32762 grub-pe2elf when needed by the build system itself.
32763 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32764
8ef070f5 327652009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32766
32767 * configure.ac: Bump version to 1.97~beta3.
32768 * docs/version.texi: Likewise.
32769
61229557 327702009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32771
32772 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32773 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32774 from here ...
32775 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32776 (grub_linux_setup_video): ... to here (with some adjustments).
32777
5c9f8d84 327782009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32779
32780 Fix memory corruption issue (spotted by Colin Watson).
32781
32782 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32783 causing returned size to be stored in an incorrect memory location.
32784 Fix use of uninitialized value when storing the returned size.
32785
e8f5d6e9 327862009-09-12 Yves Blusseau <blusseau@zetam.org>
32787
32788 Change clean rules to properly remove files
32789
32790 * genmk.rb: add new clean rules
32791 * Makefile.in (clean): add the new targets
32792 (mostlyclean): likewise
32793
cda2a409 327942009-09-11 Colin Watson <cjwatson@ubuntu.com>
32795
32796 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32797 to grub_uint64_t.
32798 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32799 non-resident files.
32800
86695375 328012009-09-11 Colin Watson <cjwatson@ubuntu.com>
32802
32803 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32804 part of bug #27349.
32805
8aa1541a 328062009-09-10 Felix Zielcke <fzielcke@z-51.de>
32807
32808 * util/grub-mkconfig.in: Make the created config mode 400 and
32809 print a warning if it fails.
32810
48d9bb0a 328112009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32812
32813 * util/grub.d/40_custom.in: Ask user to type custom entries below
32814 comment, rather than below 'exec tail' line.
32815
3b0521be 328162009-09-10 Colin Watson <cjwatson@ubuntu.com>
32817
32818 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32819 visible in grub.cfg.
32820
50051d55 328212009-09-10 Colin Watson <cjwatson@ubuntu.com>
32822
32823 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32824 file.
32825
c0d34387 328262009-09-10 Felix Zielcke <fzielcke@z-51.de>
32827
32828 * docs/grub.cfg: Add an example menu entry for memtest86+.
32829
80a608f3 328302009-09-09 Felix Zielcke <fzielcke@z-51.de>
32831
a2094832 32832 * config.guess: Update to latest version from config git.
80a608f3 32833 * config.sub: Likewise.
32834
99423078 328352009-09-08 Colin Watson <cjwatson@ubuntu.com>
32836
32837 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32838 unknown-command case. Fixes bug #27320.
32839
44454e4c 328402009-09-08 Felix Zielcke <fzielcke@z-51.de>
32841
32842 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32843 `help' if the command exists.
32844
e30d87ad 328452009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32846
32847 * INSTALL: Require GCC 4.1.3 or later.
32848
9a86f1ec 328492009-09-06 Yves Blusseau <blusseau@zetam.org>
32850
32851 * Makefile.in (RMKFILES): add i386-qemu.rmk
32852 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32853 $(srcdir)/stamp-h.in
32854
7f26d466 328552009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32856
32857 * util/grub-probe.c (probe): Comment out buggy codepath, which
32858 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32859 should be re-enabled after 1.97.
32860
3a613259 328612009-09-05 Felix Zielcke <fzielcke@z-51.de>
32862
32863 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32864 find searches for.
32865
197f76c7 328662009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32867
32868 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32869 unnecessary calls to grub_error.
32870
70ba68ce 328712009-09-04 Colin Watson <cjwatson@ubuntu.com>
32872
32873 * NEWS: Mention `keystatus' and Unicode fonts.
32874
4ff0d7a4 328752009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32876
32877 * configure.ac: Bump version to 1.97~beta2.
32878 * docs/version.texi: Likewise.
32879
77c55a87 328802009-09-03 Colin Watson <cjwatson@ubuntu.com>
32881
32882 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32883 containing unwind information in some cases where it previously did
32884 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32885 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32886 discussion.
32887
f79572cd 328882009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32889
32890 Embedding loadenv module into grub-emu
32891
32892 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32893 commands/loadenv.c
32894 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32895 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32896 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32898 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32900
93a81088 329012009-09-03 Magnus Granberg <zorry@ume.nu>
32902
32903 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32904 include -fPIE in the default specs.
32905 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32906 to TARGET_CFLAGS.
32907
160034b2 329082009-09-03 Felix Zielcke <fzielcke@z-51.de>
32909
32910 * INSTALL: Note that GNU Bison 2.3 or later is required.
32911
087c07c4 329122009-09-03 Colin Watson <cjwatson@ubuntu.com>
32913
32914 * kern/i386/pc/startup.S: Fix typo.
32915
cbf978c0 329162009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32917
32918 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32919 according to GCS.
32920
329212009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 32922
32923 * docs/grub.texi (Naming convention): Describe one-based partition
32924 numbering.
32925 (Device syntax): Likewise.
32926 (File name syntax): Likewise.
32927 (Block list syntax): Likewise.
32928 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32929 menu.lst.
32930 (File name syntax): Likewise.
32931 (Command-line and menu entry commands): Document acpi, blocklist,
32932 crc, export, insmod, keystatus, ls, set, and unset commands.
32933
f3e8cdfd 329342009-09-02 Colin Watson <cjwatson@ubuntu.com>
32935
32936 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32937 to avoid implying that only one of --shift, --ctrl, or --alt may be
32938 used.
32939
c0bc232b 329402009-09-02 Colin Watson <cjwatson@ubuntu.com>
32941
32942 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32943 rather than comparing against S_IFREG, which will almost never work.
32944
aa0f752d 329452009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32946
32947 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32948 (write_blocklists): Likewise.
32949
ecb3166a 329502009-09-01 Colin Watson <cjwatson@ubuntu.com>
32951
32952 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32953 argument to grub_printf.
32954
c403a125 329552009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 32956
32957 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 32958 non GNU test.
31aba781 32959
b5e7312c 329602009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32961
32962 * kern/file.c (grub_file_read): Spelling fix
32963
fe00f472 329642009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32965
32966 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32967 loading of headers in some cases.
32968
cc55302e 329692009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32970
32971 * configure.ac: Bump version to 1.97~beta1.
32972 * docs/version.texi: Likewise.
32973
5c90cdd2 329742009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 32975
32976 * include/grub/i386/xnu.h: Add license header.
32977 include grub/err.h explicitly.
32978
c90edae4 329792009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32980
32981 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32982 to `ufs' in the vfs.root.mountfrom kernel parameter.
32983
d8888b5c 329842009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32985
32986 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32987
32988 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32989 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32990
32991 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32992 `ARRAY_SIZE' macro.
32993
6f07b921 329942009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32995
32996 * kern/file.c (grub_file_read): Check offset.
32997 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32998 * fs/jfs.c (grub_jfs_read_file): Likewise.
32999 * fs/ntfs.c (grub_ntfs_read): Likewise.
33000 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
33001 * fs/minix.c (grub_minix_read_file): Correct offset check.
33002 * fs/ufs.c (grub_ufs_read_file): Likewise.
33003
b4f34077 330042009-08-28 Colin Watson <cjwatson@ubuntu.com>
33005
33006 * term/i386/pc/console.c (bios_data_area): Cast
33007 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
33008
e7c69859 330092009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
33010
33011 1-bit optimised blitters.
33012
33013 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
33014 prototype.
33015 (grub_video_fbblit_replace_24bit_1bit): Likewise.
33016 (grub_video_fbblit_replace_16bit_1bit): Likewise.
33017 (grub_video_fbblit_replace_8bit_1bit): Likewise.
33018 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
33019 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
33020 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
33021 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
33022 function.
33023 (grub_video_fbblit_replace_24bit_1bit): Likewise.
33024 (grub_video_fbblit_replace_16bit_1bit): Likewise.
33025 (grub_video_fbblit_replace_8bit_1bit): Likewise.
33026 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
33027 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
33028 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
33029 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
33030 when possible.
33031 * video/video.c (grub_video_get_blit_format): Return
33032 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
33033
a57da43f 330342009-08-28 Colin Watson <cjwatson@ubuntu.com>
33035
33036 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
33037 the first argument to grub_printf.
33038
4cbe67e5 330392009-08-28 Colin Watson <cjwatson@ubuntu.com>
330402009-08-28 Robert Millan <rmh.grub@aybabtu.com>
33041
33042 Add `getkeystatus' terminal method. Add a new `keystatus' command
33043 to query it.
33044
33045 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
33046 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
33047 modifier key bitmasks.
33048 (struct grub_term_input): Add `getkeystatus' member.
33049 (grub_getkeystatus): Add prototype.
33050 * kern/term.c (grub_getkeystatus): New function.
33051
33052 * include/grub/i386/pc/memory.h
33053 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
33054 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
33055 Data Area layout.
33056 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
33057 (grub_console_term_input): Set `getkeystatus' member.
33058 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
33059 constants.
33060 (grub_usb_keyboard_getreport): Likewise.
33061 (grub_usb_keyboard_checkkey): Likewise.
33062 (grub_usb_keyboard_getkeystatus): New function.
33063 (grub_usb_keyboard_term): Set `getkeystatus' member.
33064
33065 * commands/keystatus.c: New file.
33066 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
33067 (keystatus_mod_SOURCES): New variable.
33068 (keystatus_mod_CFLAGS): Likewise.
33069 (keystatus_mod_LDFLAGS): Likewise.
33070 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
33071 commands/keystatus.c.
33072 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33073 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33074 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33077 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 33078
6e2a9085 330792009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
33080
33081 Split befs.mod and afs.mod into *_be.mod and *.mod
33082
33083 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
33084 (grub_fstest_SOURCES): Likewise.
33085 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
33086 (afs_be_mod_SOURCES): New variable.
33087 (afs_be_mod_CFLAGS): Likewise.
33088 (afs_be_mod_LDFLAGS): Likewise.
33089 (befs_be_mod_SOURCES): Likewise.
33090 (befs_be_mod_CFLAGS): Likewise.
33091 (befs_be_mod_LDFLAGS): Likewise.
33092 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
33093 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33095 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33096 (grub_emu_SOURCES): Likewise.
33097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33099 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33100 * fs/afs_be.c: New file.
33101 * fs/befs_be.c: New file.
33102 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
33103 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
33104 (U16): Replaced with ...
33105 (grub_afs_to_cpu16): ...this. All users updated.
33106 (U32): Replaced with ...
33107 (grub_afs_to_cpu32): ...this. All users updated.
33108 (U64): Replaced with ...
33109 (grub_afs_to_cpu64): ...this. All users updated.
33110 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
33111 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 33112 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 33113 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
33114 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
33115 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
33116 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
33117 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
33118 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
33119 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
33120 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
33121
32a71655 331222009-08-26 Bean <bean123ch@gmail.com>
33123
33124 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
33125 64-bit number.
33126 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
33127 (grub_xfs_inode_block): Change return type to grub_uint64_t.
33128 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
33129
552bf6c5 331302009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33131
33132 NetBSD memory map support.
33133
33134 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
33135 (grub_netbsd_btinfo_mmap_header): New structure.
33136 (grub_netbsd_btinfo_mmap_entry): Likewise.
33137 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
33138
1ae2078c 331392009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33140
33141 Enable bsd.mod on coreboot.
33142
33143 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
33144 (bsd_mod_SOURCES): New variable.
33145 (bsd_mod_CFLAGS): Likewise.
33146 (bsd_mod_LDFLAGS): Likewise.
33147 (bsd_mod_ASFLAGS): Likewise.
33148 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
33149 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
33150
beefc598 331512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33152
33153 Cleanup NetBSD root support.
33154
33155 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
33156 grub_bsd_get_device.
33157 Fix typo.
33158
3b76e68b 331592009-08-25 Felix Zielcke <fzielcke@z-51.de>
33160
33161 * util/grub.d/00_header.in: Move check for the video backend of
33162 gfxterm from here ...
33163 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
33164 a suitable video backend.
33165
aea664ea 331662009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33167
33168 Fix breakage in grub-setup.
33169
33170 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
33171 "msdos_partition_map".
33172
ff747d50 331732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 Fix breakage in normal/auth.c.
33176
33177 * normal/auth.c (grub_iswordseparator): New function.
33178
e7e1f93f 331792009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
33180
33181 Authentication support.
33182
33183 * commands/password.c: New file.
33184 * conf/common.rmk (pkglib_MODULES): Add password.mod.
33185 (password_mod_SOURCES): New variable.
33186 (password_mod_CFLAGS): Likewise.
33187 (password_mod_LDFLAGS): Likewise.
33188 (normal_mod_SOURCES): Add normal/auth.c.
33189 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
33190 normal/auth.c.
33191 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33192 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33193 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33195 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33196 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33197 * include/grub/auth.h: New file.
33198 * include/grub/err.h (grub_err_t): New enum value
33199 GRUB_ERR_ACCESS_DENIED.
33200 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
33201 'users'.
33202 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
33203 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
33204 users updated.
33205 * normal/auth.c: New file.
33206 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
33207 (grub_cmdline_run): Don't allow to go to command line without
33208 authentication.
33209 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
33210 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
33211 menuentry without superuser rights.
33212 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
33213 user isn't a superuser.
33214
70f1161d 332152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33216
33217 Save space by inlining misc.c functions.
33218
33219 * kern/misc.c (grub_iswordseparator): Made static.
33220 * kern/misc.c (grub_strcat): Moved from here ...
33221 * include/grub/misc.h (grub_strcat): ... here. Inlined.
33222 * kern/misc.c (grub_strncat): Moved from here ...
33223 * include/grub/misc.h (grub_strncat): ... here. Inlined.
33224 * kern/misc.c (grub_strcasecmp): Moved from here ...
33225 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
33226 * kern/misc.c (grub_strncasecmp): Moved from here ...
33227 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
33228 * kern/misc.c (grub_isalpha): Moved from here ...
33229 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
33230 * kern/misc.c (grub_isdigit): Moved from here ...
33231 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
33232 * kern/misc.c (grub_isgraph): Moved from here ...
33233 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
33234 * kern/misc.c (grub_tolower): Moved from here ...
33235 * include/grub/misc.h (grub_tolower): ... here. Inlined.
33236
48e40bff 332372009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33238
33239 * script/sh/function.c (grub_script_function_find): Cut error message
33240 not to flood terminal.
33241 * script/sh/lexer.c (grub_script_yylex): Remove command line length
33242 limit.
33243 * script/sh/script.c (grub_script_arg_add): Duplicate string.
33244
c385bfc3 332452009-08-24 Colin Watson <cjwatson@ubuntu.com>
33246
33247 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
33248 `report' grub_uint8_t *.
33249 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
33250 Use a 50-millisecond timeout rather than just repeating
33251 grub_usb_keyboard_getreport 50 times.
33252 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
33253
2d21e3e8 332542009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33255
33256 Rename *_partition_map to part_*
33257
33258 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
33259 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
33260 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
33261 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
33262 All users updated.
33263 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
33264 All users updated.
33265 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
33266 * util/grub-probe.c (probe_partmap): Don't transform partition name
33267 to get module name.
33268
dd103c4e 332692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33270
33271 Fix OpenBSD and NetBSD support.
33272
33273 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
33274 memory address conflict.
33275 (OPENBSD_MMAP_ACPI): New definition.
33276 (OPENBSD_MMAP_NVS): Likewise.
33277 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
33278 and OPENBSD_MMAP_NVS.
33279 Add memory map terminator
33280 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 33281 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 33282
16c84d74 332832009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33284
33285 Let user specify NetBSD root device.
33286
33287 * loader/i386/bsd.c (netbsd_root): New variable.
33288 (netbsd_opts): New option 'root'.
33289 (NETBSD_ROOT_ARG): New macro.
33290 (grub_netbsd_boot): Use 'netbsd_root'.
33291 (grub_bsd_unload): Free 'netbsd_root'.
33292 (grub_cmd_netbsd): Fill 'netbsd_root'.
33293
adb29902 332942009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33295
33296 Support for 64-bit NetBSD.
33297
33298 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
33299 point when booting non-FreeBSD.
33300
f5ae9f74 333012009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33302
33303 Support --no-smp and --no-acpi for NetBSD.
33304
33305 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
33306 (NETBSD_AB_NOACPI): Likewise.
33307 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
33308 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
33309
de74f136 333102009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33311
33312 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
33313 errors.
33314 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
33315 errors. Call grub_error when needed.
33316
e9a925da 333172009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33318
33319 * commands/search.c (search_fs): Try searching without autoload first.
33320 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
33321 filesystem module explicitly for faster booting.
33322
5174302b 333232009-08-23 Colin Watson <cjwatson@ubuntu.com>
33324
33325 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
33326
c8c80635 333272009-08-23 Colin Watson <cjwatson@ubuntu.com>
33328
33329 * util/grub.d/30_os-prober.in: Disable os-prober if
33330 `GRUB_DISABLE_OS_PROBER' was set to true.
33331
71acf5e5 333322009-08-23 Robert Millan <rmh.grub@aybabtu.com>
33333
33334 * partmap/pc.c: Rename to ...
33335 * partmap/msdos.c: ... this. Update all users.
33336 (grub_pc_partition_map): Rename to ...
33337 (grub_msdos_partition_map): ... this. Update all users.
33338
33339 * parttool/pcpart.c: Rename to ...
33340 * parttool/msdospart.c: ... this. Update all users.
33341
33342 * include/grub/pc_partition.h: Rename to ...
33343 * include/grub/msdos_partition.h: ... this. Update all users.
33344 (grub_pc_partition_bsd_entry): Rename to ...
33345 (grub_msdos_partition_bsd_entry): ... this. Update all users.
33346 (grub_pc_partition_disk_label): Rename to ...
33347 (grub_msdos_partition_disk_label): ... this. Update all users.
33348 (grub_pc_partition_entry): Rename to ...
33349 (grub_msdos_partition_entry): ... this. Update all users.
33350 (grub_pc_partition_mbr): Rename to ...
33351 (grub_msdos_partition_mbr): ... this. Update all users.
33352 (grub_pc_partition): Rename to ...
33353 (grub_msdos_partition): ... this. Update all users.
33354 (grub_pc_partition_is_empty): Rename to ...
33355 (grub_msdos_partition_is_empty): ... this. Update all users.
33356 (grub_pc_partition_is_extended): Rename to ...
33357 (grub_msdos_partition_is_extended): ... this. Update all users.
33358 (grub_pc_partition_is_bsd): Rename to ...
33359 (grub_msdos_partition_is_bsd): ... this. Update all users.
33360
33361 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
33362 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
33363 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
33364 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
33365 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
33366 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
33367 (gpt_mod_LDFLAGS): Rename to ...
33368 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
33369 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
33370 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
33371 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
33372 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
33373 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
33374 (part_gpt_mod_LDFLAGS): ... this.
33375 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
33376 `pcpart.mod' to `msdospart.mod'.
33377 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
33378 to ...
33379 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
33380 (msdospart_mod_LDFLAGS): ... this.
33381
c11fded5 333822009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33383
33384 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
33385 (openbsd_opts): Likewise.
33386 (netbsd_opts): Likewise.
33387 (freebsd_flags): Added 0 terminator.
33388 (openbsd_flags): Likewise.
33389 (netbsd_flags): Likewise.
33390 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
33391 (grub_cmd_freebsd): Transformed into extended command.
33392 (grub_cmd_openbsd): Likewise.
33393 (grub_cmd_netbsd): Likewise.
33394 (cmd_freebsd): Changed type to grub_extcmd_t.
33395 (cmd_openbsd): Likewise.
33396 (cmd_netbsd): Likewise.
33397 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
33398 grub_cmd_openbsd as extended commands.
33399 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
33400 cmd_netbsd and cmd_openbsd
33401
11d1c769 334022009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
33403
33404 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
33405
7a9094e5 334062009-08-21 Pavel Roskin <proski@gnu.org>
33407
5496c37e 33408 * Makefile.in (install-local): When checking if a file is in the
33409 build directory, use "test -e" to detect symlinks.
33410
7a9094e5 33411 * Makefile.in (install-local): Remove all files in
33412 $(DESTDIR)$(pkglibdir) before installing new files there.
33413
e53cea11 334142009-08-18 Felix Zielcke <fzielcke@z-51.de>
33415
33416 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
33417 grub-mkelfimage.
33418
9aced544 334192009-08-18 Felix Zielcke <fzielcke@z-51.de>
33420
33421 * util/grub-mkconfig.in: Don't use gfxterm by default if not
33422 explicitly specified by the user.
33423
b7da6bab 334242009-08-18 Pavel Roskin <proski@gnu.org>
33425
33426 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
33427 grub_uint8_t pointer for data.
33428 * include/grub/fbutil.h (struct grub_video_fbblit_info):
33429 Likewise.
33430 * video/fb/fbutil.c: Remove unnecessary casts.
33431
19f1b335 334322009-08-17 Michal Suchanek <hramrach@centrum.cz>
33433
33434 VBE cleanup.
33435
33436 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
33437 (grub_vbe_set_video_mode): Save active mode info
33438 only after setting the mode.
33439 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
33440 second argument.
33441
2f467aa9 334422009-08-17 Michal Suchanek <hramrach@centrum.cz>
33443
33444 Rename variables for clarity.
33445
33446 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
33447 (active_vbe_mode_info): ... this. All users updated.
33448 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
33449 All users updated.
33450 (initial_mode): Rename to ...
33451 (initial_vbe_mode): ... this. All users updated.
33452 (mode_in_use): Rename to ..
33453 (vbe_mode_in_use): ... this. All users updated.
33454 (mode_list): Rename to ..
33455 (vbe_mode_list): ... this. All users updated.
33456 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
33457 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
33458 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
33459 'mode_list_size' to 'vbe_mode_list_size'.
33460 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
33461 'best_mode_info' to 'best_vbe_mode_info' and
33462 'best_mode' to 'best_vbe_mode'
33463
6025fcd7 334642009-08-17 Michal Suchanek <hramrach@centrum.cz>
33465
33466 Remove duplicate grub_video_fb_get_video_ptr.
33467
33468 * include/grub/fbutil.h (get_data_ptr): Rename to ...
33469 (grub_video_fb_get_video_ptr): ... this.
33470 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
33471 * video/fb/fbutil.c: Add comment about addressing.
33472 (get_data_ptr): Rename to ...
33473 (grub_video_fb_get_video_ptr): ... this. All users updated.
33474 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
33475
cc8c6faf 334762009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33477
33478 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
33479 grub_dprintf() that was just added.
33480
08aa61f0 334812009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33482
33483 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
33484 (DEFAULT_VIDEO_MODE): Remove macros.
33485 (grub_linux_boot): Remove assumption that Linux has FB support,
33486 and use "text" as default video mode.
33487
7cef4f75 334882009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
33489
33490 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
33491 grub_dprintf.
33492 * fs/fat.c (grub_fat_read_data): Likewise.
33493
e1f39873 334942009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33495
33496 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
33497 payload.
33498 (grub_module): Likewise.
33499
c166d79e 335002009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33501
33502 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
33503 mbi->cmdline but free playground.
33504
c60cee8e 335052009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33506
33507 Handle group offset on UFS1.
33508
33509 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
33510 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
33511
c0d8b5d4 335122009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33513
33514 Split ufs.mod into ufs1.mod and ufs2.mod.
33515
33516 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
33517 (grub_fstest_SOURCES): Likewise.
33518 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
33519 (ufs_mod_SOURCES): Remove.
33520 (ufs_mod_CFLAGS): Likewise.
33521 (ufs_mod_LDFLAGS): Likewise.
33522 (ufs1_mod_SOURCES): New variable.
33523 (ufs1_mod_CFLAGS): Likewise.
33524 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 33525 (ufs2_mod_SOURCES): New variable.
33526 (ufs2_mod_CFLAGS): Likewise.
33527 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 33528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
33529 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33530 Likewise.
33531 (grub_emu_SOURCES): Likewise.
33532 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33533 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33534 (grub_setup_SOURCES): Likewise.
33535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33536 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
33537 (grub_setup_SOURCES): Likewise.
33538 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33539 Likewise.
33540 * fs/ufs2.c: New file.
33541 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
33542
d3539132 335432009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33544
33545 Framebuffer split.
33546
33547 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
33548 subsystem at the end.
33549 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
33550 (video_fb_mod_SOURCES): New variable.
33551 (video_fb_mod_CFLAGS): Likewise.
33552 (video_fb_mod_LDFLAGS): Likewise.
33553 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
33554 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
33555 * video/i386/pc/vbeblit.c: Moved from here ...
33556 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
33557 * video/i386/pc/vbefill.c: Moved from here ...
33558 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
33559 * video/i386/pc/vbeutil.c: Moved from here ...
33560 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
33561 * include/grub/i386/pc/vbeblit.h: Moved from here ...
33562 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
33563 * include/grub/i386/pc/vbefill.h: Moved from here ...
33564 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
33565 * include/grub/i386/pc/vbeutil.h: Moved from here ...
33566 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
33567 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
33568 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
33569 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
33570 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
33571 (grub_video_adapter): Added 'get_info_and_fini'.
33572 (grub_video_get_info_and_fini): New prototype.
33573 (grub_video_set_mode): make modestring const char *.
33574 * loader/i386/linux.c (grub_linux_setup_video): Use
33575 grub_video_get_info_and_fini.
33576 (grub_linux_boot): Move modesetting just before booting.
33577 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
33578 grub_video_get_info_and_fini.
33579 * video/i386/pc/vbe.c: Moved framebuffer part ...
33580 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
33581 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
33582 grub_video_fbstd_colors and grub_video_fb_set_palette.
33583 (grub_video_vbe_init): Clear 'framebuffer' variable and use
33584 grub_video_fb_init.
33585 (grub_video_vbe_fini): Use grub_video_fb_fini.
33586 (grub_video_vbe_setup): Use framebuffer.render_target instead of
33587 render_target and use grub_video_fb_set_active_render_target and
33588 grub_video_fb_set_palette.
33589 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
33590 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
33591 (grub_video_vbe_adapter): Use framebuffer.
33592 * video/video.c (grub_video_get_info_and_fini): New function.
33593 (grub_video_set_mode): Make modestring const char *.
33594 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
33595 values are already initialised.
33596
d404ee56 335972009-08-14 Pavel Roskin <proski@gnu.org>
33598
33599 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
33600 ABS and APPLE_CC.
33601 * boot/i386/pc/diskboot.S: Likewise.
33602 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
33603 sectors allow compilation on MacOSX.
33604 * conf/i386-pc.rmk: Enable unconditional compilation of
33605 lnxboot.img.
33606
9a10df16 336072009-08-13 Colin Watson <cjwatson@ubuntu.com>
33608
33609 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
33610 * util/grub.d/00_header.in: Enter interruptible sleep if
33611 GRUB_HIDDEN_TIMEOUT is set.
33612
be3c9ca7 336132009-08-13 Yves Blusseau <blusseau@zetam.org>
33614
33615 * include/grub/symbol.h: Add the LOCAL macro.
33616 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
33617 starting with "L_".
33618
1f9e557e 336192009-08-13 Pavel Roskin <proski@gnu.org>
33620
9ca62843 33621 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
33622 any modern compilers we support.
33623
1f9e557e 33624 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
33625 Use local labels starting with "L_" so that Apple assembler
33626 knows they are local.
33627
81623db6 336282009-08-10 Robert Millan <rmh.grub@aybabtu.com>
33629
33630 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
33631 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
33632 (bsd_kernel_types): ... this enum.
33633
33634 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
33635 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
33636 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
33637
33638 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
33639 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
33640 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
33641 messages.
33642
f5d35e7a 336432009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33644
33645 * util/grub-dumpdevtree: Moved from here ...
33646 * util/i386/efi/grub-dumpdevtree: ... to here.
33647 (hexify): New function. Converts a string to its hex version.
33648 Generate hex versions of "efi" and "device-properties" by calling
33649 hexify() on the ASCII strings rather than by hardcoding numbers.
33650
d1e1d527 336512009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33652
33653 * fs/jfs.c: Update copyright year.
33654
1ebbe064 336552009-08-08 Felix Zielcke <fzielcke@z-51.de>
33656
33657 * util/grub.d/00_header.in: Fix a comment.
33658 * util/grub.d/10_linux.in: Likewise.
33659 * util/grub.d/10_windows.in: Likewise.
33660 * util/grub.d/10_hurd.in: Likewise.
33661
a78c8d24 336622009-08-08 Felix Zielcke <fzielcke@z-51.de>
33663
33664 * util/grub-mkconfig.in: Allow the user to specify the used font
33665 with GRUB_FONT.
33666
29a6b9e8 336672009-08-08 Pavel Roskin <proski@gnu.org>
33668
b5f16cc4 33669 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
33670 available, xfs.mod needs it now.
33671
2f5cb827 33672 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
33673 the "g" modifier in sed when the intention is to strip something
33674 once. This fixes comparison of kernels with multiple dashes.
33675
29a6b9e8 33676 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
33677 on it. Add missing space before closing bracket. Fix
33678 misleading formatting.
33679
892a3d98 336802009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33681
33682 * docs/grub.texi: Major overhaul. Remove all sections that are
33683 specific to GRUB Legacy, or mostly composed of Legacy-specific
33684 information.
33685
ed94253f 336862009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33687
33688 * docs/version.texi: New file. Provides version information for
33689 grub.texi.
33690
126d6628 336912009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33692
33693 * docs/grub.texi: Update CVS information to SVN.
33694 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
33695
998b5aa9 336962009-08-07 Felix Zielcke <fzielcke@z-51.de>
33697
33698 * util/grub-mkconfig.in: Remove a wrong `fi'.
33699
818e094a 337002009-08-07 Felix Zielcke <fzielcke@z-51.de>
33701
33702 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
33703 (grub_jfs_uuid): New function.
33704 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33705
b969c52f 337062009-08-07 Felix Zielcke <fzielcke@z-51.de>
33707
33708 * util/grub-mkconfig_lib.in (font_path): Move the functionality
33709 of it to ...
33710 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
33711 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
33712
7a4894cc 337132009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33714
33715 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
33716 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
33717 Update all users.
33718
33719 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
33720 not just "vmlinu[zx]".
33721 Moved from here ...
33722 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
33723 all users.
33724
33725 * util/grub.d/10_linux.in (find_latest): Moved from here ...
33726 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
33727 all users.
33728
4e2171f8 337292009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33730
33731 * util/grub.d/10_freebsd.in: Use an absolute device path for
33732 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
33733
6dcfcb32 337342009-08-06 Felix Zielcke <fzielcke@z-51.de>
33735
33736 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
33737 handling of multiple abstraction modules.
33738
f56a8756 337392009-08-04 Robert Millan <rmh.grub@aybabtu.com>
33740
33741 Fix a bug resulting in black screen when loading Linux using a
33742 packed video mode.
33743
33744 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
33745 function.
33746
33747 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
33748 (grub_vbe_bios_getset_dac_palette_width): New function.
33749 (grub_vbe_bios_get_dac_palette_width)
33750 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
33751 grub_vbe_bios_getset_dac_palette_width()).
33752
33753 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
33754 check for return status.
33755 (grub_vbe_get_video_mode_info): When getting information for a packed
33756 mode (<= 8 bpp), obtain DAC palette width using
33757 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
33758 {red,green,blue}_mark_size.
33759
222671b2 337602009-08-04 Felix Zielcke <fzielcke@z-51.de>
33761
ecb1a6d9 33762 * commands/search.c (options): Fix help output to match actual code.
222671b2 33763
f84114f5 337642009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33765
33766 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33767 of homegrown code.
33768
bd288a20 337692009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 33770
33771 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33772 on XFS or ReiserFS.
33773
8aab5e25 337742009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33775
33776 Support Apple partition map with sector size different from 512 bytes.
33777
33778 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33779 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33780 and 'apart.partmap_size'.
33781
6ad6258a 337822009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
337832009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33784
33785 Fix cpuid command.
33786
33787 * commands/i386/cpuid.c (options): New variable.
33788 (grub_cmd_cpuid): Return real error.
33789 (GRUB_MOD_INIT(cpuid)): Declare options.
33790
67459bc6 337912009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33792
33793 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33794 valid.
33795
fbc6ab54 337962009-07-31 Bean <bean123ch@gmail.com>
33797
33798 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33799 log2_inode.
33800 (grub_fshelp_node): Move inode field to the end.
33801 (grub_xfs_data): Remove inode field.
33802 (grub_xfs_inode_block): Calculate inode size using sblock.
33803 (grub_xfs_inode_offset): Likewise.
33804 (grub_xfs_read_inode): Calculate inode size using sblock.
33805 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33806 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33807 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33808 to match inode size.
33809 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33810 not accessible when data is null.
33811 (grub_xfs_open): Likewise.
33812
f45d6cfc 338132009-07-31 Bean <bean123ch@gmail.com>
33814
33815 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33816 Don't change pv->disk if it's already set.
33817
33818 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33819 (grub_raid_register): ... here.
33820 (grub_raid_rescan): Removed.
33821
33822 * include/grub/raid.h (grub_raid_rescan): Removed.
33823
33824 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33825 (fstest): Replace grub_raid_rescan with module fini function followed
33826 by init function.
33827
33828 * util/grub-probe.c: Add include file <grub/raid.h>.
33829 (probe_raid_level): New function.
33830 (probe): Detect abstraction by walking the disk device, support two
33831 level of abstraction (LVM on RAID) when detecting partition map.
33832
24443b5a 338332009-07-31 Pavel Roskin <proski@gnu.org>
33834
33835 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33836 to grub_zalloc(), it was erroneous.
33837 Reported by Bean <bean123ch@gmail.com>
33838
a275d9e7 338392009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33840
33841 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 33842 embedding zone, not only the first one.
a275d9e7 33843
56c5a47f 338442009-07-29 Joe Auricchio <jauricchio@gmail.com>
33845
33846 * term/gfxterm.c (clear_char): New function.
33847 (grub_virtual_screen_setup): Use clear_char.
33848 (scroll_up): Likewise.
33849 (grub_virtual_screen_cls): Likewise.
33850
67bb323a 338512009-07-29 Felix Zielcke <fzielcke@z-51.de>
33852
33853 * util/deviceiter.c (get_acceleraid_disk_name): New static
33854 function.
33855 (grub_util_iterate_devices): Handle Accelraid devices.
33856 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33857
388a7c75 338582009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33859
33860 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33861 separator for the suggested gfxpayload string (';' collides with the
33862 parser and needs escaping).
33863
3bb7abcf 338642009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33865
33866 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33867 Clear direction flag before jumping to OS.
33868 (grub_multiboot2_real_boot): Likewise.
33869
2ddd36d7 338702009-07-28 Felix Zielcke <fzielcke@z-51.de>
33871
33872 * util/i386/pc/grub-install: Fix parsing of --disk-module
33873 option.
33874
c521b62b 338752009-07-28 Felix Zielcke <fzielcke@z-51.de>
33876
33877 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33878 when embedding.
33879
880e0a0c 338802009-07-26 Felix Zielcke <fzielcke@z-51.de>
33881
33882 * util/grub-mkconfig.in (package_version): New variable.
33883 Use it do display the version.
33884
2366e356 338852009-07-25 Felix Zielcke <fzielcke@z-51.de>
33886
33887 * kern/file.c (grub_file_open): Revert to previous check with
33888 grub_errno.
33889
7ad8c80e 338902009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33891
33892 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33893 from help line. It's out of sync with code.
33894
72b9658b 338952009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33896
33897 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33898 entries on failed boot.
33899
77435277 339002009-07-25 Felix Zielcke <fzielcke@z-51.de>
33901
33902 * kern/file.c (grub_file_open): Fix an error check.
33903
fcaa8b21 339042009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33905
35d16c74 33906 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33907 partition map couldn't be identified.
fcaa8b21 33908
48904cd1 339092009-07-23 Pavel Roskin <proski@gnu.org>
33910
ef3c317f 33911 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33912 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33913 case of little endian words becomes just an optimization.
33914 Respect const modifier.
ad8ea1f4 33915 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 33916
48904cd1 33917 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33918 to avoid loss of upper bits if align is unsigned and shorter
33919 than addr.
33920
260c9a89 339212009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33922
33923 UUID support for UFS
33924
33925 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33926 (grub_ufs_uuid): New function.
33927 (grub_ufs_fs): add .uuid
33928
f76ce889 339292009-07-21 Pavel Roskin <proski@gnu.org>
33930
33931 * kern/dl.c (grub_dl_check_header): Make static.
33932
6a6cbcaf 339332009-07-21 Felix Zielcke <fzielcke@z-51.de>
33934
33935 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33936 add drivemap for Vista. It breaks Windows 7.
33937
cffcddb2 339382009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33939
33940 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33941 128 bytes
33942
1ef44b80 339432009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33944
33945 Add BFS support
33946
33947 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33948 (grub_fstest_SOURCES): Likewise.
33949 (pkglib_MODULES): Add befs.mod.
33950 (befs_mod_SOURCES): New variable.
33951 (befs_mod_CFLAGS): Likewise.
33952 (befs_mod_LDFLAGS): Likewise.
33953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33954 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33955 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33956 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33957 (grub_setup_SOURCES): Likewise.
33958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33959 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33960 (grub_setup_SOURCES): Likewise.
33961 * fs/befs.c: New file.
33962 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33963 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33964 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33965 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33966 (B_KEY_INDEX_ALIGN): New declaration.
33967 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33968 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33969 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33970 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33971 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33972 (grub_afs_mount) [MODE_BFS]: Likewise.
33973 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33974 (grub_afs_fs): Use GRUB_AFS_FSNAME
33975 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33976 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33977 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33978 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33979
4f253044 339802009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33981
33982 * util/getroot.c (find_root_device): Add support for MacOSX.
33983 * util/hostdisk.c: Likewise.
33984
57a55913 339852009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33986
33987 * font/font.c (find_glyph): Check whether a font is present to avoid
33988 segmentation fault.
75421ca9 33989
339902009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 33991
33992 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33993
e98cd0c2 339942009-07-20 Pavel Roskin <proski@gnu.org>
33995
33996 * configure.ac: Trim excessively wordy excuses.
33997
1d2d169a 339982009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33999
34000 Add symlink, mtime and label support to AtheFS.
34001
34002 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
34003 (grub_afs_iterate_dir): Handle symlinks.
34004 (grub_afs_open): Use grub_afs_read_symlink.
34005 (grub_afs_dir): Likewise.
34006 Pass mtime.
34007 (grub_afs_label): New function.
34008 (grub_afs_fs): Add grub_afs_label.
34009 (grub_afs_read_symlink): New function.
34010
186f3189 340112009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
34012
34013 Fix AtheFS support.
34014
34015 * fs/afs.c: Fix comments style.
34016 (grub_afs_blockrun): Declare as packed.
34017 (grub_afs_datastream): Likewise.
34018 (grub_afs_bnode): Likewise.
34019 (grub_afs_btree): Likewise.
34020 (grub_afs_sblock): Likewise.
34021 Declare `name' as char.
34022 (grub_afs_inode): Declare as packed.
34023 Change void *vnode to grub_uint32_t unused.
34024 (grub_afs_iterate_dir): Check that key_size is positive.
34025 (grub_afs_mount): Don't read superblock twice.
75421ca9 34026 (grub_afs_dir): Don't free node in case of error,
186f3189 34027 grub_fshelp_find_file already handles this.
34028 (grub_afs_open): Likewise.
34029
5680109e 340302009-07-19 Pavel Roskin <proski@gnu.org>
34031
34032 * Makefile.in: Remove LIBLZO and enable_lzo.
34033 * conf/i386-pc.rmk: Remove lzo support.
34034 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
34035 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
34036 support.
34037 * kern/i386/pc/lzo1x.S: Remove.
34038 * kern/i386/pc/startup.S: Remove lzo support.
34039 * util/i386/pc/grub-mkimage.c: Likewise.
34040
ac70fa32 340412009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
34042
34043 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
34044 * fs/xfs.c (grub_xfs_dir): Likewise.
34045 * fs/afs.c (grub_afs_dir): Likewise.
34046 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
34047 (grub_iso9660_open): Likewise.
34048 * fs/jfs.c (grub_jfs_open): Likewise.
34049 * fs/ext2.c (grub_ext2_dir): Likewise.
34050 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
34051 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 34052
eab58da2 340532009-07-16 Pavel Roskin <proski@gnu.org>
34054
d2838156 34055 * configure.ac: Never add "-c" to CFLAGS.
34056
55c70904 34057 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
34058
43e6200c 34059 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
34060 grub_cv_cc_efiemu should be used.
34061
ce7a733d 34062 * configure.ac: Typo fixes.
34063
eab58da2 34064 * kern/mm.c (grub_zalloc): New function.
34065 (grub_debug_zalloc): Likewise.
34066 * include/grub/mm.h: Declare grub_zalloc() and
34067 grub_debug_zalloc().
34068 * util/misc.c (grub_zalloc): New function.
34069 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
34070 instead of grub_malloc(), remove unneeded initializations.
34071 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
34072 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
34073 * commands/parttool.c (grub_cmd_parttool): Likewise.
34074 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
34075 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
34076 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
34077 * disk/usbms.c (grub_usbms_finddevs): Likewise.
34078 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
34079 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
34080 (grub_cmd_efiemu_pnvram): Likewise.
34081 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
34082 * fs/iso9660.c (grub_iso9660_mount): Likewise.
34083 (grub_iso9660_iterate_dir): Likewise.
34084 * fs/jfs.c (grub_jfs_opendir): Likewise.
34085 * fs/ntfs.c (list_file): Likewise.
34086 (grub_ntfs_mount): Likewise.
34087 * kern/disk.c (grub_disk_open): Likewise.
34088 * kern/dl.c (grub_dl_load_core): Likewise.
34089 * kern/elf.c (grub_elf_file): Likewise.
34090 * kern/env.c (grub_env_context_open): Likewise.
34091 (grub_env_set): Likewise.
34092 (grub_env_set_data_slot): Likewise.
34093 * kern/file.c (grub_file_open): Likewise.
34094 * kern/fs.c (grub_fs_blocklist_open): Likewise.
34095 * loader/i386/multiboot.c (grub_module): Likewise.
34096 * loader/xnu.c (grub_xnu_create_key): Likewise.
34097 (grub_xnu_create_value): Likewise.
34098 * normal/main.c (grub_normal_add_menu_entry): Likewise.
34099 (read_config_file): Likewise.
34100 * normal/menu_entry.c (make_screen): Likewise.
34101 * partmap/sun.c (sun_partition_map_iterate): Likewise.
34102 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
34103 * script/sh/script.c (grub_script_parse): Likewise.
34104 * video/bitmap.c (grub_video_bitmap_create): Likewise.
34105 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
34106 * video/readers/png.c (grub_png_output_byte): Likewise.
34107 (grub_video_reader_png): Likewise.
34108
830afef7 341092009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 34110
34111 Enable all targets that can be built by default
34112
830afef7 34113 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 34114 grub-mkfont and grub-fstest if they can be built
34115
ee293aee 341162009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
34117
34118 Fix hang and segmentation fault in grub-emu-usb
34119
34120 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
34121 * util/usb.c (grub_libusb_devices): likewise
34122 (grub_libusb_init): rename to ...
34123 (GRUB_MOD_INIT (libusb)):...this
34124 (grub_libusb_fini): rename to ..
34125 (GRUB_MOD_FINI (libusb)):...this
34126 * disk/usbms.c (grub_usbms_transfer): fix retry logic
34127 * include/grub/disk.h (grub_raid_init): removed, it's useless
34128 (grub_raid_fini): likewise
34129 (grub_lvm_init): likewise
34130 (grub_lvm_fini): likewise
34131 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
34132 by grub_init_all
34133
94414221 341342009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
34135
34136 Fix libusb
34137
34138 * Makefile.in (LIBUSB): new macro
34139 * genmk.rb (Utility/print_tail): new method
34140 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
34141 (top level): call util.print_tail at the end.
34142
59ade63d 341432009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
34144
34145 Make FreeBSD accept zpool.cache
34146
34147 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
34148 type is /boot/zfs/zpool.cache
34149
a58da8c7 341502009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
34151
34152 Fix 64-bit efiemu
34153
34154 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
34155 correct wrong typedef
34156 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
34157
20591577 341582009-07-15 Pavel Roskin <proski@gnu.org>
34159
560ca572 34160 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
34161 * kern/disk.c (struct grub_disk_cache): Likewise.
34162
e8e8e4fd 34163 * commands/probe.c (options): Typo fix.
34164
fde24e10 34165 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
34166 Increase to 0x5a to accommodate FAT32. Adjust other offsets
34167 accordingly.
34168 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
34169
379c54c1 34170 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
34171 the end of "Error" to make the message more readable.
34172
7bd8f5bf 34173 * boot/i386/pc/boot.S (kernel_segment): Remove.
34174 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
34175 for destination.
34176
40b132c5 34177 * boot/i386/pc/boot.S (boot_version): Remove.
34178 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
34179 Remove.
34180
20591577 34181 * include/grub/i386/pc/boot.h: Sort all offsets.
34182 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
34183 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
34184 * boot/i386/pc/boot.S: Assert location of every offset listed in
34185 include/grub/i386/pc/boot.h.
34186
2df32b2c 341872009-07-13 Pavel Roskin <proski@gnu.org>
34188
44b5d879 34189 * include/grub/i386/coreboot/machine.h: Rename
34190 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
34191 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
34192 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
34193
17dc3751 34194 * kern/dl.c: Force native word size to suppress warnings when
34195 compiling grub-emu.
34196
2df32b2c 34197 * kern/device.c (grub_device_iterate): Change struct part_ent to
34198 hold the name, not a pointer to it. Use one grub_malloc() per
34199 partition, not two. Free partition_name if grub_malloc() fails.
34200 Set ents to NULL only before grub_partition_iterate() is called.
34201
75c59f59 342022009-07-11 Bean <bean123ch@gmail.com>
34203
34204 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
34205 childname.
34206
0ae1bf88 342072009-07-10 Bean <bean123ch@gmail.com>
342082009-07-10 Robert Millan <rmh.grub@aybabtu.com>
34209
34210 * kern/ieee1275/openfw.c (grub_children_iterate)
34211 (grub_devalias_iterate): Fix size evaluation for property or path
34212 strings, which was broken since r2132.
34213
8279cade 342142009-07-07 Pavel Roskin <proski@gnu.org>
34215
7d8a52d3 34216 * commands/search.c (search_file): Merge into ...
34217 (search_fs): ... this. Accept search type as argument.
34218 (grub_cmd_search): Pass search type to search_fs().
34219
25f9a05a 34220 * include/grub/util/console.h: New file.
34221 * util/console.c: Use it instead of grub/machine/console.h.
34222 * util/grub-emu.c: Likewise.
34223
8279cade 34224 * lib/arg.c (find_long_option): Remove.
34225 (find_long): Add `len' argument, make `s' const char *.
34226 (grub_arg_parse): Parse long options in place, not in a
34227 temporary buffer.
34228
4a11b60f 342292009-07-06 Pavel Roskin <proski@gnu.org>
34230
99f68041 34231 * commands/search.c (search_fs): Fix potential NULL pointer
34232 dereference.
34233
4a11b60f 34234 * commands/search.c (search_fs): Replace QUID macro with quid_fn
34235 function pointer.
34236
e110f4de 342372009-07-06 Daniel Mierswa <impulze@impulze.org>
34238
34239 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
34240 comparison.
34241
46eeb6a2 342422009-07-05 Pavel Roskin <proski@gnu.org>
34243
bab74958 34244 * include/grub/i386/linux.h (struct linux_kernel_params):
34245 Restore padding3, it's still needed.
34246
46eeb6a2 34247 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
34248 FreeBSD.
34249 * util/osdetect.lua: Likewise.
34250
b4a1dc79 342512009-07-05 Bean <bean123ch@gmail.com>
34252
34253 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
34254
34255 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
34256 (grub_lua_getenv): Likewise.
34257 (grub_lua_setenv): Likewise.
34258 (save_errno): New function.
34259 (push_result): Likewise.
34260 (grub_lua_enum_device): Likewise.
34261 (grub_lua_enum_file): Likewise.
34262 (grub_lua_file_open): Likewise.
34263 (grub_lua_file_close): Likewise.
34264 (grub_lua_file_seek): Likewise.
34265 (grub_lua_file_read): Likewise.
34266 (grub_lua_file_getline): Likewise.
34267 (grub_lua_file_getsize): Likewise.
34268 (grub_lua_file_getpos): Likewise.
34269 (grub_lua_file_eof): Likewise.
34270 (grub_lua_file_exist): Likewise.
34271 (grub_lua_add_menu): Likewise.
34272
34273 * script/lua/grub_lua.h (isupper): New inline function.
34274 (islower): Likewise.
34275 (ispunct): Likewise.
34276 (isxdigit): Likewise.
34277 (strcspn): Change to normal function.
34278 (strpbkr): New function declaration.
34279 (memchr): Likewise.
34280
34281 * script/lua/grub_main.c (scan_str): New function.
34282 (strcspn): Likewise.
34283 (strpbrk): Likewise.
34284 (memchr): Likewise.
34285
34286 * script/lua/linit.c (lualibs): Enable the string library.
34287
34288 * util/osdetect.lua: New file.
34289
2da92295 342902009-07-04 Robert Millan <rmh.grub@aybabtu.com>
34291
34292 * include/grub/i386/linux.h (struct linux_kernel_params): Add
34293 `capabilities' member.
34294
b2582ec9 342952009-07-02 Pavel Roskin <proski@gnu.org>
34296
34297 * genparttoollist.sh: Add missing newline at the end.
34298
32622956 342992009-07-01 Pavel Roskin <proski@gnu.org>
34300
87a7339e 34301 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
34302
d23af54e 34303 * util/hostdisk.c (open_device): Remove `const' from
34304 `sysctl_size', as sysctlbyname() can change it (in this case it
34305 doesn't actually happen).
34306
c94b18a9 34307 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
34308 using signed long int constants.
34309
c6cd3ef0 34310 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
34311 constant to avoid a warning on FreeBSD.
34312
0df63420 34313 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
34314 where it's needed.
34315
999577f1 34316 * Makefile.in: Install include/grub/machine symlink.
34317
6f41557f 34318 * Makefile.in: When installing symlinks, use "cp -fR", which
34319 works on FreeBSD and MacOSX.
34320 From Yves Blusseau <cl7m42e02@sneakemail.com>
34321
c8d22988 34322 * kern/dl.c (grub_dl_resolve_symbol): Make static.
34323 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
34324
1b96e952 34325 * util/misc.c: Move grub_reboot() and grub_halt() ...
34326 * util/grub-emu.c: ... here. Make main_env static.
34327 * include/grub/util/misc.h: Remove main_env.
34328
2ef0084d 34329 * kern/mm.c: Use correct format to print size_t.
34330
32622956 34331 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
34332 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
34333 * kern/powerpc/dl.c: Likewise.
34334 * kern/sparc64/dl.c: Likewise.
34335 * kern/x86_64/dl.c: Likewise.
34336
3f7f0cd0 343372009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34338
34339 Fix grub-emu build on sparc64-ieee1275.
34340
75421ca9 34341 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 34342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
34343
211d06b5 343442009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34345
34346 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
34347 (grub_reboot, grub_halt): New functions.
34348
34349 * util/i386/pc/misc.c: Delete. Update all users.
34350 * util/sparc64/ieee1275/misc.c: Likewise.
34351 * util/powerpc/ieee1275/misc.c: Likewise.
34352
aaf53e3c 343532009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34354
34355 * conf/i386.rmk (setjmp_mod_SOURCES)
34356 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
34357 * conf/common.rmk (setjmp_mod_SOURCES)
34358 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
34359 to use $(target_cpu).
34360 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
34361 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
34362 * conf/powerpc-ieee1275.rmk: Likewise.
34363 * conf/sparc64-ieee1275.rmk: Likewise.
34364
34365 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
34366 $(target_cpu) for kern/$(target_cpu)/dl.c.
34367 * conf/i386-efi.rmk: Likewise.
34368 * conf/i386-ieee1275.rmk: Likewise.
34369 * conf/x86_64-efi.rmk: Likewise.
34370 * conf/i386-coreboot.rmk: Likewise.
34371 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
34372 $(target_cpu) for kern/$(target_cpu)/dl.c and for
34373 kern/$(target_cpu)/cache.S.
34374 * conf/sparc64-ieee1275.rmk: Likewise.
34375
a337130b 343762009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34377
34378 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
34379 type to `grub_uint8_t', and adjust `padding9' accordingly.
34380
c6fe4d53 343812009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34382
b09db61d 34383 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
34384
c6fe4d53 34385 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
34386 assembly in final jump, using register constraints.
34387
b09db61d 34388 (grub_linux_boot): For text mode, initialize `have_vga' using
34389 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
34390
34391 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
34392 right before the final jump.
34393
34394 Set `video_mode' to 0x3.
34395
34396 Document initialization of `video_page', `video_mode' and
34397 `video_ega_bx'.
34398
28333ad0 343992009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34400
34401 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
34402 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 34403 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 34404
02164e1b 344052009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34406
34407 Fix build on Debian / sparc.
34408
34409 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
34410
18b6c557 344112009-06-28 Pavel Roskin <proski@gnu.org>
34412
85f2aab6 34413 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
34414 fix a warning.
34415
18b6c557 34416 * util/grub.d/10_linux.in: Match SUSE style initrd names.
34417
ad760f81 344182009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34419
34420 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
34421 `err'.
34422
87a4623b 344232009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34424
34425 Revert r2338.
34426
34427 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
34428 file can't be opened. grub_file_open() is already supposed to set
75421ca9 34429 grub_errno / grub_errmsg appropriately.
87a4623b 34430 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34431
8231fb77 344322009-06-27 Pavel Roskin <proski@gnu.org>
344332009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34434
34435 * include/grub/dl.h: Include grub/elf.h.
34436 (struct grub_dl): Add symtab field.
34437 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
34438 GRUB_MODULES_MACHINE_READONLY.
34439 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
34440 of the header for read-only modules.
34441 (grub_dl_unload): Free mod->symtab for read-only modules.
34442 * kern/i386/dl.c: Use mod->symtab.
34443 * kern/powerpc/dl.c: Likewise.
34444 * kern/sparc64/dl.c: Likewise.
34445 * kern/x86_64/dl.c: Likewise.
34446
34447 * conf/i386-qemu.rmk: New file.
34448 * kern/i386/qemu/startup.S: Likewise.
34449 * kern/i386/qemu/mmap.c: Likewise.
34450 * boot/i386/qemu/boot.S: Likewise.
34451 * include/grub/i386/qemu/time.h: Likewise.
34452 * include/grub/i386/qemu/serial.h: Likewise.
34453 * include/grub/i386/qemu/kernel.h: Likewise.
34454 * include/grub/i386/qemu/console.h: Likewise.
34455 * include/grub/i386/qemu/boot.h: Likewise.
34456 * include/grub/i386/qemu/init.h: Likewise.
34457 * include/grub/i386/qemu/machine.h: Likewise.
34458 * include/grub/i386/qemu/loader.h: Likewise.
34459 * include/grub/i386/qemu/memory.h: Likewise.
34460
34461 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
34462 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
34463 [qemu] (pkglib_IMAGES): Add `boot.img'.
34464 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
34465 [qemu] (boot_img_FORMAT): New variables.
34466 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
34467 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
34468 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
34469 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
34470 [qemu] (kernel_img_FORMAT): New variables.
34471
34472 * configure.ac: Recognise `i386-qemu'.
34473
34474 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
34475 (for no compression).
34476 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
34477 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
34478 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
34479 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
34480 ifdefs).
34481
97fe384e 344822009-06-27 Pavel Roskin <proski@gnu.org>
34483
34484 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
34485 read.
34486 * efiemu/prepare32.c: Likewise.
34487 * efiemu/prepare64.c: Likewise.
34488
c402ab17 344892009-06-26 Pavel Roskin <proski@gnu.org>
34490
34491 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
34492 * include/grub/elf.h: Define symbols without "32" or "64" based
34493 on GRUB_TARGET_WORDSIZE.
34494 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
34495 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
34496 ELF definitions.
34497 * efiemu/loadcore64.c: Likewise.
34498 * loader/i386/bsd32.c: Likewise.
34499 * loader/i386/bsd64.c: Likewise.
34500 * kern/dl.c: Remove own ELF definitions.
34501 * util/i386/efi/grub-mkimage.c: Likewise.
34502
9bbdfd4d 345032009-06-23 Robert Millan <rmh.grub@aybabtu.com>
34504
34505 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
34506 segment 0x0 unconditionally, because the reference generated by
34507 GAS is an absolute address.
34508
a42ce6e9 345092009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34510
34511 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
34512 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
34513
c952cf92 345142009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34515
34516 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
34517 indexes. Check for -f explicitly.
cc3752ad 34518 (search_file): Improve error message.
34519 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 34520
132a0a59 345212009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34522
34523 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
34524 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
34525
387a140c 345262009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34527
34528 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
34529 * conf/i386-ieee1275.rmk: Likewise.
34530 * conf/i386-coreboot.rmk: Likewise.
34531
34532 * kern/i386/pc/startup.S (grub_stop): Remove function.
34533 * kern/i386/ieee1275/startup.S: Likewise.
34534 * kern/i386/coreboot/startup.S: Likewise.
34535 * kern/i386/misc.S (grub_stop): New function.
34536
41da9665 345372009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34538
34539 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
34540 * kern/i386/realmode.S (real_to_prot): ... to here.
34541
bf337234 345422009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34543
34544 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
34545 with `kernel.img'.
34546 (kernel_elf_SOURCES): Rename to ...
34547 (kernel_img_SOURCES): ... this.
34548 (kernel_elf_HEADERS): Rename to ...
34549 (kernel_img_HEADERS): ... this. Update all users.
34550 (kernel_elf_ASFLAGS): Rename to ...
34551 (kernel_img_ASFLAGS): ... this.
34552 (kernel_elf_CFLAGS): Rename to ...
34553 (kernel_img_CFLAGS): ... this.
34554 (kernel_elf_LDFLAGS): Rename to ...
34555 (kernel_img_LDFLAGS): ... this.
34556 * conf/i386-coreboot.rmk: Likewise.
34557 * conf/powerpc-ieee1275.rmk: Likewise.
34558
34559 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
34560 with "kernel.img".
34561
f52196ff 345622009-06-21 Pavel Roskin <proski@gnu.org>
34563
c3cee413 34564 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
34565 to match nested functions.
34566 * loader/sparc64/ieee1275/linux.c: Likewise.
34567
f52196ff 34568 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
34569
58750afc 345702009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34571
34572 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
34573 all i386 platforms.
34574
15355c7d 345752009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34576
34577 Fix asm file handling on ELF, and remove workarounds.
34578
34579 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 34580 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 34581 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
34582 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
34583
3f3ec72b 345842009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
34585
34586 Load BSD ELF modules
34587
34588 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
34589 and loader/i386/bsd64.c
34590 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
34591 (FREEBSD_MODTYPE_ELF_MODULE): New definition
34592 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
34593 (grub_freebsd_load_elfmodule32): New declaration
34594 (grub_freebsd_load_elfmoduleobj64): Likewise
34595 (grub_freebsd_load_elf_meta32): Likewise
34596 (grub_freebsd_load_elf_meta64): Likewise
34597 (grub_freebsd_add_meta): Likewise
34598 (grub_freebsd_add_meta_module): Likewise
34599 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
34600 (grub_freebsd_add_meta_module): Likewise and move module-specific
34601 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
34602 (grub_cmd_freebsd): Add elf-kernel specific parts
34603 based on grub_freebsd_add_meta_module
34604 (grub_cmd_freebsd_module): Add type parsing moved from
34605 grub_freebsd_add_meta_module
34606 (grub_cmd_freebsd_module_elf): New function
34607 (cmd_freebsd_module_elf): New variable
34608 (GRUB_MOD_INIT): Register freebsd_module_elf
34609 * loader/i386/bsd32.c: New file
34610 * loader/i386/bsd64.c: Likewise
34611 * loader/i386/bsdXX.c: Likewise
34612 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
34613 (grub_elf64_load): Likewise
34614 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
34615 All users updated
34616 (grub_elf64_load_hook_t): Likewise
34617
0db15301 346182009-06-21 Colin Watson <cjwatson@ubuntu.com>
34619
34620 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
34621 variable.
34622 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
34623 don't write a menu entry for recovery mode.
34624
546796c1 346252009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34626
34627 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
34628 after it's no longer needed.
34629
cd7310d5 346302009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34631
34632 * include/grub/i386/loader.h (grub_linux_prot_size)
34633 (grub_linux_tmp_addr, grub_linux_real_addr)
34634 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
34635 GRUB_MACHINE_PCBIOS.
34636 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
34637 common grub_util_info() call to ...
34638 (generate_image): ... here.
34639 Fix use of uninitialized memory, comparison of signed with
34640 unsigned integers and memory leak.
34641 Remove bogus module address message.
34642
ab32d3b5 346432009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
34644
34645 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
34646 grub_raid_register
34647 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
34648
024ef597 346492009-06-19 Pavel Roskin <proski@gnu.org>
34650
34651 * configure.ac: Remove stray AC_MSG_CHECKING.
34652
3ac72b51 346532009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
34654
34655 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 34656
e14cd814 346572009-06-18 Pavel Roskin <proski@gnu.org>
34658
34659 * conf/common.rmk: Add fs_file.mod.
34660 * disk/fs_file.c: New file.
34661 * include/grub/disk.h (enum grub_disk_dev_id): Add
34662 GRUB_DISK_DEVICE_FILE_ID.
34663
26586d98 346642009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34665
34666 Fix build with Apple's toolchain. Part 2
34667
34668 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
34669 a fake start
34670
26de2bcd 346712009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34672
34673 Fix build with Apple's toolchain. Part 1
34674
34675 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
34676 for long calls
34677 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 34678 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 34679 Apple's toolchain
34680
09b3490b 346812009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34682
34683 Fix warnings
34684
34685 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
34686 (decomp_block): initialize ch
34687 use grub_memcpy instead of memcpy
34688
c22a006a 346892009-06-17 Pavel Roskin <proski@gnu.org>
34690
d3638678 34691 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
34692 version, use declarations needed to use vga_text as the startup
34693 console.
34694
c22a006a 34695 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
34696 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
34697 the kernel.
34698 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
34699 and grub_at_keyboard_fini(), it's done on module load and
34700 unload.
34701
05b129e0 347022009-06-17 Felix Zielcke <fzielcke@z-51.de>
34703
34704 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
34705 file can't be found.
34706 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34707
cf24ed9e 347082009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34709
34710 Fix newline handling
34711
34712 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 34713 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 34714 (grub_script_yylex): don't segfault on unterminated script
34715 newline terminates command and variable
34716
74aa8e4b 347172009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34718
34719 avoid double grub_adjust_range call. Bug reported by David Simner
34720
34721 * kern/disk.c (grub_disk_write): change to raw disk access before
34722 calling disk_read
34723
1bd265f3 347242009-06-17 Colin Watson <cjwatson@ubuntu.com>
34725
34726 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
34727 spaces, for the benefit of help2man.
34728 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34729
a2d08c06 347302009-06-16 Pavel Roskin <proski@gnu.org>
34731
34732 * kern/i386/halt.c: Include grub/machine/init.h.
34733 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
34734
b97bcb19 347352009-06-16 Felix Zielcke <fzielcke@z-51.de>
34736
34737 * util/grub.d/30_os-prober.in: Use ${root} in the generated
34738 drivemap menuentry.
34739
0644f96c 347402009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
34741
34742 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
34743 `echo' command.
34744
3ef17a2e 347452009-06-16 Pavel Roskin <proski@gnu.org>
34746
34747 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
34748 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
34749 save %dx, we only need %dl and we never change it.
34750 * boot/i386/pc/cdboot.S: Don't set the root drive.
34751 * boot/i386/pc/pxeboot.S: Likewise.
34752 * include/grub/i386/pc/boot.h: Remove
34753 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
34754 GRUB_BOOT_MACHINE_DRIVE_CHECK.
34755 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
34756 * kern/i386/pc/init.c (make_install_device): Remove references
34757 to grub_root_drive.
34758 * kern/i386/pc/startup.S: Likewise.
34759 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
34760
693fe637 347612009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34762
34763 xnu_uuid command
34764
34765 * commands/xnu_uuid.c: new file
34766 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34767 (xnu_uuid_mod_SOURCES): new variable
34768 (xnu_uuid_mod_CFLAGS): likewise
34769 (xnu_uuid_mod_LDFLAGS): likewise
34770 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34771 * conf/i386-ieee1275.rmk: likewise
34772 * conf/i386-pc.rmk: likewise
34773 * conf/powerpc-ieee1275.rmk: likewise
34774 * conf/sparc64-ieee1275.rmk: likewise
34775 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34776
c9da87d0 347772009-06-16 Pavel Roskin <proski@gnu.org>
34778
34779 * configure.ac: Avoid '==' in test command, it's not portable.
34780
9c6f4596 347812009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34782
34783 Probe command
34784
34785 * commands/probe.c: new file
34786 * conf/common.rmk (pkglib_MODULES): add probe.mod
34787 (probe_mod_SOURCES): new variable
34788 (probe_mod_CFLAGS): likewise
34789 (probe_mod_LDFLAGS): likewise
34790 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34791 * conf/i386-ieee1275.rmk: likewise
34792 * conf/i386-pc.rmk: likewise
34793 * conf/powerpc-ieee1275.rmk: likewise
34794 * conf/sparc64-ieee1275.rmk: likewise
34795
70b7f9fd 347962009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34797
34798 Fix handling of string like \"hello\" and "a
34799 b"
34800
34801 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34802 (grub_script_yylex): fix parsing of quoting, escaping and newline
34803
71c79a6b 348042009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34805
dd74360c 34806 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 34807 handling
dd74360c 34808
0644f96c 348092009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 34810
34811 * util/grub-mkconfig.in: Fix parsing of --output option.
34812
e40893c3 348132009-06-12 Pavel Roskin <proski@gnu.org>
34814
34815 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34816 genmk.rb don't need to be generated or installed.
34817
3a1acfe2 348182009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34819
34820 * commands/i386/pc/drivemap_int13h.S: add more comments
34821
3a4575d4 348222009-06-11 Pavel Roskin <proski@gnu.org>
34823
0658e928 34824 * Makefile.in (uninstall): Uninstall manuals.
34825
ca0388f0 34826 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34827 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34828 and update-grub_lib in two places.
34829 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34830
e3b27c39 34831 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34832 a compiler warning.
34833
3a4575d4 34834 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34835 `entry_lo' to fix variable shadowing.
34836
af1f4f55 348372009-06-11 Christian Franke <franke@computer.org>
34838
34839 * kern/misc.c (__enable_execute_stack): Add missing return type
34840 to prevent gcc warning.
34841
5225e649 348422009-06-11 Felix Zielcke <fzielcke@z-51.de>
34843
34844 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34845
7d83bd47 348462009-06-11 Pavel Roskin <proski@gnu.org>
34847
c1cb63ba 34848 * Makefile.in: Don't rely on any scripts being executable.
34849 Always use $(SHELL) to run shell scripts.
34850
7d83bd47 34851 * configure.ac: Always define ___main if using -nostdlib. This
34852 fixes tests on Cygwin.
34853
948f48e7 348542009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34855
34856 UDF fix
34857
7d83bd47 34858 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 34859 is in bytes and not in blocks
7d83bd47 34860
8ada9bc1 348612009-06-11 Pavel Roskin <proski@gnu.org>
34862
34863 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34864 warning.
34865
25ad2323 348662009-06-11 Felix Zielcke <fzielcke@z-51.de>
34867
34868 * util/grub.d/30_os-prober.in: Fix a comment. Source
34869 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34870 to set the root device. Place drivemap command in the generated
34871 chain entry.
34872
e65acb0c 348732009-06-11 Pavel Roskin <proski@gnu.org>
34874
34875 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34876 have long been resolved.
34877
f285fe2d 348782009-06-11 Colin Watson <cjwatson@ubuntu.com>
34879
bd47b0b5 34880 * util/grub.d/10_linux.in: Capitalise "Linux".
34881
f285fe2d 34882 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34883
a0c62e4e 348842009-06-11 Pavel Roskin <proski@gnu.org>
34885
b6783cb2 34886 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34887 fix a gcc warning and ensure that the function won't ever exit.
34888
dde032e8 34889 * kern/i386/ieee1275/init.c: Add missing prototype for
34890 grub_stop_floppy().
34891
22cd079d 34892 * loader/ieee1275/multiboot2.c [__i386__]: Include
34893 grub/cpu/multiboot.h.
34894
a0c62e4e 34895 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34896 casts to short - they are not portable and cause warnings. Fix
34897 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34898
63963d17 348992009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34900
34901 Drivemap fixes
34902
34903 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34904 new function
34905 (grub_get_root_biosnumber_saved): new variable
34906 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34907 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 34908 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 34909 %dx after the call if necessary
34910 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34911 (boot_mod_SOURCES): remove
34912 (boot_mod_CFLAGS): remove
34913 (boot_mod_LDFLAGS): remove
34914 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34915 (boot_mod_SOURCES): new variable
34916 (boot_mod_CFLAGS): likewise
34917 (boot_mod_LDFLAGS): likewise
34918 * conf/i386-efi.rmk: likewise
34919 * conf/i386-ieee1275.rmk: likewise
34920 * conf/i386-pc.rmk: likewise
34921 * conf/powerpc-ieee1275.rmk: likewise
34922 * conf/sparc64-ieee1275.rmk: likewise
34923 * conf/x86_64-efi.rmk: likewise
34924 * include/grub/i386/pc/biosnum.h: new file
34925 * lib/i386/pc/biosnum.c: likewise
34926 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34927 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34928 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 34929
33abf7ae 349302009-06-10 Pavel Roskin <proski@gnu.org>
34931
5ac35b35 34932 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34933 Use separate variables. Read only the file size at the end, but
34934 not the checksum that we don't use.
34935
5c5215d5 34936 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34937 Adjust all callers.
34938
27d5fef7 34939 * kern/ieee1275/openfw.c: Remove libc includes.
34940 * kern/ieee1275/cmain.c: Likewise.
34941 * include/grub/ieee1275/ieee1275.h: Likewise.
34942
33abf7ae 34943 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34944 compiler warnings.
34945
19d50c2b 349462009-06-10 Felix Zielcke <fzielcke@z-51.de>
34947
34948 * Makefile.in: Remove all trailing whitespace.
34949 * conf/i386-pc.rmk: Likewise.
34950 * conf/powerpc-ieee1275.rmk: Likewise.
34951 * conf/sparc64-ieee1275.rmk: Likewise.
34952 * docs/grub.texi: Likewise.
34953 * docs/texinfo.tex: Likewise.
34954 * disk/fs_uuid.c: Likewise.
34955 * disk/lvm.c: Likewise.
34956 * disk/scsi.c: Likewise.
34957 * disk/ata.c: Likewise.
34958 * disk/ieee1275/ofdisk.c: Likewise.
34959 * disk/i386/pc/biosdisk.c: Likewise.
34960 * disk/host.c: Likewise.
34961 * disk/raid.c: Likewise.
34962 * disk/efi/efidisk.c: Likewise.
34963 * disk/usbms.c: Likewise.
34964 * disk/memdisk.c: Likewise.
34965 * disk/loopback.c: Likewise.
34966 * kern/powerpc/dl.c: Likewise.
34967 * kern/device.c: Likewise.
34968 * kern/dl.c: Likewise.
34969 * kern/sparc64/dl.c: Likewise.
34970 * kern/ieee1275/ieee1275.c: Likewise.
34971 * kern/term.c: Likewise.
34972 * kern/fs.c: Likewise.
34973 * kern/i386/dl.c: Likewise.
34974 * kern/i386/pc/startup.S: Likewise.
34975 * kern/i386/pc/init.c: Likewise.
34976 * kern/i386/pc/mmap.c: Likewise.
34977 * kern/i386/pc/lzo1x.S: Likewise.
34978 * kern/i386/ieee1275/init.c: Likewise.
34979 * kern/i386/realmode.S: Likewise.
34980 * kern/i386/tsc.c: Likewise.
34981 * kern/partition.c: Likewise.
34982 * kern/corecmd.c: Likewise.
34983 * kern/file.c: Likewise.
34984 * kern/efi/efi.c: Likewise.
34985 * kern/efi/init.c: Likewise.
34986 * kern/efi/mm.c: Likewise.
34987 * kern/main.c: Likewise.
34988 * kern/err.c: Likewise.
34989 * kern/env.c: Likewise.
34990 * kern/disk.c: Likewise.
34991 * kern/generic/millisleep.c: Likewise.
34992 * kern/generic/rtc_get_time_ms.c: Likewise.
34993 * kern/misc.c: Likewise.
34994 * kern/parser.c: Likewise.
34995 * genmk.rb: Likewise.
34996 * configure.ac: Likewise.
34997 * boot/i386/pc/diskboot.S: Likewise.
34998 * boot/i386/pc/pxeboot.S: Likewise.
34999 * boot/i386/pc/boot.S: Likewise.
35000 * boot/i386/pc/lnxboot.S: Likewise.
35001 * boot/i386/pc/cdboot.S: Likewise.
35002 * parttool/pcpart.c: Likewise.
35003 * video/readers/tga.c: Likewise.
35004 * video/video.c: Likewise.
35005 * video/bitmap.c: Likewise.
35006 * lib/envblk.c: Likewise.
35007 * lib/i386/setjmp.S: Likewise.
35008 * fs/xfs.c: Likewise.
35009 * fs/afs.c: Likewise.
35010 * fs/fat.c: Likewise.
35011 * fs/ntfs.c: Likewise.
35012 * fs/udf.c: Likewise.
35013 * fs/affs.c: Likewise.
35014 * fs/iso9660.c: Likewise.
35015 * fs/hfs.c: Likewise.
35016 * fs/fshelp.c: Likewise.
35017 * fs/ext2.c: Likewise.
35018 * fs/jfs.c: Likewise.
35019 * fs/reiserfs.c: Likewise.
35020 * fs/hfsplus.c: Likewise.
35021 * fs/minix.c: Likewise.
35022 * fs/cpio.c: Likewise.
35023 * fs/sfs.c: Likewise.
35024 * fs/ufs.c: Likewise.
35025 * efiemu/prepare.c: Likewise.
35026 * efiemu/loadcore_common.c: Likewise.
35027 * efiemu/runtime/efiemu.sh: Likewise.
35028 * efiemu/runtime/efiemu.S: Likewise.
35029 * efiemu/runtime/efiemu.c: Likewise.
35030 * efiemu/pnvram.c: Likewise.
35031 * efiemu/main.c: Likewise.
35032 * efiemu/i386/pc/cfgtables.c: Likewise.
35033 * efiemu/i386/loadcore64.c: Likewise.
35034 * efiemu/i386/loadcore32.c: Likewise.
35035 * efiemu/loadcore.c: Likewise.
35036 * efiemu/symbols.c: Likewise.
35037 * efiemu/mm.c: Likewise.
35038 * include/grub/autoefi.h: Likewise.
35039 * include/grub/datetime.h: Likewise.
35040 * include/grub/term.h: Likewise.
35041 * include/grub/hfs.h: Likewise.
35042 * include/grub/lvm.h: Likewise.
35043 * include/grub/i386/tsc.h: Likewise.
35044 * include/grub/i386/linux.h: Likewise.
35045 * include/grub/i386/xnu.h: Likewise.
35046 * include/grub/i386/efiemu.h: Likewise.
35047 * include/grub/i386/pc/biosdisk.h: Likewise.
35048 * include/grub/i386/pc/memory.h: Likewise.
35049 * include/grub/i386/pc/vbe.h: Likewise.
35050 * include/grub/parttool.h: Likewise.
35051 * include/grub/video.h: Likewise.
35052 * include/grub/memory.h: Likewise.
35053 * include/grub/fs.h: Likewise.
35054 * include/grub/partition.h: Likewise.
35055 * include/grub/xnu.h: Likewise.
35056 * include/grub/efi/api.h: Likewise.
35057 * include/grub/efi/pe32.h: Likewise.
35058 * include/grub/efi/memory.h: Likewise.
35059 * include/grub/multiboot.h: Likewise.
35060 * include/grub/usbdesc.h: Likewise.
35061 * include/grub/multiboot2.h: Likewise.
35062 * include/grub/acpi.h: Likewise.
35063 * include/grub/efiemu/efiemu.h: Likewise.
35064 * include/grub/disk.h: Likewise.
35065 * include/grub/ieee1275/ieee1275.h: Likewise.
35066 * include/grub/net.h: Likewise.
35067 * include/grub/machoload.h: Likewise.
35068 * include/grub/macho.h: Likewise.
35069 * include/multiboot.h: Likewise.
35070 * genmoddep.awk: Likewise.
35071 * normal/main.c: Likewise.
35072 * normal/menu_entry.c: Likewise.
35073 * normal/menu_viewer.c: Likewise.
35074 * normal/completion.c: Likewise.
35075 * normal/cmdline.c: Likewise.
35076 * normal/misc.c: Likewise.
35077 * normal/datetime.c: Likewise.
35078 * bus/usb/usbtrans.c: Likewise.
35079 * bus/usb/ohci.c: Likewise.
35080 * bus/usb/uhci.c: Likewise.
35081 * bus/usb/usb.c: Likewise.
35082 * mmap/efi/mmap.c: Likewise.
35083 * mmap/i386/pc/mmap_helper.S: Likewise.
35084 * mmap/i386/pc/mmap.c: Likewise.
35085 * mmap/i386/mmap.c: Likewise.
35086 * mmap/i386/uppermem.c: Likewise.
35087 * mmap/mmap.c: Likewise.
35088 * commands/acpi.c: Likewise.
35089 * commands/echo.c: Likewise.
35090 * commands/blocklist.c: Likewise.
35091 * commands/loadenv.c: Likewise.
35092 * commands/usbtest.c: Likewise.
35093 * commands/boot.c: Likewise.
35094 * commands/parttool.c: Likewise.
35095 * commands/search.c: Likewise.
35096 * commands/cat.c: Likewise.
35097 * commands/i386/pc/play.c: Likewise.
35098 * commands/i386/pc/drivemap.c: Likewise.
35099 * commands/i386/pc/vbeinfo.c: Likewise.
35100 * commands/i386/pc/acpi.c: Likewise.
35101 * commands/i386/pc/vbetest.c: Likewise.
35102 * commands/ls.c: Likewise.
35103 * commands/cmp.c: Likewise.
35104 * commands/test.c: Likewise.
35105 * commands/efi/acpi.c: Likewise.
35106 * commands/gptsync.c: Likewise.
35107 * commands/help.c: Likewise.
35108 * partmap/amiga.c: Likewise.
35109 * partmap/apple.c: Likewise.
35110 * partmap/acorn.c: Likewise.
35111 * partmap/pc.c: Likewise.
35112 * partmap/sun.c: Likewise.
35113 * partmap/gpt.c: Likewise.
35114 * script/sh/lexer.c: Likewise.
35115 * script/sh/function.c: Likewise.
35116 * font/font.c: Likewise.
35117 * font/font_cmd.c: Likewise.
35118 * loader/powerpc/ieee1275/linux.c: Likewise.
35119 * loader/efi/chainloader.c: Likewise.
35120 * loader/multiboot_loader.c: Likewise.
35121 * loader/macho.c: Likewise.
35122 * loader/i386/multiboot.c: Likewise.
35123 * loader/i386/linux.c: Likewise.
35124 * loader/i386/pc/linux.c: Likewise.
35125 * loader/i386/pc/multiboot2.c: Likewise.
35126 * loader/i386/pc/chainloader.c: Likewise.
35127 * loader/i386/pc/xnu.c: Likewise.
35128 * loader/i386/bsd_trampoline.S: Likewise.
35129 * loader/i386/efi/linux.c: Likewise.
35130 * loader/i386/multiboot_elfxx.c: Likewise.
35131 * loader/i386/bsd_helper.S: Likewise.
35132 * loader/i386/bsd.c: Likewise.
35133 * loader/i386/linux_trampoline.S: Likewise.
35134 * loader/i386/xnu_helper.S: Likewise.
35135 * loader/i386/xnu.c: Likewise.
35136 * loader/i386/bsd_pagetable.c: Likewise.
35137 * loader/i386/multiboot_helper.S: Likewise.
35138 * loader/xnu.c: Likewise.
35139 * loader/xnu_resume.c: Likewise.
35140 * io/gzio.c: Likewise.
35141 * term/efi/console.c: Likewise.
35142 * term/terminfo.c: Likewise.
35143 * term/ieee1275/ofconsole.c: Likewise.
35144 * term/i386/pc/serial.c: Likewise.
35145 * term/i386/pc/vesafb.c: Likewise.
35146 * term/i386/pc/vga.c: Likewise.
35147 * term/usb_keyboard.c: Likewise.
35148 * term/gfxterm.c: Likewise.
35149 * aclocal.m4: Likewise.
35150 * util/lvm.c: Likewise.
35151 * util/grub.d/30_os-prober.in: Likewise.
35152 * util/grub.d/10_hurd.in: Likewise.
35153 * util/console.c: Likewise.
35154 * util/grub-macho2img.c: Likewise.
35155 * util/grub-probe.c: Likewise.
35156 * util/hostfs.c: Likewise.
35157 * util/i386/pc/grub-mkimage.c: Likewise.
35158 * util/i386/pc/grub-setup.c: Likewise.
35159 * util/i386/efi/grub-mkimage.c: Likewise.
35160 * util/grub-mkconfig.in: Likewise.
35161 * util/raid.c: Likewise.
35162 * util/resolve.c: Likewise.
35163 * util/grub-mkdevicemap.c: Likewise.
35164 * util/grub-emu.c: Likewise.
35165 * util/getroot.c: Likewise.
35166 * util/hostdisk.c: Likewise.
35167 * util/usb.c: Likewise.
35168 * util/grub-editenv.c: Likewise.
35169 * util/misc.c: Likewise.
35170
d2d49665 351712009-06-10 Felix Zielcke <fzielcke@z-51.de>
35172
35173 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
35174 `genparttoollist.sh'.
35175 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
35176 Add `*.sh' to the list find searches for and change `mdate.sh'
35177 to `mdate-sh'.
35178
fe052e37 351792009-06-10 Pavel Roskin <proski@gnu.org>
35180
2763ac18 35181 * include/grub/multiboot2.h: Provide compatibility defines for
35182 multiboot2.h.
35183 * include/multiboot2.h: Include stdint.h only if needed, using
35184 angle brackets.
35185 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
35186 grub/multiboot2.h.
35187 * loader/ieee1275/multiboot2.c: Likewise.
35188 * loader/multiboot2.c: Likewise.
35189 * loader/multiboot_loader.c: Likewise.
35190
437e6adc 35191 * configure.ac: Use -nostdlib when probing for the target. It
35192 should not be required to have libc for the target.
35193
06a6836c 35194 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
35195 they fail without libc headers for the target.
35196 * include/grub/powerpc/libgcc.h: Use weak attribute for all
35197 exports.
35198 * include/grub/sparc64/libgcc.h: Likewise. Don't use
35199 preprocessor conditionals.
35200
fe052e37 35201 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
35202 build system doesn't need to be aware of the tar.c internals.
35203
afd22553 352042009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 35205
afd22553 35206 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 35207
6b787c4f 352082009-06-09 Robert Millan <rmh.grub@aybabtu.com>
35209
35210 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
35211 disk limit to 26 for IDE, Virtio, Xen and SCSI.
35212
352132009-06-09 Felix Zielcke <fzielcke@z-51.de>
35214
35215 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 35216 aren't available if ata.mod gets used.
6b787c4f 35217
473d1e45 352182009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 35219
473d1e45 35220 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 35221 initialising controller.
473d1e45 35222 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 35223
255a27d4 352242009-06-08 Felix Zielcke <fzielcke@z-51.de>
35225
35226 * util/i386/pc/grub-install.in: Add a parameter --disk-module
35227 to choose between ata and biosdisk module on i386-pc.
35228
473d1e45 352292009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 35230
d55842d8 35231 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
35232 Subclass and Programming Interface fields in terms of the 3 byte
35233 Class Code register.
35234 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
35235
fa5db0b1 35236 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
35237 interface is OHCI. Add grub_dprintf for symmetry with
35238 bus/usb/uhci.c.
35239 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
35240 interface is UHCI. Add interf variable for programming
35241 interface. Print interface with class/subclass.
35242
c0947beb 35243 * bus/usb/ohci.c: Set interf with correct field.
35244
69da8877 35245 * bus/usb/uhci.c: Remove unneeded doubled lines.
35246 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
35247 Remove whitespace inside comment.
35248
9e172e30 352492009-06-08 Robert Millan <rmh.grub@aybabtu.com>
35250
35251 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
35252 as fallback an equivalent option without depth.
35253
de65ee2b 352542009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
35255
35256 Not fail if unable to retrieve C/H/S on LBA disks
35257
473d1e45 35258 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 35259 if unable to retrieve C/H/S on LBA disks
35260
b57ea2c9 352612009-06-08 Pavel Roskin <proski@gnu.org>
35262
35263 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
35264 about aliasing.
35265
af361263 352662009-06-08 Felix Zielcke <fzielcke@z-51.de>
35267
35268 * Makefile.in (uninstall): Remove all $lib_DATA files.
35269
4c9ec6b3 352702009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
35271
35272 Bugfix: install on partitionless device
35273
35274 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
35275 is a whole disk
35276
e76fc924 352772009-06-08 Felix Zielcke <fzielcke@z-51.de>
35278
35279 * Makefile.in (uninstall): Remove all $include_DATA files.
35280
ba5a0d05 352812009-06-08 Felix Zielcke <fzielcke@z-51.de>
35282
35283 * commands/true.c: New file. Implement the true and false commands.
35284 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
35285 (true_mod_SOURCES): New variable.
35286 (true_mod_CFLAGS): Likewise.
35287 (true_mod_LDFLAGS): Likewise.
35288
c8048e32 352892009-06-05 Colin D Bennett <colin@gibibit.com>
35290
35291 Optimized font character lookup using binary search instead of linear
35292 search. Fonts now are required to have the character index ordered by
35293 code point.
35294
35295 * font/font.c (load_font_index): Verify that fonts have ordered
35296 character indices.
35297 (find_glyph): Use binary search instead of linear search to find a
35298 character in a font.
35299
408305be 353002009-06-05 Michael Scherer <misc@mandriva.org>
35301
35302 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
35303 uses case sensitive btree.
35304 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
35305 only for case insensitive filesystems.
35306
8ee1e0d9 353072009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
35308
35309 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
35310 * conf/common.rmk (search_mod_CFLAGS): likewise
35311
a9966eb1 353122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35313
473d1e45 35314 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 35315 compensate a compiler bug
35316
9e7100fb 353172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35318
473d1e45 35319 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 35320 instead of '\b'
473d1e45 35321
ede21d71 353222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35323
35324 Definitions for creating asm symbols with Apple's CC
35325
35326 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
35327 [APPLE_CC] (VARIABLE): likewise
35328
9dbf7653 353292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35330
35331 Disable lnxboot.img when compiled
35332 with Apple's CC
35333
35334 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
35335 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
35336 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
35337 [! APPLE_CC] (CODE_LENG): skip
35338 [! APPLE_CC] (setup_sects): likewise
35339 [! APPLE_CC]: skip filling
473d1e45 35340
e93cdc3d 353412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35342
35343 Address in trampolines based on 32-bit registers when compiled
35344 with Apple's CC
35345
473d1e45 35346 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 35347 for addresses
35348 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
35349
6c688477 353502009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35351
35352 Avoid aliases when compiling with Apple's CC for PCBIOS machine
35353
35354 * kern/misc.c [APPLE_CC] (memcpy): new function
35355 [APPLE_CC] (memmove): likewise
35356 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 35357 (memcpy): define alias conditionally on !APPLE_CC
6c688477 35358 (memset): likewise
35359 (abort): likewise
35360 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
35361 APPLE_CC are defined
35362 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
35363 (grub_assert_fail): make prototype conditional
35364
e37ffc5c 353652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35366
35367 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
35368
473d1e45 35369 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
35370 grub-macho2img
e37ffc5c 35371 (CLEANFILES): add grub-macho2img
35372 (grub_macho2img_SOURCES): new variable
35373 * kern/i386/pc/startup.S (bss_start): new variable
35374 (bss_end): likewise
35375 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
35376 * util/grub-macho2img.c: new file
35377
cf00df31 353782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35379
35380 Use objconv when compiling with Apple's CC
35381
35382 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
35383 (efiemu64.o): likewise
35384 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
35385 when compiling with Apple's CC
35386 (efiemu64_s.o): likewise
35387 * configure.ac: check for objconv when compiling with Apple's CC
35388 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 35389
d119a20c 353902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35391
35392 Define segment as well as section when compiling with
35393 Apple's CC
35394
35395 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
35396 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
35397 (efiemu_convert_pointer): likewise
35398 (efiemu_set_virtual_address_map): likewise
35399 (efiemu_convert_pointer): likewise
35400 (efiemu_getcrc32): likewise
35401 (init_crc32_table): likewise
35402 (reflect): likewise
35403 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
35404 (GRUB_MOD_DEP): likewise
473d1e45 35405
c8600122 354062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35407
35408 Allow a compilation without -mcmodel=large
35409
35410 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
35411 when compiled without -mcmodel=large
473d1e45 35412 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 35413 without -mcmodel=large
473d1e45 35414 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 35415 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 35416
e8df1d4e 354172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35418
35419 Remove nested functions in efiemu core
35420
35421 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 35422
cc6c3ac1 354232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35424
35425 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
35426
35427 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
35428 temporary storage
473d1e45 35429 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
35430 using Apple's CC
cc6c3ac1 35431 (grub_cpu_is_tsc_supported): likewise
35432 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 35433
3e325901 354342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35435
35436 Absolute addressing through constant with Apple's cc
35437
35438 * kern/i386/pc/startup.S: Define necessary constants
35439 and address through it when using ABS with Apple's CC
35440 * boot/i386/pc/diskboot.S: likewise
35441 * boot/i386/pc/boot.S: likewise
35442 * boot/i386/pc/lnxboot.S: likewise
35443 * boot/i386/pc/cdboot.S: likewise
35444 * mmap/i386/pc/mmap_helper.S: likewise
35445 * commands/i386/pc/drivemap_int13h.S: likewise
35446
2b167a72 354472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35448
35449 Check if compiler is apple cc
35450
35451 * Makefile.in (ASFLAGS): new variable
35452 (TARGET_ASFLAGS): likewise
35453 (TARGET_MODULE_FORMAT): likewise
35454 (TARGET_APPLE_CC): likewise
35455 (OBJCONV): likewise
35456 (TARGET_IMG_CFLAGS): likewise
35457 (TARGET_CPPFLAGS): add includedir
35458 * configure.ac: call grub_apple_cc and grub_apple_target_cc
35459 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
35460 Check for linker script only if compiler isn't Apple's CC
35461 (TARGET_MODULE_FORMAT): set
35462 (TARGET_APPLE_CC): likewise
35463 (TARGET_ASFLAGS): likewise
35464 (ASFLAGS): likewise
35465 Check for objcopy only if compiler isn't Apple's CC
35466 Check for BSS symbol only if compiler isn't Apple's CC
35467 * genmk.rb: adapt nm options if we use Apple's utils
35468 * aclocal.m4 (grub_apple_cc): new test
35469 (grub_apple_target_cc): likewise
473d1e45 35470
fb14123e 354712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35472
35473 Simplify sed expressions and improve awk
35474
35475 * Makefile.in (install-local): simplify sed expression
35476 * gencmdlist.sh: likewise
35477 * genmoddep.awk: avoid adding module as a dependency of itself
35478
5b889789 354792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35480
35481 Add missing start symbols
35482
35483 * boot/i386/pc/boot.S: add start
fb14123e 35484 * boot/i386/pc/pxeboot.S: likewise
473d1e45 35485
fd2bf2e3 354862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35487
35488 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 35489
35490 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 35491 (relocate_addresses): consider both r_addend and value at offset
35492 (make_mods_section): zerofill modinfo and header
35493 (convert_elf): write prefix here
473d1e45 35494
5389763d 354952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35496
35497 Use .asciz instead of .string
35498
35499 * i386/pc/diskboot.S: use .asciz instead of .string
35500 * i386/pc/boot.S: likewise
35501 * include/grub/dl.h (GRUB_MOD_DEP): likewise
35502 (GRUB_MOD_NAME): likewise
473d1e45 35503
3eb5ed4e 355042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35505
35506 gfxpayload support
35507
35508 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
35509 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
35510 (grub_video_setup): remove
35511 (grub_video_set_mode): new prototype
35512 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
35513 (vid_mode): remove
35514 (linux_vesafb_res): compile only on PCBIOS
35515 (grub_linux_boot): support gfxpayload
35516 * loader/i386/pc/xnu.c (video_hook): new function
35517 (grub_xnu_set_video): support gfxpayload
35518 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
35519 (DEFAULT_VIDEO_HEIGHT): likewise
35520 (DEFAULT_VIDEO_FLAGS): likewise
35521 (DEFAULT_VIDEO_MODE): new definition
35522 (video_hook): new function
35523 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 35524 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 35525 loading xnu
35526 * video/video.c (grub_video_setup): removed
473d1e45 35527 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 35528 grub_video_setup
35529
4b0e1143 355302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35531
35532 Avoid calling biosdisk in drivemap
35533
35534 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
35535 (revparse_biosdisk): likewise
35536 (list_mappings): derive name from id directly
35537 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 35538
fda6cb98 355392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35540
35541 Script fixes
35542
35543 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
35544 (grub_lexer_param): add tokenonhold
35545 (grub_script_create_cmdline): remove cmdline. All callers updated
35546 (grub_script_function_create): make functionname
35547 grub_script_arg. All callers updated
35548 (grub_script_execute_argument_to_string): new prototype
35549 * kern/parser.c (state_transitions): reorder
35550 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 35551 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 35552 make global
35553 (grub_script_execute_cmdline): use new format
35554 * script/sh/function.c (grub_script_function_create): make functionname
35555 grub_script_arg. All callers updated
473d1e45 35556 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 35557 (grub_script_yylex): remove
35558 (grub_script_yylex2): renamed to ...
35559 (grub_script_yylex): ...renamed
35560 parse the expressions like a${b}c
35561 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
35562 (GRUB_PARSER_TOKEN_VAR): remove
35563 (GRUB_PARSER_TOKEN_NAME): likewise
35564 ("if"): declare as typeless
35565 ("while"): likewise
35566 ("function"): likewise
35567 ("else"): likewise
35568 ("then"): likewise
35569 ("fi"): likewise
35570 (text): remove
35571 (argument): likewise
35572 (script): accept empty scripts and make exit on error
35573 (arguments): use GRUB_PARSER_TOKEN_ARG
35574 (function): likewise
35575 (command): move error handling to script
35576 (menuentry): move grub_script_lexer_ref before
473d1e45 35577 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 35578 argument. All callers updated
35579
f4448a07 355802009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35581
35582 Prevent GRUB from probing floppies during boot.
35583
35584 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
35585 * commands/search.c (options): Add --no-floppy.
35586 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
35587 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
35588 --no-floppy when searching for UUIDs.
35589
2bf5885a 355902009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35591
35592 Simplify the code duplication in commands/search.c.
35593
35594 * commands/search.c (search_label, search_fs_uuid): Merge into ...
35595 (search_fs): ... this. Update all users.
35596
f6fd460a 355972009-06-03 Felix Zielcke <fzielcke@z-51.de>
35598
35599 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
35600
cbb3c83e 356012009-05-28 Pavel Roskin <proski@gnu.org>
35602
57788cfd 35603 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
35604 Remove the original symlink explicitly.
35605
cbb3c83e 35606 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
35607 just one slash. That's how grub_fshelp_find_file() does it.
35608
cd0d5e30 356092009-05-26 Pavel Roskin <proski@gnu.org>
35610
f0f8bbe2 35611 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
35612 to `str'.
35613
cd0d5e30 35614 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
35615 possibly unused.
35616
8c2cab51 356172009-05-25 Christian Franke <franke@computer.org>
35618
35619 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
35620 register.
35621 (grub_atapi_identify): Add wait after drive select.
35622 (grub_ata_identify): Do more strict status register check before
35623 calling grub_atapi_identify (). Suppress error message if status
35624 register is 0x00 after command failure. Add status register
35625 check after PIO read to avoid bogus identify due to stuck DRQ.
35626 Thanks to Pavel Roskin for testing.
35627 (grub_device_initialize): Remove unsafe status register check.
35628 Thanks to 'phcoder' for problem report and patch.
35629 Prevent sign extension in debug message.
35630
230c0ad6 356312009-05-23 Colin D Bennett <colin@gibibit.com>
35632
35633 Cleaned up `include/grub/normal.h'. Grouped prototypes by
35634 definition file, and functions defined in `normal/menu.c' have had
35635 their prototypes moved to `include/grub/menu.h' for consistency.
35636
35637 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
35638 from normal.h.
35639 (grub_menu_get_entry): Likewise.
35640 (grub_menu_get_timeout): Likewise.
35641 (grub_menu_set_timeout): Likewise.
35642 (grub_menu_execute_entry): Likewise.
35643 (grub_menu_execute_with_fallback): Likewise.
35644 (grub_menu_entry_run): Likewise.
35645
35646 * include/grub/normal.h: Re-ordered and grouped function
35647 prototypes by file that the function is defined in.
35648 (grub_menu_execute_callback): Removed; moved to menu.h.
35649 (grub_menu_get_entry): Likewise.
35650 (grub_menu_get_timeout): Likewise.
35651 (grub_menu_set_timeout): Likewise.
35652 (grub_menu_execute_entry): Likewise.
35653 (grub_menu_execute_with_fallback): Likewise.
35654 (grub_menu_entry_run): Likewise.
35655 (grub_menu_addentry): Renamed from this ...
35656 (grub_normal_add_menu_entry): ... to this.
35657
35658 * normal/main.c (grub_menu_addentry): Renamed from this ...
35659 (grub_normal_add_menu_entry): ... to this.
35660
35661 * script/sh/execute.c (grub_script_execute_menuentry): Update
35662 reference to renamed grub_menu_addentry function.
35663
861f03a5 356642009-05-23 Felix Zielcke <fzielcke@z-51.de>
35665
35666 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
35667
96b1619a 356682009-05-22 Pavel Roskin <proski@gnu.org>
35669
bf6a5fb2 35670 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
35671 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
35672 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
35673 compiling for the i386 targets, but not for the utilities.
35674
96b1619a 35675 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
35676 to grub_uint8_t.
35677 (grub_root_drive): Likewise.
35678 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
35679 remove alignment.
35680 (grub_root_drive): Change size to byte.
35681 (grub_start_addr): Remove.
35682 (grub_end_addr): Likewise.
35683 (grub_apm_bios_info): Likewise.
35684
b729776b 356852009-05-21 Felix Zielcke <fzielcke@z-51.de>
35686
35687 * normal/i386: Remove.
35688 * normal/powerpc: Likewise.
35689 * normal/sparc64: Likewise.
35690 * normal/x86_64: Likewise.
35691
0a15ce80 356922009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
35693
35694 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 35695 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 35696 * loader/i386/xnu_helper.S: Likewise
d6da58e6 35697
33db9015 356982009-05-18 Colin D Bennett <colin@gibibit.com>
35699
d6da58e6 35700 Display error messages when parsing a Lua statement fails.
35701 Previously, executing a syntactically invalid statement like
35702 ")foo" or "bar;" would silently fail.
33db9015 35703
35704 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 35705 (grub_lua_parse_line): Improved reporting of Lua parser and
35706 execution errors.
33db9015 35707
46422c89 357082009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35709
35710 Remove -Werror which causes build to fail on some systems
35711
35712 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
35713 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
35714 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 35715
22f53a96 357162009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35717
35718 trampoline for linux on 64-bit platform
35719
18f547ad 35720 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
35721 loader/i386/efi/linux_trampoline.S
35722 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 35723 declaration
d6da58e6 35724 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
35725 here
22f53a96 35726 * loader/i386/linux_trampoline.S: moved here
d6da58e6 35727 * loader/i386/efi/linux.c (allocate_pages): reserve space for
35728 trampoline
22f53a96 35729 (jumpvector): removed
35730 (grub_linux_trampoline_start): new declaration
35731 (grub_linux_trampoline_end): likewise
35732 (grub_linux_boot): use trampoline when on 64-bit platform
35733 * loader/i386/linux.c: likewise
35734
cb5a0f40 357352009-05-16 Pavel Roskin <proski@gnu.org>
35736
35737 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
35738 const to avoid a warning.
35739 (grub_lua_setenv): Likewise.
35740 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
35741 lmsg to fix a warning.
35742
334f2c28 357432009-05-16 Felix Zielcke <fzielcke@z-51.de>
35744
35745 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 35746 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35747 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
35748 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35749 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35750 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35751 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35752 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 35753
59e5d3ec 357542009-05-16 Felix Zielcke <fzielcke@z-51.de>
35755
35756 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
35757
9d87a1ba 357582009-05-16 Bean <bean123ch@gmail.com>
35759
35760 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
35761 (lua_mod_SOURCES): New variable.
35762 (lua_mod_CFLAGS): Likewise.
35763 (lua_mod_LDFLAGS): Likewise.
35764
35765 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35766 (setjmp_mod_SOURCES): New variable.
35767 (setjmp_mod_CFLAGS): Likewise.
35768 (setjmp_LDFLAGS): Likewise.
35769
35770 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35771 (setjmp_mod_SOURCES): New variable.
35772 (setjmp_mod_CFLAGS): Likewise.
35773 (setjmp_LDFLAGS): Likewise.
35774
35775 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35776 (setjmp_mod_SOURCES): New variable.
35777 (setjmp_mod_CFLAGS): Likewise.
35778 (setjmp_LDFLAGS): Likewise.
35779
35780 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35781 (setjmp_mod_SOURCES): New variable.
35782 (setjmp_mod_CFLAGS): Likewise.
35783 (setjmp_LDFLAGS): Likewise.
35784
35785 * normal/i386/setjmp.S: Moved from here ...
35786 * lib/i386/setjmp.S: ... Moved here
35787 * normal/x86_64/setjmp.S: Moved from here ...
35788 * lib/x86_64/setjmp.S: ... Moved here
35789 * normal/powerpc/setjmp.S: Moved from here ...
35790 * lib/powerpc/setjmp.S: ... Moved here
35791 * normal/sparc64/setjmp.S: Moved from here ...
35792 * lib/sparc64/setjmp.S: ... Moved here
35793
35794 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35795 returns_twice in mingw.
35796
35797 * script/lua/grub_lib.c: New file.
35798 * script/lua/grub_lib.h: Likewise.
35799 * script/lua/grub_lua.h: Likewise.
35800 * script/lua/grub_main.c: Likewise.
35801 * script/lua/lapi.c: Likewise.
35802 * script/lua/lapi.h: Likewise.
35803 * script/lua/lauxlib.c: Likewise.
35804 * script/lua/lauxlib.h: Likewise.
35805 * script/lua/lbaselib.c: Likewise.
35806 * script/lua/lcode.c: Likewise.
35807 * script/lua/lcode.h: Likewise.
35808 * script/lua/ldblib.c: Likewise.
35809 * script/lua/ldebug.c: Likewise.
35810 * script/lua/ldebug.h: Likewise.
35811 * script/lua/ldo.c: Likewise.
35812 * script/lua/ldo.h: Likewise.
35813 * script/lua/ldump.c: Likewise.
35814 * script/lua/lfunc.c: Likewise.
35815 * script/lua/lfunc.h: Likewise.
35816 * script/lua/lgc.c: Likewise.
35817 * script/lua/lgc.h: Likewise.
35818 * script/lua/linit.c: Likewise.
35819 * script/lua/liolib.c: Likewise.
35820 * script/lua/llex.c: Likewise.
35821 * script/lua/llex.h: Likewise.
35822 * script/lua/llimits.h: Likewise.
35823 * script/lua/lmathlib.c: Likewise.
35824 * script/lua/lmem.c: Likewise.
35825 * script/lua/lmem.h: Likewise.
35826 * script/lua/loadlib.c: Likewise.
35827 * script/lua/lobject.c: Likewise.
35828 * script/lua/lobject.h: Likewise.
35829 * script/lua/lopcodes.c: Likewise.
35830 * script/lua/lopcodes.h: Likewise.
35831 * script/lua/loslib.c: Likewise.
35832 * script/lua/lparser.c: Likewise.
35833 * script/lua/lparser.h: Likewise.
35834 * script/lua/lstate.c: Likewise.
35835 * script/lua/lstate.h: Likewise.
35836 * script/lua/lstring.c: Likewise.
35837 * script/lua/lstring.h: Likewise.
35838 * script/lua/lstrlib.c: Likewise.
35839 * script/lua/ltable.c: Likewise.
35840 * script/lua/ltable.h: Likewise.
35841 * script/lua/ltablib.c: Likewise.
35842 * script/lua/ltm.c: Likewise.
35843 * script/lua/ltm.h: Likewise.
35844 * script/lua/lua.h: Likewise.
35845 * script/lua/luaconf.h: Likewise.
35846 * script/lua/lualib.h: Likewise.
35847 * script/lua/lundump.c: Likewise.
35848 * script/lua/lundump.h: Likewise.
35849 * script/lua/lvm.c: Likewise.
35850 * script/lua/lvm.h: Likewise.
35851 * script/lua/lzio.c: Likewise.
35852 * script/lua/lzio.h: Likewise.
35853
5e898c9d 358542009-05-16 Bean <bean123ch@gmail.com>
35855
35856 * include/grub/kernel.h (grub_module_header_types): Add type
35857 OBJ_TYPE_CONFIG.
35858
35859 * kern/main.c (grub_load_config): New function.
35860 (grub_main): Call grub_load_config to read boot config.
35861
35862 * grub-mkimage (generate_image): New parameter config_path.
35863 (options): New option --config.
35864 (main): Parse --config option, and pass it to generate_image.
35865
cf353a47 358662009-05-14 Christian Franke <franke@computer.org>
35867
35868 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35869 This fixes build on Cygwin.
35870
3834887f 358712009-05-14 Pavel Roskin <proski@gnu.org>
35872
35873 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35874 jump. This saves two bytes, so the typical case of 2 swapped
35875 drives would fit 32 bytes.
35876
8090fc01 358772009-05-13 Pavel Roskin <proski@gnu.org>
35878
ac963883 35879 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35880 grub_uint32_t to avoid a warning.
35881
8090fc01 35882 * loader/i386/linux.c (allocate_pages): When assigning
35883 real_mode_mem, cast through grub_size_t to fix a warning. The
35884 code already makes sure that the value would fit a pointer.
35885 (grub_linux_setup_video): Cast render_target->data to
35886 grub_size_t to fix a warning.
35887
18f547ad 358882009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 35889
35890 * commands/i386/pc/drivemap.c: New file - implement drivemap
35891 command.
35892 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35893 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35894
6f6a8b28 358952009-05-13 Pavel Roskin <proski@gnu.org>
35896
35897 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35898 embedding_area_exists.
35899
15fbf4c4 359002009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35901
35902 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35903 it easier to understand / work with.
59978c8a 35904 Improve warning messages for cases where there's no embedding area,
35905 or when it is too small (or core.img too large).
15fbf4c4 35906
238e871f 359072009-05-13 Pavel Roskin <proski@gnu.org>
35908
0ab3a9a4 35909 * loader/i386/pc/multiboot2.c: Add necessary includes for
35910 grub_multiboot2_real_boot().
35911
a2c8c5f8 35912 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35913 PX record is always little-endian. We only need the lower 2
35914 bytes of the mode.
35915
faec96af 35916 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35917 facilitate code reuse.
35918 (grub_cpio_mount): Use "struct head", not a char buffer. This
35919 fixes a warning reported by gcc 4.4.
35920
238e871f 35921 * kernel/disk.c (grub_disk_read): Use void pointer for the
35922 buffer.
35923 (grub_disk_write): Use const void pointer for the buffer.
35924 Adjust all callers. Remove unnecessary casts.
35925
901d2f0c 359262009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35927
35928 * util/i386/pc/grub-install.in: Update copyright year.
35929
18f547ad 359302009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 35931
35932 gptsync
35933
35934 * commands/gptsync.c: new file
35935 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35936 (gptsync_mod_SOURCES): new variable
35937 (gptsync_mod_CFLAGS): likewise
35938 (gptsync_mod_LDFLAGS): likewise
18f547ad 35939 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 35940 new definition
35941 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35942 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35943 * conf/i386-ieee1275.rmk: likewise
35944 * conf/i386-pc.rmk: likewise
35945 * conf/powerpc-ieee1275.rmk: likewise
35946
b4ba690a 359472009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35948
35949 Fixed grub-emu
35950
35951 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35952 (grub_dl_ref): likewise
35953
317e1a44 359542009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35955
35956 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35957 split in two functions (one for msdos and one for gpt).
35958
041b8094 359592009-05-08 Pavel Roskin <proski@gnu.org>
35960
752473c2 35961 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35962 not modified.
35963
041b8094 35964 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35965 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35966 Initialize them with -1. Add sanity check for bad1. Eliminate
35967 nerr variable.
35968
172800ce 359692009-05-08 David S. Miller <davem@davemloft.net>
35970
35971 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35972
29aa5e81 359732009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35974
35975 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 35976 existence.
29aa5e81 35977
96613b62 359782009-05-05 Felix Zielcke <fzielcke@z-51.de>
35979
35980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 35981 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 35982
eef73c8a 359832009-05-05 David S. Miller <davem@davemloft.net>
35984
35985 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35986
119494b5 359872009-05-05 Pavel Roskin <proski@gnu.org>
35988
35989 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35990 of grub_dl_ref() and grub_dl_unref().
35991 * commands/parttool.c: Remove preprocessor conditionals around
35992 grub_dl_ref() and grub_dl_unref().
35993 * fs/affs.c: Likewise.
35994 * fs/afs.c: Likewise.
35995 * fs/cpio.c: Likewise.
35996 * fs/ext2.c: Likewise.
35997 * fs/fat.c: Likewise.
35998 * fs/hfs.c: Likewise.
35999 * fs/hfsplus.c: Likewise.
36000 * fs/iso9660.c: Likewise.
36001 * fs/jfs.c: Likewise.
36002 * fs/minix.c: Likewise.
36003 * fs/ntfs.c: Likewise.
36004 * fs/reiserfs.c: Likewise.
36005 * fs/sfs.c: Likewise.
36006 * fs/udf.c: Likewise.
36007 * fs/ufs.c: Likewise.
36008 * fs/xfs.c: Likewise.
36009 * include/grub/dl.h: Likewise.
36010 * loader/xnu.c: Likewise.
36011
de5fd76e 360122009-05-04 Pavel Roskin <proski@gnu.org>
36013
36014 * commands/acpi.c: Remove unused variable my_mod.
36015 * partmap/amiga.c: Likewise.
36016 * partmap/apple.c: Likewise.
36017 * partmap/gpt.c: Likewise.
36018 * partmap/pc.c: Likewise.
36019 * partmap/sun.c: Likewise.
36020 * term/gfxterm.c: Likewise.
36021 * term/i386/pc/vesafb.c: Likewise.
36022 * term/i386/pc/vga.c: Likewise.
36023
983598ad 360242009-05-04 David S. Miller <davem@davemloft.net>
36025
36026 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
36027 pointer args to grub_ieee1275_get_property().
36028
8aadec43 36029 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
36030
9554b15e 36031 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
36032 devices, and do not traverse down under controller nodes.
36033
67e23c90 36034 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
36035 (grub_ofdisk_open): Use it to un-escape "," characters.
36036 * kern/disk.c (find_part_sep): New.
36037 (grub_disk_open): Use it to find the first non-escaped ','
36038 character in the disk name.
36039 * util/ieee1275/devicemap.c (escape_of_path): New.
36040 (grub_util_emit_devicemap_entry): Use it.
36041 * util/sparc64/ieee1275/grub-install.in: Update script to
36042 strip partition specifiers properly by not triggering on
36043 '\' escaped ',' characters.
36044
74bfdd2f 360452009-05-04 Robert Millan <rmh.grub@aybabtu.com>
36046
36047 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
36048 to 0x300.
36049 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
36050 resolutions.
36051 (linux_vesafb_modes): Add a lot of additional modes to the list (based
36052 on documentation from Wikipedia).
36053
4241d2b1 360542009-05-04 Pavel Roskin <proski@gnu.org>
36055
36056 * disk/ata.c: Spelling fixes.
36057 * disk/raid.c: Likewise.
36058 * disk/usbms.c: Likewise.
36059 * disk/dmraid_nvidia.c: Likewise.
36060 * kern/ieee1275/openfw.c: Likewise.
36061 * kern/ieee1275/init.c: Likewise.
36062 * kern/ieee1275/cmain.c: Likewise.
36063 * boot/i386/pc/cdboot.S: Likewise.
36064 * video/readers/png.c: Likewise.
36065 * video/i386/pc/vbe.c: Likewise.
36066 * fs/udf.c: Likewise.
36067 * fs/hfs.c: Likewise.
36068 * fs/reiserfs.c: Likewise.
36069 * efiemu/runtime/efiemu.c: Likewise.
36070 * efiemu/main.c: Likewise.
36071 * efiemu/mm.c: Likewise.
36072 * include/grub/elf.h: Likewise.
36073 * include/grub/xnu.h: Likewise.
36074 * include/grub/usbdesc.h: Likewise.
36075 * include/grub/usb.h: Likewise.
36076 * include/grub/script_sh.h: Likewise.
36077 * include/grub/lib/LzmaEnc.h: Likewise.
36078 * include/grub/efiemu/efiemu.h: Likewise.
36079 * include/grub/command.h: Likewise.
36080 * normal/menu.c: Likewise.
36081 * normal/main.c: Likewise.
36082 * normal/datetime.c: Likewise.
36083 * bus/usb/uhci.c: Likewise.
36084 * mmap/i386/uppermem.c: Likewise.
36085 * mmap/mmap.c: Likewise.
36086 * commands/acpi.c: Likewise.
36087 * commands/test.c: Likewise.
36088 * partmap/apple.c: Likewise.
36089 * font/font.c: Likewise.
36090 * loader/sparc64/ieee1275/linux.c: Likewise.
36091 * loader/macho.c: Likewise.
36092 * loader/i386/bsd_trampoline.S: Likewise.
36093 * loader/i386/bsd.c: Likewise.
36094 * loader/xnu.c: Likewise.
36095 * term/i386/pc/vesafb.c: Likewise.
36096 * term/usb_keyboard.c: Likewise.
36097 * util/resolve.c: Likewise.
36098 * util/getroot.c: Likewise.
36099
0cfc0083 361002009-05-04 Felix Zielcke <fzielcke@z-51.de>
36101
36102 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
36103
7c1d00cd 361042009-05-04 Robert Millan <rmh.grub@aybabtu.com>
36105
36106 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
36107 build error.
36108
b01f0548 361092009-05-04 Robert Millan <rmh.grub@aybabtu.com>
36110
36111 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
36112 parameter only available on BIOS.
36113
ecc3eb22 361142009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
36115
36116 Removed wrong semicolon in declaration
36117
36118 * grub/misc.h (grub_dprintf): remove semicolon
36119
112972a9 361202009-05-04 Robert Millan <rmh.grub@aybabtu.com>
36121
36122 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
36123 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
36124 is done by grub_cmd_linux() now).
36125 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
36126 restore video to text mode.
36127 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
36128 indicates lack of "vga=" parameter. "vga=0" is mapped to
36129 `GRUB_LINUX_VID_MODE_NORMAL'.
36130
afd5c115 361312009-05-04 Felix Zielcke <fzielcke@z-51.de>
36132
36133 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
36134 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
36135 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 36136 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 36137 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
36138 `grub_script.tab.c'.
36139
36140 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36141 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36143 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36144 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36145
faa517ce 36146 * Makefile.in: Remove duplicated 2008 in Copyright line.
36147
ae0c0bdc 361482009-05-04 Robert Millan <rmh.grub@aybabtu.com>
36149
473d1e45 36150 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 36151 unconditionally.
36152 * include/grub/util/misc.h (grub_util_warn): New declaration.
36153
36154 * util/i386/pc/grub-install.in: Understand --force and pass it down
36155 to grub-setup.
36156
36157 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
36158 down to setup().
36159 (setup): Improve error messages and add warnings when requested to
36160 install in odd layouts. Refuse to install using blocklists unless
36161 --force was set.
36162
18f547ad 361632009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 36164
36165 * disk/raid.c (grub_raid_scan_device): Improve debug message.
36166
6d260daa 361672009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
36168
36169 Updated copyright year
36170
36171 * fs/hfsplus.c: updated copyright year
18f547ad 36172
69f853f8 361732009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
36174
36175 HFS+ UUID
36176
18f547ad 36177 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 36178 in the space previously used by unused3
36179 (grub_hfsplus_uuid): new function
36180 (grub_hfsplus_fs): added uuid field
36181
4c402e73 361822009-05-03 Pavel Roskin <proski@gnu.org>
36183
36184 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
36185 suppress warnings. It's no longer needed.
36186 * disk/host.c: Likewise.
36187 * disk/ata_pthru.c: Likewise.
36188 * disk/loopback.c: Likewise.
36189 * hook/datehook.c: Likewise.
36190 * parttool/pcpart.c: Likewise.
36191 * fs/i386/pc/pxe.c: Likewise.
36192 * fs/ntfscomp.c: Likewise.
36193 * efiemu/main.c: Likewise.
36194 * mmap/mmap.c: Likewise.
36195 * commands/crc.c: Likewise.
36196 * commands/hexdump.c: Likewise.
36197 * commands/hdparm.c: Likewise.
36198 * commands/acpi.c: Likewise.
36199 * commands/echo.c: Likewise.
36200 * commands/minicmd.c: Likewise.
36201 * commands/blocklist.c: Likewise.
36202 * commands/memrw.c: Likewise.
36203 * commands/loadenv.c: Likewise.
36204 * commands/usbtest.c: Likewise.
36205 * commands/lsmmap.c: Likewise.
36206 * commands/boot.c: Likewise.
36207 * commands/parttool.c: Likewise.
36208 * commands/configfile.c: Likewise.
36209 * commands/search.c: Likewise.
36210 * commands/ieee1275/suspend.c: Likewise.
36211 * commands/cat.c: Likewise.
36212 * commands/i386/pc/pxecmd.c: Likewise.
36213 * commands/i386/pc/play.c: Likewise.
36214 * commands/i386/pc/halt.c: Likewise.
36215 * commands/i386/pc/vbeinfo.c: Likewise.
36216 * commands/i386/pc/vbetest.c: Likewise.
36217 * commands/lspci.c: Likewise.
36218 * commands/date.c: Likewise.
36219 * commands/handler.c: Likewise.
36220 * commands/ls.c: Likewise.
36221 * commands/test.c: Likewise.
36222 * commands/cmp.c: Likewise.
36223 * commands/efi/loadbios.c: Likewise.
36224 * commands/efi/fixvideo.c: Likewise.
36225 * commands/halt.c: Likewise.
36226 * commands/help.c: Likewise.
36227 * commands/reboot.c: Likewise.
36228 * hello/hello.c: Likewise.
36229 * script/sh/main.c: Likewise.
36230 * loader/xnu.c: Likewise.
36231 * term/terminfo.c: Likewise.
36232 * term/i386/pc/serial.c: Likewise.
36233 * term/usb_keyboard.c: Likewise.
36234
515b5079 362352009-05-03 David S. Miller <davem@davemloft.net>
36236
36237 * normal/menu.c: Include grub/parser.h
36238
dfc31a22 362392009-05-03 Pavel Roskin <proski@gnu.org>
36240
2fee74f1 36241 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
36242 not char*.
36243 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
36244 Suggested by Javier Martín <lordhabbit@gmail.com>
36245
dfc31a22 36246 * util/i386/pc/grub-mkrescue.in: Allow for the case when
36247 efiemu??.o doesn't exist.
36248 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
36249 copying.
36250
18f547ad 362512009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 36252
36253 FreeBSD 64-bit support
36254
18f547ad 36255 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 36256 and loader/i386/bsd_trampoline.S
36257 (bsd_mod_ASFLAGS): new variable
36258 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
36259 (FREEBSD_MODTYPE_KERNEL64): likewise
36260 (grub_bsd64_trampoline_start): likewise
36261 (grub_bsd64_trampoline_end): likewise
36262 (grub_bsd64_trampoline_selfjump): likewise
36263 (grub_bsd64_trampoline_gdt): likewise
36264 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
36265 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
36266 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
36267 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 36268 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 36269 of "attrib" member
36270 * loader/i386/bsd_pagetable.c: new file
36271 * loader/i386/bsd_trampoline.S: likewise
36272 * loader/i386/bsd.c (ALIGN_QWORD): new macro
36273 (ALIGN_VAR): likewise
36274 (entry_hi): new variable
36275 (kern_end_mdofs): likewise
36276 (is_64bit): likewise
36277 (grub_freebsd_add_meta): use ALIGN_VAR
36278 (grub_e820_mmap): new declaration
36279 (grub_freebsd_add_mmap): new function
36280 (grub_freebsd_add_meta_module): support 64 bit kernels
36281 (grub_freebsd_list_modules): use ALIGN_VAR
36282 (gdt_descriptor): new declaration
36283 (grub_freebsd_boot): support 64 bit kernels
36284 (grub_bsd_elf64_hook): new function
36285 (grub_bsd_load_elf): support elf64
36286
038c5720 362872009-05-03 Bean <bean123ch@gmail.com>
36288
36289 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
36290 after we get the result of if statement.
36291
fc45fb58 362922009-05-03 Bean <bean123ch@gmail.com>
36293
36294 * Makefile.in (enable_efiemu): New variable.
36295
36296 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
36297 set.
36298 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
36299 path.
36300 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
36301 path, add -mno-red-zone option.
36302 (efiemu64_s.o): Likewise.
36303 (efiemu64.o): Use macro $^ for source file.
36304
36305 * configure.ac (--enable-efiemu): New option.
36306
bbee0f2b 363072009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
36308
36309 xnu support
36310
36311 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
36312 (pkglib_MODULES): add xnu.mod
36313 (xnu_mod_SOURCES): new variable
36314 (xnu_mod_CFLAGS): likewise
36315 (xnu_mod_LDFLAGS): likewise
36316 (xnu_mod_ASFLAGS): likewise
36317 * conf/i386-pc.rmk: likewise
36318 * conf/x86_64-efi.rmk: likewise
7dd4a573 36319 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 36320 new declaration
36321 * include/grub/i386/macho.h: new file
36322 * include/grub/i386/xnu.h: likewise
36323 * include/grub/macho.h: likewise
36324 * include/grub/machoload.h: likewise
36325 * include/grub/x86_64/macho.h: likewise
36326 * include/grub/x86_64/xnu.h: likewise
36327 * include/grub/xnu.h: likewise
36328 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
36329 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
36330 * loader/i386/efi/xnu.c: new file
36331 * loader/i386/pc/xnu.c: likewise
36332 * loader/i386/xnu.c: likewise
36333 * loader/i386/xnu_helper.S: likewise
36334 * loader/macho.c: likewise
36335 * loader/xnu.c: likewise
36336 * loader/xnu_resume.c: likewise
36337 * util/grub-dumpdevtree: likewise
36338 * include/grub/i386/pit.h: include grub/err.h
36339 (grub_pit_wait): export
36340 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 36341
5caf964d 363422009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36343
36344 Efiemu
7dd4a573 36345
5caf964d 36346 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 36347 _linux_efi, linux_efi.
36348 new files in grub-emu
5caf964d 36349 new targets efiemu32.o and efiemu64.o
36350 * loader/linux_normal_efiemu.c: likewise
36351 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 36352 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 36353 files to copy
36354 * include/grub/autoefi.h: new file
7dd4a573 36355 * include/grub/i386/efiemu.h: likewise
5caf964d 36356 * include/grub/i386/pc/efiemu.h: likewise
36357 * include/grub/efi/api.h: add LL suffix when necessary
36358 new definitions relating to tables
36359 * include/grub/efiemu/efiemu.h: new file
36360 * include/grub/efiemu/runtime.h: likewise
36361 * efiemu/prepare.c: likewise
36362 * efiemu/loadcore_common.c: likewise
36363 * efiemu/loadcore64.c: likewise
36364 * efiemu/runtime/efiemu.sh: likewise
36365 * efiemu/runtime/efiemu.S: likewise
36366 * efiemu/runtime/efiemu.c: likewise
36367 * efiemu/runtime/config.h: likewise
36368 * efiemu/prepare32.c: likewise
36369 * efiemu/main.c: likewise
36370 * efiemu/modules/pnvram.c: likewise
36371 * efiemu/modules/i386: likewise
36372 * efiemu/modules/i386/pc: likewise
36373 * efiemu/modules/acpi.c: likewise
36374 * efiemu/i386/pc/cfgtables.c: likewise
36375 * efiemu/i386/loadcore64.c: likewise
36376 * efiemu/i386/loadcore32.c: likewise
36377 * efiemu/prepare64.c: likewise
36378 * efiemu/loadcore.c: likewise
36379 * efiemu/symbols.c: likewise
36380 * efiemu/mm.c: likewise
36381 * efiemu/loadcore32.c: likewise
7dd4a573 36382
363832009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 36384
36385 ACPI spoofing
36386
36387 * commands/acpi.c: new file
36388 * commands/i386/pc/acpi.c: likewise
36389 * commands/efi/acpi.c: likewise
36390 * include/grub/acpi.h: likewise
36391 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
36392 (acpi_mod_SOURCES): new variable
36393 (acpi_mod_CFLAGS): likewise
36394 (acpi_mod_LDFLAGS): likewise
36395 * conf/i386-efi.rmk: likewise
36396 * conf/x86_64-efi.rmk: likewise
36397
7dd4a573 363982009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 36399
36400 Missing part from mmap patch
36401
36402 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
36403 (grub_mmap_unregister)
36404 (grub_mmap_free_and_unregister): use grub_mmap_register
36405
7dd4a573 364062009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 36407
36408 Mmap services
36409
36410 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
36411 * loader/i386/linux.c (find_mmap_size): likewise
36412 (allocate_pages): likewise
36413 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
36414 (grub_fill_multiboot_mmap): likewise
36415 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
36416 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
36417 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
36418 (OPENBSD_MMAP_RESERVED): likewise
36419 * include/grub/i386/pc/memory.h: include grub/memory.h
36420 (grub_lower_mem): removed
36421 (grub_upper_mem): likewise
36422 (GRUB_MACHINE_MEMORY_ACPI): new definition
36423 (GRUB_MACHINE_MEMORY_NVS): likewise
36424 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
36425 (GRUB_MACHINE_MEMORY_HOLE): likewise
36426 (grub_machine_mmap_register): likewise
36427 (grub_machine_mmap_unregister): likewise
36428 (grub_machine_get_upper): likewise
36429 (grub_machine_get_lower): likewise
36430 (grub_machine_get_post64): likewise
36431 * include/grub/i386/efi/memory.h: new file
36432 * include/grub/x86_64/efi/memory.h: likewise
36433 * include/grub/efi/memory.h: likewise
36434 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
36435 (mmap_mod_SOURCES): new variable
36436 (mmap_mod_LDFLAGS): likewise
36437 (mmap_mod_ASFLAGS): likewise
36438 * conf/i386-coreboot.rmk: likewise
36439 * conf/i386-ieee1275.rmk: likewise
36440 * conf/i386-efi.rmk: likewise
36441 * conf/x86_64-efi.rmk: likewise
36442 * include/grub/types.h (UINT_TO_PTR): new macro
36443 (PTR_TO_UINT32): likewise
36444 (PTR_TO_UINT64): likewise
36445 * include/grub/memory.h: new file
36446 * mmap/i386/pc/mmap.c: likewise
36447 * mmap/i386/pc/mmap_helper.S: likewise
36448 * mmap/i386/uppermem.c: likewise
36449 * mmap/mmap.c: likewise
36450 * mmap/efi/mmap.c: likewise
7dd4a573 36451 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 36452 grub_upper_mem
36453 * kern/i386/pc/init.c (grub_lower_mem): removed variable
36454 (grub_upper_mem): likewise
36455 (grub_machine_init): don't use grub_upper_mem,
36456 make grub_lower_mem local
36457 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
36458 grub_mmap_iterate and grub_mmap_get_upper
36459 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
36460
d558e6b5 364612009-05-02 Bean <bean123ch@gmail.com>
36462
36463 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
36464 script/sh/parser.y.
36465 (pkglib_MODULES): Add normal.mod and sh.mod.
36466 (normal_SOURCES): New variable.
36467 (normal_mod_CFLAGS): Likewise.
36468 (normal_mod_LDFLAGS): Likewise.
36469 (sh_mod_SOURCES): Likewise.
36470 (sh_mod_CFLAGS): Likewise.
36471 (sh_mod_LDFLAGS): Likewise.
36472
36473 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
36474 script/sh/lexer.c_DEPENDENCIES.
36475 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
36476 kern/rescue_reader.c and kern/rescue_parser.c.
36477 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
36478 (grub_emu_SOURCES): Change source files.
36479 (pkglib_MODULES): Remove normal.mod.
36480 (normal_SOURCES): Removed.
36481 (normal_mod_CFLAGS): Likewise.
36482 (normal_mod_LDFLAGS): Likewise.
36483 * conf/i386-coreboot.rmk: Likewise.
36484 * conf/i386-efi.rmk: Likewise.
36485 * conf/i386-ieee1276.rmk: Likewise.
36486 * conf/powerpc-ieee1275.rmk: Likewise.
36487 * conf/sparc64-ieee1275.rmk: Likewise.
36488 * conf/x86_64-efi.rmk: Likewise.
36489
36490 * include/grub/command.h (grub_command_execute): New inline function.
36491
36492 * include/grub/menu.h (grub_menu_entry): Removed commands field.
36493
36494 * include/grub/normal.h: Remove <grub/setjmp.h>.
36495 (grub_fs_module_list): Moved to normal/autofs.c.
36496 (grub_exit_env): Removed.
36497 (grub_command_execute): Likewise.
36498 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
36499 parameter script.
36500 (read_command_list): New function declaration.
36501 (read_fs_list): Likewise.
36502
36503 * include/parser.h: Include <grub/reader.h>.
36504 (grub_parser_split_cmdline): Change type of getline parameter.
36505 (grub_parser): New structure.
36506 (grub_parser_class): New variable.
36507 (grub_parser_execute): New function declaration.
36508 (grub_register_rescue_parser): Likewise.
36509 (grub_parser_register): New inline function.
36510 (grub_parser_unregister): Likewise.
36511 (grub_parser_get_current): Likewise.
36512 (grub_parser_set_current): Likewise.
36513
36514 * include/grub/reader.h: New file.
36515 * kern/reader.c: Likewise.
36516 * kern/rescue_parser.c: Likewise.
36517 * kern/rescue_reader.c: Likewise.
36518 * normal/autofs.c: Likewise.
36519 * normal/dyncmd.c: Likewise.
36520
36521 * include/grub/rescue.h: Removed.
36522 * normal/command.h: Likewise.
36523
36524 * include/grub/script.h: Moved to ...
36525 * include/grub/script_sh.h: ... Moved here.
36526 * normal/execute.c: Moved to ...
36527 * script/sh/execute.c: ... Moved here.
36528 * normal/function.c: Moved to ...
36529 * script/sh/function.c: ... Moved here.
36530 * normal/lexer.c: Moved to ...
36531 * script/sh/lexer.c: ... Moved here.
36532 * normal/parser.y: Moved to ...
36533 * script/sh/parser.y: ... Moved here.
36534 * normal/script.c: Moved to ...
36535 * script/sh/script.c: ... Moved here.
36536
36537 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
36538 <grub/reader.h>.
36539 (grub_exit_env): Removed.
36540 (fs_module_list): Moved to normal/autofs.c.
36541 (grub_file_getline): Don't handle comment here.
36542 (free_menu): Skip removed field entry->commands.
36543 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
36544 script parameter.
36545 (read_config_file): Removed nested parameter, change getline function.
36546 (grub_enter_normal_mode): Removed.
36547 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
36548 (read_command_list): Likewise.
36549 (autoload_fs_module): Moved to normal/autofs.c.
36550 (read_fs_list): Likewise.
36551 (reader_nested): New variable.
36552 (grub_normal_execute): Run parser.sh to switch to sh parser.
36553 (grub_cmd_rescue): Removed.
36554 (cmd_normal): Removed.
36555 (grub_cmd_normal): Unregister itself at the beginning. Don't register
36556 rescue command.
36557 (grub_cmdline_run): New function.
36558 (grub_normal_reader_init): Likewise.
36559 (grub_normal_read_line): Likewise.
36560 (grub_env_write_pager): Likewise.
36561 (cmdline): New variable.
36562 (grub_normal_reader): Likewise.
36563 (GRUB_MOD_INIT): Register normal reader and set as current, register
36564 pager hook, register normal command with grub_register_command_prio,
36565 so that it won't show up in command.lst.
36566 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
36567 grub_fs_autoload_hook.
36568
36569 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
36570 (grub_menu_execute_entry): Replace grub_script_execute with
36571 grub_parser_execute, change parameter to grub_command_execute.
36572
36573 * normal/menu_text.c: Remove <grub/script.h>.
36574
36575 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
36576 and <grub/parser.h>.
36577 (run): Change editor_getline to use new parser interface. Change
36578 parameter to grub_command_execute.
36579
36580 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
36581 <grub/reader.h> and <grub/parser.h>.
36582 (grub_load_normal_mode): Execute normal command.
36583 (grub_main): Call grub_register_core_commands,
36584 grub_register_rescue_parser and grub_register_rescue_reader, use
36585 grub_reader_loop to enter input loop.
36586
7dd4a573 36587 * kern/parser.c (grub_parser_split_cmdline): Change type of
36588 getline parameter.
d558e6b5 36589 (grub_parser_class): New variable.
36590 (grub_parser_execute): New function.
36591
36592 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
36593 * loader/multiboot2.c: Likewise.
36594 * loader/sparc64/ieee1275/linux.c: Likewise.
36595
36596 * util/grub-emu.c (read_command_list): New dummy function.
36597
18db813d 365982009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36599
36600 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
36601 count to 16 for CCISS and IDA.
36602
6c67de15 366032009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36604
36605 * normal/menu_text.c (grub_wait_after_message): Print a newline
36606 after waiting for user input.
36607
36608 * loader/i386/linux.c: Include `<grub/normal.h>'.
36609 (grub_cmd_linux): Improve the error message about `ask' mode, by
36610 waiting for user input so it's not missed (we can do this, since
36611 user requested interaction).
36612
d9dc87b0 366132009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36614
36615 Added missing lst to grub-mkrescue
36616
36617 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
36618 and ${input_dir}/parttool.lst
36619
ac8a2baa 366202009-04-30 David S. Miller <davem@davemloft.net>
36621
ad22a610 36622 * util/hostdisk.c (device_is_wholedisk): New function.
36623 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
36624 zero only if device_is_wholedisk() returns true.
36625
6966215d 36626 * util/hostdisk.c (convert_system_partition_to_system_disk):
36627 Handle virtual disk devices named /dev/vdiskX as found on sparc
36628 and powerpc.
36629
ac8a2baa 36630 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
36631 lettered partition specifier is found, convert to numbered.
36632
979b4fb4 366332009-04-29 David S. Miller <davem@davemloft.net>
36634
e2bf39b2 36635 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
36636 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36637
3c64e104 36638 * normal/command.c: Add missing newline at end of file.
36639
979b4fb4 36640 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
36641 warnings.
36642 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
36643 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
36644 grub_ofdisk_read): Likewise, and deal similarly with the fact that
36645 ihandles have a 32-bit type but need to be stored in a "void *".
36646
136d9f82 366472009-04-28 Pavel Roskin <proski@gnu.org>
36648
9459c306 36649 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
36650 not disk. Adjust all dependencies.
2e08a26a 36651 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 36652 grub_disk_close().
36653
136d9f82 36654 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
36655 parent's partition, don't copy it by reference, as it gets freed
36656 on close.
36657
7dd4a573 366582009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 36659
36660 Preboot hooks support
36661
36662 * commands/boot.c (struct grub_preboot_t): new declaration
36663 (preboots_head): new variable
36664 (preboots_tail): likewise
36665 (grub_loader_register_preboot_hook): new function
36666 (grub_loader_unregister_preboot_hook): likewise
36667 (grub_loader_set): launch preboot hooks
36668 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
36669 (grub_loader_register_preboot_hook): new declaration
36670 (grub_loader_unregister_preboot_hook): likewise
36671
5af922b5 366722009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
36673
36674 Warning fix
36675
7dd4a573 36676 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 36677 calling grub_dprintf
36678
a5562c30 366792009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
36680
36681 Bug and warning fixes
36682
7dd4a573 36683 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 36684 declaration
36685 * commands/test.c (test_parse): fixed bug with file tests and corrected
36686 declaration of find_file
36687
4006f85c 366882009-04-26 Pavel Roskin <proski@gnu.org>
36689
36690 * Makefile.in: Don't install empty manual pages if help2man is
36691 missing. Use help2man option for output, not shell redirection.
36692
5c77c3de 366932009-04-26 David S. Miller <davem@davemloft.net>
36694
36695 * util/grub-mkdevicemap.c (make_device_map): Add missing
36696 NESTED_FUNC_ATTR to process_device().
36697
033b10a8 366982009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36699
36700 Test command
36701
36702 * commands/test.c: rewritten to use bash-like test
36703
e4343593 367042009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36705
36706 Parttool autoloading and improvements
36707
7dd4a573 36708 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 36709 (parttool.lst): new target
36710 * genmk.rb: generate parttool-*
36711 (CLEANFILES): add #{parttool}
36712 (PARTTOOLFILES): new variable
36713 * genparttoollist.sh: new file
7dd4a573 36714 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 36715 (grub_pcpart_type): likewise
36716 * commands/parttool.c (helpmsg): new variable
36717 (grub_cmd_parttool): output help if not enough arguments are supplied
36718 autoload modules
36719 (GRUB_MOD_INIT(parttool)): use helpmsg
36720
0d312500 367212009-04-24 David S. Miller <davem@davemloft.net>
36722
7dd4a573 36723 Avoiding opening same device multiple times in device iterator.
0d312500 36724
36725 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 36726 and use it to build a list of partitions in iterate_disk() and
0d312500 36727 iterate_partition().
36728
ac20caff 36729 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
36730 on disk->data.
36731
0dcf7495 36732 * disk/ieee1275/nand.c (grub_nand_iterate): Return
36733 grub_devalias_iterate() result instead of unconditional 0.
36734 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
36735 Also, capture hook return value, either directly or via
36736 grub_children_iterate(), and propagate to caller.
36737 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
36738 grub_children_iterate): Return value is now 'int' instead of
36739 'grub_err_t'.
36740 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
36741 like a proper iterator, stopping when hooks return non-zero.
36742 (grub_devalias_iterate): Likewise.
36743
c8c08833 367442009-04-23 David S. Miller <davem@davemloft.net>
36745
36746 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
36747
f01005a8 367482009-04-22 David S. Miller <davem@davemloft.net>
36749
36750 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
36751 is larger than address_cells, use that value for address_cells too.
36752
4e8269da 36753 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
36754 IEEE1275_MAX_PATH_LEN): Define.
36755 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
36756 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
36757 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
36758 'devtype'. Explicitly NULL terminate devalias expansion.
36759
a1447506 36760 * util/sparc64/ieee1275/misc.c: New file.
36761 * util/sparc64/ieee1275/grub-setup.c: New file.
36762 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
36763 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36764 * util/sparc64/ieee1275/grub-install.in: New file.
36765 * util/ieee1275/ofpath.c: New file.
36766 * util/ieee1275/devicemap.c: New file.
36767 * util/devicemap.c: New file.
36768 * util/deviceiter.c: New file.
36769 * kern/sparc64/ieee1275/init.c: New file.
36770 * include/grub/util/ofpath.h: New file.
36771 * include/grub/util/deviceiter.h: New file.
36772 * util/grub-mkdevicemap.c: Include deviceiter.h.
36773 Implement using grub_util_emit_devicemap_entry and
36774 grub_util_iterate_devices.
36775 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36776 util/devicemap.c into grub-mkdevicemap
36777 * conf/i386-efi.rmk: Likewise.
36778 * conf/i386-ieee1275.rmk: Likewise.
36779 * conf/i386-pc.rmk: Likewise.
36780 * conf/powerpc-ieee1275.rmk: Likewise.
36781 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36782 images and installation utilities. Build kernel as image
36783 instead of as elf binary. Use common rules as much as possible.
36784
7dd4a573 367852009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 36786
36787 Correct GPT definition
36788
7dd4a573 36789 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 36790 of "attrib" member
36791
c6c5219f 367922009-04-19 Felix Zielcke <fzielcke@z-51.de>
36793
36794 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36795
0552ff9f 367962009-04-19 David S. Miller <davem@davemloft.net>
36797
36798 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36799 (grub_rescue_cmd_linux): Rename to...
36800 (grub_cmd_linux): and fix prototype.
36801 (grub_rescue_cmd_initrd): Rename to...
36802 (grub_cmd_initrd): and fix prototype.
36803 (cmd_linux, cmd_initrd): New.
36804 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36805 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36806
d1a282fc 368072009-04-17 Pavel Roskin <proski@gnu.org>
36808
07c5039f 36809 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36810 format.
36811 (grub_ohci_transfer): Likewise.
36812
b012002d 36813 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36814
1bc09c35 36815 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36816 return without a value. Fix inconsistent indentation.
36817
e0ff9126 36818 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36819 match struct grub_fs.
36820
d1a282fc 36821 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36822 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36823 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36824 * commands/lspci.c (grub_lspci_iter): Likewise.
36825
a96df3f2 368262009-04-16 Bean <bean123ch@gmail.com>
36827
36828 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36829 value.
36830
41bb0fe9 368312009-04-15 Pavel Roskin <proski@gnu.org>
36832
36833 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36834 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36835 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36836 definitions.
36837
596c6970 368382009-04-15 Felix Zielcke <fzielcke@z-51.de>
36839
36840 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 36841 that no multiple data or metadata areas are supported and `Unknown
596c6970 36842 metadata header'.
36843
7dd4a573 368442009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 36845
36846 Move loader out of the kernel
36847
36848 * kern/loader.c: moved to ...
36849 * commands/boot.c: ... moved here
36850 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36851 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36852 * include/grub/kernel.h (grub_machine_fini): export
36853 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36854 (grub_loader_set): likewise
36855 (grub_loader_unset): likewise
36856 (grub_loader_boot): likewise
36857 * conf/common.rmk: new module boot.mod
36858 (pkglib_MODULES): add boot.mod
36859 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36860 (grub_emu_SOURCES): likewise
36861 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36862 (grub_emu_SOURCES): likewise
36863 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36864 (grub_emu_SOURCES): likewise
36865 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36866 (grub_emu_SOURCES): likewise
36867 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36868 (grub_emu_SOURCES): likewise
7dd4a573 36869 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36870 (grub_emu_SOURCES): likewise
0d5d5653 36871 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 36872 (grub_emu_SOURCES): likewise
0d5d5653 36873
7dd4a573 368742009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 36875
36876 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 36877
5999d619 36878 * kern/misc.c (grub_itoa): Removed function
36879 (grub_ltoa): likewise
36880 (grub_vsprintf): use grub_lltoa
36881
7dd4a573 368822009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 36883
36884 Restore grub-emu
36885
36886 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36887 * conf/i386-coreboot.rmk: likewise
36888 * conf/i386-ieee1275.rmk: likewise
36889 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36890
20318222 368912009-04-15 Felix Zielcke <fzielcke@z-51.de>
36892
36893 * INSTALL: Add that `./autogen.sh' needs to be run before
36894 `./configure.'.
36895
d05f0df3 368962009-04-14 Bean <bean123ch@gmail.com>
36897
36898 * Makefile.in (pkglib_DATA): Add handler.lst.
36899 (handler.lst): New rule.
36900
36901 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36902 * conf/i386-coreboot.rmk: Likewise.
36903 * conf/i386-ieee1275.rmk: Likewise.
36904 * conf/i386-efi.rmk: Likewise.
36905 * conf/x86_64-efi.rmk: Likewise.
36906 * conf/powerpc-ieee1275.rmk: Likewise.
36907 * conf/sparc64-ieee1275.rmk: Likewise.
36908
36909 * genhandlerlist.sh: New file.
36910
36911 * genmk.rb: Add rules to generate handler.lst.
36912
36913 * include/grub/normal.h (grub_file_getline): New function definition.
36914 (read_handler_list): Likewise.
36915 (free_handler_list): Likewise.
36916
36917 * include/grub/term.h (grub_term_register_input): Add name parameter
36918 for auto generation of handler.lst.
36919 (grub_term_register_output): Likewise.
36920
36921 * normal/handler.c: New file.
36922
36923 * normal/main.c (get_line): Renamed to grub_file_getline.
36924 (read_config_file): Use the newly renamed grub_file_getline.
36925 (read_command_list): Likewise.
36926 (read_fs_list): Likewise.
36927 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36928 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36929
36930 * term/efi/console.c (grub_console_init): Add name parameter for auto
36931 generation of handler.lst.
36932 * term/gfxterm.c: Likewise.
36933 * term/i386/pc/at_keyboard.c: Likewise.
36934 * term/i386/pc/console.c: Likewise.
36935 * term/i386/pc/serial.c: Likewise.
36936 * term/i386/pc/vesafb.c: Likewise.
36937 * term/i386/pc/vga.c: Likewise.
36938 * term/i386/pc/vga_text.c: Likewise.
36939 * term/ieee1275/ofconsole.c: Likewise.
36940 * term/usb_keyboard.c: Likewise.
36941
33c846be 369422009-04-14 Bean <bean123ch@gmail.com>
36943
36944 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36945 properly with null character.
36946
4484e01e 369472009-04-14 Felix Zielcke <fzielcke@z-51.de>
36948
36949 * configure: Remove.
36950 * config.h.in: Likewise.
f93d668e 36951 * stamp-h.in: Likewise.
4484e01e 36952 * DISTLIST: Likewise.
36953 * conf/common.mk: Likewise.
36954 * conf/i386-coreboot.mk: Likewise.
36955 * conf/i386-efi.mk: Likewise.
36956 * conf/i386-ieee1275.mk: Likewise.
36957 * conf/i386.mk: Likewise.
36958 * conf/i386-pc.mk: Likewise.
36959 * conf/powerpc-ieee1275.mk: Likewise.
36960 * conf/sparc64-ieee1275.mk: Likewise.
36961 * conf/x86_64-efi.mk: Likewise.
36962
36963 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36964 develop on GRUB.
36965
7dd4a573 369662009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 36967 David S. Miller <davem@davemloft.net>
36968
36969 * util/hostdisk.c (make_device_name): Fix buffer length
36970 calculations.
36971
e25b5a8c 369722009-04-14 Felix Zielcke <fzielcke@z-51.de>
36973
36974 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36975 <sys/param.h> and <sys/sysctl.h>.
36976 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36977 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36978 opening the device and reset them afterwards.
36979
1f1f580c 369802009-04-13 Pavel Roskin <proski@gnu.org>
36981
36982 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36983 Reported by John Stanley <jpsinthemix@verizon.net>
36984
7ebc2d6b 369852009-04-13 Robert Millan <rmh@aybabtu.com>
36986
36987 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 36988 that name for menuentries when appropriate.
7ebc2d6b 36989
d8ba3667 369902009-04-13 Felix Zielcke <fzielcke@z-51.de>
36991
36992 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36993
cba416eb 369942009-04-13 Robert Millan <rmh@aybabtu.com>
36995
36996 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36997 to Linux, simply abort telling the user it's no longer supported.
36998
a547a745 369992009-04-13 Felix Zielcke <fzielcke@z-51.de>
37000
37001 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 37002 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 37003 `freebsd_loadenv' only when devices.hints exist.
37004
232a769c 370052009-04-13 Pavel Roskin <proski@gnu.org>
37006
37007 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
37008
c3012039 370092009-04-13 Felix Zielcke <fzielcke@z-51.de>
37010
37011 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
37012 partition number.
37013 (grub_drive): Likewise.
37014
234022fe 370152009-04-13 David S. Miller <davem@davemloft.net>
37016
37017 * kern/sparc64/ieee1275/ieee1275.c: New file.
37018 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
37019 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
37020 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
37021 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
37022 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
37023 grub_ieee1275_alloc_physmem): Declare new exported functions.
37024
d8e1836c 37025 * include/grub/sparc64/ieee1275/loader.h: New file.
37026 * include/grub/sparc64/ieee1275/memory.h: Likewise.
37027 * include/grub/sparc64/kernel.h: Likewise.
37028 * loader/sparc64/ieee1275/linux.c: Likewise.
37029
96bd81ec 37030 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
37031 (grub_fstest_SOURCES): Likewise.
37032
6a4737e5 37033 * util/hostdisk.c (make_device_name): Do not make any assumptions
37034 about the length of drive names.
37035
1d7a72fd 37036 * kern/dl.c (grub_dl_load_file): Close file immediately when
37037 we are done using it.
37038
56bc2471 370392009-04-12 David S. Miller <davem@davemloft.net>
37040
37041 * kern/misc.c (grub_ltoa): Fix cast when handling negative
37042 values. Noticed by Pavel Roskin.
37043
df38d0bb 37044 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
37045 target compiler.
7dd4a573 37046
e382e93a 37047 * genmk.rb: Add more flexible image type specification, also
37048 pass --strip-unneeded to objcopy.
37049 * conf/i386-pc.rmk: Use *_FORMAT.
37050 * conf/i386-pc.mk: Rebuilt.
37051
f5dbbca9 37052 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
37053 (OFDISK_HASH_SZ): Define.
37054 (ofdisk_hash): New hash table.
37055 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
37056 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
37057 instead of device phandle which is not unique.
37058
91c88b12 37059 * kern/sparc64/ieee1275/init.c: Delete, replace with...
37060 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
37061 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
37062 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
37063 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
37064 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
37065 GRUB_KERNEL_MACHINE_DATA_END): Define.
37066 (grub_kernel_image_size, grub_total_module_size): Declare.
37067
5b5d4aa5 370682009-04-12 Pavel Roskin <proski@gnu.org>
37069
7dd4a573 37070 * configure.ac: Change the logic when we check for target tools.
37071 Do it when the target is specified and it's different from the
37072 specified value of the host.
5b5d4aa5 37073
c91e1793 370742009-04-11 Felix Zielcke <fzielcke@z-51.de>
37075
37076 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
37077 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
37078 GNU/kFreeBSD. Check if a device is a character device. Use
37079 DIOCGMEDIASIZE to get the size.
37080 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
37081 support for GNU/kFreeBSD.
37082 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
37083 is a character device instead of a block device. Add support for
37084 FreeBSD device names.
37085
37086 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
37087 is a character device instead of a block device.
37088
37089 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
37090 is a character device instead of a block device.
37091
b1ac8644 370922009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
37093
37094 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
37095 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
37096 FreeBSD. Check if a device is a character device. Use
37097 DIOCGMEDIASIZE to get the size.
37098 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
37099 support for FreeBSD.
37100 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
37101 is a character device instead of a block device. Add support for
37102 FreeBSD device names.
37103
37104 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
37105 a character device instead of a block device.
37106 (grub_util_check_char_device): New function.
37107
37108 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
37109 a character device instead of a block device.
37110
37111 * include/grub/util/getroot.h (grub_util_check_char_device): New
37112 prototype.
37113
a3f7515a 371142009-04-11 David S. Miller <davem@davemloft.net>
37115
37116 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
37117 static libgcc.
37118 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
37119 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
37120 function, if present.
37121 (__bswapdi2): Likewise.
37122
0d44993d 37123 * include/grub/sparc64/ieee1275/boot.h: New file.
37124 * boot/sparc64/ieee1275/boot.S: Likewise.
37125 * boot/sparc64/ieee1275/diskboot.S: Likewise.
37126
ed3d2bc2 37127 * kern/misc.c (grub_ltoa): New function.
37128 (grub_vsprintf): Use it to format 'long' integers.
37129
d3bfb59c 371302009-04-10 David S. Miller <davem@davemloft.net>
37131
37132 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
37133 slots are of type grub_ieee1275_cell_t.
37134 (grub_nand_read): Likewise.
37135 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
37136 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
37137 macros are used to compare values in arg/ret block of the call.
37138 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
37139 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
37140 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
37141 grub_ieee1275_instance_to_path, grub_ieee1275_write,
37142 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
37143 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
37144 grub_ieee1275_close, grub_ieee1275_set_property,
37145 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
37146 grub_ieee1275_cell_t.
37147 * kern/ieee1275/openfw.c (grub_map): Likewise.
37148 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
37149 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
37150
450e2238 37151 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
37152 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
37153 (grub_devalias_iterate): Likewise.
37154
7dd4a573 371552009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 37156
37157 UFS improvements
37158
37159 * fs/ufs.c (INODE_NBLOCKS): new definition
37160 (struct grub_ufs_dirent): added fields for non-BSD dirents
37161 (grub_ufs_get_file_block): fixed double indirect handling
37162 (grub_ufs_lookup_symlink): use more robust way to determine whether
37163 symlink is inline
37164 (grub_ufs_find_file): support for non-BSD dirents
37165 (grub_ufs_dir): support for non-BSD dirents
37166
e7e6862a 371672009-04-10 Bean <bean123ch@gnail.com>
37168
37169 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
37170 attribute, otherwise the size would be wrong for i386 platform.
37171
37172 * include/grub/pci.h (grub_pci_read_word): New inline function.
37173 (grub_pci_read_byte): Likewise.
37174 (grub_pci_write): Likewise.
37175 (grub_pci_write_word): Likewise.
37176 (grub_pci_write_byte): Likewise.
37177
37178 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
37179
37180 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
37181 (find_framebuf): Scan pci to locate the frame buffer address.
37182
37183 * commands/efi/fixvideo.c: New file.
37184
37185 * commands/efi/loadbios.c: Likewise.
37186
37187 * commands/memrw.c: Likewise.
37188
37189 * util/grub-dumpbios.in: Likewise.
37190
37191 * conf/common.rmk (grub-dumpbios): New utility.
37192 (pkglib_MODULES): New module memrw.mod.
37193 (memrw_mod_SOURCE): New macro.
37194 (memrw_mod_CFLAGS): Likewise.
37195 (memrw_mod_LDFLAGS): Likewise.
37196
7dd4a573 37197 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 37198 fixvideo.mod.
37199 (loadbios_mod_SOURCE): New macro.
37200 (loadbios_mod_CFLAGS): Likewise.
37201 (loadbios_mod_LDFLAGS): Likewise.
37202 (fixvideo_mod_SOURCE): Likewise.
37203 (fixvideo_mod_CFLAGS): Likewise.
37204 (fixvideo_mod_LDFLAGS): Likewise.
37205
7dd4a573 37206 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 37207 fixvideo.mod.
37208 (loadbios_mod_SOURCE): New macro.
37209 (loadbios_mod_CFLAGS): Likewise.
37210 (loadbios_mod_LDFLAGS): Likewise.
37211 (fixvideo_mod_SOURCE): Likewise.
37212 (fixvideo_mod_CFLAGS): Likewise.
37213 (fixvideo_mod_LDFLAGS): Likewise.
37214
af63ada2 372152009-04-08 Felix Zielcke <fzielcke@z-51.de>
37216
37217 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
37218
c2cdde70 372192009-04-07 David S. Miller <davem@davemloft.net>
37220
37221 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
37222 support for R_SPARC_OLO10 relocations. Fix compile warning for
37223 R_SPARC_WDISP30 case.
ea3f72cf 37224 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 37225
761319cf 372262009-04-06 Pavel Roskin <proski@gnu.org>
37227
1007d1f5 37228 * include/grub/misc.h (ARRAY_SIZE): New macro.
37229 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
37230 New macro.
37231 * loader/i386/linux.c (allocate_pages): Use free_pages().
37232 (grub_linux_unload): Don't use free_pages().
37233 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
37234 wrong index. Treat all other modes as text modes.
37235 (grub_cmd_linux): Initialize vid_mode unconditionally to
37236 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
37237
761319cf 37238 * commands/help.c (print_command_help): Use cmd->prio, not
37239 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
37240
ea761d40 372412009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 37242
ea761d40 37243 Parttool
37244
37245 * parttool/pcpart.c: new file
37246 * commands/parttool.c: likewise
37247 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
37248 (parttool_mod_SOURCES): new variable
37249 (parttool_mod_CFLAGS): likewise
37250 (parttool_mod_LDFLAGS): likewise
37251 (pcpart_mod_SOURCES): likewise
37252 (pcpart_mod_CFLAGS): likewise
37253 (pcpart_mod_LDFLAGS): likewise
7dd4a573 37254 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 37255 and parttool/pcpart.c
37256 * conf/i386-efi.rmk: likewise
37257 * conf/i386-ieee1275.rmk: likewise
37258 * conf/i386-pc.rmk: likewise
37259 * conf/powerpc-ieee1275.rmk: likewise
37260 * conf/sparc64-ieee1275.rmk: likewise
37261 * conf/x86_64-ieee1275.rmk: likewise
37262
05aaebfb 372632009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37264
37265 Support for mtime and further expandability of dir command
37266
37267 * include/grub/lib/datetime.h: moved to ...
7dd4a573 37268 * include/grub/datetime.h: ... moved here and added
05aaebfb 37269 declaration of grub_unixtime2datetime. All users updated
7dd4a573 37270 * include/grub/fs.h: new syntax for dir and mtime functions in
37271 struct grub_fs
05aaebfb 37272 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
37273 and GRUB_FSHELP_FLAGS_MASK
37274 * commands/ls.c (grub_ls_list_files): Write mtime in long format
37275 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
37276 (grub_ext2_mtime): new function
37277 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
37278 (grub_hfsplus_mtime): new function
37279 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
37280 (GRUB_UFS_ATTR_FILE): likewise
37281 (GRUB_UFS_ATTR_LNK): likewise
37282 (struct grub_ufs_sblock): new fields mtime
37283 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
37284 all users updated
37285 (grub_ufs_dir): mtime support
37286 (grub_ufs_mtime): new function
37287 * fs/affs.c (grub_affs_dir): use new dir syntax
37288 * fs/afs.c (grub_afs_dir): likewise
37289 * fs/cpio.c (grub_cpio_dir): likewise
37290 * fs/fat.c (grub_fat_find_dir): likewise
37291 * fs/hfs.c (grub_hfs_dir): likewise
37292 * fs/iso9660.c (grub_iso9660_dir): likewise
37293 * fs/jfs.c (grub_jfs_dir): likewise
37294 * fs/minix.c (grub_minix_dir): likewise
37295 * fs/ntfs.c (grub_ntfs_dir): likewise
37296 * fs/reiserfs.c (grub_reiserfs_dir): likewise
37297 * fs/sfs.c (grub_sfs_dir): likewise
37298 * fs/xfs.c (grub_xfs_dir): likewise
37299 * util/hostfs.c (grub_hostfs_dir): likewise
37300 * lib/datetime.c: moved to ...
37301 * normal/datetime.c: ... moved here
37302 (grub_unixtime2datetime): new function
37303 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 37304 * normal/completion.c (iterate_dir): use new dir syntax
37305 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 37306 last modification time of a volume
7dd4a573 37307 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 37308 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 37309 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 37310 (normal_mod_SOURCES): likewise
37311 (datetime_mod_SOURCES): Removed lib/datetime.c
37312 * conf/i386-efi.rmk: likewise
7dd4a573 37313 * conf/i386-ieee1275.rmk: likewise
05aaebfb 37314 * conf/i386-pc.rmk: likewise
37315 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 37316 * conf/sparc64-ieee1275.rmk: likewise
37317 * conf/x86_64-efi.rmk: likewise
05aaebfb 37318
8a7e1a14 373192009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37320
37321 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 37322
37323 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 37324 on grub_fat_find_dir
37325 (grub_fat_find_dir): use grub_fat_iterate_dir
37326 (grub_fat_label): likewise
37327
04186a9c 373282009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
37329
7dd4a573 37330 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 37331 and command.h
37332 remove extraneous kernel_elf_HEADERS
37333
da4c0bb6 373342009-04-04 Bean <bean123ch@gnail.com>
37335
37336 * include/grub/util/misc.h: Add dummy function fsync for mingw.
37337
37338 * util/misc.c: Likewise.
37339
54ad9555 373402009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37341
37342 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
37343 instead of grub_printf.
37344
7a6bf9f2 373452009-04-03 Robert Millan <rmh@aybabtu.com>
37346
37347 * loader/i386/linux.c (grub_linux_setup_video): Fill
37348 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
37349 values from `mode info' structure instead of hardcoded
37350 values.
37351
3fcc2083 373522009-04-01 Pavel Roskin <proski@gnu.org>
37353
37354 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
37355 unused now.
37356 * genmk.rb: Likewise.
37357 * configure.ac: Likewise.
37358
5ec9740b 373592009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
37360
37361 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
37362 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
37363
5270cec8 373642009-04-01 David S. Miller <davem@davemloft.net>
37365
37366 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 37367 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 37368 (grub_setjmp): Mark with 'returns_twice' attribute.
37369 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
37370 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
37371 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
37372
9c3dd854 373732009-04-01 Robert Millan <rmh@aybabtu.com>
37374
37375 Reapply fix from 2008-07-28 which was accidentally reverted; also
37376 perform the same fix to a similar check in same function.
37377
37378 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37379 with the same number are found, just use issue a warning with
37380 grub_dprintf(), as this error has been reported to be non-fatal.
37381
0d818b7e 373822009-03-31 Pavel Roskin <proski@gnu.org>
37383
37384 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
37385 for cross-compilation.
37386
95646d92 373872009-03-30 Robert Millan <rmh@aybabtu.com>
37388
37389 Fix i386-ieee1275 build.
37390
37391 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
37392 Remove declaration.
37393
6a003ed1 373942009-03-30 Pavel Roskin <proski@gnu.org>
37395
37396 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
37397 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
37398 zero-terminated, rely only on the strlen value. Fix comparison
37399 of strings differing in length.
37400
92f33540 374012009-03-30 Robert Millan <rmh@aybabtu.com>
37402
37403 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
37404 checking for abi version. Improve error messages on BIOS to notify
37405 user about `linux16' command.
37406
a8c48fd5 374072009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
37408
f968172e 37409 Leak fixes
a8c48fd5 37410
f968172e 37411 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
37412 in case of collision
37413 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 37414
9c323f09 374152009-03-29 Robert Millan <rmh@aybabtu.com>
37416
37417 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
37418 set `vid_mode' accordingly.
37419 (grub_linux_boot): Process `vid_mode' and set video mode.
37420
ae68f423 374212009-03-29 Robert Millan <rmh@aybabtu.com>
37422
37423 * util/grub.d/10_linux.in (linux_entry): New function.
37424 Factorize generation of Linux boot entries.
37425
5709cfc4 374262009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
37427
37428 Make the format of Environment Block plain text. The boot loader
37429 part is not tested well yet.
7dd4a573 37430
5709cfc4 37431 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
37432 (buffer): Removed.
37433 (envblk): Likewise.
37434 (usage): Remove "info" and "clear". Add "unset". Update the
37435 description of "set", as this does not delete variables any
37436 longer.
37437 (create_envblk_file): Complete rewrite.
37438 (open_envblk_file): Likewise.
37439 (cmd_info): Removed.
37440 (cmd_list): Likewise.
37441 (cmd_set): Likewise.
37442 (cmd_clear): Likewise.
37443 (list_variables): New function.
37444 (write_envblk): Likewise.
37445 (set_variables): Likewise.
37446 (unset_variables): Likewise.
37447 (main): Complete rewrite.
37448
37449 * commands/loadenv.c (buffer): Removed.
37450 (envblk): Likewise.
37451 (open_envblk_file): New function.
37452 (read_envblk_file): Complete rewrite.
37453 (grub_cmd_load_env): Likewise.
37454 (grub_cmd_list_env): Likewise.
37455 (struct blocklist): New struct.
37456 (free_blocklists): New function.
37457 (check_blocklists): Likewise.
37458 (write_blocklists): Likewise.
37459 (grub_cmd_save_env): Complete rewrite.
37460
37461 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
37462 a plain text signature.
37463 (GRUB_ENVBLK_MAXLEN): Removed.
37464 (struct grub_envblk): Complete rewrite.
37465 (grub_envblk_find): Removed.
37466 (grub_envblk_insert): Likewise.
37467 (grub_envblk_open): New prototype.
37468 (grub_envblk_set): Likewise.
37469 (grub_envblk_delete): Put const to VALUE.
37470 (grub_envblk_iterate): Put const to NAME and VALUE.
37471 (grub_envblk_close): New prototype.
37472 (grub_envblk_buffer): New inline function.
37473 (grub_envblk_size): Likewise.
37474
37475 * lib/envblk.c: Include grub/mm.h.
37476 (grub_env_find): Removed.
37477 (grub_envblk_open): New function.
37478 (grub_envblk_close): Likewise.
37479 (escaped_value_len): Likewise.
37480 (find_next_line): Likewise.
37481 (grub_envblk_insert): Removed.
37482 (grub_envblk_set): New function.
37483 (grub_envblk_delete): Complete rewrite.
37484 (grub_envblk_iterate): Likewise.
37485
a9368fd3 374862009-03-28 Robert Millan <rmh@aybabtu.com>
37487
37488 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
37489 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
37490 variables. Use 16-bit loader.
37491 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
37492 loader.
37493 * kern/i386/loader.S (grub_linux_boot): Rename to ...
37494 (grub_linux16_boot): ... this. Update all users.
37495 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
37496 (grub_linux_boot): ... this. Update all users.
37497
37498 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
37499 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
37500 commands to `linux16' and `initrd16'.
37501 (GRUB_MOD_FINI(linux)): Rename to ...
37502 (GRUB_MOD_FINI(linux16)): ... this.
37503
e4dd5a7e 375042009-03-24 Pavel Roskin <proski@gnu.org>
37505
37506 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
37507 not just for compilation.
37508
c04d6e05 375092009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
37510
37511 Move multiboot helper out of kernel
37512
37513 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
37514 `loader/i386/multiboot_helper.S'.
37515 * conf/i386-coreboot.rmk: Likewise
37516 * conf/i386-ieee1275.rmk: Likewise
37517
37518 * kern/i386/loader.S: Move multiboot helpers from here...
37519 * loader/i386/multiboot_helper.S: ...moved here
37520 * include/grub/i386/loader.h: Move declarations of multiboot
37521 helpers from here...
37522 * include/grub/i386/multiboot.h: ...moved here
37523 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
37524
42a5b3fc 375252009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37526
37527 * kern/env.c (grub_env_context_open): Added an argument to specify
37528 whether a new context inherits exported variables from current
37529 one. This is useful when making a sandbox to interpret a config
37530 file.
37531 All callers updated.
37532
37533 * include/grub/env.h (grub_env_context_open): Updated the prototype.
37534
b28bbc4e 375352009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37536
37537 * kern/env.c (grub_env_context_close): Fix memory leaks.
37538
f04f02e4 375392009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37540
37541 * normal/main.c (grub_normal_execute): Added an argument
37542 BATCH to specify if an interactive interface should be provided
37543 after reading a config file.
37544 All callers updated.
37545 (read_command_list): Prevent being executed twice.
37546 (read_fs_list): Likewise.
37547
42a5b3fc 37548 * include/grub/normal.h (grub_normal_execute): Updated the
37549 prototype.
f04f02e4 37550
41473ac2 375512009-03-22 Pavel Roskin <proski@gno.org>
37552
fbc00b0c 37553 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
37554 _start.
37555 * kern/i386/pc/startup.S: Likewise.
37556 * kern/i386/efi/startup.S: Likewise.
37557 * kern/i386/ieee1275/startup.S: Likewise.
37558 * kern/i386/coreboot/startup.S: Likewise.
37559 * kern/x86_64/efi/startup.S: Likewise.
37560
41473ac2 37561 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
37562 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
37563 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
37564
2274cc8f 375652009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
37566
37567 Bugfixes in multiboot for bugs uncovered by solaris kernel.
37568
37569 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
37570 limit detection.
37571 Use vaddr of correct segment for entry_point.
37572
b1b797cb 375732009-03-21 Bean <bean123ch@gmail.com>
37574
37575 * commands/blocklist.c: Add include file <grub/command.h>, remove
37576 <grub/normal.h> and <grub/arg.h>.
37577 (grub_cmd_blocklist): Use the new command interface.
37578 (GRUB_MOD_INIT): Likewise.
37579 (GRUB_MOD_FINI): Likewise.
37580 * commands/boot.c: Likewise.
37581 * commands/cat.c: Likewise.
37582 * commands/cmp.c: Likewise.
37583 * commands/configfile.c: Likewise.
37584 * commands/crc.c: Likewise.
37585 * commands/echo.c: Likewise.
37586 * commands/halt.c: Likewise.
37587 * commands/handler.c: Likewise.
37588 * commands/hdparm.c: Likewise.
37589 * commands/help.c: Likewise.
37590 * commands/hexdump.c: Likewise.
37591 * commands/loadenv.c: Likewise.
37592 * commands/ls.c: Likewise.
37593 * commands/lsmmap.c: Likewise.
37594 * commands/lspci.c: Likewise.
37595 * commands/loadenv.c: Likewise.
37596 * commands/read.c: Likewise.
37597 * commands/reboot.c: Likewise.
37598 * commands/search.c: Likewise.
37599 * commands/sleep.c: Likewise.
37600 * commands/test.c: Likewise.
37601 * commands/usbtest.c: Likewise.
37602 * commands/videotest.c: Likewise.
37603 * commands/i386/cpuid.c: Likewise.
37604 * commands/i386/pc/halt.c: Likewise.
37605 * commands/i386/pc/play.c: Likewise.
37606 * commands/i386/pc/pxecmd.c: Likewise.
37607 * commands/i386/pc/vbeinfo.c: Likewise.
37608 * commands/i386/pc/vbetest.c: Likewise.
37609 * commands/ieee1275/suspend.c: Likewise.
37610 * disk/loopback.c: Likewise.
37611 * font/font_cmd.c: Likewise.
37612 * hello/hello.c: Likewise.
37613 * loader/efi/appleloader.c: Likewise.
37614 * loader/efi/chainloader.c: Likewise.
37615 * loader/i386/bsd.c: Likewise.
37616 * loader/i386/efi/linux.c: Likewise.
37617 * loader/i386/ieee1275/linux.c: Likewise.
37618 * loader/i386/linux.c: Likewise.
37619 * loader/i386/pc/chainloader.c: Likewise.
37620 * loader/i386/pc/linux.c: Likewise.
37621 * loader/powerpc/ieee1275/linux.c: Likewise.
37622 * loader/multiboot_loader.c: Likewise.
37623 * term/gfxterm.c: Likewise.
37624 * term/i386/pc/serial.c: Likewise.
37625 * term/terminfo.c: Likewise.
37626
37627 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
37628 * term/i386/pc/vga.c: Likewise.
37629 * video/readers/jpeg.c: Likewise.
37630 * video/readers/png.c: Likewise.
37631 * video/readers/tga.c: Likewise.
37632
37633 * util/grub-fstest (cmd_loopback): Removed.
37634 (cmd_blocklist): Likewise.
37635 (cmd_ls): Likewise.
37636 (grub_register_command): Likewise.
37637 (grub_unregister_command): Likewise.
37638 (execute_command): Use grub_command_find to locate command and execute
37639 it.
37640
37641 * include/grub/efi/chainloader.h: Removed.
37642 * loader/efi/chainloader_normal.c: Likewise.
37643 * loader/i386/bsd_normal.c: Likewise.
37644 * loader/i386/pc/chainloader_normal.c: Likewise.
37645 * loader/i386/pc/multiboot_normal.c: Likewise.
37646 * loader/linux_normal.c: Likewise.
37647 * loader/multiboot_loader_normal.c: Likewise.
37648 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37649
37650 * gencmdlist.sh: Scan new registration command grub_register_extcmd
37651 and grub_register_command_p1.
37652
37653 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
37654 kern/command.c, lib/arg.c and commands/extcmd.c.
37655 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
37656 (minicmd_mod_SOURCES): New variable.
37657 (minicmd_mod_CFLAGS): Likewise.
37658 (minicmd_mod_LDFLAGS): Likewise.
37659 (extcmd_mod_SOURCES): Likewise.
37660 (extcmd_mod_CFLAGS): Likewise.
37661 (extcmd_mod_LDFLAGS): Likewise.
37662 (boot_mod_SOURCES): Removed.
37663 (boot_mod_CFLAGS): Likewise.
37664 (boot_mod_LDFLAGS): Likewise.
37665
37666 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
37667 kern/corecmd.c.
37668 (kernel_img_HEADERS): Add command.h.
37669 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
37670 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
37671 and lib/arg.c.
37672 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
37673 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
37674 remove the corresponding normal mode command.
37675 (normal_mod_SOURCES): Remove normal/arg.c.
37676 * conf/i386-coreboot.rmk: Likewise.
37677 * conf/i386-efi.rmk: Likewise.
37678 * conf/i386-ieee1275.rmk: Likewise.
37679 * conf/powerpc-ieee1275.rmk: Likewise.
37680 * conf/x86_64-efi.rmk: Likewise.
37681
37682 * include/grub/arg.h: Move from here ...
37683 * include/grub/lib/arg.h: ... to here.
37684
37685 * normal/arg.c: Move from here ...
37686 * lib/arg.c: ... to here.
37687
37688 * commands/extcmd.c: New file.
37689 * commands/minicmd.c: Likewise.
37690 * include/grub/command.h: Likewise.
37691 * include/grub/extcmd.h: Likewise.
37692 * kern/command.c: Likewise.
37693 * kern/corecmd.c: Likewise.
37694
37695 * kern/list.c (grub_list_iterate): Return int instead of void.
37696 (grub_list_insert): New function.
37697 (grub_prio_list_insert): Likewise.
37698
37699 * kern/rescue.c (grub_rescue_command): Removed.
37700 (grub_rescue_command_list): Likewise.
37701 (grub_rescue_register_command): Likewise.
37702 (grub_rescue_unregister_command): Likewise.
37703 (grub_rescue_cmd_boot): Move to minicmd.c
37704 (grub_rescue_cmd_help): Likewise.
37705 (grub_rescue_cmd_info): Likewise.
37706 (grub_rescue_cmd_boot): Likewise.
37707 (grub_rescue_cmd_testload): Likewise.
37708 (grub_rescue_cmd_dump): Likewise.
37709 (grub_rescue_cmd_rmmod): Likewise.
37710 (grub_rescue_cmd_lsmod): Likewise.
37711 (grub_rescue_cmd_exit): Likewise.
37712 (grub_rescue_print_devices): Moved to corecmd.c.
37713 (grub_rescue_print_files): Likewise.
37714 (grub_rescue_cmd_ls): Likewise.
37715 (grub_rescue_cmd_insmod): Likewise.
37716 (grub_rescue_cmd_set): Likewise.
37717 (grub_rescue_cmd_unset): Likewise.
7d074e3c 37718 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 37719 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 37720 commands, remove grub_rescue_register_command calls.
b1b797cb 37721
7d074e3c 37722 * normal/command.c (grub_register_command): Removed.
b1b797cb 37723 (grub_unregister_command): Likewise.
37724 (grub_command_find): Likewise.
37725 (grub_iterate_commands): Likewise.
37726 (rescue_command): Likewise.
37727 (export_command): Moved to corecmd.c.
37728 (set_command): Removed.
37729 (unset_command): Likewise.
37730 (insmod_command): Likewise.
37731 (rmmod_command): Likewise.
37732 (lsmod_command): Likewise.
37733 (grub_command_init): Likewise.
37734
37735 * normal/completion.c (iterate_command): Use cmd->prio to check for
37736 active command.
37737 (complete_arguments): Use grub_extcmd_t structure to find options.
37738 (grub_normal_do_completion): Change function grub_iterate_commands to
37739 grub_command_iterate.
37740
37741 * normal/execute.c (grub_script_execute_cmd): No need to parse
37742 argument here.
37743
37744 * normal/main.c (grub_dyncmd_dispatcher): New function.
37745 (read_command_list): Register unload commands as dyncmd.
37746 (grub_cmd_normal): Use new command interface, register rescue,
37747 unregister normal at entry, register normal, unregister rescue at exit.
37748
37749 * include/grub/list.h (grub_list_test_t): New type.
37750 (grub_list_iterate): Return int instead of void.
37751 (grub_list_insert): New function.
37752 (GRUB_AS_NAMED_LIST_P): New macro.
37753 (GRUB_AS_PRIO_LIST): Likewise.
37754 (GRUB_AS_PRIO_LIST_P): Likewise.
37755 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
37756 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
37757 (grub_prio_list): New structure.
37758 (grub_prio_list_insert): New function.
37759 (grub_prio_list_remove): New inline function.
37760
37761 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
37762 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
37763 (GRUB_COMMAND_FLAG_MENU): Likewise.
37764 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37765 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37766 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37767 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37768 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37769 (grub_command): Likewise.
37770 (grub_register_command): Likewise.
37771 (grub_command_find): Likewise.
37772 (grub_iterate_commands): Likewise.
37773 (grub_command_init): Likewise.
37774 (grub_arg_parse): Likewise.
37775 (grub_arg_show_help): Likewise.
37776
37777 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37778 (grub_rescue_unregister_command): Likewise.
37779
37780 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37781 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37782 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37783
37784 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37785 grub_rescue_cmd_initrd.
37786 * include/grub/i386/loader.h: Likewise.
37787 * include/grub/x86_64/loader.h: Likewise.
37788
37789 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37790
1f4147aa 377912009-03-21 Bean <bean123ch@gmail.com>
37792
37793 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37794 instead of stat in mingw environment.
37795
37796 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37797
37798 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37799
37800 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37801 AC_CONFIG_LINKS.
37802
2156d5ba 378032009-03-21 Bean <bean123ch@gmail.com>
37804
37805 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37806 out of range error.
37807
177b82ca 378082009-03-18 Michel Dänzer <michel@daenzer.net>
37809
37810 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37811 checking inode flags for EXT4_EXTENTS_FLAG.
37812
14aad807 378132009-03-18 Robert Millan <rmh@aybabtu.com>
37814
37815 * loader/i386/linux.c: Include `<grub/video.h>' and
37816 `<grub/i386/pc/vbe.h>'..
37817 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37818 (grub_linux32_boot): Attempt to configure video settings with
37819 grub_linux_setup_video().
37820 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37821 to avoid grub_console_fini() which would step out of graphical mode
37822 unconditionally.
37823
8cf83a27 378242009-03-14 Robert Millan <rmh@aybabtu.com>
37825
37826 Fix build on powerpc.
37827 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37828
40164e75 378292009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37830
37831 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37832 background image command.
37833
c58bc32a 378342009-03-12 Colin D Bennett <colin@gibibit.com>
37835
37836 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37837 (grub_gfxterm_putchar): Extract pairs of identical calls to
37838 draw_cursor out of conditional blocks.
37839
5415144a 378402009-03-11 Pavel Roskin <proski@gnu.org>
37841
37842 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37843 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37844
6394042e 378452009-03-11 Robert Millan <rmh@aybabtu.com>
37846
37847 * loader/i386/multiboot_elfxx.c
37848 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37849
b7b50e5f 378502009-03-11 Felix Zielcke <fzielcke@z-51.de>
37851
37852 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37853 `kern/handler.c'.
37854
1ca7fc96 378552009-03-11 Robert Millan <rmh@aybabtu.com>
37856
37857 * loader/i386/multiboot.c (code_size): New variable.
37858 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 37859 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 37860 4-byte alignment to MBI and others by increasing
7d074e3c 37861 `boot_loader_name_length' appropriately.
1ca7fc96 37862
37863 * loader/i386/multiboot_elfxx.c
37864 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37865
a83ea1d2 378662009-03-09 Felix Zielcke <fzielcke@z-51.de>
37867
37868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37869 `fs/ext2.c'.
37870
aa9f3bff 378712009-03-08 Robert Millan <rmh@aybabtu.com>
37872
37873 Make loader/i386/linux.c usable on i386-pc again.
37874
37875 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37876 memory to heap.
37877 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37878 `#error' stanza.
37879
d8b3b60e 378802009-03-07 Bean <bean123ch@gmail.com>
37881
37882 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37883 allocation.
37884
b362c9e9 378852009-03-06 Robert Millan <rmh@aybabtu.com>
37886
37887 Fix display issue on terminals with screen size other than 80x25
37888 (e.g. gfxterm with resolution higher than 640x480).
37889
37890 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 37891 position relative to the center of the terminal instead of relying
b362c9e9 37892 on a hardcoded offset.
37893
9304eef1 378942009-03-04 Robert Millan <rmh@aybabtu.com>
37895
37896 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37897 installed.
37898
37899 * Makefile.in (host_kernel): New variable.
37900 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37901 scripts instead of just the windows one.
37902 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37903
eabc95fb 379042009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 37905
37906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37907 `kern/handler.c'.
37908 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37909 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37912 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37913 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37914
ceb1223c 379152009-03-04 Felix Zielcke <fzielcke@z-51.de>
37916
37917 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37918 or if there's no space for the disk label and print the partition number on a
37919 invalid magic.
37920
4910684a 379212009-03-04 Felix Zielcke <fzielcke@z-51.de>
37922
37923 * util/misc.c: Include <time.h>.
37924 (grub_millisleep): New function.
37925
7e9ca17a 379262009-03-04 Bean <bean123ch@gmail.com>
37927
37928 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37929 another option -mno-red-zone.
37930
37931 * commands/handler.c: Change module description.
37932
37933 * kern/handler.c: Add missing space at the end of description line.
37934
37935 * kern/list.c: Likewise.
37936
f501677c 379372009-03-03 Robert Millan <rmh@aybabtu.com>
37938
37939 Move more components to the relocation area, and fix mbi pointer
37940 handling to use the destination rather than the origin (thanks to
37941 Vladimir Serbinenko for spotting).
37942
37943 * loader/i386/multiboot.c (mbi_dest): New variable.
37944 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37945 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37946 relocation area.
37947
9902d047 379482009-03-01 Bean <bean123ch@gmail.com>
37949
50fb7002 37950 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 37951 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37952 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37953 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37954
37955 * loader/i386/efi/linux.c (acpi_guid): New variable.
37956 (acpi_guid): Likewise.
37957 (EBDA_SEG_ADDR): New constant.
37958 (LOW_MEM_ADDR): Likewise.
37959 (FAKE_EBDA_SEG): Likewise.
37960 (fake_bios_data): New function.
37961 (grub_linux_boot): Call fake_bios_data.
37962
71b9f361 379632009-03-01 Bean <bean123ch@gmail.com>
37964
37965 * commands/terminal.c: Removed.
37966
37967 * commands/handler.c: New file.
37968
37969 * include/grub/list.h: Likewise.
37970
37971 * include/grub/handler.h: Likewise.
37972
37973 * kern/list.c: Likewise.
37974
37975 * kern/handler.c: Likewise.
37976
37977 * kern/term.h: Include header file <grub/handler.h>.
37978 (grub_term_input): Move next field to the beginning.
37979 (grub_term_output): Likewise.
37980 (grub_term_input_class): New variable.
37981 (grub_term_output_class): Likewise.
37982 (grub_term_register_input): Changed to inline function.
37983 (grub_term_register_output): Likewise.
37984 (grub_term_unregister_input): Likewise.
37985 (grub_term_unregister_output): Likewise.
37986 (grub_term_set_current_input): Likewise.
37987 (grub_term_set_current_output): Likewise.
37988 (grub_term_get_current_input): Likewise.
37989 (grub_term_get_current_output): Likewise.
37990 (grub_term_iterate_input): Removed.
37991 (grub_term_iterate_output): Likewise.
37992
37993 * kern/term.c (grub_term_list_input): Removed.
37994 (grub_term_list_output): Likewise.
37995 (grub_term_input_class): New variable.
37996 (grub_term_output_class): Likewise.
50fb7002 37997 (grub_cur_term_input): Change variable as macro.
71b9f361 37998 (grub_cur_term_output): Likewise.
37999 (grub_term_register_input): Removed.
38000 (grub_term_register_output): Likewise.
38001 (grub_term_unregister_input): Likewise.
38002 (grub_term_unregister_output): Likewise.
38003 (grub_term_set_current_input): Likewise.
38004 (grub_term_set_current_output): Likewise.
38005 (grub_term_iterate_input): Likewise.
38006 (grub_term_iterate_output): Likewise.
38007 (grub_term_get_current_input): Likewise.
38008 (grub_term_get_current_output): Likewise.
38009
38010 * util/grub-editenv.c: Include header file <grub/handler.h>.
38011 (grub_term_get_current_input): Removed.
38012 (grub_term_get_current_output): Likewise.
38013 (grub_term_input_class): New variable.
50fb7002 38014 (grub_term_output_class): Likewise.
71b9f361 38015
38016 * util/grub-fstest.c (grub_term_get_current_input): Removed.
38017 (grub_term_get_current_output): Likewise.
38018 (grub_term_input_class): New variable.
50fb7002 38019 (grub_term_output_class): Likewise.
71b9f361 38020
38021 * util/grub-probe.c (grub_term_get_current_input): Removed.
38022 (grub_term_get_current_output): Likewise.
38023 (grub_term_input_class): New variable.
50fb7002 38024 (grub_term_output_class): Likewise.
71b9f361 38025
38026 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
38027 (grub_term_get_current_output): Likewise.
38028 (grub_term_input_class): New variable.
50fb7002 38029 (grub_term_output_class): Likewise.
71b9f361 38030
38031 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
38032 (terminal_mod_SOURCES): Likewise.
38033 (terminal_mod_CFLAGS): Likewise.
38034 (terminal_mod_LDFLAGS): Likewise.
38035
38036 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
38037 handler.c.
38038 (kernel_img_SOURCES): Add list.c and handler.c.
38039 (kernel_img_HEADERS): Add list.h and handler.h.
38040
38041 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
38042 handler.c.
38043 (kernel_mod_SOURCES): Add list.c and handler.c.
38044 (kernel_mod_HEADERS): Add list.h and handler.h.
38045
38046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
38047 handler.c.
38048 (kernel_elf_SOURCES): Add list.c and handler.c.
38049 (kernel_elf_HEADERS): Add list.h and handler.h.
38050
38051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
38052 handler.c.
38053 (kernel_elf_SOURCES): Add list.c and handler.c.
38054 (kernel_elf_HEADERS): Add list.h and handler.h.
38055
38056 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
38057 handler.c.
38058 (kernel_mod_SOURCES): Add list.c and handler.c.
38059 (kernel_mod_HEADERS): Add list.h and handler.h.
38060
38061 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
38062 handler.c.
38063 (kernel_elf_SOURCES): Add list.c and handler.c.
38064 (kernel_elf_HEADERS): Add list.h and handler.h.
38065
8a31787f 380662009-02-27 Robert Millan <rmh@aybabtu.com>
38067
38068 Factorize elf32 / elf64 code in Multiboot loader. This will
38069 prevent it from getting out of sync again.
38070
38071 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
38072 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
38073 grub_multiboot_load_elf64): Move from here ...
38074 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
38075 grub_multiboot_load_elf): ... to here (new file).
38076
51cd3dfc 380772009-02-27 Robert Millan <rmh@aybabtu.com>
38078
38079 * util/grub.d/10_linux.in: Rename "single-user mode" to
38080 "recovery mode".
38081
6e8c9c3a 380822009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
38083
38084 Don't leak in SCSI code.
38085 * disk/scsi.c (grub_scsi_close): free `scsi'.
38086
4b6bf4f9 380872009-02-27 Robert Millan <rmh@aybabtu.com>
38088
38089 * loader/i386/pc/multiboot.c: Move from here ...
38090 * loader/i386/multiboot.c: ... to here. Update all users.
38091
b9413424 380922009-02-27 Robert Millan <rmh@aybabtu.com>
38093
38094 Patch from Alexandre Bique <bique.alexandre@gmail.com>
38095 * util/i386/pc/grub-setup.c (setup): Fix directory path.
38096
50fb7002 380972009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 38098
38099 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
38100 b-tree.
38101
8cc50345 381022009-02-27 Robert Millan <rmh@aybabtu.com>
38103
38104 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
38105 `0x' qualifier as 0 when base is specified as parameter).
38106
6e09b8b7 381072009-02-24 Bean <bean123ch@gmail.com>
38108
38109 * configure.ac: Check for -mcmodel=large in x86_64 target.
38110
38111 * include/grub/efi/api.h (efi_call_10): New macro.
38112 (efi_wrap_10): New function.
38113
38114 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
38115 (GRUB_PE32_REL_BASED_HIGH): Likewise.
38116 (GRUB_PE32_REL_BASED_LOW): Likewise.
38117 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
38118 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
38119 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
38120 (GRUB_PE32_REL_BASED_SECTION): Likewise.
38121 (GRUB_PE32_REL_BASED_REL): Likewise.
38122 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
38123 (GRUB_PE32_REL_BASED_DIR64): Likewise.
38124 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
38125
38126 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
38127 issue.
38128
38129 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
38130 (efi_wrap_10): New function.
38131
38132 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
38133
38134 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
38135 MB/MBP model (NV chipset).
38136 (devdata_devs): Add devpath_5 to the list.
38137
38138 * load/i386/efi/linux.c (video_base): Remove variable.
38139 (RGB_MASK): New macro.
38140 (RGB_MAGIC): Likewise.
38141 (LINE_MIN): Likewise.
38142 (LINE_MAX): Likewise.
38143 (FBTEST_STEP): Likewise.
38144 (FBTEST_COUNT): Likewise.
38145 (fb_list): New variable.
38146 (grub_find_video_card): Remove function.
38147 (find_framebuf): New function.
38148 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
38149 line length.
38150
38151 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
38152 problem for x86_64.
38153
74b21bee 381542009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
38155
38156 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
38157
38158 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
38159 coding tool name.
38160
a455f472 381612009-02-22 Robert Millan <rmh@aybabtu.com>
38162
38163 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
38164 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
38165 in our relocation, instead of using it directly from heap. Also
38166 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
38167
6374daf3 381682009-02-21 Robert Millan <rmh@aybabtu.com>
38169
38170 Implement USB keyboard support (based on patch by Marco Gerards)
38171
38172 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
38173 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
38174 (usb_keyboard_mod_LDFLAGS): New variables.
38175
38176 * term/usb_keyboard.c: New file.
38177
8fa4ea70 381782009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
38179
38180 Corrected wrong declaration
38181
38182 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
38183
353976ac 381842009-02-14 Christian Franke <franke@computer.org>
38185
38186 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
38187 (grub_lspci_iter): Print class code and programming interface byte.
38188
6aa1169b 381892009-02-14 Christian Franke <franke@computer.org>
38190
38191 * gendistlist.sh: Ignore `.svn' directories.
38192
265372ca 381932009-02-14 Felix Zielcke <fzielcke@z-51.de>
38194
38195 * fs/fat.c: Add 2009 to Copyright line.
38196
9ff516f3 381972009-02-14 Christian Franke <franke@computer.org>
38198
38199 * commands/hdparm.c: New file. Provides `hdparm' command
38200 which sends ATA commands via grub_disk_ata_pass_through ().
38201
38202 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
38203
38204 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
38205 and <grub/cpu/io.h> to include/grub/ata.h.
38206 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
38207 (GRUB_CDROM_SECTOR_SIZE): Remove.
38208 (GRUB_ATA_*): Move to include/grub/ata.h.
38209 (GRUB_ATAPI_*): Likewise.
38210 (enum grub_ata_commands): Likewise.
38211 (enum grub_ata_timeout_milliseconds): Likewise.
38212 (struct grub_ata_device): Likewise.
38213 (grub_ata_regset): Likewise.
38214 (grub_ata_regget): Likewise.
38215 (grub_ata_regset2): Likewise.
38216 (grub_ata_regget2): Likewise.
38217 (grub_ata_check_ready): Likewise.
38218 (grub_ata_wait_not_busy): Remove static, exported in
38219 include/grub/ata.h.
38220 (grub_ata_wait_drq): Likewise.
38221 (grub_ata_pio_read): Likewise.
38222
38223 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
38224 function for hdparm.mod.
38225
38226 * include/grub/ata.h: New file, contains declarations from
38227 disk/ata.c.
38228 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
38229
38230 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
38231 (grub_disk_ata_pass_through): New exported variable.
38232
38233 * kern/disk.c (grub_disk_ata_pass_through): New variable.
38234
772e23da 382352009-02-13 Colin D Bennett <colin@gibibit.com>
38236
38237 Support multiple fallback entries, and provide an API to support
38238 executing default+fallback menu entries. Renamed the `terminal' menu
38239 viewer to `text'.
38240
38241 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
38242 variable declaration.
38243 (grub_menu_execute_callback): New structure declaration.
38244 (grub_menu_execute_callback_t): New typedef.
38245 (grub_menu_execute_with_fallback): New function declaration.
38246 (grub_menu_get_entry): Likewise.
38247 (grub_menu_get_timeout): Likewise.
38248 (grub_menu_set_timeout): Likewise.
38249
38250 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
38251
38252 * normal/menu.c (grub_wait_after_message): Moved to
38253 `normal/menu_text.c'.
38254 (draw_border): Likewise.
38255 (print_message): Likewise.
38256 (print_entry): Likewise.
38257 (print_entries): Likewise.
38258 (grub_menu_init_page): Likewise.
38259 (get_entry_number): Likewise.
38260 (print_timeout): Likewise.
38261 (run_menu): Likewise.
38262 (grub_menu_execute_entry): Likewise.
38263 (show_text_menu): Likewise.
38264 (get_and_remove_first_entry_number): New function.
38265 (grub_menu_execute_with_fallback): Likewise.
38266 (get_entry): Renamed to ...
38267 (grub_menu_get_entry): .. this and made it global.
38268 (get_timeout): Renamed to ...
38269 (grub_menu_get_timeout): ... this and made it global.
38270 (set_timeout): Renamed to ...
38271 (grub_menu_set_timeout): ... this and made it global.
38272 (grub_normal_terminal_menu_viewer): Renamed to ...
38273 (grub_normal_text_menu_viewer): ... this.
38274
38275 * normal/menu_text.c: New file. Extracted text-menu-specific code
38276 from normal/menu.c.
38277
38278 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
38279 (normal_mod_SOURCES): Likewise.
38280
38281 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38282 (normal_mod_SOURCES): Likewise.
38283
38284 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38285 (normal_mod_SOURCES): Likewise.
38286
38287 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
38288 (normal_mod_SOURCES): Likewise.
38289
38290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38291 (normal_mod_SOURCES): Likewise.
38292
38293 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38294 (normal_mod_SOURCES): Likewise.
38295
38296 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38297 (normal_mod_SOURCES): Likewise.
38298
16ac430e 382992009-02-11 Robert Millan <rmh@aybabtu.com>
38300
38301 * util/grub.d/00_header.in: Update old reference to `font' command.
38302
06ff20fc 383032009-02-10 Felix Zielcke <fzielcke@z-51.de>
38304
38305 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
38306
38307 Based on patch from Javier Martín.
38308
96da9407 383092009-02-09 Felix Zielcke <fzielcke@z-51.de>
38310
38311 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 38312 to avoid false positives with FAT.
96da9407 38313 (grub_fstest_SOURCES): Likewise.
38314 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38315 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38317 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38318 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38319 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38320
6dca6fe4 383212009-02-09 Felix Zielcke <fzielcke@z-51.de>
38322
06ff20fc 38323 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 38324 bpb.version_specific.fat12_or_fat16.fstype and
38325 bpb.version_specific.fat32.fstype.
38326
2550c62f 383272009-02-08 Robert Millan <rmh@aybabtu.com>
38328
be110b30 38329 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 38330
56978920 383312009-02-08 Robert Millan <rmh@aybabtu.com>
38332
38333 * Makefile.in (host_os, host_cpu): New variables.
38334 (target_os): Remove. Update all users.
38335
d64399b5 383362009-02-08 Marco Gerards <marco@gnu.org>
38337
38338 * Makefile.in (enable_grub_emu_usb): New variable.
38339 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
38340 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
38341 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
38342 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
38343 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
38344 `usbtest.mod' and `usbms.mod'.
38345 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
38346 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
38347 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
38348 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
38349 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
38350 variables.
38351
38352 * disk/usbms.c: New file.
38353
38354 * include/grub/usb.h: Likewise.
38355
38356 * include/grub/usbtrans.h: Likewise.
38357
38358 * include/grub/usbdesc.h: Likewise.
38359
38360 * bus/usb/usbtrans.c: Likewise.
38361
38362 * bus/usb/ohci.c: Likewise.
38363
38364 * bus/usb/uhci.c: Likewise.
38365
38366 * bus/usb/usbhub.c: Likewise.
38367
38368 * bus/usb/usb.c: Likewise.
38369
38370 * commands/usbtest.c: Likewise.
38371
38372 * util/usb.c: Likewise.
50fb7002 38373
d64399b5 38374 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
38375
38376 * configure.ac: Test for libusb presence.
50fb7002 38377
d64399b5 38378 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
38379
2b40d6bb 383802009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
38381
38382 * kern/mm.c: Add more comments.
38383
73a4ce81 383842009-02-08 Robert Millan <rmh@aybabtu.com>
38385
38386 Patch from Javier Martín.
38387 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
38388 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
38389
f821ce59 383902009-02-08 Robert Millan <rmh@aybabtu.com>
38391
38392 * fs/cpio.c: Split tar functionality to ...
38393 * fs/tar.c: ... here (new file). Update all users.
38394
aebfc4b0 383952009-02-07 Robert Millan <rmh@aybabtu.com>
38396
38397 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
38398 backward-incompatible features.
38399
38400 Based on patch from Javier Martín, with some adjustments.
38401
50fb7002 384022009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 38403
38404 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
38405
0bb5115e 384062009-02-07 Robert Millan <rmh@aybabtu.com>
38407
38408 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
38409 position of `disk/lvm.c' to ensure grub_init_all() always picks it
38410 after the RAID stuff.
38411
38a0f8e7 384122009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
38413
50fb7002 38414 Fixes problem when running vbetest command as reported by
38a0f8e7 38415 Vladimir Serbinenko <phcoder@gmail.com>.
38416
38417 * (grub_vbe_set_video_mode): Fixed problem with text modes.
38418
3143cc1c 384192009-02-04 Felix Zielcke <fzielcke@z-51.de>
38420
38421 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
38422 /dev/md/NpN style mdraid devices.
38423
9cba6fce 384242009-02-03 Felix Zielcke <fzielcke@z-51.de>
38425
38426 * util/unifont2pff.rb: Remove.
38427
e507a2c1 384282009-02-03 Felix Zielcke <fzielcke@z-51.de>
38429
38430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
38431 `#'.
38432
d2c2b4cd 384332009-02-03 Felix Zielcke <fzielcke@z-51.de>
38434
38435 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
38436 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38437 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38438 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38439 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38440 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38441 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38442
b4315fb0 384432009-02-02 Christian Franke <franke@computer.org>
38444
38445 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
38446
de3aa260 384472009-02-01 Felix Zielcke <fzielcke@z-51.de>
38448
7c3ff286 38449 * INSTALL: Note that we now require at least autoconf 2.59 and
38450 that LZO is optional.
de3aa260 38451
825a182b 384522009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38453
38454 Base on patch on bug #24154 created by Tomas Tintera
38455 <trosos@seznam.cz>.
38456
38457 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
38458
a69ef770 384592009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38460
7c3ff286 38461 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 38462 <bero@arklinux.org>.
38463
38464 * normal/parser.y (script_init): Add missing semicolon.
38465
6fa42fa6 384662009-01-31 Colin D Bennett <colin@gibibit.com>
38467
7c3ff286 38468 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 38469 (free_menu_entry_classes): Added.
38470 (grub_normal_menu_addentry): Added class property handling.
38471 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
38472 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
38473
38474 * normal/menu_viewer.c: New file.
38475
38476 * normal/menu.c (run_menu_entry): Renamed to ...
38477 (grub_menu_execute_entry): ... this and made it as global.
38478 (grub_menu_run): Renamed to ...
38479 (show_text_menu): ... this and made it local.
38480 (show_text_menu): Adapt to new function names.
38481 (grub_normal_terminal_menu_viewer): New global variable.
38482
38483 * include/grub/menu.h: New file.
38484
38485 * include/grub/menu_viewer.h: New file.
38486
38487 * include/grub/normal.h: Added include to grub/menu.h.
38488 (grub_menu_entry): Moved to include/grub/menu.h.
38489 (grub_menu_entry_t): Likewise.
38490 (grub_menu): Likewise.
38491 (grub_menu_t): Likewise.
38492 (grub_normal_terminal_menu_viewer): Added.
38493 (grub_menu_execute_entry): Likewise.
38494 (grub_menu_run): Removed.
38495
38496 * DISTLIST: Added include/grub/menu.h.
38497 Added include/grub/menu_viewer.h.
38498 Added normal/menu_viewer.c.
38499
385002009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
38501
38502 * normal/execute.c (grub_script_execute_menuentry): Changed to use
38503 arglist for menutitle arguments.
38504
38505 * normal/main.c (grub_normal_menu_addentry): Likewise.
38506
38507 * normal/parser.y (menuentry): Likewise.
38508
38509 * normal/script.c (grub_script_create_cmdmenu): Likewise.
38510
38511 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
38512 (grub_script_create_cmdmenu): Likewise.
38513
38514 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
38515
38516 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
38517 changes.
38518
38519 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
38520
38521 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
38522
38523 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
38524
38525 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38526
38527 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38528
38529 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38530
56192c23 385312009-01-30 Christian Franke <franke@computer.org>
38532
38533 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
38534 in option help text.
38535
d72521b3 385362009-01-27 Pavel Roskin <proski@gnu.org>
38537
38538 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
38539
994b5e84 385402009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38541
38542 * commands/lsmmap.c: Add include to grub/machine/memory.h.
38543
38544 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
38545
38546 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
38547 unregister function.
38548
6a7eab2c 385492009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38550
38551 * disk/scsi.c (grub_scsi_read): Fix sign problem.
38552
38553 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
38554
38555 * util/grub-mkfont.c (usage): Fix typo.
38556
38557 * util/elf/grub-mkimage.c (load_modules): Fix warning.
38558
1806b56e 385592009-01-26 Daniel Mierswa <impulze@impulze.org>
38560
3fb18f09 38561 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
38562
336e1fb9 38563 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
38564
1806b56e 38565 * kern/misc.c (grub_strcasecmp): New function.
38566 (grub_strcasecmp): Use grub_size_t instead of int for length.
38567 Fix return value.
38568 * include/grub/misc.h: Update function prototypes.
38569
580b2a0f 385702009-01-26 Robert Millan <rmh@aybabtu.com>
38571
38572 * configure.ac: Fix cross-compilation check.
ef257b36 38573
d31c24f1 385742009-01-22 Christian Franke <franke@computer.org>
38575
38576 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
38577 (precision) digit string. Allow `.format2' without `format1' (width).
38578 Limit input chars for `%s' output to `format2' if specified. This is
38579 compatible with standard printf ().
38580
3138b44c 385812009-01-22 Christian Franke <franke@computer.org>
38582
38583 * disk/ata.c (grub_ata_wait_status): Replace by ...
38584 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
38585 other status bits may be invalid while BSY is asserted.
38586 (grub_ata_check_ready): New function.
38587 (grub_ata_cmd): Removed.
38588 (grub_ata_wait_drq): New function.
38589 (grub_ata_strncpy): Remove inline.
38590 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
38591 and error check now done by grub_ata_wait_drq ().
38592 (grub_ata_pio_write): Likewise.
38593 (grub_atapi_identify): Set DEV before check for !BSY. Use
38594 grub_ata_wait_drq () to wait for data.
38595 (grub_ata_device_initialize): Add status register check to
38596 detect missing SATA slave devices. Add debug messages.
38597 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
38598 (grub_atapi_packet): Set DEV before check for !BSY. Replace
38599 transfer loop by grub_ata_pio_write ().
38600 (grub_ata_identify): Set DEV before check for !BSY. Use
38601 grub_ata_wait_drq () to wait for data.
ef257b36 38602 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 38603 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
38604 read/write in one loop. Fix invalid command on write. Fix incomplete
38605 command on (size % batch) == 0. Add missing error check after write of
38606 last block. Add debug messages.
38607 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
38608
59a64ef6 386092009-01-19 Christian Franke <franke@computer.org>
38610
38611 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
38612 (GRUB_ATAPI_IREASON_*): Likewise.
38613 (grub_ata_pio_write): Fix timeout error return.
38614 (grub_atapi_identify): Add grub_ata_wait () after cmd.
38615 (grub_atapi_wait_drq): New function.
38616 (grub_atapi_packet): New parameter `size'.
38617 Use grub_atapi_wait_drq () and direct write instead of
38618 grub_ata_pio_write ().
38619 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
38620 reads the number of bytes requested by the device for each DRQ
38621 assertion.
38622 (grub_atapi_write): Remove old implementation, return not
38623 implemented instead.
38624
1cfe20b3 386252009-01-19 Christian Franke <franke@computer.org>
38626
38627 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
38628 of 512 to calculate data size.
38629 (grub_scsi_read12): Likewise.
38630 (grub_scsi_write10): Likewise.
38631 (grub_scsi_write12): Likewise.
38632 (grub_scsi_read): Adjust size according to blocksize.
38633 Add checks for invalid blocksize and unaligned transfer.
38634
bee5fe5d 386352009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
38636
38637 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
38638
ef257b36 38639 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 38640 width glyphs.
38641
3e643f8c 386422009-01-19 Robert Millan <rmh@aybabtu.com>
38643
38644 * config.guess: Update to latest version from config git.
38645 * config.sub: Likewise.
38646
4fa80998 386472009-01-17 Felix Zielcke <fzielcke@z-51.de>
38648
38649 * Makefile.in: Change font compilation to use new grub-mkfont instead
38650 of java version.
38651
38652 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
38653 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38654 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38655 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38656 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38657 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38658 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38659 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38660 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38661
7086085b 386622009-01-16 Christian Franke <franke@computer.org>
38663
38664 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
38665 (enum grub_ata_timeout_milliseconds): New enum.
38666 (grub_ata_wait_status): Add parameter milliseconds.
38667 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
38668 recovery from timed-out commands.
38669 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
38670 return grub_errno instead of REG_ERROR.
38671 (grub_ata_pio_write): Add parameter milliseconds.
38672 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
38673 Pass milliseconds to grub_ata_wait_status () and
38674 grub_ata_pio_read ().
38675 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
38676 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
38677 grub_ata_wait_status (). Fix IDENTIFY timeout check.
38678 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
38679 It is not suitable for device detection, because DEV bit is ignored,
38680 the command may run too long, and not all devices set the signature
38681 properly.
38682 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
38683 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
38684 Fix device selection, DEV bit must be set first to address the registers
38685 of the correct device.
38686 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
38687 grub_ata_pio_read/write ().
38688 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
38689 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
38690
4a412913 386912009-01-13 Carles Pina i Estany <carles@pina.cat>
38692
38693 * util/grub-editenv.c (main): Use fseeko(), not fseek().
38694
7795c55e 386952009-01-13 Bean <bean123ch@gmail.com>
d913988c 38696
38697 * util/grub-mkfont.c (write_font): forget to remove some debug code.
38698
7795c55e 386992009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 38700
38701 * Makefile.in: (enable_grub_mkfont): New variable.
38702 (freetype_cflags): Likewise.
38703 (freetype_libs): Likewise.
38704
38705 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
38706 (grub_mkfont_SOURCES): New variable.
38707 (grub_mkfont_CFLAGS): Likewise.
38708 (grub_mkfont_LDFLAGS): Likewise.
38709
38710 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
38711 library if `--enable-grub-mkfont' is requested.
38712 (enable_grub_mkfont): New variable.
38713 (freetype_cflags): Likewise.
38714 (freetype_libs): Likewise.
38715
38716 * util/grub-mkfont.c: New file.
38717
093af1fe 387182009-01-12 Christian Franke <franke@computer.org>
38719
38720 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
38721 mode check. Fix setting of compat_use[].
38722
f36cc108 387232009-01-10 Robert Millan <rmh@aybabtu.com>
38724
38725 Update a few copyright years which we forgot to do in 2008 (only for
38726 files whose changes made in 2008 were copyright-significant)
38727
38728 * Makefile.in: Add 2008 to Copyright line.
38729 * disk/ieee1275/ofdisk.c: Likewise.
38730 * disk/efi/efidisk.c: Likewise.
38731 * kern/dl.c: Likewise.
38732 * kern/sparc64/ieee1275/init.c: Likewise.
38733 * kern/mm.c: Likewise.
38734 * kern/efi/mm.c: Likewise.
38735 * boot/i386/pc/boot.S: Likewise.
38736 * genfslist.sh: Likewise.
38737 * fs/iso9660.c: Likewise.
38738 * fs/hfs.c: Likewise.
38739 * fs/jfs.c: Likewise.
38740 * fs/minix.c: Likewise.
38741 * fs/ufs.c: Likewise.
38742 * gensymlist.sh.in: Likewise.
38743 * genkernsyms.sh.in: Likewise.
38744 * include/grub/misc.h: Likewise.
38745 * include/grub/types.h: Likewise.
38746 * include/grub/symbol.h: Likewise.
38747 * include/grub/elf.h: Likewise.
38748 * include/grub/kernel.h: Likewise.
38749 * include/grub/disk.h: Likewise.
38750 * include/grub/dl.h: Likewise.
38751 * include/grub/i386/linux.h: Likewise.
38752 * include/grub/i386/pc/biosdisk.h: Likewise.
38753 * include/grub/efi/api.h: Likewise.
38754 * include/grub/efi/pe32.h: Likewise.
38755 * include/grub/util/misc.h: Likewise.
38756 * normal/execute.c: Likewise.
38757 * normal/arg.c: Likewise.
38758 * normal/completion.c: Likewise.
38759 * normal/lexer.c: Likewise.
38760 * normal/parser.y: Likewise.
38761 * normal/misc.c: Likewise.
38762 * commands/i386/pc/vbeinfo.c: Likewise.
38763 * commands/hexdump.c: Likewise.
38764 * commands/terminal.c: Likewise.
38765 * commands/ls.c: Likewise.
38766 * commands/help.c: Likewise.
38767 * partmap/pc.c: Likewise.
38768 * loader/efi/chainloader.c: Likewise.
38769 * loader/multiboot_loader.c: Likewise.
38770 * loader/i386/pc/multiboot2.c: Likewise.
38771 * term/efi/console.c: Likewise.
38772 * term/i386/pc/serial.c: Likewise.
38773 * util/lvm.c: Likewise.
38774 * util/console.c: Likewise.
38775 * util/i386/efi/grub-mkimage.c: Likewise.
38776 * util/raid.c: Likewise.
38777
7f02114b 387782009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38779
38780 * commands/videotest.c: Removed include to grub/machine/memory.h.
38781
38782 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38783 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38784 (video_mod_SOURCES): Removed.
38785 (video_mod_CFLAGS): Likewise.
38786 (video_mod_LDFLAGS): Likewise.
38787 (gfxterm_mod_SOURCES): Likewise.
38788 (gfxterm_mod_CFLAGS): Likewise.
38789 (gfxterm_mod_LDFLAGS): Likewise.
38790 (videotest_mod_SOURCES): Likewise.
38791 (videotest_mod_CFLAGS): Likewise.
38792 (videotest_mod_LDFLAGS): Likewise.
38793 (bitmap_mod_SOURCES): Likewise.
38794 (bitmap_mod_CFLAGS): Likewise.
38795 (bitmap_mod_LDFLAGS): Likewise.
38796 (tga_mod_SOURCES): Likewise.
38797 (tga_mod_CFLAGS): Likewise.
38798 (tga_mod_LDFLAGS): Likewise.
38799 (jpeg_mod_SOURCES): Likewise.
38800 (jpeg_mod_CFLAGS): Likewise.
38801 (jpeg_mod_LDFLAGS): Likewise.
38802 (png_mod_SOURCES): Likewise.
38803 (png_mod_CFLAGS): Likewise.
38804 (png_mod_LDFLAGS): Likewise.
38805
38806 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38807 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38808 (video_mod_SOURCES): Added.
38809 (video_mod_CFLAGS): Likewise.
38810 (video_mod_LDFLAGS): Likewise.
38811 (videotest_mod_SOURCES): Likewise.
38812 (videotest_mod_CFLAGS): Likewise.
38813 (videotest_mod_LDFLAGS): Likewise.
38814 (bitmap_mod_SOURCES): Likewise.
38815 (bitmap_mod_CFLAGS): Likewise.
38816 (bitmap_mod_LDFLAGS): Likewise.
38817 (tga_mod_SOURCES): Likewise.
38818 (tga_mod_CFLAGS): Likewise.
38819 (tga_mod_LDFLAGS): Likewise.
38820 (jpeg_mod_SOURCES): Likewise.
38821 (jpeg_mod_CFLAGS): Likewise.
38822 (jpeg_mod_LDFLAGS): Likewise.
38823 (png_mod_SOURCES): Likewise.
38824 (png_mod_CFLAGS): Likewise.
38825 (png_mod_LDFLAGS): Likewise.
38826 (gfxterm_mod_SOURCES): Likewise.
38827 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 38828 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 38829
38830 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38831 grub/machine/console.h.
38832
644fff97 388332009-01-04 Jerone Young <jerone@gmail.com>
38834
38835 Make on screen instructions clearer
38836
38837 Based on patch created by Jidanni <jidanni@jidanni.org>
38838
38839 * normal/menu.c: print clearer instructions on the screen
38840
1e901a75 388412009-01-02 Colin D Bennett <colin@gibibit.com>
38842
38843 New font engine.
34c44600 38844
1e901a75 38845 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38846 build system and fixed gfxterm.c to work with different sized fonts.
38847
38848 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 38849
1e901a75 38850 * configure: Re-generated.
34c44600 38851
1e901a75 38852 * DISTLIST: Removed font/manager.c.
38853 Added font/font.c.
38854 Added font/font_cmd.c.
34c44600 38855
1e901a75 38856 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38857 compilation.
34c44600 38858
1e901a75 38859 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 38860
38861 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 38862
38863 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 38864
1e901a75 38865 * normal/menu.c: Likewise.
34c44600 38866
1e901a75 38867 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38868 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 38869
1e901a75 38870 * include/grub/font.h: Replaced with new file.
34c44600 38871
1e901a75 38872 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38873 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38874 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38875 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38876 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 38877 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 38878 fg_red, fg_green, fg_blue, fg_alpha.
38879 (grub_video_adapter): Removed blit_glyph.
34c44600 38880 (grub_video_blit_glyph): Removed.
38881
1e901a75 38882 * font/manager.c: Removed file.
34c44600 38883
38884 * font/font.c: New file.
38885
1e901a75 38886 * font/font_cmd.c: Likewise.
34c44600 38887
1e901a75 38888 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 38889
1e901a75 38890 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38891 (grub_video_vbe_map_rgba): Likewise.
38892 (grub_video_vbe_unmap_color_int): Likewise.
38893 (grub_video_vbe_blit_glyph): Removed.
38894 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 38895
1e901a75 38896 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38897 (get_pixel): Likewise.
34c44600 38898 (set_pixel): Likewise.
38899
1e901a75 38900 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 38901
1e901a75 38902 * term/gfxterm.c: Adapted to new font engine.
34c44600 38903
1e901a75 38904 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 38905
1e901a75 38906 * term/i386/pc/vga.c: Likewise.
34c44600 38907
1e901a75 38908 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 38909
1e901a75 38910 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 38911
1e901a75 38912 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38913
1e901a75 38914 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38915
1e901a75 38916 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 38917
1e901a75 38918 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 38919
1e901a75 38920 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 38921
1e901a75 38922 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 38923
1e901a75 38924 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38925
38926 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 38927
1e901a75 38928 * util/grub-mkconfig_lib.in: Changed font extension.
38929
278922e8 389302008-12-28 Felix Zielcke <fzielcke@z-51.de>
38931
38932 * util/getroot.c (grub_util_get_grub_dev): Add support for
38933 /dev/md/dNNpNN style partitionable mdraid devices.
38934
3ced05cf 389352008-12-12 Alex Smith <alex@alex-smith.me.uk>
38936
38937 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38938 at a time limit of the PXE TFTP API correctly.
38939 (grub_pxefs_close): Likewise.
38940
7fd0ee30 389412008-11-29 Robert Millan <rmh@aybabtu.com>
38942
34c44600 38943 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 38944 grub_ata_device_initialize() calls.
38945
34c44600 389462008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 38947
38948 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38949 iteration failed.
38950 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38951
89313780 389522008-11-28 Robert Millan <rmh@aybabtu.com>
38953
38954 Fix build on powerpc-ieee1275. Based on patch created by
38955 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38956 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38957 `kern/ieee1275/mmap.c'.
38958 * include/grub/powerpc/ieee1275/memory.h: New file.
38959
15257703 38960 Provide grub-install on coreboot.
38961 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38962 (grub_install_SOURCES): New variable.
38963 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38964 usable on coreboot.
38965
9fc5388a 389662008-11-25 Felix Zielcke <fzielcke@z-51.de>
38967
38968 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38969 to `grub_term_input_t'.
38970 (grub_term_get_current_output): Change return type to
38971 `grub_term_output_t'.
38972
bc3a2f31 389732008-11-22 Robert Millan <rmh@aybabtu.com>
38974
34c44600 38975 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 38976 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38977 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38978 grub_vga_text_cls().
38979
80fc88f2 38980 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 38981 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 38982
cbf36fd3 38983 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38984 to 0x200000 (avoids trouble with some OFW implementations, and matches
38985 with the one in Yaboot).
38986 Reported by Manoel Abranches
38987
73e8e268 389882008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 38989
38990 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38991 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38992
73e8e268 38993 * util/grub-mkconfig_lib.in (grub_warn): New function.
38994 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38995 warnings, to obtain consistent formatting.
38996 * util/grub.d/00_header.in: Likewise.
38997 * util/update-grub_lib.in: Likewise.
38998
e94045a1 38999 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 39000 Move comment text to `#error' stanza.
e94045a1 39001
79d29fd7 39002 Harmonize ieee1275's grub_available_iterate() with the generic
39003 grub_machine_mmap_iterate() interface (fixes a recently-introduced
39004 build problem on i386-ieee1275):
39005 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
39006 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
39007 parameter `type'. Update all users of this function.
39008 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39009 `kern/ieee1275/mmap.c'.
39010 * kern/ieee1275/init.c
39011 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
39012 with ...
39013 (grub_machine_mmap_iterate): ... this.
39014 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
39015 return type to `grub_err_t'. Update all implementations of this
39016 function prototype.
39017 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
39018 Likewise.
39019
60d6b16e 39020 Add `lsmmap' command (lists firmware-provided memory map):
39021 * commands/lsmmap.c: New file.
39022 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
39023 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
39024 variables.
39025 * conf/powerpc-ieee1275.rmk: Likewise.
39026 * conf/i386-coreboot.rmk: Likewise.
39027 * conf/i386-ieee1275.rmk: Likewise.
39028
ebaaf49b 390292008-11-19 Robert Millan <rmh@aybabtu.com>
39030
39031 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 39032 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
39033 constraints to initrd allocation (based on code from
39034 loader/i386/pc/linux.c). Without them, initrd was allocated too high
39035 for Linux to find it.
ebaaf49b 39036
dfab719f 390372008-11-14 Robert Millan <rmh@aybabtu.com>
39038
39039 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
39040 order to cope with duplicate slashes.
39041
10fc3eb9 390422008-11-14 Robert Millan <rmh@aybabtu.com>
39043
39044 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
39045 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
39046 don't want to mess with lower memory, because it is used in the Linux
39047 loader.
39048
39049 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 39050 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 39051 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
39052 is in our heap (probably as a result of it being corrupted during
2f2a3442 39053 decompression). Add #error instance with comment to explain why this
39054 loader isn't currently usable on PC/BIOS.
10fc3eb9 39055
e2e07847 390562008-11-14 Robert Millan <rmh@aybabtu.com>
39057
39058 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 39059 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 39060
fe8e8d69 390612008-11-12 Robert Millan <rmh@aybabtu.com>
39062
39063 Make loader/i386/linux.c buildable on i386-pc (although disabled).
39064
39065 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
39066 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
39067 from here ...
39068 * include/grub/i386/pc/memory.h: ... to here.
39069
976b07d0 390702008-11-12 Robert Millan <rmh@aybabtu.com>
39071
39072 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
39073 split).
39074
39075 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
39076 (grub_console_cur_color, grub_console_real_putchar)
39077 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
39078 (grub_console_setcolorstate, grub_console_setcolor)
39079 (grub_console_getcolor): Move from here ...
39080 * include/grub/i386/vga_common.h: ... to here (new file).
39081
39082 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
39083 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
39084 `<grub/i386/io.h>'.
39085 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
39086 `<grub/i386/vga_common.h>'.
39087
76679cd3 390882008-11-12 Robert Millan <rmh@aybabtu.com>
39089
39090 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
39091 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
39092 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
39093 variables.
39094 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
39095 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
39096
39097 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
39098 grub_console_init() with call to grub_vga_text_init().
39099 (grub_machine_fini): Replace call to
39100 grub_console_fini() with call to grub_vga_text_fini() and
39101 grub_at_keyboard_fini().
39102
39103 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
39104 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
39105 (grub_console_setcolorstate, grub_console_setcolor)
39106 (grub_console_getcolor): New function prototypes.
39107
39108 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
39109 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
39110 (grub_vga_text_setcursor): Static-ize.
39111 (grub_vga_text_term): New structure.
39112 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
39113
39114 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
39115 (grub_console_cur_color, grub_console_standard_color)
39116 (grub_console_normal_color, grub_console_highlight_color)
39117 (map_char, grub_console_putchar, grub_console_getcharwidth)
39118 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
39119 (grub_console_getcolor): Move from here ...
39120 * term/i386/vga_common.c: ... to here (same function names).
39121
95b841d3 391222008-11-12 Robert Millan <rmh@aybabtu.com>
39123
39124 Use newly-added Multiboot support in coreboot.
39125
39126 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
39127 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
39128
39129 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
39130 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
39131 (codestart): Store the MBI in `startup_multiboot_info' when we're
39132 being loaded using Multiboot.
39133
39134 * kern/i386/coreboot/init.c (grub_machine_init): Move
39135 grub_at_keyboard_init() call to beginning of function (useful for
39136 debugging). Call grub_machine_mmap_init() before attempting to use
39137 grub_machine_mmap_iterate().
39138 (grub_lower_mem, grub_upper_mem): Move from here ...
39139 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
39140 here (new file).
39141
39142 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
39143 function prototype.
39144
761ca975 391452008-11-12 Robert Millan <rmh@aybabtu.com>
39146
39147 Fix a regression introduced by the at_keyboard.mod split. Because
39148 some terminals are default on some platforms and non-default on
39149 others, the first terminal being registered determines which is
39150 going to be default.
39151
39152 * kern/term.c (grub_term_register_input): If this is the first
39153 terminal being registered, set it as the current one.
39154 (grub_term_register_output): Likewise.
39155
39156 * term/efi/console.c (grub_console_init): Do not call
39157 grub_term_set_current_output() or grub_term_set_current_input().
39158 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
39159 * term/i386/pc/console.c (grub_console_init): Likewise.
39160 (grub_console_fini): Do not call grub_term_set_current_input()
39161 (but leave grub_term_set_current_output() to restore text mode).
39162
6c529df7 391632008-11-10 Robert Millan <rmh@aybabtu.com>
39164
39165 * util/grub.d/00_header.in: Add backward compatibility check for
39166 versions of terminal.mod that don't understand `terminal_input' or
39167 `terminal_output'.
39168
132e4113 391692008-11-09 Robert Millan <rmh@aybabtu.com>
39170
39171 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
39172 `terminal_input' / `terminal_output', not `terminal'.
39173
ac293d50 391742008-11-08 Robert Millan <rmh@aybabtu.com>
39175
39176 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 39177 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 39178
0025933a 391792008-11-08 Robert Millan <rmh@aybabtu.com>
39180
39181 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 39182 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 39183 members. Update all users.
39184 * util/console.c (grub_ncurses_term): Split in ...
39185 (grub_ncurses_term_input): ... this, and ...
39186 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 39187 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 39188
37c86336 391892008-11-08 Robert Millan <rmh@aybabtu.com>
39190
39191 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
39192 (PKGDATA): Add $(pkgdata_SRCDIR).
39193 (pkglib_BUILDDIR): New variable.
39194 (pkgdata_SRCDIR): New variable.
39195 (build_env.mk): New target.
39196 (include_DATA): New variable.
39197 (install-local): Install $(include_DATA) files in $(includedir).
39198
b6c15a2d 391992008-11-07 Pavel Roskin <proski@gnu.org>
39200
d99d46f1 39201 * gendistlist.sh: Use C locale for sorting to ensure consistent
39202 output on all systems.
39203
b6c15a2d 39204 * util/grub.d/00_header.in: Remove incorrect space before
39205 "serial".
39206
c32ee8c9 392072008-11-07 Robert Millan <rmh@aybabtu.com>
39208
39209 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
39210 per specification.
39211 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
39212 * loader/multiboot_loader.c (find_multi_boot2_header): New function
39213 (based on find_multi_boot1_header).
39214 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
39215 using find_multi_boot2_header(), and abort if neither Multiboot or
39216 Multiboot headers were found.
39217
651c29b7 392182008-11-07 Robert Millan <rmh@aybabtu.com>
39219
39220 Modularize at_keyboard.mod:
39221
39222 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
39223 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
39224 (at_keyboard_mod_LDFLAGS): New variables.
39225
39226 Actual terminal split:
39227
39228 * include/grub/term.h (struct grub_term): Split in ...
39229 (struct grub_term_input): ... this, and ...
39230 (struct grub_term_output): ... this. Update all users.
39231 (grub_term_set_current): Split in ...
39232 (grub_term_set_current_input): ... this, and ...
39233 (grub_term_set_current_output): ... this.
39234 (grub_term_get_current): Split in ...
39235 (grub_term_get_current_input): ... this, and ...
39236 (grub_term_get_current_output): ... this.
39237 (grub_term_register): Split in ...
39238 (grub_term_register_input): ... this, and ...
39239 (grub_term_register_output): ... this.
39240 (grub_term_unregister): Split in ...
39241 (grub_term_unregister_input): ... this, and ...
39242 (grub_term_unregister_output): ... this.
39243 (grub_term_iterate): Split in ...
39244 (grub_term_iterate_input): ... this, and ...
39245 (grub_term_iterate_output): ... this.
39246
39247 * kern/term.c (grub_term_list): Split in ...
39248 (grub_term_list_input): ... this, and ...
39249 (grub_term_list_output): ... this. Update all users.
39250 (grub_cur_term): Split in ...
39251 (grub_cur_term_input): ... this, and ...
39252 (grub_cur_term_output): ... this. Update all users.
39253 (grub_term_set_current): Split in ...
39254 (grub_term_set_current_input): ... this, and ...
39255 (grub_term_set_current_output): ... this.
39256 (grub_term_get_current): Split in ...
39257 (grub_term_get_current_input): ... this, and ...
39258 (grub_term_get_current_output): ... this.
39259 (grub_term_register): Split in ...
39260 (grub_term_register_input): ... this, and ...
39261 (grub_term_register_output): ... this.
39262 (grub_term_unregister): Split in ...
39263 (grub_term_unregister_input): ... this, and ...
39264 (grub_term_unregister_output): ... this.
39265 (grub_term_iterate): Split in ...
39266 (grub_term_iterate_input): ... this, and ...
39267 (grub_term_iterate_output): ... this.
39268
39269 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
39270 a check for input and one for output (and only attempt to get keys
39271 from user when input works).
39272
39273 * util/grub-probe.c (grub_term_get_current): Split in ...
39274 (grub_term_get_current_input): ... this, and ...
39275 (grub_term_get_current_output): ... this.
39276 * util/grub-fstest.c: Likewise.
39277 * util/i386/pc/grub-setup.c: Likewise.
39278 * util/grub-editenv.c: Likewise.
39279
39280 Portability adjustments:
39281
39282 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
39283 `term/i386/pc/at_keyboard.c'.
39284 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
39285 grub_keyboard_controller_init() (now handled by terminal .init).
39286 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
39287 grub_at_keyboard_init().
39288 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
39289 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
39290 at_keyboard.mod via input terminal interface).
39291 * include/grub/i386/coreboot/console.h: Convert into a stub for
39292 `<grub/i386/pc/console.h>'.
39293
39294 Migrate full terminals to new API:
39295
39296 * term/efi/console.c (grub_console_term): Split into ...
39297 (grub_console_term_input): ... this, and ...
39298 (grub_console_term_output): ... this. Update all users.
39299 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
39300 (grub_ofconsole_init): Split into ...
39301 (grub_ofconsole_init_input): ... this, and ...
39302 (grub_ofconsole_init_output): ... this.
39303 (grub_ofconsole_term): Split into ...
39304 (grub_ofconsole_term_input): ... this, and ...
39305 (grub_ofconsole_term_output): ... this. Update all users.
39306 * term/i386/pc/serial.c (grub_serial_term): Split into ...
39307 (grub_serial_term_input): ... this, and ...
39308 (grub_serial_term_output): ... this. Update all users.
39309 * term/i386/pc/console.c (grub_console_term): Split into ...
39310 (grub_console_term_input): ... this, and ...
39311 (grub_console_term_output): ... this. Update all users.
39312 (grub_console_term_input): Only enable it on PC/BIOS platform.
39313 (grub_console_init): Remove grub_keyboard_controller_init() call.
39314
39315 Migrate input terminals to new API:
39316
39317 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
39318 `i386' and `i386/pc' to enable build on x86_64 (this driver is
39319 i386-specific anyway).
39320 (grub_console_checkkey): Rename to ...
39321 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
39322 users.
39323 (grub_keyboard_controller_orig): New variable.
39324 (grub_console_getkey): Rename to ...
39325 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
39326 users.
39327 (grub_keyboard_controller_init): Static-ize. Save original
39328 controller value so that it can be restored ...
39329 (grub_keyboard_controller_fini): ... here (new function).
39330 (grub_at_keyboard_term): New structure.
39331 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
39332 functions.
39333
39334 Migrate output terminals to new API:
39335
39336 * term/i386/pc/vga.c (grub_vga_term): Change type to
39337 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39338 members. Update all users.
39339 * term/gfxterm.c (grub_video_term): Change type to
39340 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39341 members. Update all users.
39342 * include/grub/i386/pc/console.h (grub_console_checkkey)
39343 (grub_console_getkey): Do not export (no longer needed by gfxterm,
39344 etc).
39345
39346 Migrate `terminal' command and userland tools to new API:
39347
39348 * commands/terminal.c (grub_cmd_terminal): Split into ...
39349 (grub_cmd_terminal_input): ... this, and ...
39350 (grub_cmd_terminal_output): ... this.
39351 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
39352 `terminal_input' and `terminal_output'.
39353 * util/grub.d/00_header.in: Adjust `terminal' calls to new
39354 `terminal_input' / `terminal_output' API.
39355 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
39356 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
39357 provided ${GRUB_TERMINAL}, convert it).
39358
96e5d876 393592008-11-04 Robert Millan <rmh@aybabtu.com>
39360
39361 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
39362 for FreeBSD.
39363 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
39364
556f3775 393652008-11-03 Bean <bean123ch@gmail.com>
39366
39367 * kern/elf.c (grub_elf32_load): Revert to previous code.
39368 (grub_elf64_load): Likewise.
39369
39370 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
39371
926b9823 393722008-11-01 Robert Millan <rmh@aybabtu.com>
39373
39374 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
39375 (TARGET_CPPFLAGS): Likewise.
39376 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
39377
1432e958 393782008-11-01 Carles Pina i Estany <carles@pina.cat>
39379
39380 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
39381
dba3f844 393822008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 39383
39384 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
39385 addition of objects until the code is not going to be able to fail.
39386
dba3f844 393872008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 39388
39389 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
39390 (add a missing NULL check, and correct them by moving the pointer
39391 operations after the actual check).
39392
7ab28c21 393932008-10-29 Robert Millan <rmh@aybabtu.com>
39394
39395 * util/i386/pc/grub-install.in: Handle empty string as output from
39396 make_system_path_relative_to_its_root().
39397
1b7748eb 393982008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
39399
39400 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
39401 circular metadata worst case scenario. If the metadata is circular
39402 then copy the wrap in place.
39403 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
39404 project lib/format_text/layout.h
39405 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
39406
c9618ab2 394072008-10-03 Felix Zielcke <fzielcke@z-51.de>
39408
7a36edca 39409 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 39410
bf981c62 394112008-10-03 Felix Zielcke <fzielcke@z-51.de>
39412
39413 * util/update-grub_lib.in: Mention filename in warning message.
39414
6d994591 394152008-09-29 Felix Zielcke <fzielcke@z-51.de>
39416
39417 * NEWS: Update for rename of update-grub to grub-mkconfig.
39418
18ade780 394192008-09-29 Felix Zielcke <fzielcke@z-51.de>
39420
39421 * util/update-grub_lib.in: Copy to ...
39422 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 39423 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 39424 * util/update-grub.in: Rename to ...
39425 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
39426 option. Add `--output' option to allow users to specify the generated
39427 configuration file. Default to stdout.
39428 (update_grub_dir): Rename to ...
39429 (grub_mkconfig_dir): ... this.
39430 (grub_cfg): Default to an empty string.
39431 * conf/common.rmk (update-grub): Rename to ...
39432 (grub-mkconfig): ... this.
39433 (update-grub_lib): Copy to ...
39434 (grub-mkconfig_lib): ... this.
39435 (update-grub_SCRIPTS): Copy to ...
39436 (grub-mkconfig_SCRIPTS): ... this. Update all users.
39437 (update-grub_DATA): Rename to ...
39438 (grub-mkconfig_DATA): ... this.
39439
556ce6ac 394402008-09-28 Robert Millan <rmh@aybabtu.com>
39441
39442 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
39443 to `modified'. Add the real `created' field.
39444 (grub_iso9660_uuid): Use `modified' rather than `created' for
39445 constructing the UUID.
39446
394472008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 39448
39449 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
39450 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
39451
92274e85 394522008-09-28 Bean <bean123ch@gmail.com>
39453
39454 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
39455 Thanks to Christian Franke for finding this bug.
39456
add6f17a 394572008-09-25 Robert Millan <rmh@aybabtu.com>
39458
39459 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
39460 instances of grub_util_get_disk_name() (see previous commit).
39461
d2a367b8 394622008-09-25 Robert Millan <rmh@aybabtu.com>
39463
39464 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
39465 `util/i386/get_disk_name.c'.
39466 * conf/i386-efi.rmk: Likewise.
39467 * conf/x86_64-efi.rmk: Likewise.
39468 * conf/i386-coreboot.rmk: Likewise.
39469 * conf/i386-ieee1275.rmk: Likewise.
39470 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
39471 `util/ieee1275/get_disk_name.c'.
39472 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
39473 * util/ieee1275/get_disk_name.c: Remove file.
39474 * util/i386/get_disk_name.c: Remove file.
39475 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
39476 "hd%d" for device.map entries, rather than using
39477 grub_util_get_disk_name().
39478
81a06771 394792008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 39480
39481 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
39482 warning.
39483 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
39484
5a004279 394852008-09-24 Carles Pina i Estany <carles@pina.cat>
39486
39487 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
39488 Changed to 0x5100.
39489 (GRUB_TERM_PPAGE): Changed to 0x4900.
39490
397093d3 394912008-09-24 Robert Millan <rmh@aybabtu.com>
39492
39493 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
39494 macros (they were i386-pc specific).
39495 * include/grub/sparc64/ieee1275/console.h: Likewise.
39496 * include/grub/efi/console.h: Likewise.
39497
a91b6c7c 394982008-09-22 Bean <bean123ch@gmail.com>
39499
39500 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
39501 resident and in attribute list.
39502
39503 * include/grub/ntfs.h (BMP_LEN): Removed.
39504
c40fd116 395052008-09-22 Bean <bean123ch@gmail.com>
39506
81a06771 39507 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 39508 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
39509
39510 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
39511 error occurs, as grub_disk_open will call grub_disk_close, which will
39512 call p->close (scsi).
39513
81a06771 395142008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 39515
39516 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
39517 (AC_PREREQ): Bumped to 2.59.
39518 (AC_TRY_COMPILE): Replace obsolete macro with ...
39519 (AC_COMPILE_IFELSE): ... this.
39520 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
39521 (AC_LINK_IFELSE): ... this.
39522
5dc43410 395232008-09-21 Felix Zielcke <fzielcke@z-51.de>
39524
39525 * autogen.sh: Add a call to `gendistlist.sh'.
39526
9035dce4 395272008-09-19 Christian Franke <franke@computer.org>
39528
39529 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
39530 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
39531 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
39532 Export __enable_execute_stack() to modules.
39533 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
39534 New function.
39535
7fd75377 395362008-09-09 Felix Zielcke <fzielcke@z-51.de>
39537
040030b3 39538 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
39539 Sort the list.
39540
395412008-09-09 Felix Zielcke <fzielcke@z-51.de>
39542
39543 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 39544 #include <grub/util/hostdisk.h>.
39545
89d5ffcf 395462008-09-08 Robert Millan <rmh@aybabtu.com>
39547
39548 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
39549 segments when their filesz is zero (grub_file_read() interprets
81a06771 39550 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 39551 Use `lowest_segment' rather than 0 for calculating the current
39552 segment load address.
39553
40da438f 395542008-09-08 Robert Millan <rmh@aybabtu.com>
39555
39556 * util/hostdisk.c (open_device): Replace a grub_util_info() call
39557 with grub_dprintf("hostdisk", ...), as it was so verbose that it
39558 clobbered useful information.
39559
ddbf5556 395602008-09-08 Robert Millan <rmh@aybabtu.com>
39561
39562 * include/grub/util/biosdisk.h: Move to ...
39563 * include/grub/util/hostdisk.h: ... here. Update all users.
39564 * util/biosdisk.c: Move to ...
39565 * util/hostdisk.c: ... here. Update all users.
39566
783d0f48 395672008-09-07 Robert Millan <rmh@aybabtu.com>
39568
39569 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
39570 variables.
39571 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
39572 and length can be stored directly in the `mbi->mmap_addr' and
39573 `mbi->mmap_length' struct fields.
39574
548e2ea5 395752008-09-07 Robert Millan <rmh@aybabtu.com>
39576
39577 * conf/i386.rmk: New file. Provides declaration for building
39578 `cpuid.mod'.
39579 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
39580 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
39581 variables.
39582 Include `conf/i386.mk'.
39583 * conf/i386-efi.rmk: Likewise.
39584 * conf/x86_64-efi.rmk: Likewise.
39585 * conf/i386-coreboot.rmk: Likewise.
39586 * conf/i386-ieee1275.rmk: Likewise.
39587
0ea85a37 395882008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
39589
39590 Based on patch created by Colin D Bennett <colin@gibibit.com>.
39591 Adds optimization support for BGR based modes.
39592
39593 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
39594 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39595 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39596 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39597 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39598 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39599 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39600 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39601 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39602 (grub_video_i386_vbeblit_index_index): Likewise.
39603 (grub_video_i386_vbeblit_replace_directN): Added.
39604 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39605 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39606 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39607 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39608 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39609 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 39610 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 39611 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39612 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39613 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39614 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39615 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39616 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
39617
39618 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
39619 (grub_video_i386_vbefill_R8G8B8): Likewise.
39620 (grub_video_i386_vbefill_index): Likewise.
39621 (grub_video_i386_vbefill_direct32): Added.
39622 (grub_video_i386_vbefill_direct24): Likewise.
39623 (grub_video_i386_vbefill_direct16): Likewise.
39624 (grub_video_i386_vbefill_direct8): Likewise.
39625
81a06771 39626 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 39627 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
39628 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
39629 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
39630 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
39631 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 39632
0ea85a37 39633 * video/video.c (grub_video_get_blit_format): Updated to use new
39634 blit formats. Added handling for 16 bit color modes.
81a06771 39635
39636 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 39637 fillers.
39638 (common_blitter): Updated to use new blitters.
39639
39640 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
39641 Removed.
39642 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39643 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39644 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39645 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39646 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39647 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39648 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39649 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39650 (grub_video_i386_vbeblit_index_index): Likewise.
39651 (grub_video_i386_vbeblit_replace_directN): Added.
39652 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39653 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39654 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39655 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39656 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39657 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
39658 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
39659 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39660 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39661 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39662 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39663 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39664 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 39665
0ea85a37 39666 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
39667 (grub_video_i386_vbefill_R8G8B8): Likewise.
39668 (grub_video_i386_vbefill_index): Likewise.
39669 (grub_video_i386_vbefill_direct32): Added.
39670 (grub_video_i386_vbefill_direct24): Likewise.
39671 (grub_video_i386_vbefill_direct16): Likewise.
39672 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 39673
0ea85a37 39674 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
39675 types.
81a06771 39676
0ea85a37 39677 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
39678 types.
81a06771 39679
0ea85a37 39680 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
39681 blitter types.
81a06771 39682
0ea85a37 39683 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
39684 types.
39685
e8a83df6 396862008-09-06 Felix Zielcke <fzielcke@z-51.de>
39687
39688 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
39689 RAID level 1.
39690
6bcd8ee5 396912008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 39692
6bcd8ee5 39693 * fs/iso9660.c (grub_iso9660_date): New structure.
39694 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
39695 (grub_iso9660_uuid): New function.
c375ae58 39696
59261157 396972008-09-05 Bean <bean123ch@gmail.com>
39698
39699 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
39700
39701 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
39702 insensitive bit for names in Win32 and Win32 & DOS namespace.
39703
39704 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
39705
39706 * include/grub/types.h (LONG_MAX): Likewise.
39707
58b6645a 397082008-09-04 Felix Zielcke <fzielcke@z-51.de>
39709
4ee55921 39710 * util/getroot.c: Include <config.h>.
39711 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
39712 add support for /dev/md/N devices and handle LVM double dash escaping.
39713
397142008-09-04 Felix Zielcke <fzielcke@z-51.de>
39715
39716 * config.guess: Update to latest version from config git.
39717 * config.sub: Likewise.
58b6645a 39718
9124f65d 397192008-09-03 Robert Millan <rmh@aybabtu.com>
39720
39721 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
39722 `disk->total_sectors'.
39723
81a06771 397242008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 39725
39726 * include/grub/normal.h: Fixed incorrect comment for
39727 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
39728
81a06771 397292008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 39730
39731 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
39732 values with defines.
39733
39734 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
39735 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
39736 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
39737 (GRUB_VBE_MODEATTR_COLOR): Likewise.
39738 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
39739 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
39740 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
39741 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
39742 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
39743 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
39744 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
39745 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
39746 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
39747 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
39748 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
39749 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
39750 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
39751 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
39752 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
39753
93d5cbf8 397542008-08-31 Robert Millan <rmh@aybabtu.com>
39755
39756 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
39757 declaration.
39758 (grub_multiboot): Fix a few warnings.
39759
21751d50 397602008-08-31 Robert Millan <rmh@aybabtu.com>
39761
39762 * loader/i386/pc/multiboot.c: Update comment not to say that
39763 boot_device support is unimplemented.
39764
e27a75c5 397652008-08-31 Robert Millan <rmh@aybabtu.com>
39766
39767 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39768 or memory map support are unimplemented.
39769
81a06771 397702008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 39771
39772 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39773
81a06771 397742008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 39775
39776 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39777 total video memory in 'vbeinfo' output; show color format details for
39778 each video mode.
39779
7c5d8d95 397802008-08-30 Pavel Roskin <proski@gnu.org>
39781
39782 * util/genmoddep.c: Remove for real this time.
39783 * DISTLIST: Remove util/genmoddep.c.
39784
4cebd25a 397852008-08-30 Robert Millan <rmh@aybabtu.com>
39786
39787 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39788 as required by Multiboot spec (it was already 4-byte aligned, but
39789 only by chance).
39790
b497a269 397912008-08-29 Pavel Roskin <proski@gnu.org>
39792
e3925185 39793 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39794 * kern/powerpc/ieee1275/startup.S: ... this.
39795 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39796 * DISTLIST: Likewise.
39797
b497a269 39798 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39799 grub/cpu/kernel.h. Add start label for consistency with other
39800 platforms. Add grub_prefix immediately after start. Add jump
39801 to the code after grub_prefix.
39802 * include/grub/powerpc/kernel.h: Provide valid values for
39803 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39804
6e5a42fe 398052008-08-29 Bean <bean123ch@gmail.com>
39806
39807 * configure.ac: Change host_os to cygwin for mingw.
39808 (asprintf): New check for function.
39809
39810 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39811 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39812
39813 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 39814 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 39815 sync, sleep and grub_util_get_disk_size for mingw.
39816
39817 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39818 to get size in mingw.
39819 (open_device): Use flag O_BINARY if it's defined.
39820 (find_root_device): Add dummy code for mingw.
39821
39822 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39823 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39824 (get_scsi_disk_name): Return 0 for mingw.
39825
39826 * util/hostfs.c: #include <grub/util/misc.h>.
39827 (grub_hostfs_open): Use "rb" flag to open file, use
39828 grub_util_get_disk_size to get disk size for mingw.
39829
39830 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39831 (asprintf): New function if HAVE_ASPRINTF is not set.
39832 (sync): New function for mingw.
39833 (sleep): Likewise.
39834 (grub_util_get_disk_size): Likewise.
39835
ab3f2673 398362008-08-28 Pavel Roskin <proski@gnu.org>
39837
39838 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39839 kern/time.c.
39840
1c282483 398412008-08-28 Robert Millan <rmh@aybabtu.com>
39842
39843 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39844
678e849c 398452008-08-28 Robert Millan <rmh@aybabtu.com>
39846
39847 Change find_grub_drive() syntax so it doesn't prevent it from
39848 detecting NULL names as errors.
39849
39850 * util/biosdisk.c (find_grub_drive): Move free slot search code
39851 from here ...
39852 (find_free_slot): ... to here.
39853 (read_device_map): Use find_free_slot() to search for free slots.
39854
965c75ca 398552008-08-27 Marco Gerards <marco@gnu.org>
39856
39857 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39858 (scsi_mod_SOURCES): New variable.
39859 (scsi_mod_CFLAGS): Likewise
39860 (scsi_mod_LDFLAGS): Likewise.
39861
39862 * disk/scsi.c: New file.
39863
39864 * include/grub/scsi.h: Likewise.
39865
39866 * include/grub/scsicmd.h: Likewise.
39867
39868 * disk/ata.c: Include <grub/scsi.h>.
39869 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39870 instead.
39871 (grub_ata_iterate): Skip ATAPI devices.
39872 (grub_ata_open): Only handle ATAPI devices.
39873 (struct grub_atapi_read): Removed.
39874 (grub_atapi_readsector): Likewise.
39875 (grub_ata_read): No longer handle ATAPI devices.
39876 (grub_ata_write): Likewise.
39877 (grub_atapi_iterate): New function.
39878 (grub_atapi_read): Likewise.
39879 (grub_atapi_write): Likewise.
39880 (grub_atapi_open): Likewise.
39881 (grub_atapi_close): Likewise.
39882 (grub_atapi_dev): New variable.
39883 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39884 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39885
39886 * include/grub/disk.h (enum grub_disk_dev_id): Add
39887 `GRUB_DISK_DEVICE_SCSI_ID'.
39888
c07ae501 398892008-08-26 Robert Millan <rmh@aybabtu.com>
39890
39891 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39892 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39893 descriptive.
39894
5ed20adc 398952008-08-23 Bean <bean123ch@gmail.com>
39896
39897 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39898 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39899 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39900 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39901 dm_nv.mod.
39902 (raid5rec_mod_SOURCES): New macro.
39903 (raid5rec_mod_CFLAGS): Likewise.
39904 (raid5rec_mod_LDFLAGS): Likewise.
39905 (raid6rec_mod_SOURCES): Likewise.
39906 (raid6rec_mod_CFLAGS): Likewise.
39907 (raid6rec_mod_LDFLAGS): Likewise.
39908 (mdraid_mod_SOURCES): Likewise.
39909 (mdraid_mod_CFLAGS): Likewise.
39910 (mdraid_mod_LDFLAGS): Likewise.
39911 (dm_nv_mod_SOURCES): Likewise.
39912 (dm_nv_mod_CFLAGS): Likewise.
39913 (dm_nv_mod_LDFLAGS): Likewise.
39914
39915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39916 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39917 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39918
39919 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39920 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39921
39922 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39923
39924 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39925
39926 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39927
39928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39929
39930 * disk/raid5_recover.c: New file.
39931
39932 * disk/raid6_recover.c: Likewise.
39933
39934 * disk/mdraid_linux.c: Likewise.
39935
39936 * disk/dmraid_nvidia.c: Likewise.
39937
39938 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39939 ULONG_MAX.
39940
39941 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39942 calculate the size of raid device.
39943 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39944 different layout of raid5.
39945 (grub_raid_scan_device): Remove code specific to mdraid.
39946 (grub_raid_list): New variable.
39947 (free_array): New function.
39948 (grub_raid_register): Likewise.
39949 (grub_raid_unregister): Likewise.
39950 (grub_raid_rescan): Likewise.
39951 (GRUB_MOD_INIT): Don't iterate device here.
39952 (GRUB_MOD_FINI): Use free_array to release resource.
39953
39954 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39955 (grub_raid5_recover_func_t): New function variable type.
39956 (grub_raid6_recover_func_t): Likewise.
39957 (grub_raid5_recover_func): New variable.
39958 (grub_raid6_recover_func): Likewise.
39959 (grub_raid_register): New function.
39960 (grub_raid_unregister): Likewise.
39961 (grub_raid_rescan): Likewise.
39962 (grub_raid_block_xor): Likewise.
39963
39964 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39965 (CMD_CRC): New macro.
39966 (part): Removed.
39967 (read_file): Handle device as well as file.
39968 (cmd_crc): New function.
39969 (fstest): Handle multiple disks.
39970 (options): Remove part, raw and long, add root and diskcount.
39971 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 39972 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 39973 add handling for the new options, support multiple disks.
39974
39975 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39976
29c18915 399772008-08-23 Bean <bean123ch@gmail.com>
39978
39979 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39980
39981 * genfslist.sh: Ignore kernel.mod.
39982
39983 * genpartmaplist.sh: Likewise.
39984
8415f261 399852008-08-23 Robert Millan <rmh@aybabtu.com>
39986
39987 * util/getroot.c (find_root_device): Skip anything that starts with
39988 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39989
d5a7dc5b 399902008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 39991
d5a7dc5b 39992 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39993 * util/grub.d/00_header.in: Allow the administrator to change default
39994 gfxmode via ${GRUB_GFXMODE}.
39995
380cfbb4 399962008-08-21 Felix Zielcke <fzielcke@z-51.de>
39997
39998 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39999
c9baafe7 400002008-08-21 Robert Millan <rmh@aybabtu.com>
40001
40002 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
40003 loader.
40004 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
40005 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
40006
e290bef2 400072008-08-20 Carles Pina i Estany <carles@pina.cat>
40008
40009 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
40010 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
40011
f9dbfc96 400122008-08-19 Robert Millan <rmh@aybabtu.com>
40013
40014 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
40015 (struct grub_virtual_screen): Remove `cursor_color'.
40016 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
40017 initialization.
40018 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
40019
dd6bd6ab 400202008-08-18 Robert Millan <rmh@aybabtu.com>
40021
40022 Unify (identical) linux_normal.c files.
40023 * loader/i386/efi/linux_normal.c: Move from here ...
40024 * loader/linux_normal.c: ... to here. Update all users.
40025 * loader/i386/pc/linux_normal.c: Delete. Update all users.
40026 * loader/i386/ieee1275/linux_normal.c: Likewise.
40027
7f42f83e 400282008-08-18 Robert Millan <rmh@aybabtu.com>
40029
40030 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
40031 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
40032 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
40033 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
40034 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
40035 New macros.
40036 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
40037 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
40038 (GRUB_LINUX_CL_END_OFFSET): ... to here.
40039 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
40040 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
40041 (GRUB_EFI_CL_END_OFFSET): Rename to ...
40042 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
40043 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
40044 Initialize `params->video_cursor_x' and `params->video_cursor_y'
40045 portably using grub_getxy().
40046 Replace `-EFI' with `-bzImage' in boot message.
40047
38487ddb 400482008-08-17 Robert Millan <rmh@aybabtu.com>
40049
40050 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
40051
deceb3ec 400522008-08-17 Robert Millan <rmh@aybabtu.com>
40053
40054 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
40055
40056 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
40057 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
40058 (grub_machine_mmap_iterate): New function declaration.
40059 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
40060 structure.
40061 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
40062 macros.
40063
40064 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
40065 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
40066 Move e820 parsing from here ...
40067 * kern/i386/pc/mmap.c: New file.
40068 (grub_machine_mmap_iterate): ... to here.
40069
40070 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
40071 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
40072 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
40073 (grub_available_iterate): Redeclare to return `void', and redeclare
40074 its hook to use grub_uint64_t as addr and size parameters, and rename
40075 to ...
40076 (grub_machine_mmap_iterate): ... this. Update all users.
40077
40078 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
40079 to make it more readable. Rename to ...
40080 (grub_machine_mmap_iterate): ... this.
40081
40082 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
40083 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
40084 (grub_multiboot): Allocate an extra region after the payload, and fill
40085 it with a Multiboot memory map. Adjust a.out loader to calculate size
40086 with the extra space.
40087 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
40088 with the extra space.
40089
f8aa0f43 400902008-08-17 Carles Pina i Estany <carles@pina.cat>
40091
9807deb9 40092 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 40093
605f5bb6 400942008-08-17 Felix Zielcke <fzielcke@z-51.de>
40095
40096 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
40097 mdate-sh to the list `find' searches for.
40098 * DISTLIST: Regenerated.
40099
210db6c6 401002008-08-16 Felix Zielcke <fzielcke@z-51.de>
40101
40102 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
40103 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 40104 genmoddep.awk, gensymlist.sh.in.
40105 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 40106 * DISTLIST: Regenerated.
48cdbfd4 40107 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 40108
1082b929 401092008-08-16 Robert Millan <rmh@aybabtu.com>
40110
40111 * disk/raid.c (grub_raid_init): Handle/report errors set by
40112 grub_device_iterate().
40113 * disk/lvm.c (grub_lvm_init): Likewise.
40114
42ce5170 401152008-08-15 Bean <bean123ch@gmail.com>
40116
40117 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
40118 and datehook.mod.
40119 (datetime_mod_SOURCES): New macro.
40120 (datetime_mod_CFLAGS): Likewise.
40121 (datetime_mod_LDFLAGS): Likewise.
40122 (date_mod_SOURCES): Likewise.
40123 (date_mod_CFLAGS): Likewise.
40124 (date_mod_LDFLAGS): Likewise.
40125 (datehook_mod_SOURCES): Likewise.
40126 (datehook_mod_CFLAGS): Likewise.
40127 (datehook_mod_LDFLAGS): Likewise.
40128
40129 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
40130 and datehook.mod.
40131 (datetime_mod_SOURCES): New macro.
40132 (datetime_mod_CFLAGS): Likewise.
40133 (datetime_mod_LDFLAGS): Likewise.
40134 (date_mod_SOURCES): Likewise.
40135 (date_mod_CFLAGS): Likewise.
40136 (date_mod_LDFLAGS): Likewise.
40137 (datehook_mod_SOURCES): Likewise.
40138 (datehook_mod_CFLAGS): Likewise.
40139 (datehook_mod_LDFLAGS): Likewise.
40140
40141 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
40142 and datehook.mod.
40143 (datetime_mod_SOURCES): New macro.
40144 (datetime_mod_CFLAGS): Likewise.
40145 (datetime_mod_LDFLAGS): Likewise.
40146 (date_mod_SOURCES): Likewise.
40147 (date_mod_CFLAGS): Likewise.
40148 (date_mod_LDFLAGS): Likewise.
40149 (datehook_mod_SOURCES): Likewise.
40150 (datehook_mod_CFLAGS): Likewise.
40151 (datehook_mod_LDFLAGS): Likewise.
40152
40153 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
40154 and datehook.mod.
40155 (datetime_mod_SOURCES): New macro.
40156 (datetime_mod_CFLAGS): Likewise.
40157 (datetime_mod_LDFLAGS): Likewise.
40158 (date_mod_SOURCES): Likewise.
40159 (date_mod_CFLAGS): Likewise.
40160 (date_mod_LDFLAGS): Likewise.
40161 (datehook_mod_SOURCES): Likewise.
40162 (datehook_mod_CFLAGS): Likewise.
40163 (datehook_mod_LDFLAGS): Likewise.
40164
40165 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
40166 and datehook.mod.
40167 (datetime_mod_SOURCES): New macro.
40168 (datetime_mod_CFLAGS): Likewise.
40169 (datetime_mod_LDFLAGS): Likewise.
40170 (date_mod_SOURCES): Likewise.
40171 (date_mod_CFLAGS): Likewise.
40172 (date_mod_LDFLAGS): Likewise.
40173 (datehook_mod_SOURCES): Likewise.
40174 (datehook_mod_CFLAGS): Likewise.
40175 (datehook_mod_LDFLAGS): Likewise.
40176
40177 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
40178
40179 * commands/date.c: New file.
40180
40181 * hook/datehook.c: Likewise.
40182
40183 * include/grub/lib/datetime.h: Likewise.
40184
40185 * include/grub/i386/cmos.h: Likewise.
40186
40187 * lib/datetime.c: Likewise.
40188
40189 * lib/i386/datetime.c: Likewise.
40190
40191 * lib/efi/datetime.c: Likewise.
40192
0e9242da 401932008-08-14 Robert Millan <rmh@aybabtu.com>
40194
40195 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
40196 (grub_mkelfimage_SOURCES): New variable.
40197 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
40198
40199 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
40200 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
40201 * conf/powerpc-ieee1275.rmk: Likewise.
40202 * conf/i386-ieee1275.rmk: Likewise.
40203
40204 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
40205 * kern/i386/coreboot/init.c: Likewise.
40206
40207 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
40208 with `<grub/cpu/kernel.h>'.
40209 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
40210 to ...
40211 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
40212 * kern/i386/coreboot/startup.S: Likewise.
40213
40214 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
40215 (GRUB_MOD_GAP): Remove.
40216 * include/grub/powerpc/kernel.h: New file.
40217 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
40218 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
40219 * include/grub/i386/kernel.h: New file.
40220 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
40221 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
40222 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
40223
40224 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
40225 `grub-mkelfimage'.
40226 Use --directory when invoking grub_mkimage.
40227
40228 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
40229 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
40230 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
40231 and GRUB_KERNEL_CPU_PREFIX.
40232
b86408f8 402332008-08-14 Felix Zielcke <fzielcke@z-51.de>
40234
d5e619ca 40235 * include/grub/err.h (grub_err_printf): New function prototype.
40236 * util/misc.c (grub_err_printf): New function.
40237 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
40238 grub_printf.
40239 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 40240
7161f0e0 402412008-08-13 Robert Millan <rmh@aybabtu.com>
40242
40243 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
40244
a1967522 402452008-08-13 Robert Millan <rmh@aybabtu.com>
40246
40247 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
40248 boot entry.
40249
371458b5 402502008-08-12 Robert Millan <rmh@aybabtu.com>
40251
40252 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
40253 of the relocation code from here ...
40254 (grub_multiboot): ... to here.
40255 (forward_relocator, backward_relocator): Move from here ...
40256 * kern/i386/loader.S (grub_multiboot_forward_relocator)
40257 (grub_multiboot_backward_relocator): ... to here.
40258 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
40259 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
40260 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
40261 (grub_multiboot_forward_relocator_end)
40262 (grub_multiboot_backward_relocator)
40263 (grub_multiboot_backward_relocator_end): New variables.
40264
05f9452b 402652008-08-12 Bean <bean123ch@gmail.com>
40266
40267 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
40268
20024ab0 402692008-08-11 Robert Millan <rmh@aybabtu.com>
40270
40271 * kern/i386/linuxbios/startup.S: Move from here ...
40272 * kern/i386/coreboot/startup.S: ... to here.
40273
40274 * kern/i386/linuxbios/init.c: Move from here ...
40275 * kern/i386/coreboot/init.c: ... to here.
40276
40277 * kern/i386/linuxbios/table.c: Move from here ...
40278 * kern/i386/coreboot/mmap.c: ... to here.
40279
40280 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
40281
e352e9cd 402822008-08-11 Robert Millan <rmh@aybabtu.com>
40283
40284 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
40285 errors. Leave it to the upper layer to handle them.
40286
2d05bc6a 402872008-08-09 Christian Franke <franke@computer.org>
40288
40289 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
40290 * conf/common.rmk: Install `grub-pe2elf' only if requested.
40291 Install `grub.d/10_windows' only on Cygwin.
40292 * configure.ac: Add subst of `target_os'.
40293 Check `target_os' also before setting TARGET_OBJ2ELF.
40294 Add `--enable-grub-pe2elf'.
40295
042bd419 402962008-08-08 Robert Millan <rmh@aybabtu.com>
40297
40298 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40299 (grub_last_time): Change type to grub_uint64_t.
40300 (grub_disk_open): Migrate code from to using grub_get_time_ms().
40301 (grub_disk_close): Likewise.
40302
40303 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40304 (run_menu): Migrate code from to using grub_get_time_ms().
40305
40306 * util/misc.c (grub_get_time_ms): New function.
40307
7f280db5 403082008-08-08 Marco Gerards <marco@gnu.org>
40309
40310 * disk/ata.c (grub_ata_regget): Change return type to
40311 `grub_uint8_t'.
40312 (grub_ata_regget2): Likewise.
40313 (grub_ata_wait_status): New function.
40314 (grub_ata_wait_busy): Removed function, updated all users to use
40315 `grub_ata_wait_status'.
40316 (grub_ata_wait_drq): Likewise.
40317 (grub_ata_cmd): New function.
40318 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
40319 error handling.
40320 (grub_ata_pio_write): Add error handling.
40321 (grub_atapi_identify): Likewise.
40322 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
40323 handling.
40324 (grub_ata_identify): Use `grub_ata_cmd' and improve error
40325 handling. Actually use the detected registers. Reorder the
40326 detection logic such that it is easier to read.
40327 (grub_ata_pciinit): Do not assign the same ID to each controller.
40328 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
40329 handling.
40330 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
40331
40332 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
40333
1fbc5e66 403342008-08-08 Marco Gerards <marco@gnu.org>
40335
40336 * NEWS: Update.
40337
819ce6c0 403382008-08-07 Bean <bean123ch@gmail.com>
40339
40340 * include/grub/x86_64/pci.h: New file.
40341
5c41d44d 403422008-08-07 Christian Franke <franke@computer.org>
40343
40344 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
40345 (TIMER2_GATE): Likewise.
40346 (grub_pit_wait): Add enable/disable of the timer2 gate
40347 bit of port 0x61. This fixes a possible infinite loop.
40348
5ebc275d 403492008-08-07 Bean <bean123ch@gmail.com>
40350
40351 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
40352 kern/i386/tsc.c and kern/i386/pit.c.
40353
40354 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
40355 x86_64 platform.
40356
40357 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
40358 <grub/i386/tsc.h>.
40359
40360 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
40361
e383b3d0 403622008-08-07 Bean <bean123ch@gmail.com>
40363
40364 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
40365
40366 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
40367
40368 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
40369 multiple inclusion. Add #include <grub/types.h>.
40370
1cbb58ac 403712008-08-06 Christian Franke <franke@computer.org>
40372
40373 * conf/common.rmk: Build and install `10_windows'.
40374 * util/grub.d/10_windows.in: New script.
40375
337f5a1e 403762008-08-06 Pavel Roskin <proski@gnu.org>
40377
40378 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
40379
057bc4ac 403802008-08-06 Robert Millan <rmh@aybabtu.com>
40381
40382 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
40383 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
40384
2b99f123 403852008-08-06 Bean <bean123ch@gmail.com>
40386
40387 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
40388 (grub_pxefs_fs_int): Remove dummy definition.
40389 (grub_pxefs_open): Use data->block_size to store the current block
40390 size setting.
40391 (grub_pxefs_read): Use block size stored in data->block_size. As the
40392 value of grub_pxe_blksize can be changed after the file is opened.
40393
9f0234cb 403942008-08-06 Bean <bean123ch@gmail.com>
40395
40396 * fs/i386/pc/pxe.c (curr_file): new variable.
40397 (grub_pxefs_open): Simply the handling of pxe file system. Don't
40398 require the dummy internal file system anymore.
40399 (grub_pxefs_read): Removed.
40400 (grub_pxefs_close): Likewise.
40401 (grub_pxefs_fs_int): Likewise.
40402 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
40403 connection when we switch file.
40404 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
40405
a55d42e0 404062008-08-06 Robert Millan <rmh@aybabtu.com>
40407
40408 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
40409 `halt.mod'.
40410 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
40411 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
40412
40413 * kern/i386/halt.c: New file.
40414 * kern/i386/reboot.c: Likewise.
40415 * include/grub/i386/reboot.h: Likewise.
40416 * include/grub/i386/halt.h: Likewise.
40417
40418 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
40419 Include `<grub/cpu/halt.h>'.
40420 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
40421 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
40422
40423 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
40424 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
40425 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
40426 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
40427 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
40428 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
40429 from here ...
40430 * include/grub/i386/at_keyboard.h: ... to here.
40431
24371d26 404322008-08-05 Robert Millan <rmh@aybabtu.com>
40433
40434 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
40435 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
40436 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
40437 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40438 `kern/generic/millisleep.c'.
40439
40440 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
40441 instead of grub_get_rtc().
40442 (grub_tsc_init): Initialize `tsc_boot_time'.
40443
40444 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
40445 (grub_machine_init): Use grub_tsc_init() rather than
40446 installing an RTC-based handler via grub_install_get_time_ms().
40447
40448 * kern/i386/pit.c: New file.
40449 * include/grub/i386/pit.h: Likewise.
40450
9e7007b3 404512008-08-05 Bean <bean123ch@gmail.com>
40452
40453 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
40454
40455 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
40456 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
40457 (pxe_mod_SOURCES): New macro.
40458 (pxe_mod_CFLAGS): Likewise.
40459 (pxe_mod_LDFLAGS): Likewise.
40460 (pxecmd_mod_SOURCES): Likewise.
40461 (pxecmd_mod_CFLAGS): Likewise.
40462 (pxecmd_mod_LDFLAGS): Likewise.
40463
40464 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
40465 (grub_pxe_call): Likewise.
40466
40467 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
40468
40469 * commands/i386/pc/pxecmd.c: New file.
40470
9f0234cb 40471 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 40472
40473 * include/grub/i386/pc/pxe.h: Likewise.
40474
6977d49f 404752008-08-05 Bean <bean123ch@gmail.com>
40476
40477 * util/console.c (grub_console_cur_color): New variable.
40478 (grub_console_standard_color): Likewise.
40479 (grub_console_normal_color): Likewise.
40480 (grub_console_highlight_color): Likewise.
40481 (color_map): Likewise.
40482 (use_color): Likewise.
40483 (NUM_COLORS): New macro.
40484 (grub_ncurses_setcolorstate): Handle color properly.
40485 (grub_ncurses_setcolor): Don't change color here, just remember the
40486 settings, color will be set in grub_ncurses_setcolorstate.
40487 (grub_ncurses_getcolor): New function.
40488 (grub_ncurses_init): Initialize color pairs.
40489 (grub_ncurses_term): New member grub_ncurses_getcolor.
40490
9c2ff3ee 404912008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 40492
9c2ff3ee 40493 High resolution timer support. Implemented for x86 CPUs using TSC.
40494 Extracted generic grub_millisleep() so it's linked in only as needed.
40495 This requires a Pentium compatible CPU; if the RDTSC instruction is
40496 not supported, then it falls back on the generic grub_get_time_ms()
40497 implementation that uses the machine's RTC.
40498
40499 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
40500 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40501 `kern/generic/millisleep.c'.
40502
40503 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
40504 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
40505
40506 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
40507 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
40508
40509 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40510
40511 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40512 `kern/generic/millisleep.c'.
40513
40514 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40515
40516 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
40517
40518 * kern/generic/rtc_get_time_ms.c: New file.
40519
40520 * kern/generic/millisleep.c: New file.
337f5a1e 40521
9c2ff3ee 40522 * kern/misc.c: Don't include
40523 <kern/time.h> anymore.
40524 (grub_millisleep_generic): Removed.
40525
40526 * commands/sleep.c (grub_interruptible_millisleep): Uses
40527 grub_get_time_ms() instead of grub_get_rtc().
40528
40529 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
40530 function.
40531 (grub_cpu_is_cpuid_supported): New inline function.
40532 (grub_cpu_is_tsc_supported): New inline function.
40533 (grub_tsc_init): New function prototype.
40534 (grub_tsc_get_time_ms): New function prototype.
40535
40536 * kern/i386/tsc.c (grub_get_time_ms): New file.
40537
40538 * include/grub/time.h: Include <grub/types.h.
40539 (grub_millisleep_generic): Removed.
40540 (grub_get_time_ms): New prototype.
40541 (grub_install_get_time_ms): New prototype.
40542 (grub_rtc_get_time_ms): New prototype.
40543
40544 * kern/time.c (grub_get_time_ms): New function.
40545 (grub_install_get_time_ms): New function.
40546
40547 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
40548 <grub/time.h> anymore.
40549 (grub_millisleep): Removed.
40550 (grub_machine_init): Call grub_tsc_init.
40551
40552 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
40553 get_time_ms() implementation.
40554
40555 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
40556 (ieee1275_get_time_ms): New function.
40557 (grub_machine_init): Install get_time_ms() implementation.
40558
40559 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
40560 (grub_machine_init): Call grub_tsc_init().
40561 (grub_millisleep): Removed.
bf06a93f 40562
9c2ff3ee 40563 * kern/ieee1275/init.c (grub_millisleep): Removed.
40564 (grub_machine_init): Install ieee1275_get_time_ms()
40565 implementation.
40566 (ieee1275_get_time_ms): New function.
40567 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
40568 real work.
40569
9ec92aaf 405702008-08-05 Marco Gerards <marco@gnu.org>
40571
40572 * disk/ata.c: Include <grub/pci.h>.
40573 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
40574 (grub_ata_initialize): Rewritten.
40575 (grub_ata_device_initialize): New function.
40576
8d23f507 405772008-08-04 Pavel Roskin <proski@gnu.org>
40578
40579 * kern/main.c: Include grub/mm.h.
40580
5e15ee3d 405812008-08-04 Robert Millan <rmh@aybabtu.com>
40582
40583 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
40584 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
40585 corruption problem).
40586
a9053f8f 405872008-08-04 Robert Millan <rmh@aybabtu.com>
40588
40589 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
40590 warnings introduced in my last commit.
40591
dd19c7d7 405922008-08-03 Robert Millan <rmh@aybabtu.com>
40593
40594 Make PCI available on all i386 architectures.
40595
40596 * include/grub/i386/pc/pci.h: Move from here ...
40597 * include/grub/i386/pci.h: ... to here.
40598
40599 * include/grub/i386/pc/pci.h: Remove.
40600 * include/grub/i386/efi/pci.h: Remove.
40601 * include/grub/x86_64/efi/pci.h: Remove.
40602
40603 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
40604 `<grub/cpu/pci.h>'.
40605
40606 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
40607 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
40608 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
40609
40610 * conf/i386-ieee1275.rmk: Likewise.
40611
e14a6184 406122008-08-03 Robert Millan <rmh@aybabtu.com>
40613
40614 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
40615 (grub_console_setcursor): Make it possible to set cursor off.
40616
52768e37 406172008-08-03 Robert Millan <rmh@aybabtu.com>
40618
40619 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
40620 of modules instead of assuming which platform provides what.
40621 * util/update-grub.in: Likewise.
40622
2d52f57f 406232008-08-03 Robert Millan <rmh@aybabtu.com>
40624
40625 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
40626 instead of `grub_install_dos_part' to determine whether a drive needs
40627 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 40628 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 40629
2a5cd121 406302008-08-02 Robert Millan <rmh@aybabtu.com>
40631
40632 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
40633
93808428 406342008-08-02 Robert Millan <rmh@aybabtu.com>
40635
40636 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
40637 of informational grub_dprintf() calls.
40638
3bd0a12a 406392008-08-02 Robert Millan <rmh@aybabtu.com>
40640
40641 * disk/memdisk.c (memdisk_size): Don't initialize.
40642 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
40643
40644 * include/grub/i386/pc/kernel.h
40645 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
40646 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
40647 (grub_memdisk_image_size, grub_arch_memdisk_addr)
40648 (grub_arch_memdisk_size): Remove.
40649
40650 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
40651 field (was only used to transfer a constant). Add `type' field to
40652 support multiple module types.
40653 (grub_module_iterate): New function.
40654
40655 * kern/device.c (grub_device_open): Do not hide error messages
40656 when grub_disk_open() fails. Use grub_print_error() instead.
40657
40658 * kern/i386/pc/init.c (grub_arch_modules_addr)
40659 (grub_arch_memdisk_size): Remove functions.
40660 (grub_arch_modules_addr): Return the module address in high memory
40661 (now that it isn't copied anymore).
40662
40663 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
40664 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
40665 decompression routine (grub_total_module_size already includes that
40666 now). Don't copy modules back to low memory.
40667
40668 * kern/main.c: Include `<grub/mm.h>'.
40669 (grub_load_modules): Split out (and use) ...
40670 (grub_module_iterate): ... this function, which iterates through
40671 module objects and runs a hook.
40672 Comment out grub_mm_init_region() call, as it would cause non-ELF
40673 modules to be overwritten.
40674
40675 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
40676 the memdisk image in its own region, make it part of the module list.
40677 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
40678 (main): Parse --memdisk|-m option, and pass user-provided path as
40679 parameter to generate_image().
40680 (add_segments): Pass `memdisk_path' down to load_modules().
40681 (load_modules): Embed memdisk image in module section when requested.
40682 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
40683 `header.type' instead of `header.offset'.
40684
40685 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
40686 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
40687 (memdisk_mod_LDFLAGS): New variables.
40688 * conf/i386-coreboot.rmk: Likewise.
40689 * conf/i386-ieee1275.rmk: Likewise.
40690
a927cc73 406912008-08-02 Robert Millan <rmh@aybabtu.com>
40692
40693 * loader/i386/pc/multiboot.c (playground, forward_relocator)
40694 (backward_relocator): New variables. Used to allocate and relocate
40695 the payload, respectively.
40696 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 40697 address, install the appropriate relocator code in each bound of
a927cc73 40698 the payload, and set the entry point such that
40699 grub_multiboot_real_boot() will jump to one of them.
40700
40701 * kern/i386/loader.S (grub_multiboot_payload_size)
40702 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40703 (grub_multiboot_payload_entry_offset): New variables.
40704 (grub_multiboot_real_boot): Set cpu context to what the relocator
40705 expects, and jump to the relocator instead of the payload.
40706
40707 * include/grub/i386/loader.h (grub_multiboot_payload_size)
40708 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40709 (grub_multiboot_payload_entry_offset): Export.
40710
b15d8a0c 407112008-08-01 Bean <bean123ch@gmail.com>
40712
40713 * normal/menu_entry.c (editor_getline): Don't return the original
40714 string as result, as it will be released by lexer once it has done
40715 using it.
40716
cdfb3d22 407172008-08-01 Robert Millan <rmh@aybabtu.com>
40718
40719 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
40720 within menuentries, not before them.
40721 util/grub.d/10_hurd.in: Likewise.
40722
9175e93d 407232008-08-01 Bean <bean123ch@gmail.com>
40724
40725 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
40726 (bufio_mod_SOURCES): New macro.
40727 (bufio_mod_CFLAGS): Likewise.
40728 (bufio_mod_LDFLAGS): Likewise.
40729
40730 * include/grub/bufio.h: New file.
40731
40732 * io/bufio.c: Likewise.
40733
40734 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
40735 (grub_video_reader_png): Use grub_buffile_open to open file.
40736
40737 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
40738 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
40739
40740 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
40741 (grub_video_reader_tga): Use grub_buffile_open to open file.
40742
40743 * font/manager.c: Include <grub/bufio.h>.
40744 (add_font): Use grub_buffile_open to open file.
40745
3d8383e7 407462008-07-31 Robert Millan <rmh@aybabtu.com>
40747
40748 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
40749 ELF segments, use a macro for arbitrarily accessing any of them instead
40750 of preparing a pointer that allows access to one at a time.
40751 (grub_multiboot_load_elf64): Likewise.
40752
16e641b6 407532008-07-31 Bean <bean123ch@gmail.com>
40754
40755 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
40756 GRUB_KERNEL_MACHINE_DATA_END.
40757
59198b72 407582008-07-30 Robert Millan <rmh@aybabtu.com>
40759
40760 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
40761 Increase from 0x50 to 0x60.
40762 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
40763 use UUIDs to identify the root drive for them. If that's not
40764 possible, abort.
40765 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40766 check, for cross-disk installs.
40767
ae88bca3 407682008-07-30 Robert Millan <rmh@aybabtu.com>
40769
40770 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40771 is non-empty, use it to set the `prefix' environment variable instead
40772 of the usual approach.
40773 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40774 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40775 environment variable instead of dummy make_install_device().
40776
40777 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40778 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 40779 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 40780
40781 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40782 New variable reference.
40783 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40784 New macro. Defines offset of `grub_prefix' within startup.S (relative
40785 to `start').
40786 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40787 section within startup.S (relative to `start').
40788 * include/grub/i386/coreboot/kernel.h: Likewise.
40789
40790 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40791 Overwrite grub_prefix with its contents, at the beginning of the
40792 first segment.
40793 (main): Understand -p|--prefix.
40794
14f41dd1 407952008-07-30 Robert Millan <rmh@aybabtu.com>
40796
40797 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40798
4ca049a3 407992008-07-30 Robert Millan <rmh@aybabtu.com>
40800
40801 * term/i386/pc/vga_text.c (grub_console_cls): Use
40802 grub_console_gotoxy() to go back to beginning of the screen.
40803 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40804
2921d337 408052008-07-29 Christian Franke <franke@computer.org>
40806
40807 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40808 Add conversion of emulated mount points on Cygwin.
40809
b609876d 408102008-07-29 Christian Franke <franke@computer.org>
40811
40812 * util/update-grub.in: Add a check for admin
40813 group on Cygwin.
40814 Remove old `grub.cfg.new' before creation.
40815 Add `-f' to `mv' to handle the different filesystem
40816 semantics of Windows.
40817
e93e4679 408182008-07-29 Bean <bean123ch@gmail.com>
40819
40820 * normal/main.c (get_line): Fix buffer overflow bug.
40821
41694fd0 408222008-07-28 Robert Millan <rmh@aybabtu.com>
40823
40824 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40825 (struct grub_apple_header): New struct. Describes the layout of
40826 the partmap header.
40827 (apple_partition_map_iterate): Check the header magic as well as the
40828 partition magic (which was already being checked).
40829
cfd0b4e6 408302008-07-28 Pavel Roskin <proski@gnu.org>
40831
40832 * genmk.rb: Add a warning to the beginning of the output that
40833 it's a generated file and should not be edited.
40834
93cce016 408352008-07-28 Robert Millan <rmh@aybabtu.com>
40836
40837 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40838 with the same number are found, just use issue a warning with
40839 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 40840
cd1df915 408412008-07-27 Robert Millan <rmh@aybabtu.com>
40842
40843 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40844 information.
40845
b70a8427 408462008-07-27 Bean <bean123ch@gmail.com>
40847
40848 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40849 (grub_fat_find_dir): Ignore case when comparing filename.
40850
8f5e379f 408512008-07-27 Bean <bean123ch@gmail.com>
40852
40853 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40854 smallino, as it's more descriptive, and i8count can be confused with
40855 the other field count.
40856 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40857 inode type.
40858
a85cd5a0 408592008-07-27 Bean <bean123ch@gmail.com>
40860
40861 * commands/crc.c: New file.
40862
40863 * lib/crc.c: Likewise.
40864
40865 * include/grub/lib/crc.h: Likewise.
40866
40867 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40868
40869 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40870 (hexdump): Move this function to ...
40871
40872 * lib/hexdump.c: ... here.
40873
40874 * include/grub/hexdump.h: Renamed to ...
40875
40876 * include/grub/lib/hexdump.h: ... this.
40877
40878 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40879
40880 * util/grub-editenv.c: Likewise.
40881
40882 * include/envblk.h: Renamed to ...
40883
40884 * include/lib/envblk.h: ... this.
40885
40886 * util/envblk.c: Renamed to ...
40887
40888 * lib/envblk.c: ... this.
40889
40890 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40891 lib/hexdump.c.
40892 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40893 (pkglib_MODULES): Add crc.mod.
40894 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40895 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40896 (crc_mod_SOURCES): New macro.
40897 (crc_mod_CFLAGS): Likewise.
40898 (crc_mod_LDFLAGS): Likewise.
40899
40900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40901
40902 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40903
40904 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40905
40906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40907
40908 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40909
c298def0 409102008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 40911
40912 * commands/help.c: Include <grub/term.h>.
40913 (TERM_WIDTH): Removed. Updated all users.
40914
cc349fb3 409152008-07-27 Pavel Roskin <proski@gnu.org>
40916
40917 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40918 spurious warnings about a comment within a comment.
40919
9051607e 409202008-07-25 Robert Millan <rmh@aybabtu.com>
40921
40922 * util/getroot.c (find_root_device): Skip devices that match
40923 /dev/dm-[0-9]. This lets the real device be found for any type of
40924 abstraction (LVM, EVMS, RAID..).
40925 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40926 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40927 device is found first, find_root_device() will now skip it.
40928
01453bfc 409292008-07-24 Pavel Roskin <proski@gnu.org>
40930
40931 * include/grub/types.h: Use __builtin_bswap32() and
40932 __builtin_bswap64() with gcc 4.3 and newer.
40933
6af9849f 409342008-07-24 Christian Franke <franke@computer.org>
40935
3a0fa256 40936 * util/i386/pc/grub-install.in: If `--debug' is specified,
40937 pass `--verbose' to grub-setup.
40938 Abort script if make_system_path_relative_to_its_root() fails.
40939
7810e747 409402008-07-24 Bean <bean123ch@gmail.com>
40941
40942 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40943 variable `target_platform' should be `platform'.
40944
42290e17 409452008-07-24 Bean <bean123ch@gmail.com>
40946
51cc5193 40947 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 40948 (grub_png_init_fixed_block): New function.
40949 (grub_png_decode_image_data): Handle fixed huffman code compression.
40950
2a8a80e4 409512008-07-24 Bean <bean123ch@gmail.com>
40952
40953 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40954 (grub_pe2elf_SOURCES): New macro.
40955 (CLEANFILES): Add grub-pe2elf.
40956
40957 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40958 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40959 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40960 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40961 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40962 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40963 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40964 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40965 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40966 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40967 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40968 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40969 (GRUB_PE32_DT_FUNCTION): Likewise.
40970 (GRUB_PE32_REL_I386_DIR32): Likewise.
40971 (GRUB_PE32_REL_I386_REL32): Likewise.
40972 (grub_pe32_symbol): New structure.
40973 (grub_pe32_reloc): Likewise.
40974
40975 * util/grub-pe2elf.c: New file.
40976
40977 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40978 start symbol in non pc platform.
40979
40980 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40981
40982 The following patches are from Christian Franke.
40983
40984 * include/grub/dl.h: Remove .previous, gas supports this only
40985 for ELF format.
40986
40987 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40988 Remove .type, gas supports this only for ELF format.
40989
40990 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40991 nullbytes in symbol table. This fixes an infinite loop if table is
40992 zero filled.
40993
40994 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40995 TARGET_IMG_LDFLAGS and EXEEXT.
40996
40997 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40998 TARGET_IMG_LDFLAGS_AC.
40999 (grub_CHECK_STACK_ARG_PROBE): New function.
41000
41001 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
41002
41003 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
41004
41005 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
41006 to set TARGET_IMG_LD* accordingly.
41007 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
41008 Add call to grub_CHECK_STACK_ARG_PROBE.
41009 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
41010
41011 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
41012
41013 * genmk.rb: Add EXEEXT to CLEANFILES.
41014
12ccdb75 410152008-07-23 Robert Millan <rmh@aybabtu.com>
41016
41017 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
41018 define the codes for arrows and lines used for the menu).
41019 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
41020 as well.
41021
41022 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
41023 fonts, because the latter are too slow.
41024
18eeaf04 410252008-07-21 Bean <bean123ch@gmail.com>
41026
41027 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
41028 a20. Run keyboard test last, as it will cause macbook to halt.
41029
b095e2ad 410302008-07-18 Pavel Roskin <proski@gnu.org>
41031
41032 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
41033 load foreign architecture modules correctly anyway. Keep
41034 support for loading host architecture modules, whether we
41035 compile them or not.
41036
737feb35 410372008-07-17 Pavel Roskin <proski@gnu.org>
41038
3f4ce737 41039 * configure.ac: Use -m32 or -m64 regardless of whether we had to
41040 change target_cpu. The compiler default can mismatch target_cpu
41041 in any case.
41042
4ad2d049 41043 * disk/efi/efidisk.c: Fix format warnings on x86_64.
41044 * kern/efi/efi.c: Likewise.
41045
f6130a12 41046 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
41047 target compiler is functional.
41048 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
41049 are set up.
41050
58393a2d 41051 * configure.ac: Default to efi platform for x86_64-apple. Allow
41052 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
41053 adjustments from the rest, only do them if target is not
41054 explicitly given. Merge other adjustments with the final sanity
41055 check. Remove an extraneous check for supported CPU. Be
41056 specific which CPU and which platform is not supported.
41057
737feb35 41058 * configure.ac: Default to pc platform for x86_64.
41059
546f966a 410602008-07-17 Robert Millan <rmh@aybabtu.com>
41061
41062 Partial LinuxBIOS -> Coreboot rename.
41063
41064 * conf/i386-linuxbios.rmk: Renamed to ...
41065 * conf/i386-coreboot.rmk: ... this.
41066 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
41067 * configure.ac: Accept "coreboot" as input platform (but maintain
41068 compatibility with "linuxbios").
41069 * include/grub/i386/linuxbios: Renamed to ...
41070 * include/grub/i386/coreboot: ... this.
41071
20011694 410722008-07-17 Bean <bean123ch@gmail.com>
41073
41074 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 41075 (appleldr_mod_SOURCE): New variable.
20011694 41076 (appleldr_mod_CFLAGS): Likewise.
41077 (appleldr_mod_LDFLAGS): Likewise.
41078 (pci_mod_SOURCES): Likewise.
41079 (pci_mod_CFLAGS): Likewise.
41080 (pci_mod_LDFLAGS): Likewise.
41081 (lspci_mod_SOURCES): Likewise.
41082 (lspci_mod_CFLAGS): Likewise.
41083 (lspci_mod_LDFLAGS): Likewise.
41084
41085 * conf/x86_64-efi.rmk: New file.
41086
41087 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
41088 macro.
41089 (grub_efidisk_write): Likewise.
41090
41091 * include/efi/api.h (efi_call_0): New macro.
41092 (efi_call_1): Likewise.
41093 (efi_call_2): Likewise.
41094 (efi_call_3): Likewise.
41095 (efi_call_4): Likewise.
41096 (efi_call_5): Likewise.
41097 (efi_call_6): Likewise.
41098
41099 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
41100 grub_rescue_cmd_chainloader.
41101
41102 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
41103 (grub_pe32_optional_header): Change some fields based on i386 or
41104 x86_64 platform.
41105 (GRUB_PE32_PE32_MAGIC): Likewise.
41106
41107 * include/grub/efi/uga_draw.h: New file.
41108
41109 * include/grub/elf.h (STN_ABS): New constant.
41110 (R_X86_64_NONE): Relocation constant for x86_64.
41111 (R_X86_64_64): Likewise.
41112 (R_X86_64_PC32): Likewise.
41113 (R_X86_64_GOT32): Likewise.
41114 (R_X86_64_PLT32): Likewise.
41115 (R_X86_64_COPY): Likewise.
41116 (R_X86_64_GLOB_DAT): Likewise.
41117 (R_X86_64_JUMP_SLOT): Likewise.
41118 (R_X86_64_RELATIVE): Likewise.
41119 (R_X86_64_GOTPCREL): Likewise.
41120 (R_X86_64_32): Likewise.
41121 (R_X86_64_32S): Likewise.
41122 (R_X86_64_16): Likewise.
41123 (R_X86_64_PC16): Likewise.
41124 (R_X86_64_8): Likewise.
41125 (R_X86_64_PC8): Likewise.
41126
41127 * include/grub/i386/efi/pci.h: New file.
41128
41129 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
41130 Change it value based on platform.
41131 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
41132 (GRUB_E820_RAM): Likewise.
41133 (GRUB_E820_RESERVED): Likewise.
41134 (GRUB_E820_ACPI): Likewise.
41135 (GRUB_E820_NVS): Likewise.
41136 (GRUB_E820_EXEC_CODE): Likewise.
41137 (GRUB_E820_MAX_ENTRY): Likewise.
41138 (grub_e820_mmap): New structure.
41139 (linux_kernel_header): Change the efi field according to different
41140 kernel version, also field from linux_kernel_header.
41141
41142 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
41143
41144 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
41145 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
41146 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
41147 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
41148 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
41149 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
41150 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
41151 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
41152 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
41153 (GRUB_PCI_ADDR_IO_MASK): Likewise.
41154
41155 * include/grub/x86_64/efi/kernel.h: New file.
41156
41157 * include/grub/x86_64/efi/loader.h: Likewise.
41158
41159 * include/grub/x86_64/efi/machine.h: Likewise.
41160
41161 * include/grub/x86_64/efi/pci.h: Likewise.
41162
41163 * include/grub/x86_64/efi/time.h: Likewise.
41164
41165 * include/grub/x86_64/linux.h: Likewise.
41166
41167 * include/grub/x86_64/setjmp.h: Likewise.
41168
41169 * include/grub/x86_64/time.h: Likewise.
41170
41171 * include/grub/x86_64/types.h: Likewise.
41172
41173 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
41174 GRUB_TARGET_SIZEOF_VOID_P.
41175
41176 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
41177 (grub_efi_locate_handle): Likewise.
41178 (grub_efi_open_protocol): Likewise.
41179 (grub_efi_set_text_mode): Likewise.
41180 (grub_efi_stall): Likewise.
41181 (grub_exit): Likewise.
41182 (grub_reboot): Likewise.
41183 (grub_halt): Likewise.
41184 (grub_efi_exit_boot_services): Likewise.
41185 (grub_get_rtc): Likewise.
41186
41187 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
41188 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
41189 (grub_efi_allocate_pages): Wrap efi calls.
41190 (grub_efi_free_pages): Wrap efi calls.
41191 (grub_efi_get_memory_map): Wrap efi calls.
41192
41193 * kern/x86_64/dl.c: New file.
41194
41195 * kern/x86_64/efi/callwrap.S: Likewise.
41196
41197 * kern/x86_64/efi/startup.S: Likewise.
41198
41199 * loader/efi/appleloader.c: Likewise.
41200
41201 * loader/efi/chainloader.c (cmdline): New variable.
41202 (grub_chainloader_unload): Wrap efi calls.
41203 (grub_chainloader_boot): Likewise.
41204 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
41205 command line.
41206
41207 * loader/efi/chainloader_normal.c (chainloader_command):
41208 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
41209 command line.
41210
41211 * loader/i386/efi/linux.c (allocate_pages): Change allocation
41212 method.
41213 (grub_e820_add_region): New function.
41214 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
41215 booting.
41216 (grub_find_video_card): New function.
41217 (grub_linux_setup_video): New function.
41218 (grub_rescue_cmd_linux): Probe for video information.
41219
41220 * normal/x86_64/setjmp.S: New file.
41221
41222 * term/efi/console.c (map_char): New function.
41223 (grub_console_putchar): Map unicode char.
41224 (grub_console_checkkey): Wrap efi calls.
41225 (grub_console_getkey): Likewise.
41226 (grub_console_getwh): Likewise.
41227 (grub_console_gotoxy): Likewise.
41228 (grub_console_cls): Likewise.
41229 (grub_console_setcolorstate): Likewise.
41230 (grub_console_setcursor): Likewise.
41231
41232 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
41233
59652a20 412342008-07-16 Pavel Roskin <proski@gnu.org>
41235
ef294055 41236 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
41237 format strings.
41238
59652a20 41239 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
41240 pointer, not an integer. This fixes a warning and prevents
41241 precision loss on 64-bit systems.
41242 (relocate_addresses): Remove unneeded cast.
41243
afc3b5d7 412442008-07-15 Pavel Roskin <proski@gnu.org>
41245
506b2b3e 41246 * kern/i386/ieee1275/init.c: Include grub/cache.h.
41247
62ead89c 41248 * term/ieee1275/ofconsole.c: Disable code unused on i386.
41249
c4cd51d7 41250 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
41251 Fix comparison between signed and unsigned.
41252
0d3d8f28 41253 * include/grub/i386/ieee1275/console.h: Declare
41254 grub_console_init() and grub_console_fini().
41255
8804b286 41256 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
41257 It's empty and unused.
41258
ee01cf35 41259 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
41260 beginning to avoid warnings with some compilers.
41261
afc3b5d7 41262 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
41263 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
41264
e4e8eaa5 412652008-07-14 Pavel Roskin <proski@gnu.org>
41266
407aceb4 41267 * kern/env.c (grub_register_variable_hook): Don't copy empty
41268 string, it leaks memory. Pass "" to grub_env_set(), it should
41269 handle constant strings.
41270
e4e8eaa5 41271 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
41272 * commands/cmp.c (grub_cmd_cmp): Likewise.
41273 * kern/dl.c (grub_dl_flush_cache): Likewise.
41274 (grub_dl_load_core): Likewise.
41275 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
41276 (grub_elf64_load_phdrs): Likewise.
41277
d4e2dad3 412782008-07-13 Pavel Roskin <proski@gnu.org>
41279
41280 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
41281 between signed and unsigned.
41282 (LzmaEnc_Finish): Fix warning about an unused parameter.
41283
aa24b516 412842008-07-13 Bean <bean123ch@gmail.com>
41285
41286 * Makefile.in (enable_lzo): New rule.
41287
41288 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
41289
41290 * configure.ac (ENABLE_LZO): New option --enable-lzo.
41291
41292 * boot/i386/pc/lnxboot.S: #include <config.h>.
41293
41294 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 41295 its value according to the compression algorithm used, lzo or lzma.
aa24b516 41296
41297 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
41298 compression algorithm according to configure macro.
41299
41300 * kern/i386/pc/startup.S (codestart): Likewise.
41301
41302 * kern/i386/pc/lzma_decode.S: New file.
41303
41304 * include/grub/lib/LzFind.h: Likewise.
41305
41306 * include/grub/lib/LzHash.h: Likewise.
41307
41308 * include/grub/lib/LzmaDec.h: Likewise.
41309
41310 * include/grub/lib/LzmaEnc.h: Likewise.
41311
41312 * include/grub/lib/LzmaTypes.h: Likewise.
41313
41314 * lib/LzFind.c: Likewise.
41315
41316 * lib/LzmaDec.c: Likewise.
41317
41318 * lib/LzmaEnc.c: Likewise.
41319
4ae821ac 413202008-07-13 Bean <bean123ch@gmail.com>
41321
41322 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
41323 (grub_ext4_extent_header): New structure.
41324 (grub_ext4_extent): Likewise.
41325 (grub_ext4_extent_idx): Likewise.
41326 (grub_ext4_find_leaf): New function.
41327 (grub_ext2_read_block): Handle extents.
41328
9a745147 413292008-07-12 Robert Millan <rmh@aybabtu.com>
41330
41331 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
41332
d49a4cf6 413332008-07-11 Robert Millan <rmh@aybabtu.com>
41334
41335 * util/grub.d/40_custom.in: New file. Example on how to add custom
41336 entries to /etc/grub.d.
41337 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
41338 40_custom (implicitly, by merging all the grub.d rules).
41339
947414b4 413402008-07-11 Pavel Roskin <proski@gnu.org>
41341
0059cf6f 41342 * commands/read.c (grub_getline): Fix invalid memory access.
41343 Don't add newline to the variable value.
41344
947414b4 41345 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
41346 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
41347 (serial_hw_get_port): Check validity of the port number.
41348 (grub_cmd_serial): Check return value of serial_hw_get_port().
41349
62a02d00 413502008-07-07 Pavel Roskin <proski@gnu.org>
41351
41352 * boot/i386/pc/diskboot.S (notification_string): Replace
41353 "Loading kernel" with just "loading". This is shorter, less
41354 confusing and saves a few bytes for possible future changes.
41355
3e5581b0 413562008-07-05 Pavel Roskin <proski@gnu.org>
41357
ea387a48 41358 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
41359 size for ATAPI devices, they are undefined. Output sector
41360 number in decimal form.
41361
3e5581b0 41362 * disk/ata.c: Use named constants for status bits.
41363
fdecb8fd 413642008-07-04 Pavel Roskin <proski@gnu.org>
41365
bcd35b90 41366 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
41367 grub_addr_t before casting it to the void pointer to fix a
41368 warning. Non-addressable regions are discarded earlier.
41369 (grub_arch_modules_addr): Cast _end to grub_addr_t.
41370 * kern/i386/linuxbios/table.c: Include grub/misc.h.
41371 (check_signature): Don't shadow table_header.
41372 (grub_linuxbios_table_iterate): Cast numeric constants to
41373 grub_linuxbios_table_header_t.
41374 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
41375 grub_stop().
41376
af58ab3d 41377 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
41378 prevent warnings.
41379
1759aa57 41380 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
41381 pointer, which can cause warnings. Support 64-bit addresses.
41382
fdecb8fd 41383 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
41384 of sizeof(long). This fixes PowerPC image generation on x86_64.
41385
8516d2a8 413862008-07-04 Robert Millan <rmh@aybabtu.com>
41387
41388 This fixes a performance issue when pc & gpt partmap iterators
41389 didn't abort iteration even after our hook found what it was
fe987087 41390 looking for (often causing expensive probes of non-existent drives).
8516d2a8 41391
41392 Some callers relied on previous buggy behaviour, since they would
34c44600 41393 raise an error when their own hooks caused early abortion of its
8516d2a8 41394 iteration.
41395
41396 * kern/device.c (grub_device_open): Improve error message.
41397 * disk/lvm.c (grub_lvm_open): Likewise.
41398 * disk/raid.c (grub_raid_open): Likewise.
41399
41400 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
41401 when hook requests it, independently of grub_errno.
41402 (pc_partition_map_probe): Do not fail when find_func() caused
41403 early abortion of pc_partition_map_iterate().
41404
41405 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
41406 when hook requests it, independently of grub_errno.
41407 (gpt_partition_map_probe): Do not fail when find_func() caused
41408 early abortion of gpt_partition_map_iterate().
41409
41410 * kern/partition.c (grub_partition_iterate): Abort parent iteration
41411 when hook requests it, independently of grub_errno. Do not fail when
41412 part_map_iterate_hook() caused early abortion of p->iterate().
41413
41414 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
41415 when grub_partition_iterate() returned with non-zero.
41416
277d0de9 414172008-07-03 Pavel Roskin <proski@gnu.org>
41418
41419 * disk/ata.c (grub_ata_pio_write): Check status before writing,
41420 like we do in grub_ata_pio_read().
41421 (grub_ata_readwrite): Always write individual sectors. Fix the
41422 sector count for the remainder.
41423 (grub_ata_write): Enable writing to ATA devices. Correctly
41424 report error for ATAPI devices.
41425
d4c9b428 414262008-07-02 Pavel Roskin <proski@gnu.org>
41427
e43fc690 41428 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
41429 warning.
41430
f707af42 41431 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
41432 for every read sector, we already increment it for the whole
41433 batch. This fixes reading more than 256 sectors at once.
41434
11e16b15 41435 * util/grub-editenv.c (cmd_info): Cast argument to long
41436 explicitly. ptrdiff_t reduces to int on i386.
41437
cbabfdd4 41438 * util/grub-editenv.c (main): Be specific which parameter is
41439 missing.
41440
b8fbce0a 41441 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
41442 (memdisk): Make memdisk_orig_addr a pointer.
41443
c9c8e606 41444 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
41445 for file offsets, use grub_off_t instead. Fix printf format
41446 warnings.
41447
ca62e598 41448 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
41449 there. Real unexpected warnings should not drown in the noise
41450 about known problems.
41451
ce8d1766 41452 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
41453 grub_disk_addr_t for memory addresses.
41454
00c7a56a 41455 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
41456 explicitly to fix a warning.
41457
08d3ef09 41458 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
41459
cb71ba20 41460 * Makefile.in (MODULE_LDFLAGS): New variable.
41461 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
41462 the linker accepts --build-id=none.
41463 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
41464 MODULE_LDFLAGS.
41465 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
41466
d4c9b428 41467 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
41468 those in Linux XFS code. Provide a way to access 64-bit parent
41469 inode.
41470 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
41471 the end of struct grub_xfs_dir_header.
41472
d4156eee 414732008-07-02 Bean <bean123ch@gmail.com>
41474
41475 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
41476 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41477 and GRUB_IEEE1275_FLAG_NO_ANSI.
41478
41479 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
41480 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41481 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
41482
41483 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
41484 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
41485
41486 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
41487 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
41488
41489 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
41490 esc sequence on non ANSI terminal.
41491 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
41492
41493 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
41494 beginning of file.
41495
2270f77b 414962008-07-02 Bean <bean123ch@gmail.com>
41497
41498 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
41499 (grub_editenv_SOURCES): New variable.
41500 (pkglib_MODULES): Add loadenv.mod.
41501 (loadenv_mod_SOURCES): New variable.
41502 (loadenv_mod_CFLAGS): Likewise.
41503 (loadenv_mod_LDFLAGS): Likewise.
41504
41505 * include/grub/envblk.h: New file.
41506
41507 * util/envblk.c: New file.
41508
41509 * util/grub-editenv.c: New file.
41510
41511 * commands/loadenv.c: New file.
41512
0e9e51ec 415132008-07-01 Pavel Roskin <proski@gnu.org>
41514
d89b7634 41515 * include/multiboot2.h (struct multiboot_tag_module): Use char,
41516 not unsigned char. This fixes warnings and is consistent with
41517 other tags.
41518
bf1835b1 41519 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
41520
8222a04b 41521 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
41522
6a42d99d 41523 * term/tparm.c (analyze): Always set *popcount.
41524
10b159d1 41525 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
41526 cast to fix a warning.
41527
b8789f6c 41528 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
41529 cast to suppress a warning.
41530
29d7e38a 41531 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
41532 grub_fshelp_read_file() expects.
41533
f341f669 41534 * fs/fat.c: Fix UUID calculation on big-endian systems. We
41535 write uuid as a 32-bit value in CPU byte order, so declare and
41536 use it as such.
41537
0e9e51ec 41538 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
41539 long if the format specifier expects it.
41540 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
41541 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41542 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
41543 long to fix a warning.
41544 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
41545 grub_dprintf() arguments to fix warnings.
41546
3aefa857 415472008-06-30 Pavel Roskin <proski@gnu.org>
41548
56c7668b 41549 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
41550 install_bsd_part immediately before core.img is embedded or
41551 modified on disk. This fixes core.img verification if core.img
41552 cannot be embedded.
41553
3aefa857 41554 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
41555 core_path to calculate the blocklist.
41556 Patch from Javier Martín <lordhabbit@gmail.com>
41557
5444088d 415582008-06-29 Robert Millan <rmh@aybabtu.com>
41559
41560 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
41561 block to disk block.
41562 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
41563 Patch from Niels Böhm <bitbucket@arcor.de>
41564
674835c8 415652008-06-29 Robert Millan <rmh@aybabtu.com>
41566
41567 * util/update-grub_lib.in (font_path): Search for fonts in
41568 /boot/grub first, which is more likely to be readable (we aren't
41569 deciding where fonts live, just looking for them).
41570
f527dbc8 415712008-06-26 Pavel Roskin <proski@gnu.org>
41572
6c2d8df6 41573 * util/biosdisk.c (read_device_map): Don't leave dead map
41574 entries for devices failing stat() check.
41575
f527dbc8 41576 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
41577 core_path_dev for the core.img path on the target device.
41578
aebe3d13 415792008-06-26 Robert Millan <rmh@aybabtu.com>
41580
41581 * disk/fs_uuid.c: New file.
41582 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
41583 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
41584 (fs_uuid_mod_LDFLAGS): New variables.
41585 * include/grub/disk.h (grub_disk_dev_id): Add
41586 `GRUB_DISK_DEVICE_UUID_ID'.
41587 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
41588 implement iterate().
41589
37aaf354 415902008-06-26 Robert Millan <rmh@aybabtu.com>
41591
41592 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
41593 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
41594 Linux image includes no initrd.
41595
25ff262a 415962008-06-21 Javier Martín <lordhabbit@gmail.com>
41597
41598 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
41599 call to resolve the core image location that effectively appended the
41600 name twice.
41601
76a2bd44 416022008-06-21 Robert Millan <rmh@aybabtu.com>
41603
41604 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
41605 call from here ...
41606
41607 * util/grub.d/10_hurd.in: ... to here ...
41608 * util/grub.d/10_linux.in: ... and here.
41609
650e1c79 416102008-06-19 Robert Millan <rmh@aybabtu.com>
41611
fe987087 41612 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 41613 after it has been set by grub_machine_set_prefix().
41614
6ce63911 416152008-06-19 Robert Millan <rmh@aybabtu.com>
41616
41617 * commands/search.c (search_label, search_fs_uuid, search_file): Print
41618 search result when not saving to variable, not the other way around.
41619 When saving to variable, abort iteration as soon as a match is found.
41620
73940cec 416212008-06-19 Robert Millan <rmh@aybabtu.com>
41622
41623 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
41624 check for partition that provides /boot/grub. Its logic is flawed,
41625 as it prevents prepare_grub_to_access_device() from being called
41626 multiple times.
41627
3c62a39d 416282008-06-19 Robert Millan <rmh@aybabtu.com>
41629
41630 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
41631 "insmod" command directly when abstraction modules are needed,
fe987087 41632 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 41633 since it had already been processed).
41634
47395a42 416352008-06-19 Pavel Roskin <proski@gnu.org>
41636
41637 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
41638 changed. This is needed in case GRUB_LIBDIR changes.
41639 * conf/i386-ieee1275.rmk: Likewise.
41640 * conf/i386-linuxbios.rmk: Likewise.
41641 * conf/i386-pc.rmk: Likewise.
41642 * conf/powerpc-ieee1275.rmk: Likewise.
41643
a145ac2d 416442008-06-18 Pavel Roskin <proski@gnu.org>
41645
41646 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
41647 kernel_elf_symlist.c to symlist.c for consistency with other
41648 architectures. Update all users.
41649 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41650
7847c51e 416512008-06-18 Robert Millan <rmh@aybabtu.com>
41652
41653 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
41654 it in prefix.
41655
41656 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
41657 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
41658 a RAID device, run setup() for all members independently on whether
41659 LVM abstraction is being used.
41660 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
41661 If grub-mkimage has set `*install_dos_part == -2', don't override this
41662 value.
41663 Perform *install_dos_part adjustments independently on whether
41664 we're embedding or not.
41665 Clarify error message when image is too big for embedding.
41666 Remove duplicate *install_dos_part stanza.
41667
b23e5644 416682008-06-17 Robert Millan <rmh@aybabtu.com>
41669
41670 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
41671 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
41672 variables.
41673 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
41674 values in grub_ofconsole_normal_color and
41675 grub_ofconsole_highlight_color (they're not directly related to
41676 background and foreground).
41677 (grub_ofconsole_setcolorstate): Extract background and foreground
41678 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
41679
0aac2f79 416802008-06-17 Robert Millan <rmh@aybabtu.com>
41681
41682 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
41683 /boot/grub for the check in last commit, not /boot (they could be
41684 different partitions).
41685
3cca7ef3 416862008-06-16 Robert Millan <rmh@aybabtu.com>
41687
41688 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
41689 asked to setup access for the same partition that provides /boot,
41690 don't bother using UUIDs since our root already has the value we
41691 want.
41692
347396d8 416932008-06-16 Robert Millan <rmh@aybabtu.com>
41694
41695 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
41696 I2O devices.
41697 Patch from Sven Mueller <sven@debian.org>.
41698
991477f8 416992008-06-16 Robert Millan <rmh@aybabtu.com>
41700
41701 * util/update-grub.in: Check for $EUID instead of $UID.
41702 Reported by Vincent Zweije.
41703
d31a32a1 417042008-06-16 Bean <bean123ch@gmail.com>
41705
fe987087 41706 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 41707 (grub_ext2_read_block): Likewise.
41708 (grub_ext2_read_inode): Likewise.
41709 (grub_ext2_mount): Likewise.
41710 (grub_ext2_close): Likewise.
41711 (grub_ext3_get_journal): Removed.
41712
fe987087 41713 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 41714 (grub_reiserfs_read_symlink): Likewise.
41715 (grub_reiserfs_mount): Likewise.
41716 (grub_reiserfs_open): Likewise.
41717 (grub_reiserfs_read): Likewise.
41718 (grub_reiserfs_close): Likewise.
41719 (grub_reiserfs_get_journal): Removed.
41720
41721 * fs/fshelp.c (grub_fshelp_read): Removed.
41722 (grub_fshelp_map_block): Likewise.
41723
41724 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
41725 (grub_fshelp_journal): Likewise.
41726 (grub_fshelp_read): Likewise.
41727 (grub_fshelp_map_block): Likewise.
41728
3540a760 417292008-06-16 Pavel Roskin <proski@gnu.org>
41730
41731 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
41732 floating point anymore.
41733 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
41734
95614c84 417352008-06-15 Pavel Roskin <proski@gnu.org>
41736
41737 * commands/ls.c (grub_ls_list_files): Use integer calculations
41738 for human readable format, avoid floating point use.
41739 * kern/misc.c (grub_ftoa): Remove.
41740 (grub_vsprintf): Remove floating point support.
41741
50465dd6 417422008-06-15 Robert Millan <rmh@aybabtu.com>
41743
fe6b695a 41744 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 41745 devices.
41746 Reported by Max Vozeler.
41747
a9207284 417482008-06-15 Robert Millan <rmh@aybabtu.com>
41749
41750 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
41751 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
41752 skipped later.
41753 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
41754 the beginning of the prefix.
41755
41756 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
41757 It is assumed that if we have a memdisk, grub-mkimage has set
41758 grub_prefix to include the "(memdisk)" drive in it.
41759
a7cbd45a 417602008-06-15 Robert Millan <rmh@aybabtu.com>
41761
41762 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
41763 Initialize keyboard controller after registering the terminal, so that
41764 grub_printf() can be called from grub_keyboard_controller_init().
41765
21cf716a 417662008-06-15 Robert Millan <rmh@aybabtu.com>
41767
41768 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41769 extent-btree which is written as big endian on disk.
41770 Reported by Alain Greppin <al@chilibi.org>.
41771
23a64d8e 417722008-06-14 Robert Millan <rmh@aybabtu.com>
41773
41774 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41775 * util/i386/pc/grub-install.in (modules): Likewise.
41776
d687651c 417772008-06-13 Pavel Roskin <proski@gnu.org>
41778
41779 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41780
dfe9ddd4 417812008-06-13 Bean <bean123ch@gmail.com>
41782
41783 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41784
41785 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41786
41787 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41788 to indicate sparse block.
41789
16ae7781 417902008-06-12 Pavel Roskin <proski@gnu.org>
41791
e6d1a308 41792 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41793 number, grub_fshelp_read() does it for us.
41794
16ae7781 41795 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41796 linear disk read with journal translation.
41797 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41798 * include/grub/fshelp.h: Declare grub_fshelp_read().
41799
40fd3a2b 418002008-06-09 Pavel Roskin <proski@gnu.org>
41801
41802 * fs/minix.c (grub_minix_mount): Handle error reading
41803 superblock.
41804
f5679726 418052008-06-08 Robert Millan <rmh@aybabtu.com>
41806
41807 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41808 don't append the RAID prefix afterwards.
41809 Reported by Clint Adams.
41810
ce525529 418112008-06-08 Robert Millan <rmh@aybabtu.com>
41812
41813 Based on description from Pavel:
41814 * kern/disk.c (grub_disk_check_range): Rename to ...
41815 (grub_disk_adjust_range): ... this. Add a comment explaining the
41816 tasks performed by this function.
41817
ad4936a0 418182008-06-08 Robert Millan <rmh@aybabtu.com>
41819
41820 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41821 `num_serial' (for consistency with other variables).
41822 (struct grub_ntfs_data): Add `uuid' member.
41823 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41824 (grub_ntfs_uuid): New function.
41825 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41826
dc20b0f9 418272008-06-07 Pavel Roskin <proski@gnu.org>
41828
41829 * util/biosdisk.c (open_device): Revert last change to the
41830 function, it broke installation. The sector needs to be
41831 different dependent on which device is opened.
41832
c5e3cfba 418332008-06-06 Robert Millan <rmh@aybabtu.com>
41834
41835 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41836 rest of GRUB, and breakage doesn't happen if its value were modified.
41837
41838 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41839 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41840 a constant (same value).
41841 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41842 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41843
26a1f8c4 418442008-06-06 Robert Millan <rmh@aybabtu.com>
41845
41846 * util/biosdisk.c (open_device): Do not modify sector offset when
41847 accessing a partition. kern/disk.c already handles this for us.
41848
25d6b327 418492008-06-06 Robert Millan <rmh@aybabtu.com>
41850
41851 * util/grub-emu.c (grub_machine_init): Move code in this function from
41852 here ...
41853 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41854 segfault in case grub_printf() is called).
41855
41856 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41857 grub_probe. Update all users not to explicitly add it again.
41858 (grub_device): New variable; contains corresponding device for grubdir.
41859 (fs_module, partmap_module, devabstraction_module): Pass
41860 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41861 every time.
41862
9ece62fb 418632008-06-05 Robert Millan <rmh@aybabtu.com>
41864
41865 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41866 is found, print it (same layout as with labels).
41867
1ad36d37 418682008-06-04 Robert Millan <rmh@aybabtu.com>
41869
41870 * util/biosdisk.c (get_drive): Rename to ...
41871 (find_grub_drive): ... this. Update all users.
41872
41873 (get_os_disk): Rename to ...
41874 (convert_system_partition_to_system_disk): ... this. Update all users.
41875
41876 (find_drive): Rename to ...
41877 (find_system_device): ... this. Update all users.
41878
e6a30859 418792008-06-04 Robert Millan <rmh@aybabtu.com>
41880
41881 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41882 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41883 (make_device_map): Likewise.
41884
00c108a4 418852008-06-01 Robert Millan <rmh@aybabtu.com>
41886
41887 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41888 before dereferencing it.
41889
41890 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41891 union with fat12/fat16-specific ones. Add some new fields, including
41892 `num_serial' for both versions.
41893 (struct grub_fat_data): Add `uuid' member.
41894 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41895 names. Initialize `data->uuid' using `num_serial'.
41896 (grub_fat_uuid): New function.
41897 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41898
41899 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41900 (grub_reiserfs_uuid): New function.
41901 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41902 member.
41903
41904 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41905 (grub_xfs_uuid): New function.
41906 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41907
1385c5bb 419082008-06-01 Robert Millan <rmh@aybabtu.com>
41909
41910 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41911 code that is backward compatible with pre-uuid search command.
41912
c682dfd7 419132008-05-31 Robert Millan <rmh@aybabtu.com>
41914
41915 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41916 floppies after everything else, to ensure floppy drive isn't accessed
41917 unnecessarily (patch from Bean).
41918
b7db5d47 419192008-05-31 Robert Millan <rmh@aybabtu.com>
41920
41921 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41922 not print device names when we were asked to set a variable.
41923
6e037aa9 419242008-05-31 Robert Millan <rmh@aybabtu.com>
41925
41926 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41927 using "cursor-on" and "cursor-off" commands (understood at least by
41928 the Open Firmware flavour on OLPC).
41929
41305bc8 419302008-05-31 Michael Gorven <michael@gorven.za.net>
41931
41932 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41933 on and off sequences.
41934
69ba137e 419352008-05-31 Robert Millan <rmh@aybabtu.com>
41936
41937 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41938 * util/update-grub.in: Likewise.
41939
520ae21b 419402008-05-30 Pavel Roskin <proski@gnu.org>
41941
41942 * util/biosdisk.c (linux_find_partition): Simplify logic and
41943 make the code more universal. Keep special processing for
41944 devfs, but use a simple rule for all other devices. If the
41945 device ends with a number, append 'p' and the partition number.
41946 Otherwise, append only the partition number.
41947
5786569b 419482008-05-30 Robert Millan <rmh@aybabtu.com>
41949
41950 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41951 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41952 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41953 the `root' parameter to Linux.
41954
51500452 419552008-05-30 Robert Millan <rmh@aybabtu.com>
41956
41957 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41958 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41959 --fs_uuid with --fs-uuid.
41960 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41961 all filesystems support them).
41962
811d3878 419632008-05-30 Robert Millan <rmh@aybabtu.com>
41964
41965 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 41966 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 41967
cab63c95 419682008-05-30 Robert Millan <rmh@aybabtu.com>
41969
41970 * util/grub.d/00_header.in: Remove obsolete comment referencing
41971 convert_system_path_to_grub_path().
41972 * util/update-grub.in: Likewise.
41973 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41974 (convert_system_path_to_grub_path): Add a warning message explaining
41975 that this function is deprecated. Rely on is_path_readable_by_grub()
41976 for the readability checks.
41977 (font_path): Use is_path_readable_by_grub() for the readability
41978 check rather than convert_system_path_to_grub_path().
41979
972e2f7a 419802008-05-30 Robert Millan <rmh@aybabtu.com>
41981
41982 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41983 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41984 converting it first.
41985 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41986 grub.cfg for access to font file, and afterwards call it again to set
41987 the root device.
41988
62191274 419892008-05-30 Robert Millan <rmh@aybabtu.com>
41990
41991 * commands/search.c (options): Add --fs_uuid option.
41992 (search_fs_uuid): New function.
41993 (grub_cmd_search): Fix --set argument passing.
41994 Use search_fs_uuid() when requested via --fs_uuid.
41995 (grub_search_init): Update help message.
41996 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41997 and redeclare it as an array of 16-bit words.
41998 (grub_ext2_uuid): New function.
41999 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
42000 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
42001 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
42002 (GRUB_DEVICE_BOOT_UUID): New variables.
42003 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
42004 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
42005 whenever possible.
42006 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
42007 just assume `root' variable has the right value.
42008 * util/grub.d/10_linux.in: Likewise.
42009 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
42010 via PRINT_FS_UUID.
42011 (main): Recognise `-t fs_uuid' argument.
42012
01b73ec8 420132008-05-30 Robert Millan <rmh@aybabtu.com>
42014
42015 * util/biosdisk.c (map): Redefine structure to hold information
42016 about GRUB drive name.
fe6b695a 42017 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 42018 drive names.
42019 (call_hook): Remove.
42020 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
42021 member. Assume drive has partitions.
42022 (grub_util_biosdisk_open): Access device names via `.device' struct
42023 member.
42024 (open_device): Likewise.
42025 (find_drive): Likewise.
42026 (read_device_map): Adjust map[] usage to match the new struct
42027 definition. Don't check for duplicates (still possible, but not cheap
42028 anymore).
42029 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
42030 (make_device_name): Remove assumption of BIOS-like drive names.
42031
22f16596 420322008-05-30 Pavel Roskin <proski@gnu.org>
42033
42034 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
42035 compiling execute.c doesn't need grub_script.tab.h anymore.
42036 (normal/command.c_DEPENDENCIES): Likewise.
42037 (normal/function.c_DEPENDENCIES): Likewise.
42038 * conf/i386-ieee1275.rmk: Likewise.
42039 * conf/i386-linuxbios.rmk: Likewise.
42040 * conf/i386-pc.rmk: Likewise.
42041 * conf/powerpc-ieee1275.rmk: Likewise.
42042 * conf/sparc64-ieee1275.rmk: Likewise.
42043
528ad8f2 420442008-05-29 Pavel Roskin <proski@gnu.org>
42045
d1dff95d 42046 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
42047 when scanning metadata for volume group name.
42048
528ad8f2 42049 * include/grub/script.h: Don't include grub_script.tab.h. It's
42050 a generated file, which may only be included from the files with
42051 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
42052 use union YYSTYPE, as the later allows forward declaration.
42053 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
42054
47248e08 420552008-05-29 Robert Millan <rmh@aybabtu.com>
42056
42057 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
42058 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
42059 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
42060 (grub_console_checkkey): Add grub_dprintf() call to report unknown
42061 scan codes.
42062
ee632529 420632008-05-29 Robert Millan <rmh@aybabtu.com>
42064
42065 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
42066 control key combinations.
42067
eee96e08 420682008-05-29 Robert Millan <rmh@aybabtu.com>
42069
42070 * util/powerpc/ieee1275/grub-install.in: Move from here ...
42071 * util/ieee1275/grub-install.in: ... to here.
42072 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
42073 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
42074 (grub_install_SOURCES): Likewise.
42075
da9a6a94 420762008-05-29 Robert Millan <rmh@aybabtu.com>
42077
42078 * fs/affs.c: Update copyright year.
42079 * fs/ext2.c: Likewise.
42080 * fs/fshelp.c: Likewise.
42081 * fs/hfsplus.c: Likewise.
42082 * fs/ntfs.c: Likewise.
42083 * fs/xfs.c: Likewise.
42084 * include/grub/fshelp.h: Likewise.
42085 * util/grub-mkdevicemap.c: Likewise.
42086
12e65f3a 420872008-05-28 Robert Millan <rmh@aybabtu.com>
42088
42089 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
42090 might need to be fatfs to support some firmware implementations
42091 (e.g. OFW or EFI).
42092
23023641 420932008-05-28 Robert Millan <rmh@aybabtu.com>
42094
42095 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
42096 devices.
42097 * util/grub-mkdevicemap.c (get_mmc_disk_name)
42098 (make_device_map): Likewise.
42099
887d2619 421002008-05-20 Bean <bean123ch@gmail.com>
42101
42102 * fs/fshelp.c (grub_fshelp_map_block): New function.
42103 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
42104 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
42105
42106 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
42107 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
42108 (grub_fshelp_journal): New structure.
42109 (grub_fshelp_map_block): New function prototype.
42110 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
42111 (grub_fshelp_map_block): Likewise.
42112
42113 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
42114 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
42115 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
42116 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
42117 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
42118 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
42119 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
42120 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
42121 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
42122 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
42123 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
42124 (grub_ext2_sblock): New members for journal support.
42125 (grub_ext3_journal_header): New structure.
42126 (grub_ext3_journal_revoke_header): Likewise.
42127 (grub_ext3_journal_block_tag): Likewise.
42128 (grub_ext3_journal_sblock): Likewise.
42129 (grub_fshelp_node): New members logfile and journal.
42130 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
42131 grub_fshelp_map_block to get real block number.
42132 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
42133 number.
42134 (grub_ext2_read_inode): Likewise.
42135 (grub_ext3_get_journal): New function.
42136 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
42137 (grub_ext2_close): Release memory used by journal.
42138
42139 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
42140 (REISERFS_MAGIC_DESC_BLOCK): New macro.
42141 (grub_reiserfs_transaction_header): Renamed to
42142 grub_reiserfs_description_block, replace field data with real_blocks.
42143 (grub_reiserfs_commit_block): New structure.
42144 (grub_reiserfs_data): New member journal.
42145 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
42146 number.
42147 (grub_reiserfs_read_symlink): Likewise.
42148 (grub_reiserfs_iterate_dir): Likewise.
42149 (grub_reiserfs_open): Likewise.
42150 (grub_reiserfs_read): Likewise.
42151 (grub_reiserfs_get_journal): New function.
42152 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
42153 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
42154 using grub_reiserfs_get_journal.
42155 (grub_reiserfs_close): Release memory used by journal.
42156
42157 * fs/affs.c (grub_affs_read_block): Change block type to
42158 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
42159
42160 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
42161
42162 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
42163
42164 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
42165
42166 * fs/udf.c (grub_udf_read_block): Change block type to
42167 grub_disk_addr_t. Use type cast to avoid warning.
42168
42169 * fs/xfs.c (grub_xfs_read_block): Likewise.
42170
b7c6bed5 421712008-05-16 Christian Franke <franke@computer.org>
42172
42173 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
42174 to ensure that break with ESC will always work.
42175 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
42176 Remove ESC from keyboard queue.
42177
eedf167f 421782008-05-16 Christian Franke <franke@computer.org>
42179
42180 * util/biosdisk.c: [__CYGWIN__] Add includes.
42181 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
42182 (get_os_disk): Move variable declarations to OS specific
42183 parts to avoid warning.
42184 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
42185 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
42186 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
42187 Cygwin.
42188 * util/getroot.c: [__CYGWIN__] Add includes.
42189 (strip_extra_slashes): Fix "/" case.
42190 [__CYGWIN__] (get_win32_path): New function.
42191 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
42192 [__CYGWIN__] (find_root_device): Disable.
42193 [__CYGWIN__] (get_bootsec_serial): New function.
42194 [__CYGWIN__] (find_cygwin_root_device): Likewise.
42195 [__linux__] (grub_guess_root_device): Add early returns to simplify
42196 structure.
42197 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
42198 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
42199 check for Linux only.
42200
a079699e 422012008-05-15 Bean <bean123ch@gmail.com>
42202
42203 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
42204 keyboard hang problem in apple's intel mac.
42205
1cf4059a 422062008-05-09 Robert Millan <rmh@aybabtu.com>
42207
42208 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
42209 devices.
42210 * util/grub-mkdevicemap.c (get_virtio_disk_name)
42211 (make_device_map): Likewise.
42212 Reported by Aurelien Jarno <aurel32@debian.org>
42213
ed759390 422142008-05-07 Ian Campbell <ijc@hellion.org.uk>
42215
42216 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
42217 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
42218 (make_device_map): Output entries for xvd type disks.
42219
b56c4eaa 422202008-05-07 Robert Millan <rmh@aybabtu.com>
42221
42222 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
42223 devices.
42224 * util/grub-mkdevicemap.c (get_cciss_disk_name)
42225 (make_device_map): Likewise.
42226 Reported by Roland Dreier <rdreier@cisco.com>
42227
7f8866ed 422282008-05-07 Robert Millan <rmh@aybabtu.com>
42229
42230 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
42231 grub_strstr() call. Correct a few mistakes in failure path handling.
42232
b0346e0f 422332008-05-06 Robert Millan <rmh@aybabtu.com>
42234
42235 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42236 Do not print a trailing slash (therefore, the root directory is an
42237 empty string).
42238 (convert_system_path_to_grub_path): Do not remove trailing slash
42239 from make_system_path_relative_to_its_root() output.
42240
42241 * util/i386/pc/grub-install.in: Add trailing slash to output from
42242 make_system_path_relative_to_its_root().
42243
6cf12cbd 422442008-05-06 Robert Millan <rmh@aybabtu.com>
42245
42246 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
42247 ensures that output lines aren't intermangled with those sent to
42248 stderr (via grub_util_info()).
42249 * util/grub-probe.c (grub_refresh): Likewise.
42250 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
42251
0fbb3117 422522008-05-05 Christian Franke <franke@computer.org>
42253
42254 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
42255 Add Cygwin device names.
42256 (get_ide_disk_name) [__CYGWIN__]: Likewise.
42257 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
42258 (check_device): Return error instead of success on empty name.
42259 (make_device_map): Move label inside linux specific code to
42260 prevent compiler warning.
42261
8124cdb7 422622008-04-30 Robert Millan <rmh@aybabtu.com>
42263
42264 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
42265 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
42266 first boot option.
42267 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
42268
094c01d0 422692008-04-29 Robert Millan <rmh@aybabtu.com>
42270
42271 * docs/grub.cfg: New file (example GRUB configuration).
42272
f4b1fc02 422732008-04-26 Robert Millan <rmh@aybabtu.com>
42274
329ce2a5 42275 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
42276 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
42277 and `disk/ieee1275/nand.c'.
f4b1fc02 42278
25f16ec1 422792008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 42280
25f16ec1 42281 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
42282 i386-linuxbios.
42283
42284 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
42285 change the buffer size to 4096 for cdrom device.
42286
42287 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
42288 and nand.mod.
42289 (_linux_mod_SOURCES): New variable.
42290 (_linux_mod_CFLAGS): Likewise.
42291 (_linux_mod_LDFLAGS): Likewise.
42292 (linux_mod_SOURCES): Likewise.
42293 (linux_mod_CFLAGS): Likewise.
42294 (linux_mod_LDFLAGS): Likewise.
42295 (nand_mod_SOURCES): Likewise.
42296 (nand_mod_CFLAGS): Likewise.
42297 (nand_mod_LDFLAGS): Likewise.
42298
42299 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
42300 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
42301 type property. (nand device in olpc don't have this property)
42302
42303 * include/grub/disk.h (grub_disk_dev_id): New macro
42304 GRUB_DISK_DEVICE_NAND_ID.
42305
42306 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
42307 function prototype.
42308 (grub_rescue_cmd_initrd): Likewise.
42309
42310 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
42311 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
42312 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 42313
25f16ec1 42314 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
42315 GRUB_MACHINE_IEEE1275 is defined.
42316
42317 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
42318 Use NESTED_FUNC_ATTR attribute on the hook parameter.
42319
42320 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
42321 on nested function heap_init.
42322 (grub_upper_mem): New variable for i386-ieee1275.
42323 (grub_get_extended_memory): New function for i386-ieee1275.
42324 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
42325
42326 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
42327 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
42328 property.
f19dbdb7 42329
25f16ec1 42330 * loader/i386/ieee1275/linux.c: New file.
42331
42332 * loader/i386/ieee1275/linux_normal.c: New file.
42333
42334 * disk/ieee1275/nand.c: New file.
42335
e89d61e9 423362008-04-18 Thomas Schwinge <tschwinge@gnu.org>
42337
42338 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
42339 value.
42340 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
42341
602566f6 423422008-04-18 Robert Millan <rmh@aybabtu.com>
42343
42344 Restructures early code path on ieee1275 to unify grub_main() as
42345 the first C function that is executed in every platform.
42346
42347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
42348 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
42349 cmain().
42350 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
42351 * kern/ieee1275/cmain.c (cmain): Rename to ...
42352 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
42353 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
42354 at the beginning.
42355
57490c2b 423562008-04-18 Robert Millan <rmh@aybabtu.com>
42357
42358 * util/update-grub.in: Fix syntax error when setting
42359 `GRUB_PRELOAD_MODULES'.
42360 Reported by Stephane Chazelas <stephane@artesyncp.com>
42361
1977517d 423622008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
42363
42364 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
42365 section into account, newer toolchains generate unique build ids
42366 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 42367 we want build ids to be preserved
1977517d 42368 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
42369 far from other sections don't cause the raw binary images grow
42370 size
42371
bfb1f1a2 423722008-04-15 Robert Millan <rmh@aybabtu.com>
42373
42374 * disk/lvm.c: Update copyright year.
42375 * kern/misc.c: Likewise.
42376
01979850 423772008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42378
42379 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 42380 there is no memory left for physical volume name.
01979850 42381
0a1150e2 423822008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42383
42384 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
42385 volume name mapping to support bigger than 9 character names properly.
42386
82ead3fe 423872008-04-13 Robert Millan <rmh@aybabtu.com>
42388
42389 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
42390 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
42391
e54a72f5 423922008-04-13 Christian Franke <franke@computer.org>
42393
42394 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
42395 to create a floppy emulation boot CD when non emulation mode
42396 does not work.
42397 Enable Joliet CD filesystem extension.
42398
9fe86034 423992008-04-13 Robert Millan <rmh@aybabtu.com>
42400
42401 * kern/misc.c (grub_strncat): Fix off-by-one error.
42402 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
42403
42404 * kern/env.c (grub_env_context_close): Clear current context, not
42405 previous one.
42406 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
42407
42408 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
42409
7ceeee39 424102008-04-13 Robert Millan <rmh@aybabtu.com>
42411
42412 Improve robustness when handling LVM.
42413
42414 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 42415 (and leave `*p' unmodified).
7ceeee39 42416 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
42417 through it.
42418 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
42419 iterating through it.
42420 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
42421 through it.
fe6b695a 42422 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 42423 when due) on each grub_lvm_getvalue() or grub_strstr() call.
42424 Don't assume `vg->pvs != NULL' when iterating through it.
42425
58cd3d85 424262008-04-13 Robert Millan <rmh@aybabtu.com>
42427
42428 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
42429 * genmk.rb (partmap): New variable.
42430 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
42431 (#{partmap}): New target rule.
42432 * genpartmaplist.sh: New file.
42433 * Makefile.in (pkglib_DATA): Add partmap.lst.
42434 (partmap.lst): New target rule.
42435 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
42436 modules (including all partition maps), instead of preloading them.
42437
78b51059 424382007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
42439
42440 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
42441 `linux-boot-prober' (if installed) to detect other operating
42442 systems which are installed on the computer and add them to
42443 the boot menu.
42444 * conf/common.rmk: Build and install 30_os-prober.
42445
a91627b4 424462008-04-12 Robert Millan <rmh@aybabtu.com>
42447
42448 * kern/powerpc/ieee1275/init.c: Move from here ...
42449 * kern/ieee1275/init.c: ... to here. Update all users.
42450
42451 * kern/powerpc/ieee1275/cmain.c: Move from here ...
42452 * kern/ieee1275/cmain.c: ... to here. Update all users.
42453
42454 * kern/powerpc/ieee1275/openfw.c: Move from here ...
42455 * kern/ieee1275/openfw.c: ... to here. Update all users.
42456
42457 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
42458 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
42459
322562ea 424602008-04-10 Pavel Roskin <proski@gnu.org>
42461
42462 * configure.ac: Always use "_cv_" in cache variables for
42463 compatibility with Autoconf 2.62.
42464
a02a73c5 424652008-04-07 Robert Millan <rmh@aybabtu.com>
42466
42467 Revert grub/machine/init.h addition by Pavel (since it breaks on
42468 i386-ieee1275 and others):
42469 * util/i386/pc/misc.c: Remove grub/machine/init.h.
42470 * util/powerpc/ieee1275/misc.c: Likewise.
42471
25c024b1 424722008-04-07 Robert Millan <rmh@aybabtu.com>
42473
42474 * util/grub-probe.c (probe): Improve error message.
42475
3cbd2f98 424762008-04-07 Robert Millan <rmh@aybabtu.com>
42477
42478 * util/biosdisk.c (read_device_map): Skip devices that don't exist
42479 (this prevents the presence of a bogus entry from ruining the whole
42480 thing).
42481
87a297bf 424822008-04-06 Pavel Roskin <proski@gnu.org>
42483
36747a62 42484 * util/biosdisk.c: Include grub/util/biosdisk.h.
42485 * util/grub-fstest.c (execute_command): Make static.
42486 * util/grub-mkdevicemap.c (check_device): Likewise.
42487 * util/i386/pc/misc.c: Include grub/machine/init.h.
42488 * util/powerpc/ieee1275/misc.c: Likewise.
42489 * util/lvm.c: Include grub/util/lvm.h.
42490 * util/misc.c: Include grub/kernel.h, grub/misc.h and
42491 grub/cache.h.
42492 * util/raid.c: Include grub/util/raid.h.
42493 (grub_util_getdiskname): Make static.
42494
87a297bf 42495 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
42496 grub_hostfs_fini(), as they are called from grub_init_all() and
42497 grub_fini_all() respectively. This fixes an infinite loop in
42498 grub-fstest due to double registration of hostfs.
42499 Reported by Christian Franke <Christian.Franke@t-online.de>
42500
f6ce7629 425012008-04-05 Pavel Roskin <proski@gnu.org>
42502
42503 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
42504 all 8 functions. Otherwise, probe function 0 only.
42505
070e49e4 425062008-04-04 Pavel Roskin <proski@gnu.org>
42507
8b088a4c 42508 * commands/lspci.c (grub_lspci_iter): Print the bus number
42509 correctly.
42510
4f657021 42511 * commands/lspci.c (grub_pci_classes): Fix typos.
42512 (grub_lspci_iter): Don't print func twice. Print vendor ID
42513 before device ID, as it's normally done.
42514
070e49e4 42515 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42516 Fix signedness warnings.
42517 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
42518 Likewise.
42519 * util/ieee1275/get_disk_name.c: Include config.h so that
42520 _GNU_SOURCE is defined and getline() is declared. Mark an
42521 unused argument as such. Fix a signedness warning.
42522
ba7328dc 425232008-04-02 Pavel Roskin <proski@gnu.org>
42524
26887f22 42525 * genkernsyms.sh.in: Use more robust assignments for CC and
42526 srcdir. Quote srcdir.
42527 * gensymlist.sh.in: Likewise. Assert at the compile time that
42528 the symbol table is not empty.
42529
ba7328dc 42530 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
42531 * fs/cpio.c (grub_cpio_read): Likewise.
42532
0f582c6b 425332008-04-01 Pavel Roskin <proski@gnu.org>
42534
4b6e1995 42535 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
42536 * disk/host.c (grub_host_open): Likewise.
42537 * disk/loopback.c (grub_loopback_open): Likewise.
42538 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
42539 disk->id as in disk/host.c, not a multi-character constant.
42540
828a2768 42541 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
42542 later is obsolete, potentially dangerous and sets a bad example.
42543 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
42544 * util/misc.c (grub_util_get_image_size): Likewise.
42545
2bb4fb47 42546 * disk/loopback.c (options): Improve help for "--partitions".
42547
0f582c6b 42548 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
42549 options to align them with the short options, e.g. "echo -e".
42550
a33224e0 425512008-03-31 Bean <bean123ch@gmail.com>
42552
42553 * video/reader/png.c (grub_png_data): New member is_16bit and
42554 image_data.
42555 (grub_png_decode_image_header): Detect 16 bit png image.
42556 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
42557 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
42558 (grub_video_reader_png): Release memory occupied by image_data.
42559
42560 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
42561 4096 bytes.
42562 (grub_nfs_mount): Skip the test for sector per cluster.
42563
42564 * include/grub/ntfs.h (MAX_SPC): Removed.
42565
86cb4f54 425662008-03-31 Bean <bean123ch@gmail.com>
42567
42568 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
42569 (grub_probe_SOURCES): Add fs/afs.c.
42570 (grub_fstest_SOURCES): Likewise.
42571 (afs_mod_SOURCES): New variable.
42572 (afs_mod_CFLAGS): Likewise.
42573 (afs_mod_LDFLAGS): Likewise.
42574
42575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
42576 (grub_emu_SOURCES): Likewise.
42577
42578 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42579
42580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42581
42582 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42583
42584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42585
42586 * fs/afs.c: New file.
42587
17c74c21 425882008-03-30 Pavel Roskin <proski@gnu.org>
42589
4cb68e89 42590 * disk/host.c: Include grub/misc.h to fix a warning.
42591 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
42592 warnings about implicit declarations.
42593
8790bb04 42594 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
42595 variable.
42596 * include/grub/i386/loader.h: Change declaration of
42597 grub_linux_boot() to match what grub_loader_set() expects.
42598 * util/getroot.c (grub_guess_root_device): Return const char* to
42599 fix a warning.
42600 * util/grub-probe.c (probe): Fix a warning about uninitialized
42601 abstraction_name variable.
42602 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
42603 second argument as unused to fix a warning.
42604
9a3f3296 42605 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
42606 missing grub_error() call.
42607
0ecef90d 42608 * util/update-grub_lib.in: Define datarootdir, since Autoconf
42609 2.60 and newer uses it to define datadir.
42610
0bf6d401 42611 * commands/sleep.c: Fix warning about implicit declaration.
42612 * disk/memdisk.c: Likewise.
42613 * loader/aout.c: Likewise.
42614 * loader/i386/bsd_normal.c: Likewise.
42615 * util/grub-probe.c: Likewise.
42616
7cdacf97 42617 * commands/i386/cpuid.c (has_longmode): Make static.
42618 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
42619 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
42620
17c74c21 42621 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
42622 GDT. This is more robust, as %ds can change.
42623 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
42624 calling real_to_prot().
42625 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
42626
80a3e68b 426272008-03-28 Pavel Roskin <proski@gnu.org>
42628
42629 * kern/i386/pc/startup.S: Assert that uncompressed functions
42630 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
42631 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
42632 code, as they push parts of the code (error handlers) beyond
42633 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
42634 code as correctness and size.
42635
77bcd272 426362008-03-28 Pavel Roskin <proski@gnu.org>
42637
42638 * kern/i386/pc/startup.S
42639 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
42640 data block address to the real mode, keep offset minimal. This
42641 works around a bug in AWARD BIOS on old Athlon systems, which
42642 makes CD detection hang.
42643
c5dfd43b 426442008-03-26 Pavel Roskin <proski@gnu.org>
42645
42646 * normal/color.c (grub_parse_color_name_pair): Make `name' a
42647 const.
42648 * include/grub/normal.h: Add grub_parse_color_name_pair()
42649 declaration.
42650
bf962df2 426512008-03-24 Bean <bean123ch@gmail.com>
42652
42653 * disk/i386/pc/biosdisk.c (cd_start): Removed.
42654 (cd_count): Removed.
42655 (cd_drive): New variable.
42656 (grub_biosdisk_get_drive): Don't check for (cdN) device.
42657 (grub_biosdisk_call_hook): Likewise.
42658 (grub_biosdisk_iterate): Change cdrom detection method.
42659 (grub_biosdisk_open): Replace cd_start with cd_drive.
42660 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
42661 detect cdrom device.
42662
42663 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
42664 Removed.
42665 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
42666 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
42667 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
42668 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
42669 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
42670 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
42671 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
42672 (grub_biosdisk_cdrp): New structure.
42673 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
42674
42675 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
42676
42677 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
42678 device.
42679
42680 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
42681 New function.
42682
68e7fc7a 426832008-03-20 Robert Millan <rmh@aybabtu.com>
42684
42685 Remove 2 TiB limit in ata.mod.
42686 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
42687 (grub_ata_dumpinfo): Print sector count with 0x%llx.
42688 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
42689 grub_uint64_t instead of grub_uint32_t.
42690
38ad2cf5 426912008-03-05 Bean <bean123ch@gmail.com>
42692
42693 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
42694 (grub_multiboot): Set boot device.
42695
42696 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
42697
2b89344e 426982008-03-02 Bean <bean123ch@gmail.com>
42699
42700 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
42701 symlink_buffer.
42702
87a95d1f 427032008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
42704
42705 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
42706 texinfo.tex.
42707
42708 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
42709 modified.
42710
42711 * docs/fdl.texi: New file.
f19dbdb7 42712
87a95d1f 42713 * docs/mdate-sh: New file. Copied from gnulib.
42714 * docs/texinfo.tex: Likewise.
42715
42716 * config.guess: Updated from gnulib.
42717 * install-sh: Likewise.
42718
7dc15d8e 427192008-02-28 Robert Millan <rmh@aybabtu.com>
42720
42721 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
42722 (aout_mod_SOURCES): New variable.
42723 (aout_mod_CFLAGS): Likewise.
42724 (aout_mod_LDFLAGS): Likewise.
42725
42726 * conf/i386-ieee1275.rmk: Likewise.
42727
b00ab696 427282008-02-28 Robert Millan <rmh@aybabtu.com>
42729
42730 * util/update-grub.in: Reorganise terminal validity check. Accept
42731 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
42732 Based on suggestion by Franklin PIAT.
42733
79ca2d78 427342008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
42735
42736 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
42737 function.
42738 * util/getroot.c (grub_util_check_block_device): New function that
42739 returns the given argument if it is a block device and returns NULL else.
42740 * util/grub-probe.c (argument_is_device): New variable.
42741 (probe): Promote device_name from a variable to an argument. Receive
42742 device_name from grub_util_check_block_device() if path is NULL and from
42743 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 42744 (options): Introduce new parameter '-d, --device'.
79ca2d78 42745 (main): Add description of the new parameter to the help screen.
42746 Rename path variable to argument. Set argument_is_device if the '-d'
42747 option is given. Pass argument to probe() depending on
42748 argument_is_device.
42749
0d16e571 427502008-02-24 Bean <bean123ch@gmail.com>
42751
42752 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
42753 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
42754 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
42755 (GRUB_ISO9660_VOLDESC_PART): Likewise.
42756 (GRUB_ISO9660_VOLDESC_END): Likewise.
42757 (grub_iso9660_primary_voldesc): New member escape.
42758 (grub_iso9660_data): New member joliet.
42759 (grub_iso9660_convert_string): New function.
42760 (grub_iso9660_mount): Detect joliet extension.
42761 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
42762 (grub_iso9660_iso9660_label): Likewise.
42763
42764 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42765 (grub_setup_SOURCES): Add fs/udf.c.
42766 (grub_fstest_SOURCES): Likewise.
42767 (udf_mod_SOURCES): New variable.
42768 (udf_mod_CFLAGS): Likewise.
42769 (udf_mod_LDFLAGS): Likewise.
42770
42771 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42772 (grub_emu_SOURCES): Likewise.
42773
42774 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42775
42776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42777
42778 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42779
42780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42781
42782 * fs/udf.c: New file.
42783
8a594a17 427842008-02-24 Robert Millan <rmh@aybabtu.com>
42785
42786 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42787 (normal/lexer.c_DEPENDENCIES): New variables.
42788 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42789 (normal/lexer.c_DEPENDENCIES): Likewise.
42790 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42791 (normal/lexer.c_DEPENDENCIES): Likewise.
42792 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42793 (normal/lexer.c_DEPENDENCIES): Likewise.
42794 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42795 (normal/lexer.c_DEPENDENCIES): Likewise.
42796 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42797 (normal/lexer.c_DEPENDENCIES): Likewise.
42798
2dc33c03 427992008-02-23 Robert Millan <rmh@aybabtu.com>
42800
42801 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42802 since they were intended to be in hex. This didn't break previously
42803 because of a bug in gpt_partition_map_iterate() (see below).
42804
42805 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42806 when checking the validity of GPT header.
42807 Remove `partno', since it always provides the same information as `i'.
42808
f6f4cfb0 428092008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42810
42811 * include/grub/efi/time.h: Fix a wrong comment.
42812
79ff665f 428132008-02-19 Pavel Roskin <proski@gnu.org>
42814
42815 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42816 message.
42817
d38e24c2 428182008-02-19 Bean <bean123ch@gmail.com>
42819
42820 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42821 (aout_mod_SOURCES): New variable.
42822 (aout_mod_CFLAGS): Likewise.
42823 (aout_mod_LDFLAGS): Likewise.
42824 (_bsd_mod_SOURCES): New variable.
42825 (_bsd_mod_CFLAGS): Likewise.
42826 (_bsd_mod_LDFLAGS): Likewise.
42827 (bsd_mod_SOURCES): New variable.
42828 (bsd_mod_CFLAGS): Likewise.
42829 (bsd_mod_LDFLAGS): Likewise.
42830
42831 * include/grub/aout.h: New file.
42832
42833 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42834
42835 * include/grub/i386/bsd.h: New file.
42836
42837 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42838 to make it public.
42839
42840 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42841 function is called, so that it's possible to change it inside the hook.
42842 (grub_elf64_load): Likewise.
42843 (grub_elf_file): Don't close the file if elf header is not found.
42844 (grub_elf_close): Close the file if grub_elf_file fails (The new
42845 grub_elf_file won't close it).
42846 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42847 (grub_elf64_size): Likewise.
42848
42849 * kern/i386/loader.S (grub_unix_real_boot): New function.
42850
42851 * loader/aout.c: New file.
42852
42853 * loader/i386/bsd.c: New file.
42854
42855 * loader/i386/bsd_normal.c: New file.
42856
42857 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42858
42859 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 42860 can test other formats.
d38e24c2 42861
b93bdb0f 428622008-02-19 Robert Millan <rmh@aybabtu.com>
42863
42864 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42865 (grub_gpt_partition_type_empty): Redefine with macro from
42866 `<grub/gpt_partition.h>'.
42867 (gpt_partition_map_iterate): Adjust partition type comparison.
42868
42869 Export `entry' as partmap-specific `part.data' struct.
42870 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42871
42872 * include/grub/gpt_partition.h (grub_gpt_header)
42873 (grub_gpt_partentry): ... to here (new file).
42874
42875 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42876
42877 (grub_gpt_partition_type_bios_boot): New const variable, defined
42878 with macro from `<grub/gpt_partition.h>'.
42879
42880 (setup): Replace `first_start' with `embed_region', which keeps
42881 track of the embed region (and is partmap-agnostic).
42882
42883 Replace find_first_partition_start() with find_usable_region(),
42884 which finds a usable region for embedding using partmap-specific
42885 knowledge (supports PC/MSDOS and GPT).
42886
42887 Fix all assumptions that the embed region start at sector 1, using
42888 `embed_region.start' from now on. Similarly, use `embed_region.end'
42889 rather than `first_start' to calculate available size.
42890
42891 In grub_util_info() message, replace "into after the MBR" with an
42892 indication of the specific sector our embed region starts at.
42893
66cb40f6 428942008-02-19 Robert Millan <rmh@aybabtu.com>
42895
42896 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42897 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42898 `commands/reboot.c'.
42899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42900 (halt_mod_SOURCES): Likewise.
42901 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42902 (halt_mod_SOURCES): Likewise.
42903
b7202015 429042008-02-17 Christian Franke <franke@computer.org>
42905
42906 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42907
32b0fc49 429082008-02-17 Robert Millan <rmh@aybabtu.com>
42909
42910 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42911 set `first_start' to 0 for non-PC/MSDOS partition maps.
42912
aca63502 429132008-02-16 Robert Millan <rmh@aybabtu.com>
42914
42915 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42916 do not assume partition map is PC/MSDOS before performing checks that
42917 are specific to that layout.
42918
0de8be86 429192008-02-13 Robert Millan <rmh@aybabtu.com>
42920
42921 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42922 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42923 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42924
c3db8364 429252008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42926
42927 * configure.ac: Only a cosmetic change on the handling of
42928 -fno-stack-protector.
42929
f714229e 429302008-02-12 Alexandre Boeglin <alex@boeglin.org>
42931
c3db8364 42932 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42933 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42934 reboot.c.
f714229e 42935 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42936 (halt_mod_SOURCES): New variable.
42937 (halt_mod_CFLAGS): Likewise.
42938 (halt_mod_LDFLAGS): Likewise.
42939 (reboot_mod_SOURCES): Likewise.
42940 (reboot_mod_CFLAGS): Likewise.
42941 (reboot_mod_LDFLAGS): Likewise.
42942
c3db8364 42943 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42944 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42945 reboot.c.
f714229e 42946 (halt_mod_SOURCES): Likewise.
42947 (reboot_mod_SOURCES): Likewise.
42948
c3db8364 42949 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42950 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 42951 (reboot_mod_SOURCES): Likewise.
42952
42953 * commands/i386/pc/reboot.c: merge this file ...
42954
42955 * commands/ieee1275/reboot.c: ... and this file ...
42956
42957 * commands/reboot.c: ... to this file.
c3db8364 42958 Add some precompiler directive to include the correct header for
42959 each machine.
f714229e 42960
42961 * commands/ieee1275/halt.c: move this file ...
42962
42963 * commands/halt.c: ... to here.
c3db8364 42964 Add some precompiler directive to include the correct header for
42965 each machine.
f714229e 42966
42967 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42968 (grub_halt): Likewise.
42969
42970 * kern/efi/efi.c (grub_reboot): New function.
42971 (grub_halt): Likewise.
42972
c74493e0 429732008-02-12 Robert Millan <rmh@aybabtu.com>
42974
42975 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42976 /dev (like it is done for /dev/mapper). This doesn't provide support
42977 for EVMS, but at least it is now easy to identify the problem when it
42978 arises.
42979
d0db4b04 429802008-02-11 Robert Millan <rmh@aybabtu.com>
42981
42982 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42983 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42984 comparing it with -1, not 0.
42985
bf748642 429862008-02-10 Robert Millan <rmh@aybabtu.com>
42987
42988 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42989 `disk/lvm.c'.
42990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42991 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42992
42993 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42994 `disk/lvm.c' to the end of the list.
42995 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42996 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42997
b5db202a 429982008-02-10 Robert Millan <rmh@aybabtu.com>
42999
43000 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
43001 grub_print_error() instead. This will let user know why we're entering
43002 rescue mode.
43003 Based on suggestions from Sam Morris.
43004
83abee31 430052008-02-10 Alexandre Boeglin <alex@boeglin.org>
43006
43007 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
43008 on remaining N args, instead of "--" arg N times.
43009
78d5a08b 430102008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
43011
43012 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
43013 (fill_with_default_glyph): Changed to use unknown_glyph for fill
43014 pattern for unknown glyphs.
43015
68807e5f 430162008-02-09 Robert Millan <rmh@aybabtu.com>
43017
43018 * configure.ac: Probe for `help2man'.
43019 * Makefile.in (builddir): New variable.
43020 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
43021 or otherwise add a few flags/options to it.
43022 (install-local): For every executable utility or script that is
43023 installed, invoke $(HELP2MAN) to install a manpage based on --help
43024 output.
43025
43026 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
43027 that it doesn't prevent --help from working in build tree.
43028
43029 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
43030 with `bug-grub@gnu.org'.
43031 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
43032 * util/update-grub.in (usage): New function.
43033 Implement proper argument check, with support for --help and --version
43034 (as well as existing -y).
43035
430362008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 43037
43038 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
43039 avoid overwriting previous output.
43040 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
43041
c1962162 430422008-02-09 Robert Millan <rmh@aybabtu.com>
43043
43044 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
43045 drawing the menu.
43046
3dac2e3f 430472008-02-09 Robert Millan <rmh@aybabtu.com>
43048
43049 * commands/sleep.c: New file.
43050 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
43051 (sleep_mod_SOURCES): New variable.
43052 (sleep_mod_CFLAGS): Likewise.
43053 (sleep_mod_LDFLAGS): Likewise.
43054
7a634e08 430552008-02-09 Robert Millan <rmh@aybabtu.com>
43056
43057 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
43058 situations in which we can deduce the RAID size and the superblock
43059 doesn't match it.
43060
b92f0c18 430612008-02-09 Robert Millan <rmh@aybabtu.com>
43062
43063 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
43064 and return a grub_diskmemberlist_t composed of LVM physical volumes.
43065 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
43066
43067 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
43068 and return a grub_diskmemberlist_t composed of physical array members.
43069 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
43070
43071 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
43072 prototype.
43073 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
43074 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
43075 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
43076
43077 * util/grub-probe.c (probe): Move partmap probing code from here ...
43078 (probe_partmap): ... to here.
43079 (probe): Use probe_partmap() once for the disk we're probing, and
43080 additionally, when such disk contains a memberlist() struct member,
43081 once for each disk that is contained in the structure returned by
43082 memberlist().
43083
91a4bf68 430842008-02-09 Robert Millan <rmh@aybabtu.com>
43085
43086 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
43087 environment variable to 'all' in order to obtain debug output from
43088 non-util/ code.
43089 * util/i386/pc/grub-setup.c (main): Likewise.
43090
a96f9caa 430912008-02-08 Robert Millan <rmh@aybabtu.com>
43092
43093 * disk/raid.c (grub_raid_scan_device): Check for
43094 `array->device[sb.this_disk.number]' rather than for
43095 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 43096 guaranteed to be accessible.
a96f9caa 43097
b37a9222 430982008-02-08 Robert Millan <rmh@aybabtu.com>
43099
43100 * disk/raid.c: Update copyright.
43101 * fs/cpio.c: Likewise.
43102 * include/grub/raid.h: Likewise.
43103 * loader/i386/pc/multiboot.c: Likewise.
43104 * util/hostfs.c: Likewise.
43105
5626aee1 431062008-02-08 Robert Millan <rmh@aybabtu.com>
43107
43108 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
43109 to a grub_disk_t array.
43110 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
43111 `device[x]'.
43112 (grub_raid_scan_device): Replace `device[x].name' accesses with
43113 `device[x]->name'. Simplify initialization of `array->device[x]'.
43114
554f0187 431152008-02-08 Robert Millan <rmh@aybabtu.com>
43116
43117 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
43118 grub_dprintf() calls.
43119 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
43120 error message.
43121
1ec8425d 431222008-02-07 Christian Franke <franke@computer.org>
43123
43124 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
43125 instead of fseek and ftell to support large files.
43126 (grub_hostfs_read): Likewise.
43127
f2156fda 431282008-02-07 Robert Millan <rmh@aybabtu.com>
43129
43130 Patch from Jeroen Dekkers.
43131 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 43132 failure, since successfully reading all array members might not be
f2156fda 43133 required.
43134
9216e0e7 431352008-02-06 Robert Millan <rmh@aybabtu.com>
43136
43137 * util/grub-probe.c (probe): Simplify partmap probing (with the
43138 assumption that the first word up to the underscore equals to
43139 the module name).
43140
b0dfd29a 431412008-02-06 Christian Franke <franke@computer.org>
43142
43143 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
43144 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
43145 last block of a cpio or tar stream.
43146 Check for "TRAILER!!!" instead of any empty data
43147 block to detect last block of a cpio stream.
43148 (grub_cpio_dir): Fix constness of variable np.
43149 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
43150 cpio or tar trailer is detected. This fixes a crash
43151 on open of a non existing file.
43152
c32865bf 431532008-02-05 Bean <bean123ch@gmail.com>
43154
43155 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
43156 address of entry.
43157 (grub_multiboot_load_elf64): Likewise.
43158 (grub_multiboot): Initialize mbi structure.
43159
43160 * util/grub-fstest.c: Don't include unused header file script.h.
43161
fe6b695a 43162 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 43163 of file.
43164 (grub_fstest_SOURCES): Likewise.
43165
409480b7 431662008-02-05 Robert Millan <rmh@aybabtu.com>
43167
43168 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
43169 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
43170 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
43171 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
43172
43173 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
43174 (translation_table): Replace hardcoded values with macros
43175 provided by `<grub/term.h>'.
43176
43177 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
43178 (keyboard_map): Correct/add a few values, with macros provided
43179 by `<grub/term.h>'.
43180 (keyboard_map_shift): Zero values that don't differ from their
43181 `keyboard_map' equivalents.
43182 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
43183 Discard the second scan code that is always sent by Caps lock.
43184 Only use `keyboard_map_shift' when it provides a non-zero value,
43185 otherwise fallback to `keyboard_map'.
43186
99fadbaa 431872008-02-04 Bean <bean123ch@gmail.com>
43188
43189 * Makefile.in (enable_grub_fstest): New variable.
43190
43191 * conf/common.rmk (grub_fstest_init.lst): New rule.
43192 (grub_fstest_init.h): Likewise.
43193 (grub_fstest_init.c): Likewise.
43194 (util/grub-fstest.c_DEPENDENCIES): New variable.
43195 (grub_fstest_SOURCES): Likewise.
43196
43197 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
43198
43199 * util/grub-fstest.c: New file.
43200
bf567c50 432012008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
43202
43203 Make grub-setup handle a separate root device.
f19dbdb7 43204
bf567c50 43205 * util/i386/pc/grub-setup.c (setup): Always open the root device,
43206 so that the root device can be compared with the destination
43207 device.
43208 When embedding the core image, if the root and destination devices
43209 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
43210 0xFF.
43211 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 43212
9be6b98b 432132008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
43214
43215 Add support for having a grub directory in a different drive. This
43216 is still only the data handling part.
f19dbdb7 43217
9be6b98b 43218 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
43219 (codestart): Save %dh in GRUB_ROOT_DRIVE.
43220 (grub_root_drive): New variable.
43221
43222 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
43223 instead of GRUB_BOOT_DRIVE to construct a device name. Set
43224 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
43225 as it was.
43226
43227 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
43228
43229 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
43230 macro.
43231 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
43232
43233 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
43234 is bogus, because PXE booting does not specify any drive
43235 correctly.
43236
43237 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
43238 am not sure if this is really correct.
43239
43240 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
43241 is always identical to the boot drive when booting from a CD.
43242
43243 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
43244 longer.
43245 (root_drive): New variable.
43246 (real_start): Unconditionally set %dh to ROOT_DRIVE.
43247 (setup_sectors): Push %dx right after popping it, because %dh will
43248 be modified later.
43249 (copy_buffer): Restore %dx.
43250
e0ca0677 432512008-02-03 Robert Millan <rmh@aybabtu.com>
43252
43253 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
43254 use `cdboot.img' for cdrom images.
43255
3b3f6629 432562008-02-03 Robert Millan <rmh@aybabtu.com>
43257
43258 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
43259 only setup gfxterm when `font' command has succeeded.
43260
d42b3672 432612008-02-03 Robert Millan <rmh@aybabtu.com>
43262
43263 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
43264 (grub_rescue_cmd_multiboot_loader)
43265 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
43266
fa370ea6 432672008-02-03 Pavel Roskin <proski@gnu.org>
43268
e0c5dacb 43269 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 43270 %edx and %esi from stack only after grub_gate_a20() is called.
43271 grub_gate_a20() clobbers %edx.
43272
f2a76e1d 432732008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
43274
43275 * configure.ac (AC_INIT): Bumped to 1.96.
43276
43277 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
43278 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
43279 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
43280 video/readers/png.c.
43281
90fd32d1 432822008-02-03 Bean <bean123ch@gmail.com>
9be665dd 43283
43284 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
43285 (cdboot_img_SOURCES): New variable.
43286 (cdboot_img_ASFLAGS): New variable.
43287 (cdboot_img_LDFLAGS): New variable.
43288
43289 * boot/i386/pc/cdboot.S: New file.
43290
43291 * disk/i386/pc/biosdisk.c (cd_start): New variable.
43292 (cd_count): Likewise.
43293 (grub_biosdisk_get_drive): Add support for cd device.
43294 (grub_biosdisk_call_hook): Likewise.
43295 (grub_biosdisk_iterate): Likewise.
43296 (grub_biosdisk_open): Likewise.
43297 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
43298 (grub_biosdisk_rw): Support reading from cd device.
43299 (GRUB_MOD_INIT): Iterate cd devices.
43300
43301 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
43302 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
43303 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
43304
43305 * kern/i386/pc/init.c (make_install_device): Check for cd device.
43306
4020aa53 433072008-02-02 Robert Millan <rmh@aybabtu.com>
43308
43309 * commands/read.c: New file.
43310 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
43311 (read_mod_SOURCES): New variable.
43312 (read_mod_CFLAGS): Likewise.
43313 (read_mod_LDFLAGS): Likewise.
43314
e03a1132 433152008-02-02 Robert Millan <rmh@aybabtu.com>
43316
43317 * normal/main.c (grub_normal_execute): Check for `menu->size' when
43318 determining whether menu has to be displayed.
43319
58c69220 433202008-02-02 Marco Gerards <marco@gnu.org>
43321
43322 * bus/pci.c: New file.
43323
43324 * include/grub/pci.h: Likewise.
43325
43326 * include/grub/i386/pc/pci.h: Likewise.
43327
43328 * commands/lspci.c: Likewise.
43329
43330 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
43331 `lspci.mod'.
43332 (pci_mod_SOURCES): New variable.
43333 (pci_mod_CFLAGS): Likewise.
43334 (pci_mod_LDFLAGS): Likewise.
43335 (lspci_mod_SOURCES): Likewise.
43336 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 43337 (lspci_mod_LDFLAGS): Likewise.
58c69220 43338
c004e1b4 433392008-02-02 Bean <bean123ch@gmail.com>
43340
43341 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
43342 (grub_ufs_get_file_block): Fix indirect block calculation problem.
43343
43344 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
43345 (grub_xfs_btree_node): New structure.
43346 (grub_xfs_btree_root): New structure.
43347 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
43348 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
43349 (GRUB_XFS_EXTENT_BLOCK): Likewise.
43350 (GRUB_XFS_EXTENT_SIZE): Likewise.
43351 (grub_xfs_read_block): Support btree format type.
43352 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
43353 Use directory block as basic unit.
43354
43355 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
43356
43357 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
43358 __attribute__ ((__regparm__ (1))).
43359
f95562bf 433602008-02-01 Robert Millan <rmh@aybabtu.com>
43361
43362 Correct a mistake in previous commit.
43363
43364 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
43365 top.
43366 (normal/command.c_DEPENDENCIES): New variable.
43367
7d31f41f 433682008-02-01 Robert Millan <rmh@aybabtu.com>
43369
43370 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
43371 top.
43372 (normal/command.c_DEPENDENCIES): New variable.
43373 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
43374 * conf/i386-ieee1275.rmk: Likewise.
43375 * conf/i386-linuxbios.rmk: Likewise.
43376 * conf/i386-pc.rmk: Likewise.
43377 * conf/sparc64-ieee1275.rmk: Likewise.
43378 * conf/powerpc-ieee1275.rmk: Likewise.
43379 (grub_emu_SOURCES): Add `fs/fshelp.c'.
43380
43381 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
43382
60b6be74 433832008-02-01 Robert Millan <rmh@aybabtu.com>
43384
43385 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
43386 call at beginning of function.
43387
078522ab 433882008-01-31 Pavel Roskin <proski@gnu.org>
43389
43390 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 43391 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
43392 (grub_mkrescue_SOURCES): Likewise.
078522ab 43393 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
43394
ccaa8a5f 433952008-01-30 Robert Millan <rmh@aybabtu.com>
43396
43397 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
43398 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
43399 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
43400 (grub_probe_SOURCES): ... to here.
43401
43402 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
43403 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
43404 * conf/i386-ieee1275.rmk: Likewise.
43405 * conf/i386-linuxbios.rmk: Likewise.
43406 * conf/powerpc-ieee1275.rmk: Likewise.
43407
ae5a9cd7 434082008-01-30 Tristan Gingold <gingold@free.fr>
43409
43410 * kern/rescue.c: Silently accept empty lines.
43411
70bc2ef2 434122008-01-29 Bean <bean123ch@gmail.com>
43413
43414 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
43415 (real_code_2): Code cleanup and change comment style.
43416 (move_memory): Avoid using 32-bit address mode.
43417
6a4d50ea 434182008-01-29 Bean <bean123ch@gmail.com>
43419
43420 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
43421 (png_mod_SOURCES): New variable.
43422 (png_mod_CFLAGS): Likewise.
43423 (png_mod_LDFLAGS): Likewise.
43424
43425 * video/readers/png.c: New file.
43426
11cc30ac 434272008-01-28 Robert Millan <rmh@aybabtu.com>
43428
43429 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
43430 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
43431 `ifndef GRUB_MOD_GAP' hack.
43432 * util/elf/grub-mkimage.c (add_segments): Likewise.
43433
3abc589f 434342008-01-27 Robert Millan <rmh@aybabtu.com>
43435
43436 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
43437 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 43438 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 43439
e1907778 434402008-01-27 Robert Millan <rmh@aybabtu.com>
43441
43442 Get grub-emu to build again (including parallel builds).
43443
43444 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
43445 Split into ...
43446 (util/grub-emu.c_DEPENDENCIES): ... this, ...
43447 (normal/execute.c_DEPENDENCIES): ... this, ...
43448 (grub-emu_DEPENDENCIES): ... and this.
43449
43450 * conf/i386-efi.rmk: Likewise.
43451 * conf/i386-linuxbios.rmk: Likewise.
43452 * conf/i386-ieee1275.rmk: Likewise.
43453 * conf/powerpc-ieee1275.rmk: Likewise.
43454 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
43455
2216b101 434562008-01-27 Robert Millan <rmh@aybabtu.com>
43457
43458 * NEWS: Add a few items.
43459
f75172d9 434602008-01-27 Robert Millan <rmh@aybabtu.com>
43461
43462 Fix parallel builds with grub-emu. Based on earlier commit for
43463 grub-probe and grub-setup.
43464
43465 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43466 (util/grub-emu.c_DEPENDENCIES): ... this.
43467 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43468 (util/grub-emu.c_DEPENDENCIES): ... this.
43469 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43470 (util/grub-emu.c_DEPENDENCIES): ... this.
43471 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43472 (util/grub-emu.c_DEPENDENCIES): ... this.
43473 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43474 (util/grub-emu.c_DEPENDENCIES): ... this.
43475
3f51de77 434762008-01-27 Pavel Roskin <proski@gnu.org>
43477
43478 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
43479 to create a gap between _end and the modules added to the image
43480 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
43481 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
43482 * util/elf/grub-mkimage.c (add_segments): Likewise.
43483
2033f53e 434842008-01-26 Pavel Roskin <proski@gnu.org>
43485
43486 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
43487 just return an error.
43488
22da1f6f 434892008-01-26 Bean <bean123ch@gmail.com>
43490
43491 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
43492 (grub_reiserfs_get_item): Save offset of the next item.
43493 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
43494
2a9525e6 434952008-01-25 Robert Millan <rmh@aybabtu.com>
43496
43497 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
43498 make all filesystem sources appear together (possibly fixing omissions
43499 while at it).
43500 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43501 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43502 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43504
43505 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
43506 add `kern/file.c'.
43507 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
43508 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43509 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
43510 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43511
43512 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
43513 (probe): Add a sanity check to make sure of our ability to read
43514 requested files when probing for filesystem type.
43515
43516 * genmk.rb: Update copyright year (2007).
43517
43518 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
43519 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
43520 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
43521 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
43522 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
43523 : Remove function prototypes.
43524
b95f71b5 435252008-01-25 Robert Millan <rmh@aybabtu.com>
43526
43527 Revert my previous commits (based on wrong assumption of how grub_errno
43528 works).
43529
fe6b695a 43530 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 43531 * kern/file.c (grub_file_open): Likewise.
43532
d08bbb49 435332008-01-24 Pavel Roskin <proski@gnu.org>
43534
43535 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
43536 that hang if GRUB tries to setup colors.
43537 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
43538 colors for firmwares that don't support it.
43539 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
43540 Recognize Open Hack'Ware, set flags to work around its
43541 limitations.
43542
605e36ed 435432008-01-24 Robert Millan <rmh@aybabtu.com>
43544
43545 * kern/file.c (grub_file_open): Do not account previous failures of
43546 unrelated functions when grub_errno is checked for.
43547 Reported by Oleg Strikov.
43548
bac332a1 435492008-01-24 Bean <bean123ch@gmail.com>
43550
43551 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
43552 (grub_ufs_sblock): New member volume name.
43553 (grub_ufs_find_file): Fix string copy bug.
43554 (grub_ufs_label): Implement this function properly.
43555
43556 * fs/hfs.c (grub_hfs_cnid_type): New enum.
43557 (grub_hfs_iterate_records): Use the correct file number for extents
43558 and catalog file. Fix problem in next index calculation.
43559 (grub_hfs_find_node): Replace recursive function call with loop.
43560 (grub_hfs_iterate_dir): Replace recursive function call with loop.
43561
15c80c09 435622008-01-23 Robert Millan <rmh@aybabtu.com>
43563
43564 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
43565 `<grub/symbol.h>' and `<grub/multiboot.h>'.
43566 (grub_multiboot2_real_boot): New function prototype.
43567
43568 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
43569 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
43570
43571 * kern/i386/ieee1275/init.c (grub_os_area_addr)
43572 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
43573
305338fd 435742008-01-23 Robert Millan <rmh@aybabtu.com>
43575
43576 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
43577 #ifdef'ed out grub_printf().
43578
3ea52685 435792008-01-23 Robert Millan <rmh@aybabtu.com>
43580
43581 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
43582 grub_dprintf calls, since they make "debug=all" mode unusable.
43583 (grub_console_checkkey): Likewise.
43584
5882ae4b 435852008-01-23 Robert Millan <rmh@aybabtu.com>
43586
43587 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
43588 `term/i386/pc/at_keyboard.c'.
43589 (pkglib_MODULES): Add `serial.mod'.
43590 (serial_mod_SOURCES): New variable.
43591 (serial_mod_CFLAGS): Likewise.
43592 (serial_mod_LDFLAGS): Likewise.
43593
43594 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
43595 `<grub/powerpc/ieee1275/console.h>'.
43596 (grub_keyboard_controller_init): New function prototype.
43597 (grub_console_checkkey): Likewise.
43598 (grub_console_getkey): Likewise.
43599
43600 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
43601 keyboard on i386.
43602
43603 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
43604 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
43605
06ab5303 436062008-01-23 Robert Millan <rmh@aybabtu.com>
43607
43608 * kern/i386/pc/init.c (make_install_device): When memdisk image is
43609 present, "(memdisk)/boot/grub" becomes the default prefix.
43610
43611 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
43612 a memdisk tarball with all the modules. Add --overlay=DIR option that
43613 allows users to overlay additional files into the image.
43614
dbb475a4 436152008-01-23 Robert Millan <rmh@aybabtu.com>
43616
43617 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
43618 and `machine/memory.h'.
43619 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
43620 (_multiboot_mod_SOURCES): New variable.
43621 (_multiboot_mod_CFLAGS): Likewise.
43622 (_multiboot_mod_LDFLAGS): Likewise.
43623 (multiboot_mod_SOURCES): Likewise.
43624 (multiboot_mod_CFLAGS): Likewise.
43625 (multiboot_mod_LDFLAGS): Likewise.
43626
43627 * include/grub/i386/ieee1275/loader.h: New file.
43628
43629 * include/grub/i386/ieee1275/machine.h: Likewise.
43630
43631 * include/grub/i386/ieee1275/memory.h: Likewise.
43632
43633 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
43634 variable declaration.
43635 (grub_os_area_size): Likewise.
43636
43637 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
43638 (grub_lower_mem, grub_upper_mem): New variables.
43639 (grub_stop_floppy): New function (just to make
43640 grub_multiboot2_real_boot() happy).
43641
43642 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
43643 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
43644 (grub_stop): New function.
43645 Include `"../realmode.S"' and `"../loader.S"'.
43646
43647 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
43648 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
43649
43650 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
43651 rely on grub_multiboot2_real_boot() for final boot.
43652
25638629 436532008-01-22 Robert Millan <rmh@aybabtu.com>
43654
43655 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
43656 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
43657 device that doesn't look like an SD card.
43658 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43659 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
43660 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
43661 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
43662 found.
43663
9dad816d 436642008-01-22 Robert Millan <rmh@aybabtu.com>
43665
43666 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
43667 avoid claiming over our own code.
43668
34842f2d 436692008-01-22 Bean <bean123ch@gmail.com>
43670
43671 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
43672 (jpeg_mod_SOURCES): New variable.
43673 (jpeg_mod_CFLAGS): Likewise.
43674 (jpeg_mod_LDFLAGS): Likewise.
43675
43676 * video/readers/jpeg.c : New file.
43677
44023a28 436782008-01-22 Bean <bean123ch@gmail.com>
43679
43680 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
43681 there are no more items.
43682
bc2d8ac6 436832008-01-21 Robert Millan <rmh@aybabtu.com>
43684
43685 * kern/mm.c (grub_mm_init_region): Improve debug message.
43686
261bd4bc 436872008-01-21 Robert Millan <rmh@aybabtu.com>
43688
43689 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
43690 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
43691 address.
43692 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
43693 a C macro.
43694 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
43695 Indicates start of upper memory.
43696 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
43697 (generate_image): Abort when image size is big enough to corrupt
43698 upper memory.
43699
43700 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
43701 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
43702 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43703 instead of hardcoding 0xA0000.
43704 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
43705 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43706 instead of hardcoding 0xA0000.
43707
f970b55e 437082008-01-21 Robert Millan <rmh@aybabtu.com>
43709
43710 * disk/memdisk.c (memdisk_size): New variable.
43711 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
43712 `memdisk_size'.
43713 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
43714 image to dynamic memory.
43715 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
43716 `memdisk_size'. Free memdisk block.
43717
1a8b0526 437182008-01-21 Robert Millan <rmh@aybabtu.com>
43719
43720 Fix detection of very small filesystems (like tar).
43721
43722 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
43723 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
43724 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
43725 a problem with this disk).
43726
6e9b4aab 437272008-01-21 Robert Millan <rmh@aybabtu.com>
43728
43729 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
43730 on grub_biosdisk_rw_standard() error.
43731
0d8837b2 437322008-01-21 Robert Millan <rmh@aybabtu.com>
43733
43734 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
43735 recent changes.
43736 * kern/elf.c: Likewise.
43737 * kern/ieee1275/ieee1275.c: Likewise.
43738 * kern/powerpc/ieee1275/openfw.c: Likewise.
43739 * term/ieee1275/ofconsole.c: Likewise.
43740
ffd36e34 437412008-01-21 Robert Millan <rmh@aybabtu.com>
43742
43743 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
43744
3f0093d0 43745 * include/grub/kernel.h (grub_arch_memdisk_addr)
43746 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 43747
3f0093d0 43748 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
43749 (grub_arch_memdisk_size): ... to here.
ffd36e34 43750
6c391b21 437512008-01-21 Robert Millan <rmh@aybabtu.com>
43752
43753 Mostly based on bugfix from Bean.
43754
43755 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
43756 attribute with hook() parameter.
43757 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
43758 declaration.
43759 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
43760 attribute with hook() parameter.
43761 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
43762 declaration.
43763
55a581dc 437642008-01-21 Robert Millan <rmh@aybabtu.com>
43765
43766 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43767 (pkglib_MODULES): Add `memdisk.mod'.
43768 (memdisk_mod_SOURCES): New variable.
43769 (memdisk_mod_CFLAGS): Likewise.
43770 (memdisk_mod_LDFLAGS): Likewise.
43771
43772 * disk/memdisk.c: New file.
43773
43774 * include/grub/disk.h (grub_disk_dev_id): Add
43775 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43776
43777 * include/grub/i386/pc/kernel.h
43778 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43779 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43780 (grub_kernel_image_size): New variable declaration.
43781 (grub_total_module_size): Likewise.
43782 (grub_memdisk_image_size): Likewise.
43783
43784 * include/grub/i386/pc/memory.h
43785 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43786
43787 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43788 (grub_arch_memdisk_addr): New variable declaration.
43789 (grub_arch_memdisk_size): Likewise.
43790
43791 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43792 (grub_arch_memdisk_size): Likewise.
43793
43794 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43795 (codestart): Replace hardcoded `0x100000' with
43796 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43797
43798 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43799 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43800 not NULL, append the contents of the file it refers to, at the end of
43801 the compressed kernel image. Initialize `grub_memdisk_image_size'
43802 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43803 (options): Add "memdisk"|'m' option.
43804 (main): Parse --memdisk|-m option, and pass user-provided path as
43805 parameter to generate_image().
43806
3d7f54c9 438072008-01-20 Robert Millan <rmh@aybabtu.com>
43808
43809 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43810 grub_dprintf() calls from here ...
43811 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43812
0bf74728 438132008-01-20 Robert Millan <rmh@aybabtu.com>
43814
43815 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43816
43817 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43818 declaration.
43819 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43820 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43821 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 43822 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 43823 property).
43824 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43825 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43826
33bf70a7 438272008-01-19 Robert Millan <rmh@aybabtu.com>
43828
fe6b695a 43829 Get rid of confusing function (superseded by
33bf70a7 43830 `grub_ieee1275_get_integer_property')
43831 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43832 prototype.
43833 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43834 function.
43835 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43836 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 43837 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 43838
e2da7d26 438392008-01-19 Robert Millan <rmh@aybabtu.com>
43840
43841 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43842 command after "shut-down", since implementations differ on which
43843 the command for halt is.
43844
59f1fd8d 438452008-01-19 Robert Millan <rmh@aybabtu.com>
43846
43847 * include/grub/i386/linuxbios/console.h: Add header protection.
43848 (grub_keyboard_controller_init): New function prototype.
43849 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43850 (KEYBOARD_COMMAND_READ): Likewise.
43851 (KEYBOARD_COMMAND_WRITE): Likewise.
43852 (KEYBOARD_SCANCODE_SET1): Likewise.
43853 (grub_keyboard_controller_write): New function.
43854 (grub_keyboard_controller_read): Likewise.
43855 (grub_keyboard_controller_init): Likewise.
43856
43857 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43858 (grub_console_init): On coreboot/LinuxBIOS, call
43859 grub_keyboard_controller_init().
43860
5f5a7c15 438612008-01-19 Robert Millan <rmh@aybabtu.com>
43862
43863 PowerPC changes provided by Pavel Roskin.
43864
43865 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43866 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43867 don't rely on cmain() doing it.
43868 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43869 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43870
1210e168 438712008-01-16 Robert Millan <rmh@aybabtu.com>
43872
43873 * include/grub/i386/linuxbios/memory.h
43874 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43875 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43876 receive `table_header' as argument. Instead, probe for it in the
43877 known memory ranges where it can be present.
43878 (grub_available_iterate): Do not pass a fixed `table_header' address
43879 to grub_linuxbios_table_iterate().
43880
3d04eab8 438812008-01-15 Robert Millan <rmh@aybabtu.com>
43882
43883 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43884 * conf/i386-ieee1275.rmk: New file.
43885 * include/grub/i386/ieee1275/console.h: Likewise.
43886 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43887 * include/grub/i386/ieee1275/kernel.h: Likewise.
43888 * include/grub/i386/ieee1275/time.h: Likewise.
43889 * kern/i386/ieee1275/init.c: Likewise.
43890 * kern/i386/ieee1275/startup.S: Likewise.
43891
d1bc1b73 438922008-01-15 Robert Millan <rmh@aybabtu.com>
43893
43894 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43895 when pointers are 32-bit (but still do set it to one when they are
43896 64-bit).
43897
66a65807 438982008-01-15 Robert Millan <rmh@aybabtu.com>
43899
43900 * include/grub/ieee1275/ieee1275.h
43901 (grub_ieee1275_get_integer_property): New function prototype.
43902
43903 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43904 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 43905 grub_ieee1275_get_property() to handle endianness.
66a65807 43906
43907 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43908 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 43909 where appropriate.
66a65807 43910 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43911 (grub_map): Likewise.
43912 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43913
a83ccafd 439142008-01-15 Bean <bean123ch@gmail.com>
43915
43916 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43917 (grub_script_execute_cmdline): Reset grub_errno.
43918
43919 * normal/main.c (read_config_file): Reset grub_errno.
43920
43921 * normal/parse.y (script_init): New.
43922 (script): Move function and menuentry here.
43923 (delimiter): New.
43924 (command): Add delimiter at the end of command.
43925 (commands): Adjust to match the new command.
43926 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 43927 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 43928 (if): Use the new commands.
43929
43930 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43931
df6ecfc6 439322008-01-15 Robert Millan <rmh@aybabtu.com>
43933
43934 * normal/menu.c (run_menu): Move timeout message from here ...
43935 (print_timeout): ... to here.
43936 (run_menu): Use print_timeout() once during initial draw to print
43937 the whole message, and again in every clock tick to update only
43938 the number of seconds.
43939
87ae25eb 439402008-01-15 Robert Millan <rmh@aybabtu.com>
43941
43942 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43943 actual size of `available' from grub_ieee1275_get_property(), and
43944 restrict parsing to that bound.
43945
47bf09a4 439462008-01-15 Christian Franke <franke@computer.org>
43947
43948 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43949 (argp_program_version): Remove variable.
43950 (argp_program_bug_address): Likewise.
43951 (options): Convert from struct argp_option to struct option.
43952 (struct arguments): Remove.
43953 (parse_opt): Remove.
43954 (usage): New function.
43955 (main): Replace struct args members by simple variables.
43956 Replace argp_parse() by getopt_long().
43957 Add switch to evaluate options.
43958 Add missing "(...)" around root_dev in prefix string.
43959
c86f1469 439602008-01-14 Robert Millan <rmh@aybabtu.com>
43961
43962 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43963 for grub_ieee1275_exit(), in order to improve portability.
43964
e622c559 439652008-01-14 Robert Millan <rmh@aybabtu.com>
43966
43967 * util/grub.d/10_linux.in (prefix): Define.
43968 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43969
44cb1ec8 439702008-01-13 Pavel Roskin <proski@gnu.org>
43971
43972 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43973 grub_errno if no errors have been detected.
43974
1eb8c802 439752008-01-12 Robert Millan <rmh@aybabtu.com>
43976
43977 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43978 (grub_util_get_dev_abstraction): New function prototype.
43979
43980 * util/getroot.c: Include `<grub/util/getroot.h>'
43981 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43982 (grub_util_get_dev_abstraction): ... here (new function).
43983
43984 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43985 `PRINT_ABSTRACTION'.
43986 (probe): Probe for abstraction type when requested.
43987 (main): Understand `--target=abstraction'.
43988
43989 * util/i386/efi/grub-install.in: Add abstraction module to core
43990 image when it is found to be necessary.
43991 * util/i386/pc/grub-install.in: Likewise.
43992 * util/powerpc/ieee1275/grub-install.in: Likewise.
43993
43994 * util/update-grub_lib.in (font_path): Return system path without
43995 converting to GRUB path.
43996 * util/update-grub.in: Convert system path returned by font_path()
43997 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43998 abstraction module is needed for loading fonts (if any). Export
43999 that as `GRUB_PRELOAD_MODULES'.
44000 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
44001 insmod commands).
44002
52bd3de9 440032008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
44004
44005 Remove some unused code from reiserfs.
f19dbdb7 44006
52bd3de9 44007 * fs/reiserfs.c (struct grub_reiserfs_key)
44008 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
44009 (struct grub_reiserfs_node_body): Removed.
44010 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
44011 Likewise.
44012 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
44013 Likewise.
44014 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
44015 Likewise.
44016 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
44017 Likewise.
44018 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
44019 Likewise.
44020 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
44021 Likewise.
44022 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
44023 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
44024 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
44025
2f80039d 440262008-01-10 Robert Millan <rmh@aybabtu.com>
44027
44028 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
44029 Determines if a file is garbage left by packaging systems, etc.
44030 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
44031 for processing /etc/grub.d scripts.
44032 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
44033 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
44034 as a condition for processing Linux images.
44035
87888032 440362008-01-10 Pavel Roskin <proski@gnu.org>
44037
44038 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
44039 to compile reiserfs.c on PowerPC.
44040
7e54fced 440412008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 44042
44043 * kern/device.c (grub_device_iterate): Do not abort device iteration
44044 when one of the devices cannot be opened.
44045 * kern/disk.c (grub_disk_open): Do not account previous failures of
44046 unrelated functions when grub_errno is checked for.
44047
5aa541e6 440482008-01-08 Robert Millan <rmh@aybabtu.com>
44049
44050 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
44051 `! grub_linux_is_bzimage', change order of address comparison to make
44052 it more intuitive, and improve "too big zImage" error message.
44053
7076340d 440542008-01-08 Robert Millan <rmh@aybabtu.com>
44055
44056 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
44057 `$(update-grub_DATA)'.
44058 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
44059 targets.
44060
9ca70333 440612008-01-07 Robert Millan <rmh@aybabtu.com>
44062
44063 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
44064 which instruction is modified by grub-setup during installation
44065 (since it wasn't obvious by only looking at this file).
44066
38ccf575 440672008-01-07 Robert Millan <rmh@aybabtu.com>
44068
44069 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
44070 listing actual TODO items.
44071
f5db4291 440722008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
44073
868967cf 44074 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
44075 correctly.
44076 (grub_reiserfs_get_key_offset): Likewise.
44077 (grub_reiserfs_set_key_offset): Likewise.
44078 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 44079 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 44080
44081 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
44082 better to remove the bitfield version completely.
f19dbdb7 44083
868967cf 440842008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44085
f5db4291 44086 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
44087 allocated from the heap, due to the fshelp implementation.
44088 (grub_reiserfs_dir): Free NODE, due to the same reason.
44089
492e6d9d 440902008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
44091
44092 Mostly from Vincent Pelletier:
f19dbdb7 44093
492e6d9d 44094 * fs/reiserfs.c: New file.
f19dbdb7 44095
492e6d9d 44096 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
44097 (reiserfs_mod_SOURCES): New variable.
44098 (reiserfs_mod_CFLAGS): Likewise.
44099 (reiserfs_mod_LDFLAGS): Likewise.
44100
44101 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
44102 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
44103 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
44104 normal/color.c.
44105
9ce3e7c1 441062008-01-06 Robert Millan <rmh@aybabtu.com>
44107
44108 * normal/color.c: Remove `<grub/env.h>'.
44109
f3b58148 441102008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
44111
44112 * include/grub/normal.h: Include <grub/env.h>.
44113
7ac3bcfa 441142008-01-05 Robert Millan <rmh@aybabtu.com>
44115
44116 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
44117 usage example with `(hd0,1)'.
fb358190 44118 Reported by Samuel Thibault.
7ac3bcfa 44119
c8ee99d7 441202008-01-05 Robert Millan <rmh@aybabtu.com>
44121
44122 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
44123 (grub_linux_boot_zimage): Rename to ...
44124 (grub_linux_boot): ... this.
44125 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
44126 (grub_linux_boot_zimage): Conditionalize zImage copy.
44127
44128 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
44129 (grub_linux_boot_bzimage): Remove prototype.
44130 (grub_linux_boot_zimage): Rename to ...
44131 (grub_linux_boot): ... this.
44132
44133 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
44134 (grub_linux_boot): Remove function.
44135
0ece25b1 441362008-01-05 Robert Millan <rmh@aybabtu.com>
44137
44138 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
44139 (grub_env_write_color_highlight): Likewise.
44140 (grub_wait_after_message): Likewise.
44141
44142 * normal/color.c: New file.
44143
44144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
44145 (normal_mod_DEPENDENCIES): Likewise.
44146
44147 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
44148 (normal_mod_DEPENDENCIES): Likewise.
44149
44150 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
44151 (normal_mod_DEPENDENCIES): Likewise.
44152
44153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
44154 (normal_mod_DEPENDENCIES): Likewise.
44155
44156 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
44157 for waiting after a message is printed.
44158 * normal/main.c (read_config_file): Likewise.
44159 (grub_normal_init): Register grub_env_write_color_normal() and
44160 grub_env_write_color_highlight() hooks. Mark `color_normal' and
44161 `color_highlight' variables as global.
44162
44163 * normal/menu.c (grub_wait_after_message): New function.
44164 (grub_color_menu_normal): New variable. Replaces ...
44165 (GRUB_COLOR_MENU_NORMAL): ... this macro.
44166 (grub_color_menu_highlight): New variable. Replaces ...
44167 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
44168 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
44169 `GRUB_TERM_COLOR_STANDARD'.
44170 (print_message): Use `grub_setcolorstate' to reload colors. Rename
44171 `normal_code' and `highlight_code' to `old_color_normal' and
44172 `old_color_highlight', respectively.
44173 (grub_menu_init_page): Update colors when drawing the menu, based on
44174 `menu_color_normal' and `menu_color_highlight' variables.
44175 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
44176 a message is printed.
44177
182dd4e5 441782008-01-05 Robert Millan <rmh@aybabtu.com>
44179
44180 * kern/env.c (grub_env_context_open): Propagate hooks for global
44181 variables to new context.
44182
44183 * kern/main.c (grub_set_root_dev): Export `root' variable.
44184
ddf8f6ad 441852008-01-05 Robert Millan <rmh@aybabtu.com>
44186
44187 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 44188 discs unconditionally, since udev and others have options to provide
ddf8f6ad 44189 them.
44190
d8b43d9b 441912008-01-05 Robert Millan <rmh@aybabtu.com>
44192
44193 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
44194
2bff2de3 441952008-01-04 Christian Franke <franke@computer.org>
44196
44197 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
44198 of eisa_mmap.
44199
97eab917 442002008-01-03 Pavel Roskin <proski@gnu.org>
44201
44202 * kern/i386/linuxbios/init.c: Put "void" to all function
44203 declarations with no arguments.
44204 * kern/powerpc/ieee1275/init.c: Likewise.
44205 * term/i386/pc/at_keyboard.c: Likewise.
44206 * term/i386/pc/vga_text.c: Likewise.
44207 * util/grub-mkdevicemap.c: Likewise.
44208
b9416d00 442092008-01-02 Robert Millan <rmh@aybabtu.com>
44210
44211 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
44212 message when loaded image is out of bounds.
44213 (grub_multiboot_load_elf64): Likewise.
44214
92695df9 442152008-01-02 Pavel Roskin <proski@gnu.org>
44216
44217 * util/grub.d/10_linux.in: Try version without ".old" when
44218 looking for initrd. It's better to use initrd from the newer
44219 kernel of the same version than no initrd at all.
44220
d98d9cad 442212008-01-01 Robert Millan <rmh@aybabtu.com>
44222
44223 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
44224
dbfdce36 442252008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
44226
f19dbdb7 44227 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 44228 grub_video_get_active_render_target.
44229 (grub_video_adapter): Added unmap_color and get_active_render_target.
44230
f19dbdb7 44231 * video/video.c: Added grub_video_unmap_color and
dbfdce36 44232 grub_video_get_active_render_target.
44233 (grub_video_get_info): Changed method to accept NULL pointer as an
44234 argument to allow detection of active video adapter.
44235
44236 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
44237 grub_video_vbe_unmap_color_int.
44238 Added grub_video_vbe_unmap_color and
44239 grub_video_vbe_get_active_render_target.
44240 (grub_video_vbe_adapter): Added unmap_color and
44241 get_active_render_target.
44242
f19dbdb7 44243 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 44244 with grub_video_vbe_unmap_color_int.
44245
44246 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
44247 (DEFAULT_NORMAL_COLOR): Likewise.
44248 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
44249 (DEFAULT_FG_COLOR): Removed.
44250 (DEFAULT_BG_COLOR): Likewise.
44251 (DEFAULT_CURSOR_COLOR): Changed value.
44252 (grub_virtual_screen): Added standard_color_setting,
44253 normal_color_setting, highlight_color_setting and term_color.
44254 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
44255 (bitmap_width): Added.
44256 (bitmap_height): Likewise.
44257 (bitmap): Likewise.
44258 (set_term_color): Likewise.
44259 (grub_virtual_screen_setup): Changed to use new terminal coloring
44260 settings.
44261 (grub_gfxterm_init): Added init for bitmap.
44262 (grub_gfxterm_fini): Added destroy for bitmap.
44263 (redraw_screen_rect): Updated to use background bitmap and new
44264 terminal coloring.
44265 (scroll_up): Added optimization for case when there is no bitmap.
44266 (grub_gfxterm_cls): Fixed to use correct background color.
44267 (grub_virtual_screen_setcolorstate): Changed to use new terminal
44268 coloring.
44269 (grub_virtual_screen_setcolor): Likewise.
44270 (grub_virtual_screen_getcolor): Added.
44271 (grub_gfxterm_background_image_cmd): Likewise.
44272 (grub_video_term): Added setcolor and getcolor.
44273 (MOD_INIT): Added registration of background_image command.
44274 (MOD_TERM): Added unregistration for background_image command.
44275
c3c20931 442762007-12-30 Pavel Roskin <proski@gnu.org>
44277
44278 * loader/multiboot_loader.c: Fix multiboot command
44279 unregistration. Fix all typos in the word "multiboot".
44280
df266716 442812007-12-29 Pavel Roskin <proski@gnu.org>
94239199 44282
44283 * util/grub.d/10_linux.in: Refactor search for initrd. Add
44284 support for initrd names used in Fedora.
44285
fc6e896c 442862007-12-26 Bean <bean123ch@gmail.com>
44287
44288 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
44289 (cpio_mod_SOURCES): New variable.
44290 (cpio_mod_CFLAGS): Likewise.
44291 (cpio_mod_LDFLAGS): Likewise.
44292
44293 * fs/cpio.c: New file.
44294
44295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
44296
44297 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44298
44299 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44300
44301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44302
533110ad 443032007-12-25 Robert Millan <rmh@aybabtu.com>
44304
44305 * include/grub/term.h (struct grub_term): Add `getcolor' function.
44306 (grub_getcolor): New function.
44307
44308 * kern/term.c (grub_getcolor): New function.
44309 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
44310 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
44311 (print_entry): Set normal and highlight colors to
44312 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
44313 respectively, before printing and restore them to old
44314 values afterwards.
44315 (grub_menu_init_page): Likewise. Fill an additional colored space
44316 that would otherwise be left blank.
44317
44318 * term/efi/console.c (grub_console_getcolor): New function.
44319 (struct grub_console_term.getcolor): New variable.
44320 * term/i386/pc/console.c (grub_console_getcolor): New function.
44321 (struct grub_console_term.getcolor): New variable.
44322 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
44323 (struct grub_console_term.getcolor): New variable.
44324
44325 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
44326 (struct grub_console_term.setcolor): Remove variable.
44327 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
44328 (struct grub_console_term.setcolor): Remove variable.
44329 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
44330 (struct grub_console_term.setcolor): Remove variable.
44331 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
44332 (struct grub_console_term.setcolor): Remove variable.
44333
4931827f 443342007-12-25 Robert Millan <rmh@aybabtu.com>
44335
44336 * configure.ac: Search for possible unifont.hex locations, and
44337 define UNIFONT_HEX if found.
44338
44339 * Makefile.in (UNIFONT_HEX): Define variable.
44340 (DATA): Rename to ...
44341 (PKGLIB): ... this. Update all users.
44342 (PKGDATA): New variable.
44343 (pkgdata_IMAGES): Rename to ...
44344 (pkglib_IMAGES): ... this. Update all users.
44345 (pkgdata_MODULES): Rename to ...
44346 (pkglib_MODULES): ... this. Update all users.
44347 (pkgdata_PROGRAMS): Rename to ...
44348 (pkglib_PROGRAMS): ... this. Update all users.
44349 (pkgdata_DATA): Rename to ...
44350 (pkglib_DATA): ... this. Update all users.
44351 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
44352 (unicode.pff, ascii.pff): New rules.
44353 (all-local): Add `$(PKGDATA)' dependency.
44354 (install-local): Process `$(PKGDATA)'.
44355
44356 * util/update-grub_lib.in (font_path): Search for *.pff files in
44357 a few more locations, including `${pkgdata}'.
44358
57e57e31 443592007-12-23 Robert Millan <rmh@aybabtu.com>
44360
44361 Patch from Bean <bean123ch@gmail.com>:
44362 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
44363 `size'.
44364
4bc72aa9 443652007-12-21 Bean <bean123ch@gmail.com>
44366
44367 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
44368 (ntfscomp_mod_SOURCES): New variable.
44369 (ntfscomp_mod_CFLAGS): Likewise.
44370 (ntfscomp_mod_LDFLAGS): Likewise.
44371
44372 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
44373 (grub_probe_SOURCES): Likewise.
44374 (grub_emu_SOURCES): Likewise.
44375
44376 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44377 (grub_emu_SOURCES): Likewise.
44378
44379 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44380 (grub_emu_SOURCES): Likewise.
44381
44382 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44383 (grub_emu_SOURCES): Likewise.
44384
44385 * fs/ntfs.c (grub_ntfscomp_func): New variable.
44386 (read_run_list): Renamed to grub_ntfs_read_run_list.
44387 (decomp_nextvcn): Moved to ntfscomp.c.
44388 (decomp_getch): Likewise.
44389 (decomp_get16): Likewise.
44390 (decomp_block): Likewise.
44391 (read_block): Likewise.
44392 (read_data): Partially moved to ntfscomp.c.
44393 (fixup): Change unsigned to grub_uint16_t.
44394 (read_mft): Change unsigned long to grub_uint32_t.
44395 (read_attr): Likewise.
44396 (read_data): Likewise.
44397 (read_run_data): Likewise.
44398 (read_run_list): Likewise.
44399 (read_mft): Likewise.
44400
44401 * fs/ntfscomp.c: New file.
44402
44403 * include/grub/ntfs.h: New file.
44404
af680a87 444052007-12-16 Robert Millan <rmh@aybabtu.com>
44406
44407 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
44408 IDE disk check, since Linux is known to support 20 IDE disks.
44409 Reported by Colin Watson.
44410
84be7599 444112007-12-15 Bean <bean123ch@gmail.com>
44412
44413 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
44414 (lnxboot_img_SOURCES): New variable.
44415 (lnxboot_img_ASFLAGS): Likewise.
44416 (lnxboot_img_LDFLAGS): Likewise.
44417
44418 * boot/i386/pc/lnxboot.S: New file.
44419
6af9db01 444202007-11-24 Pavel Roskin <proski@gnu.org>
44421
44422 * configure.ac: Test if '--build-id=none' is supported by the
44423 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
44424 objcopy to generate incorrect binary files (binutils
44425 2.17.50.0.18-1 as shipped by Fedora 8).
44426 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
44427 linking, so that build ID doesn't break the test.
44428
7361cfe6 444292007-11-24 Pavel Roskin <proski@gnu.org>
44430
44431 * include/grub/i386/time.h: use "void" in the argument list
44432 of grub_cpu_idle().
44433 * include/grub/powerpc/time.h: Likewise.
44434 * include/grub/sparc64/time.h: Likewise.
44435
1593e10c 444362007-11-18 Christian Franke <franke@computer.org>
44437
44438 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
44439 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
44440 This fixes the problem that function keys did not work in grub-emu.
44441
3b8db1a8 444422007-11-18 Christian Franke <franke@computer.org>
44443
44444 * disk/host.c (grub_host_open): Remove attribute unused from
44445 name parameter. Add check for "host". This fixes the problem
44446 that grub-emu does not find partitions.
44447
2e29408d 444482007-11-18 Christian Franke <franke@computer.org>
44449
44450 * util/hostfs.c (is_dir): New function.
44451 (grub_hostfs_dir): Handle missing dirent.d_type case.
44452 (grub_hostfs_read): Add missing fseek().
44453 (grub_hostfs_label): Clear label pointer. This fixes a crash
44454 of grub-emu on "ls (host)".
44455
398cd047 444562007-11-18 Christian Franke <franke@computer.org>
44457
44458 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
44459 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
44460 to 64 bit boundary by default.
44461
c405c391 444622007-11-18 Bean <bean123ch@gmail.com>
44463
44464 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
44465 (hexdump_mod_SOURCES): New variable.
44466 (hexdump_mod_CFLAGS): Likewise.
44467 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 44468
c405c391 44469 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44470
44471 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44472
44473 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44474
44475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44476
44477 * include/grub/hexdump.h: New file.
44478
44479 * commands/hexdump.c: New file.
44480
5cced7fd 444812007-11-10 Robert Millan <rmh@aybabtu.com>
44482
44483 * commands/i386/pc/play.c (beep_off): Switch order of arguments
44484 in grub_outb() calls.
44485 (beep_on): Likewise.
44486
8b714eb0 444872007-11-10 Christian Franke <franke@computer.org>
44488
44489 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
44490 (grub_menu_run): Likewise.
44491
ce0f1839 444922007-11-10 Robert Millan <rmh@aybabtu.com>
44493
44494 * include/grub/i386/efi/machine.h: New file.
44495 * include/grub/i386/linuxbios/machine.h: Likewise.
44496 * include/grub/i386/pc/machine.h: Likewise.
44497 * include/grub/powerpc/ieee1275/machine.h: Likewise.
44498 * include/grub/sparc64/ieee1275/machine.h: Likewise.
44499
44500 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
44501 (serial_hw_io_addr): New variable.
44502 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
44503 instead of `(unsigned short *) 0x400'.
44504
270c237d 445052007-11-10 Bean <bean123ch@gmail.com>
44506
44507 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
44508
a87783bf 445092007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44510
44511 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
44512 (vga_mod_SOURCES): Added.
44513 (vga_mod_CFLAGS): Likewise.
44514 (vga_mod_LDFLAGS): Likewise.
44515
44516 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
44517 grub_outb() calls.
44518 (set_map_mask): Likewise.
44519 (set_read_map): Likewise.
44520 (set_read_address): Likewise.
44521 (vga_font): Removed variable.
44522 (get_vga_glyph): Removed function.
44523 (invalidate_char): Likewise.
44524 (write_char): Changed to use grub_font_get_glyph() for font
44525 information.
44526 (grub_vga_putchar): Likewise.
44527 (grub_vga_getcharwidth): Likewise.
44528
6433b448 445292007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44530
44531 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
44532 flags.
44533 (pxeboot_img_LDFLAGS): Likewise.
44534 (diskboot_img_LDFLAGS): Likewise.
44535 (kernel_img_LDFLAGS): Likewise.
44536
49178511 445372007-11-06 Robert Millan <rmh@aybabtu.com>
44538
44539 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
44540 in grub_outb() calls.
44541 (serial_hw_init): Likewise.
44542
53b052de 445432007-11-05 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
44546 spaces. Skip non-regular files.
44547
5ab33bba 445482007-11-05 Robert Millan <rmh@aybabtu.com>
44549
44550 * kern/disk.c (grub_disk_firmware_fini)
44551 (grub_disk_firmware_is_tainted): New variables.
44552
44553 * include/grub/disk.h (grub_disk_firmware_fini)
44554 (grub_disk_firmware_is_tainted): Likewise.
44555
44556 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
44557 (grub_disk_biosdisk_fini): ... to here.
44558 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
44559 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
44560 is set. Register grub_disk_biosdisk_fini() in
44561 `grub_disk_firmware_fini'.
44562
44563 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
44564 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
44565 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
44566 to finish existing firmware disk interface.
44567
44568 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
44569 (ata_mod_SOURCES): New variable.
44570 (ata_mod_CFLAGS): Likewise.
44571 (ata_mod_LDFLAGS): Likewise.
44572
0149ab7c 445732007-11-05 Robert Millan <rmh@aybabtu.com>
44574
44575 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
44576 (grub_ata_wait): Reimplement using grub_millisleep().
44577
44578 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
44579 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
44580
be7ac41e 445812007-11-03 Marco Gerards <marco@gnu.org>
44582
44583 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
44584 (CRTC_ADDR_PORT): New macro.
44585 (CRTC_DATA_PORT): Likewise.
44586 (CRTC_CURSOR): Likewise.
44587 (CRTC_CURSOR_ADDR_HIGH): Likewise.
44588 (CRTC_CURSOR_ADDR_LOW): Likewise.
44589 (update_cursor): New function.
44590 (grub_console_real_putchar): Call `update_cursor'.
44591 (grub_console_gotoxy): Likewise.
44592 (grub_console_cls): Set the default color when clearing the
44593 screen.
44594 (grub_console_setcursor): Implemented.
44595
bb06ab2e 445962007-11-03 Marco Gerards <marco@gnu.org>
44597
44598 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
44599 become activate.
44600 (grub_ata_pio_write): Likewise.
44601
44602 (grub_atapi_identify): Wait after issuing an ATA command.
44603 (grub_atapi_packet): Likewise.
44604 (grub_ata_identify): Likewise.
44605 (grub_ata_readwrite): Likewise.
44606
cf8f780b 446072007-11-03 Marco Gerards <marco@gnu.org>
44608
44609 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
44610 (grub_ata_pio_write): Likewise.
44611 (grub_ata_readwrite): Use `grub_error', instead of
44612 returning `grub_errno'.
44613
ed649e54 446142007-11-03 Marco Gerards <marco@gnu.org>
44615
44616 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
44617 grub_ata_pio_write once for every single sector, instead of for
44618 multiple sectors.
44619
ca25d8f0 446202007-10-31 Robert Millan <rmh@aybabtu.com>
44621
44622 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
44623
44624 * conf/i386-linuxbios.rmk: New file.
44625
44626 * kern/i386/pc/hardware.c: Likewise.
44627 * term/i386/pc/at_keyboard.c: Likewise.
44628 * term/i386/pc/vga_text.c: Likewise.
44629
44630 * include/grub/i386/linuxbios/boot.h: Likewise.
44631 * include/grub/i386/linuxbios/console.h: Likewise.
44632 * include/grub/i386/linuxbios/init.h: Likewise.
44633 * include/grub/i386/linuxbios/kernel.h: Likewise.
44634 * include/grub/i386/linuxbios/loader.h: Likewise.
44635 * include/grub/i386/linuxbios/memory.h: Likewise.
44636 * include/grub/i386/linuxbios/serial.h: Likewise.
44637 * include/grub/i386/linuxbios/time.h: Likewise.
44638
44639 * kern/i386/linuxbios/init.c: Likewise.
44640 * kern/i386/linuxbios/startup.S: Likewise.
44641 * kern/i386/linuxbios/table.c: Likewise.
44642
e911ecc1 446432007-10-31 Marco Gerards <marco@gnu.org>
44644
44645 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
44646 (ata_mod_SOURCES): New variable.
44647 (ata_mod_CFLAGS): Likewise.
44648 (ata_mod_LDFLAGS): Likewise.
44649
44650 * disk/ata.c: New file.
44651
44652 * include/grub/disk.h (grub_disk_dev_id): Add
44653 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 44654
7f66d0e0 446552007-10-31 Robert Millan <rmh@aybabtu.com>
44656
44657 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
44658 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
44659
44660 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
44661 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
44662
44663 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
44664 `<grub/types.h>'.
44665
44666 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
44667
5cd7dd46 446682007-10-27 Robert Millan <rmh@aybabtu.com>
44669
3236ca65 44670 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 44671
2ebfc90f 446722007-10-22 Robert Millan <rmh@aybabtu.com>
44673
44674 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
44675 `"../realmode.S"'.
44676 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
44677
73fcb0f3 446782007-10-22 Robert Millan <rmh@aybabtu.com>
44679
44680 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
44681 (pkgdata_MODULES): Add `biosdisk.mod'.
44682 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
44683 variables.
44684
44685 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
44686 (grub_biosdisk_init): Replace with ...
44687 (GRUB_MOD_INIT(biosdisk)): ... this.
44688 (grub_biosdisk_fini): Replace with ...
44689 (GRUB_MOD_FINI(biosdisk)): ... this.
44690
44691 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
44692 (grub_machine_init): Remove call to grub_biosdisk_init().
44693 (grub_machine_fini): Remove call to grub_machine_fini().
44694
44695 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
44696
3381d274 446972007-10-22 Robert Millan <rmh@aybabtu.com>
44698
44699 * include/grub/time.h: New file.
44700 * include/grub/i386/time.h: Likewise.
44701 * include/grub/powerpc/time.h: Likewise.
44702 * include/grub/sparc64/time.h: Likewise.
44703
44704 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
44705 instances to ...
44706 (KERNEL_MACHINE_TIME_HEADER): ... this.
44707 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44708 instances to ...
44709 (KERNEL_MACHINE_TIME_HEADER): ... this.
44710 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44711 instances to ...
44712 (KERNEL_MACHINE_TIME_HEADER): ... this.
44713
44714 * kern/i386/efi/init.c: Include `<grub/time.h>'.
44715 (grub_millisleep): New function.
44716 * kern/i386/pc/init.c: Include `<grub/time.h>'.
44717 (grub_millisleep): New function.
44718 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
44719 Remove `grub/machine/time.h' include.
44720 (grub_millisleep): New function.
44721 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
44722 Remove `grub/machine/time.h' include.
44723 (grub_millisleep): New function.
44724
44725 * include/grub/misc.h (grub_div_roundup): New function.
44726
44727 * kern/misc.c: Include `<grub/time.h>'.
44728 (grub_millisleep_generic): New function.
44729
44730 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
44731 Add `time.h'.
44732 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
44733 Add `time.h'.
44734 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
44735 `machine/time.h'. Add `time.h'.
44736 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44737
a39a0312 447382007-10-21 Robert Millan <rmh@aybabtu.com>
44739
44740 * include/grub/misc.h (grub_max): New function.
44741
2aad70e2 447422007-10-21 Robert Millan <rmh@aybabtu.com>
44743
44744 * util/misc.c (grub_util_info): Call fflush() before returning.
44745
54b71c4b 447462007-10-20 Robert Millan <rmh@aybabtu.com>
44747
44748 * genmk.rb (Image): Copy `extra_flags' from here ...
44749 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
44750
44751 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
44752 to `argc' and `args' arguments.
44753
a979f513 447542007-10-17 Robert Millan <rmh@aybabtu.com>
44755
44756 * kern/i386/loader.S: New file.
44757
44758 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
44759 * kern/i386/loader.S (grub_linux_prot_size)... to here.
44760 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
44761 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
44762 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
44763 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44764 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44765 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44766 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44767 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44768 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44769 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44770 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44771 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44772
44773 * kern/i386/realmode.S: New file.
44774
44775 * kern/i386/pc/startup.S (protstack): Moved from here ...
44776 * kern/i386/realmode.S (protstack)... to here.
44777 * kern/i386/pc/startup.S (gdt): Moved from here ...
44778 * kern/i386/realmode.S (gdt)... to here.
44779 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44780 * kern/i386/realmode.S (prot_to_real)... to here.
44781
44782 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44783 `kern/i386/realmode.S'.
44784
825fc8fd 447852007-10-17 Robert Millan <rmh@aybabtu.com>
44786
44787 * include/grub/i386/loader.h: New file.
44788
44789 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44790 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44791 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44792 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44793 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44794 * include/grub/i386/loader.h (grub_linux_prot_size)
44795 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44796 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44797 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44798 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44799
44800 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44801
e179b2f4 448022007-10-15 Robert Millan <rmh@aybabtu.com>
44803
44804 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44805 filesystem when dev->disk is unset.
44806 Do probe for filesystem even when dev->disk->has_partitions is set.
44807 In case a filesystem is found, always report it.
44808 In case it isn't, if dev->disk->has_partitions is set, report that
44809 a partition table was found instead of reporting that no filesystem
44810 could be identified.
44811
5db82af6 448122007-10-12 Robert Millan <rmh@aybabtu.com>
44813
44814 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44815 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44816
68f6ac74 44817 * include/grub/types.h (grub_host_to_target16): New macro.
44818 (grub_host_to_target32): Likewise.
44819 (grub_host_to_target64): Likewise.
44820 (grub_target_to_host16): Likewise.
44821 (grub_target_to_host32): Likewise.
44822 (grub_target_to_host64): Likewise.
5db82af6 44823
44824 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44825 Renamed from to ...
44826 (GRUB_MOD_ALIGN): ...this. Update all users.
44827
68f6ac74 44828 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44829 grub_host_to_target32.
44830 Replace grub_be_to_cpu32 with grub_target_to_host32.
44831 (load_modules): Likewise.
44832 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44833 Replace grub_be_to_cpu32 with grub_target_to_host32.
44834 Replace grub_cpu_to_be16 with grub_host_to_target16.
44835 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 44836
3cf497cc 448372007-10-12 Robert Millan <rmh@aybabtu.com>
44838
44839 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44840 * util/elf/grub-mkimage.c: ... here.
44841
44842 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44843 `util/powerpc/ieee1275/grub-mkimage.c'.
44844
c8cc3692 448452007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 44846
c8cc3692 44847 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44848 and make it easier to figure out.
44849 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44850 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44851 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44852 leave us with less than HEAP_MIN_SIZE total heap.
44853 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 44854
5c58b791 448552007-10-03 Robert Millan <rmh@aybabtu.com>
44856
44857 * include/grub/i386/io.h: New file.
44858 * commands/i386/pc/play.c (inb): Removed.
44859 (outb): Removed.
44860 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44861 with grub_outb().
afcd2ef8 44862 * term/i386/pc/serial.c (inb): Removed.
44863 (outb): Removed.
44864 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44865 with grub_outb().
44866 * term/i386/pc/vga.c (inb): Removed.
44867 (outb): Removed.
44868 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44869 with grub_outb().
5c58b791 44870
1a477ed6 448712007-10-02 Robert Millan <rmh@aybabtu.com>
44872
44873 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44875 Reported by Marcin Kurek.
44876
6b5d80fa 448772007-09-07 Robert Millan <rmh@aybabtu.com>
44878
44879 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44880 SmartFirmware version updates (as released by Sven Luther), and avoid
44881 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44882 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44883 known broken.
44884
5618afbf 448852007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44886
44887 From Hitoshi Ozeki:
44888 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44889 when merging two regions.
44890
6139dcd9 448912007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44892
508e39ee 44893 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44894 * normal/completion.c (grub_normal_do_completion): Likewise.
44895 Reported by Hitoshi Ozeki.
44896
448972007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44898
6139dcd9 44899 Do not use devices at boot in chainloading.
f19dbdb7 44900
6139dcd9 44901 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44902 (boot_part_addr): Likewise.
44903 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44904 with BOOT_DRIVE and BOOT_PART_ADDR.
44905 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44906 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44907
38da6516 449082007-08-29 Robert Millan <rmh@aybabtu.com>
44909
44910 Patch from Simon Peter <dn.tlp@gmx.net>:
44911 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44912 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44913 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44914 util/i386/pc/grub-setup.c_DEPENDENCIES.
44915 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44916 util/grub-probe.c_DEPENDENCIES.
44917 * conf/powerpc-ieee1275.rmk: Likewise.
44918
29d0928c 449192007-08-28 Robert Millan <rmh@aybabtu.com>
44920
44921 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44922 to tell grub-mkdevicemap how to name devices.
44923 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44924 feature).
44925
44926 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44927 util/i386/get_disk_name.c.
44928 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44929 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44930 util/ieee1275/get_disk_name.c.
44931
44932 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44933
44934 * DISTLIST: Add util/i386/get_disk_name.c and
44935 util/ieee1275/get_disk_name.c.
44936
44937 * util/grub-mkdevicemap.c: Replace device naming logic with
44938 grub_util_get_disk_name() calls.
44939
5a0d3cca 449402007-08-20 Robert Millan <rmh@aybabtu.com>
44941
44942 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44943 (so that it works for both plural and singular quantities).
44944
8b72db2f 449452007-08-05 Robert Millan <rmh@aybabtu.com>
44946
44947 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44948 so that [xz] isn't taken into account when determining order.
44949
352466bf 449502007-08-02 Marco Gerards <marco@gnu.org>
44951
44952 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44953 `include/multiboot2.h', `include/grub/elfload.h',
44954 `include/multiboot.h', `include/grub/multiboot.h',
44955 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44956 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44957 `kern/elf.c', `loader/multiboot_loader.c',
44958 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44959 `loader/i386/pc/multiboot2.c',
44960 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44961 `util/i386/pc/grub-mkrescue.in'. Remove
44962 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44963 `include/grub/i386/pc/util/biosdisk.h' and
44964 `include/grub/powerpc/ieee1275/multiboot.h'.
44965
8f096014 449662007-08-02 Bean <bean123ch@gmail.com>
44967
44968 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44969 (ntfs_mod_SOURCES): New variable.
44970 (ntfs_mod_CFLAGS): Likewise.
44971 (ntfs_mod_LDFLAGS): Likewise.
44972
44973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44974 (grub_probe_SOURCES): Likewise.
44975 (grub_emu_SOURCES): Likewise.
44976
44977 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44978 (grub_emu_SOURCES): Likewise.
44979
44980 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44981 (grub_emu_SOURCES): Likewise.
f19dbdb7 44982
8f096014 44983 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44984
44985 * fs/ntfs.c: New file.
44986
9959f7db 449872007-08-02 Bean <bean123ch@gmail.com>
44988
44989 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44990
44991 * file.h (grub_file): Likewise.
44992
44993 * fshelp.h (grub_fshelp_read_file): Likewise.
44994
44995 * util/i386/pc/grub-setup.c (setup): Likewise.
44996 (save_first_sector): Likewise.
44997 (save_blocklists): Likewise.
f19dbdb7 44998
9959f7db 44999 * fs/affs.c (grub_affs_read_file): Likewise.
45000
45001 * fs/ext2.c (grub_ext2_read_file): Likewise.
45002
45003 * fs/fat.c (grub_fat_read_data): Likewise.
45004
45005 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
45006
45007 * fs/hfs.c (grub_hfs_read_file): Likewise.
45008
45009 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45010
45011 * fs/jfs.c (grub_jfs_read_file): Likewise.
45012
45013 * fs/minix.c (grub_minix_read_file): Likewise.
45014
45015 * fs/sfs.c (grub_sfs_read_file): Likewise.
45016
45017 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 45018
9959f7db 45019 * fs/xfs.c (grub_xfs_read_file): Likewise.
45020
45021 * command/blocklist.c (read_blocklist): Likewise.
45022 (print_blocklist): Likewise.
45023
0a203f83 450242007-08-02 Marco Gerards <marco@gnu.org>
45025
45026 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
45027 `util/hostfs.c'.
45028
45029 * disk/host.c: New file.
45030
45031 * util/hostfs.c: Likewise.
45032
45033 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
45034 return `GRUB_ERR_BAD_FS'.
45035 * fs/sfs.c (grub_sfs_mount): Likewise.
45036 * fs/xfs.c (grub_xfs_mount): Likewise.
45037
45038 * include/grub/disk.h (enum grub_disk_dev_id): Add
45039 `GRUB_DISK_DEVICE_HOST_ID'.
45040
45041 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
45042
e5dfe777 450432007-07-24 Jerone Young <jerone@gmail.com>
45044
f19dbdb7 45045 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 45046 modules for compilation.
45047 * conf/powerpc-ieee1275.rmk: Likewise.
45048
45049 * include/multiboot.h: Move multiboot definitions to one file. Rename
45050 many definitions to not get grub specific.
45051 * include/multiboot2.h: Create header with multiboot 2 definitions.
45052 * include/grub/multiboot.h: Header for grub specific function
45053 prototypes and definitions.
45054 * include/grub/multiboot2.h: Likewise.
45055 * include/grub/multiboot_loader.h: Likewise.
45056 * include/grub/i386/pc/multiboot.h: Removed.
45057 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
45058
45059 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
45060 and 2 to allow for one multiboot and module commands.
45061 * loader/multiboot2.c: Add multiboot2 functionality.
45062 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
45063 and definition names.
45064 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
45065 2 functions.
45066 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
45067 ieee1275 specific multiboot2 code.
45068
45069 * kern/i386/pc/startup.S: Change headers and definition names for
45070 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
45071
daf0f0ba 450722007-07-22 Robert Millan <rmh@aybabtu.com>
45073
45074 * geninitheader.sh: Process file specified in first parameter rather
45075 than hardcoding grub_modules_init.lst.
fe6b695a 45076 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 45077 than hardcoding grub_modules_init.h.
45078
45079 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
45080 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
45081 grub_probe_init.[ch] and grub_setup_init.[ch].
45082
45083 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
45084 grub_modules_init.h with grub_emu_init.h.
45085 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
45086 grub_probe_init.[ch] files.
45087 * conf/i386-efi.rmk: Likewise.
45088 * conf/i386-pc.rmk: Likewise.
45089 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
45090 grub_setup_init.[ch] files.
45091
45092 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
45093 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
45094 to initialize modules rather than a list of hardcoded functions.
45095 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
45096 grub_init_all() to initialize modules rather than a list of hardcoded
45097 functions.
45098
54cdc1cc 450992007-07-22 Robert Millan <rmh@aybabtu.com>
45100
45101 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
45102 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
45103
ad0686cc 451042007-07-22 Robert Millan <rmh@aybabtu.com>
45105
45106 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
45107 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
45108 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
45109 flag when running on SmartFirmware.
45110 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
45111 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
45112 was set.
45113
45114 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45115 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
45116 rather than decreasing it.
45117
45118 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
45119 there's not enough space to do it, fail in the same way as when it
45120 can't be done because there are no partitions.
45121
45122 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
45123 when nvsetenv failed.
45124
969c02ec 451252007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
45126
45127 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
45128 because this rule is automatically generated.
45129 (grub-mkrescue): Removed for the same reason as above.
45130
5a79f472 451312007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
45132
45133 Migrate to GNU General Public License Version 3.
f19dbdb7 45134
5a79f472 45135 * COPYING: Replaced with the plain text version of GPLv3.
45136
45137 * config.guess: Updated from gnulib.
45138 * config.sub: Likewise.
45139
45140 * geninit.sh: Output a GPLv3 copyright notice.
45141 * geninitheader.sh: Likewise.
45142 * genmodsrc.sh: Likewise.
45143 * gensymlist.sh.in: Likewise.
45144
45145 * boot/i386/pc/boot.S: Upgraded to GPLv3.
45146 * boot/i386/pc/diskboot.S: Likewise.
45147 * boot/i386/pc/pxeboot.S: Likewise.
45148 * commands/blocklist.c: Likewise.
45149 * commands/boot.c: Likewise.
45150 * commands/cat.c: Likewise.
45151 * commands/cmp.c: Likewise.
45152 * commands/configfile.c: Likewise.
45153 * commands/echo.c: Likewise.
45154 * commands/help.c: Likewise.
45155 * commands/ls.c: Likewise.
45156 * commands/search.c: Likewise.
45157 * commands/terminal.c: Likewise.
45158 * commands/test.c: Likewise.
45159 * commands/videotest.c: Likewise.
45160 * commands/i386/cpuid.c: Likewise.
45161 * commands/i386/pc/halt.c: Likewise.
45162 * commands/i386/pc/play.c: Likewise.
45163 * commands/i386/pc/reboot.c: Likewise.
45164 * commands/i386/pc/vbeinfo.c: Likewise.
45165 * commands/i386/pc/vbetest.c: Likewise.
45166 * commands/ieee1275/halt.c: Likewise.
45167 * commands/ieee1275/reboot.c: Likewise.
45168 * commands/ieee1275/suspend.c: Likewise.
45169 * disk/loopback.c: Likewise.
45170 * disk/lvm.c: Likewise.
45171 * disk/raid.c: Likewise.
45172 * disk/efi/efidisk.c: Likewise.
45173 * disk/i386/pc/biosdisk.c: Likewise.
45174 * disk/ieee1275/ofdisk.c: Likewise.
45175 * font/manager.c: Likewise.
45176 * fs/affs.c: Likewise.
45177 * fs/ext2.c: Likewise.
45178 * fs/fat.c: Likewise.
45179 * fs/fshelp.c: Likewise.
45180 * fs/hfs.c: Likewise.
45181 * fs/hfsplus.c: Likewise.
45182 * fs/iso9660.c: Likewise.
45183 * fs/jfs.c: Likewise.
45184 * fs/minix.c: Likewise.
45185 * fs/sfs.c: Likewise.
45186 * fs/ufs.c: Likewise.
45187 * fs/xfs.c: Likewise.
45188 * hello/hello.c: Likewise.
45189 * include/grub/acorn_filecore.h: Likewise.
45190 * include/grub/arg.h: Likewise.
45191 * include/grub/bitmap.h: Likewise.
45192 * include/grub/boot.h: Likewise.
45193 * include/grub/cache.h: Likewise.
45194 * include/grub/device.h: Likewise.
45195 * include/grub/disk.h: Likewise.
45196 * include/grub/dl.h: Likewise.
45197 * include/grub/elfload.h: Likewise.
45198 * include/grub/env.h: Likewise.
45199 * include/grub/err.h: Likewise.
45200 * include/grub/file.h: Likewise.
45201 * include/grub/font.h: Likewise.
45202 * include/grub/fs.h: Likewise.
45203 * include/grub/fshelp.h: Likewise.
45204 * include/grub/gzio.h: Likewise.
45205 * include/grub/hfs.h: Likewise.
45206 * include/grub/kernel.h: Likewise.
45207 * include/grub/loader.h: Likewise.
45208 * include/grub/lvm.h: Likewise.
45209 * include/grub/misc.h: Likewise.
45210 * include/grub/mm.h: Likewise.
45211 * include/grub/net.h: Likewise.
45212 * include/grub/normal.h: Likewise.
45213 * include/grub/parser.h: Likewise.
45214 * include/grub/partition.h: Likewise.
45215 * include/grub/pc_partition.h: Likewise.
45216 * include/grub/raid.h: Likewise.
45217 * include/grub/rescue.h: Likewise.
45218 * include/grub/script.h: Likewise.
45219 * include/grub/setjmp.h: Likewise.
45220 * include/grub/symbol.h: Likewise.
45221 * include/grub/term.h: Likewise.
45222 * include/grub/terminfo.h: Likewise.
45223 * include/grub/tparm.h: Likewise.
45224 * include/grub/types.h: Likewise.
45225 * include/grub/video.h: Likewise.
45226 * include/grub/efi/api.h: Likewise.
45227 * include/grub/efi/chainloader.h: Likewise.
45228 * include/grub/efi/console.h: Likewise.
45229 * include/grub/efi/console_control.h: Likewise.
45230 * include/grub/efi/disk.h: Likewise.
45231 * include/grub/efi/efi.h: Likewise.
45232 * include/grub/efi/pe32.h: Likewise.
45233 * include/grub/efi/time.h: Likewise.
45234 * include/grub/i386/linux.h: Likewise.
45235 * include/grub/i386/setjmp.h: Likewise.
45236 * include/grub/i386/types.h: Likewise.
45237 * include/grub/i386/efi/kernel.h: Likewise.
45238 * include/grub/i386/efi/loader.h: Likewise.
45239 * include/grub/i386/efi/time.h: Likewise.
45240 * include/grub/i386/pc/biosdisk.h: Likewise.
45241 * include/grub/i386/pc/boot.h: Likewise.
45242 * include/grub/i386/pc/chainloader.h: Likewise.
45243 * include/grub/i386/pc/console.h: Likewise.
45244 * include/grub/i386/pc/init.h: Likewise.
45245 * include/grub/i386/pc/kernel.h: Likewise.
45246 * include/grub/i386/pc/loader.h: Likewise.
45247 * include/grub/i386/pc/memory.h: Likewise.
45248 * include/grub/i386/pc/multiboot.h: Likewise.
45249 * include/grub/i386/pc/serial.h: Likewise.
45250 * include/grub/i386/pc/time.h: Likewise.
45251 * include/grub/i386/pc/vbe.h: Likewise.
45252 * include/grub/i386/pc/vbeblit.h: Likewise.
45253 * include/grub/i386/pc/vbefill.h: Likewise.
45254 * include/grub/i386/pc/vbeutil.h: Likewise.
45255 * include/grub/i386/pc/vga.h: Likewise.
45256 * include/grub/ieee1275/ieee1275.h: Likewise.
45257 * include/grub/ieee1275/ofdisk.h: Likewise.
45258 * include/grub/powerpc/libgcc.h: Likewise.
45259 * include/grub/powerpc/setjmp.h: Likewise.
45260 * include/grub/powerpc/types.h: Likewise.
45261 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
45262 * include/grub/powerpc/ieee1275/console.h: Likewise.
45263 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
45264 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
45265 * include/grub/powerpc/ieee1275/loader.h: Likewise.
45266 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
45267 * include/grub/powerpc/ieee1275/time.h: Likewise.
45268 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
45269 * include/grub/sparc64/libgcc.h: Likewise.
45270 * include/grub/sparc64/setjmp.h: Likewise.
45271 * include/grub/sparc64/types.h: Likewise.
45272 * include/grub/sparc64/ieee1275/console.h: Likewise.
45273 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45274 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45275 * include/grub/sparc64/ieee1275/time.h: Likewise.
45276 * include/grub/util/biosdisk.h: Likewise.
45277 * include/grub/util/getroot.h: Likewise.
45278 * include/grub/util/lvm.h: Likewise.
45279 * include/grub/util/misc.h: Likewise.
45280 * include/grub/util/raid.h: Likewise.
45281 * include/grub/util/resolve.h: Likewise.
45282 * io/gzio.c: Likewise.
45283 * kern/device.c: Likewise.
45284 * kern/disk.c: Likewise.
45285 * kern/dl.c: Likewise.
45286 * kern/elf.c: Likewise.
45287 * kern/env.c: Likewise.
45288 * kern/err.c: Likewise.
45289 * kern/file.c: Likewise.
45290 * kern/fs.c: Likewise.
45291 * kern/loader.c: Likewise.
45292 * kern/main.c: Likewise.
45293 * kern/misc.c: Likewise.
45294 * kern/mm.c: Likewise.
45295 * kern/parser.c: Likewise.
45296 * kern/partition.c: Likewise.
45297 * kern/rescue.c: Likewise.
45298 * kern/term.c: Likewise.
45299 * kern/efi/efi.c: Likewise.
45300 * kern/efi/init.c: Likewise.
45301 * kern/efi/mm.c: Likewise.
45302 * kern/i386/dl.c: Likewise.
45303 * kern/i386/efi/init.c: Likewise.
45304 * kern/i386/efi/startup.S: Likewise.
45305 * kern/i386/pc/init.c: Likewise.
45306 * kern/i386/pc/lzo1x.S: Likewise.
45307 * kern/i386/pc/startup.S: Likewise.
45308 * kern/ieee1275/ieee1275.c: Likewise.
45309 * kern/powerpc/cache.S: Likewise.
45310 * kern/powerpc/dl.c: Likewise.
45311 * kern/powerpc/ieee1275/cmain.c: Likewise.
45312 * kern/powerpc/ieee1275/crt0.S: Likewise.
45313 * kern/powerpc/ieee1275/init.c: Likewise.
45314 * kern/powerpc/ieee1275/openfw.c: Likewise.
45315 * kern/sparc64/cache.S: Likewise.
45316 * kern/sparc64/dl.c: Likewise.
45317 * kern/sparc64/ieee1275/init.c: Likewise.
45318 * kern/sparc64/ieee1275/openfw.c: Likewise.
45319 * loader/efi/chainloader.c: Likewise.
45320 * loader/efi/chainloader_normal.c: Likewise.
45321 * loader/i386/efi/linux.c: Likewise.
45322 * loader/i386/efi/linux_normal.c: Likewise.
45323 * loader/i386/pc/chainloader.c: Likewise.
45324 * loader/i386/pc/chainloader_normal.c: Likewise.
45325 * loader/i386/pc/linux.c: Likewise.
45326 * loader/i386/pc/linux_normal.c: Likewise.
45327 * loader/i386/pc/multiboot.c: Likewise.
45328 * loader/i386/pc/multiboot_normal.c: Likewise.
45329 * loader/powerpc/ieee1275/linux.c: Likewise.
45330 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45331 * normal/arg.c: Likewise.
45332 * normal/cmdline.c: Likewise.
45333 * normal/command.c: Likewise.
45334 * normal/completion.c: Likewise.
45335 * normal/execute.c: Likewise.
45336 * normal/function.c: Likewise.
45337 * normal/lexer.c: Likewise.
45338 * normal/main.c: Likewise.
45339 * normal/menu.c: Likewise.
45340 * normal/menu_entry.c: Likewise.
45341 * normal/misc.c: Likewise.
45342 * normal/parser.y: Likewise.
45343 * normal/script.c: Likewise.
45344 * normal/i386/setjmp.S: Likewise.
45345 * normal/powerpc/setjmp.S: Likewise.
45346 * normal/sparc64/setjmp.S: Likewise.
45347 * partmap/acorn.c: Likewise.
45348 * partmap/amiga.c: Likewise.
45349 * partmap/apple.c: Likewise.
45350 * partmap/gpt.c: Likewise.
45351 * partmap/pc.c: Likewise.
45352 * partmap/sun.c: Likewise.
45353 * term/gfxterm.c: Likewise.
45354 * term/terminfo.c: Likewise.
45355 * term/efi/console.c: Likewise.
45356 * term/i386/pc/console.c: Likewise.
45357 * term/i386/pc/serial.c: Likewise.
45358 * term/i386/pc/vesafb.c: Likewise.
45359 * term/i386/pc/vga.c: Likewise.
45360 * term/ieee1275/ofconsole.c: Likewise.
45361 * util/biosdisk.c: Likewise.
45362 * util/console.c: Likewise.
45363 * util/genmoddep.c: Likewise.
45364 * util/getroot.c: Likewise.
45365 * util/grub-emu.c: Likewise.
45366 * util/grub-mkdevicemap.c: Likewise.
45367 * util/grub-probe.c: Likewise.
45368 * util/lvm.c: Likewise.
45369 * util/misc.c: Likewise.
45370 * util/raid.c: Likewise.
45371 * util/resolve.c: Likewise.
45372 * util/update-grub.in: Likewise.
45373 * util/update-grub_lib.in: Likewise.
45374 * util/grub.d/00_header.in: Likewise.
45375 * util/grub.d/10_hurd.in: Likewise.
45376 * util/grub.d/10_linux.in: Likewise.
45377 * util/i386/efi/grub-install.in: Likewise.
45378 * util/i386/efi/grub-mkimage.c: Likewise.
45379 * util/i386/pc/grub-install.in: Likewise.
45380 * util/i386/pc/grub-mkimage.c: Likewise.
45381 * util/i386/pc/grub-mkrescue.in: Likewise.
45382 * util/i386/pc/grub-setup.c: Likewise.
45383 * util/i386/pc/misc.c: Likewise.
45384 * util/powerpc/ieee1275/grub-install.in: Likewise.
45385 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
45386 * util/powerpc/ieee1275/misc.c: Likewise.
45387 * video/bitmap.c: Likewise.
45388 * video/video.c: Likewise.
45389 * video/i386/pc/vbe.c: Likewise.
45390 * video/i386/pc/vbeblit.c: Likewise.
45391 * video/i386/pc/vbefill.c: Likewise.
45392 * video/i386/pc/vbeutil.c: Likewise.
45393 * video/readers/tga.c: Likewise.
45394
3572d015 453952007-07-02 Robert Millan <rmh@aybabtu.com>
45396
45397 * conf/i386-efi.rmk: Replace obsolete reference to
45398 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
45399 with util/getroot.c.
45400 * conf/powerpc-ieee1275.rmk: Likewise.
45401 * conf/sparc64-ieee1275.rmk: Likewise.
45402
45403 * util/grub-emu.c (main): Fix unchecked pointer handling.
45404
2c2a681b 454052007-07-02 Robert Millan <rmh@aybabtu.com>
45406
45407 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
45408 invocation to fail, in order to support partition-less media.
45409
45410 * util/i386/pc/grub-install.in: Likewise.
45411
45412 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
45413 which fs or partmap modules are needed (akin to its sister scripts).
45414
45415 Also use grub-probe to get rid of unportable /proc/mounts check.
45416
45417 Print the same informational message that the other scripts do, before
fe6b695a 45418 exiting.
2c2a681b 45419
6193defe 454202007-06-23 Robert Millan <rmh@aybabtu.com>
45421
fe6b695a 45422 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 45423 a font file can be found and, if so, echo the GRUB path to it.
45424
45425 * util/update-grub.in: Handle multiple terminals depending on user
45426 input, platform availability and font file presence. Propagate
45427 variables of our findings to /etc/grub.d/ children.
45428
45429 * util/grub.d/00_header.in: Handle multiple terminals, based on
45430 environment setup by update-grub.
45431
eface1dc 454322007-06-23 Robert Millan <rmh@aybabtu.com>
45433
ba50d28f 45434 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 45435
bf697e28 454362007-06-21 Robert Millan <rmh@aybabtu.com>
45437
45438 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
45439 indicate end of data section in kernel image.
45440 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
45441 GRUB_KERNEL_MACHINE_DATA_END.
45442
45443 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
45444 space for it.
45445 * kern/i386/efi/startup.S: Likewise.
45446
45447 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
45448 during image generation. Implement --prefix option to override this
45449 patch.
45450 * util/i386/efi/grub-mkimage.c: Likewise.
45451
45452 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
45453 code to make path relative to its root into a separate function.
45454
45455 * util/i386/pc/grub-install.in: Use newly provided
45456 make_system_path_relative_to_its_root() to convert ${grubdir}, then
45457 pass the result to grub-install --prefix.
45458
baa574b4 454592007-06-13 Robert Millan <rmh@aybabtu.com>
45460
45461 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
45462 DEFAULT_DEVICE_MAP.
45463 * util/grub-emu.c: Use above definitions from misc.h instead of
45464 defining them.
45465 * util/grub-mkdevicemap.c: Likewise.
45466 * util/i386/pc/grub-setup.c: Likewise.
45467 * util/grub-probe.c: Likewise.
45468 (probe): Abort with grub_util_error() when either
45469 grub_guess_root_device or grub_util_get_grub_dev fails.
45470
0215dcbf 454712007-06-12 Robert Millan <rmh@aybabtu.com>
45472
45473 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
45474 "pager" assignment.
45475 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
45476 "pcdata".
45477 * util/grub-probe.c (probe): Likewise for "drive_name".
45478
8af2ab7b 454792007-06-11 Robert Millan <rmh@aybabtu.com>
45480
45481 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
45482 not just the cdrom one.
45483
59d31694 454842007-06-11 Robert Millan <rmh@aybabtu.com>
45485
45486 * util/i386/pc/grub-mkrescue.in: Add "set -e".
45487 Add --pkglibdir=DIR option to override pkglibdir.
45488 Mention --image-type=TYPE in help output.
45489 Fix --grub-mkimage (it was a no-op).
fe6b695a 45490 Abort gracefully when no parameter is given.
59d31694 45491
7ee367e4 454922007-06-11 Robert Millan <rmh@aybabtu.com>
45493
45494 * util/i386/pc/grub-mkrescue.in: New file.
45495 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
45496 * Makefile.in: Handle bin_SCRIPTS.
45497
29b0ed46 454982007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
45499
45500 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
45501 list of video modes.
45502
c0f90770 455032007-06-06 Robert Millan <rmh@aybabtu.com>
45504
45505 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
45506 file doesn't exist, or if it is in a filesystem grub can't read.
45507
45508 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
45509 not abort if GRUB_DRIVE could not be defined. Rearrange generated
45510 header comment to fit in 80 columns when the variables are resolved.
45511
45512 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
45513 could be identified by update-grub. Remove redundant check for
fe6b695a 45514 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 45515 handles that).
45516
fb36dc26 455172007-06-04 Robert Millan <rmh@aybabtu.com>
45518
45519 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
45520
45521 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
45522
45523 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
45524
0c68c93e 455252007-06-04 Robert Millan <rmh@aybabtu.com>
45526
45527 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
45528
45529 * include/grub/partition.h: Declare grub_apple_partition_map_init and
45530 grub_apple_partition_map_fini.
45531
45532 * util/biosdisk.c
45533 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
45534 to access >2 TiB disks).
45535
45536 Print disk->total_sectors with %llu instead of %lu, since this
45537 variable is always 64-bit (prevents wrong disk size from being displayed
45538 on either >2 TiB disk or big-endian CPU).
45539
45540 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
45541 into a generic case that supports all (sane) partition maps.
45542
45543 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
45544 breaks big-endian.
45545
45546 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
45547 and grub_apple_partition_map_fini() after that.
45548
0f23eb74 455492007-06-01 Robert Millan <rmh@aybabtu.com>
45550
45551 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
45552
45553 * util/grub.d/00_header.in: Only enable gfxterm when
45554 convert_system_path_to_grub_path() succeeds.
45555
42c71976 455562007-05-20 Robert Millan <rmh@aybabtu.com>
45557
45558 * util/update-grub_lib.in: New file.
45559 * DISTLIST: Add update-grub_lib.in.
45560 * conf/common.rmk: Generate update-grub_lib and install it in
45561 $(lib_DATA).
45562 * Makefile.in: Add install routine for $(lib_DATA).
45563
45564 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
45565 function provided by update-grub_lib to support arbitrary paths of
45566 unifont.pff.
45567 * util/update-grub.in: Use convert_system_path_to_grub_path() to
45568 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
45569
5beb2291 455702007-05-19 Robert Millan <rmh@aybabtu.com>
45571
45572 * commands/i386/cpuid.c: New module.
45573 * DISTLIST: Add it.
45574 * conf/i386-efi.rmk: Enable cpuid.mod.
45575 * conf/i386-pc.rmk: Likewise.
45576
7262eca1 455772007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45578
45579 * kern/disk.c (grub_disk_read): Check return value of
45580 grub_realloc().
45581
260ba823 455822007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45583
45584 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
45585 arrays.
45586 * disk/raid.c (grub_raid_open): Likewise.
45587
1ecb6cf2 455882007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45589
45590 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
45591 stack instead of on the heap.
45592
45593 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
45594 before doing a read on it.
45595
45596 * configure.ac: Only use -fno-stack-protector for the target
45597 environment.
f19dbdb7 45598
21c8cbb1 455992007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45600
45601 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
45602 __attribute_ ((unused)) to mode_type argument.
45603
45604 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 45605
21c8cbb1 45606 * kern/misc.c (memcmp): Fix prototype.
45607
45608 * include/grub/partition.h [GRUB_UTIL]
45609 (grub_gpt_partition_map_init): Add prototype.
45610 (grub_gpt_partition_map_fini): Likewise.
45611
45612 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
45613 at the right place.
45614
45615 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
45616 (grub_fat_read_data): Likewise.
45617 (grub_fat_find_dir): Likewise.
45618
45619 * font/manager.c (find_glyph): Make table a const.
45620 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 45621
849d55d3 456222007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
45623
45624 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
45625 code, first search for device in /dev/mapper, then in /dev.
45626 (grub_util_get_grub_dev): New function.
45627 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
45628 prototype.
45629 * util/grub-probe.c (probe): Remove check for RAID, call
45630 grub_util_get_grub_dev() instead of
45631 grub_util_biosdisk_get_grub_dev().
45632 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
45633 grub_util_biosdisk_get_grub_dev().
45634 * util/i386/pc/grub-setup.c (main): Likewise.
45635
8fff7c2f 456362007-05-16 Robert Millan <rmh@aybabtu.com>
45637
45638 * DISTLIST: Update for the latest changes.
45639 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
45640 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
45641 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
45642 grub/util/biosdisk.h.
45643 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
45644 grub/util/biosdisk.h.
45645
48e12b52 456462007-05-16 Robert Millan <rmh@aybabtu.com>
45647
45648 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
45649
46b9d128 456502007-05-16 Robert Millan <rmh@aybabtu.com>
45651
45652 * util/i386/efi/grub-install.in: New.
45653 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
45654 newly added grub-install.
45655 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
45656 include.
45657 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
45658 grub/util/biosdisk.h.
45659 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
45660 grub/util/biosdisk.h.
45661
2d1a40a9 456622007-05-16 Robert Millan <rmh@aybabtu.com>
45663
45664 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
45665 * include/grub/util/biosdisk.h: ... here.
45666 * util/i386/pc/biosdisk.c: Moved to ...
45667 * util/biosdisk.c: ... here.
45668 * util/i386/pc/getroot.c: Moved to ...
45669 * util/getroot.c: ... here.
45670 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
45671 * util/grub-mkdevicemap.c: ... here.
45672 * util/i386/pc/grub-probe.c: Moved to ...
45673 * util/grub-probe.c: ... here.
45674
9e26e3bc 456752007-05-15 Robert Millan <rmh@aybabtu.com>
45676
45677 * util/update-grub.in: Remove duplicated line in grub.cfg header
45678 message.
45679
57f96397 456802007-05-13 Robert Millan <rmh@aybabtu.com>
45681
45682 * util/update-grub.in: Fix a few assumptions about the devices holding
45683 /, /boot and /boot/grub being the same.
45684 * util/grub.d/00_header.in: Likewise.
45685 * util/grub.d/10_hurd.in: Likewise.
45686 * util/grub.d/10_linux.in: Likewise.
45687
45688 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
45689 patterns. Use that to define the `.old' suffix as older than `'.
45690
45691 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
45692
45693 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
45694 the grub.cfg header message.
45695
2e610d62 456962007-05-11 Robert Millan <rmh@aybabtu.com>
45697
45698 * util/update-grub.in: Create device.map if it doesn't already exist,
45699 before attempting to run grub-probe.
45700 Check for grub-probe and grub-mkdevicemap with the same code
45701 grub-install is using.
45702 Remove test mode.
45703
3f6a10ef 457042007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
45705
45706 * Makefile.in: Add the datarootdir autoconf variable.
45707
02e7b75e 457082007-05-09 Robert Millan <rmh@aybabtu.com>
45709
45710 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 45711 fail gracefully if dev->disk->partition == NULL.
02e7b75e 45712
75f396cc 457132007-05-07 Robert Millan <rmh@aybabtu.com>
45714
45715 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
45716 determine partition map module.
45717 * util/i386/pc/grub-install.in: Use this feature to decide which
45718 partition module to load, instead of hardcoding pc and gpt.
45719
da65cb36 457202007-05-07 Robert Millan <rmh@aybabtu.com>
45721
45722 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
45723 source directory differs from build directory.
45724
b57d6a91 457252007-05-05 Robert Millan <rmh@aybabtu.com>
45726
45727 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
45728 initialisation.
45729
509d00f1 457302007-05-05 Robert Millan <rmh@aybabtu.com>
45731
45732 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
45733
c48f23ef 457342007-05-05 Robert Millan <rmh@aybabtu.com>
45735
45736 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
45737 command-line arguments via ${GRUB_CMDLINE_LINUX}.
45738
20b97658 457392007-05-05 Robert Millan <rmh@aybabtu.com>
45740
45741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
45742 (grub_probe_SOURCES): Likewise.
45743 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
45744 GPT and initialize dos_part and bsd_part accordingly.
45745 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
45746 install_bsd_part.
45747 (main): Activate gpt module for use during partition identification,
45748 and deactivate it afterwards.
45749 * util/i386/pc/grub-install.in: Add gpt module to core.img.
45750 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
45751 partition identification, and deactivate it afterwards.
45752
99123174 457532007-05-05 Robert Millan <rmh@aybabtu.com>
45754
45755 * term/i386/pc/console.c (grub_console_fini): Call
45756 grub_term_set_current() before grub_term_unregister().
45757
ebd97f6e 457582007-05-04 Robert Millan <rmh@aybabtu.com>
45759
45760 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
45761 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
45762 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
45763 and update-grub_DATA.
45764 * conf/common.rmk: Build and install update-grub components.
45765 * conf/common.mk: Regenerate.
45766 * util/update-grub.in: New. Core of update-grub.
45767 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45768 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45769 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45770 * util/grub.d/README: New. Document grub.d directory layout.
45771
b06a264d 457722007-05-01 Robert Millan <rmh@aybabtu.com>
45773
45774 * util/grub-emu.c: Move initialization functions
45775 grub_util_biosdisk_init() and grub_init_all() before
45776 grub_util_biosdisk_get_grub_dev(), which relies on them.
45777
41f0050e 457782007-04-19 Robert Millan <rmh@aybabtu.com>
45779
45780 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45781 it is used later.
45782
04582bb3 457832007-04-18 Jerone Young <jerone@gmail.com>
45784
f19dbdb7 45785 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 45786 stanza.
45787
08db4632 457882007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 45789
08db4632 45790 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45791 continue on and look for device node with real device name.
45792
801b76be 457932007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 45794
fe6b695a 45795 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 45796 ability.
45797 * Makefile.in: Add autoconf package transformation code.
45798 * util/i386/pc/grub-install.in: Likewise.
45799 * util/powerpc/ieee1275/grub-install.in: Likewise.
45800
6795c4e1 458012007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45802
45803 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45804 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45805 (EXT2_REVISION): Likewise.
45806 (EXT2_INODE_SIZE): Likewise.
45807 (struct grub_ext2_block_group): Added a missing member
45808 "used_dirs".
45809 (grub_ext2_read_inode): Divide by the inode size in a superblock
45810 instead of 128 to obtain INODES_PER_BLOCK.
45811 Use the macro EXT2_INODE_SIZE instead of directly using
45812 SBLOCK->INODE_SIZE.
45813
d70af616 458142007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45815
45816 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45817 superblock instead of the structure size to compute an
45818 offset. This fixes the problem that GRUB could not read a
45819 filesystem when inode size is different from 128-byte.
45820
3b801603 458212007-03-05 Marco Gerards <marco@gnu.org>
45822
45823 * normal/main.c (read_config_file): When "menu" is not set, create
45824 an initial context.
45825
4785bfe4 458262007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45827
45828 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45829 (HEAP_LIMIT): New macro.
45830 (grub_claim_heap): Claim memory up to `heaplimit'.
45831
a0cbb023 458322007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45833
45834 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45835 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45836 (_start): Likewise.
45837 (grub_arch_modules_addr): Return address after `_end'.
45838 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45839 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45840 (add_segments): Calculate `_end' from phdr size and location.
45841 (ALIGN_UP): Moved to ...
45842 * include/grub/misc.h: here.
45843 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45844 New macro.
45845 (GRUB_IEEE1275_MODULE_BASE): Removed.
45846
fd7d8eba 458472007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45848
45849 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45850 loop boundary.
45851
9b09e6fc 458522007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45853
45854 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45855 All users updated.
45856 (grub_elf64_load_hook_t): Likewise.
45857 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45858 debug output.
45859
3ce27299 458602007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45861
45862 * kern/mm.c: Update copyright.
45863 (grub_mm_debug): Correct syntax error.
45864 (grub_mm_dump_free): New function.
45865 (grub_debug_free): Call `grub_free'.
45866 * include/grub/mm.h: Update copyright.
45867 (grub_mm_dump_free): Add declaration.
45868
077d5fee 458692007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45870
45871 * include/grub/ieee1275/ieee1275.h: Update copyright.
45872 * kern/powerpc/ieee1275/init.c: Likewise.
45873 * kern/powerpc/ieee1275/openfw.c: Likewise.
45874
45875 * loader/powerpc/ieee1275/linux.c: Likewise.
45876 * include/grub/elfload.h: Likewise.
45877 * kern/elf.c: Likewise.
45878 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45879 callers.
45880 (grub_elf64_load): Likewise.
45881 (grub_elf32_load_segment): Move to a nested function.
45882 (grub_elf64_load_segment): Likewise.
45883
dc946850 458842007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45885
45886 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45887 prototype.
45888 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45889 (grub_heap_len): Likewise.
45890 (HEAP_SIZE): New macro.
45891 (grub_claim_heap): New function.
45892 (grub_machine_init): Don't claim heap directly. Call
45893 `grub_claim_heap'.
45894 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45895 (grub_available_iterate): New function.
45896
baa2a121 458972007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45898
45899 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45900 * configure.ac: Use it for testing the HOST and TARGET compilers.
45901
4fe9862e 459022006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45903
45904 * Makefile.in (enable_grub_emu): New variable.
45905 * configure.ac (--enable-grub-emu): New option.
45906 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45907 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45908 * conf/i386-pc.rmk: Likewise.
45909 * conf/powerpc-ieee1275.rmk: Likewise.
45910 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45911
a8aa5762 459122006-12-12 Marco Gerards <marco@gnu.org>
45913
45914 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45915
45916 * kern/env.c (grub_env_unset): Don't free the member `value' when
45917 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45918 pointer.
45919
45920 * normal/main.c (current_menu): Removed.
45921 (free_menu): Unset the `menu' environment variable.
45922 (grub_normal_menu_addentry): Make use of the environment variable
45923 `menu', instead of using the global `current_menu'. Allocate
45924 memory for the sourcecode of this entry.
45925 (read_config_file): New argument `nested', changed all callers.
45926 Only in the case of a new context, initialize a new menu. Set the
45927 `menu' environment variable.
45928 (grub_normal_execute): Don't set and unset the environment
45929 variable `menu' here anymore. Only free the menu when leaving the
45930 context.
45931
45932 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45933 leak.
45934
957b3a3e 459352006-12-11 Marco Gerards <marco@gnu.org>
45936
45937 * normal/menu_entry.c (run): Fix off by one bug so the last line
45938 is executed. Move the loader check to outside the loop.
45939
ef875714 459402006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45941
45942 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45943
4e739985 459442006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45945
45946 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45947 the number of sectors. Reported by Andrey Shuvikov
45948 <mr_hyro@yahoo.com>.
f19dbdb7 45949
790707f2 459502006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45951
45952 * kern/disk.c (grub_disk_read): When there is a read error, always
45953 try to read only the necessary data.
f19dbdb7 45954
790707f2 45955 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45956 disk/raid.c.
45957 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45958 prototype.
45959 [GRUB_UTIL] (grub_raid_fini): Likewise.
45960 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 45961 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 45962 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45963 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45964 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45965 and grub_raid_fini().
f19dbdb7 45966
03e58196 459672006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45968
45969 * include/grub/types.h (__unused): Rename to UNUSED.
45970 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45971 (grub_elf64_size): Likewise.
f19dbdb7 45972
ae4f23bf 459732006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45974
45975 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45976 grub_error_push and grub_error_pop in the error-handling path.
45977 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45978 length.
45979
2166cc83 459802006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45981
45982 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45983 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45985 (kernel_elf_SOURCES): Likewise.
45986 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45987 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45988 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45989 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45990 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45991 (elf_mod_SOURCES): New variable.
45992 (elf_mod_CFLAGS): Likewise.
45993 (elf_mod_LDFLAGS): Likewise.
45994 * include/grub/types.h (__unused): New macro.
45995 * include/grub/elfload.h: New file.
45996 * kern/elf.c: Likewise.
45997 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45998 (ELF32_LOADMASK): New macro.
45999 (ELF64_LOADMASK): Likewise.
46000 (vmlinux): Removed.
46001 (grub_linux_load32): New function.
46002 (grub_linux_load64): Likewise.
46003 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
46004 Use grub_elf_t instead of grub_file_t.
46005
a09d5aa5 460062006-11-02 Hollis Blanchard <hollis@penguinppc.org>
46007
46008 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
46009 `catch_result' to struct set_color_args.
46010
d976fc51 460112006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46012
46013 * normal/menu.c: Include grub/script.h.
46014 * normal/menu_entry.c: Likewise.
46015 * include/grub/normal.h: Do not include grub/script.h.
46016
67507549 460172006-10-27 Hollis Blanchard <hollis@penguinppc.org>
46018
46019 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
46020
69203a99 460212006-10-27 Hollis Blanchard <hollis@penguinppc.org>
46022
46023 * kern/disk.c (grub_disk_open): Print debug messages when opening a
46024 disk.
46025 (grub_disk_close): Print debug messages when closing a disk.
46026 (grub_disk_read): Print debug messages when disk read fails.
46027 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
46028 filesystem type.
46029 * kern/partition.c: Include misc.h.
46030 (grub_partition_iterate): Print debug messages when detecting
46031 partition type.
46032
e2b8278c 460332006-10-27 Hollis Blanchard <hollis@penguinppc.org>
46034
46035 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
46036 is negative.
46037 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
46038
97b2f2ff 460392006-10-26 Hollis Blanchard <hollis@penguinppc.org>
46040
46041 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
46042 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
46043
6555d655 460442006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
46045
46046 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
46047 instead of sizeof(lv). Patch by Michael Guntsche.
46048
4d42b77f 460492006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
46050
46051 * disk/lvm.c: Rename VGS to VG_LIST.
46052 (grub_lvm_iterate): Change VGS->LV to VG-LV.
46053 (grub_lvm_open): Likewise.
46054 Thanks to Michael Guntsche for finding this bug.
46055
5d74d927 460562006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46057
46058 * configure.ac (AC_INIT): Bumped to 1.95.
46059
a1bb27e4 460602006-10-14 Robert Millan <rmh@aybabtu.com>
46061
46062 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
46063 with "/dev/.static/dev/md".
46064
e0994b8b 460652006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
46066
46067 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
46068 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
46069 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
46070 DRIVE_NAME are always freed.
46071
46072 * util/i386/pc/biosdisk.c (make_device_name): Add one into
46073 DOS_PART, as a DOS partition is counted from one instead of zero
46074 now. Reported by Robert Millan.
46075
ddd5cee9 460762006-10-14 Robert Millan <rmh@aybabtu.com>
46077
46078 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
46079 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
46080 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
46081 string returned by grub_guess_root_device.
46082 * util/i386/pc/grub-setup.c: Likewise.
46083 * util/i386/pc/grub-probefs.c: Likewise.
46084
46085 * util/i386/pc/grub-probefs.c: Rename to ...
46086 * util/i386/pc/grub-probe.c: ... this.
46087 * DISTLIST: Remove grub-probefs, add grub-probe.
46088 * conf/i386-efi.rmk: Likewise.
46089 * conf/i386-pc.rmk: Likewise.
46090 * util/i386/pc/grub-install.in: Likewise.
46091
46092 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
46093 choose which information we want to print.
46094
2b002173 460952006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
46096
46097 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
46098 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
46099 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
46100 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
46101 video/readers/tga.c and video/i386/pc/vbeutil.c.
46102
461032006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
46104
46105 Added support for RAID and LVM.
f19dbdb7 46106
2b002173 46107 * disk/lvm.c: New file.
46108 * disk/raid.c: Likewise.
46109 * include/grub/lvm.h: Likewise.
f19dbdb7 46110 * include/grub/raid.h: Likewise.
2b002173 46111 * include/grub/util/lvm.h: Likewise.
46112 * include/grub/util/raid.h: Likewise.
46113 * util/lvm.c: Likewise.
46114 * util/raid.c: Likewise.
46115
46116 * include/grub/disk.h (grub_disk_dev_id): Add
46117 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
46118 (grub_disk_get_size): New prototype.
46119 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
46120 returns a partition.
46121 (grub_disk_get_size): New function.
f19dbdb7 46122
2b002173 46123 * kern/i386/pc/init.c (make_install_device): Copy the prefix
46124 verbatim if grub_install_dos_part is -2.
46125
46126 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
46127 and LVM devices.
46128
46129 * util/i386/pc/grub-setup.c (setup): New argument
46130 MUST_EMBED. Force embedding of GRUB when the argument is
46131 true. Close FILE before returning.
46132 (main): Add support for RAID and LVM.
f19dbdb7 46133
2b002173 46134 * conf/common.rmk: Add RAID and LVM modules.
46135 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
46136 util/lvm.c.
46137 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
46138
46139 * kern/misc.c (grub_strstr): New function.
46140 * include/grub/misc.h (grub_strstr): New prototype.
46141
050548d0 461422006-10-10 Tristan Gingold <tristan.gingold@bull.net>
46143
46144 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
46145
da849d2d 461462006-10-05 Tristan Gingold <tristan.gingold@bull.net>
46147
46148 * kern/misc.c (grub_strtoull): Guess the base only if not
46149 specified.
46150
97b2f2ff 461512006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 46152
46153 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
46154 PowerMac support.
46155
97b2f2ff 461562006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 46157
46158 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
46159
46160 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
46161 Remove `flags' argument. All callers changed.
46162 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
46163 (IEEE1275_IHANDLE_INVALID): New variable.
46164 (IEEE1275_CELL_INVALID): New variable.
46165 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
46166 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
46167 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
46168 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
46169 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
46170 codes from Open Firmware. All callers updated.
46171 (grub_ieee1275_next_property): Directly return Open Firmware return
46172 code.
46173 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
46174 Standardize error checking from `grub_ieee1275_get_property'.
46175 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
46176 `devalias' to `aliases'. Correct comments. Consolidate error paths.
46177
97b2f2ff 461782006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 46179
46180 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
46181 `instance_to_package_args' to `instance_to_path_args'.
46182
46183 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
46184 `grub_ieee1275_chosen'.
46185
46186 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
46187 `grub_ieee1275_interpret'.
46188
97b2f2ff 461892006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 46190
46191 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
46192
97b2f2ff 461932006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 46194
46195 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
46196 (__cmpdi): Likewise.
46197
46198 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
46199 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
46200 `grub_ssize_t'.
46201
02bb8acc 46202 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 46203
46204 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
46205 to type `grub_ssize_t'.
46206 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
46207
7f9a8531 462082006-09-22 Marco Gerards <marco@gnu.org>
46209
46210 * normal/script.c (grub_script_create_cmdmenu): Skip leading
46211 newlines.
46212
b5ef1102 462132006-09-22 Marco Gerards <marco@gnu.org>
46214
46215 * commands/echo.c: New file.
46216
46217 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
46218
46219 * conf/common.rmk (echo_mod_SOURCES): New variable.
46220 (echo_mod_CFLAGS): Likewise.
46221 (echo_mod_LDFLAGS): Likewise.
46222
2cff3677 462232006-09-22 Marco Gerards <marco@gnu.org>
46224
46225 * normal/main.c (get_line): Malloc memory instead of using
46226 preallocated memory. Removed the arguments `cmdline' and
46227 `max_len'. Updated all callers.
46228
6ba4688b 462292006-09-22 Marco Gerards <marco@gnu.org>
46230
46231 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
46232 (normal_mod_DEPENDENCIES): Likewise.
46233
46234 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
46235 (normal_mod_DEPENDENCIES): Likewise.
46236
46237 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
46238
e02ac02c 462392006-09-22 Johan Rydberg <jrydberg@gnu.org>
46240
46241 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
46242 programs.
46243 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
46244 (normal_mod_DEPENDENCIES): Likewise.
46245 * conf/i386-pc.mk: Regenerate.
46246 * conf/i386-efi.mk: Likewise
46247 * conf/common.mk: Likewise.
46248 * conf/powerpc-ieee1275.mk: Likewise.
46249 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 46250
8d252e44 462512006-09-22 Robert Millan <rmh@aybabtu.com>
46252
46253 Sync with i386 version.
46254 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
46255 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
46256
209bf7ac 462572006-09-21 Robert Millan <rmh@aybabtu.com>
46258
46259 Import from GRUB Legacy (lib/device.c):
46260 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
46261 (init_device_map) [__linux__]: Add support for I2O devices.
46262
6b146090 462632006-09-14 Marco Gerards <marco@gnu.org>
46264
46265 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
46266 `-melf_i386'.
46267
e38600a8 462682006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 46269
46270 * util/i386/pc/grub-install.in: Skip menu.lst when removing
46271 /boot/grub/*.lst.
78fa1790 46272
2952da5d 46273 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 46274
2952da5d 46275 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
46276 before adding it to device.map.
46277
01b82a64 462782006-08-15 Johan Rydberg <jrydberg@gnu.org>
46279
fe6b695a 46280 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 46281 compiles a file; using the -MD option.
46282 * conf/common.mk: Regenerate.
46283 * conf/i386-pc.mk: Likewise.
46284 * conf/i386-efi.mk: Likewise.
46285 * conf/powerpc-ieee1275.mk: Likewise.
46286 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 46287
1064790d 462882006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
46289
46290 Move the prototypes of grub_setjmp and grub_longjmp to
46291 cpu/setjmp.h, so that each architecture may specify different
46292 attributes.
f19dbdb7 46293
1064790d 46294 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
46295 (grub_longjmp): Likewise.
46296 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
46297 (grub_longjmp): Likewise.
46298 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
46299 (grub_longjmp): Likewise.
46300
46301 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
46302 [!GRUB_UTIL] (grub_longjmp): Removed.
46303
29dda3ed 463042006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
46305
46306 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
46307 "color!" method does not return any value.
46308
ad2a06ed 463092006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46310
46311 * include/grub/bitmap.h: New file.
46312
46313 * include/grub/i386/pc/vbeutil.h: Likewise.
46314
46315 * video/bitmap.c: Likewise.
46316
46317 * video/readers/tga.c: Likewise.
46318
46319 * video/i386/pc/vbeutil.c: Likewise.
46320
46321 * commands/videotest.c: Code cleanup and updated to reflect to new
46322 video API.
46323
46324 * term/gfxterm.c: Likewise.
46325
46326 * video/video.c: Likewise.
46327
46328 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
46329 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
46330 (bitmap_mod_SOURCES): New entry.
46331 (bitmap_mod_CFLAGS): Likewise.
46332 (bitmap_mod_LDFLAGS): Likewise.
46333 (tga_mod_SOURCES): Likewise.
46334 (tga_mod_CFLAGS): Likewise.
46335 (tga_mod_LDFLAGS): Likewise.
46336
46337 * include/grub/video.h (grub_video_blit_operators): New enum type.
46338 (grub_video_render_target): Changed as forward declaration and moved
46339 actual definition to be video driver specific.
46340 (grub_video_adapter.blit_bitmap): Added blitting operator.
46341 (grub_video_adapter.blit_render_target): Likewise.
46342 (grub_video_blit_bitmap): Likewise.
46343 (grub_video_blit_render_target): Likewise.
46344
46345 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
46346 driver specific render target definition.
46347 (grub_video_vbe_map_rgba): Added driver internal helper.
46348 (grub_video_vbe_unmap_color): Updated to use
46349 grub_video_i386_vbeblit_info.
46350 (grub_video_vbe_get_video_ptr): Likewise.
46351
46352 * include/grub/i386/pc/vbeblit.h
46353 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
46354 grub_video_i386_vbeblit_info.
46355 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
46356 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
46357 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
46358 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
46359 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
46360 (grub_video_i386_vbeblit_index_index): Likewise.
46361 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
46362 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
46363 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
46364 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
46365 operator.
46366 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
46367 operator.
46368
46369 * video/i386/pc/vbeblit.c: Updated to reflect changes on
46370 include/grub/i386/pc/vbeblit.h.
46371
46372 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
46373 Updated to use grub_video_i386_vbeblit_info.
46374 (grub_video_i386_vbefill_R8G8B8): Likewise.
46375 (grub_video_i386_vbefill_index): Likewise.
46376 (grub_video_i386_vbefill): Added generic filler.
46377
46378 * video/i386/pc/vbefill.c: Updated to reflect changes on
46379 include/grub/i386/pc/vbefill.h.
46380
46381 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
46382 grub_video_i386_vbeblit_info.
46383 (grub_video_vbe_unmap_color): Likewise.
46384 (grub_video_vbe_blit_glyph): Likewise.
46385 (grub_video_vbe_scroll): Likewise.
46386 (grub_video_vbe_draw_pixel): Removed function.
46387 (grub_video_vbe_get_pixel): Likewise.
46388 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
46389 updated code to use it.
46390 (common_blitter): Added common blitter for render target and bitmap.
46391 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
46392 (grub_video_vbe_blit_render_target): Likewise.
46393
bc8c036d 463942006-07-30 Johan Rydberg <jrydberg@gnu.org>
46395
46396 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
46397 is in text mode if there is no console control protocol instance
46398 available.
46399
684a8eff 464002006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46401
46402 * include/grub/video.h: Code cleanup.
46403
46404 * include/grub/i386/pc/vbe.h: Likewise.
46405
46406 * video/i386/pc/vbe.c: Likewise.
46407
46408 * video/i386/pc/vbeblit.c: Likewise.
46409
46410 * video/i386/pc/vbefill.c: Likewise.
46411
46412 * video/video.c: Likewise. Also added more comments.
46413
5915059b 464142006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46415
46416 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
46417 (struct grub_biosdisk_dap): Likewise.
46418
46419 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
46420 linkage settings for all functions.
46421
90ce5d56 464222006-07-12 Marco Gerards <marco@gnu.org>
46423
46424 * configure.ac (--enable-mm-debug): Fix typo.
46425
46426 * genkernsyms.sh.in: Use proper quoting for `CC'.
46427
43e7f879 464282006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
46429
46430 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
46431 (normal_mod_ASFLAGS): Remove "-m32".
46432
4889bdec 464332006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
46434
46435 * util/misc.c: Include config.h.
46436 [!HAVE_MEMALIGN]: Do not include malloc.h.
46437 (grub_memalign): Use posix_memalign, if present. Then, use
46438 memalign, if present. Otherwise, emit an error.
46439
46440 * util/grub-emu.c: Do not include malloc.h.
46441
46442 * include/grub/util/misc.h: Include unistd.h. This is required for
46443 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
46444 D. Eades III <hde@foobar-qux.org>.
46445
46446 * configure.ac (AC_GNU_SOURCE): Added.
46447 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
46448 type.
46449
fd39d4da 464502006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
46451
46452 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
46453 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
46454
b786f3b5 464552006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
46456
46457 * include/grub/types.h (grub_host_addr_t): Rename to
46458 grub_target_addr_t.
46459 (grub_host_off_t): Rename to grub_target_off_t.
46460 (grub_host_size_t): Rename to grub_target_size_t.
46461 (grub_host_ssize_t): Rename to grub_target_ssize_t.
46462 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
46463
46464 * include/grub/kernel.h (struct grub_module_header): Change type
46465 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
46466 (grub_module_info): Likewise.
f19dbdb7 46467
051988bb 464682006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46469
46470 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
46471 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
46472 Velazquez <jesus.velazquez@gmail.com>.
46473
deae281b 464742006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46475
46476 Count partitions from 1 instead of 0 in the string representation
46477 of partitions. Still use 0-based internally.
f19dbdb7 46478
deae281b 46479 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
46480 (sun_partition_map_iterate): Use grub_partition_t instead of
46481 struct grub_partition *. Cast DESC->START_CYLINDER to
46482 grub_uint64_t after converting the endian.
46483 (sun_partition_map_probe): Subtract 1 for PARTNUM.
46484 (sun_partition_map_get_name): Add 1 to P->INDEX.
46485
46486 * partmap/pc.c (grub_partition_parse): Subtract 1 for
46487 PCDATA->DOS_PART.
46488 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
46489
46490 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
46491 zero instead of one.
46492 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
46493 (gpt_partition_map_get_name): Add 1 into P->INDEX.
46494
46495 * partmap/apple.c (apple_partition_map_iterate): Change the type
46496 of POS to unsigned.
46497 (apple_partition_map_probe): Subtract 1 for PARTNUM.
46498 (apple_partition_map_get_name): Add 1 into P->INDEX.
46499
46500 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
46501 of POS to unsigned.
46502 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
46503 calculate the offset of a partition.
46504 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
46505 (amiga_partition_map_get_name): Add 1 into P->INDEX.
46506
46507 * partmap/acorn.c (acorn_partition_map_find): Change the type of
46508 SECTOR to grub_disk_addr_t.
46509 (acorn_partition_map_iterate): Likewise.
46510 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
46511 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
46512 top.
46513 (acorn_partition_map_get_name): Add 1 into P->INDEX.
46514
46515 * kern/i386/pc/init.c (make_install_device): Add 1 into
46516 GRUB_INSTALL_DOS_PART.
46517
46518 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
46519 conditional.
46520
524a1e6a 465212006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46522
46523 Clean up the code to support 64-bit addressing in disks and
46524 files. This change is not enough for filesystems yet.
f19dbdb7 46525
524a1e6a 46526 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
46527 type of "start" to grub_uint64_t.
46528 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
46529 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
46530 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
46531 convert addresses.
46532
46533 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
46534 to grub_disk_addr_t.
46535
46536 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
46537 string.
46538
46539 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46540
46541 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
46542 to char *.
46543
46544 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
46545
46546 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
46547
46548 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
46549
46550 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
46551 to grub_off_t, to detect an error from grub_file_seek.
46552 (grub_multiboot_load_elf32): Likewise.
46553
46554 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
46555 maximum unsigned long value when an overflow is detected.
46556 (grub_strtoull): New function.
46557 (grub_divmod64): Likewise.
46558 (grub_lltoa): use grub_divmod64.
46559
46560 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
46561 grub_disk_addr_t.
46562 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
46563 the pointer to next character. Use grub_strtoull instead of
46564 grub_strtoul.
46565 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
46566 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
46567 respectively.
46568
fe6b695a 46569 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 46570 return value is signed.
46571 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
46572 test if OFFSET is less than zero, as OFFSET is unsigned now.
46573
46574 * kern/disk.c (struct grub_disk_cache): Change the type of
46575 "sector" to grub_disk_addr_t.
46576 (grub_disk_cache_get_index): Change the type of SECTOR to
46577 grub_disk_addr_t. Calculate the hash with SECTOR casted to
46578 unsigned after shifting.
46579 (grub_disk_cache_invalidate): Change the type of SECTOR to
46580 grub_disk_addr_t.
46581 (grub_disk_cache_unlock): Likewise.
46582 (grub_disk_cache_store): Likewise.
46583 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
46584 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
46585 grub_disk_addr_t and grub_uint64_t, respectively.
46586 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
46587 body, as the value of OFFSET is tweaked by
46588 grub_disk_check_range. Change the types of START_SECTOR, LEN and
46589 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
46590 respectively.
46591 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
46592 body, as the value of OFFSET is tweaked by
46593 grub_disk_check_range. Change the types of LEN and N to
46594 grub_size_t.
46595
46596 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
46597 and "saved_offset" to grub_off_t.
46598 (test_header): Cast BUF to char *.
46599 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
46600 to char *.
46601 (grub_gzio_read): Change the types of OFFSET and SIZE to
46602 grub_off_t and grub_size_t, respectively.
46603
46604 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
46605 Removed.
46606 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
46607 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
46608 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
46609 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
46610 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
46611
46612 * include/grub/types.h (grub_off_t): Unconditionally set to
46613 grub_uint64_t.
46614 (grub_disk_addr_t): Changed to grub_uint64_t.
46615
46616 * include/grub/partition.h (struct grub_partition): Change the
46617 types of "start", "len" and "offset" to grub_disk_addr_t,
46618 grub_uint64_t and grub_disk_addr_t, respectively.
46619 (grub_partition_get_start): Return grub_disk_addr_t.
46620 (grub_partition_get_len): Return grub_uint64_t.
46621
46622 * include/grub/misc.h (grub_strtoull): New prototype.
46623 (grub_divmod64): Likewise.
46624
46625 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
46626 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
46627 grub_off_t, respectively.
46628 All callers and references changed.
46629
46630 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
46631 grub_size_t in "read".
46632 All callers and references changed.
46633
46634 * include/grub/file.h (struct grub_file): Change the types of
46635 "offset" and "size" to grub_off_t and grub_off_t,
46636 respectively. Change the type of SECTOR to grub_disk_addr_t in
46637 "read_hook".
46638 (grub_file_read): Change the type of LEN to grub_size_t.
46639 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
46640 grub_off_t.
46641 (grub_file_size): Return grub_off_t.
46642 (grub_file_tell): Likewise.
46643 All callers and references changed.
46644
46645 * include/grub/disk.h (struct grub_disk_dev): Change the types of
46646 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
46647 "write".
46648 (struct grub_disk): Change the type of "total_sectors" to
46649 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 46650 "read_hook".
524a1e6a 46651 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
46652 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
46653 (grub_disk_write): Likewise.
46654 All callers and references changed.
46655
46656 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
46657 char * for grub_strncmp to silence gcc.
46658 (grub_iso9660_mount): Likewise.
46659 (grub_iso9660_mount): Likewise.
46660 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
46661 return statement.
46662 (grub_iso9660_iterate_dir): Likewise.
46663 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
46664
46665 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
46666 LEN to grub_disk_addr_t and grub_size_t, respectively.
46667
46668 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46669
46670 * fs/jfs.c (grub_jfs_read_file): Likewise.
46671
46672 * fs/minix.c (grub_jfs_read_file): Likewise.
46673
46674 * fs/sfs.c (grub_jfs_read_file): Likewise.
46675
46676 * fs/ufs.c (grub_jfs_read_file): Likewise.
46677
46678 * fs/xfs.c (grub_jfs_read_file): Likewise.
46679
46680 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
46681 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
46682 respectively.
46683
46684 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
46685 BLKNR to -1 instead of returning GRUB_ERRNO.
46686 (grub_ext2_read_file): Change the types of SECTOR and
46687 LEN to grub_disk_addr_t and grub_size_t, respectively.
46688
46689 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
46690 LEN to grub_disk_addr_t and grub_size_t, respectively.
46691
46692 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
46693 grub_file_read.
46694
46695 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
46696 string. Do not cast SECTOR explicitly.
46697
46698 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
46699 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
46700 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
46701 grub_disk_addr_t and grub_size_t, respectively. If the sector is
46702 over 2TB and LBA mode is not supported, raise an error.
46703 (get_safe_sectors): New function.
46704 (grub_biosdisk_read): Use get_safe_sectors.
46705 (grub_biosdisk_write): Likewise.
46706
46707 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
46708 (grub_efidisk_write): Likewise.
46709
46710 * disk/loopback.c (delete_loopback): Cosmetic changes.
46711 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
46712 correctly.
46713 (grub_loopback_open): Likewise.
46714 (grub_loopback_read): Likewise. Also, change the type of POS to
46715 grub_off_t, and fix the usage of grub_memset.
46716
46717 * commands/i386/pc/play.c: Include grub/machine/time.h.
46718
46719 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
46720 print FILE->SIZE.
46721
46722 * commands/configfile.c: Include grub/env.h.
46723
46724 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
46725 GRUB_ERRNO directly instead. Change the type of POS to
46726 grub_off_t. Follow the coding standard.
46727
46728 * commands/blocklist.c: Include grub/partition.h.
46729 (grub_cmd_blocklist): Return an error if the underlying device is
46730 not a disk. Take the starting sector of a partition into account,
46731 if a partition is used.
46732
46733 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
46734 a length field.
46735 (lba_mode): Support 64-bit addresses.
46736 (chs_mode): Likewise.
46737 (copy_buffer): Adapted to the new offsets of a length field and a
46738 segment field.
46739 (blocklist_default_start): Allocate 64-bit space.
46740
46741 * boot/i386/pc/boot.S (force_lba): Removed.
46742 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 46743 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 46744 space.
46745 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
46746 is useless.
46747 (lba_mode): Refactored to support a 64-bit address. More size
46748 optimization.
46749 (setup_sectors): Likewise.
46750
53af98ad 467512006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46752
46753 * DISTLIST: Added include/grub/i386/linux.h. Removed
46754 include/grub/i386/pc/linux.h
46755
46756 * configure.ac (AC_INIT): Bumped to 1.94.
46757
46758 * config.guess: Updated from gnulib.
46759 * config.sub: Likewise.
46760 * install-sh: Likewise.
46761 * mkinstalldirs: Likewise.
46762
b4c1940a 467632006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46764
46765 * conf/common.rmk (grub_modules_init.lst): Depended on
46766 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46767 MODSRCFILES.
46768
46769 * genmk.rb (PModule::rule): Reverted the previous change.
46770
cfca1cfd 467712006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46772
46773 * conf/common.rmk (grub_modules_init.lst): Depends on
46774 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46775 that the target does not exist before producing.
46776 (grub_modules_init.h): Remove the target before generating.
46777 (grub_emu_init.c): Likewise.
46778
46779 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46780
aa6d7826 467812006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46782
46783 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46784 for the target-specific tests. Make sure that we also have the
46785 up-to-date target variables for those tests.
46786
26c607b9 467872006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46788
46789 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46790 (PModule::rule): Likewise.
46791
0162321a 467922006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46793
46794 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46795 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46796 target-specific flags should be prefixed.
46797 (PModule::rule): Likewise.
46798
6c826348 467992006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46800
46801 * configure.ac (CMP): Check if cmp is available explicitly.
46802
b977bf01 468032006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46804
46805 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46806 (target_cpu): New variable.
46807 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 46808
b977bf01 46809 * util/i386/pc/grub-install.in (host_cpu): Removed.
46810 (target_cpu): New variable.
46811 (pkglibdir): Use target_cpu instead of host_cpu.
46812
46813 * util/genmoddep.c: Removed.
f19dbdb7 46814
b977bf01 46815 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46816 instead of GRUB_HOST_SIZEOF_VOID_P.
46817 * kern/dl.c: Likewise.
46818
46819 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46820 ...
46821 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46822 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46823 (GRUB_TARGET_SIZEOF_LONG): ... this.
46824 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46825 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46826 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46827 to ...
46828 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46829 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46830 (GRUB_TARGET_SIZEOF_LONG): ... this.
46831 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46832 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46833 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46834 to ...
46835 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46836 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46837 (GRUB_TARGET_SIZEOF_LONG): ... this.
46838 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46839 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46840
46841 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46842 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46843 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46844 instead of GRUB_HOST_SIZEOF_LONG.
46845 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46846 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46847 GRUB_CPU_WORDS_BIGENDIAN.
46848 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46849 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46850 grub_host_ssize_t.
46851
46852 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46853 (genmoddep_SOURCES): Likewise.
46854 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46855 (genmoddep_SOURCES): Likewise.
46856 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46857 (genmoddep_SOURCES): Likewise.
46858 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46859 Likewise.
46860 (genmoddep_SOURCES): Likewise.
46861
46862 * genmoddep.awk: New file.
46863
46864 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46865 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46866 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46867 (PModule::rule): Likewise.
46868 (Program::rule): Likewise.
46869 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46870 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46871 respectively.
46872
46873 * configure.ac: Rewritten intensively to use host and target
46874 instead of build and host, respectively.
46875
46876 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46877 (host_cpu): Removed.
46878 (target_cpu): New variable.
46879 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46880 (BUILD_CC): Removed.
46881 (BUILD_CFLAGS): Likewise.
46882 (BUILD_CPPFLAGS): Likewise.
46883 (TARGET_CC): New variable.
46884 (TARGET_CFLAGS): Likewise.
46885 (TARGET_CPPFLAGS): Likewise.
46886 (TARGET_LDFLAGS): Likewise.
46887 (AWK): Likewise.
46888 (include): Use target_cpu instead of host_cpu.
46889 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 46890
b977bf01 46891 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46892
f09771a1 468932006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46894
46895 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46896 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46897 field 'false' to 'exec_on_false'.
46898 (grub_script_create_cmdif): Renamed argument names to reflect above
46899 changes.
46900
46901 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46902
46903 * normal/script.c (grub_script_create_cmdif): Likewise.
46904
118f4fb3 469052006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46906
46907 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46908 top.
46909 (grub_hfsplus_btree_recptr): Likewise.
46910 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46911 FILEBLOCK both to pass a block number and store next block
46912 number.
46913 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46914 overflow file correctly. Specify errors appropriately, because
46915 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46916 grub_hfsplus_btree_recptr to get the pointer to a found key.
46917 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46918 is found.
46919
46920 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46921 linux.mod.
46922 (_linux_mod_SOURCES): New variable.
46923 (_linux_mod_CFLAGS): Likewise.
46924 (_linux_mod_LDFLAGS): Likewise.
46925 (linux_mod_SOURCES): Likewise.
46926 (linux_mod_CFLAGS): Likewise.
46927 (linux_mod_LDFLAGS): Likewise.
46928
46929 * DISTLIST: Added loader/i386/efi/linux.c,
46930 loader/i386/efi/linux_normal.c and
46931 include/grub/i386/efi/loader.h.
46932
46933 * loader/i386/efi/linux.c: New file.
46934 * loader/i386/efi/linux_normal.c: Likewise.
46935 * include/grub/i386/efi/loader.h: Likewise.
46936
89a7d726 469372006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46938
46939 * commands/blocklist.c: New file.
46940
46941 * DISTLIST: Added commands/blocklist.c.
46942
46943 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 46944 color for the background, and a darker color for the foreground.
89a7d726 46945 (grub_console_checkkey): Return READ_KEY.
46946 (grub_console_cls): Set the background to
46947 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46948
46949 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46950
46951 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46952 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46953
46954 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46955 prototype.
46956
46957 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46958 BG. The spec is wrong again.
46959
46960 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46961 prototype.
46962 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46963
46964 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46965 commands/blocklist.c.
46966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 46967
89a7d726 46968 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46969 (blocklist_mod_SOURCES): New variable.
46970 (blocklist_mod_CFLAGS): Likewise.
46971 (blocklist_mod_LDFLAGS): Likewise.
46972
75c8f258 469732006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46974
46975 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46976 duplication.
46977 (lba_mode): Use %eax more intensively to reduce the code size.
46978
da2eb181 469792006-05-20 Marco Gerards <marco@gnu.org>
46980
46981 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46982
46983 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46984 for `menuentry'.
46985 (script): Accept leading newlines.
46986 (newlines): New rule to describe 0 or more newlines.
46987 (commands): Accept `command' with trailing newline. Fixed the
46988 order in which arguments were passed to `grub_script_add_cmd'.
46989 Accept commands separated by newlines.
46990 (function): Changed to accept newlines.
46991 (menuentry) Rewritten.
46992
46993 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46994 front of the list, instead of to the end.
46995
577b4050 469962006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46997
46998 * util/i386/pc/grub-install.in (bindir): New variable.
46999 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
47000 Shaver <lbgwjl@gmail.com>.
47001
0d6e1189 470022006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
47003
47004 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
47005 grub/machine/linux.h
47006 * loader/i386/pc/linux.c: Likewise.
47007
47008 * include/grub/i386/pc/linux.h: Moved to ...
47009 * include/grub/i386/linux.h: ... here.
47010
47011 * include/grub/i386/linux.h (struct linux_kernel_params): New
47012 struct.
f19dbdb7 47013
31b86e9f 470142006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
47015
47016 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
47017 checking.
47018 (grub_video_vbe_blit_glyph): Likewise.
47019 (grub_video_vbe_blit_bitmap): Likewise.
47020 (grub_video_vbe_blit_render_target): Likewise.
47021
83b984de 470222006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
47023
47024 * configure.ac (--with-platform): Properly quote the square
47025 brackets.
47026
5f0413bd 470272006-05-08 Marco Gerards <marco@gnu.org>
47028
47029 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
47030 this...
47031 (kernel_elf_HEADERS): ...to this. Updated all users.
47032 (grubof_symlist.c): Renamed from this...
47033 (kernel_elf_symlist.c): ...to this. Updated all users.
47034 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
47035 (grubof_SOURCES): Renamed from this...
47036 (kernel_elf_SOURCES): ...to this.
47037 (grubof_HEADERS): Renamed from this...
47038 (kernel_elf_HEADERS): ...to this.
47039 (grubof_CFLAGS): Renamed from this...
47040 (kernel_elf_CFLAGS): ...to this.
47041 (grubof_ASFLAGS): Renamed from this...
47042 (kernel_elf_ASFLAGS): ...to this.
47043 (grubof_LDFLAGS): Renamed from this...
47044 (kernel_elf_LDFLAGS): ...to this.
47045
47046 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
47047 this...
47048 (kernel_elf_HEADERS): ...to this. Updated all users.
47049 (grubof_symlist.c): Renamed from this...
47050 (kernel_elf_symlist.c): ...to this. Updated all users.
47051 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
47052 (grubof_SOURCES): Renamed from this...
47053 (kernel_elf_SOURCES): ...to this.
47054 (grubof_HEADERS): Renamed from this...
47055 (kernel_elf_HEADERS): ...to this.
47056 (grubof_CFLAGS): Renamed from this...
47057 (kernel_elf_CFLAGS): ...to this.
47058 (grubof_ASFLAGS): Renamed from this...
47059 (kernel_elf_ASFLAGS): ...to this.
47060 (grubof_LDFLAGS): Renamed from this...
47061 (kernel_elf_LDFLAGS): ...to this.
47062
47063 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
47064 `kernel.elf' instead of `grubof'.
47065
05568c2e 470662006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
47067
47068 Add --with-platform to configure. Use pkglibdir instead of
47069 pkgdatadir. This is reported by Roger Leigh.
47070
47071 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
47072 (host_vendor): Likewise.
47073 (host_os): Likewise.
47074 (pkgdatadir): Likewise.
47075 (platform): New variable.
47076 (pkglibdir): Likewise.
47077 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 47078
05568c2e 47079 * util/i386/pc/grub-install.in (datadir): Removed.
47080 (host_vendor): Likewise.
47081 (host_os): Likewise.
47082 (pkgdatadir): Likewise.
47083 (platform): New variable.
47084 (pkglibdir): Likewise.
47085 Use PKGLIBDIR instead of PKGDATADIR.
47086
47087 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
47088 instead of GRUB_DATADIR.
47089 (main): Likewise.
47090 * util/i386/pc/grub-mkimage.c (usage): Likewise.
47091 (main): Likewise.
47092 * util/i386/efi/grub-mkimage.c (usage): Likewise.
47093 (main): Likewise.
47094
47095 * configure.ac (--with-platform): New option.
47096 Use PLATFORM instead of HOST_VENDOR to specify a platform.
47097
47098 * Makefile.in: Include a makefile based on PLATFORM instead of
47099 HOST_VENDOR.
47100 (pkgdatadir): Not appended by the machine type.
47101 (pkglibdir): Appended by the machine type.
47102 (host_vendor): Removed.
47103 (platform): New variable.
47104 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
47105 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
47106 (uninstall): Likewise.
47107
4e93851c 471082006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
47109
47110 Use the environment context in the menu. Remove the commands
47111 "default" and "timeout", and use variables instead.
f19dbdb7 47112
4e93851c 47113 * normal/menu.c: Include grub/env.h.
47114 (print_entry): Cast TITLE to silence gcc.
47115 (get_timeout): New function.
47116 (set_timeout): Likewise.
47117 (get_entry_number): Likewise.
47118 (run_menu): Use a default entry, a fallback entry and a timeout
47119 in the environment variables "default", "fallback" and
47120 "timeout". Also, tweak the default entry if it is not within the
47121 current menu entries.
47122 (grub_menu_run): Use a fallback entry in the environment variable
47123 "fallback".
47124
47125 * normal/main.c (read_config_file): Do not initialize
47126 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
47127 NEWMENU->TIMEOUT.
47128 (grub_normal_execute): Use a data slot to store the menu.
47129
47130 * include/grub/normal.h (struct grub_menu): Removed default_entry,
47131 fallback_entry and timeout.
47132 (struct grub_menu_list): Removed.
47133 (grub_menu_list_t): Likewise.
47134 (struct grub_context): Likewise.
47135 (grub_context_t): Likewise.
47136 (grub_context_get): Likewise.
47137 (grub_context_get_current_menu): Likewise.
47138 (grub_context_push_menu): Likewise.
47139 (grub_context_pop_menu): Likewise.
47140 (grub_default_init): Likewise.
47141 (grub_default_fini): Likewise.
47142 (grub_timeout_init): Likewise.
47143 (grub_timeout_fini): Likewise.
47144
47145 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
47146 and timeout.mod.
47147 (normal_mod_SOURCES): Removed normal/context.c.
47148
47149 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
47150 commands/default.c, commands/timeout.c and normal/context.c.
47151 (normal_mod_SOURCES): Removed normal/context.c.
47152
47153 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
47154 commands/timeout.c and normal/context.c.
47155 (normal_mod_SOURCES): Removed normal/context.c.
47156
47157 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
47158 commands/default.c, commands/timeout.c and normal/context.c.
47159 (normal_mod_SOURCES): Removed normal/context.c.
47160
47161 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
47162 timeout.mod.
47163 (default_mod_SOURCES): Removed.
47164 (default_mod_CFLAGS): Likewise.
47165 (default_mod_LDFLAGS): Likewise.
47166 (timeout_mod_SOURCES): Removed.
47167 (timeout_mod_CFLAGS): Likewise.
47168 (timeout_mod_LDFLAGS): Likewise.
47169
47170 * DISTLIST: Removed commands/default.c, commands/timeout.c and
47171 normal/context.c.
47172
47173 * commands/default.c: Removed.
47174 * commands/timeout.c: Likewise.
47175 * normal/context.c: Likewise.
47176
1eb9cc1d 471772006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
47178
47179 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
47180
385bd9c1 471812006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
47182
47183 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
47184 "next" to "prev" for readability.
47185 (struct grub_env_sorted_var): New struct.
47186 (grub_env_context): Renamed to ...
47187 (initial_context): ... this.
47188 (grub_env_var_context): Renamed to ...
47189 (current_context): ... this.
47190 (grub_env_find): Look only at CURRENT_CONTEXT.
47191 (grub_env_context_open): Rewritten to copy exported variables from
47192 previous context.
47193 (grub_env_context_close): Rewritten according to the new
47194 scheme. Also, add an assertion to prevent the initial context from
47195 removed.
47196 (grub_env_insert): Removed the code for the sorted list.
47197 (grub_env_remove): Likewise.
47198 (grub_env_export): Simply mark the variable with
47199 GRUB_ENV_VAR_GLOBAL.
47200 (grub_env_set): A cosmetic change for naming consistency.
47201 (grub_env_get): Likewise.
47202 (grub_env_unset): Likewise.
47203 (grub_env_iterate): Rewritten to sort variables within this
47204 function.
47205 (grub_register_variable_hook): Fixed for naming consistency. Call
47206 grub_env_find again, only if NAME is not found at the first time.
47207 (mangle_data_slot_name): New function.
47208 (grub_env_set_data_slot): Likewise.
47209 (grub_env_get_data_slot): Likewise.
47210 (grub_env_unset_data_slot): Likewise.
47211
47212 * include/grub/env.h (grub_env_var_type): New enum.
47213 (GRUB_ENV_VAR_LOCAL): New constant.
47214 (GRUB_ENV_VAR_GLOBAL): Likewise.
47215 (GRUB_ENV_VAR_DATA): Likewise.
47216 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
47217 "type".
47218 (grub_env_set): Replace VAR with NAME for consistency.
47219 (grub_register_variable_hook): Likewise.
47220 (grub_env_export): Specify the name of the argument.
47221 (grub_env_set_data_slot): New prototype.
47222 (grub_env_get_data_slot): Likewise.
47223 (grub_env_unset_data_slot): Likewise.
47224
7f362539 472252006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
47226
47227 Extend the loader so that GRUB can accept a loader which comes
47228 back to GRUB when a loaded image exits. Also, this change adds
47229 support for a chainloader on EFI.
f19dbdb7 47230
7f362539 47231 * term/efi/console.c: Include grub/misc.h.
47232 (grub_console_checkkey): Display a scan code on the top for
47233 debugging. This will be removed once the EFI port gets stable.
47234 Correct the scan code mapping.
47235
47236 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
47237 allocate memory from larger regions, in order to reduce the number
47238 of allocated regions. Otherwise, the MacOSX loader panics.
47239 (filter_memory_map): Avoid less than 1MB for compatibility with
47240 other loaders.
47241 (add_memory_regions): Allocate from the tail of a region, if
47242 possible, to avoid allocating a region near to 1MB, for the MacOSX
47243 loader.
47244
47245 * kern/efi/init.c (grub_efi_set_prefix): Specify
47246 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
47247
47248 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
47249 argument IMAGE_HANDLE and specify it to get a loaded image.
47250 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
47251 grub_efi_get_loaded_image.
fe6b695a 47252 (grub_efi_get_filename): Divide the length by the size of
7f362539 47253 grub_efi_char16_t.
47254 (grub_efi_get_device_path): New function.
47255 (grub_efi_print_device_path): Print End Device Path nodes. Divide
47256 the length by the size of grub_efi_char16_t for a file path device
47257 path node.
47258
47259 * kern/loader.c (grub_loader_noreturn): New variable.
47260 (grub_loader_set): Accept a new argument NORETURN. Set
47261 GRUB_LOADER_NORETURN to NORETURN.
47262 All callers changed.
47263 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
47264 grub_machine_fini.
47265
47266 * include/grub/efi/efi.h (grub_efi_get_device_path): New
47267 prototype.
47268 (grub_efi_get_loaded_image): Take an argument to specify an image
47269 handle.
47270
47271 * include/grub/loader.h (grub_loader_set): Added one more argument
47272 NORETURN.
47273
47274 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
47275 instead of grub_efi_open_protocol.
47276 (grub_efidisk_get_device_name): Likewise.
47277 (grub_efidisk_close): Print a newline.
47278 (grub_efidisk_get_device_handle): Fixed to use
47279 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
47280 GRUB_EFI_DEVICE_PATH_TYPE.
47281
47282 * disk/efi/efidisk.c (device_path_guid): Moved to ...
47283 * kern/efi/efi.c (device_path_guid): ... here.
47284
47285 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
47286 chain.mod.
47287 (kernel_mod_HEADERS): Added efi/disk.h.
47288 (_chain_mod_SOURCES): New variable.
47289 (_chain_mod_CFLAGS): Likewise.
47290 (_chain_mod_LDFLAGS): Likewise.
47291 (chain_mod_SOURCES): Likewise.
47292 (chain_mod_CFLAGS): Likewise.
47293 (chain_mod_LDFLAGS): Likewise.
47294
47295 * DISTLIST: Added include/grub/efi/chainloader.h,
47296 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
47297
47298 * include/grub/efi/chainloader.h: New file.
47299 * loader/efi/chainloader.c: Likewise.
47300 * loader/efi/chainloader_normal.c: Likewise.
47301
c0111d6e 473022006-04-30 Marco Gerards <marco@gnu.org>
47303
47304 * commands/configfile.c (grub_cmd_source): New function.
47305 (GRUB_MOD_INIT): Register the commands `source' and `.'.
47306 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
47307
df5341da 473082006-04-30 Marco Gerards <marco@gnu.org>
47309
47310 * normal/execute.c (grub_script_execute_cmd): Change the return
47311 type to `grub_err_t'. Correctly return the error.
47312 (grub_script_execute_cmdline): In case a command line is not a
47313 command or a function, try to interpret it as an assignment.
47314
f85934bd 473152006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
47316
47317 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
47318 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
47319 skip a node whose name is obviously invalid as UTF-16,
47320 i.e. contains a NUL character. Stop the iteration when the last
47321 directory entry is found. Instead of using the return value of
47322 grub_hfsplus_btree_iterate_node, store the value in RET and use
47323 it, because the iterator can be stopped by the last directory
47324 entry.
47325
8f8a2cf8 473262006-04-30 Marco Gerards <marco@gnu.org>
47327
47328 * include/grub/env.h (grub_env_export): New prototype. Reported
47329 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
47330
a27e84ce 473312006-04-30 Marco Gerards <marco@gnu.org>
47332
47333 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
47334 size of the extents in a catalog file record.
47335
eaef0553 473362006-04-29 Marco Gerards <marco@gnu.org>
47337
47338 * commands/configfile.c (grub_cmd_configfile): Execute the
47339 configfile within its own context.
47340
47341 * include/grub/env.h (grub_env_context_open): New prototype.
47342 (grub_env_context_close): Likewise.
47343
47344 * kern/env.c (grub_env): Removed.
47345 (grub_env_sorted): Likewise.
47346 (grub_env_context): New variable.
47347 (grub_env_var_context): Likewise.
47348 (grub_env_find): Search both the active context and the global
47349 context.
47350 (grub_env_context_open): New function.
47351 (grub_env_context_close): Likewise.
47352 (grub_env_insert): Likewise.
47353 (grub_env_remove): Likewise.
47354 (grub_env_export): Likewise.
47355 (grub_env_set): Changed to use helper functions to avoid code
47356 duplication.
47357 (grub_env_iterate): Rewritten so both the current context and the
47358 global context are being used.
47359
47360 * normal/command.c (export_command): New function.
47361 (grub_command_init): Register the `export' function.
47362
7b455f4d 473632006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
47364
47365 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
47366 explicitly to suppress gcc's warnings.
47367 * fs/fat.c (grub_fat_find_dir): Likewise.
47368 (grub_fat_label): Likewise.
47369 * fs/xfs.c (grub_xfs_read_inode): Likewise.
47370 (grub_xfs_mount): Likewise.
47371 (grub_xfs_label): Likewise.
47372 * fs/affs.c (grub_affs_mount): Likewise.
47373 (grub_affs_label): Likewise.
47374 (grub_affs_iterate_dir): Likewise.
47375 * fs/sfs.c (grub_sfs_mount): Likewise.
47376 (grub_sfs_iterate_dir): Likewise.
47377 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
47378 * fs/hfs.c (grub_hfs_mount): Likewise.
47379 (grub_hfs_cmp_catkeys): Likewise.
47380 (grub_hfs_find_dir): Likewise.
47381 (grub_hfs_dir): Likewise.
47382 (grub_hfs_label): Likewise.
47383 * fs/jfs.c (grub_jfs_mount): Likewise.
47384 (grub_jfs_opendir): Likewise.
47385 (grub_jfs_getent): Likewise.
47386 (grub_jfs_lookup_symlink): Likewise.
47387 (grub_jfs_label): Likewise.
47388 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
47389 (grub_hfsplus_iterate_dir): Likewise.
47390 (grub_hfsplus_btree_iterate_node): Made static.
47391
47392 * util/grub-emu.c (prefix): New variable.
47393 (grub_machine_set_prefix): New function.
47394 (main): Do not set the environment variable "prefix" here. Only
47395 set PREFIX, which is used later by grub_machine_set_prefix.
47396
47397 * include/grub/video.h: Do not include grub/symbol.h.
47398 (grub_video_register): Not exported. This symbol is not defined in
47399 the kernel.
47400 (grub_video_unregister): Likewise.
47401 (grub_video_iterate): Likewise.
47402 (grub_video_setup): Likewise.
47403 (grub_video_restore): Likewise.
47404 (grub_video_get_info): Likewise.
47405 (grub_video_get_blit_format): Likewise.
47406 (grub_video_set_palette): Likewise.
47407 (grub_video_get_palette): Likewise.
47408 (grub_video_set_viewport): Likewise.
47409 (grub_video_get_viewport): Likewise.
47410 (grub_video_map_color): Likewise.
47411 (grub_video_map_rgb): Likewise.
47412 (grub_video_map_rgba): Likewise.
47413 (grub_video_fill_rect): Likewise.
47414 (grub_video_blit_glyph): Likewise.
47415 (grub_video_blit_bitmap): Likewise.
47416 (grub_video_blit_render_target): Likewise.
47417 (grub_video_scroll): Likewise.
47418 (grub_video_swap_buffers): Likewise.
47419 (grub_video_create_render_target): Likewise.
47420 (grub_video_delete_render_target): Likewise.
47421 (grub_video_set_active_render_target): Likewise.
47422
47423 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
47424 Undefined.
47425 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
47426
47427 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
47428 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47429 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47430 instead of $(srcdir)/genkernsyms.sh.
47431
47432 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
47433 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47434 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47435 instead of $(srcdir)/genkernsyms.sh.
47436
47437 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
47438 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47439 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47440 instead of $(srcdir)/genkernsyms.sh.
47441
47442 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
47443 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47444 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47445 instead of $(srcdir)/genkernsyms.sh.
47446
47447 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
47448 genkernsyms.sh.
47449
47450 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
47451 genkernsyms.sh.
47452 (gensymlist.sh): New target.
47453 (genkernsyms.sh): Likewise.
47454
47455 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
47456 genkernsyms.sh.in and gensymlist.sh.in.
47457
47458 * genkernsyms.sh: Removed.
47459 * gensymlist.sh: Likewise.
f19dbdb7 47460
7b455f4d 47461 * genkernsyms.sh.in: New file.
47462 * gensymlist.sh.in: Likewise.
47463
1885bb27 474642006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47465
47466 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
47467 clobber "prefix", since we may have already set it manually.
47468
71538dff 474692006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47470
47471 * kern/misc.c (abort): New alias for grub_abort.
47472
2965c7cc 474732006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
47474
47475 A new machine-specific function "grub_machine_set_prefix" is
47476 defined. This is called after loading modules, so that a prefix
47477 initialization can use modules. Also, this change adds an
47478 intensive debugging feature for the memory manager via the
47479 configure option "--enable-mm-debug".
f19dbdb7 47480
2965c7cc 47481 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
47482 PART.LEN.
47483
47484 * kern/sparc64/ieee1275/init.c (abort): Removed.
47485 (grub_stop): Likewise.
47486 (grub_exit): New function.
47487 (grub_set_prefix): Renamed to ...
47488 (grub_machine_set_prefix): ... this.
47489 (grub_machine_init): Do not call grub_set_prefix.
47490
47491 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
47492 (grub_machine_set_prefix): ... this.
47493 (grub_machine_init): Do not call grub_set_prefix.
47494
47495 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
47496 (grub_machine_init): Do not set the prefix here.
47497
47498 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
47499
47500 * kern/efi/init.c: Include grub/mm.h.
47501 (grub_efi_set_prefix): New function.
47502
47503 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
47504 (grub_efi_get_filename): New function.
47505 (grub_print_device_path): Renamed to ...
47506 (grub_efi_print_device_path): ... this.
47507
47508 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
47509 [MM_DEBUG] (grub_realloc): Likewise.
47510 [MM_DEBUG] (grub_free): Likewise.
47511 [MM_DEBUG] (grub_memalign): Likewise.
47512 [MM_DEBUG] (grub_mm_debug): New variable.
47513 [MM_DEBUG] (grub_debug_malloc): New function.
47514 [MM_DEBUG] (grub_debug_free): New function.
47515 [MM_DEBUG] (grub_debug_realloc): New function.
47516 [MM_DEBUG] (grub_debug_memalign): New function.
47517
47518 * kern/misc.c (grub_abort): Print a newline to distinguish
47519 the message.
47520
47521 * kern/main.c (grub_main): Call grub_machine_set_prefix and
47522 grub_set_root_dev after loading modules. This is necessary when
47523 setting a prefix depends on modules.
47524
47525 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
47526 (grub_efi_print_device_path): ... this.
47527 (grub_efi_get_filename): New prototype.
47528 (grub_efi_set_prefix): Likewise.
47529
47530 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
47531 and grub/disk.h.
47532 (grub_efidisk_get_device_handle): New prototype.
47533 (grub_efidisk_get_device_name): Likewise.
47534
47535 * include/grub/mm.h: Include config.h.
47536 (MM_DEBUG): Removed.
47537 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
47538 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
47539 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
47540 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
47541 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
47542 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
47543 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
47544 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
47545 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
47546
47547 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
47548
47549 * disk/efi/efidisk.c: Include grub/partition.h.
47550 (iterate_child_devices): New function.
47551 (add_device): First, compare only last device path nodes, so that
47552 devices are sorted by the types.
47553 (grub_efidisk_get_device_handle): New function.
47554 (grub_efidisk_get_device_name): Likewise.
47555
47556 * configure.ac (--enable-mm-debug): New option to enable the
47557 memory manager debugging feature. This makes the binary much
47558 bigger, so is disabled by default.
47559
9cacaa17 475602006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
47561
47562 Use grub_abort instead of grub_stop, and grub_exit must be
47563 define in each architecture now. Also, this change adds support
47564 for EFI disks.
f19dbdb7 47565
9cacaa17 47566 * util/i386/pc/grub-probefs.c: Include grub/term.h.
47567 (grub_getkey): New function.
47568 (grub_term_get_current): Likewise.
47569
47570 * util/i386/pc/grub-setup.c: Include grub/term.h.
47571 (grub_getkey): New function.
47572 (grub_term_get_current): Likewise.
47573
47574 * util/misc.c (grub_stop): Renamed to ...
47575 (grub_exit): ... this.
47576
47577 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
47578 (grub_exit): ... this.
47579 (grub_machine_init): Use grub_abort instead of abort.
47580 (grub_stop): Removed.
47581
47582 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
47583 abort.
47584
47585 * kern/i386/pc/startup.S (grub_exit): New function.
47586 (cold_reboot): New label.
47587
47588 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
47589 (grub_efi_init): Call grub_efidisk_init.
47590 (grub_efi_fini): Call grub_efidisk_fini.
47591
47592 * kern/efi/efi.c: Include grub/mm.h.
47593 (grub_efi_console_control_guid): Renamed to ...
47594 (console_control_guid): ... this.
47595 (grub_efi_loaded_image_guid): Renamed to ...
47596 (loaded_image_guid): ... this.
47597 (grub_efi_locate_handle): New function.
47598 (grub_efi_open_protocol): Likewise.
47599 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
47600 GRUB_EFI_CONSOLE_CONTROL_GUID.
47601 (grub_efi_exit): Removed.
47602 (grub_stop): Likewise.
47603 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
47604 (grub_exit): New function.
47605 (grub_print_device_path): Likewise.
47606
47607 * kern/rescue.c (grub_rescue_cmd_exit): New function.
47608 (grub_enter_rescue_mode): Register "exit".
47609
47610 * kern/misc.c (grub_real_dprintf): A cosmetic change.
47611 (grub_abort): New function.
47612
47613 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
47614
47615 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
47616
47617 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
47618
47619 * include/grub/efi/efi.h (grub_efi_exit): Removed.
47620 (grub_print_device_path): New prototype.
47621 (grub_efi_locate_handle): Likewise.
47622 (grub_efi_open_protocol): Likewise.
47623
47624 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
47625 * disk/efi/efidisk.c: Likewise.
47626
47627 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
47628
47629 * include/grub/efi/console_control.h
47630 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
47631
47632 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
47633 last 8 bytes as an array.
47634 (GRUB_EFI_DISK_IO_GUID): New macro.
47635 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
47636 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
47637 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
47638 grub_uint8_t.
47639 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
47640 (struct grub_efi_device_path): Rename the member "sub_type" to
47641 "subtype".
47642 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
47643 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
47644 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
47645 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
47646 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
47647 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
47648 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
47649 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
47650 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
47651 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
47652 (struct grub_efi_pci_device_path): New structure.
47653 (grub_efi_pci_device_path_t): New type.
47654 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
47655 (struct grub_efi_pccard_device_path): New structure.
47656 (grub_efi_pccard_device_path_t): New type.
47657 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
47658 (struct grub_efi_memory_mapped_device_path): New structure.
47659 (grub_efi_memory_mapped_device_path_t): New type.
47660 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
47661 (struct grub_efi_vendor_device_path): New structure.
47662 (grub_efi_vendor_device_path_t): New type.
47663 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
47664 (struct grub_efi_controller_device_path): New structure.
47665 (grub_efi_controller_device_path_t): New type.
47666 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
47667 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
47668 (struct grub_efi_acpi_device_path): New structure.
47669 (grub_efi_acpi_device_path_t): New type.
47670 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
47671 (struct grub_efi_expanded_acpi_device_path): New structure.
47672 (grub_efi_expanded_acpi_device_path_t): New type.
47673 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
47674 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
47675 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
47676 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
47677 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
47678 (struct grub_efi_atapi_device_path): New structure.
47679 (grub_efi_atapi_device_path_t): New type.
47680 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
47681 (struct grub_efi_fibre_channel_device_path): New structure.
47682 (grub_efi_fibre_channel_device_path_t): New type.
47683 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
47684 (struct grub_efi_1394_device_path): New structure.
47685 (grub_efi_1394_device_path_t): New type.
47686 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
47687 (struct grub_efi_usb_device_path): New structure.
47688 (grub_efi_usb_device_path_t): New type.
47689 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
47690 (struct grub_efi_usb_class_device_path): New structure.
47691 (grub_efi_usb_class_device_path_t): New type.
47692 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
47693 (struct grub_efi_i2o_device_path): New structure.
47694 (grub_efi_i2o_device_path_t): New type.
47695 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
47696 (struct grub_efi_mac_address_device_path): New structure.
47697 (grub_efi_mac_address_device_path_t): New type.
47698 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
47699 (struct grub_efi_ipv4_device_path): New structure.
47700 (grub_efi_ipv4_device_path_t): New type.
47701 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
47702 (struct grub_efi_ipv6_device_path): New structure.
47703 (grub_efi_ipv6_device_path_t): New type.
47704 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
47705 (struct grub_efi_infiniband_device_path): New structure.
47706 (grub_efi_infiniband_device_path_t): New type.
47707 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
47708 (struct grub_efi_uart_device_path): New structure.
47709 (grub_efi_uart_device_path_t): New type.
47710 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
47711 (struct grub_efi_vendor_messaging_device_path): New structure.
47712 (grub_efi_vendor_messaging_device_path_t): New type.
47713 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
47714 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
47715 (struct grub_efi_hard_drive_device_path): New structure.
47716 (grub_efi_hard_drive_device_path_t): New type.
47717 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
47718 (struct grub_efi_cdrom_device_path): New structure.
47719 (grub_efi_cdrom_device_path_t): New type.
47720 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
47721 (struct grub_efi_vendor_media_device_path): New structure.
47722 (grub_efi_vendor_media_device_path_t): New type.
47723 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
47724 (struct grub_efi_file_path_device_path): New structure.
47725 (grub_efi_file_path_device_path_t): New type.
47726 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
47727 (struct grub_efi_protocol_device_path): New structure.
47728 (grub_efi_protocol_device_path_t): New type.
47729 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
47730 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
47731 (struct grub_efi_bios_device_path): New structure.
47732 (grub_efi_bios_device_path_t): New type.
47733 (struct grub_efi_disk_io): New structure.
47734 (grub_efi_disk_io_t): New type.
47735 (struct grub_efi_block_io_media): New structure.
47736 (grub_efi_block_io_media_t): New type.
47737 (struct grub_efi_block_io): New structure.
47738 (grub_efi_block_io_t): New type.
47739
47740 * include/grub/misc.h (grub_stop): Removed.
47741 (grub_exit): New prototype.
47742 (grub_abort): Likewise.
47743
47744 * include/grub/disk.h (enum grub_disk_dev_id): Added
47745 GRUB_DISK_DEVICE_EFIDISK_ID.
47746
47747 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
47748 disk/efi/efidisk.c.
47749 (kernel_syms.lst): Remove the target if an error occurs.
47750
49986a9f 477512006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
47752
47753 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
47754 as it was simply too buggy.
47755
970d3b8a 477562006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
47757
47758 * kern/misc.c (grub_lltoa): New function.
47759 (grub_vsprintf): Added support for the long long suffix,
47760 i.e. "ll".
47761
ff04ec24 477622006-04-20 Hollis Blanchard <hollis@penguinppc.org>
47763
47764 * Makefile.in (LDFLAGS): Add variable.
47765 (LD): Remove variable.
47766 * configure.ac: Add -m32 to LDFLAGS.
47767 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47768 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47769 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47770 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47771 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47772 variables.
47773 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47774 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47775 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47776
37e5e1a4 477772006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47778
47779 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47780 length for unknown glyph.
47781
c352d8dd 477822006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47783
2eab1c0d 47784 Add support for pre-loaded modules into the EFI port.
f19dbdb7 47785
2eab1c0d 47786 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47787 completely. Accept one more argument DIR. The caller has changed.
47788
47789 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47790
47791 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47792 (grub_efi_loaded_image_guid): New variable.
47793 (grub_efi_get_loaded_image): New function.
47794 (grub_arch_modules_addr): Likewise.
47795
47796 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47797 prototype.
47798
47799 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47800 (struct grub_efi_loaded_image): New structure.
47801 (grub_efi_loaded_image_t): New type.
47802
478032006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47804
c352d8dd 47805 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47806 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47807 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47808
6d01d6b4 478092006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47810
47811 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47812
976a4ea0 478132006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47814
47815 * DISTLIST: Added include/grub/efi/console.h,
47816 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47817 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47818
47819 * include/grub/efi/console.h: New file.
47820 * include/grub/efi/time.h: Likewise.
47821 * include/grub/i386/efi/kernel.h: Likewise.
47822 * kern/efi/init.c: Likewise.
47823 * kern/efi/mm.c: Likewise.
47824 * term/efi/console.c: Likewise.
f19dbdb7 47825
976a4ea0 47826 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47827 (grub_stop): Removed.
47828 (grub_get_rtc): Likewise.
47829 (grub_machine_init): Simply call grub_efi_init.
47830 (grub_machine_fini): Call grub_efi_fini.
47831
47832 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47833 (grub_efi_output_string): Removed.
47834 (grub_efi_stall): New function.
47835 (grub_stop): Likewise.
47836 (grub_get_rtc): Likewise.
47837
47838 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47839 (grub_efi_stall): New prototype.
47840 (grub_efi_allocate_pages): Likewise.
47841 (grub_efi_free_pages): Likewise.
47842 (grub_efi_get_memory_map): Likewise.
47843 (grub_efi_mm_init): Likewise.
47844 (grub_efi_mm_fini): Likewise.
47845 (grub_efi_init): Likewise.
47846 (grub_efi_fini): Likewise.
47847
47848 * include/grub/i386/efi/time.h: Do not include
47849 grub/symbol.h. Include grub/efi/time.h.
47850 (GRUB_TICKS_PER_SECOND): Removed.
47851 (grub_get_rtc): Likewise.
47852
47853 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47854 Added padding. The EFI spec is buggy.
47855 (GRUB_EFI_BLACK): New macro.
47856 (GRUB_EFI_BLUE): Likewise.
47857 (GRUB_EFI_GREEN): Likewise.
47858 (GRUB_EFI_CYAN): Likewise.
47859 (GRUB_EFI_RED): Likewise.
47860 (GRUB_EFI_MAGENTA): Likewise.
47861 (GRUB_EFI_BROWN): Likewise.
47862 (GRUB_EFI_LIGHTGRAY): Likewise.
47863 (GRUB_EFI_BRIGHT): Likewise.
47864 (GRUB_EFI_DARKGRAY): Likewise.
47865 (GRUB_EFI_LIGHTBLUE): Likewise.
47866 (GRUB_EFI_LIGHTGREEN): Likewise.
47867 (GRUB_EFI_LIGHTCYAN): Likewise.
47868 (GRUB_EFI_LIGHTRED): Likewise.
47869 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47870 (GRUB_EFI_YELLOW): Likewise.
47871 (GRUB_EFI_WHITE): Likewise.
47872 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47873 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47874 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47875 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47876 (GRUB_EFI_BACKGROUND_RED): Likewise.
47877 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47878 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47879 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47880 (GRUB_EFI_TEXT_ATTR): Likewise.
47881
47882 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47883 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47884 (kernel_mod_HEADERS): Added efi/time.h.
47885
83709125 478862006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47887
47888 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47889 include/grub/efi/api.h, include/grub/efi/console_control.h,
47890 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47891 include/grub/i386/efi/time.h, kern/efi/efi.c,
47892 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47893 and util/i386/efi/grub-mkimage.c.
47894
47895 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47896
47897 * genmk.rb (PModule#rule): Do not export symbols if
47898 #{prefix}_EXPORTS is set to "no".
47899
47900 * conf/i386-efi.mk: New file.
47901 * conf/i386-efi.rmk: Likewise.
47902 * include/grub/efi/api.h: Likewise.
47903 * include/grub/efi/console_control.h: Likewise.
47904 * include/grub/efi/efi.h: Likewise.
47905 * include/grub/efi/pe32.h: Likewise.
47906 * include/grub/i386/efi/time.h: Likewise.
47907 * kern/efi/efi.c: Likewise.
47908 * kern/i386/efi/init.c: Likewise.
47909 * kern/i386/efi/startup.S: Likewise.
47910 * util/i386/efi/grub-mkimage.c: Likewise.
47911
479122006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 47913
47914 * include/grub/script.h: Include <grub/parser.h> and
47915 "grub_script.tab.h".
47916 (struct grub_lexer_param): New struct.
47917 (struct grub_parser_param): Likewise.
47918 (grub_script_create_arglist): Pass the state in an argument.
47919 (grub_script_add_arglist): Likewise.
47920 (grub_script_create_cmdline): Likewise.
47921 (grub_script_create_cmdblock): Likewise.
47922 (grub_script_create_cmdif): Likewise.
47923 (grub_script_create_cmdmenu): Likewise.
47924 (grub_script_add_cmd): Likewise.
47925 (grub_script_arg_add): Likewise.
47926 (grub_script_lexer_ref): Likewise.
47927 (grub_script_lexer_deref): Likewise.
47928 (grub_script_lexer_record_start): Likewise.
47929 (grub_script_lexer_record_stop): Likewise.
47930 (grub_script_mem_record): Likewise.
47931 (grub_script_mem_record_stop): Likewise.
47932 (grub_script_malloc): Likewise.
47933 (grub_script_yylex): Likewise.
47934 (grub_script_yyparse): Likewise.
47935 (grub_script_yyerror): Likewise.
47936 (grub_script_yylex): Likewise.
47937 (grub_script_lexer_init): Return the state.
47938
47939 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47940 (grub_script_lexer_done): Likewise.
47941 (grub_script_lexer_getline): Likewise.
47942 (grub_script_lexer_refs): Likewise.
47943 (script): Likewise.
47944 (newscript): Likewise.
47945 (record): Likewise.
47946 (recording): Likewise.
47947 (recordpos): Likewise.
47948 (recordlen): Likewise.
47949 (grub_script_lexer_init): Return the state instead of setting
47950 global variables.
47951 (grub_script_lexer_ref): Use the newly added argument for state
47952 instead of globals.
47953 (grub_script_lexer_deref): Likewise.
47954 (grub_script_lexer_record_start): Likewise.
47955 (grub_script_lexer_record_stop): Likewise.
47956 (recordchar): Likewise.
47957 (nextchar): Likewise.
47958 (grub_script_yylex2): Likewise.
47959 (grub_script_yylex): Likewise.
47960 (grub_script_yyerror): Likewise.
47961
47962 * normal/parser.y (func_mem): Removed variable.
47963 (menu_entry): Likewise.
47964 (err): Likewise.
47965 (%lex-param): New parser option.
47966 (%parse-param): Likewise.
47967 (script): Always return the AST.
47968 (argument): Pass the state around.
47969 (arguments): Likewise.
47970 (grubcmd): Likewise.
47971 (commands): Likewise.
47972 (function): Likewise.
47973 (menuentry): Likewise.
47974 (if_statement): Likewise.
47975 (if): Likewise.
47976
47977 * normal/script.c (grub_script_memused): Removed variable.
47978 (grub_script_parsed): Likewise.
47979 (grub_script_malloc): Added a state argument. Use that instead of
47980 global variables.
47981 (grub_script_mem_record): Likewise.
47982 (grub_script_mem_record_stop): Likewise.
47983 (grub_script_arg_add): Likewise.
47984 (grub_script_add_arglist): Likewise.
47985 (grub_script_create_cmdline): Likewise.
47986 (grub_script_create_cmdif): Likewise.
47987 (grub_script_create_cmdmenu): Likewise.
47988 (grub_script_add_cmd): Likewise.
47989 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 47990
e2a8c904 479912006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 47992
47993 * normal/command.c (grub_command_init): Remove the title command.
47994
47995 * normal/lexer.c (grub_script_yylex): Renamed from this...
47996 (grub_script_yylex2): ... to this.
47997 (grub_script_yylex): New function. Temporary
47998 introduced to filter some tokens.
47999 (grub_script_yyerror): Print a newline.
48000
48001 * normal/main.c (read_config_file): Output information about the
48002 lines that contain errors. Wait for a key after all lines have
48003 been processed. Don't return an empty menu.
48004
48005 * normal/parser.y (func_mem): Don't initialize.
48006 (menu_entry): Likewise.
48007 (err): New variable.
48008 (script): Don't return anything when an error was encountered.
48009 (ws, returns): Removed rules.
48010 (argument): Disabled concatenated variable support.
48011 (arguments): Remove explicit separators.
48012 (grubcmd): Likewise.
48013 (function): Likewise.
48014 (menuentry): Likewise.
48015 (if): Likewise.
48016 (commands): Likewise. Add error handling.
48017
48018 * normal/script.c (grub_script_create_cmdline): If
48019 `grub_script_parsed' is 0, assume the parser encountered an error.
48020
c9a86192 480212006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
48022
48023 * configure.ac: Add support for EFI. Fix the typo
48024 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
48025
70f3b243 480262006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
48027
48028 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
48029 foreign multibyte characters should be shown correctly.
48030
65f201ad 480312006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
48032
48033 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
48034 calculation.
48035 (read_config_file): Made it to close file before returning.
48036
b4b93674 480372006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
48038
48039 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
48040 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
48041 video/i386/pc/vbefill.c.
48042
48043 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
48044 video/i386/pc/vbefill.c.
48045
48046 * include/grub/video.h (grub_video_blit_format): New enum.
48047 (grub_video_mode_info): Added new member blit_format.
48048 (grub_video_get_blit_format): New function prototype.
48049
48050 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
48051 function prototype.
48052 (grub_video_vbe_map_rgb): Likewise.
48053 (grub_video_vbe_unmap_color): Likewise.
48054
48055 * include/grub/i386/pc/vbeblit.h: New file.
48056
48057 * include/grub/i386/pc/vbefill.h: New file.
48058
48059 * video/video.c (grub_video_get_blit_format): New function.
48060 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
48061 (grub_video_vbe_map_rgb): Likewise.
48062 (grub_video_vbe_unmap_color): Likewise.
48063
48064 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
48065 optimized fills.
48066 (grub_video_vbe_blit_render_target): Changed to use more optimized
48067 blits.
48068 (grub_video_vbe_setup): Added detection for optimized settings.
48069 (grub_video_vbe_create_render_target): Likewise.
48070
48071 * video/i386/pc/vbeblit.c: New file.
48072
48073 * video/i386/pc/vbefill.c: New file.
48074
c2379b9c 480752006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
48076
48077 * font/manager.c (grub_font_get_glyph): Removed font fixup from
48078 here...
48079
48080 * util/unifont2pff.rb: ... and moved it to here. Improved argument
48081 parsing to support both hex and dec ranges. If filename was missing
48082 show usage information.
48083
bd0d7896 480842006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
48085
48086 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
48087 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
48088
48089 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
48090 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
48091 (video_mod_SOURCES): Added.
48092 (video_mod_CFLAGS): Likewise.
48093 (video_mod_LDFLAGS): Likewise.
48094 (gfxterm_mod_SOURCES): Likewise.
48095 (gfxterm_mod_CFLAGS): Likewise.
48096 (gfxterm_mod_LDFLAGS): Likewise.
48097 (videotest_mod_SOURCES): Likewise.
48098 (videotest_mod_CFLAGS): Likewise.
48099 (videotest_mod_LDFLAGS): Likewise.
48100 (vesafb_mod_SOURCES): Removed.
48101 (vesafb_mod_CFLAGS): Likewise.
48102 (vesafb_mod_LDFLAGS): Likewise.
48103 (vga_mod_SOURCES): Likewise.
48104 (vga_mod_CFLAGS): Likewise.
48105 (vga_mod_LDFLAGS): Likewise.
48106
48107 * commands/videotest.c: New file.
48108
48109 * font/manager.c (fill_with_default_glyph): Modified to use
48110 grub_font_glyph.
48111 (grub_font_get_glyph): Likewise.
48112 (fontmanager): Renamed from this...
48113 (font_manager): ... to this.
48114
48115 * include/grub/font.h (grub_font_glyph): Added new structure.
48116 (grub_font_get_glyph): Modified to use grub_font_glyph.
48117
48118 * include/grub/misc.h (grub_abs): Added as inline function.
48119
48120 * include/grub/video.h: New file.
48121
48122 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
48123 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
48124 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
48125 (grub_vbe_get_controller_info): Renamed from this...
48126 (grub_vbe_bios_get_controller_info): ... to this.
48127 (grub_vbe_get_mode_info): Renamed from this...
48128 (grub_vbe_bios_get_mode_info): ... to this.
48129 (grub_vbe_set_mode): Renamed from this...
48130 (grub_vbe_bios_set_mode): ... to this.
48131 (grub_vbe_get_mode): Renamed from this...
48132 (grub_vbe_bios_get_mode): ... to this.
48133 (grub_vbe_set_memory_window): Renamed from this...
48134 (grub_vbe_bios_set_memory_window): ... to this.
48135 (grub_vbe_get_memory_window): Renamed from this...
48136 (grub_vbe_bios_get_memory_window): ... to this.
48137 (grub_vbe_set_scanline_length): Renamed from this...
48138 (grub_vbe_set_scanline_length): ... to this.
48139 (grub_vbe_get_scanline_length): Renamed from this...
48140 (grub_vbe_bios_get_scanline_length): ... to this.
48141 (grub_vbe_set_display_start): Renamed from this...
48142 (grub_vbe_bios_set_display_start): ... to this.
48143 (grub_vbe_get_display_start): Renamed from this...
48144 (grub_vbe_bios_get_display_start): ... to this.
48145 (grub_vbe_set_palette_data): Renamed from this...
48146 (grub_vbe_bios_set_palette_data): ... to this.
48147 (grub_vbe_set_pixel_rgb): Removed.
48148 (grub_vbe_set_pixel_index): Likewise.
48149
48150 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
48151 from this...
48152 (grub_vbe_bios_get_controller_info): ... to this.
48153 (grub_vbe_get_mode_info): Renamed from this...
48154 (grub_vbe_bios_get_mode_info): ... to this.
48155 (grub_vbe_set_mode): Renamed from this...
48156 (grub_vbe_bios_set_mode): ... to this.
48157 (grub_vbe_get_mode): Renamed from this...
48158 (grub_vbe_bios_get_mode): ... to this.
48159 (grub_vbe_set_memory_window): Renamed from this...
48160 (grub_vbe_bios_set_memory_window): ... to this.
48161 (grub_vbe_get_memory_window): Renamed from this...
48162 (grub_vbe_bios_get_memory_window): ... to this.
48163 (grub_vbe_set_scanline_length): Renamed from this...
48164 (grub_vbe_set_scanline_length): ... to this.
48165 (grub_vbe_get_scanline_length): Renamed from this...
48166 (grub_vbe_bios_get_scanline_length): ... to this.
48167 (grub_vbe_set_display_start): Renamed from this...
48168 (grub_vbe_bios_set_display_start): ... to this.
48169 (grub_vbe_get_display_start): Renamed from this...
48170 (grub_vbe_bios_get_display_start): ... to this.
48171 (grub_vbe_set_palette_data): Renamed from this...
48172 (grub_vbe_bios_set_palette_data): ... to this.
48173 (grub_vbe_bios_get_controller_info): Fixed problem with registers
48174 getting corrupted after calling it. Added more pushes and pops.
48175 (grub_vbe_bios_set_mode): Likewise.
48176 (grub_vbe_bios_get_mode): Likewise.
48177 (grub_vbe_bios_get_memory_window): Likewise.
48178 (grub_vbe_bios_set_scanline_length): Likewise.
48179 (grub_vbe_bios_get_scanline_length): Likewise.
48180 (grub_vbe_bios_get_display_start): Likewise.
48181 (grub_vbe_bios_set_palette_data): Likewise.
48182
48183 * normal/cmdline.c (cl_set_pos): Refresh the screen.
48184 (cl_insert): Likewise.
48185 (cl_delete): Likewise.
48186
48187 * term/gfxterm.c: New file.
48188
48189 * term/i386/pc/vesafb.c: Removed file.
48190
48191 * video/video.c: New file.
48192
48193 * video/i386/pc/vbe.c (real2pm): Added new function.
48194 (grub_video_vbe_draw_pixel): Likewise.
48195 (grub_video_vbe_get_video_ptr): Likewise.
48196 (grub_video_vbe_get_pixel): Likewise
48197 (grub_video_vbe_init): Likewise.
48198 (grub_video_vbe_fini): Likewise.
48199 (grub_video_vbe_setup): Likewise.
48200 (grub_video_vbe_get_info): Likewise.
48201 (grub_video_vbe_set_palette): Likewise.
48202 (grub_video_vbe_get_palette): Likewise.
48203 (grub_video_vbe_set_viewport): Likewise.
48204 (grub_video_vbe_get_viewport): Likewise.
48205 (grub_video_vbe_map_color): Likewise.
48206 (grub_video_vbe_map_rgb): Likewise.
48207 (grub_video_vbe_map_rgba): Likewise.
48208 (grub_video_vbe_unmap_color): Likewise.
48209 (grub_video_vbe_fill_rect): Likewise.
48210 (grub_video_vbe_blit_glyph): Likewise.
48211 (grub_video_vbe_blit_bitmap): Likewise.
48212 (grub_video_vbe_blit_render_target): Likewise.
48213 (grub_video_vbe_scroll): Likewise.
48214 (grub_video_vbe_swap_buffers): Likewise.
48215 (grub_video_vbe_create_render_target): Likewise.
48216 (grub_video_vbe_delete_render_target): Likewise.
48217 (grub_video_vbe_set_active_render_target): Likewise.
48218 (grub_vbe_set_pixel_rgb): Remove function.
48219 (grub_vbe_set_pixel_index): Likewise.
48220 (index_color_mode): Remove static variable.
48221 (active_mode): Likewise.
48222 (framebuffer): Likewise.
48223 (bytes_per_scan_line): Likewise.
48224 (grub_video_vbe_adapter): Added new static variable.
48225 (framebuffer): Likewise.
48226 (render_target): Likewise.
48227 (initial_mode): Likewise.
48228 (mode_in_use): Likewise.
48229 (mode_list): Likewise.
48230
5f97350b 482312006-03-10 Marco Gerards <marco@gnu.org>
48232
48233 * configure.ac (AC_INIT): Bumped to 1.93.
48234
48235 * DISTLIST: Added `include/grub/hfs.h'.
48236
a3c5c6f8 482372006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
48238
48239 * boot/i386/pc/boot.S (general_error): Before looping, try INT
48240 18H, which might help the BIOS falling back to next boot media.
48241
6de53d26 482422006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
48243
48244 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
48245 Poe Chen <poe.poechen@gmail.com>.
48246
77c4a393 482472006-01-17 Marco Gerards <marco@gnu.org>
48248
48249 * include/grub/normal.h: Include <grub/script.h>.
48250 (grub_command_list): Removed struct.
48251 (grub_command_list_t): Removed type.
48252 (grub_menu_entry): Remove members `num' and `command_list'. Add
48253 members `commands' and `sourcecode'.
48254 * include/grub/script.h: Add inclusion guards.
48255 (grub_script_cmd_menuentry): New struct.
48256 (grub_script_execute_menuentry): New prototype.
48257 (grub_script_lexer_record_start): Likewise.
48258 (grub_script_lexer_record_stop): Likewise.
48259 * normal/execute.c (grub_script_execute_menuentry): New function.
48260 * normal/lexer.c (record, recording, recordpos, recordlen): New
48261 variables.
48262 (grub_script_lexer_record_start): New function.
48263 (grub_script_lexer_record_stop): Likewise.
48264 (recordchar): Likewise.
48265 (nextchar): Likewise.
48266 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
48267 2048 as the buffer size. Add the tokens `menuentry' and `@'.
48268 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
48269 (current_menu): New variable.
48270 (free_menu): Mainly rewritten.
48271 (grub_normal_menu_addentry): New function.
48272 (read_config_file): Rewritten.
48273 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 48274 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 48275 the menu entry.
48276 (run): Mainly rewritten.
48277 * normal/parser.y (menu_entry): New variable.
48278 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
48279 (menuentry): New rule.
48280 (command): Add `menuentry'.
48281 (if_statement): Allow additional returns before `fi'.
48282 * normal/script.c (grub_script_create_cmdmenu): New function.
48283
144f1f98 482842006-01-03 Marco Gerards <marco@gnu.org>
48285
48286 * INSTALL: GNU Bison is required.
48287 * configure.ac: Rewritten the test to detect Bison.
48288 * Makefile.in (YACC): New variable. Reported by Xun Sun
48289 <xun.sun.cn@gmail.com>.
48290
af4b2d89 482912006-01-03 Marco Gerards <marco@gnu.org>
48292
48293 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
48294 the HFS+ filesystem to filesystem blocks.
48295 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
48296 GCC warning is silenced.
48297
15643b71 482982006-01-03 Marco Gerards <marco@gnu.org>
48299
48300 * partmap/apple.c (apple_partition_map_iterate): Convert the data
48301 read from disk from big endian to host byte order.
48302
00905879 483032006-01-03 Hollis Blanchard <hollis@penguinppc.org>
48304
48305 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
48306 documentation.
48307 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
48308 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
48309 embedded HFS+ filesystem.
48310 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
48311 (grub_hfs_sblock): Move from here...
48312 * include/grub/hfs.h: To here... New file.
48313 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
48314 documentation.
48315 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
48316 New macros.
48317 (grub_hfsplus_volheader): Change type of member `magic' to
48318 `grub_uint16_t'.
48319 (grub_hfsplus_data): Add new member `embedded_offset'.
48320 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
48321 returned block.
48322 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
48323 Calculate the offset.
48324
8899bc3e 483252005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48326
48327 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
48328 Removed.
48329 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
48330
ae8c0277 483312005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48332
48333 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
48334 ENV->NAME is NULL after allocating ENV->VALUE.
48335
07084456 483362005-12-25 Marco Gerards <marco@gnu.org>
48337
48338 * kern/env.c (grub_env_set): Rewritten the error handling code.
48339
4750f5f1 483402005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48341
48342 * geninit.sh: Made more robust, and more portable.
48343
50214199 483442005-12-25 Marco Gerards <marco@gnu.org>
48345
48346 Add support for Apple HFS+ filesystems.
f19dbdb7 48347
50214199 48348 * fs/hfsplus.c: New file.
48349
48350 * DISTLIST: Added `fs/hfsplus.c'.
48351
48352 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
48353 (hfsplus_mod_SOURCES): New variable.
48354 (hfsplus_mod_CFLAGS): Likewise.
48355 (hfsplus_mod_LDFLAGS): Likewise.
48356 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
48357 (grub_setup_SOURCES): Likewise.
48358 (grub_mkdevicemap_SOURCES): Likewise.
48359 (grub_emu_SOURCES): Likewise.
48360 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48361
48362 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
48363
48364 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
48365
befaed6c 483662005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48367
48368 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
48369 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
48370 include/grub/parser.h, include/grub/script.h, kern/parser.c,
48371 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
48372 normal/lexer.c, normal/parser.y, normal/script.c, and
48373 partmap/gpt.c.
48374 Removed kern/sparc64/cache.c.
48375
48376 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
48377 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
48378 grub_emu_init.c.
48379
48380 * configure.ac (AC_INIT): Bumped to 1.92.
48381
6a124103 483822005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
48383
48384 * kern/err.c (grub_error_push): Added new function to support error
48385 stacks.
48386 (grub_error_pop): Likewise.
48387 (grub_error_stack_items): New local variable to support error stacks.
48388 (grub_error_stack_pos): Likewise.
48389 (grub_error_stack_assert): Likewise.
48390 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
48391 stack depth.
48392 (grub_print_error): Added support to print errors from error stack.
48393
48394 * include/grub/err.h (grub_error_push): Added function prototype.
48395 (grub_error_pop): Likewise.
48396
be973c1b 483972005-12-09 Hollis Blanchard <hollis@penguinppc.org>
48398
48399 * configure.ac: Accept `powerpc64' as host_cpu.
48400 (amd64): Rename to `biarch32'.
48401
48402 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
48403 non-cacheline-aligned addresses.
48404
48405 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
48406 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
48407 if `size' is non-zero.
48408
b04216ab 484092005-12-03 Marco Gerards <mgerards@xs4all.nl>
48410
48411 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
48412 and `cd' to make sure the filename is not prefixed with a
48413 directory name.
48414 (pkgdata_MODULES): Add `gpt.mod'.
48415 (gpt_mod_SOURCES): New variable.
48416 (gpt_mod_CFLAGS): Likewise.
48417 (gpt_mod_LDFLAGS): Likewise.
48418
48419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
48420
48421 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
48422 New macro.
48423
48424 * partmap/gpt.c: New file.
48425
48426 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
48427 GPT partition map is detected.
48428
41730ed9 484292005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
48430
48431 * commands/i386/pc/play.c: New file.
48432 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
48433 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
48434 macros.
f19dbdb7 48435
95dc3643 484362005-11-27 Marco Gerards <mgerards@xs4all.nl>
48437
48438 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
48439 ((unused))' to silence gcc warning.
48440
1569ec51 484412005-11-26 Hollis Blanchard <hollis@penguinppc.org>
48442
48443 * configure.ac: Correct `AC_PROG_YACC' test.
48444
9abde152 484452005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48446
48447 * util/powerpc/ieee1275/grub-install.in: Run the mount point
48448 check before installing files.
48449
44b83271 484502005-11-22 Mike Small <smallm@panix.com>
48451
48452 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
48453 number regex so multidigit numbers are recognized correctly.
48454
484552005-11-22 Mike Small <smallm@panix.com>
48456
48457 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
48458 debugging message before attempting to claim memory.
48459 (grub_rescue_cmd_initrd): Add a claim debugging message and try
48460 multiple addresses in case of failure.
48461
9c12956b 484622005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48463
48464 * term/tparm.c (get_space): Remove empty `if' statement.
48465
48466 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
48467
48468 * kern/parser.c (check_varstate): Rename `state' to 's'.
48469
aeaf81d9 484702005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48471
48472 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
48473 variable definitions to the beginning of each function. Sort stack
48474 variables by size.
48475 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
48476 `buf' argument to `char *'.
48477
79bbb63f 484782005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48479
48480 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
48481 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48482 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 48483 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48484 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48485 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48486 configfile.mod, search.mod, gzio.mod and test.mod.
48487 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48488 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48489 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48490 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48491 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48492 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48493 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48494 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48495 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48496 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48497 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48498 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48499 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48500 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48501 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48502 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48503 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48504 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48505 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48506 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48507 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48508 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48509 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
48510
48511 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
48512 `grep --include'.
48513 (pkgdata_MODULES): Add test.mod.
48514
233b1628 485152005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48516
48517 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
48518 appending to variables with "+=".
48519 (PModule): Use full pathname to generate *.lst filenames.
48520
48521 * Makefile.in: Fixed list rules moved from genmk.rb.
48522 (.DELETE_ON_ERROR): New special target.
48523 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
48524
48525 * conf/i386-pc.rmk: Include conf/common.mk.
48526 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48527 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 48528 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48529 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48530 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48531 configfile.mod, search.mod, gzio.mod and test.mod.
48532 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48533 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48534 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48535 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48536 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48537 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48538 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48539 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48540 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48541 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48542 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48543 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48544 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48545 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48546 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48547 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48548 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48549 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48550 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48551 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48552 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48553 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48554 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
48555 here...
48556 * conf/common.rmk: ... to here. New file.
48557
48558 * conf/common.mk: New file.
48559
16f820c8 485602005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
48561
48562 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
48563 (grub_script.tab.c): ... here.
48564
48565 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
48566 (grub_script.tab.c): ... here.
48567
48568 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
48569 (grub_script.tab.c): ... here.
48570
48571 * normal/command.c (grub_command_find): Fixed a memory leak of
48572 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
48573
63ba1554 485742005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48575
48576 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
48577 "@" which marks the start of a comment on ARM.
48578 (VARIABLE): Likewise.
48579
7f67dc13 485802005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48581
79bbb63f 48582 Add support for Linux/ADFS partition tables.
7f67dc13 48583
48584 * partmap/acorn.c: New file.
48585
48586 * include/grub/acorn_filecore.h: Likewise.
48587
48588 * DISTLIST: Added `partmap/acorn.c' and
48589 `include/grub/acorn_filecore.h'.
f19dbdb7 48590
7f67dc13 48591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48592 `partmap/acorn.c'.
48593 (pkgdata_MODULES): Add `acorn.mod'.
48594 (acorn_mod_SOURCES): New variable.
48595 (acorn_mod_CFLAGS): Likewise.
48596
48597 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48598 `partmap/acorn.c'.
48599 (pkgdata_MODULES): Add `acorn.mod'.
48600 (acorn_mod_SOURCES): New variable.
48601 (acorn_mod_CFLAGS): Likewise.
48602
48603 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
48604 (pkgdata_MODULES): Add `acorn.mod'.
48605 (acorn_mod_SOURCES): New variable.
48606 (acorn_mod_CFLAGS): Likewise.
48607 (acorn_mod_LDFLAGS): Likewise.
48608
48609 * include/types.h (grub_disk_addr_t): New typedef.
48610
6d099807 486112005-11-13 Marco Gerards <mgerards@xs4all.nl>
48612
48613 * geninit.sh: New file.
48614
48615 * geninitheader.sh: Likewise.
48616
48617 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
48618 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
48619 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
48620 * commands/configfile.c (grub_configfile_init)
48621 (grub_configfile_fini): Likewise.
48622 * commands/default.c (grub_default_init, grub_default_fini):
48623 Likewise.
48624 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
48625 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
48626 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
48627 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
48628 Likewise.
48629 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
48630 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
48631 Likewise.
48632 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 48633 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 48634 Likewise.
48635 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
48636 Likewise.
fe6b695a 48637 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 48638 Likewise.
48639 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
48640 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
48641 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
48642 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
48643 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
48644 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
48645 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
48646 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
48647 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
48648 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
48649 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
48650 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
48651 * partmap/amiga.c (grub_amiga_partition_map_init)
48652 (grub_amiga_partition_map_fini): Likewise.
48653 * partmap/apple.c (grub_apple_partition_map_init)
48654 (grub_apple_partition_map_fini): Likewise.
48655 * partmap/pc.c (grub_pc_partition_map_init)
48656 (grub_pc_partition_map_fini): Likewise.
48657 * partmap/sun.c (grub_sun_partition_map_init,
48658 grub_sun_partition_map_fini): Likewise.
48659 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
48660 Likewise.
48661
48662 * util/grub-emu.c: Include <grub_modules_init.h>.
48663 (main): Don't initialize and de-initialize any modules directly,
48664 use `grub_init_all' and `grub_fini_all' instead.
48665
48666 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
48667 `grub_vesafb_mod_init'.
48668 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
48669 all users.
48670 * term/i386/pc/vga.c (grub_vga_init): Renamed to
48671 `grub_vga_mod_init'. Updated all users.
48672 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 48673
6d099807 48674 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
48675 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
48676 rules.
48677
48678 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
48679 Generate a function to initialize the module in utilities.
48680 Updated all callers.
48681 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
48682 initialize the module in utilities. Updated all callers.
48683
9046bcf0 486842005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48685
48686 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
48687 escape sequence and a literal ^L to clear the screen.
48688
48689 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
48690 when returning from Open Firmware.
48691
d13ea639 486922005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48693
48694 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
48695 (grub_ofconsole_height): Likewise.
48696 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
48697 manually insert a '\n'.
48698 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
48699 `grub_ofconsole_height'. Return early if these are already set.
48700
a8fcf206 487012005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
48702
48703 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48704 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
48705 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
48706 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
48707 and `normal/script.c'.
48708 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48709 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48710 (test_mod_SOURCES): New variable.
48711 (test_mod_CFLAGS): Likewise.
48712 (test_mod_LDFLAGS): Likewise.
48713 (pkgdata_MODULES): Add `test.mod'.
48714 (grub_script.tab.c): New rule.
48715 (grub_script.tab.h): Likewise.
48716
b6b32745 487172005-11-07 Marco Gerards <mgerards@xs4all.nl>
48718
48719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48720 `commands/test.c', `normal/execute.c', `normal/lexer.c',
48721 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48722 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48723 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48724 (test_mod_SOURCES): New variable.
48725 (test_mod_CFLAGS): Likewise.
48726 (pkgdata_MODULES): Add `test.mod'.
48727 (grub_script.tab.c): New rule.
48728 (grub_script.tab.h): Likewise.
48729
daac212a 487302005-11-06 Marco Gerards <mgerards@xs4all.nl>
48731
48732 Add initial scripting support.
48733
48734 * commands/test.c: New file.
48735 * include/grub/script.h: Likewise.
48736 * normal/execute.c: Likewise.
48737 * normal/function.c: Likewise.
48738 * normal/lexer.c: Likewise.
48739 * normal/parser.y: Likewise.
48740 * normal/script.c: Likewise.
48741
48742 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 48743
daac212a 48744 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
48745 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
48746 `normal/function.c' and `normal/script.c'.
48747 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48748 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 48749 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
48750 variables.
daac212a 48751 (pkgdata_MODULES): Add `test.mod'.
48752 (grub_script.tab.c): New rule.
48753 (grub_script.tab.h): Likewise.
48754
48755 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
48756
48757 * include/grub/normal.h (grub_test_init): New prototype.
48758 (grub_test_fini): Likewise.
f19dbdb7 48759
daac212a 48760 * normal/command.c: Include <grub/script.h>.
48761 (grub_command_execute): Rewritten.
f19dbdb7 48762
daac212a 48763 * util/grub-emu.c (main): Call `grub_test_init' and
48764 `grub_test_fini'.
48765
77500b2b 487662005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48767
48768 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48769 to 0.
48770 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48771 there are no pending characters.
48772
e45deb9e 487732005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48774
48775 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48776 `grub_strndup' to drop device arguments. Replace unnecessary
48777 `grub_strndup' with `grub_strdup'.
48778
4ce32619 487792005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48780
48781 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48782 `debug' environment variable has been set.
48783
487842005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 48785
4ce32619 48786 * Makefile.in (install-local): Use $(DATA).
48787 (uninstall): Likewise.
48788 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48789 (sbin_UTILITIES): ... to here.
48790 (sbin_SCRIPTS): New variable.
48791 (grub_install_SOURCES): New variable.
48792 * util/powerpc/ieee1275/grub-install.in: New file.
48793 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48794 variable.
48795 (add_segments): Call `grub_util_get_path'.
48796
25fe6f03 487972005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48798
48799 From Timothy Baldwin:
48800 * commands/ls.c (grub_ls_list_files): Close FILE with
48801 grub_file_close.
48802 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48803
04ccf3ec 488042005-10-24 Marco Gerards <mgerards@xs4all.nl>
48805
48806 * include/grub/parser.h: New file.
48807
48808 * kern/parser.c: Likewise.
48809
48810 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48811 (grub_setup_SOURCES): Likewise.
48812 (grub_probefs_SOURCES): Likewise.
48813 (grub_emu_SOURCES): Likewise.
48814 (kernel_img_HEADERS): Add `parser.h'.
48815
48816 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48817 (grub_emu_SOURCES): Add `kern/parser.c'.
48818 (grubof_SOURCES): Likewise.
48819
48820 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48821 (grubof_SOURCES): Add `kern/parser.c'.
48822
48823 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48824
48825 * kern/misc.c (grub_split_cmdline): Removed function.
48826
48827 * kern/rescue.c: Include <grub/parser.h>.
48828 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48829 of `grub_split_cmdline'.
48830
48831 * normal/command.c: Include <grub/parser.h>.
48832 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48833 of `grub_split_cmdline'.
48834
48835 * normal/completion.c: Include <grub/parser.h>.
48836 (cmdline_state): New variable.
48837 (iterate_dir): End the filename with a quote depending on the
48838 command line state.
48839 (get_state): new function.
48840 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48841 split the arguments and determine the current argument. When the
48842 argument string is not quoted, escape all spaces.
48843
6d8f4b0e 488442005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48845
48846 * normal/sparc64/setjmp.S: New file.
48847
15cf03ed 488482005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48849
48850 * include/grub/sparc64/libgcc.h: New file.
48851 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48852 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48853 normal/sparc64/setjmp.c.
48854
03e8661a 488552005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48856
48857 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48858 * kern/sparc64/cache.S: New file.
48859 * kern/sparc64/cache.c: Removed.
48860 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48861 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48862 -mtune=ultrasparc.
48863 (COMMON_LDFLAGS): Add -melf64_sparc.
48864 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48865 (grubof_SOURCES): Use cache.S instead of cache.c.
48866 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48867 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48868 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48869 commented though.
48870 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48871 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48872 (linux_mod_CFLAGS): Commented out.
48873 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48874 out because module isn't built.
48875 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48876 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48877 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48878 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48879 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48880 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48881 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48882 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48883 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48884 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48885 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48886 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48887 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48888 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48889
34eeec8a 488902005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48891
48892 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48893 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48894 longer, because HFS should not be used on PC.
48895
708367a3 488962005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48897
48898 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48899 consistently within the loop.
48900
6fa1251a 489012005-10-15 Marco Gerards <mgerards@xs4all.nl>
48902
48903 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48904 directory can not be read.
48905
4801580b 489062005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48907
48908 * configure.ac (AC_INIT): Increase the version number to 1.91.
48909
48910 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48911 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48912 term/i386/pc/serial.c.
48913
219ad426 489142005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48915
48916 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48917 file size must be permitted.
48918
48919 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48920 between %ah and %al.
48921
688e5699 489222005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48923
48924 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48925 grub_uint64_t.
48926 Call the hook with a NUL-terminated filename.
48927 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48928 grub_cpu_to_be32.
48929
48930 * kern/term.c (cursor_state): New variable.
48931 (grub_term_set_current): Reset the cursor state on a new
48932 terminal.
48933 (grub_setcursor): Rewritten to use CURSOR_STATE.
48934 (grub_getcursor): New function.
48935
48936 * include/grub/term.h (grub_getcursor): New prototype.
48937
48938 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48939 integers on ARM. Reported by Timothy Baldwin
48940 <T.E.Baldwin99@members.leeds.ac.uk>.
48941
bb34586c 489422005-10-11 Marco Gerards <mgerards@xs4all.nl>
48943
48944 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48945 allocated.
48946 (grub_sfs_dir): Likewise.
48947
9a909877 489482005-10-09 Marco Gerards <mgerards@xs4all.nl>
48949
48950 Add support for the SFS filesystem.
48951
48952 * fs/sfs.c: New file.
48953
48954 * DISTLIST: Added `fs/sfs.c'.
48955
48956 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48957 (grub_probefs_SOURCES): Likewise.
48958 (grub_emu_SOURCES): Likewise.
48959 (pkgdata_MODULES): Add `sfs.mod'.
48960 (sfs_mod_SOURCES): New variable.
48961 (sfs_mod_CFLAGS): Likewise.
48962 (sfs_mod_LDFLAGS): Likewise.
48963
48964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48965 (pkgdata_MODULES): Add `sfs.mod'.
48966 (sfs_mod_SOURCES): New variable.
48967 (sfs_mod_CFLAGS): Likewise.
48968
48969 * util/grub-emu.c (main): Call `grub_sfs_init' and
48970 `grub_sfs_fini'.
48971
48972 * include/grub/fs.h (grub_sfs_init): New prototype.
48973 (grub_sfs_fini): Likewise.
48974
57bdbde3 489752005-10-07 Marco Gerards <mgerards@xs4all.nl>
48976
48977 Add support for the AFFS filesystem.
48978
48979 * fs/affs.c: New file.
48980
48981 * DISTLIST: Added `fs/affs.c'.
48982
48983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48984 (grub_probefs_SOURCES): Likewise.
48985 (grub_emu_SOURCES): Likewise.
48986 (pkgdata_MODULES): Add `affs.mod'.
48987 (affs_mod_SOURCES): New variable.
48988 (affs_mod_CFLAGS): Likewise.
48989 (affs_mod_LDFLAGS): Likewise.
48990
48991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48992 (pkgdata_MODULES): Add `affs.mod'.
48993 (affs_mod_SOURCES): New variable.
48994 (affs_mod_CFLAGS): Likewise.
48995
48996 * util/grub-emu.c (main): Call `grub_affs_init' and
48997 `grub_affs_fini'.
48998
48999 * include/grub/fs.h (grub_affs_init): New prototype.
49000 (grub_affs_fini): Likewise.
49001
047b67e0 490022005-10-01 Marco Gerards <mgerards@xs4all.nl>
49003
49004 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
49005
59b8208a 490062005-10-01 Marco Gerards <mgerards@xs4all.nl>
49007
49008 * configure.ac: Accept `x86_64' as host_cpu. In that case add
49009 `-m32' to CFLAGS.
49010
49011 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
49012 linking.
f19dbdb7 49013
59b8208a 49014 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
49015 (COMMON_LDFLAGS): New variable.
49016 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
49017 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
49018 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
49019 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
49020 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
49021 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
49022 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
49023 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
49024 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
49025 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
49026 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
49027 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
49028 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
49029 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
49030 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
49031 variables.
49032 (normal_mod_ASFLAGS): Add `-m32'.
49033
49034 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
49035 (grub_host_size_t, grub_host_ssize_t): New types.
49036 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 49037 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 49038 `GRUB_HOST_SIZEOF_VOID_P'.
49039
49040 * include/grub/kernel.h (struct grub_module_header): Type of
49041 member offset changed to `grub_host_off_t'. Type of member size
49042 changed to `grub_host_size_t'.
49043 (struct grub_module_info): Type of member offset changed to
49044 `grub_host_off_t'. Type of member size changed to
49045 `grub_host_size_t'.
49046
b4093103 490472005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
49048
49049 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 49050
b4093103 49051 * kern/i386/pc/startup.S (multiboot_header): New label.
49052 (multiboot_entry): Likewise.
49053 (multiboot_trampoline): Likewise.
49054
49055 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49056 Increased to 0x4A0.
49057
49058 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
49059 put parentheses after a question mark.
49060 [!GRUB_UTIL] (my_mod): New variable.
49061
49062 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
49063
b2499b29 490642005-09-28 Marco Gerards <mgerards@xs4all.nl>
49065
49066 Adds support for the XFS filesystem. Btrees are not supported
49067 yet.
49068
49069 * fs/xfs.c: New file.
49070
49071 * DISTLIST: Added `fs/xfs.c'.
49072
49073 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
49074 (grub_probefs_SOURCES): Likewise.
49075 (grub_emu_SOURCES): Likewise.
49076 (pkgdata_MODULES): Add `xfs.mod'.
49077 (xfs_mod_SOURCES): New variable.
49078 (xfs_mod_CFLAGS): Likewise.
49079
49080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
49081 (pkgdata_MODULES): Add `xfs.mod'.
49082 (xfs_mod_SOURCES): New variable.
49083 (xfs_mod_CFLAGS): Likewise.
49084
49085 * util/grub-emu.c (main): Call `grub_xfs_init' and
49086 `grub_xfs_fini'.
49087
49088 * include/grub/fs.h (grub_xfs_init): New prototype.
49089 (grub_xfs_fini): Likewise.
49090
f19dbdb7 49091
83d37a62 490922005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
49093
49094 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
49095 color modes, allow greater than 16 colors to be configured as
49096 a default palette.
49097
47d2d65e 490982005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
49099
49100 * normal/completion.c (complete_arguments): Add the qualifier
49101 const into OPTIONS.
49102
49103 From Omniflux <omniflux+lists@omniflux.com>:
49104 * include/grub/terminfo.h: New file.
49105 * include/grub/tparm.h: Likewise.
49106 * include/grub/i386/pc/serial.h: Likewise.
49107 * term/terminfo.c: Likewise.
49108 * term/tparm.c: Likewise.
49109 * term/i386/pc/serial.c: Likewise.
49110 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
49111 serial.mod.
49112 (terminfo_mod_SOURCES): New variable.
49113 (terminfo_mod_CFLAGS): Likewise.
49114 (serial_mod_SOURCES): Likewise.
49115 (serial_mod_CFLAGS): Likewise.
49116
48b671ff 491172005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
49118
49119 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
49120 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
49121 and kern/powerpc/ieee1275/cmain.c, respectively.
49122
49123 * boot/powerpc/ieee1275/crt0.S: Moved to ...
49124 * kern/powerpc/ieee1275/crt0.S: ... here.
49125
49126 * boot/powerpc/ieee1275/cmain.c: Moved to ...
49127 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 49128
48b671ff 49129 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
49130 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
49131 instead of boot/powerpc/ieee1275/crt0.S and
49132 boot/powerpc/ieee1275/cmain.c, respectively.
49133
49134 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
49135 sectors. It was not used anyway.
49136
09fc77a7 491372005-08-30 Hollis Blanchard <hollis@penguinppc.org>
49138
49139 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
49140 `unused parameter' warning.
49141
003789c7 491422005-08-30 Hollis Blanchard <hollis@penguinppc.org>
49143
49144 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
49145 function.
49146 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
49147 getcharwidth.
49148
67f44c86 491492005-08-28 Marco Gerards <metgerards@student.han.nl>
49150
49151 * include/grub/normal.h (enum grub_completion_type): Added
49152 `GRUB_COMPLETION_TYPE_ARGUMENT'.
49153
49154 * normal/cmdline.c (print_completion): Handle
49155 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
49156 * normal/menu_entry.c (store_completion): Likewise.
49157
49158 * normal/completion.c (complete_arguments): New function.
49159 (grub_normal_do_completion): Call `complete_arguments' when the
49160 current words start with a dash.
49161
0b5abe02 491622005-08-27 Marco Gerards <metgerards@student.han.nl>
49163
49164 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
49165 `gzio.mod' instead of `io.mod').
49166
d9864ee1 491672005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
49168
49169 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
49170 (DISTDIRS): Added io and video.
49171 Rewrite the search routine to make an output consistently.
49172
49173 * DISTLIST: Added conf/sparc64-ieee1275.mk,
49174 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
49175 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
49176 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
49177 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
49178 util/powerpc/ieee1275/misc.c.
f19dbdb7 49179
d9864ee1 49180 * include/grub/gzio.h: New file.
49181 * io/gzio.c: Likewise.
f19dbdb7 49182
d9864ee1 49183 * kern/file.c (grub_file_close): Call grub_device_close only if
49184 FILE->DEVICE is not NULL.
49185
49186 * include/grub/mm.h [!NULL] (NULL): New macro.
49187
49188 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
49189
49190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
49191 (pkgdata_MODULES): Added gzio.mod.
49192 (gzio_mod_SOURCES): New variable.
49193 (gzio_mod_CFLAGS): Likewise.
49194
49195 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
49196 (pkgdata_MODULES): Added gzio.mod.
49197 (gzio_mod_SOURCES): New variable.
49198 (gzio_mod_CFLAGS): Likewise.
49199
49200 * commands/cat.c: Include grub/gzio.h.
49201 (grub_cmd_cat): Use grub_gzfile_open instead of
49202 grub_file_open.
f19dbdb7 49203
d9864ee1 49204 * commands/cmp.c: Include grub/gzio.h.
49205 (grub_cmd_cmp): Use grub_gzfile_open instead of
49206 grub_file_open.
49207
49208 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
49209 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
49210 grub_file_open.
49211 (grub_rescue_cmd_module): Likewise.
49212
fa46f4b5 492132005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
49214
49215 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
49216 kern/sparc64/ieee1275/init.c because it contains _start.
49217 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
49218
e9211b5d 492192005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
49220
49221 * configure.ac: Add support for sparc64 host with ieee1275
49222 firmware.
49223 * configure: Generated from configure.ac.
49224 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
49225 instead of int.
49226 (grub_ofdisk_read): Likewise.
49227 (grub_ofdisk_open): Use %p to print pointer values, and cast the
49228 pointers as (void *) to remove a warning.
49229 (grub_ofdisk_close): Likewise.
49230 (grub_ofdisk_read): Likewise.
49231 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
49232 returns, so make it return void to remove a warning.
49233 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
49234 Corresponding prototype change.
49235 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
49236 values, and cast the pointers as (void *) to remove a warning.
49237 (grub_mm_dump): Likewise.
49238 * conf/sparc64-ieee1275.mk: New file.
49239 * conf/sparc64-ieee1275.rmk: Likewise.
49240 * include/grub/sparc64/setjmp.h: Likewise.
49241 * include/grub/sparc64/types.h: Likewise.
49242 * include/grub/sparc64/ieee1275/console.h: Likewise.
49243 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
49244 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
49245 * include/grub/sparc64/ieee1275/time.h: Likewise.
49246 * kern/sparc64/cache.c: Likewise.
49247 * kern/sparc64/dl.c: Likewise.
49248 * kern/sparc64/ieee1275/init.c: Likewise.
49249 * kern/sparc64/ieee1275/openfw.c: Likewise.
49250
385c6a92 492512005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
49252
49253 * util/console.c (grub_ncurses_putchar): If C is greater than
49254 0x7f, set C to a question mark.
49255 (grub_ncurses_getcharwidth): New function.
49256 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
49257 getcharwidth.
49258
49259 * normal/menu.c (print_entry): Made aware of Unicode. First,
49260 convert TITLE to UCS-4, and predict the cursor position by
49261 grub_getcharwidth.
49262
49263 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
49264 const to SRC.
49265 * kern/misc.c (grub_utf16_to_utf8): Likewise.
49266
16ccb8b1 492672005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49268
49269 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
49270 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
49271 grub_strcat.
49272
49273 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
49274 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
49275 grub_strcpy and grub_strlen. Take it into account that a space
49276 character is inserted as a delimiter.
49277
6a85ce79 492782005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49279
49280 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 49281 invalid magic in the error.
6a85ce79 49282
49283 * commands/search.c: New file.
f19dbdb7 49284
6a85ce79 49285 * util/grub-emu.c (main): Call grub_search_init and
49286 grub_search_fini.
49287
49288 * kern/rescue.c (grub_rescue_print_disks): Removed.
49289 (grub_rescue_print_devices): New function.
49290 (grub_rescue_cmd_ls): Use grub_device_iterate with
49291 grub_rescue_print_devices instead of grub_disk_dev_iterate with
49292 grub_rescue_print_disks.
49293
49294 * kern/partition.c (grub_partition_iterate): Return the result of
49295 PARTMAP->ITERATE instead of GRUB_ERRNO.
49296
49297 * kern/device.c: Include grub/partition.h.
49298 (grub_device_iterate): New function.
49299
49300 * include/grub/partition.h (grub_partition_iterate): Return int
49301 instead of grub_err_t.
49302
49303 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
49304 prototype.
49305 [GRUB_UTIL] (grub_search_fini): Likewise.
49306
49307 * include/grub/device.h (grub_device_iterate): New prototype.
49308
49309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49310 commands/search.c.
49311 (pkgdata_MODULES): Added search.mod.
49312 (search_mod_SOURCES): New variable.
49313 (search_mod_CFLAGS): Likewise.
49314
49315 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
49316 (pkgdata_MODULES): Added search.mod.
49317 (search_mod_SOURCES): New variable.
49318 (search_mod_CFLAGS): Likewise.
49319
49320 * commands/ls.c (grub_ls_list_disks): Renamed to ...
49321 (grub_ls_list_devices): ... this, and use grub_device_iterate.
49322 All callers changed.
49323
49324 * DISTLIST: Added commands/search.c.
49325
ef095434 493262005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49327
49328 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
49329 conversion.
49330 (grub_getcharwidth): New function.
49331
49332 * kern/misc.c (grub_utf8_to_ucs4): New function.
49333
49334 * include/grub/term.h (struct grub_term): Added a new member
49335 "getcharwidth".
49336 (grub_getcharwidth): New prototype.
49337
49338 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
49339
49340 * term/i386/pc/console.c (map_char): New function. Segregated from
49341 grub_console_putchar.
49342 (grub_console_putchar): Use map_char.
49343 (grub_console_getcharwidth): New function.
49344 (grub_console_term): Specified grub_console_getcharwidth as
49345 getcharwidth.
49346
49347 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
49348 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
49349
49350 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
49351 GRUB_ERRNO.
49352 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
49353 on grub_strtoul completely.
49354 (write_char): Declare local variables in the beginning of the
49355 function.
49356 (grub_vesafb_getcharwidth): New function.
49357 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
49358 getcharwidth.
49359
1f0a95e4 493602005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
49361
49362 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
49363 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
49364 commands/i386/pc/vbetest.c.
49365
49366 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
49367 call grub_vbe_get_controller_info again, because the returned
49368 information is volatile.
49369 (grub_vbe_set_video_mode): Mostly rewritten.
49370 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
49371 grub_vbe_status_t correctly.
49372 (grub_vbe_get_video_mode_info): Likewise.
49373 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
49374 several if statements.
49375
49376 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
49377 * commands/i386/pc/vbeinfo.c: ... this.
49378
49379 * commands/i386/pc/vbe_test.c: Renamed to ...
49380 * commands/i386/pc/vbetest.c: ... this.
49381
49382 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
49383 ...
49384 (grub_cmd_vbeinfo): ... this. Save video modes before
49385 iterating. Skip a video mode, if it is not available, not enough
49386 information is given or it is monochrome. Show the memory
49387 model. Leave the interpretation of MODEVAR to grub_strtoul
49388 completely.
49389 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
49390 (GRUB_MOD_FINI): Likewise.
49391
49392 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
49393 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
49394 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
49395 duplicated grub_env_get. Leave the interpretation of MODEVAR to
49396 grub_strtoul completely.
49397 (real2pm): Removed.
49398 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
49399 (GRUB_MOD_FINI): Likewise.
49400
49401 * normal/misc.c: Include grub/mm.h.
49402
49403 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
49404 vbe_list_modes with vbetest.mod and vbeinfo.mod.
49405 (vbe_list_modes_mod_SOURCES): Removed.
49406 (vbe_list_modes_mod_CFLAGS): Likewise.
49407 (vbe_test_mod_SOURCES): Likewise.
49408 (vbe_test_mod_CFLAGS): Likewise.
49409 (vbeinfo_mod_SOURCES): New variable.
49410 (vbeinfo_mod_CFLAGS): Likewise.
49411 (vbetest_mod_SOURCES): Likewise.
49412 (vbetest_mod_CFLAGS): Likewise.
49413
992ffbbe 494142005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
49415
49416 * normal/misc.c: New file.
49417
49418 * DISTLIST: Added normal/misc.c.
f19dbdb7 49419
992ffbbe 49420 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
49421 DISK to HOOK. Call HOOK with DISK.
49422 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49423 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49424 * partmap/sun.c (sun_partition_map_iterate): Likewise.
49425
49426 * normal/menu_entry.c (struct screen): Added a new member
49427 "completion_shown".
49428 (completion_buffer): New global variable.
49429 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
49430 (store_completion): New function.
49431 (complete): Likewise.
49432 (clear_completions): Likewise.
49433 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
49434 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
49435 a tab, call complete.
49436
49437 * normal/completion.c (disk_dev): Removed.
49438 (print_simple_completion): Likewise.
49439 (print_partition_completion): Likewise.
49440 (print_func): New global variable.
49441 (add_completion): Do not take the arguments WHAT or PRINT any
49442 longer. Added a new argument TYPE. Instead of printing directly,
49443 call PRINT_FUNC if not NULL.
49444 All callers changed.
49445 (complete_device): Use a local variable DEV instead of
49446 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
49447 (grub_normal_do_completion): Take a new argument HOOK. Do not
49448 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
49449 empty string, return NULL instead.
49450 All callers changed.
49451
49452 * normal/cmdline.c (print_completion): New function.
49453
49454 * kern/partition.c (grub_partition_iterate): Add an argument DISK
49455 to HOOK.
49456 All callers changed.
49457
49458 * kern/disk.c (grub_print_partinfo): Removed.
49459
49460 * include/grub/partition.h (struct grub_partition_map): Add a new
49461 argument DISK into HOOK of ITERATE.
49462 (grub_partition_iterate): Add a new argument DISK to HOOK.
49463
49464 * include/grub/normal.h (enum grub_completion_type): New enum.
49465 (grub_completion_type_t): New type.
49466 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
49467 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
49468 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
49469 (GRUB_COMPLETION_TYPE_FILE): Likewise.
49470 (grub_normal_do_completion): Added a new argument HOOK.
49471 (grub_normal_print_device_info): New prototype.
49472
49473 * include/grub/disk.h (grub_print_partinfo): Removed.
49474
49475 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
49476 (normal_mod_SOURCES): Likewise.
49477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49478 (normal_mod_SOURCES): Likewise.
49479
49480 * commands/ls.c (grub_ls_list_disks): Use
49481 grub_normal_print_device_info instead of grub_print_partinfo. Free
49482 PNAME.
49483 (grub_ls_list_files): Use grub_normal_print_device_info instead of
49484 duplicating the code.
49485
0bd41162 494862005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49487
49488 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 49489 follow GCS more precisely.
49490 * commands/i386/pc/vbe_test.c: Likewise.
49491 * include/grub/i386/pc/vbe.h: Likewise.
49492 * term/i386/pc/vesafb.c: Likewise.
49493 * video/i386/pc/vbe.c: Likewise.
0bd41162 49494
6323696a 494952005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49496
49497 * DISTLIST: Added term/i386/pc/vesafb.c
49498 DISTLIST: Added video/i386/pc/vbe.c
49499 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
49500 DISTLIST: Added commands/i386/pc/vbe_test.c.
49501 * commands/i386/pc/vbe_list_modes.c: New file.
49502 * commands/i386/pc/vbe_test.c: Likewise.
49503 * term/i386/pc/vesafb.c: Likewise.
49504 * video/i386/pc/vbe.c: Likewise.
49505 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
49506 (grub_vbe_probe) Added prototype.
49507 (grub_vbe_set_video_mode) Likewise.
49508 (grub_vbe_get_video_mode) Likewise.
49509 (grub_vbe_get_video_mode_info) Likewise.
49510 (grub_vbe_set_pixel_rgb) Likewise.
49511 (grub_vbe_set_pixel_index) Likewise.
49512 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
49513 (pkgdata_MODULES): Added vesafb.mod.
49514 (pkgdata_MODULES): Added vbe_list_modes.mod.
49515 (pkgdata_MODULES): Added vbe_test.mod.
49516 (vbe_mod_SOURCES): Added.
49517 (vbe_mod_CFLAGS): Likewise.
49518 (vesafb_mod_SOURCES): Likewise.
49519 (vesafb_mod_CFLAGS): Likewise.
49520 (vbe_list_modes_mod_SOURCES): Likewise.
49521 (vbe_list_modes_mod_CFLAGS): Likewise.
49522 (vbe_test_mod_SOURCES): Likewise.
49523 (vbe_test_mod_CFLAGS): Likewise.
49524
0a74e62f 495252005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
49526
0a74e62f 49527 * normal/command.c (grub_command_execute): If INTERACTIVE is
49528 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
49529 CMDLINE. Disable the pager if INTERACTIVE is true.
49530 All callers are changed.
49531
49532 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
49533 before reading a config file.
49534 * normal/main.c (read_config_file): Even if a command is not
49535 found, register it if it is within an entry.
49536
49537 * util/grub-emu.c: Include sys/types.h and unistd.h.
49538 (options): Added --hold.
49539 (struct arguments): Added a new member "hold".
49540 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
49541 missing.
49542 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
49543 cleared by a debugger, if it is not zero.
49544
49545 * include/grub/normal.h (grub_command_execute): Add an argument
49546 INTERACTIVE.
49547
e51f85ae 495482005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
49549
49550 * DISTLIST: Added include/grub/i386/pc/vbe.h.
49551
e9c6f39b 495522005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
49553
49554 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
49555 program with another one, because the old one didn't detect a bug
49556 in gcc-3.4. Always use regparm 2, because the new test is still
49557 not enough for gcc-4.0. Someone must investigate a simple test
49558 case which detects a bug in gcc-4.0.
49559
8de3495c 495602005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
49561
49562 * DISTLIST: Added normal/completion.c.
49563
49564 * normal/completion.c: New file.
f19dbdb7 49565
8de3495c 49566 * term/i386/pc/console.c (grub_console_getwh): New function.
49567 (grub_console_term): Assign grub_console_getwh to getwh.
49568
49569 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
49570 function is defined in normal/completion.c as
49571 grub_normal_do_completion.
49572 (grub_cmdline_get): Use grub_normal_do_completion instead of
49573 grub_tab_complete.
49574
49575 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
49576 returns non-zero, otherwise return 0.
49577 (grub_partition_iterate): First, probe the partition map. Then,
49578 call ITERATE only for this partition map.
49579
49580 * kern/misc.c (grub_strncmp): Rewritten.
49581
49582 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
49583 returns non-zero. Otherwise return 0.
49584
49585 * include/grub/partition.h (grub_partition_map_iterate): Return
49586 int instead of void.
49587
49588 * include/grub/normal.h (grub_normal_do_completion): New prototype.
49589
49590 * include/grub/misc.h (grub_strncmp): Change the type of N to
49591 grub_size_t.
49592
49593 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
49594 of void.
49595
49596 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 49597 unsigned explicitly before comparing it with I.
8de3495c 49598
49599 * kern/main.c (grub_env_write_root): Add the attribute unused into
49600 VAR.
49601
49602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49603 normal/completion.c.
49604 (normal_mod_SOURCES): Likewise.
49605 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
49606 (normal_mod_SOURCES): Likewise.
49607
49608 * normal/command.c (grub_iterate_commands): If ITERATE returns
49609 non-zero, return one immediately.
49610
e85e144b 496112005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
49612
49613 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
49614 * kern/i386/pc/startup.S: Updated Global Descriptor table's
49615 descriptions.
49616 (grub_vbe_get_controller_info): New function.
49617 (grub_vbe_get_mode_info): Likewise.
49618 (grub_vbe_set_mode): Likewise.
49619 (grub_vbe_get_mode): Likewise.
49620 (grub_vbe_set_memory_window): Likewise.
49621 (grub_vbe_get_memory_window): Likewise.
49622 (grub_vbe_set_scanline_length): Likewise.
49623 (grub_vbe_get_scanline_length): Likewise.
49624 (grub_vbe_set_display_start): Likewise.
49625 (grub_vbe_get_display_start): Likewise.
49626 (grub_vbe_set_palette_data): Likewise.
49627 * include/grub/i386/pc/vbe.h: New file.
49628
c46153d2 496292005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49630
49631 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49632 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
49633 * DISTLIST: Likewise.
49634 * kern/ieee1275/of.c: Moved to ...
49635 * kern/ieee1275/ieee1275.c: ... here.
49636
0cb90c45 496372005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49638
49639 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
49640 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
49641 Pass 0 as `end' parameter to grub_strtoul().
49642
a19fb360 496432005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49644
49645 * include/grub/powerpc/ieee1275/console.h: Do not include
49646 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
49647 ifdef.
49648 (grub_console_cur_color): Remove i386-specific prototype.
49649 (grub_console_real_putchar): Likewise.
49650 (grub_console_checkkey): Likewise.
49651 (grub_console_getkey): Likewise.
49652 (grub_console_getxy): Likewise.
49653 (grub_console_gotoxy): Likewise.
49654 (grub_console_cls): Likewise.
49655 (grub_console_setcursor): Likewise.
49656 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
49657 Include <grub/machine/console.h>.
49658 * term/ieee1275/ofconsole.c: Likewise.
49659
4ac9bd04 496602005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
49661
49662 * Makefile.in (LIBLZO): New variable.
49663
49664 * configure.ac: Check for LZO version 2.
49665
49666 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
49667 lzo/lzo1x.h instead of lzo1x.h.
49668
49669 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
49670 of -llzo.
49671
49672 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
49673 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
49674
49675 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
49676 copying the data from PARTITION to P.
49677
f4917dfd 496782005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49679
49680 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
49681 negative, unload the module.
49682
49683 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
49684 map is "pc_partition_map" but not "pc".
49685 (usage): Fix the description. The options are --boot-image and
49686 --core-image but not --boot-file or --core-file.
49687 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
49688 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
49689 DEFAULT_DIRECTORY.
49690
49691 * util/i386/pc/grub-install.in: Do not specify --boot-file or
49692 --core-file. Specify INSTALL_DEVICE as an argument.
49693
49694 * util/console.c: Include config.h.
49695 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
49696 [HAVE_NCURSES_H]: Include ncurses.h.
49697 [HAVE_CURSES_H]: Include curses.h.
49698 [!A_NORMAL] (A_NORMAL): Defined as zero.
49699 [!A_STANDOUT] (A_STANDOUT): Likewise.
49700
49701 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
49702 -lncurses.
49703 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
49704
49705 * configure.ac: Check for curses libraries and headers.
49706
49707 * Makefile.in (LIBCURSES): New variable.
49708
49709 * genmk.rb (Script::rule): Set the executable bits.
49710
49711 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
49712 name of the PC partition map is "pc_partition_map" but not "pc".
49713
0e143073 497142005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49715
49716 * util/i386/pc/grub-install.in (grub_probefs): New variable.
49717 (modules): Likewise.
49718 (usage): Added descriptions for --modules and --grub-probefs.
49719 Handle --modules and --grub-probefs. Save the arguments in MODULES
49720 and GRUB_PROBEFS, respectively.
49721 Auto-detect a filesystem module against GRUBDIR. If the result is
49722 empty and modules are not specified explicitly, abort the
49723 installation. Add the result to MODULES.
49724
49725 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
49726 disk/powerpc/ieee1275/ofdisk.c,
49727 include/grub/powerpc/ieee1275/init.h and
49728 term/powerpc/ieee1275/ofconsole.c.
49729 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
49730 term/ieee1275/ofconsole.c.
49731
49732 * include/grub/powerpc/ieee1275/console.h: Resurrected.
49733
49734 * COPYING: Upgraded to the latest version. Only the address of the
49735 FSF office has changed.
f19dbdb7 49736
efd6e6d5 497372005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49738
49739 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49740 kern/ieee1275.c with kern/ieee1275/of.c.
49741
49742 * kern/ieee1275.c: Moved to ...
49743 * kern/ieee1275/of.c: ... here.
49744
8ceafda2 497452005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
49746
49747 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 49748 readability.
8ceafda2 49749
49750 * config.guess: Updated to the latest version from gnulib.
49751 * config.sub: Likewise.
49752 * install.sh: Likewise.
49753 * mkinstalldirs: Likewise.
49754
49755 * include/grub/console.h: Removed. This file is arch-specific. Do
49756 not put this in include/grub.
49757
49758 * include/grub/i386/pc/console.h: Resurrected.
49759
49760 * util/console.c: Include grub/machine/console.h instead of
49761 grub/console.h.
49762 * util/grub-emu.c: Likewise.
49763
267f6cd9 497642005-08-04 Marco Gerards <metgerards@student.han.nl>
49765
49766 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49767 hardcoded value.
f19dbdb7 49768
267f6cd9 49769 From Vincent Pelletier <subdino2004@yahoo.fr>
49770 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49771 Redefined to use grub_getwh.
49772 (grub_term): New member named getwh.
49773 (grub_getwh): New prototype.
49774 * kern/term.c (grub_getwh): New function.
49775 * term/i386/pc/console.c (grub_console_getwh): New function.
49776 (grub_console_term): New member `getwh'.
49777 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49778 (grub_vga_term): New member `getwh'.
0b5abe02 49779 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 49780 grub_ssize_t.
49781 (grub_ofconsole_getw): New function.
49782 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49783 (grub_ofconsole_term): New field named getwh and new initial
49784 value.
49785
3be7266d 497862005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49787
49788 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49789 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49790 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49791 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49792 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49793 of <grub/machine/ieee1275.h>.
49794 * commands/ieee1275/reboot.c: Likewise.
49795 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49796 * kern/ieee1275.c: ... to here. All users updated. Change all
49797 parameter structs to use new type `grub_ieee1275_cell_t'.
49798 * term/powerpc/ieee1275/ofconsole.c: Move ...
49799 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49800 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49801 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49802 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49803 to return int.
49804 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49805 Remove unused prototypes. All users updated.
49806 * include/grub/powerpc/ieee1275/console.h: Removed.
49807 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49808 `grub_ieee1275_cell_t'.
49809 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49810 Cast comparisons with -1 to the correct type.
49811 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49812 type to match `grub_ieee1275_entry_fn'.
49813
8b5f3938 498142005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49815
49816 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49817
49818 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49819 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49820 partmap/sun.c.
49821 (grub_probefs_SOURCES): New variable.
49822
49823 * util/i386/pc/grub-probefs.c: New file.
49824
49825 * util/i386/pc/grub-setup.c (main): Call
49826 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49827 grub_hfs_init and grub_jfs_init to initialize the system. Call
49828 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49829 grub_pc_partition_map_fini to finish the system.
49830
ea409713 498312005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49832
49833 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49834 function.
49835 (grub_multiboot_load_elf32): Likewise.
49836 (grub_multiboot_is_elf64): Likewise.
49837 (grub_multiboot_load_elf64): Likewise.
49838 (grub_multiboot_load_elf): Likewise.
49839 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49840 an ELF32 or ELF64 file.
49841 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49842
49843 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49844 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49845 NULL before calling FS->LABEL.
49846 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49847 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49848 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49849 before calling FS->LABEL.
49850
141a288b 498512005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49852
49853 * util/i386/pc/grub-install.in (datadir): New variable.
49854 (libdir): Removed.
49855 (pkgdatadir): New variable.
49856 (pkglibdir): Removed.
49857
0d5f8a54 498582005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49859
49860 * DISTLIST: Added util/i386/pc/grub-install.in.
49861
49862 * util/i386/pc/grub-install.in: New file.
49863
49864 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49865 (grub_install_SOURCES): Likewise.
49866
49867 * genmk.rb: Added support for scripts.
49868 (Script): New class.
49869 (scripts): New variable.
49870
49871 * Makefile.in (install-local): Install sbin_SCRIPTS by
49872 INSTALL_SCRIPT.
49873 (uninstall): Remove sbin_SCRIPTS.
49874
49875 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49876 device, try to get a GRUB device by
49877 grub_util_biosdisk_get_grub_dev.
49878 Free DEST_DEV.
49879
49880 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49881 description for --device-map.
49882
5f968e1e 498832005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49884
49885 Change the semantics of variable hooks. They now return strings
49886 instead of error values.
f19dbdb7 49887
5f968e1e 49888 * util/i386/pc/grub-setup.c: Include grub/env.h.
49889 (setup): Use grub_device_set_root instead of grub_env_set.
49890
49891 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49892 grub_env_get instead of grub_device_set_root and
49893 grub_device_get_root, respectively.
49894
49895 * kern/main.c (grub_env_write_root): New function.
49896 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49897 grub_env_set instead of grub_device_set_root.
49898
49899 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49900 many variables.
49901 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49902 rather than calling ENV->WRITE_HOOK afterwards.
49903 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49904 passing a pointer of a pointer.
49905 (grub_register_variable_hook): Change the types of "read_hook" and
49906 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49907 respectively.
49908 Allocate the default empty string on the heap, because this string
49909 may be freed later.
49910
49911 * kern/device.c: Include grub/env.h.
49912 (grub_device_set_root): Removed.
49913 (grub_device_get_root): Likewise.
49914 (grub_device_open): Use grub_env_get instead of
49915 grub_device_get_root.
49916
49917 * include/grub/env.h (grub_env_read_hook_t): New type.
49918 (grub_env_write_hook_t): Likewise.
49919 (grub_env_var): Change the types of "read_hook" and "write_hook"
49920 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49921 (grub_register_variable_hook): Likewise.
49922
49923 * include/grub/device.h (grub_device_set_root): Removed.
49924 (grub_device_set_root): Likewise.
49925
49926 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49927 make sure that DIRNAME terminates with '/', so that
49928 grub_fat_find_dir will fail if PATH is not a directory.
49929
49930 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49931 from DIRNAME.
49932 Use the qualifier auto for print_files and print_files_long.
49933 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49934 as a regular file.
49935 Put a newline only if there is no error.
49936 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49937 used.
49938
896f0afd 499392005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49940
49941 * kern/partition.c (grub_partition_probe): Initialize PART to
49942 NULL. Otherwise, when no partition map is registered, this returns
49943 a garbage.
49944
b28b81b2 499452005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49946
49947 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49948 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49949 valid.
49950
5f3607e0 499512005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49952
49953 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49954 information on each device, if it does not have partitions. Print
49955 "Device" instead of "Disk", because this function is not specific
49956 to disk devices.
49957
49958 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49959 static to ensure that it is put on the memory rather than a
49960 register.
49961
502c87e8 499622005-07-17 Yoshinori Okuji <okuji@enbug.org>
49963
49964 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49965 (grub_cat_init): Likewise.
49966 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49967 (options): Likewise.
49968 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49969 (grub_configfile_init): Likewise.
49970 * font/manager.c (GRUB_MOD_INIT): Likewise.
49971 * commands/help.c (GRUB_MOD_INIT): Likewise.
49972 (grub_help_init): Likewise.
49973 * normal/command.c (grub_command_init): Likewise.
49974 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49975 * disk/loopback.c (grub_loop_init): Likewise.
49976 (GRUB_MOD_INIT): Likewise.
49977 * commands/ls.c (grub_ls_init): Likewise.
49978 (GRUB_MOD_INIT): Likewise.
49979 (options): Likewise.
49980 * commands/boot.c (grub_boot_init): Likewise.
49981 (GRUB_MOD_INIT): Likewise.
49982 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49983 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49984 (GRUB_MOD_INIT): Likewise.
49985 * commands/cmp.c (grub_cmp_init): Likewise.
49986 (GRUB_MOD_INIT): Likewise.
49987
49988 * normal/arg.c: Use <> instead of "" to include header files.
49989 (SHORT_ARG_HELP): New macro.
49990 (SHORT_ARG_USAGE): Likewise.
49991 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49992 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49993 descriptions.
49994 (find_short): Check if C is 'h' or 'u' explicitly.
49995 (grub_arg_show_help): Use space characters instead of tabs. Treat
49996 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49997 are shown with --help and --usage only if they are not used for
49998 the command itself.
49999 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
50000 'h' and 'u'.
50001
50002 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
50003 const into "longarg". Change the type of "shortarg" to int.
50004
f806d18e 500052005-07-17 Yoshinori Okuji <okuji@enbug.org>
50006
50007 * boot/i386/pc/boot.S (boot_drive_check): New label.
50008
50009 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
50010 macro.
50011
50012 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
50013 which do not pass a boot drive correctly. Copied from GRUB Legacy.
50014
e293232b 500152005-07-17 Yoshinori Okuji <okuji@enbug.org>
50016
50017 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
50018 When turning off Gate A20, skip the check and return immediately,
50019 because this is not fatal usually.
50020
ebedfd00 500212005-07-17 Yoshinori Okuji <okuji@enbug.org>
50022
50023 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
50024 be 0x7C00 instead of 0x8000.
50025
50026 * boot/i386/pc/pxeboot.S: Rewritten.
50027
50028 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
50029 EXT_C.
50030 (gate_a20_check_state): Read a byte from 0x108000. Invert the
50031 result.
50032
654fc59f 500332005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
50034
50035 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
50036 robustness. This routine now supports a BIOS call and System
50037 Control Port A to modify the gate A20.
50038
50039 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
50040 Increased to 0x440.
50041
09f9923f 500422005-07-12 Hollis Blanchard <hollis@penguinppc.org>
50043
50044 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
50045 device path and resulting ihandle.
50046 (grub_ofdisk_close): dprintf the ihandle being closed.
50047 (grub_ofdisk_read): dprintf function parameters.
50048 * kern/mm.c (grub_mm_init_region): Likewise.
50049 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
50050 (grub_linux_boot): dprintf the Linux entry point, initrd address and
50051 size, and boot arguments.
50052 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
50053 before loading into memory.
50054 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
50055 before loading into memory.
50056
7ef504d8 500572005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
50058
50059 * kern/mm.c: Added much documentation.
50060 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
50061 8, set to 5 instead of 8.
50062
e0f050c2 500632005-07-10 Yoshinori Okuji <okuji@enbug.org>
50064
50065 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
50066
50067 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
50068 (grub_mkdevicemap_SOURCES): New variable.
50069
50070 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
50071 lib/device.c of GRUB Legacy.
50072
7224189a 500732005-07-10 Yoshinori Okuji <okuji@enbug.org>
50074
50075 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
50076 instead of PATH is NULL.
50077
68c864eb 500782005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
50079
50080 * commands/cmp.c (BUFFER_SIZE): New macro.
50081 (grub_cmd_cmp): Close the right file at the right time. Compare
50082 only data just read. Don't report files of different size as
50083 identical. Dynamically allocate buffers. Move variable
50084 declarations at the beginning of function.
50085
e6f3e614 500862005-07-09 Yoshinori Okuji <okuji@enbug.org>
50087
50088 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
50089 reverse.
50090
f8f1559a 500912004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
50092
50093 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
50094 when backspace is pressed at beginning of line.
50095
39c9d41d 500962005-07-03 Yoshinori Okuji <okuji@enbug.org>
50097
50098 * DISTLIST: Added genfslist.sh.
50099
50100 * normal/main.c (fs_module_list): New variable.
50101 (autoload_fs_module): New function.
50102 (read_fs_list): Likewise.
50103 (grub_normal_execute): Call read_fs_list.
50104
50105 * kern/fs.c (grub_fs_autoload_hook): New variable.
50106 (grub_fs_probe): Added support for auto-loading.
50107
50108 * include/grub/normal.h (struct grub_fs_module_list): New struct.
50109 (grub_fs_module_list_t): New type.
50110
50111 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
50112 (grub_fs_autoload_hook): New prototype.
50113
50114 * genfslist.sh: New file.
f19dbdb7 50115
39c9d41d 50116 * genmk.rb: Added a rule to generate a filesystem list.
50117
121c1d83 501182005-06-30 Marco Gerards <metgerards@student.han.nl>
50119
50120 * configure.ac: Fix the test for cross-compiling.
50121
50122 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
50123 define GRUB_UTIL anymore.
50124
50125 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
50126 so this function works on other systems than just big endian.
50127 (load_modules): Likewise.
50128 (add_segments): Likewise.
50129
e75d76e1 501302005-06-23 Hollis Blanchard <hollis@penguinppc.org>
50131
50132 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
50133 contains `l' modifier, get a long from va_arg().
50134
50b5a0a7 501352005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
50136
50137 * kern/mm.c (grub_free): If the next free block which is being
50138 merged is the first free block, set the first block to the block
50139 being freed.
50140 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
50141
89371b20 501422005-05-08 Hollis Blanchard <hollis@penguinppc.org>
50143
50144 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
50145 `grub_ieee1275_chosen'.
50146
168d6e58 501472005-05-08 Hollis Blanchard <hollis@penguinppc.org>
50148
50149 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
50150 (grub_ieee1275_chosen): New variable.
50151 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
50152 `chosen'.
50153 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
50154 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50155 Rename first argument to `phandle' for consistency.
50156 (grub_ieee1275_get_property_length): Likewise.
50157 (grub_ieee1275_next_property): Likewise. Change type of first argument
50158 to grub_ieee1275_phandle_t.
50159 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
50160 Move export next to declaration.
50161 (grub_ieee1275_chosen): New variable.
50162 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
50163 Correct cosmetic typo.
50164 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
50165 `grub_ieee1275_chosen'.
50166 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
50167 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
50168 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
50169 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
50170 `grub_ieee1275_chosen'.
50171
ca5baa3f 501722005-05-10 Hollis Blanchard <hollis@penguinppc.org>
50173
50174 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
50175 /chosen/bootargs.
50176 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
50177 /chosen/bootargs as "variable=value" pairs.
50178
708b345f 501792005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
50180
50181 * include/grub/misc.h (grub_dprintf): New macro.
50182 (grub_real_dprintf): New prototype.
50183 (grub_strword): Likewise.
50184 (grub_iswordseparator): Likewise.
50185 * kern/misc.c (grub_real_dprintf): New function.
50186 (grub_strword): Likewise.
50187 (grub_iswordseparator): Likewise.
50188
f4c5e67c 501892005-04-30 Hollis Blanchard <hollis@penguinppc.org>
50190
50191 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
50192 (roundup): Remove macro.
50193 (grub_ieee1275_flags): Make static.
50194 (grub_ieee1275_realmode): Remove.
50195 (grub_ieee1275_test_flag): New function.
50196 (grub_ieee1275_set_flag): Likewise.
50197 (find_options): Rename to `grub_ieee1275_find_options'; update
50198 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
50199 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
50200 (cmain): New prototype.
50201 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
50202 `grub_ieee1275_flags' directly.
50203 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
50204 machine/biosdisk.h.
50205 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
50206 Don't include grub/machine/init.h.
50207 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
50208 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50209 Remove prototype.
50210 (grub_ieee1275_realmode): Likewise.
50211 (grub_ieee1275_flag): New enum.
50212 (grub_ieee1275_test_flag): New prototype.
50213 (grub_ieee1275_set_flag): New prototype.
50214 * include/grub/powerpc/ieee1275/init.h: Remove file.
50215 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
50216 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
50217 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
50218 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
50219 comment.
50220 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
50221 `grub_ieee1275_test_flag'.
50222 (grub_ieee1275_encode_devname): Likewise.
50223
ed16607e 502242005-04-21 Hollis Blanchard <hollis@penguinppc.org>
50225
50226 * include/grub/powerpc/ieee1275/ieee1275.h
50227 (grub_ieee1275_encode_devname): New prototype.
50228 (grub_ieee1275_get_filename): Likewise.
50229 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
50230 function.
50231 (grub_set_prefix): Likewise.
50232 (grub_machine_init): Call grub_set_prefix.
50233 * kern/powerpc/ieee1275/openfw.c: Fix typos.
50234 (grub_parse_type): New enum.
50235 (grub_ieee1275_get_devargs): New function.
50236 (grub_ieee1275_get_devname): Likewise.
50237 (grub_ieee1275_parse_args): Likewise.
50238 (grub_ieee1275_get_filename): Likewise.
50239 (grub_ieee1275_encode_devname): Likewise.
50240
be369920 502412005-03-30 Marco Gerards <metgerards@student.han.nl>
50242
50243 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
50244 `grub_loader_unset'.
50245
a5ce3a4a 502462005-03-26 Hollis Blanchard <hollis@penguinppc.org>
50247
50248 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
50249 instead of grub_ieee1275_interpret.
50250 (grub_halt_init): New function.
50251 (grub_halt_fini): Likewise.
50252 (GRUB_MOD_INIT): Correct message grammar.
50253 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
50254 instead of grub_ieee1275_interpret.
50255 (grub_reboot_init): New function.
50256 (grub_reboot_fini): Likewise.
50257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
50258 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
50259 util/i386/pc/misc.c with commands/ieee1275/halt.c,
50260 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
50261 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
50262 function.
50263 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
50264 Add prototype.
50265 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
50266 prototype.
50267 (grub_halt): Likewise.
50268 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
50269 (cmain): Remove __attribute__((unused)).
50270 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
50271 (grub_heap_len): Likewise.
50272 (grub_machine_fini): New function.
50273 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
50274 (grub_halt): Likewise.
50275 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
50276 function.
50277 * util/powerpc/ieee1275/misc.c: New file.
50278
0058f771 502792005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
50280
50281 * DISTLIST: New file.
50282 * gendistlist.sh: Likewise.
f19dbdb7 50283
0058f771 50284 * Makefile.in (COMMON_DISTFILES): Removed.
50285 (BOOT_DISTFILES): Likewise.
50286 (CONF_DISTFILES): Likewise.
50287 (DISK_DISTFILES): Likewise.
50288 (FS_DISTFILES): Likewise.
50289 (INCLUDE_DISTFILES): Likewise.
50290 (KERN_DISTFILES): Likewise.
50291 (LOADER_DISTFILES): Likewise.
50292 (TERM_DISTFILES): Likewise.
50293 (UTIL_DISTFILES): Likewise.
50294 (DISTFILES): Likewise.
50295 (uninstall): Uninstall files in $(pkgdata_DATA).
50296 (DISTLIST): New target.
50297 (distdir): Use the contents of the file DISTLIST to get a list of
50298 distributed files.
50299
46b3b8a5 503002005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
50301
50302 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
50303 descriptor. This is ported from GRUB Legacy.
50304
50305 * gencmdlist.sh: Added an extra semicolon to make it work with
50306 old sed versions. Reported by Robert Bihlmeyer
50307 <robbe@orcus.priv.at>.
50308
5822ff87 503092005-03-08 Yoshinori Okuji <okuji@enbug.org>
50310
50311 Automatic loading of commands is supported.
f19dbdb7 50312
5822ff87 50313 * normal/main.c (read_command_list): New function.
50314 (grub_normal_execute): Call read_command_list.
50315
50316 * normal/command.c (grub_register_command): Return zero or CMD.
50317 Allocate CMD->NAME from the heap.
50318 Initialize CMD->MODULE_NAME to zero.
50319 Find the same name as well. If the same command is found and it is
50320 a dummy command, overwrite members. If it is not a dummy command,
50321 return zero.
50322 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
50323 (grub_command_find): If a dummy command is found, load a module
50324 and retry to find a command only once.
50325
50326 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
50327 make sure that each command is loaded.
50328
50329 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
50330 macro.
50331 (struct grub_command): Remove const from the member `name'.
50332 Add a new member `module_name'.
50333 (grub_register_command): Return grub_command_t.
50334
50335 * commands/help.c (grub_cmd_help): Call grub_command_find to make
50336 sure that each command is loaded.
50337
50338 * genmk.rb (PModule::rule): Specify a module name without the
50339 suffix ".mod" to gencmdlist.sh.
50340
7b1f4b57 503412005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50342
50343 * gencmdlist.sh: New file.
f19dbdb7 50344
7b1f4b57 50345 * genmk.rb (PModule::rule): Generate a rule for a command list.
50346 Clean command.lst.
50347 Generate command.lst from $(COMMANDFILES).
50348
50349 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
50350 (DATA): Added $(pkgdata_DATA).
50351 (install-local): Install files in $(pkgdata_DATA).
50352
062aaf39 503532005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50354
50355 * term/i386/pc/vga.c (debug_command): Removed.
50356 (GRUB_MOD_INIT): Do not register the command "debug".
50357
50358 From Hollis Blanchard:
50359 * commands/configfile.c: New file.
50360 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50361 commands/configfile.c.
50362 (pkgdata_MODULES): Added configfile.mod.
50363 (configfile_mod_SOURCES): New variable.
50364 (configfile_mod_CFLAGS): Likewise.
50365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50366 commands/configfile.c.
50367 (pkgdata_MODULES): Added configfile.mod.
50368 (configfile_mod_SOURCES): New variable.
50369 (configfile_mod_CFLAGS): Likewise.
50370 * util/grub-emu.c (main): Call grub_configfile_init and
50371 grub_configfile_fini.
50372 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
50373 prototype.
50374 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 50375
cee01aa6 503762005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50377
50378 * normal/arg.c (grub_arg_show_help): Do not show the bug report
50379 address.
50380
50381 * commands/help.c (grub_cmd_help): Do not print newlines after
50382 the last command in print_command_help.
50383
93f3a1d8 503842005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50385
50386 * commands/default.h: New file.
50387 * commands/timeout.h: Likewise.
50388 * normal/context.c: Likewise.
f19dbdb7 50389
93f3a1d8 50390 * util/misc.c: Do not include sys/times.h.
50391 Include sys/time.h and grub/machine/time.h.
50392 (grub_get_rtc): Rewritten with gettimeofday.
50393
50394 * util/grub-emu.c (main): Call grub_default_init and
50395 grub_timeout_init before grub_normal_init, and call
50396 grub_timeout_fini and grub_default_fini after grub_main.
50397
50398 * util/console.c (grub_ncurses_checkkey): Return the read
50399 character or -1.
50400
50401 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
50402 timeouts.
50403
50404 * normal/main.c (read_config_file): Push MENU. If this fails,
50405 print an error and wait for a user input.
50406 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
50407 If a menu is empty or an error occurs, pop MENU.
50408 (grub_normal_execute): Pop and free MENU after grub_menu_run
50409 returns.
50410
50411 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
50412
50413 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
50414 include time.h.
50415 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50416 without GRUB_UTIL.
50417 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
50418 time.h.
50419 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50420 without GRUB_UTIL.
50421
50422 * include/grub/normal.h (struct grub_menu_list): New struct.
50423 (grub_menu_list_t): New type.
50424 (struct grub_context): New struct.
50425 (grub_context_t): New type.
50426 (grub_register_command): Got rid of EXPORT_FUNC.
50427 (grub_unregister_command): Likewise.
50428 (grub_context_get): New prototype.
50429 (grub_context_get_current_menu): Likewise.
50430 (grub_context_push_menu): Likewise.
50431 (grub_context_pop_menu): Likewise.
50432 [GRUB_UTIL] (grub_default_init): Likewise.
50433 [GRUB_UTIL] (grub_default_fini): Likewise.
50434 [GRUB_UTIL] (grub_timeout_init): Likewise.
50435 [GRUB_UTIL] (grub_timeout_fini): Likewise.
50436
50437 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
50438 commands/timeout.c and normal/context.c.
50439 (pkgdata_MODULES): Added default.mod and timeout.mod.
50440 (normal_mod_SOURCES): Added normal/context.c.
50441 (default_mod_SOURCES): New variable.
50442 (default_mod_CFLAGS): Likewise.
50443 (timeout_mod_SOURCES): Likewise.
50444 (timeout_mod_CFLAGS): Likewise.
50445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
50446 conf/i386-pc.rmk.
50447 (pkgdata_MODULES): Added default.mod and timeout.mod.
50448 (normal_mod_SOURCES): Added normal/context.c.
50449 (default_mod_SOURCES): New variable.
50450 (default_mod_CFLAGS): Likewise.
50451 (timeout_mod_SOURCES): Likewise.
50452 (timeout_mod_CFLAGS): Likewise.
50453
50454 * Makefile.in (all-local): Added $(MKFILES).
50455
4ed2e1dd 504562005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
50457
50458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
50459 (grub_emu_SOURCES): Likewise.
50460 (pkgdata_MODULES): Add `sun.mod'.
50461 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50463 `partmap/sun.c'.
50464 (pkgdata_MODULES): Add `sun.mod'.
50465 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50466 * include/grub/partition.h (grub_sun_partition_map_init): New
50467 prototype.
50468 (grub_sun_partition_map_fini): Likewise.
50469 * partmap/sun.c: New file.
50470 * util/grub-emu.c (main): Initialize and de-initialize the sun
50471 partitionmap support.
50472
4d4e372e 504732005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
50474
50475 This implements an Emacs-like menu entry editor.
f19dbdb7 50476
4d4e372e 50477 * normal/menu_entry.c: New file.
f19dbdb7 50478
4d4e372e 50479 * util/console.c (grub_ncurses_putchar): Translate some Unicode
50480 characters to ASCII.
50481 (saved_char): New variable.
50482 (grub_ncurses_checkkey): Rewritten completely.
50483 (grub_ncurses_getkey): Likewise.
50484 (grub_ncurses_init): Call raw instead of cbreak.
50485
50486 * normal/menu.c (print_entry): Do not put a space.
50487 (init_page): Renamed to ...
50488 (grub_menu_init_page): ... this. All callers changed.
50489 (edit_menu_entry): Removed.
50490 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
50491
50492 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
50493
50494 * kern/misc.c (grub_vprintf): Call grub_refresh.
50495
50496 * normal/menu.c (DISP_LEFT): Renamed to ...
50497 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
50498 * normal/menu.c (DISP_UP): Renamed to ...
50499 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
50500 * normal/menu.c (DISP_RIGHT): Renamed to ...
50501 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
50502 * normal/menu.c (DISP_DOWN): Renamed to ...
50503 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
50504 * normal/menu.c (DISP_HLINE): Renamed to ...
50505 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
50506 * normal/menu.c (DISP_VLINE): Renamed to ...
50507 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
50508 * normal/menu.c (DISP_UL): Renamed to ...
50509 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
50510 * normal/menu.c (DISP_UR): Renamed to ...
50511 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
50512 * normal/menu.c (DISP_LL): Renamed to ...
50513 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
50514 * normal/menu.c (DISP_LR): Renamed to ...
50515 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
50516 * normal/menu.c (TERM_WIDTH): Renamed to ...
50517 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
50518 * normal/menu.c (TERM_HEIGHT): Renamed to ...
50519 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
50520 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
50521 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
50522 * normal/menu.c (TERM_MARGIN): Renamed to ...
50523 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
50524 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
50525 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
50526 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
50527 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
50528 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
50529 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
50530 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
50531 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
50532 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
50533 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
50534 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
50535 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
50536 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
50537 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
50538 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
50539 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
50540 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
50541 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
50542 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
50543 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
50544 All callers changed.
50545
50546 * include/grub/normal.h: New prototype.
50547
50548 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50549 normal/menu_entry.c.
50550 (normal_mod_SOURCES): Likewise.
50551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50552 (normal_mod_SOURCES): Likewise.
50553
e6b92c8a 505542005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
50555
50556 * include/grub/normal.h (grub_halt_init): New prototype.
50557 (grub_halt_fini): Likewise.
50558 (grub_reboot_init): Likewise.
50559 (grub_reboot_fini): Likewise.
50560
50561 * util/grub-emu.c: Include signal.h.
50562 (main_env): New global variable.
50563 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
50564 catch C-c.
50565 (grub_machine_fini): New function.
50566 (main): Call grub_halt_init and grub_reboot_init before
50567 grub_main, and grub_reboot_fini and grub_halt_fini after it.
50568 Call setjmp with MAIN_ENV to go back afterwards.
50569 Call grub_machine_fini right before return.
50570
50571 * include/grub/util/misc.h: Include setjmp.h.
50572 (main_env): New prototype.
50573
50574 * include/grub/kernel.h (grub_machine_fini): New prototype.
50575 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
50576 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
50577
50578 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
50579 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
50580 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 50581
e6b92c8a 50582 * util/i386/pc/misc.c: New file.
f19dbdb7 50583
e6b92c8a 50584 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50585 util/i386/pc/misc.c, commands/i386/pc/halt.c and
50586 commands/i386/pc/reboot.c.
50587
c642636f 505882005-02-14 Guillem Jover <guillem@hadrons.org>
50589
50590 * include/grub/dl.h (grub_dl_check_header): New prototype.
50591 (grub_arch_dl_check_header): Change return type to grub_err_t,
50592 remove size parameter and export function. Update all callers.
50593 * kern/dl.c (grub_dl_check_header): New function.
50594 (grub_dl_load_core): Use `grub_dl_check_header' instead of
50595 `grub_arch_dl_check_header'. Check ELF type. Check if sections
50596 are inside the core.
50597 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
50598 independent ELF header checks.
50599 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50600 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
50601 `grub_dl_check_header' instead of explicit checks. Check for the
50602 ELF type.
50603 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
50604 `grub_dl_check_header' instead of explicit checks. Remove arch
50605 specific ELF header checks.
50606
e6b92c8a 50607 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
50608 argument SIZE.
50609
5eabe94b 506102005-02-13 Hollis Blanchard <hollis@penguinppc.org>
50611
50612 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
50613 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
50614
1b14a681 506152005-02-12 Hollis Blanchard <hollis@penguinppc.org>
50616
50617 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 50618 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 50619 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 50620 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 50621 * partmap/amiga.c (amiga_partition_map_iterate): Return
50622 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
50623 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50624
aca108aa 506252005-02-01 Guillem Jover <guillem@hadrons.org>
50626
50627 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
50628 help info.
50629
c9f9c556 506302005-01-31 Marco Gerards <metgerards@student.han.nl>
50631
50632 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
50633 Removed prototype.
50634 (grub_rescue_cmd_linux): New prototype.
50635 (grub_rescue_cmd_initrd): Likewise.
50636 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
50637 `bi_rec'.
50638 (grub_linux_release_mem): Release the memory for the initrd.
50639 (grub_load_linux): Renamed from this...
50640 (grub_rescue_cmd_linux): ...To this. Changed all callers.
50641 Changed `entry' not to be static. Loop over memory regions to
50642 find another one when the default fails.
50643 (grub_rescue_cmd_initrd): New function.
50644 (grub_linux_init): Remove function.
50645 (grub_linux_fini): Likewise.
50646 (GRUB_MOD_INIT): Register `initrd'.
50647 (GRUB_MOD_FINI): Unregister `initrd'.
50648 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
50649 Function removed.
50650 (grub_linux_normal_fini): Likewise.
50651 (GRUB_MOD_INIT): Register `initrd'.
50652 (GRUB_MOD_FINI): Unregister `initrd'.
50653
990cf3aa 506542005-01-31 Marco Gerards <metgerards@student.han.nl>
50655
50656 * commands/help.c: New file.
50657 * normal/arg.c (show_help): Renamed to...
50658 (grub_arg_show_help): ... this.
50659 * commands/i386/pc/halt.c: New file.
50660 * commands/i386/pc/reboot.c: Likewise.
50661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
50662 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
50663 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
50664 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
50665 variables.
50666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50667 `commands/help.c'.
50668 (pkgdata_MODULES): Add `help.mod'.
50669 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
50670 * grub/i386/pc/init.h (grub_reboot): New prototype.
50671 (grub_halt): Likewise.
50672 * include/grub/normal.h (grub_arg_show_help): New prototype.
50673 (grub_help_init): Likewise.
50674 (grub_help_fini): Likewise.
50675 * util/grub-emu.c (main): Initialize and deinitialize the help
50676 command.
50677
50678 * normal/cmdline.c (grub_cmdline_get): Doc fix.
50679
50680 * normal/command.c (grub_command_init): Fixed the description of
50681 the `set' and `unset' commands.
50682
506832005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 50684
50685 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
50686 function.
50687 * commands/ieee1275/halt.c: New file.
50688 * commands/ieee1275/reboot.c: Likewise.
50689 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
50690 `__attribute__ ((unused))'. Some GCS related fixed.
50691 (grub_suspend_init) [GRUB_UTIL]: Function removed.
50692 (grub_suspend_fini): Likewise.
50693 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
50694 and `halt.mod'.
50695 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
50696 (halt_mod_CFLAGS): New variables.
50697 * include/grub/powerpc/ieee1275/ieee1275.h
50698 (grub_ieee1275_interpret): New prototype.
50699
1ab09cc7 507002005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
50701
50702 * include/grub/misc.h (memmove): New prototype.
50703 (memcpy): Likewise.
50704
8b8cbdb2 507052005-01-22 Hollis Blanchard <hollis@penguinppc.org>
50706
50707 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
50708 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
50709
e3741a27 507102005-01-22 Marco Gerards <metgerards@student.han.nl>
50711
50712 * kern/misc.c (grub_strndup): Function rewritten.
50713
776bd780 507142005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
50715
50716 * normal/menu.c (TERM_WIDTH): Macro redefined.
50717 (TERM_TOP_BORDER_Y): Likewise.
50718 (draw_border): Replaced while-loop by a for-loop. Make the number
50719 of lines consistent with the number of lines displayed in
50720 print_entries. Added a margin below the rectangle.
50721 (print_entry): Make the entry fit in the rectangle.
50722 (print_entries): Display the scroll arrows next to the right
50723 border.
50724
78026bce 507252005-01-21 Marco Gerards <metgerards@student.han.nl>
50726
50727 * fs/minix.c (grub_minix_find_file): Reserve more space for
50728 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
50729 `grub_strncpy' to copy `path' into it.
50730
67bbaf0f 507312005-01-21 Marco Gerards <metgerards@student.han.nl>
50732
50733 Add the loopback device, a device via which files can be accessed
50734 as devices.
f19dbdb7 50735
67bbaf0f 50736 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
50737 (pkgdata_MODULES): Add loopback.mod.
50738 (loopback_mod_SOURCES): New variable.
50739 (loopback_mod_CFLAGS): Likewise.
50740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50741 `disk/loopback.c'.
50742 (pkgdata_MODULES): Add loopback.mod.
50743 (loopback_mod_SOURCES): New variable.
50744 (loopback_mod_CFLAGS): Likewise.
50745 * disk/loopback.c: new file.
50746 * include/grub/normal.h (grub_loop_init): New prototype.
50747 (grub_loop_fini): New prototype.
50748 * util/grub-emu.c (main): Initialize and de-initialize loopback
50749 support.
50750 * include/grub/disk.h (grub_disk_dev_id): Add
50751 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
50752
6f1c18bd 507532005-01-20 Hollis Blanchard <hollis@penguinppc.org>
50754
50755 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
50756 function.
50757 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
50758 (suspend_mod_SOURCES): New variable.
50759 (suspend_mod_CFLAGS): Likewise.
50760 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
50761 New prototype.
50762 * commands/ieee1275/suspend.c: New file.
50763
b38551da 507642005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50765
50766 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 50767 ((unused))' to `__attribute__ ((used))'.
b38551da 50768 (GRUB_MOD_FINI): Likewise.
50769 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50770 * genmk.rb (PModule): Assign space to common symbols when linking
50771 modules.
50772
777aff39 507732005-01-20 Marco Gerards <metgerards@student.han.nl>
50774
50775 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50776 `unsigned' arguments to `grub_size_t'.
50777 (grub_malloc): Likewise.
50778 (grub_realloc): Likewise.
50779 (grub_memalign): Likewise.
50780 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50781 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50782 * util/misc.c (grub_malloc): Likewise.
50783 (grub_realloc): Likewise.
50784 * kern/mm.c (get_header_from_pointer): Change the casts to
50785 `unsigned' into a cast to `grub_size_t'.
50786
50787 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50788 point to `currnode' when `currnode' is changed.
50789
50790 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50791 Schottelius <nico-linux@schottelius.org>.
50792
d0ff18e1 507932005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50794
50795 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50796 (note_path): Remove variable.
50797 (GRUB_IEEE1275_NOTE_NAME): New macro.
50798 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50799 (grub_ieee1275_note_hdr): New structure.
50800 (grub_ieee1275_note_desc): Likewise.
50801 (grub_ieee1275_note): Likewise.
50802 (load_note): Remove `dir' argument. All callers updated. Remove
50803 `note_img' and `path'. Do not load a file from `note_path'.
50804 Initialize a struct grub_ieee1275_note and write that to `out'.
50805 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50806
4ca7004c 508072005-01-05 Marco Gerards <metgerards@student.han.nl>
50808
50809 * util/misc.c (grub_util_read_image): Revert last change. It
50810 called `grub_util_read_at', which seeks from the beginning of the
50811 file.
50812
0b412211 508132005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50814
50815 * TODO: Add note about endianness in grub-mkimage.
50816 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50817 section.
50818 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50819 (grub_mkimage_SOURCES): New target.
50820 * include/grub/kernel.h (grub_start_addr): Remove variable.
50821 (grub_end_addr): Likewise.
50822 (grub_total_module_size): Likewise.
50823 (grub_kernel_image_size): Likewise.
50824 (GRUB_MODULE_MAGIC): New constant.
50825 (grub_module_info): New structure.
50826 (grub_arch_modules_addr): New prototype.
50827 (grub_get_end_addr): Remove prototype.
50828 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50829 * include/grub/powerpc/ieee1275/kernel.h: New file.
50830 * include/grub/util/misc.h (grub_util_get_fp_size): New
50831 prototype.
50832 (grub_util_read_at): Likewise.
50833 (grub_util_write_image_at): Likewise.
50834 * kern/main.c (grub_get_end_addr): Remove function.
50835 (grub_load_modules): Call grub_arch_modules_addr instead of using
50836 grub_end_addr. Look for a grub_module_info struct in memory. Use
50837 the grub_module_info fields instead of calling grub_get_end_addr
50838 as loop conditions. Move grub_add_unused_region code here.
50839 (grub_add_unused_region): Remove function.
50840 * kern/i386/pc/init.c: Include grub/cache.h.
50841 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50842 one call to add_mem_region.
50843 (grub_arch_modules_addr): New function.
50844 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50845 (grub_total_module_size): Likewise.
50846 Include grub/machine/kernel.h.
50847 (grub_arch_modules_addr): New function.
50848 * util/grub-emu.c (grub_end_addr): Remove variable.
50849 (grub_total_module_size): Likewise.
50850 (grub_arch_modules_addr): New function.
50851 * util/misc.c: Include unistd.h.
50852 (grub_util_get_fp_size): New function.
50853 (grub_util_read_at): Likewise.
50854 (grub_util_write_image_at): Likewise.
50855 (grub_util_read_image): Call grub_util_read_at.
50856 (grub_util_write_image): Call grub_util_write_image_at.
50857 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50858 additional memory in kernel_img for a struct grub_module_info.
50859 Fill in that grub_module_info.
50860 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50861
458786f8 508622005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50863
50864 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50865 New function.
50866 * include/grub/powerpc/ieee1275/ieee1275.h
50867 (grub_ieee1275_milliseconds): New prototype.
50868 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50869 Change to 1000.
50870 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50871 grub_ieee1275_milliseconds.
50872
ac507d1b 508732005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50874
50875 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50876 variable.
50877 (find_options): New function.
50878 (cmain): Call find_options.
50879 * include/grub/powerpc/ieee1275/ieee1275.h
50880 (grub_ieee1275_realmode): New extern variable.
50881 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50882 grub_map if grub_ieee1275_realmode is false.
50883
6b8fd1c4 508842004-12-29 Marco Gerards <metgerards@student.han.nl>
50885
50886 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50887 lines are inserted and make it work like readline. Reported by
50888 Vincent Pelletier <subdino2004@yahoo.fr>.
50889
8514a1e0 508902004-12-28 Marco Gerards <metgerards@student.han.nl>
50891
50892 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50893
50894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50895 `kern/powerpc/cache.S'.
50896
924b6140 508972004-12-27 Marco Gerards <metgerards@student.han.nl>
50898
50899 * genmk.rb: Handle the `Program' class in the main loop. Written
50900 by Johan Rydberg <jrydberg@gnu.org>.
50901 (Program): New class.
50902 (programs): New variable.
50903 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50904 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50905 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50906 (help_arch): Function removed.
50907 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50908 `powerpc/libgcc.h' and `loader.h'.
50909 (pkgdata_PROGRAMS): New variable.
50910 (sbin_UTILITIES): Variable removed.
50911 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50912 (grubof_SOURCES): Variable re-defined so it only includes the
50913 core functionality.
50914 (grubof_CFLAGS): Remove `-DGRUBOF'.
50915 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50916 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50917 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50918 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50919 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50920 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50921 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50922 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50923 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50924 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50925 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50926 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50927 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50928 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50929 (pc_mod_CFLAGS): New variables.
50930 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50931 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50932 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50933 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50934 Moved from here...
50935 * include/grub/i386/pc/init.h (grub_os_area_addr)
50936 (rub_os_area_size): ... to here.
50937 * include/grub/powerpc/ieee1275/ieee1275.h
50938 (grub_ieee1275_entry_fn): Export symbol.
50939 * include/grub/powerpc/ieee1275/init.h: New file.
50940 * include/grub/powerpc/libgcc.h: Likewise.
50941 * include/grub/cache.h: Likewise.
50942 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50943 <hollis@penguinppc.org>.
50944 * kern/dl.c: Include <grub/cache.h>.
50945 (grub_dl_flush_cache): New function.
50946 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50947 for this module.
50948 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50949 (grub_console_init): Removed prototypes.
50950 (grub_machine_init): Don't initialize the modules anymore.
50951 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50952 static.
50953 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50954 Macro undef removed.
50955 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50956 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50957 relocation `R_PPC_REL32'. Return an error when the relocation is
50958 unknown.
50959 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50960 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50961 * util/misc.c (grub_arch_sync_caches): Likewise.
50962
e4b47e0c 509632004-12-19 Marco Gerards <metgerards@student.han.nl>
50964
50965 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50966 `symlist.c', add `grubof_symlist.c'.
50967 (symlist.c): Variable removed.
50968 (grubof_HEADERS): Variable added.
50969 (grubof_symlist.c): New target.
50970 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50971 `kernel_img_HEADERS'.
50972 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50973 * kern/powerpc/dl.c: New file.
50974 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50975 Function removed.
50976 (grub_arch_dl_relocate_symbols): Likewise.
50977 (grub_register_exported_symbols): Likewise.
50978
4ceb3636 509792004-12-13 Marco Gerards <metgerards@student.han.nl>
50980
50981 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50982 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50983 to fail instead. Reported by Vincent Pelletier
50984 <subdino2004@yahoo.fr>.
50985
50986 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50987 it is not allocated. Reported by Vincent Pelletier
50988 <subdino2004@yahoo.fr>.
50989
50990 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50991 output so the output looks better.
f19dbdb7 50992
3f1578fe 509932004-12-04 Marco Gerards <metgerards@student.han.nl>
50994
50995 Modulize the partition map support and add support for the amiga
50996 partition map.
f19dbdb7 50997
3f1578fe 50998 * commands/ls.c: Include <grub/partition.h> instead of
50999 <grub/machine/partition.h>.
51000 * kern/disk.c: Likewise.
51001 * kern/rescue.c: Likewise.
51002 * loader/i386/pc/chainloader.c: Likewise.
51003 * normal/cmdline.c: Likewise.
51004 * kern/powerpc/ieee1275/init.c: Likewise.
51005 (grub_machine_init): Call `grub_pc_partition_map_init',
51006 `grub_amiga_partition_map_init' and
51007 `grub_apple_partition_map_init'.
51008 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
51009 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
51010 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
51011 `partition.h' and `pc_partition.h'.
51012 (grub_setup_SOURCES): Remove
51013 `disk/i386/pc/partition.c'. Add `kern/partition.c',
51014 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
51015 (grub_emu_SOURCES): Likewise.
51016 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
51017 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
51018 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
51019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
51020 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
51021 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
51022 (grubof_SOURCES): Likewise.
51023 * disk/i386/pc/partition.c: File removed.
51024 * disk/powerpc/ieee1275/partition.c: Likewise.
51025 * include/grub/powerpc/ieee1275/partition.h: Likewise.
51026 * include/grub/i386/pc/partition.h: Likewise.
51027 * kern/partition.c: New file.
51028 * partmap/amiga.c: Likewise.
51029 * partmap/apple.c: Likewise.
51030 * partmap/pc.c: Likewise.
51031 * include/grub/partition.h: Likewise..
51032 * include/grub/pc_partition.h: Likewise.
51033 * util/grub-emu.c: Include <grub/partition.h> instead of
51034 <grub/machine/partition.h>.
51035 (main): Call `grub_pc_partition_map_init',
51036 `grub_amiga_partition_map_init' and
51037 `grub_apple_partition_map_init' and deinitialize afterwards.
51038 * util/i386/pc/biosdisk.c: Include `#include
51039 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
51040 `<grub/machine/partition.h>'.
51041 * util/i386/pc/grub-setup.c: Likewise.
51042 * util/i386/pc/biosdisk.c: Likewise.
51043 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
51044 partition information in case of a PC partition.
51045 * util/i386/pc/grub-setup.c: Include `#include
51046 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
51047 `<grub/machine/partition.h>'.
51048 (setup): Only access the PC specific partition information in case
51049 of a PC partition.
51050
0ef4ced9 510512004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51052
0ef4ced9 51053 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
51054 (grub_longjmp): Likewise.
51055 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
51056 20.
51057 * normal/powerpc/setjmp.S: New file.
51058 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
51059 `normal/powerpc/setjmp.S'.
51060 (grubof_CFLAGS): Add `-DGRUBOF'.
51061 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
51062 [GRUB_UTIL && !GRUBOF].
f19dbdb7 51063
19950e29 510642004-11-16 Marco Gerards <metgerards@student.han.nl>
51065
51066 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
51067 property named `name'. Correctly handle the error returned by
51068 `grub_ieee1275_finddevice' if a device can not be opened.
51069
a2fea427 510702004-11-02 Hollis Blanchard <hollis@penguinppc.org>
51071
51072 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
51073 `actual' for negativity.
51074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
51075 kern/fshelp.c.
51076
41ea0ea3 510772004-11-01 Marco Gerards <metgerards@student.han.nl>
51078
51079 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
51080 (PAGE_OFFSET): New macro.
51081 (CRTC_ADDR_PORT): Likewise.
51082 (CRTC_DATA_PORT): Likewise.
51083 (START_ADDR_HIGH_REGISTER): Likewise.
51084 (START_ADDR_LOW_REGISTER): Likewise.
51085 (GRAPHICS_ADDR_PORT): Likewise.
51086 (GRAPHICS_DATA_PORT): Likewise.
51087 (READ_MAP_REGISTER): Likewise.
51088 (INPUT_STATUS1_REGISTER): Likewise.
51089 (INPUT_STATUS1_VERTR_BIT): Likewise.
51090 (page): New variable.
51091 (wait_vretrace): New function.
51092 (set_read_map): Likewise.
51093 (set_start_address): Likewise.
51094 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
51095 the right page.
51096 (check_vga_mem): Take the page into account.
51097 (write_char): Likewise.
51098 (write_cursor): Likewise.
51099 (scroll_up): Likewise. Copy the page to the page that is not
51100 shown and switch between both pages.
51101 (grub_vga_putchar): Fix off by one error.
51102 (grub_vga_cls): Wait for the vertical retrace. Take the page into
51103 account.
51104
ad0bd20b 511052004-11-01 Marco Gerards <metgerards@student.han.nl>
51106
51107 Add support for iso9660 (including rockridge).
f19dbdb7 51108
ad0bd20b 51109 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
51110 (iso9660_mod_SOURCES): New variable.
51111 (iso9660_mod_CFLAGS): Likewise.
51112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
51113 * include/grub/fs.h (grub_iso9660_init): New prototype.
51114 * util/grub-emu.c (main): Call `grub_iso9660_init'.
51115 * fs/iso9660.c: New file.
51116
51117 * include/grub/misc.h (grub_strncat): New prototype.
51118 * kern/misc.c (grub_strncat): New function.
f19dbdb7 51119
ad0bd20b 51120 * fs/hfs.c (grub_hfs_mount): Translate the error
51121 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
51122 * fs/jfs.c (grub_jfs_mount): Likewise.
51123 * fs/ufs.c (grub_ufs_mount): Likewise.
51124
a5477a59 511252004-10-28 Hollis Blanchard <hollis@penguinppc.org>
51126
51127 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
51128 which initialized BAT registers.
51129 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
51130 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
51131 Move from here...
51132 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
51133 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
51134 ... to here.
51135 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
51136 (grub_mapclaim): Likewise.
51137 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
51138 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
51139 hand.
51140
9304c1f8 511412004-10-19 Hollis Blanchard <hollis@penguinppc.org>
51142
51143 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
51144 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
51145 -ffreestanding and -msoft-float.
51146
86f4ae25 511472004-10-15 Hollis Blanchard <hollis@penguinppc.org>
51148
51149 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
51150 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
51151 set in grub_ieee1275_flags.
51152
38912228 511532004-10-14 Hollis Blanchard <hollis@penguinppc.org>
51154
51155 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
51156 prototype.
51157 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
51158 grub_console_init first.
51159 Change the memory range used for grub_ieee1275_claim and
51160 grub_mm_init_region.
51161 Print an error message if the claim fails.
51162 Include <grub/misc.h>.
51163
d1923dc8 511642004-10-13 Hollis Blanchard <hollis@penguinppc.org>
51165
51166 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
51167 Call grub_children_iterate for device nodes of type `scsi',
51168 `ide', or `ata'.
51169 (grub_ofdisk_open): Remove manual device alias resolution.
51170 Fix memory leak when device cannot be opened.
f19dbdb7 51171 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 51172 (grub_children_iterate): New prototype.
51173 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
51174 New function.
51175 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
51176 Return -1 if args.size was -1.
51177
4512e4f3 511782004-10-11 Hollis Blanchard <hollis@penguinppc.org>
51179
51180 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
51181 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
51182 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
51183 Open Firmware's memory for it; claim memory from _start to _end.
51184 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
51185 (_end): New extern.
51186 (_start): Zero BSS from __bss_start to _end.
51187 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
51188 New extern.
51189 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
51190
4d61feb0 511912004-10-11 Hollis Blanchard <hollis@penguinppc.org>
51192
ad0bd20b 51193 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
51194 -1 if args.base was -1.
4d61feb0 51195
026fa2f9 511962004-10-08 Hollis Blanchard <hollis@penguinppc.org>
51197
51198 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
51199 escape sequence instead of a literal ^L. Also call
51200 grub_ofconsole_gotoxy.
51201
9f2220ef 512022004-10-03 Hollis Blanchard <hollis@penguinppc.org>
51203
51204 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
51205 void * arguments to grub_addr_t. All callers updated. Also make
51206 the `result' argument optional.
51207 (grub_ieee1275_release): change void * arguments to grub_addr_t.
51208 All callers updated.
51209
8a572cd7 512102004-09-22 Hollis Blanchard <hollis@penguinppc.org>
51211
51212 * commands/ls.c (grub_ls_list_files): Use the string following the
51213 initial ')', if present, as the filesystem path.
51214 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
51215
51216 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
51217
18aa81f2 512182004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
51219
51220 Make the source code of the menu interface more readable.
f19dbdb7 51221
18aa81f2 51222 * normal/menu.c: Include grub/mm.h.
51223 (TERM_WIDTH): New macro.
51224 (TERM_HEIGHT): Likewise.
51225 (TERM_INFO_HEIGHT): Likewise.
51226 (TERM_MARGIN): Likewise.
51227 (TERM_SCROLL_WIDTH): Likewise.
51228 (TERM_TOP_BORDER_Y): Likewise.
51229 (TERM_LEFT_BORDER_X): Likewise.
51230 (TERM_BORDER_WIDTH): Likewise.
51231 (TERM_MESSAGE_HEIGHT): Likewise.
51232 (TERM_BORDER_HEIGHT): Likewise.
51233 (TERM_NUM_ENTRIES): Likewise.
51234 (TERM_FIRST_ENTRY_Y): Likewise.
51235 (TERM_ENTRY_WIDTH): Likewise.
51236 (TERM_CURSOR_X): Likewise.
51237 (draw_border): Use macros instead of magic numbers.
51238 (print_entry): Likewise.
51239 (print_entries): Likewise.
51240 (run_menu): Likewise. Also, handle the key 'e'.
51241 (run_menu_entry): Ignore empty command lines.
51242 (print_message): Added a new argument EDIT. If EDIT is true,
51243 print a different message.
51244 (init_page): Likewise.
51245 (edit_menu_entry): New function. Not implemented yet.
51246
b47efe30 512472004-09-17 Marco Gerards <metgerards@student.han.nl>
51248
51249 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
51250 can be loaded from normal mode.
f19dbdb7 51251
b47efe30 51252 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
51253 `multiboot.mod'.
51254 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
51255 (multiboot_mod_CFLAGS): New variables.
51256 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 51257 * loader/i386/pc/multiboot_normal.c: Likewise.
51258
b47efe30 51259 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
51260 attribute `unused'.
f19dbdb7 51261
b47efe30 51262 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
51263 `fdiro' to read the mode information from instead of `diro'.
51264
51265 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
51266 looking up a symlink.
51267
51268 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
51269 macro.
51270 * normal/command.c (grub_command_execute): Don't parse the
51271 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
51272 flags of the command.
51273
51274 * normal/menu.c (grub_menu_run): Fix typo.
51275
da75ac71 512762004-09-14 Hollis Blanchard <hollis@penguinppc.org>
51277
51278 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
51279
51280 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
51281 `y + 1' instead of `y - 1'.
51282
51283 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 51284
062b24c2 512852004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
51286
51287 From Hollis Blanchard <hollis@penguinppc.org>:
51288 * kern/misc.c (memmove): New alias for grub_memmove.
51289 (memcmp): New alias for grub_memcmp.
51290 (memset): New alias for grub_memset.
f19dbdb7 51291 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 51292 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 51293 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 51294 (grub_ieee1275_get_property): Likewise.
f19dbdb7 51295
8ddad845 512962004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
51297
51298 Added normal mode command `chainloader' as module chain.mod, which
51299 depends on normal.mod and _chain.mod.
f19dbdb7 51300
8ddad845 51301 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
51302 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
51303 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
51304 Deleted prototype.
51305 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
51306 but arguments parsing moved to ...
51307 (grub_chainloader_cmd): ... here. New function.
51308 * include/grub/i386/pc/chainloader.h: New file.
51309 * loader/i386/pc/chainloader_normal.c: Likewise.
51310
2c1f4ce3 513112004-09-11 Marco Gerards <metgerards@student.han.nl>
51312
51313 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
51314 (grub_mkimage_LDFLAGS): Likewise.
51315 (grub_emu_SOURCES): Likewise.
51316 (kernel_img_HEADERS): Added fshelp.h.
51317 * fs/ext2.c: Include <grub/fshelp.h>.
51318 (FILETYPE_REG): New macro.
51319 (FILETYPE_INO_REG): Likewise.
51320 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
51321 Changed all users.
51322 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
51323 all users.
51324 (grub_fshelp_node): New struct.
51325 (grub_ext2_data): Added member `diropen'. Changed member `inode'
51326 to a pointer.
51327 (grub_ext2_get_file_block): Removed function.
51328 (grub_ext2_read_block): New function.
51329 (grub_ext2_read_file): Replaced parameter `data' by `node'.
51330 This function was written.
51331 (grub_ext2_mount): Read the root inode. Create a diropen struct.
51332 (grub_ext2_find_file): Removed function.
51333 (grub_ext2_read_symlink): New function.
51334 (grub_ext2_iterate_dir): Likewise.
51335 (grub_ext2_open): Rewritten.
51336 (grub_ext2_dir): Rewritten.
51337 * include/grub/fshelp.h: New file.
51338 * fs/fshelp.c: Likewise.
51339
3c52136a 513402004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
51341
51342 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
51343 (print_message): Add a missing newline.
51344 (run_menu): Added timeout support.
51345 (run_menu_entry): New local function.
51346 (grub_menu_run): Added support for booting.
51347
51348 * kern/loader.c (grub_loader_is_loaded): New function.
51349
51350 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
51351 (grub_get_rtc): Exported.
51352
51353 * include/grub/i386/pc/time.h: Include grub/symbol.h.
51354 (grub_get_rtc): Exported.
51355
51356 * include/grub/normal.h (struct grub_command_list): Remove
51357 constant from the member `command'.
51358
51359 * include/grub/loader.h (grub_loader_is_loaded): Declared.
51360
51361 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
51362
51363 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
51364
aa033560 513652004-08-28 Marco Gerards <metgerards@student.han.nl>
51366
51367 Add support for the JFS filesystem.
51368
51369 * fs/jfs.c: New file.
51370 * include/grub/fs.h (grub_jfs_init): New prototype.
51371 (grub_jfs_fini): New prototype.
51372 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
51373 (grub_emu_SOURCES): Likewise.
51374 (pkgdata_MODULES): Add jfs.mod.
51375 (jfs_mod_SOURCES): New variable.
51376 (jfs_mod_CFLAGS): Likewise.
51377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
51378 (grubof_SOURCES): Likewise.
51379 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
51380
51381 * fs/fat.c (grub_fat_find_dir): Convert the filename little
51382 endian to the host endian.
51383 (grub_fat_utf16_to_utf8): Move function from there...
51384 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 51385 the endianness of the source string anymore.
aa033560 51386 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
51387
94bc45af 513882004-08-24 Marco Gerards <metgerards@student.han.nl>
51389
51390 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
51391 (grub_boot_fini) [GRUB_UTIL]: Likewise.
51392 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
51393 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 51394
94bc45af 51395 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
51396 (grub_hfs_iterate_dir): Make the function static. Add prototypes
51397 for `node_found' and `it_dir'.
51398 (grub_hfs_dir): Add prototype for `dir_hook'.
51399
51400 * fs/minix.c (grub_minix_get_file_block): Add prototype for
51401 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
51402 and `indir32' to silence a gcc warning.
51403
51404 * include/grub/fs.h (grub_hfs_init): New prototype.
51405 (grub_hfs_fini): Likewise.
f19dbdb7 51406
51407
97543f08 514082004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51409
51410 Each disk device has its own id now. This is useful to make use
51411 of multiple disk devices.
f19dbdb7 51412
97543f08 51413 * include/grub/disk.h (grub_disk_dev_id): New enum.
51414 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
51415 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
51416
51417 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
51418 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51419
51420 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
51421 GRUB_DISK_DEVICE_OFDISK_ID as an id.
51422
51423 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
51424 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51425
51426 * include/grub/disk.h (struct grub_disk_dev): Added a new member
51427 "id" which is used by the cache manager.
51428
51429 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
51430 of just "GRUB".
51431
64372eb4 514322004-08-18 Marco Gerards <metgerards@student.han.nl>
51433
51434 * fs/hfs.c: New file.
51435 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
51436 (grub_emu_SOURCES): Likewise.
51437 (pkgdata_MODULES): Add hfs.mod.
51438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
51439 (grubof_SOURCES): Likewise.
51440 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
51441
51442 * include/grub/misc.h (grub_strncasecmp): Add prototype.
51443 * kern/misc.c (grub_strncasecmp): Add function.
51444
cc61b58f 514452004-08-14 Marco Gerards <metgerards@student.han.nl>
51446
51447 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
51448 with parentheses.
51449
51450 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
51451 (grub_ext2_dir): In case the directory entry type is unknown, read
51452 it from the inode.
51453
0ef123f6 514542004-08-02 Peter Bruin <pjbruin@dds.nl>
51455
51456 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
51457 grub_load_linux instead of grub_rescue_cmd_linux as second
51458 argument of grub_rescue_register_command.
51459
51460 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
51461
a447c5df 514622004-07-27 Marco Gerards <metgerards@student.han.nl>
51463
51464 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
51465 function.
51466 * commands/boot.c: Remove the check for `GRUB_UTIL'.
51467 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
51468 `loader/powerpc/ieee1275/linux.c',
51469 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
51470 * include/grub/powerpc/ieee1275/ieee1275.h
51471 (grub_ieee1275_release): New prototype.
51472 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
51473 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
51474 normal, boot, linux and linux_normal.
51475 * loader/powerpc/ieee1275/linux.c: New file.
51476 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
51477
5a9e3546 514782004-07-12 Marco Gerards <metgerards@student.han.nl>
51479
51480 * normal/arg.c (grub_arg_parse): Correct error handling after
51481 reallocating the argumentlist (check if `argl' is not null instead
51482 of checking if `args' is not null).
51483 * kern/mm.c (grub_realloc): Return the same pointer when using the
51484 same region, instead of returning the header address.
51485
e15199cb 514862004-07-11 Marco Gerards <metgerards@student.han.nl>
51487
51488 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
51489 one block instead of two when looking for the initial partition.
51490 (grub_partition_probe): Initialize the local variable `p' with 0.
51491 Use base 10 for the grub_strtoul call.
51492 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
51493 need for one local variable.
51494 (grub_strtoul): Don't add the new value to `num', instead of that
51495 just assign it.
51496
020616c2 514972004-07-11 Marco Gerards <metgerards@student.han.nl>
51498
51499 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
51500 (pxeboot_img_SOURCES): New variable.
51501 (pxeboot_img_ASFLAGS): Likewise.
51502 (pxeboot_img_LDFLAGS): Likewise.
51503 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
51504 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
51505 <lode_leroy@hotmail.com>.
51506
6c51eb64 515072004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51508
51509 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
51510 there was no input.
51511
cfb12aff 515122004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51513
51514 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
51515 the history buffer logic.
51516
6eabba74 515172004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51518
51519 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
51520 (FILETYPE_INO_SYMLINK): New macros.
51521 (grub_ext2_find_file): Check if the node is a directory using the
51522 inode stat information instead of using the filetype in the
51523 dirent. Exclude the first character of an absolute symlink.
51524 (grub_ext2_dir): Mask out the filetype part of the mode member of
51525 the inode.
51526
66e19ef8 515272004-05-24 Marco Gerards <metgerards@student.han.nl>
51528
51529 Add support for UFS version 1 and 2. Add support for the minix
51530 filesystem version 1 and 2, both the variants with 14 and 30 long
51531 filenames.
f19dbdb7 51532
66e19ef8 51533 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
51534 fs/minix.c.
51535 (grub_emu_SOURCES): Likewise.
51536 (pkgdata_MODULES): Add ufs.mod and minix.mod.
51537 (ufs_mod_SOURCES): New variable.
51538 (ufs_mod_CFLAGS): Likewise.
51539 (minix_mod_SOURCES): Likewise.
51540 (minix_mod_CFLAGS): Likewise.
51541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
51542 fs/minix.c.
51543 (grubof_SOURCES): Likewise.
51544 * fs/ufs.c: New file.
51545 * fs/minix.c: New file.
51546 * include/grub/fs.h (grub_ufs_init): New prototype.
51547 (grub_ufs_fini): Likewise.
51548 (grub_minix_init): Likewise.
51549 (grub_minix_fini): Likewise.
51550 * util/grub-emu.c (main): Initialize and deinitialize UFS and
51551 minix fs.
51552
cc2e748a 515532004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
51554
51555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
51556 commands/ls.c, commands/terminal.c, commands/boot.c,
51557 commands/cmp.c and commands/cat.c.
51558 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
51559
51560 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
51561 "env.h"
51562
4b13b216 515632004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51564
51565 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
51566 and grub_, respectively. Because the conversion is trivial and
51567 mechanical, I omit the details here. Please refer to the CVS
51568 if you need more information.
51569
6a142551 515702004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51571
51572 * include/pupa: Renamed to ...
51573 * include/grub: ... this.
51574 * util/i386/pc/pupa-mkimage.c: Renamed to ...
51575 * util/i386/pc/grub-mkimage.c: ... this.
51576 * util/i386/pc/pupa-setup.c: Renamed to ...
51577 * util/i386/pc/grub-setup.c: ... this.
51578 * util/pupa-emu.c: Renamed to ...
51579 * util/grub-emu.c: ... this.
51580
e56cdf21 515812004-03-29 Marco Gerards <metgerards@student.han.nl>
51582
51583 Add support for the newworld apple macintosh (PPC). This has been
51584 tested on the powerbook 2000 only. It only adds support for
51585 generic ieee1275 functions, console and disk support. This should
51586 be easy to port to other architectures with support for Open
51587 Firmware.
f19dbdb7 51588
e56cdf21 51589 * configure.ac: Accept the powerpc as host_cpu. In the case of
51590 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
51591 specific tests are only executed while building for the i386.
51592 Inverse test for crosscompile.
51593 * genmk.rb (Utility): Allow assembler files.
51594 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
51595 * conf/powerpc-ieee1275.rmk: New file.
51596 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
51597 * disk/powerpc/ieee1275/partition.c: Likewise.
51598 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
51599 * include/pupa/powerpc/ieee1275/console.h: Likewise.
51600 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
51601 * include/pupa/powerpc/ieee1275/time.h: Likewise.
51602 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
51603 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
51604 * include/pupa/powerpc/ieee1275/loader.h
51605 * include/pupa/powerpc/setjmp.h: Likewise.
51606 * include/pupa/powerpc/types.h: Likewise.
51607 * kern/powerpc/ieee1275/init.c: Likewise.
51608 * kern/powerpc/ieee1275/openfw.c: Likewise.
51609 * term/powerpc/ieee1275/ofconsole.c: Likewise.
51610
51611 These files were written by Johan Rydberg
51612 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 51613
e56cdf21 51614 * boot/powerpc/ieee1275/cmain.c: New file.
51615 * boot/powerpc/ieee1275/crt0.S: Likewise.
51616 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
51617 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
51618
8c8cc205 516192004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
51620
51621 * Makefile.in: Update copyright.
51622 * genmodsrc.sh: Likewise.
51623 * gensymlist.sh: Likewise.
51624 * term/i386/pc/vga.c: Indent correctly.
51625
51626 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
51627 bugreporting address.
51628 * util/i386/pc/pupa-setup.c (usage): Likewise,
51629 (main): Call pupa_ext2_init and pupa_ext2_fini.
51630
f19dbdb7 51631 * fs/fat.c (log2): Renamed to ...
8c8cc205 51632 (fat_log2): ... this.
51633 All callers changed.
51634 * kern/misc.c (memcpy): Alias to pupa_memmove.
51635 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
51636 lvalue cast.
51637 * util/console.c (pupa_ncurses_fini): Return 0.
51638
51639 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
51640 Move fail label here.
51641 [__GNU__]: Don't warn when using stat.
51642 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
51643 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
51644 long int. Use strtol instead of strtoul.
f19dbdb7 51645
db1771cf 516462004-03-14 Marco Gerards <metgerards@student.han.nl>
51647
51648 * commands/boot.c: New file.
51649 * commands/cat.c: Likewise.
51650 * commands/cmp.c: Likewise.
51651 * commands/ls.c: Likewise.
51652 * commands/terminal.c: Likewise.
51653 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
51654 (pupa_register_command): Changed interface to match the new
51655 argument parser.
51656 (pupa_command_execute): Changed (almost rewritten) so it uses
51657 pupa_split_command. Added support for setting variables using the
51658 syntax `foo=bar'.
51659 (rescue_command): Changed to work with the new argument parser.
51660 (terminal_command): Moved from here to commands/terminal.c.
51661 (set_command): New function.
51662 (unset_command): New function.
51663 (insmod_command): New function.
51664 (rmmod_command): New function.
51665 (lsmod_command): New function.
51666 (pupa_command_init): Don't initialize the command terminal
51667 anymore. Initialize the commands set, unset, insmod, rmmod and
51668 lsmod.
51669 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
51670 (kernel_img_HEADERS): Add arg.h and env.h.
51671 (pupa_mkimage_LDFLAGS): Add kern/env.c.
51672 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
51673 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
51674 normal/arg.c.
51675 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
51676 terminal.mod.
51677 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
51678 (boot_mod_SOURCES): New variable.
51679 (terminal_mod_SOURCES): Likewise.
51680 (ls_mod_SOURCES): Likewise.
51681 (cmp_mod_SOURCES): Likewise.
51682 (cat_mod_SOURCES): Likewise.
51683
51684 * normal/arg.c: New file.
51685 * kern/env.c: Likewise.
51686 * include/pupa/arg.h: Likewise.
51687 * include/pupa/env.h: Likewise.
51688 * font/manager.c (font_command): Changed to match argument parsing
51689 interface changes.
51690 (PUPA_MOD_INIT): Likewise.
51691 * hello/hello.c (pupa_cmd_hello): Likewise.
51692 (PUPA_MOD_INIT): Likewise.
51693 * include/pupa/disk.h: Include <pupa/device.h>.
51694 (pupa_print_partinfo): New prototype.
51695 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
51696 (pupa_dl_get_prefix): Likewise.
51697 * include/pupa/misc.h: Include <pupa/err.h>.
51698 (pupa_isgraph): New prototype.
51699 (pupa_isdigit): Likewise.
51700 (pupa_split_cmdline): Likewise.
51701 * include/pupa/normal.h: Include <pupa/arg.h>.
51702 (pupa_command): Changed the prototype of the member `func' to
51703 match the argument parsing interface. Added member `options'.
51704 (pupa_register_command): Updated to match function.
51705 (pupa_arg_parse): New prototype.
51706 (pupa_hello_init) [PUPA_UTIL]: New prototype.
51707 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
51708 (pupa_ls_init) [PUPA_UTIL]: Likewise.
51709 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
51710 (pupa_cat_init) [PUPA_UTIL]: Likewise.
51711 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
51712 (pupa_boot_init) [PUPA_UTIL]: Likewise.
51713 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
51714 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
51715 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
51716 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
51717 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
51718 * kern/disk.c: Include <pupa/file.h>.
51719 (pupa_print_partinfo): New function.
51720 * kern/dl.c: Include <pupa/env.h>.
51721 (pupa_dl_dir): Variable removed.
51722 (pupa_dl_load): Use the environment variable `prefix' instead of
51723 the variable pupa_dl_dir.
51724 (pupa_dl_set_prefix): Function removed.
51725 (pupa_dl_get_prefix): Likewise.
51726 * kern/i386/pc/init.c: Include <pupa/env.h>.
51727 (pupa_machine_init): Use the environment variable `prefix' instead of
51728 using pupa_dl_set_prefix to set the prefix.
51729 * kern/main.c: Include <pupa/env.h>.
51730 (pupa_set_root_dev): Use the environment variable `prefix' instead of
51731 using pupa_dl_get_prefix to get the prefix.
51732 * kern/misc.c: Include <pupa/env.h>.
51733 (pupa_isdigit): New function.
51734 (pupa_isgraph): Likewise.
51735 (pupa_ftoa): Likewise.
51736 (pupa_vsprintf): Added support for printing values of the type
51737 `double'. Make it possible to format variable output when using
51738 formatting like `%1.2%f'.
51739 (pupa_split_cmdline): New function.
51740 * kern/rescue.c: Include <pupa/env.h>.
51741 (next_word): Removed function.
51742 (pupa_rescue_cmd_prefix): Likewise.
51743 (pupa_rescue_cmd_set): New function.
51744 (pupa_rescue_cmd_unset): New function.
51745 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
51746 split the command line instead of splitting it here. Added
51747 support for setting variables using the syntax `foo=bar'. Don't
51748 initialize the prefix command anymore. Initialized the set and
51749 unset commands.
51750 * normal/cmdline.c: Include <pupa/env.h>.
51751 (pupa_tab_complete): Added prototypes for print_simple_completion,
51752 print_partition_completion, add_completion, iterate_commands,
51753 iterate_dev, iterate_part and iterate_dir. Moved code to print
51754 partition information from here to kern/disk.c.
fe6b695a 51755 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 51756 * normal/main.c: Include <pupa/env.h>.
51757 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
51758 instead of using pupa_dl_get_prefix to get the prefix.
51759 * term/i386/pc/vga.c: Include <pupa/arg.h>.
51760 (check_vga_mem): Cast pointers to `void *' to silence a gcc
51761 warning.
51762 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
51763 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51764 ((unused))' to silence a gcc warning.
51765 (pupa_vga_setcolor): Likewise.
51766 (debug_command): Changed to match argument parsing
51767 interface changes.
51768 * util/pupa-emu.c: Include <pupa/env.h>.
51769 (options): Added 0's for unused fields to silence a gcc warning.
51770 (argp): Likewise.
51771 (main): Use the environment variable `prefix' instead of using
51772 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51773 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51774 and terminal.
51775
51776 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51777 * util/misc.c: Include <malloc.h>.
51778 (pupa_malloc): Rewritten so errors are correctly reported.
51779 (pupa_realloc): Likewise.
51780 (pupa_memalign): Likewise.
51781 (pupa_mm_init_region): Declare unused variables with
51782 `__attribute__ ((unused))' to silence a gcc warning.
51783 * normal/i386/setjmp.S: Remove tab at the end of the file to
51784 silence a gcc warning.
51785 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51786 variables with `__attribute__ ((unused))' to silence a gcc
51787 warning.
51788 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51789 local variable i unsigned to silence a gcc warning.
51790
51791 * kern/term.c: Include <pupa/misc.h>.
51792 (pupa_more_lines): New variable.
51793 (pupa_more): Likewise.
51794 (pupa_putcode): When the pager is active pause at the end of every
51795 screen.
51796 (pupa_set_more): New function.
51797 * include/pupa/term.h (pupa_set_more): New prototype.
51798
51799
3b1139cb 518002004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51801
51802 Now this project is GRUB 2 rather than PUPA. The location of
51803 the CVS repository was moved to GRUB's.
f19dbdb7 51804
3b1139cb 51805 * configure.ac: Use bug-grub as the reporting address.
51806 Use GRUB instead of PUPA.
51807 Change the version number to 1.90.
51808
8367695c 518092004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51810
51811 * genkernsyms.sh: Updated copyright information.
51812 * genmk.rb: Likewise.
51813 * genmodsrc.sh: Likewise.
51814 * gensymlist.sh: Likewise.
51815 * boot/i386/pc/boot.S: Likewise.
51816 * boot/i386/pc/diskboot.S: Likewise.
51817 * disk/i386/pc/biosdisk.c: Likewise.
51818 * disk/i386/pc/partition.c: Likewise.
51819 * font/manager.c: Likewise.
51820 * fs/ext2.c: Likewise.
51821 * fs/fat.c: Likewise.
51822 * include/pupa/boot.h: Likewise.
51823 * include/pupa/device.h: Likewise.
51824 * include/pupa/disk.h: Likewise.
51825 * include/pupa/dl.h: Likewise.
51826 * include/pupa/elf.h: Likewise.
51827 * include/pupa/err.h: Likewise.
51828 * include/pupa/file.h: Likewise.
51829 * include/pupa/font.h: Likewise.
51830 * include/pupa/fs.h: Likewise.
51831 * include/pupa/kernel.h: Likewise.
51832 * include/pupa/loader.h: Likewise.
51833 * include/pupa/misc.h: Likewise.
51834 * include/pupa/mm.h: Likewise.
51835 * include/pupa/net.h: Likewise.
51836 * include/pupa/normal.h: Likewise.
51837 * include/pupa/rescue.h: Likewise.
51838 * include/pupa/setjmp.h: Likewise.
51839 * include/pupa/symbol.h: Likewise.
51840 * include/pupa/term.h: Likewise.
51841 * include/pupa/types.h: Likewise.
51842 * include/pupa/i386/setjmp.h: Likewise.
51843 * include/pupa/i386/types.h: Likewise.
51844 * include/pupa/i386/pc/biosdisk.h: Likewise.
51845 * include/pupa/i386/pc/boot.h: Likewise.
51846 * include/pupa/i386/pc/console.h: Likewise.
51847 * include/pupa/i386/pc/init.h: Likewise.
51848 * include/pupa/i386/pc/kernel.h: Likewise.
51849 * include/pupa/i386/pc/linux.h: Likewise.
51850 * include/pupa/i386/pc/loader.h: Likewise.
51851 * include/pupa/i386/pc/memory.h: Likewise.
51852 * include/pupa/i386/pc/multiboot.h: Likewise.
51853 * include/pupa/i386/pc/partition.h: Likewise.
51854 * include/pupa/i386/pc/time.h: Likewise.
51855 * include/pupa/i386/pc/vga.h: Likewise.
51856 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51857 * include/pupa/util/getroot.h: Likewise.
51858 * include/pupa/util/misc.h: Likewise.
51859 * include/pupa/util/resolve.h: Likewise.
51860 * kern/device.c: Likewise.
51861 * kern/disk.c: Likewise.
51862 * kern/dl.c: Likewise.
51863 * kern/err.c: Likewise.
51864 * kern/file.c: Likewise.
51865 * kern/fs.c: Likewise.
51866 * kern/loader.c: Likewise.
51867 * kern/main.c: Likewise.
51868 * kern/misc.c: Likewise.
51869 * kern/mm.c: Likewise.
51870 * kern/rescue.c: Likewise.
51871 * kern/term.c: Likewise.
51872 * kern/i386/dl.c: Likewise.
51873 * kern/i386/pc/init.c: Likewise.
51874 * kern/i386/pc/lzo1x.S: Likewise.
51875 * kern/i386/pc/startup.S: Likewise.
51876 * loader/i386/pc/chainloader.c: Likewise.
51877 * loader/i386/pc/linux.c: Likewise.
51878 * loader/i386/pc/multiboot.c: Likewise.
51879 * normal/cmdline.c: Likewise.
51880 * normal/command.c: Likewise.
51881 * normal/main.c: Likewise.
51882 * normal/menu.c: Likewise.
51883 * normal/i386/setjmp.S: Likewise.
51884 * term/i386/pc/console.c: Likewise.
51885 * term/i386/pc/vga.c: Likewise.
51886 * util/console.c: Likewise.
51887 * util/genmoddep.c: Likewise.
51888 * util/misc.c: Likewise.
51889 * util/pupa-emu.c: Likewise.
51890 * util/resolve.c: Likewise.
51891 * util/unifont2pff.rb: Likewise.
51892 * util/i386/pc/biosdisk.c: Likewise.
51893 * util/i386/pc/getroot.c: Likewise.
51894 * util/i386/pc/pupa-mkimage.c: Likewise.
51895 * util/i386/pc/pupa-setup.c: Likewise.
51896
e6eced71 518972004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51898
51899 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51900 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51901 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51902 reading and reset it after reading.
51903 (pupa_ext2_close): Return PUPA_ERR_NONE.
51904
51905 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51906 Correct value.
51907 (struct linux_kernel_header): Add kernel_version and
51908 initrd_addr_max.
51909 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51910 pupa_file_read succeeds.
51911 (pupa_rescue_cmd_initrd): Implement.
51912
5aded270 519132003-12-03 Marco Gerards <metgerards@student.han.nl>
51914
51915 * fs/ext2.c (pupa_ext2_label): New function.
51916 (pupa_ext2_fs): Added label.
51917 * fs/fat.c (pupa_fat_label): New function.
51918 (pupa_fat_fs): Added label.
51919 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51920
51921 * kern/misc.c (pupa_strndup): New function.
51922 * include/pupa/misc.h (pupa_strndup): New prototype.
51923
51924 * include/pupa/normal.h: Include <pupa/err.h>.
51925 (pupa_set_history): New prototype.
51926 (pupa_iterate_commands): New prototype.
51927 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51928 <pupa/disk.h>, <pupa/file.h>.
51929 (hist_size): New variable.
51930 (hist_lines): Likewise.
51931 (hist_end): Likewise.
51932 (hist_used): Likewise.
51933 (pupa_set_history): New function.
51934 (pupa_history_get): Likewise.
51935 (pupa_history_add): Likewise.
51936 (pupa_history_replace): Likewise.
51937 (pupa_tab_complete): Likewise.
51938 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51939 completion shows partitionnames while completing partitions, this
51940 feature was suggested by Jeff Bailey.
51941 * normal/command.c (pupa_iterate_commands): New function.
51942 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51943 (pupa_normal_init): Initialize history buffer.
51944 (PUPA_MOD_INIT): Likewise.
51945 (pupa_normal_fini): Free the history buffer.
51946 (PUPA_MOD_FINI): Likewise.
51947
51948 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51949 key.
51950
51951 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51952 * configure.ac [i386]: Check for regparam bug.
51953 (NESTED_FUNC_ATTR) [! i386]: Defined.
51954
1f7315a3 519552003-11-17 Marco Gerards <metgerards@student.han.nl>
51956
51957 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51958 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51959 (pupa_emu_SOURCES): New variable.
51960 (pupa_emu_LDFLAGS): Likewise.
51961 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51962 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51963 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51964 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51965 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51966 (pupa_jmp_buf): New typedef.
51967 (pupa_setjmp) [PUPA_UTIL]: New macro.
51968 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51969 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51970 (pupa_refresh): New prototype.
51971 * include/pupa/util/getroot.h: New file.
51972 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51973 it.
51974 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51975 (pupa_rescue_cmd_cat): Likewise.
51976 (pupa_rescue_cmd_ls): Likewise.
51977 (pupa_rescue_cmd_testload): Likewise.
51978 (pupa_rescue_cmd_lsmod): Likewise.
51979 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51980 * normal/menu.c (run_menu): Likewise.
51981 * kern/term.c (pupa_cls): Likewise.
51982 (pupa_refresh): New function.
51983 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51984 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51985 * util/console.c: New file.
f19dbdb7 51986
1f7315a3 51987 * util/i386/pc/getroot.c: New file.
51988 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51989 (pupa_putchar): New function.
51990 (pupa_refresh): Likewise.
51991 (xgetcwd): Function moved to ...
51992 (strip_extra_slashes): Likewise.
51993 (get_prefix): Likewise.
f19dbdb7 51994 * util/i386/pc/getroot.c: ... here.
1f7315a3 51995 (find_root_device): Function moved and renamed to...
51996 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51997 Changed all callers.
51998 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51999 and renamed to...
52000 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
52001 Changed all callers.
52002 * util/misc.c (pupa_memalign): New function.
52003 (pupa_mm_init_region): Likewise.
52004 (pupa_register_exported_symbols): Likewise.
52005 (pupa_putchar): Function removed.
52006 * util/pupa-emu.c: New file.
52007
9a5c1ade 520082003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
52009
52010 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
52011 (_multiboot_mod_SOURCES): New variable.
52012 (_multiboot_mod_CFLAGS): Likewise.
52013 * loader/i386/pc/multiboot.c: New file.
52014 * include/pupa/i386/pc/multiboot.h: Likewise.
52015 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
52016 (pupa_multiboot_real_boot): New function.
52017 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
52018 (pupa_multiboot_real_boot): New prototype.
52019 (pupa_rescue_cmd_multiboot): Likewise
52020 (pupa_rescue_cmd_module): Likewise.
52021
52022 * kern/loader.c (pupa_loader_set): Continue when
52023 pupa_loader_unload_func() fails.
52024 (pupa_loader_unset): New function.
52025 * include/pupa/loader.h (pupa_loader_unset): New prototype.
52026
52027 * kern/misc.c (pupa_stpcpy): New function.
52028 * include/pupa/misc.h (pupa_stpcpy): New prototype.
52029
8e72a9c0 520302003-11-12 Marco Gerards <metgerards@student.han.nl>
52031
52032 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
52033 for available extensions.
52034
52035 * include/pupa/i386/pc/time.h: New file.
52036 * kern/disk.c: Include <pupa/machine/time.h>.
52037 (PUPA_CACHE_TIMEOUT): New macro.
52038 (pupa_last_time): New variable.
52039 (pupa_disk_open): Flush the cache when there was a timeout.
52040 (pupa_disk_close): Reset the timer.
52041 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
52042 pupa_currticks.
52043 * util/misc.c: Include <sys/times.h>
52044 (pupa_get_rtc): New function.
52045
c4adbd32 520462003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
52047
52048 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
52049 as blocks.
52050 (pupa_ext2_get_file_block): Use blocks member.
52051
52052 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
52053 first block. Return -1 instead of pupa_errno on error.
52054
bfd30f06 520552003-10-27 Marco Gerards <metgerards@student.han.nl>
52056
52057 * README: In the pupa-mkimage example use _chain instead of chain
52058 and ext2 instead of fat.
52059 * TODO: Replace ext2fs with jfs as an example. Add an item for
52060 adding journal playback for ext2fs.
52061 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
52062 (pkgdata_MODULES): Added ext2.mod.
52063 (ext2_mod_SOURCES): New variable.
52064 (ext2_mod_CFLAGS): Likewise.
52065 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
52066 * include/pupa/misc.h (pupa_strncpy): New prototype.
52067 (pupa_strcat): Likewise.
52068 (pupa_strncmp): Likewise.
52069 * kern/misc.c (pupa_strcat): Enable function.
52070 (pupa_strncpy): New function.
52071 (pupa_strncmp): Likewise.
52072 * fs/ext2.c: New file.
f19dbdb7 52073
bfd30f06 52074 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
52075 when the read failed before retrying.
52076 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
52077 (_FILE_OFFSET_BITS): Likewise.
52078 * configure.ac: Added AC_SYS_LARGEFILE.
52079
98d15063 520802003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
52081
52082 * genmk.rb (PModule#rule): Make sure to get only symbol names
52083 from the output of nm.
59cad637 52084 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 52085
18d9c7cd 520862003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
52087
52088 I forgot to check in these changes for a long time. This adds
52089 incomplete support for VGA console, and this is still very
52090 buggy. Also, a lot of consideration is required for I18N,
52091 UNICODE, and VGA font issues. Therefore, assume that this is
52092 such that "better than nothing".
f19dbdb7 52093
18d9c7cd 52094 * font/manager.c: New file.
52095 * include/pupa/font.h: Likewise.
52096 * include/pupa/i386/pc/vga.h: Likewise.
52097 * term/i386/pc/vga.c: Likewise.
52098 * util/unifont2pff.rb: Likewise.
52099
52100 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
52101 (pkgdata_MODULES): Added vga.mod and font.mod.
52102 (vga_mod_SOURCES): New variables.
52103 (vga_mod_CFLAGS): Likewise.
52104 (font_mod_SOURCES): Likewise.
52105 (font_mod_CFLAGS): Likewise.
52106
52107 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
52108
52109 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 52110 (struct pupa_term): Added init and fini.
18d9c7cd 52111 Changed the argument of putchar to pupa_uint32_t.
52112
52113 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
52114 (pupa_console_real_putchar): New prototype.
52115 (pupa_console_putchar): Removed.
52116 (pupa_console_checkkey): Exported.
52117 (pupa_console_getkey): Likewise.
52118
52119 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
52120 characters.
52121
52122 * kern/term.c (pupa_term_set_current): Rewritten.
52123 (pupa_putchar): Likewise.
52124 (pupa_putcode): New function.
52125
52126 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
52127 (pupa_console_real_putchar): ... this.
52128 (pupa_vga_set_mode): New function.
52129 (pupa_vga_get_font): Likewise.
52130
52131 * normal/command.c: Include pupa/term.h.
52132 (terminal_command): New function.
52133 (pupa_command_init): Register the command "terminal".
52134
52135 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
52136 (DISP_UP): Likewise.
52137 (DISP_RIGHT): Likewise.
52138 (DISP_DOWN): Likewise.
52139 (DISP_HLINE): Likewise.
52140 (DISP_VLINE): Likewise.
52141 (DISP_UL): Likewise.
52142 (DISP_UR): Likewise.
52143 (DISP_LL): Likewise.
52144 (DISP_LR): Likewise.
52145
52146 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 52147
977329f5 521482003-02-08 NIIBE Yutaka <gniibe@m17n.org>
52149
52150 * util/resolve.c (pupa_util_resolve_dependencies): BUG
52151 FIX. Reverse the path_list.
52152
52153 * include/pupa/normal.h: Export pupa_register_command and
52154 pupa_unregister_command.
52155
52156 * hello/hello.c (pupa_cmd_hello): New module.
52157 * conf/i386-pc.rmk: Added hello.mod.
52158
1f5ab428 521592003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
52160
52161 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 52162
1f5ab428 52163 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
52164 (compress_kernel): New variable.
52165 (generate_image): Heavily modified to support compressing a
52166 large part of the core image.
52167
52168 * util/misc.c (pupa_util_read_image): Fix a file descriptor
52169 leak.
52170 (pupa_util_load_image): New function.
52171
52172 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
52173 (pupa_compressed_size): New variable.
52174 (codestart): Enable Gate A20 here.
52175 Decompress the compressed part of the core image.
52176 Rearrange the code to put functions and variables which are
52177 required for initialization in the non-compressed part.
52178 Include lzo1x.S.
52179
52180 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
52181 here.
52182
52183 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
52184
f19dbdb7 52185 * include/pupa/i386/pc/kernel.h
1f5ab428 52186 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
52187 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
52188 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
52189 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
52190 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
52191
52192 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
52193
52194 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
52195 (Utility#rule): Likewise.
52196
52197 * configure.ac: Check if LZO is available.
52198
ce5bf700 521992003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
52200
52201 * include/pupa/normal.h: New file.
52202 * include/pupa/setjmp.h: Likewise.
52203 * include/pupa/i386/setjmp.h: Likewise.
52204 * normal/cmdline.c: Likewise.
52205 * normal/command.c: Likewise.
52206 * normal/main.c: Likewise.
52207 * normal/menu.c: Likewise.
52208 * normal/i386/setjmp.S: Likewise.
f19dbdb7 52209
ce5bf700 52210 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
52211 (pupa_rescue_cmd_initrd): Likewise.
52212
52213 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
52214 Likewise.
52215
52216 * kern/i386/pc/startup.S (translation_table): New variable.
52217 (translate_keycode): New function.
52218 (pupa_console_getkey): Call translate_keycode.
52219
52220 * kern/rescue.c (attempt_normal_mode): New function.
52221 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
52222 it failed, print a message.
52223
52224 * kern/mm.c (pupa_real_malloc): Print more information when a
52225 free magic is broken.
52226 (pupa_free): If the first free header is not free actually, set
52227 it to P.
52228
52229 * kern/main.c (pupa_load_normal_mode): Just load the module
52230 "normal".
52231 (pupa_main): Don't print the message
52232 "Entering into rescue mode..." here.
52233
52234 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
52235 Declared.
52236 (pupa_rescue_cmd_initrd): Likewise.
52237 (pupa_rescue_cmd_initrd): Likewise.
52238
52239 * include/pupa/symbol.h (FUNCTION): Specify the type.
52240 (VARIABLE): Likewise.
52241
52242 * include/pupa/err.h (pupa_err_t): Added
52243 PUPA_ERR_UNKNOWN_COMMAND.
52244
52245 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
52246 (pupa_dl_get_prefix): Likewise.
52247
52248 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
52249 Added _chain.mod and _linux.mod instead of chain.mod and
52250 linux.mod.
52251 (chain_mod_SOURCES): Renamed to ...
52252 (_chain_mod_SOURCES): ... this.
52253 (chain_mod_CFLAGS): Renamed to ...
52254 (_chain_mod_CFLAGS): ... this.
52255 (linux_mod_SOURCES): Renamed to ...
52256 (_linux_mod_SOURCES): ... this.
52257 (linux_mod_CFLAGS): Renamed to ...
52258 (_linux_mod_CFLAGS): ... this.
52259 (normal_mod_SOURCES): New variable.
52260 (normal_mod_CFLAGS): Likewise.
52261 (normal_mod_ASFLAGS): Likewise.
52262
522632003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
52264
52265 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
52266 possible.
52267
fe6b695a 52268 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 52269 recursively.
52270 (pupa_dl_unref): Unrefer depending modules recursively.
52271 Don't call pupa_dl_unload implicitly, because PUPA can crash if
52272 a module is unloaded before one depending on that module is
52273 unloaded.
52274 (pupa_dl_unload): Unload depending modules explicitly,
52275 if possible.
52276
c04da074 522772003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
52278
52279 * include/pupa/i386/pc/linux.h: New file.
52280 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 52281
c04da074 52282 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
52283 Removed.
52284 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
52285 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
52286 of PUPA_CHAINLOADER_BOOT_SECTOR.
52287
52288 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
52289 (pupa_linux_prot_size): New variable.
52290 (pupa_linux_tmp_addr): Likewise.
52291 (pupa_linux_real_addr): Likewise.
52292 (pupa_linux_boot_zimage): New function.
52293 (pupa_linux_boot_bzimage): Likewise.
52294
52295 * kern/i386/pc/init.c (struct mem_region): New structure.
52296 (MAX_REGIONS): New macro.
52297 (mem_regions): New variable.
52298 (num_regions): Likewise.
52299 (pupa_os_area_addr): Likewise.
52300 (pupa_os_area_size): Likewise.
52301 (pupa_lower_mem): Likewise.
52302 (pupa_upper_mem): Likewise.
52303 (add_mem_region): New function.
52304 (compact_mem_regions): Likewise.
52305 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
52306 the size of the conventional memory and that of so-called upper
52307 memory (before the first memory hole).
52308 Instead of adding each found region to free memory, use
52309 add_mem_region and add them after removing overlaps.
52310 Also, add only 1/4 of the upper memory to free memory. The rest
52311 is used for loading OS images. Maybe this is ad hoc, but this
52312 makes it much easier to relocate OS images when booting.
52313
52314 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
52315 (pupa_enter_rescue_mode): Don't register initrd and module.
52316
52317 * kern/mm.c: Include pupa/dl.h.
52318
52319 * kern/main.c: Include pupa/file.h and pupa/device.h.
52320
52321 * kern/loader.c (pupa_loader_load_module_func): Removed.
52322 (pupa_loader_load_module): Likewise.
52323
52324 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
52325 ``.o''.
52326
52327 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
52328 (pupa_linux_tmp_addr): Likewise.
52329 (pupa_linux_real_addr): Likewise.
52330 (pupa_linux_boot_zimage): Likewise.
52331 (pupa_linux_boot_bzimage): Likewise.
52332
52333 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
52334 (pupa_upper_mem): Likewise.
52335 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
52336 module is too dangerous.
52337
52338 * include/pupa/loader.h (pupa_os_area_addr): Declared.
52339 (pupa_os_area_size): Likewise.
52340 (pupa_loader_set): Remove the first argument. Loader doesn't
52341 manage modules or initrd any longer.
52342 (pupa_loader_load_module): Removed.
52343
52344 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
52345 (linux_mod_SOURCES): New variable.
52346 (linux_mod_CFLAGS): Likewise.
52347
a13f9237 523482003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
52349
52350 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
52351 the length of a blocklist correctly.
52352
52353 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
52354 Use ioctl only if the OS file is a block device.
52355 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
52356 not very useful for normal files.
52357
52358 * kern/main.c (pupa_set_root_dev): New function.
52359 (pupa_load_normal_mode): Likewise.
52360 (pupa_main): Call those above.
52361
52362 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
52363 pupa_uint16_t.
52364
52365 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
52366
a5ffe966 523672003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
52368
52369 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
52370 (setup): Configure the installed partition information and the
52371 dl prefix.
52372
52373 * loader/i386/pc/chainloader.c (my_mod): New variable.
52374 (pupa_chainloader_unload): New function.
52375 (pupa_rescue_cmd_chainloader): Refer itself.
52376 (PUPA_MOD_INIT): Save its own module in MY_MOD.
52377
52378 * kern/i386/pc/startup.S (install_partition): Removed.
52379 (version_string): Likewise.
52380 (config_file): Likewise.
52381 (pupa_install_dos_part): New variable.
52382 (pupa_install_bsd_part): Likewise.
52383 (pupa_prefix): Likewise.
52384 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
52385
52386 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
52387 and pupa/misc.h.
52388 (make_install_device): New function.
52389 (pupa_machine_init): Set the dl prefix.
52390
52391 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
52392 (buf): Renamed to ...
52393 (linebuf): ... this.
52394 (pupa_rescue_cmd_prefix): New function.
52395 (pupa_rescue_cmd_insmod): Likewise.
52396 (pupa_rescue_cmd_rmmod): Likewise.
52397 (pupa_rescue_cmd_lsmod): Likewise.
52398 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
52399 rmmod and lsmod.
52400
52401 * kern/mm.c (pupa_memalign): If failed even after invalidating
52402 disk caches, unload unneeded modules and retry.
52403
52404 * kern/misc.c (pupa_memmove): New function.
52405 (pupa_memcpy): Removed.
52406 (pupa_strcpy): New function.
52407 (pupa_itoa): Made static.
52408
52409 * kern/dl.c (pupa_dl_iterate): New function.
52410 (pupa_dl_ref): Likewise.
52411 (pupa_dl_unref): Likewise.
52412 (pupa_dl_unload): Return if succeeded or not.
52413 (pupa_dl_unload_unneeded): New function.
52414 (pupa_dl_unload_all): Likewise.
52415 (pupa_dl_init): Renamed to ...
52416 (pupa_dl_set_prefix): ... this.
52417 (pupa_dl_get_prefix): New function.
52418
52419 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
52420 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
52421 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
52422 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
52423 (pupa_install_dos_part): Declared.
52424 (pupa_install_bsd_part): Likewise.
52425 (pupa_prefix): Likewise.
52426 (pupa_boot_drive): Likewise.
52427
52428 * include/pupa/types.h: Fix a typo.
52429
52430 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
52431 pupa_memmove.
52432 (pupa_memmove): Declared.
52433 (pupa_strcpy): Likewise.
52434
52435 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
52436 pupa_mod_init takes one argument, its own module.
52437 (pupa_dl_unload_unneeded): Declared.
52438 (pupa_dl_unload_all): Likewise.
52439 (pupa_dl_ref): Likewise.
52440 (pupa_dl_unref): Likewise.
52441 (pupa_dl_iterate): Likewise.
52442 (pupa_dl_init): Renamed to ...
52443 (pupa_dl_set_prefix): ... this.
52444 (pupa_dl_get_prefix): Declared.
52445
52446 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 52447 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 52448 unloaded.
52449 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
52450 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
52451
52452 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
52453 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
52454
012d7999 524552003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52456
52457 * util/i386/pc/pupa-setup.c (setup): Define the internal
52458 function find_first_partition_start at the top level, because GCC
52459 3.0.x cannot compile internal functions in deeper scopes
52460 correctly.
52461 (find_root_device): Use lstat instead of stat.
52462 Don't follow symbolic links.
52463 Fix the path-constructing code.
52464
52465 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
52466 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
52467 by a BLKGETSIZE ioctl first, because block devices don't fill
52468 the member st_mode of the structure stat on Linux.
52469 [__linux__] (linux_find_partition): Use a temporary buffer
52470 REAL_DEV for the working space. Copy it to DEV before returning.
52471 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
52472 buffer cache consistent.
52473 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
52474 strncmp. The previous value was merely wrong.
52475 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
52476
52477 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
52478 FAT size is 12. The previous value was merely wrong.
52479
52480 * kern/main.c (pupa_main): Don't split the starting message from
52481 newlines.
52482
52483 * kern/term.c (pupa_putchar): Put CR after LF instead of before
52484 LF, because BIOS goes crazy about character attributes in this
52485 case.
52486
1cc73a62 524872003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52488
52489 * include/i386/pc/util/biosdisk.h: New file.
52490 * util/i386/pc/biosdisk.c: Likewise.
52491 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 52492
1cc73a62 52493 * Makefile.in (INCLUDE_DISTFILES): Added
52494 include/pupa/i386/pc/util/biosdisk.h.
52495 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
52496 directory util/i386/pc.
52497 (install-local): Added a rule for sbin_UTILITIES.
52498 (uninstall): Likewise.
52499
52500 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
52501
52502 * util/misc.c (xrealloc): New function.
52503 (pupa_malloc): Likewise.
52504 (pupa_free): Likewise.
52505 (pupa_realloc): Likewise.
52506 (pupa_stop): Likewise.
52507 (pupa_putchar): Likewise.
52508
52509 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
52510
52511 * include/pupa/util/misc.h (xrealloc): Declared.
52512
52513 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
52514 macro.
52515 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
52516 (PUPA_BOOT_MACHINE_BPB_END): ... this.
52517
52518 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
52519 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52520
52521 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
52522 way should be implemented.
52523 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52524
52525 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
52526 the size of NAME for safety.
52527 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
52528 0x88.
52529
52530 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
52531 (pupa_setup_SOURCES): Likewise.
52532
52533 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
52534
08b70fe8 525352002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52536
52537 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
52538 bunch of pushl's from pusha, because this destroys the return
52539 value.
52540
62ddcc8f 525412002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52542
52543 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
52544 This means that any missing prototypes could be fatal. Also, you
52545 must take care when writing assembly code. See the comments at
52546 the beginning of startup.S, for more details.
f19dbdb7 52547
62ddcc8f 52548 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
52549 compilation mechanism.
52550 (pupa_chainloader_real_boot): Likewise.
52551 (pupa_biosdisk_rw_int13_extensions): Likewise.
52552 (pupa_biosdisk_rw_standard): Likewise.
52553 (pupa_biosdisk_check_int13_extensions): Likewise.
52554 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
52555 (pupa_biosdisk_get_diskinfo_standard): Likewise.
52556 (pupa_get_memsize): Likewise.
52557 (pupa_get_mmap_entry): Likewise.
52558 (pupa_console_putchar): Likewise.
52559 (pupa_console_setcursor): Likewise.
52560 (pupa_getrtsecs): Use pushl instead of push.
52561
52562 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
52563 memory instead of the stack for a mmap entry, because some
52564 BIOSes may ignore the maximum size and overflow.
52565
52566 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
52567
52568 * genmk.rb (PModule#rule): Compile automatically generated
52569 sources with module-specific CFLAGS as well as other sources.
52570
9962ed99 525712002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52572
52573 * configure.ac: Check ld.
52574 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
52575 respectively, before checking endianness and sizes.
52576
52577 * Makefile.in (LD): New variable.
f19dbdb7 52578
abdfc3c5 525792002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52580
52581 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
52582
6a161fa9 525832002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52584
52585 * Changelog: New file.
52586